configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for bitmap 1.0.9.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/bitmap/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
270 $0: https://gitlab.freedesktop.org/xorg/app/bitmap/issues
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
320 {
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362 } # as_fn_mkdir_p
363
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
368 {
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # as_fn_append
388
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # as_fn_arith
405
406
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
413 {
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502 }
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513 *)
514 ECHO_N='-n';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561 test -n "$DJDIR" || exec 7<&0 </dev/null
562 exec 6>&1
563
564 # Name of the host.
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569 #
570 # Initializations.
571 #
572 ac_default_prefix=/usr/local
573 ac_clean_files=
574 ac_config_libobj_dir=.
575 LIBOBJS=
576 cross_compiling=no
577 subdirs=
578 MFLAGS=
579 MAKEFLAGS=
580
581 # Identity of this package.
582 PACKAGE_NAME='bitmap'
583 PACKAGE_TARNAME='bitmap'
584 PACKAGE_VERSION='1.0.9'
585 PACKAGE_STRING='bitmap 1.0.9'
586 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/bitmap/issues'
587 PACKAGE_URL=''
588
589 ac_unique_file="Makefile.am"
590 # Factoring default headers for most tests.
591 ac_includes_default="\
592 #include <stdio.h>
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
595 #endif
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
598 #endif
599 #ifdef STDC_HEADERS
600 # include <stdlib.h>
601 # include <stddef.h>
602 #else
603 # ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 # endif
606 #endif
607 #ifdef HAVE_STRING_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 # include <memory.h>
610 # endif
611 # include <string.h>
612 #endif
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_UNISTD_H
623 # include <unistd.h>
624 #endif"
625
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 LIBOBJS
630 appdefaultdir
631 APPDEFS_LIBS
632 APPDEFS_CFLAGS
633 BITMAP_LIBS
634 BITMAP_CFLAGS
635 ATOBM_LIBS
636 ATOBM_CFLAGS
637 BMTOA_LIBS
638 BMTOA_CFLAGS
639 MATH_LIBS
640 MAN_SUBSTS
641 XORG_MAN_PAGE
642 ADMIN_MAN_DIR
643 DRIVER_MAN_DIR
644 MISC_MAN_DIR
645 FILE_MAN_DIR
646 LIB_MAN_DIR
647 APP_MAN_DIR
648 ADMIN_MAN_SUFFIX
649 DRIVER_MAN_SUFFIX
650 MISC_MAN_SUFFIX
651 FILE_MAN_SUFFIX
652 LIB_MAN_SUFFIX
653 APP_MAN_SUFFIX
654 SED
655 host_os
656 host_vendor
657 host_cpu
658 host
659 build_os
660 build_vendor
661 build_cpu
662 build
663 INSTALL_CMD
664 PKG_CONFIG_LIBDIR
665 PKG_CONFIG_PATH
666 PKG_CONFIG
667 CHANGELOG_CMD
668 STRICT_CFLAGS
669 CWARNFLAGS
670 BASE_CFLAGS
671 EGREP
672 GREP
673 CPP
674 am__fastdepCC_FALSE
675 am__fastdepCC_TRUE
676 CCDEPMODE
677 am__nodep
678 AMDEPBACKSLASH
679 AMDEP_FALSE
680 AMDEP_TRUE
681 am__quote
682 am__include
683 DEPDIR
684 OBJEXT
685 EXEEXT
686 ac_ct_CC
687 CPPFLAGS
688 LDFLAGS
689 CFLAGS
690 CC
691 AM_BACKSLASH
692 AM_DEFAULT_VERBOSITY
693 AM_DEFAULT_V
694 AM_V
695 am__untar
696 am__tar
697 AMTAR
698 am__leading_dot
699 SET_MAKE
700 AWK
701 mkdir_p
702 MKDIR_P
703 INSTALL_STRIP_PROGRAM
704 STRIP
705 install_sh
706 MAKEINFO
707 AUTOHEADER
708 AUTOMAKE
709 AUTOCONF
710 ACLOCAL
711 VERSION
712 PACKAGE
713 CYGPATH_W
714 am__isrc
715 INSTALL_DATA
716 INSTALL_SCRIPT
717 INSTALL_PROGRAM
718 target_alias
719 host_alias
720 build_alias
721 LIBS
722 ECHO_T
723 ECHO_N
724 ECHO_C
725 DEFS
726 mandir
727 localedir
728 libdir
729 psdir
730 pdfdir
731 dvidir
732 htmldir
733 infodir
734 docdir
735 oldincludedir
736 includedir
737 localstatedir
738 sharedstatedir
739 sysconfdir
740 datadir
741 datarootdir
742 libexecdir
743 sbindir
744 bindir
745 program_transform_name
746 prefix
747 exec_prefix
748 PACKAGE_URL
749 PACKAGE_BUGREPORT
750 PACKAGE_STRING
751 PACKAGE_VERSION
752 PACKAGE_TARNAME
753 PACKAGE_NAME
754 PATH_SEPARATOR
755 SHELL'
756 ac_subst_files=''
757 ac_user_opts='
758 enable_option_checking
759 enable_silent_rules
760 enable_dependency_tracking
761 enable_selective_werror
762 enable_strict_compilation
763 with_appdefaultdir
764 '
765 ac_precious_vars='build_alias
766 host_alias
767 target_alias
768 CC
769 CFLAGS
770 LDFLAGS
771 LIBS
772 CPPFLAGS
773 CPP
774 PKG_CONFIG
775 PKG_CONFIG_PATH
776 PKG_CONFIG_LIBDIR
777 BMTOA_CFLAGS
778 BMTOA_LIBS
779 ATOBM_CFLAGS
780 ATOBM_LIBS
781 BITMAP_CFLAGS
782 BITMAP_LIBS
783 APPDEFS_CFLAGS
784 APPDEFS_LIBS'
785
786
787 # Initialize some variables set by options.
788 ac_init_help=
789 ac_init_version=false
790 ac_unrecognized_opts=
791 ac_unrecognized_sep=
792 # The variables have the same names as the options, with
793 # dashes changed to underlines.
794 cache_file=/dev/null
795 exec_prefix=NONE
796 no_create=
797 no_recursion=
798 prefix=NONE
799 program_prefix=NONE
800 program_suffix=NONE
801 program_transform_name=s,x,x,
802 silent=
803 site=
804 srcdir=
805 verbose=
806 x_includes=NONE
807 x_libraries=NONE
808
809 # Installation directory options.
810 # These are left unexpanded so users can "make install exec_prefix=/foo"
811 # and all the variables that are supposed to be based on exec_prefix
812 # by default will actually change.
813 # Use braces instead of parens because sh, perl, etc. also accept them.
814 # (The list follows the same order as the GNU Coding Standards.)
815 bindir='${exec_prefix}/bin'
816 sbindir='${exec_prefix}/sbin'
817 libexecdir='${exec_prefix}/libexec'
818 datarootdir='${prefix}/share'
819 datadir='${datarootdir}'
820 sysconfdir='${prefix}/etc'
821 sharedstatedir='${prefix}/com'
822 localstatedir='${prefix}/var'
823 includedir='${prefix}/include'
824 oldincludedir='/usr/include'
825 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826 infodir='${datarootdir}/info'
827 htmldir='${docdir}'
828 dvidir='${docdir}'
829 pdfdir='${docdir}'
830 psdir='${docdir}'
831 libdir='${exec_prefix}/lib'
832 localedir='${datarootdir}/locale'
833 mandir='${datarootdir}/man'
834
835 ac_prev=
836 ac_dashdash=
837 for ac_option
838 do
839 # If the previous option needs an argument, assign it.
840 if test -n "$ac_prev"; then
841 eval $ac_prev=\$ac_option
842 ac_prev=
843 continue
844 fi
845
846 case $ac_option in
847 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848 *=) ac_optarg= ;;
849 *) ac_optarg=yes ;;
850 esac
851
852 # Accept the important Cygnus configure options, so we can diagnose typos.
853
854 case $ac_dashdash$ac_option in
855 --)
856 ac_dashdash=yes ;;
857
858 -bindir | --bindir | --bindi | --bind | --bin | --bi)
859 ac_prev=bindir ;;
860 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861 bindir=$ac_optarg ;;
862
863 -build | --build | --buil | --bui | --bu)
864 ac_prev=build_alias ;;
865 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866 build_alias=$ac_optarg ;;
867
868 -cache-file | --cache-file | --cache-fil | --cache-fi \
869 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870 ac_prev=cache_file ;;
871 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
873 cache_file=$ac_optarg ;;
874
875 --config-cache | -C)
876 cache_file=config.cache ;;
877
878 -datadir | --datadir | --datadi | --datad)
879 ac_prev=datadir ;;
880 -datadir=* | --datadir=* | --datadi=* | --datad=*)
881 datadir=$ac_optarg ;;
882
883 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884 | --dataroo | --dataro | --datar)
885 ac_prev=datarootdir ;;
886 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888 datarootdir=$ac_optarg ;;
889
890 -disable-* | --disable-*)
891 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894 as_fn_error $? "invalid feature name: $ac_useropt"
895 ac_useropt_orig=$ac_useropt
896 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897 case $ac_user_opts in
898 *"
899 "enable_$ac_useropt"
900 "*) ;;
901 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
902 ac_unrecognized_sep=', ';;
903 esac
904 eval enable_$ac_useropt=no ;;
905
906 -docdir | --docdir | --docdi | --doc | --do)
907 ac_prev=docdir ;;
908 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909 docdir=$ac_optarg ;;
910
911 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
912 ac_prev=dvidir ;;
913 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914 dvidir=$ac_optarg ;;
915
916 -enable-* | --enable-*)
917 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error $? "invalid feature name: $ac_useropt"
921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
924 *"
925 "enable_$ac_useropt"
926 "*) ;;
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
929 esac
930 eval enable_$ac_useropt=\$ac_optarg ;;
931
932 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934 | --exec | --exe | --ex)
935 ac_prev=exec_prefix ;;
936 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938 | --exec=* | --exe=* | --ex=*)
939 exec_prefix=$ac_optarg ;;
940
941 -gas | --gas | --ga | --g)
942 # Obsolete; use --with-gas.
943 with_gas=yes ;;
944
945 -help | --help | --hel | --he | -h)
946 ac_init_help=long ;;
947 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948 ac_init_help=recursive ;;
949 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950 ac_init_help=short ;;
951
952 -host | --host | --hos | --ho)
953 ac_prev=host_alias ;;
954 -host=* | --host=* | --hos=* | --ho=*)
955 host_alias=$ac_optarg ;;
956
957 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958 ac_prev=htmldir ;;
959 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960 | --ht=*)
961 htmldir=$ac_optarg ;;
962
963 -includedir | --includedir | --includedi | --included | --include \
964 | --includ | --inclu | --incl | --inc)
965 ac_prev=includedir ;;
966 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967 | --includ=* | --inclu=* | --incl=* | --inc=*)
968 includedir=$ac_optarg ;;
969
970 -infodir | --infodir | --infodi | --infod | --info | --inf)
971 ac_prev=infodir ;;
972 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973 infodir=$ac_optarg ;;
974
975 -libdir | --libdir | --libdi | --libd)
976 ac_prev=libdir ;;
977 -libdir=* | --libdir=* | --libdi=* | --libd=*)
978 libdir=$ac_optarg ;;
979
980 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981 | --libexe | --libex | --libe)
982 ac_prev=libexecdir ;;
983 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984 | --libexe=* | --libex=* | --libe=*)
985 libexecdir=$ac_optarg ;;
986
987 -localedir | --localedir | --localedi | --localed | --locale)
988 ac_prev=localedir ;;
989 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990 localedir=$ac_optarg ;;
991
992 -localstatedir | --localstatedir | --localstatedi | --localstated \
993 | --localstate | --localstat | --localsta | --localst | --locals)
994 ac_prev=localstatedir ;;
995 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997 localstatedir=$ac_optarg ;;
998
999 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000 ac_prev=mandir ;;
1001 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002 mandir=$ac_optarg ;;
1003
1004 -nfp | --nfp | --nf)
1005 # Obsolete; use --without-fp.
1006 with_fp=no ;;
1007
1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009 | --no-cr | --no-c | -n)
1010 no_create=yes ;;
1011
1012 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014 no_recursion=yes ;;
1015
1016 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018 | --oldin | --oldi | --old | --ol | --o)
1019 ac_prev=oldincludedir ;;
1020 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023 oldincludedir=$ac_optarg ;;
1024
1025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026 ac_prev=prefix ;;
1027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028 prefix=$ac_optarg ;;
1029
1030 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031 | --program-pre | --program-pr | --program-p)
1032 ac_prev=program_prefix ;;
1033 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035 program_prefix=$ac_optarg ;;
1036
1037 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038 | --program-suf | --program-su | --program-s)
1039 ac_prev=program_suffix ;;
1040 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042 program_suffix=$ac_optarg ;;
1043
1044 -program-transform-name | --program-transform-name \
1045 | --program-transform-nam | --program-transform-na \
1046 | --program-transform-n | --program-transform- \
1047 | --program-transform | --program-transfor \
1048 | --program-transfo | --program-transf \
1049 | --program-trans | --program-tran \
1050 | --progr-tra | --program-tr | --program-t)
1051 ac_prev=program_transform_name ;;
1052 -program-transform-name=* | --program-transform-name=* \
1053 | --program-transform-nam=* | --program-transform-na=* \
1054 | --program-transform-n=* | --program-transform-=* \
1055 | --program-transform=* | --program-transfor=* \
1056 | --program-transfo=* | --program-transf=* \
1057 | --program-trans=* | --program-tran=* \
1058 | --progr-tra=* | --program-tr=* | --program-t=*)
1059 program_transform_name=$ac_optarg ;;
1060
1061 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062 ac_prev=pdfdir ;;
1063 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064 pdfdir=$ac_optarg ;;
1065
1066 -psdir | --psdir | --psdi | --psd | --ps)
1067 ac_prev=psdir ;;
1068 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069 psdir=$ac_optarg ;;
1070
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1073 silent=yes ;;
1074
1075 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076 ac_prev=sbindir ;;
1077 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078 | --sbi=* | --sb=*)
1079 sbindir=$ac_optarg ;;
1080
1081 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083 | --sharedst | --shareds | --shared | --share | --shar \
1084 | --sha | --sh)
1085 ac_prev=sharedstatedir ;;
1086 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089 | --sha=* | --sh=*)
1090 sharedstatedir=$ac_optarg ;;
1091
1092 -site | --site | --sit)
1093 ac_prev=site ;;
1094 -site=* | --site=* | --sit=*)
1095 site=$ac_optarg ;;
1096
1097 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098 ac_prev=srcdir ;;
1099 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100 srcdir=$ac_optarg ;;
1101
1102 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103 | --syscon | --sysco | --sysc | --sys | --sy)
1104 ac_prev=sysconfdir ;;
1105 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107 sysconfdir=$ac_optarg ;;
1108
1109 -target | --target | --targe | --targ | --tar | --ta | --t)
1110 ac_prev=target_alias ;;
1111 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112 target_alias=$ac_optarg ;;
1113
1114 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115 verbose=yes ;;
1116
1117 -version | --version | --versio | --versi | --vers | -V)
1118 ac_init_version=: ;;
1119
1120 -with-* | --with-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error $? "invalid package name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1128 *"
1129 "with_$ac_useropt"
1130 "*) ;;
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1133 esac
1134 eval with_$ac_useropt=\$ac_optarg ;;
1135
1136 -without-* | --without-*)
1137 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 as_fn_error $? "invalid package name: $ac_useropt"
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1144 *"
1145 "with_$ac_useropt"
1146 "*) ;;
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1149 esac
1150 eval with_$ac_useropt=no ;;
1151
1152 --x)
1153 # Obsolete; use --with-x.
1154 with_x=yes ;;
1155
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1162
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1169
1170 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1171 Try \`$0 --help' for more information"
1172 ;;
1173
1174 *=*)
1175 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176 # Reject names that are not valid shell variable names.
1177 case $ac_envvar in #(
1178 '' | [0-9]* | *[!_$as_cr_alnum]* )
1179 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1180 esac
1181 eval $ac_envvar=\$ac_optarg
1182 export $ac_envvar ;;
1183
1184 *)
1185 # FIXME: should be removed in autoconf 3.0.
1186 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1190 ;;
1191
1192 esac
1193 done
1194
1195 if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197 as_fn_error $? "missing argument to $ac_option"
1198 fi
1199
1200 if test -n "$ac_unrecognized_opts"; then
1201 case $enable_option_checking in
1202 no) ;;
1203 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1204 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1205 esac
1206 fi
1207
1208 # Check all directory arguments for consistency.
1209 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210 datadir sysconfdir sharedstatedir localstatedir includedir \
1211 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212 libdir localedir mandir
1213 do
1214 eval ac_val=\$$ac_var
1215 # Remove trailing slashes.
1216 case $ac_val in
1217 */ )
1218 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1219 eval $ac_var=\$ac_val;;
1220 esac
1221 # Be sure to have absolute directory names.
1222 case $ac_val in
1223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225 esac
1226 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1227 done
1228
1229 # There might be people who depend on the old broken behavior: `$host'
1230 # used to hold the argument of --host etc.
1231 # FIXME: To remove some day.
1232 build=$build_alias
1233 host=$host_alias
1234 target=$target_alias
1235
1236 # FIXME: To remove some day.
1237 if test "x$host_alias" != x; then
1238 if test "x$build_alias" = x; then
1239 cross_compiling=maybe
1240 elif test "x$build_alias" != "x$host_alias"; then
1241 cross_compiling=yes
1242 fi
1243 fi
1244
1245 ac_tool_prefix=
1246 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1247
1248 test "$silent" = yes && exec 6>/dev/null
1249
1250
1251 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di=`ls -di .` &&
1253 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254 as_fn_error $? "working directory cannot be determined"
1255 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1256 as_fn_error $? "pwd does not report name of working directory"
1257
1258
1259 # Find the source files, if location was not specified.
1260 if test -z "$srcdir"; then
1261 ac_srcdir_defaulted=yes
1262 # Try the directory containing this script, then the parent directory.
1263 ac_confdir=`$as_dirname -- "$as_myself" ||
1264 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265 X"$as_myself" : 'X\(//\)[^/]' \| \
1266 X"$as_myself" : 'X\(//\)$' \| \
1267 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1268 $as_echo X"$as_myself" |
1269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)[^/].*/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\/\)$/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\).*/{
1282 s//\1/
1283 q
1284 }
1285 s/.*/./; q'`
1286 srcdir=$ac_confdir
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 srcdir=..
1289 fi
1290 else
1291 ac_srcdir_defaulted=no
1292 fi
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1295 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1296 fi
1297 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1298 ac_abs_confdir=`(
1299 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1300 pwd)`
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1303 srcdir=.
1304 fi
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1308 case $srcdir in
1309 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310 esac
1311 for ac_var in $ac_precious_vars; do
1312 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_env_${ac_var}_value=\$${ac_var}
1314 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316 done
1317
1318 #
1319 # Report the --help message.
1320 #
1321 if test "$ac_init_help" = "long"; then
1322 # Omit some internal or obsolete options to make the list less imposing.
1323 # This message is too long to be a string in the A/UX 3.1 sh.
1324 cat <<_ACEOF
1325 \`configure' configures bitmap 1.0.9 to adapt to many kinds of systems.
1326
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1328
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE. See below for descriptions of some of the useful variables.
1331
1332 Defaults for the options are specified in brackets.
1333
1334 Configuration:
1335 -h, --help display this help and exit
1336 --help=short display options specific to this package
1337 --help=recursive display the short help of all the included packages
1338 -V, --version display version information and exit
1339 -q, --quiet, --silent do not print \`checking ...' messages
1340 --cache-file=FILE cache test results in FILE [disabled]
1341 -C, --config-cache alias for \`--cache-file=config.cache'
1342 -n, --no-create do not create output files
1343 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1344
1345 Installation directories:
1346 --prefix=PREFIX install architecture-independent files in PREFIX
1347 [$ac_default_prefix]
1348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1349 [PREFIX]
1350
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1355
1356 For better control, use the options below.
1357
1358 Fine tuning of the installation directories:
1359 --bindir=DIR user executables [EPREFIX/bin]
1360 --sbindir=DIR system admin executables [EPREFIX/sbin]
1361 --libexecdir=DIR program executables [EPREFIX/libexec]
1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
1373 --docdir=DIR documentation root [DATAROOTDIR/doc/bitmap]
1374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
1378 _ACEOF
1379
1380 cat <<\_ACEOF
1381
1382 Program names:
1383 --program-prefix=PREFIX prepend PREFIX to installed program names
1384 --program-suffix=SUFFIX append SUFFIX to installed program names
1385 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1386
1387 System types:
1388 --build=BUILD configure for building on BUILD [guessed]
1389 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1390 _ACEOF
1391 fi
1392
1393 if test -n "$ac_init_help"; then
1394 case $ac_init_help in
1395 short | recursive ) echo "Configuration of bitmap 1.0.9:";;
1396 esac
1397 cat <<\_ACEOF
1398
1399 Optional Features:
1400 --disable-option-checking ignore unrecognized --enable/--with options
1401 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1402 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1403 --enable-silent-rules less verbose build output (undo: "make V=1")
1404 --disable-silent-rules verbose build output (undo: "make V=0")
1405 --enable-dependency-tracking
1406 do not reject slow dependency extractors
1407 --disable-dependency-tracking
1408 speeds up one-time build
1409 --disable-selective-werror
1410 Turn off selective compiler errors. (default:
1411 enabled)
1412 --enable-strict-compilation
1413 Enable all warnings from compiler and make them
1414 errors (default: disabled)
1415
1416 Optional Packages:
1417 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1418 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1419 --with-appdefaultdir=<pathname>
1420 specify directory for app-defaults files (default is
1421 autodetected)
1422
1423 Some influential environment variables:
1424 CC C compiler command
1425 CFLAGS C compiler flags
1426 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1427 nonstandard directory <lib dir>
1428 LIBS libraries to pass to the linker, e.g. -l<library>
1429 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1430 you have headers in a nonstandard directory <include dir>
1431 CPP C preprocessor
1432 PKG_CONFIG path to pkg-config utility
1433 PKG_CONFIG_PATH
1434 directories to add to pkg-config's search path
1435 PKG_CONFIG_LIBDIR
1436 path overriding pkg-config's built-in search path
1437 BMTOA_CFLAGS
1438 C compiler flags for BMTOA, overriding pkg-config
1439 BMTOA_LIBS linker flags for BMTOA, overriding pkg-config
1440 ATOBM_CFLAGS
1441 C compiler flags for ATOBM, overriding pkg-config
1442 ATOBM_LIBS linker flags for ATOBM, overriding pkg-config
1443 BITMAP_CFLAGS
1444 C compiler flags for BITMAP, overriding pkg-config
1445 BITMAP_LIBS linker flags for BITMAP, overriding pkg-config
1446 APPDEFS_CFLAGS
1447 C compiler flags for APPDEFS, overriding pkg-config
1448 APPDEFS_LIBS
1449 linker flags for APPDEFS, overriding pkg-config
1450
1451 Use these variables to override the choices made by `configure' or to help
1452 it to find libraries and programs with nonstandard names/locations.
1453
1454 Report bugs to <https://gitlab.freedesktop.org/xorg/app/bitmap/issues>.
1455 _ACEOF
1456 ac_status=$?
1457 fi
1458
1459 if test "$ac_init_help" = "recursive"; then
1460 # If there are subdirs, report their specific --help.
1461 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1462 test -d "$ac_dir" ||
1463 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1464 continue
1465 ac_builddir=.
1466
1467 case "$ac_dir" in
1468 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469 *)
1470 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1471 # A ".." for each directory in $ac_dir_suffix.
1472 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1473 case $ac_top_builddir_sub in
1474 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1476 esac ;;
1477 esac
1478 ac_abs_top_builddir=$ac_pwd
1479 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1480 # for backward compatibility:
1481 ac_top_builddir=$ac_top_build_prefix
1482
1483 case $srcdir in
1484 .) # We are building in place.
1485 ac_srcdir=.
1486 ac_top_srcdir=$ac_top_builddir_sub
1487 ac_abs_top_srcdir=$ac_pwd ;;
1488 [\\/]* | ?:[\\/]* ) # Absolute name.
1489 ac_srcdir=$srcdir$ac_dir_suffix;
1490 ac_top_srcdir=$srcdir
1491 ac_abs_top_srcdir=$srcdir ;;
1492 *) # Relative name.
1493 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1494 ac_top_srcdir=$ac_top_build_prefix$srcdir
1495 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1496 esac
1497 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1498
1499 cd "$ac_dir" || { ac_status=$?; continue; }
1500 # Check for guested configure.
1501 if test -f "$ac_srcdir/configure.gnu"; then
1502 echo &&
1503 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504 elif test -f "$ac_srcdir/configure"; then
1505 echo &&
1506 $SHELL "$ac_srcdir/configure" --help=recursive
1507 else
1508 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509 fi || ac_status=$?
1510 cd "$ac_pwd" || { ac_status=$?; break; }
1511 done
1512 fi
1513
1514 test -n "$ac_init_help" && exit $ac_status
1515 if $ac_init_version; then
1516 cat <<\_ACEOF
1517 bitmap configure 1.0.9
1518 generated by GNU Autoconf 2.69
1519
1520 Copyright (C) 2012 Free Software Foundation, Inc.
1521 This configure script is free software; the Free Software Foundation
1522 gives unlimited permission to copy, distribute and modify it.
1523 _ACEOF
1524 exit
1525 fi
1526
1527 ## ------------------------ ##
1528 ## Autoconf initialization. ##
1529 ## ------------------------ ##
1530
1531 # ac_fn_c_try_compile LINENO
1532 # --------------------------
1533 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1534 ac_fn_c_try_compile ()
1535 {
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 rm -f conftest.$ac_objext
1538 if { { ac_try="$ac_compile"
1539 case "(($ac_try" in
1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1542 esac
1543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544 $as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_compile") 2>conftest.err
1546 ac_status=$?
1547 if test -s conftest.err; then
1548 grep -v '^ *+' conftest.err >conftest.er1
1549 cat conftest.er1 >&5
1550 mv -f conftest.er1 conftest.err
1551 fi
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } && {
1554 test -z "$ac_c_werror_flag" ||
1555 test ! -s conftest.err
1556 } && test -s conftest.$ac_objext; then :
1557 ac_retval=0
1558 else
1559 $as_echo "$as_me: failed program was:" >&5
1560 sed 's/^/| /' conftest.$ac_ext >&5
1561
1562 ac_retval=1
1563 fi
1564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565 as_fn_set_status $ac_retval
1566
1567 } # ac_fn_c_try_compile
1568
1569 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1570 # ---------------------------------------------
1571 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1572 # accordingly.
1573 ac_fn_c_check_decl ()
1574 {
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 as_decl_name=`echo $2|sed 's/ *(.*//'`
1577 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1579 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1580 if eval \${$3+:} false; then :
1581 $as_echo_n "(cached) " >&6
1582 else
1583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1584 /* end confdefs.h. */
1585 $4
1586 int
1587 main ()
1588 {
1589 #ifndef $as_decl_name
1590 #ifdef __cplusplus
1591 (void) $as_decl_use;
1592 #else
1593 (void) $as_decl_name;
1594 #endif
1595 #endif
1596
1597 ;
1598 return 0;
1599 }
1600 _ACEOF
1601 if ac_fn_c_try_compile "$LINENO"; then :
1602 eval "$3=yes"
1603 else
1604 eval "$3=no"
1605 fi
1606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1607 fi
1608 eval ac_res=\$$3
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1610 $as_echo "$ac_res" >&6; }
1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612
1613 } # ac_fn_c_check_decl
1614
1615 # ac_fn_c_try_cpp LINENO
1616 # ----------------------
1617 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_c_try_cpp ()
1619 {
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 if { { ac_try="$ac_cpp conftest.$ac_ext"
1622 case "(($ac_try" in
1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1625 esac
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1629 ac_status=$?
1630 if test -s conftest.err; then
1631 grep -v '^ *+' conftest.err >conftest.er1
1632 cat conftest.er1 >&5
1633 mv -f conftest.er1 conftest.err
1634 fi
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } > conftest.i && {
1637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1638 test ! -s conftest.err
1639 }; then :
1640 ac_retval=0
1641 else
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1644
1645 ac_retval=1
1646 fi
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1649
1650 } # ac_fn_c_try_cpp
1651
1652 # ac_fn_c_try_run LINENO
1653 # ----------------------
1654 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1655 # that executables *can* be run.
1656 ac_fn_c_try_run ()
1657 {
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 if { { ac_try="$ac_link"
1660 case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_link") 2>&5
1667 ac_status=$?
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1670 { { case "(($ac_try" in
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1673 esac
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_try") 2>&5
1677 ac_status=$?
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; }; }; then :
1680 ac_retval=0
1681 else
1682 $as_echo "$as_me: program exited with status $ac_status" >&5
1683 $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1685
1686 ac_retval=$ac_status
1687 fi
1688 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 as_fn_set_status $ac_retval
1691
1692 } # ac_fn_c_try_run
1693
1694 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1695 # -------------------------------------------------------
1696 # Tests whether HEADER exists and can be compiled using the include files in
1697 # INCLUDES, setting the cache variable VAR accordingly.
1698 ac_fn_c_check_header_compile ()
1699 {
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702 $as_echo_n "checking for $2... " >&6; }
1703 if eval \${$3+:} false; then :
1704 $as_echo_n "(cached) " >&6
1705 else
1706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707 /* end confdefs.h. */
1708 $4
1709 #include <$2>
1710 _ACEOF
1711 if ac_fn_c_try_compile "$LINENO"; then :
1712 eval "$3=yes"
1713 else
1714 eval "$3=no"
1715 fi
1716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1717 fi
1718 eval ac_res=\$$3
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720 $as_echo "$ac_res" >&6; }
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722
1723 } # ac_fn_c_check_header_compile
1724
1725 # ac_fn_c_try_link LINENO
1726 # -----------------------
1727 # Try to link conftest.$ac_ext, and return whether this succeeded.
1728 ac_fn_c_try_link ()
1729 {
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 rm -f conftest.$ac_objext conftest$ac_exeext
1732 if { { ac_try="$ac_link"
1733 case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_link") 2>conftest.err
1740 ac_status=$?
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1745 fi
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && {
1748 test -z "$ac_c_werror_flag" ||
1749 test ! -s conftest.err
1750 } && test -s conftest$ac_exeext && {
1751 test "$cross_compiling" = yes ||
1752 test -x conftest$ac_exeext
1753 }; then :
1754 ac_retval=0
1755 else
1756 $as_echo "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.$ac_ext >&5
1758
1759 ac_retval=1
1760 fi
1761 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1762 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1763 # interfere with the next link command; also delete a directory that is
1764 # left behind by Apple's compiler. We do this before executing the actions.
1765 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status $ac_retval
1768
1769 } # ac_fn_c_try_link
1770
1771 # ac_fn_c_check_func LINENO FUNC VAR
1772 # ----------------------------------
1773 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1774 ac_fn_c_check_func ()
1775 {
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if eval \${$3+:} false; then :
1780 $as_echo_n "(cached) " >&6
1781 else
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h. */
1784 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1786 #define $2 innocuous_$2
1787
1788 /* System header to define __stub macros and hopefully few prototypes,
1789 which can conflict with char $2 (); below.
1790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1791 <limits.h> exists even on freestanding compilers. */
1792
1793 #ifdef __STDC__
1794 # include <limits.h>
1795 #else
1796 # include <assert.h>
1797 #endif
1798
1799 #undef $2
1800
1801 /* Override any GCC internal prototype to avoid an error.
1802 Use char because int might match the return type of a GCC
1803 builtin and then its argument prototype would still apply. */
1804 #ifdef __cplusplus
1805 extern "C"
1806 #endif
1807 char $2 ();
1808 /* The GNU C library defines this for functions which it implements
1809 to always fail with ENOSYS. Some functions are actually named
1810 something starting with __ and the normal name is an alias. */
1811 #if defined __stub_$2 || defined __stub___$2
1812 choke me
1813 #endif
1814
1815 int
1816 main ()
1817 {
1818 return $2 ();
1819 ;
1820 return 0;
1821 }
1822 _ACEOF
1823 if ac_fn_c_try_link "$LINENO"; then :
1824 eval "$3=yes"
1825 else
1826 eval "$3=no"
1827 fi
1828 rm -f core conftest.err conftest.$ac_objext \
1829 conftest$ac_exeext conftest.$ac_ext
1830 fi
1831 eval ac_res=\$$3
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835
1836 } # ac_fn_c_check_func
1837 cat >config.log <<_ACEOF
1838 This file contains any messages produced by compilers while
1839 running configure, to aid debugging if configure makes a mistake.
1840
1841 It was created by bitmap $as_me 1.0.9, which was
1842 generated by GNU Autoconf 2.69. Invocation command line was
1843
1844 $ $0 $@
1845
1846 _ACEOF
1847 exec 5>>config.log
1848 {
1849 cat <<_ASUNAME
1850 ## --------- ##
1851 ## Platform. ##
1852 ## --------- ##
1853
1854 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1855 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1856 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1857 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1858 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1859
1860 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1861 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1862
1863 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1864 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1865 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1866 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1867 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1868 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1869 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1870
1871 _ASUNAME
1872
1873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874 for as_dir in $PATH
1875 do
1876 IFS=$as_save_IFS
1877 test -z "$as_dir" && as_dir=.
1878 $as_echo "PATH: $as_dir"
1879 done
1880 IFS=$as_save_IFS
1881
1882 } >&5
1883
1884 cat >&5 <<_ACEOF
1885
1886
1887 ## ----------- ##
1888 ## Core tests. ##
1889 ## ----------- ##
1890
1891 _ACEOF
1892
1893
1894 # Keep a trace of the command line.
1895 # Strip out --no-create and --no-recursion so they do not pile up.
1896 # Strip out --silent because we don't want to record it for future runs.
1897 # Also quote any args containing shell meta-characters.
1898 # Make two passes to allow for proper duplicate-argument suppression.
1899 ac_configure_args=
1900 ac_configure_args0=
1901 ac_configure_args1=
1902 ac_must_keep_next=false
1903 for ac_pass in 1 2
1904 do
1905 for ac_arg
1906 do
1907 case $ac_arg in
1908 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1909 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1910 | -silent | --silent | --silen | --sile | --sil)
1911 continue ;;
1912 *\'*)
1913 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1914 esac
1915 case $ac_pass in
1916 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1917 2)
1918 as_fn_append ac_configure_args1 " '$ac_arg'"
1919 if test $ac_must_keep_next = true; then
1920 ac_must_keep_next=false # Got value, back to normal.
1921 else
1922 case $ac_arg in
1923 *=* | --config-cache | -C | -disable-* | --disable-* \
1924 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1925 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1926 | -with-* | --with-* | -without-* | --without-* | --x)
1927 case "$ac_configure_args0 " in
1928 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1929 esac
1930 ;;
1931 -* ) ac_must_keep_next=true ;;
1932 esac
1933 fi
1934 as_fn_append ac_configure_args " '$ac_arg'"
1935 ;;
1936 esac
1937 done
1938 done
1939 { ac_configure_args0=; unset ac_configure_args0;}
1940 { ac_configure_args1=; unset ac_configure_args1;}
1941
1942 # When interrupted or exit'd, cleanup temporary files, and complete
1943 # config.log. We remove comments because anyway the quotes in there
1944 # would cause problems or look ugly.
1945 # WARNING: Use '\'' to represent an apostrophe within the trap.
1946 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1947 trap 'exit_status=$?
1948 # Save into config.log some information that might help in debugging.
1949 {
1950 echo
1951
1952 $as_echo "## ---------------- ##
1953 ## Cache variables. ##
1954 ## ---------------- ##"
1955 echo
1956 # The following way of writing the cache mishandles newlines in values,
1957 (
1958 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1959 eval ac_val=\$$ac_var
1960 case $ac_val in #(
1961 *${as_nl}*)
1962 case $ac_var in #(
1963 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1964 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1965 esac
1966 case $ac_var in #(
1967 _ | IFS | as_nl) ;; #(
1968 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1969 *) { eval $ac_var=; unset $ac_var;} ;;
1970 esac ;;
1971 esac
1972 done
1973 (set) 2>&1 |
1974 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1975 *${as_nl}ac_space=\ *)
1976 sed -n \
1977 "s/'\''/'\''\\\\'\'''\''/g;
1978 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1979 ;; #(
1980 *)
1981 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1982 ;;
1983 esac |
1984 sort
1985 )
1986 echo
1987
1988 $as_echo "## ----------------- ##
1989 ## Output variables. ##
1990 ## ----------------- ##"
1991 echo
1992 for ac_var in $ac_subst_vars
1993 do
1994 eval ac_val=\$$ac_var
1995 case $ac_val in
1996 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1997 esac
1998 $as_echo "$ac_var='\''$ac_val'\''"
1999 done | sort
2000 echo
2001
2002 if test -n "$ac_subst_files"; then
2003 $as_echo "## ------------------- ##
2004 ## File substitutions. ##
2005 ## ------------------- ##"
2006 echo
2007 for ac_var in $ac_subst_files
2008 do
2009 eval ac_val=\$$ac_var
2010 case $ac_val in
2011 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2012 esac
2013 $as_echo "$ac_var='\''$ac_val'\''"
2014 done | sort
2015 echo
2016 fi
2017
2018 if test -s confdefs.h; then
2019 $as_echo "## ----------- ##
2020 ## confdefs.h. ##
2021 ## ----------- ##"
2022 echo
2023 cat confdefs.h
2024 echo
2025 fi
2026 test "$ac_signal" != 0 &&
2027 $as_echo "$as_me: caught signal $ac_signal"
2028 $as_echo "$as_me: exit $exit_status"
2029 } >&5
2030 rm -f core *.core core.conftest.* &&
2031 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2032 exit $exit_status
2033 ' 0
2034 for ac_signal in 1 2 13 15; do
2035 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2036 done
2037 ac_signal=0
2038
2039 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2040 rm -f -r conftest* confdefs.h
2041
2042 $as_echo "/* confdefs.h */" > confdefs.h
2043
2044 # Predefined preprocessor variables.
2045
2046 cat >>confdefs.h <<_ACEOF
2047 #define PACKAGE_NAME "$PACKAGE_NAME"
2048 _ACEOF
2049
2050 cat >>confdefs.h <<_ACEOF
2051 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2052 _ACEOF
2053
2054 cat >>confdefs.h <<_ACEOF
2055 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2056 _ACEOF
2057
2058 cat >>confdefs.h <<_ACEOF
2059 #define PACKAGE_STRING "$PACKAGE_STRING"
2060 _ACEOF
2061
2062 cat >>confdefs.h <<_ACEOF
2063 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2064 _ACEOF
2065
2066 cat >>confdefs.h <<_ACEOF
2067 #define PACKAGE_URL "$PACKAGE_URL"
2068 _ACEOF
2069
2070
2071 # Let the site file select an alternate cache file if it wants to.
2072 # Prefer an explicitly selected file to automatically selected ones.
2073 ac_site_file1=NONE
2074 ac_site_file2=NONE
2075 if test -n "$CONFIG_SITE"; then
2076 # We do not want a PATH search for config.site.
2077 case $CONFIG_SITE in #((
2078 -*) ac_site_file1=./$CONFIG_SITE;;
2079 */*) ac_site_file1=$CONFIG_SITE;;
2080 *) ac_site_file1=./$CONFIG_SITE;;
2081 esac
2082 elif test "x$prefix" != xNONE; then
2083 ac_site_file1=$prefix/share/config.site
2084 ac_site_file2=$prefix/etc/config.site
2085 else
2086 ac_site_file1=$ac_default_prefix/share/config.site
2087 ac_site_file2=$ac_default_prefix/etc/config.site
2088 fi
2089 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2090 do
2091 test "x$ac_site_file" = xNONE && continue
2092 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2094 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2095 sed 's/^/| /' "$ac_site_file" >&5
2096 . "$ac_site_file" \
2097 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2099 as_fn_error $? "failed to load site script $ac_site_file
2100 See \`config.log' for more details" "$LINENO" 5; }
2101 fi
2102 done
2103
2104 if test -r "$cache_file"; then
2105 # Some versions of bash will fail to source /dev/null (special files
2106 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2107 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2109 $as_echo "$as_me: loading cache $cache_file" >&6;}
2110 case $cache_file in
2111 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2112 *) . "./$cache_file";;
2113 esac
2114 fi
2115 else
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2117 $as_echo "$as_me: creating cache $cache_file" >&6;}
2118 >$cache_file
2119 fi
2120
2121 # Check that the precious variables saved in the cache have kept the same
2122 # value.
2123 ac_cache_corrupted=false
2124 for ac_var in $ac_precious_vars; do
2125 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2126 eval ac_new_set=\$ac_env_${ac_var}_set
2127 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2128 eval ac_new_val=\$ac_env_${ac_var}_value
2129 case $ac_old_set,$ac_new_set in
2130 set,)
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2132 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2133 ac_cache_corrupted=: ;;
2134 ,set)
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2136 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2137 ac_cache_corrupted=: ;;
2138 ,);;
2139 *)
2140 if test "x$ac_old_val" != "x$ac_new_val"; then
2141 # differences in whitespace do not lead to failure.
2142 ac_old_val_w=`echo x $ac_old_val`
2143 ac_new_val_w=`echo x $ac_new_val`
2144 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2146 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2147 ac_cache_corrupted=:
2148 else
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2150 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2151 eval $ac_var=\$ac_old_val
2152 fi
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2154 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2156 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2157 fi;;
2158 esac
2159 # Pass precious variables to config.status.
2160 if test "$ac_new_set" = set; then
2161 case $ac_new_val in
2162 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2163 *) ac_arg=$ac_var=$ac_new_val ;;
2164 esac
2165 case " $ac_configure_args " in
2166 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2167 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2168 esac
2169 fi
2170 done
2171 if $ac_cache_corrupted; then
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2175 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2176 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2177 fi
2178 ## -------------------- ##
2179 ## Main body of script. ##
2180 ## -------------------- ##
2181
2182 ac_ext=c
2183 ac_cpp='$CPP $CPPFLAGS'
2184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2187
2188
2189
2190 ac_config_headers="$ac_config_headers config.h"
2191
2192
2193 # Initialize Automake
2194 am__api_version='1.15'
2195
2196 ac_aux_dir=
2197 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2198 if test -f "$ac_dir/install-sh"; then
2199 ac_aux_dir=$ac_dir
2200 ac_install_sh="$ac_aux_dir/install-sh -c"
2201 break
2202 elif test -f "$ac_dir/install.sh"; then
2203 ac_aux_dir=$ac_dir
2204 ac_install_sh="$ac_aux_dir/install.sh -c"
2205 break
2206 elif test -f "$ac_dir/shtool"; then
2207 ac_aux_dir=$ac_dir
2208 ac_install_sh="$ac_aux_dir/shtool install -c"
2209 break
2210 fi
2211 done
2212 if test -z "$ac_aux_dir"; then
2213 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2214 fi
2215
2216 # These three variables are undocumented and unsupported,
2217 # and are intended to be withdrawn in a future Autoconf release.
2218 # They can cause serious problems if a builder's source tree is in a directory
2219 # whose full name contains unusual characters.
2220 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2221 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2222 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2223
2224
2225 # Find a good install program. We prefer a C program (faster),
2226 # so one script is as good as another. But avoid the broken or
2227 # incompatible versions:
2228 # SysV /etc/install, /usr/sbin/install
2229 # SunOS /usr/etc/install
2230 # IRIX /sbin/install
2231 # AIX /bin/install
2232 # AmigaOS /C/install, which installs bootblocks on floppy discs
2233 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2234 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2235 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2236 # OS/2's system install, which has a completely different semantic
2237 # ./install, which can be erroneously created by make from ./install.sh.
2238 # Reject install programs that cannot install multiple files.
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2240 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2241 if test -z "$INSTALL"; then
2242 if ${ac_cv_path_install+:} false; then :
2243 $as_echo_n "(cached) " >&6
2244 else
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246 for as_dir in $PATH
2247 do
2248 IFS=$as_save_IFS
2249 test -z "$as_dir" && as_dir=.
2250 # Account for people who put trailing slashes in PATH elements.
2251 case $as_dir/ in #((
2252 ./ | .// | /[cC]/* | \
2253 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2254 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2255 /usr/ucb/* ) ;;
2256 *)
2257 # OSF1 and SCO ODT 3.0 have their own names for install.
2258 # Don't use installbsd from OSF since it installs stuff as root
2259 # by default.
2260 for ac_prog in ginstall scoinst install; do
2261 for ac_exec_ext in '' $ac_executable_extensions; do
2262 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2263 if test $ac_prog = install &&
2264 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2265 # AIX install. It has an incompatible calling convention.
2266 :
2267 elif test $ac_prog = install &&
2268 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2269 # program-specific install script used by HP pwplus--don't use.
2270 :
2271 else
2272 rm -rf conftest.one conftest.two conftest.dir
2273 echo one > conftest.one
2274 echo two > conftest.two
2275 mkdir conftest.dir
2276 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2277 test -s conftest.one && test -s conftest.two &&
2278 test -s conftest.dir/conftest.one &&
2279 test -s conftest.dir/conftest.two
2280 then
2281 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2282 break 3
2283 fi
2284 fi
2285 fi
2286 done
2287 done
2288 ;;
2289 esac
2290
2291 done
2292 IFS=$as_save_IFS
2293
2294 rm -rf conftest.one conftest.two conftest.dir
2295
2296 fi
2297 if test "${ac_cv_path_install+set}" = set; then
2298 INSTALL=$ac_cv_path_install
2299 else
2300 # As a last resort, use the slow shell script. Don't cache a
2301 # value for INSTALL within a source directory, because that will
2302 # break other packages using the cache if that directory is
2303 # removed, or if the value is a relative name.
2304 INSTALL=$ac_install_sh
2305 fi
2306 fi
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2308 $as_echo "$INSTALL" >&6; }
2309
2310 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2311 # It thinks the first close brace ends the variable substitution.
2312 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2313
2314 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2315
2316 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2317
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2319 $as_echo_n "checking whether build environment is sane... " >&6; }
2320 # Reject unsafe characters in $srcdir or the absolute working directory
2321 # name. Accept space and tab only in the latter.
2322 am_lf='
2323 '
2324 case `pwd` in
2325 *[\\\"\#\$\&\'\`$am_lf]*)
2326 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2327 esac
2328 case $srcdir in
2329 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2330 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2331 esac
2332
2333 # Do 'set' in a subshell so we don't clobber the current shell's
2334 # arguments. Must try -L first in case configure is actually a
2335 # symlink; some systems play weird games with the mod time of symlinks
2336 # (eg FreeBSD returns the mod time of the symlink's containing
2337 # directory).
2338 if (
2339 am_has_slept=no
2340 for am_try in 1 2; do
2341 echo "timestamp, slept: $am_has_slept" > conftest.file
2342 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2343 if test "$*" = "X"; then
2344 # -L didn't work.
2345 set X `ls -t "$srcdir/configure" conftest.file`
2346 fi
2347 if test "$*" != "X $srcdir/configure conftest.file" \
2348 && test "$*" != "X conftest.file $srcdir/configure"; then
2349
2350 # If neither matched, then we have a broken ls. This can happen
2351 # if, for instance, CONFIG_SHELL is bash and it inherits a
2352 # broken ls alias from the environment. This has actually
2353 # happened. Such a system could not be considered "sane".
2354 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2355 alias in your environment" "$LINENO" 5
2356 fi
2357 if test "$2" = conftest.file || test $am_try -eq 2; then
2358 break
2359 fi
2360 # Just in case.
2361 sleep 1
2362 am_has_slept=yes
2363 done
2364 test "$2" = conftest.file
2365 )
2366 then
2367 # Ok.
2368 :
2369 else
2370 as_fn_error $? "newly created file is older than distributed files!
2371 Check your system clock" "$LINENO" 5
2372 fi
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2374 $as_echo "yes" >&6; }
2375 # If we didn't sleep, we still need to ensure time stamps of config.status and
2376 # generated files are strictly newer.
2377 am_sleep_pid=
2378 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2379 ( sleep 1 ) &
2380 am_sleep_pid=$!
2381 fi
2382
2383 rm -f conftest.file
2384
2385 test "$program_prefix" != NONE &&
2386 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2387 # Use a double $ so make ignores it.
2388 test "$program_suffix" != NONE &&
2389 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2390 # Double any \ or $.
2391 # By default was `s,x,x', remove it if useless.
2392 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2393 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2394
2395 # Expand $ac_aux_dir to an absolute path.
2396 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2397
2398 if test x"${MISSING+set}" != xset; then
2399 case $am_aux_dir in
2400 *\ * | *\ *)
2401 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2402 *)
2403 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2404 esac
2405 fi
2406 # Use eval to expand $SHELL
2407 if eval "$MISSING --is-lightweight"; then
2408 am_missing_run="$MISSING "
2409 else
2410 am_missing_run=
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2412 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2413 fi
2414
2415 if test x"${install_sh+set}" != xset; then
2416 case $am_aux_dir in
2417 *\ * | *\ *)
2418 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2419 *)
2420 install_sh="\${SHELL} $am_aux_dir/install-sh"
2421 esac
2422 fi
2423
2424 # Installed binaries are usually stripped using 'strip' when the user
2425 # run "make install-strip". However 'strip' might not be the right
2426 # tool to use in cross-compilation environments, therefore Automake
2427 # will honor the 'STRIP' environment variable to overrule this program.
2428 if test "$cross_compiling" != no; then
2429 if test -n "$ac_tool_prefix"; then
2430 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2431 set dummy ${ac_tool_prefix}strip; ac_word=$2
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2433 $as_echo_n "checking for $ac_word... " >&6; }
2434 if ${ac_cv_prog_STRIP+:} false; then :
2435 $as_echo_n "(cached) " >&6
2436 else
2437 if test -n "$STRIP"; then
2438 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2439 else
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 for as_dir in $PATH
2442 do
2443 IFS=$as_save_IFS
2444 test -z "$as_dir" && as_dir=.
2445 for ac_exec_ext in '' $ac_executable_extensions; do
2446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2447 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2449 break 2
2450 fi
2451 done
2452 done
2453 IFS=$as_save_IFS
2454
2455 fi
2456 fi
2457 STRIP=$ac_cv_prog_STRIP
2458 if test -n "$STRIP"; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2460 $as_echo "$STRIP" >&6; }
2461 else
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2463 $as_echo "no" >&6; }
2464 fi
2465
2466
2467 fi
2468 if test -z "$ac_cv_prog_STRIP"; then
2469 ac_ct_STRIP=$STRIP
2470 # Extract the first word of "strip", so it can be a program name with args.
2471 set dummy strip; ac_word=$2
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2473 $as_echo_n "checking for $ac_word... " >&6; }
2474 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2475 $as_echo_n "(cached) " >&6
2476 else
2477 if test -n "$ac_ct_STRIP"; then
2478 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2479 else
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 for as_dir in $PATH
2482 do
2483 IFS=$as_save_IFS
2484 test -z "$as_dir" && as_dir=.
2485 for ac_exec_ext in '' $ac_executable_extensions; do
2486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2487 ac_cv_prog_ac_ct_STRIP="strip"
2488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 break 2
2490 fi
2491 done
2492 done
2493 IFS=$as_save_IFS
2494
2495 fi
2496 fi
2497 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2498 if test -n "$ac_ct_STRIP"; then
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2500 $as_echo "$ac_ct_STRIP" >&6; }
2501 else
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2503 $as_echo "no" >&6; }
2504 fi
2505
2506 if test "x$ac_ct_STRIP" = x; then
2507 STRIP=":"
2508 else
2509 case $cross_compiling:$ac_tool_warned in
2510 yes:)
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2513 ac_tool_warned=yes ;;
2514 esac
2515 STRIP=$ac_ct_STRIP
2516 fi
2517 else
2518 STRIP="$ac_cv_prog_STRIP"
2519 fi
2520
2521 fi
2522 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2523
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2525 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2526 if test -z "$MKDIR_P"; then
2527 if ${ac_cv_path_mkdir+:} false; then :
2528 $as_echo_n "(cached) " >&6
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2532 do
2533 IFS=$as_save_IFS
2534 test -z "$as_dir" && as_dir=.
2535 for ac_prog in mkdir gmkdir; do
2536 for ac_exec_ext in '' $ac_executable_extensions; do
2537 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2538 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2539 'mkdir (GNU coreutils) '* | \
2540 'mkdir (coreutils) '* | \
2541 'mkdir (fileutils) '4.1*)
2542 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2543 break 3;;
2544 esac
2545 done
2546 done
2547 done
2548 IFS=$as_save_IFS
2549
2550 fi
2551
2552 test -d ./--version && rmdir ./--version
2553 if test "${ac_cv_path_mkdir+set}" = set; then
2554 MKDIR_P="$ac_cv_path_mkdir -p"
2555 else
2556 # As a last resort, use the slow shell script. Don't cache a
2557 # value for MKDIR_P within a source directory, because that will
2558 # break other packages using the cache if that directory is
2559 # removed, or if the value is a relative name.
2560 MKDIR_P="$ac_install_sh -d"
2561 fi
2562 fi
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2564 $as_echo "$MKDIR_P" >&6; }
2565
2566 for ac_prog in gawk mawk nawk awk
2567 do
2568 # Extract the first word of "$ac_prog", so it can be a program name with args.
2569 set dummy $ac_prog; ac_word=$2
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2571 $as_echo_n "checking for $ac_word... " >&6; }
2572 if ${ac_cv_prog_AWK+:} false; then :
2573 $as_echo_n "(cached) " >&6
2574 else
2575 if test -n "$AWK"; then
2576 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2577 else
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579 for as_dir in $PATH
2580 do
2581 IFS=$as_save_IFS
2582 test -z "$as_dir" && as_dir=.
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2585 ac_cv_prog_AWK="$ac_prog"
2586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 break 2
2588 fi
2589 done
2590 done
2591 IFS=$as_save_IFS
2592
2593 fi
2594 fi
2595 AWK=$ac_cv_prog_AWK
2596 if test -n "$AWK"; then
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2598 $as_echo "$AWK" >&6; }
2599 else
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2601 $as_echo "no" >&6; }
2602 fi
2603
2604
2605 test -n "$AWK" && break
2606 done
2607
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2609 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2610 set x ${MAKE-make}
2611 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2612 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2613 $as_echo_n "(cached) " >&6
2614 else
2615 cat >conftest.make <<\_ACEOF
2616 SHELL = /bin/sh
2617 all:
2618 @echo '@@@%%%=$(MAKE)=@@@%%%'
2619 _ACEOF
2620 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2621 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2622 *@@@%%%=?*=@@@%%%*)
2623 eval ac_cv_prog_make_${ac_make}_set=yes;;
2624 *)
2625 eval ac_cv_prog_make_${ac_make}_set=no;;
2626 esac
2627 rm -f conftest.make
2628 fi
2629 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2631 $as_echo "yes" >&6; }
2632 SET_MAKE=
2633 else
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635 $as_echo "no" >&6; }
2636 SET_MAKE="MAKE=${MAKE-make}"
2637 fi
2638
2639 rm -rf .tst 2>/dev/null
2640 mkdir .tst 2>/dev/null
2641 if test -d .tst; then
2642 am__leading_dot=.
2643 else
2644 am__leading_dot=_
2645 fi
2646 rmdir .tst 2>/dev/null
2647
2648 # Check whether --enable-silent-rules was given.
2649 if test "${enable_silent_rules+set}" = set; then :
2650 enableval=$enable_silent_rules;
2651 fi
2652
2653 case $enable_silent_rules in # (((
2654 yes) AM_DEFAULT_VERBOSITY=0;;
2655 no) AM_DEFAULT_VERBOSITY=1;;
2656 *) AM_DEFAULT_VERBOSITY=1;;
2657 esac
2658 am_make=${MAKE-make}
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2660 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2661 if ${am_cv_make_support_nested_variables+:} false; then :
2662 $as_echo_n "(cached) " >&6
2663 else
2664 if $as_echo 'TRUE=$(BAR$(V))
2665 BAR0=false
2666 BAR1=true
2667 V=1
2668 am__doit:
2669 @$(TRUE)
2670 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2671 am_cv_make_support_nested_variables=yes
2672 else
2673 am_cv_make_support_nested_variables=no
2674 fi
2675 fi
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2677 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2678 if test $am_cv_make_support_nested_variables = yes; then
2679 AM_V='$(V)'
2680 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2681 else
2682 AM_V=$AM_DEFAULT_VERBOSITY
2683 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2684 fi
2685 AM_BACKSLASH='\'
2686
2687 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2688 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2689 # is not polluted with repeated "-I."
2690 am__isrc=' -I$(srcdir)'
2691 # test to see if srcdir already configured
2692 if test -f $srcdir/config.status; then
2693 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2694 fi
2695 fi
2696
2697 # test whether we have cygpath
2698 if test -z "$CYGPATH_W"; then
2699 if (cygpath --version) >/dev/null 2>/dev/null; then
2700 CYGPATH_W='cygpath -w'
2701 else
2702 CYGPATH_W=echo
2703 fi
2704 fi
2705
2706
2707 # Define the identity of the package.
2708 PACKAGE='bitmap'
2709 VERSION='1.0.9'
2710
2711
2712 cat >>confdefs.h <<_ACEOF
2713 #define PACKAGE "$PACKAGE"
2714 _ACEOF
2715
2716
2717 cat >>confdefs.h <<_ACEOF
2718 #define VERSION "$VERSION"
2719 _ACEOF
2720
2721 # Some tools Automake needs.
2722
2723 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2724
2725
2726 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2727
2728
2729 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2730
2731
2732 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2733
2734
2735 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2736
2737 # For better backward compatibility. To be removed once Automake 1.9.x
2738 # dies out for good. For more background, see:
2739 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2740 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2741 mkdir_p='$(MKDIR_P)'
2742
2743 # We need awk for the "check" target (and possibly the TAP driver). The
2744 # system "awk" is bad on some platforms.
2745 # Always define AMTAR for backward compatibility. Yes, it's still used
2746 # in the wild :-( We should find a proper way to deprecate it ...
2747 AMTAR='$${TAR-tar}'
2748
2749
2750 # We'll loop over all known methods to create a tar archive until one works.
2751 _am_tools='gnutar pax cpio none'
2752
2753 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2754
2755
2756
2757
2758
2759
2760 # POSIX will say in a future version that running "rm -f" with no argument
2761 # is OK; and we want to be able to make that assumption in our Makefile
2762 # recipes. So use an aggressive probe to check that the usage we want is
2763 # actually supported "in the wild" to an acceptable degree.
2764 # See automake bug#10828.
2765 # To make any issue more visible, cause the running configure to be aborted
2766 # by default if the 'rm' program in use doesn't match our expectations; the
2767 # user can still override this though.
2768 if rm -f && rm -fr && rm -rf; then : OK; else
2769 cat >&2 <<'END'
2770 Oops!
2771
2772 Your 'rm' program seems unable to run without file operands specified
2773 on the command line, even when the '-f' option is present. This is contrary
2774 to the behaviour of most rm programs out there, and not conforming with
2775 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2776
2777 Please tell bug-automake@gnu.org about your system, including the value
2778 of your $PATH and any error possibly output before this message. This
2779 can help us improve future automake versions.
2780
2781 END
2782 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2783 echo 'Configuration will proceed anyway, since you have set the' >&2
2784 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2785 echo >&2
2786 else
2787 cat >&2 <<'END'
2788 Aborting the configuration process, to ensure you take notice of the issue.
2789
2790 You can download and install GNU coreutils to get an 'rm' implementation
2791 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2792
2793 If you want to complete the configuration process using your problematic
2794 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2795 to "yes", and re-run configure.
2796
2797 END
2798 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2799 fi
2800 fi
2801
2802
2803 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815 DEPDIR="${am__leading_dot}deps"
2816
2817 ac_config_commands="$ac_config_commands depfiles"
2818
2819
2820 am_make=${MAKE-make}
2821 cat > confinc << 'END'
2822 am__doit:
2823 @echo this is the am__doit target
2824 .PHONY: am__doit
2825 END
2826 # If we don't find an include directive, just comment out the code.
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2828 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2829 am__include="#"
2830 am__quote=
2831 _am_result=none
2832 # First try GNU make style include.
2833 echo "include confinc" > confmf
2834 # Ignore all kinds of additional output from 'make'.
2835 case `$am_make -s -f confmf 2> /dev/null` in #(
2836 *the\ am__doit\ target*)
2837 am__include=include
2838 am__quote=
2839 _am_result=GNU
2840 ;;
2841 esac
2842 # Now try BSD make style include.
2843 if test "$am__include" = "#"; then
2844 echo '.include "confinc"' > confmf
2845 case `$am_make -s -f confmf 2> /dev/null` in #(
2846 *the\ am__doit\ target*)
2847 am__include=.include
2848 am__quote="\""
2849 _am_result=BSD
2850 ;;
2851 esac
2852 fi
2853
2854
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2856 $as_echo "$_am_result" >&6; }
2857 rm -f confinc confmf
2858
2859 # Check whether --enable-dependency-tracking was given.
2860 if test "${enable_dependency_tracking+set}" = set; then :
2861 enableval=$enable_dependency_tracking;
2862 fi
2863
2864 if test "x$enable_dependency_tracking" != xno; then
2865 am_depcomp="$ac_aux_dir/depcomp"
2866 AMDEPBACKSLASH='\'
2867 am__nodep='_no'
2868 fi
2869 if test "x$enable_dependency_tracking" != xno; then
2870 AMDEP_TRUE=
2871 AMDEP_FALSE='#'
2872 else
2873 AMDEP_TRUE='#'
2874 AMDEP_FALSE=
2875 fi
2876
2877
2878 ac_ext=c
2879 ac_cpp='$CPP $CPPFLAGS'
2880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2883 if test -n "$ac_tool_prefix"; then
2884 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2885 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887 $as_echo_n "checking for $ac_word... " >&6; }
2888 if ${ac_cv_prog_CC+:} false; then :
2889 $as_echo_n "(cached) " >&6
2890 else
2891 if test -n "$CC"; then
2892 ac_cv_prog_CC="$CC" # Let the user override the test.
2893 else
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2896 do
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2901 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 break 2
2904 fi
2905 done
2906 done
2907 IFS=$as_save_IFS
2908
2909 fi
2910 fi
2911 CC=$ac_cv_prog_CC
2912 if test -n "$CC"; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2914 $as_echo "$CC" >&6; }
2915 else
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917 $as_echo "no" >&6; }
2918 fi
2919
2920
2921 fi
2922 if test -z "$ac_cv_prog_CC"; then
2923 ac_ct_CC=$CC
2924 # Extract the first word of "gcc", so it can be a program name with args.
2925 set dummy gcc; ac_word=$2
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927 $as_echo_n "checking for $ac_word... " >&6; }
2928 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2929 $as_echo_n "(cached) " >&6
2930 else
2931 if test -n "$ac_ct_CC"; then
2932 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
2937 IFS=$as_save_IFS
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2941 ac_cv_prog_ac_ct_CC="gcc"
2942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2943 break 2
2944 fi
2945 done
2946 done
2947 IFS=$as_save_IFS
2948
2949 fi
2950 fi
2951 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2952 if test -n "$ac_ct_CC"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2954 $as_echo "$ac_ct_CC" >&6; }
2955 else
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 $as_echo "no" >&6; }
2958 fi
2959
2960 if test "x$ac_ct_CC" = x; then
2961 CC=""
2962 else
2963 case $cross_compiling:$ac_tool_warned in
2964 yes:)
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2967 ac_tool_warned=yes ;;
2968 esac
2969 CC=$ac_ct_CC
2970 fi
2971 else
2972 CC="$ac_cv_prog_CC"
2973 fi
2974
2975 if test -z "$CC"; then
2976 if test -n "$ac_tool_prefix"; then
2977 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2978 set dummy ${ac_tool_prefix}cc; ac_word=$2
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980 $as_echo_n "checking for $ac_word... " >&6; }
2981 if ${ac_cv_prog_CC+:} false; then :
2982 $as_echo_n "(cached) " >&6
2983 else
2984 if test -n "$CC"; then
2985 ac_cv_prog_CC="$CC" # Let the user override the test.
2986 else
2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 for as_dir in $PATH
2989 do
2990 IFS=$as_save_IFS
2991 test -z "$as_dir" && as_dir=.
2992 for ac_exec_ext in '' $ac_executable_extensions; do
2993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2994 ac_cv_prog_CC="${ac_tool_prefix}cc"
2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 break 2
2997 fi
2998 done
2999 done
3000 IFS=$as_save_IFS
3001
3002 fi
3003 fi
3004 CC=$ac_cv_prog_CC
3005 if test -n "$CC"; then
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3007 $as_echo "$CC" >&6; }
3008 else
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010 $as_echo "no" >&6; }
3011 fi
3012
3013
3014 fi
3015 fi
3016 if test -z "$CC"; then
3017 # Extract the first word of "cc", so it can be a program name with args.
3018 set dummy cc; ac_word=$2
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020 $as_echo_n "checking for $ac_word... " >&6; }
3021 if ${ac_cv_prog_CC+:} false; then :
3022 $as_echo_n "(cached) " >&6
3023 else
3024 if test -n "$CC"; then
3025 ac_cv_prog_CC="$CC" # Let the user override the test.
3026 else
3027 ac_prog_rejected=no
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3030 do
3031 IFS=$as_save_IFS
3032 test -z "$as_dir" && as_dir=.
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3035 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3036 ac_prog_rejected=yes
3037 continue
3038 fi
3039 ac_cv_prog_CC="cc"
3040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3041 break 2
3042 fi
3043 done
3044 done
3045 IFS=$as_save_IFS
3046
3047 if test $ac_prog_rejected = yes; then
3048 # We found a bogon in the path, so make sure we never use it.
3049 set dummy $ac_cv_prog_CC
3050 shift
3051 if test $# != 0; then
3052 # We chose a different compiler from the bogus one.
3053 # However, it has the same basename, so the bogon will be chosen
3054 # first if we set CC to just the basename; use the full file name.
3055 shift
3056 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3057 fi
3058 fi
3059 fi
3060 fi
3061 CC=$ac_cv_prog_CC
3062 if test -n "$CC"; then
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3064 $as_echo "$CC" >&6; }
3065 else
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067 $as_echo "no" >&6; }
3068 fi
3069
3070
3071 fi
3072 if test -z "$CC"; then
3073 if test -n "$ac_tool_prefix"; then
3074 for ac_prog in cl.exe
3075 do
3076 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3077 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079 $as_echo_n "checking for $ac_word... " >&6; }
3080 if ${ac_cv_prog_CC+:} false; then :
3081 $as_echo_n "(cached) " >&6
3082 else
3083 if test -n "$CC"; then
3084 ac_cv_prog_CC="$CC" # Let the user override the test.
3085 else
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 for as_dir in $PATH
3088 do
3089 IFS=$as_save_IFS
3090 test -z "$as_dir" && as_dir=.
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3095 break 2
3096 fi
3097 done
3098 done
3099 IFS=$as_save_IFS
3100
3101 fi
3102 fi
3103 CC=$ac_cv_prog_CC
3104 if test -n "$CC"; then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3106 $as_echo "$CC" >&6; }
3107 else
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109 $as_echo "no" >&6; }
3110 fi
3111
3112
3113 test -n "$CC" && break
3114 done
3115 fi
3116 if test -z "$CC"; then
3117 ac_ct_CC=$CC
3118 for ac_prog in cl.exe
3119 do
3120 # Extract the first word of "$ac_prog", so it can be a program name with args.
3121 set dummy $ac_prog; ac_word=$2
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123 $as_echo_n "checking for $ac_word... " >&6; }
3124 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3125 $as_echo_n "(cached) " >&6
3126 else
3127 if test -n "$ac_ct_CC"; then
3128 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3129 else
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 for as_dir in $PATH
3132 do
3133 IFS=$as_save_IFS
3134 test -z "$as_dir" && as_dir=.
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137 ac_cv_prog_ac_ct_CC="$ac_prog"
3138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 break 2
3140 fi
3141 done
3142 done
3143 IFS=$as_save_IFS
3144
3145 fi
3146 fi
3147 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3148 if test -n "$ac_ct_CC"; then
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3150 $as_echo "$ac_ct_CC" >&6; }
3151 else
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153 $as_echo "no" >&6; }
3154 fi
3155
3156
3157 test -n "$ac_ct_CC" && break
3158 done
3159
3160 if test "x$ac_ct_CC" = x; then
3161 CC=""
3162 else
3163 case $cross_compiling:$ac_tool_warned in
3164 yes:)
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3167 ac_tool_warned=yes ;;
3168 esac
3169 CC=$ac_ct_CC
3170 fi
3171 fi
3172
3173 fi
3174
3175
3176 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178 as_fn_error $? "no acceptable C compiler found in \$PATH
3179 See \`config.log' for more details" "$LINENO" 5; }
3180
3181 # Provide some information about the compiler.
3182 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3183 set X $ac_compile
3184 ac_compiler=$2
3185 for ac_option in --version -v -V -qversion; do
3186 { { ac_try="$ac_compiler $ac_option >&5"
3187 case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190 esac
3191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3192 $as_echo "$ac_try_echo"; } >&5
3193 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3194 ac_status=$?
3195 if test -s conftest.err; then
3196 sed '10a\
3197 ... rest of stderr output deleted ...
3198 10q' conftest.err >conftest.er1
3199 cat conftest.er1 >&5
3200 fi
3201 rm -f conftest.er1 conftest.err
3202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3203 test $ac_status = 0; }
3204 done
3205
3206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207 /* end confdefs.h. */
3208
3209 int
3210 main ()
3211 {
3212
3213 ;
3214 return 0;
3215 }
3216 _ACEOF
3217 ac_clean_files_save=$ac_clean_files
3218 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3219 # Try to create an executable without -o first, disregard a.out.
3220 # It will help us diagnose broken compilers, and finding out an intuition
3221 # of exeext.
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3223 $as_echo_n "checking whether the C compiler works... " >&6; }
3224 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3225
3226 # The possible output files:
3227 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3228
3229 ac_rmfiles=
3230 for ac_file in $ac_files
3231 do
3232 case $ac_file in
3233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3234 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3235 esac
3236 done
3237 rm -f $ac_rmfiles
3238
3239 if { { ac_try="$ac_link_default"
3240 case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3243 esac
3244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245 $as_echo "$ac_try_echo"; } >&5
3246 (eval "$ac_link_default") 2>&5
3247 ac_status=$?
3248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3249 test $ac_status = 0; }; then :
3250 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3251 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3252 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3253 # so that the user can short-circuit this test for compilers unknown to
3254 # Autoconf.
3255 for ac_file in $ac_files ''
3256 do
3257 test -f "$ac_file" || continue
3258 case $ac_file in
3259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3260 ;;
3261 [ab].out )
3262 # We found the default executable, but exeext='' is most
3263 # certainly right.
3264 break;;
3265 *.* )
3266 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3267 then :; else
3268 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3269 fi
3270 # We set ac_cv_exeext here because the later test for it is not
3271 # safe: cross compilers may not add the suffix if given an `-o'
3272 # argument, so we may need to know it at that point already.
3273 # Even if this section looks crufty: it has the advantage of
3274 # actually working.
3275 break;;
3276 * )
3277 break;;
3278 esac
3279 done
3280 test "$ac_cv_exeext" = no && ac_cv_exeext=
3281
3282 else
3283 ac_file=''
3284 fi
3285 if test -z "$ac_file"; then :
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3288 $as_echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.$ac_ext >&5
3290
3291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3293 as_fn_error 77 "C compiler cannot create executables
3294 See \`config.log' for more details" "$LINENO" 5; }
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297 $as_echo "yes" >&6; }
3298 fi
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3300 $as_echo_n "checking for C compiler default output file name... " >&6; }
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3302 $as_echo "$ac_file" >&6; }
3303 ac_exeext=$ac_cv_exeext
3304
3305 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3306 ac_clean_files=$ac_clean_files_save
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3308 $as_echo_n "checking for suffix of executables... " >&6; }
3309 if { { ac_try="$ac_link"
3310 case "(($ac_try" in
3311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312 *) ac_try_echo=$ac_try;;
3313 esac
3314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3315 $as_echo "$ac_try_echo"; } >&5
3316 (eval "$ac_link") 2>&5
3317 ac_status=$?
3318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3319 test $ac_status = 0; }; then :
3320 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3321 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3322 # work properly (i.e., refer to `conftest.exe'), while it won't with
3323 # `rm'.
3324 for ac_file in conftest.exe conftest conftest.*; do
3325 test -f "$ac_file" || continue
3326 case $ac_file in
3327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3328 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3329 break;;
3330 * ) break;;
3331 esac
3332 done
3333 else
3334 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3336 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3337 See \`config.log' for more details" "$LINENO" 5; }
3338 fi
3339 rm -f conftest conftest$ac_cv_exeext
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3341 $as_echo "$ac_cv_exeext" >&6; }
3342
3343 rm -f conftest.$ac_ext
3344 EXEEXT=$ac_cv_exeext
3345 ac_exeext=$EXEEXT
3346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347 /* end confdefs.h. */
3348 #include <stdio.h>
3349 int
3350 main ()
3351 {
3352 FILE *f = fopen ("conftest.out", "w");
3353 return ferror (f) || fclose (f) != 0;
3354
3355 ;
3356 return 0;
3357 }
3358 _ACEOF
3359 ac_clean_files="$ac_clean_files conftest.out"
3360 # Check that the compiler produces executables we can run. If not, either
3361 # the compiler is broken, or we cross compile.
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3363 $as_echo_n "checking whether we are cross compiling... " >&6; }
3364 if test "$cross_compiling" != yes; then
3365 { { ac_try="$ac_link"
3366 case "(($ac_try" in
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3369 esac
3370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3371 $as_echo "$ac_try_echo"; } >&5
3372 (eval "$ac_link") 2>&5
3373 ac_status=$?
3374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3375 test $ac_status = 0; }
3376 if { ac_try='./conftest$ac_cv_exeext'
3377 { { case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380 esac
3381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382 $as_echo "$ac_try_echo"; } >&5
3383 (eval "$ac_try") 2>&5
3384 ac_status=$?
3385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3386 test $ac_status = 0; }; }; then
3387 cross_compiling=no
3388 else
3389 if test "$cross_compiling" = maybe; then
3390 cross_compiling=yes
3391 else
3392 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3394 as_fn_error $? "cannot run C compiled programs.
3395 If you meant to cross compile, use \`--host'.
3396 See \`config.log' for more details" "$LINENO" 5; }
3397 fi
3398 fi
3399 fi
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3401 $as_echo "$cross_compiling" >&6; }
3402
3403 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3404 ac_clean_files=$ac_clean_files_save
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3406 $as_echo_n "checking for suffix of object files... " >&6; }
3407 if ${ac_cv_objext+:} false; then :
3408 $as_echo_n "(cached) " >&6
3409 else
3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411 /* end confdefs.h. */
3412
3413 int
3414 main ()
3415 {
3416
3417 ;
3418 return 0;
3419 }
3420 _ACEOF
3421 rm -f conftest.o conftest.obj
3422 if { { ac_try="$ac_compile"
3423 case "(($ac_try" in
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3426 esac
3427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3428 $as_echo "$ac_try_echo"; } >&5
3429 (eval "$ac_compile") 2>&5
3430 ac_status=$?
3431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3432 test $ac_status = 0; }; then :
3433 for ac_file in conftest.o conftest.obj conftest.*; do
3434 test -f "$ac_file" || continue;
3435 case $ac_file in
3436 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3437 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3438 break;;
3439 esac
3440 done
3441 else
3442 $as_echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.$ac_ext >&5
3444
3445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3447 as_fn_error $? "cannot compute suffix of object files: cannot compile
3448 See \`config.log' for more details" "$LINENO" 5; }
3449 fi
3450 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3451 fi
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3453 $as_echo "$ac_cv_objext" >&6; }
3454 OBJEXT=$ac_cv_objext
3455 ac_objext=$OBJEXT
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3457 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3458 if ${ac_cv_c_compiler_gnu+:} false; then :
3459 $as_echo_n "(cached) " >&6
3460 else
3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462 /* end confdefs.h. */
3463
3464 int
3465 main ()
3466 {
3467 #ifndef __GNUC__
3468 choke me
3469 #endif
3470
3471 ;
3472 return 0;
3473 }
3474 _ACEOF
3475 if ac_fn_c_try_compile "$LINENO"; then :
3476 ac_compiler_gnu=yes
3477 else
3478 ac_compiler_gnu=no
3479 fi
3480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3482
3483 fi
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3485 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3486 if test $ac_compiler_gnu = yes; then
3487 GCC=yes
3488 else
3489 GCC=
3490 fi
3491 ac_test_CFLAGS=${CFLAGS+set}
3492 ac_save_CFLAGS=$CFLAGS
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3494 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3495 if ${ac_cv_prog_cc_g+:} false; then :
3496 $as_echo_n "(cached) " >&6
3497 else
3498 ac_save_c_werror_flag=$ac_c_werror_flag
3499 ac_c_werror_flag=yes
3500 ac_cv_prog_cc_g=no
3501 CFLAGS="-g"
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3504
3505 int
3506 main ()
3507 {
3508
3509 ;
3510 return 0;
3511 }
3512 _ACEOF
3513 if ac_fn_c_try_compile "$LINENO"; then :
3514 ac_cv_prog_cc_g=yes
3515 else
3516 CFLAGS=""
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3519
3520 int
3521 main ()
3522 {
3523
3524 ;
3525 return 0;
3526 }
3527 _ACEOF
3528 if ac_fn_c_try_compile "$LINENO"; then :
3529
3530 else
3531 ac_c_werror_flag=$ac_save_c_werror_flag
3532 CFLAGS="-g"
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3535
3536 int
3537 main ()
3538 {
3539
3540 ;
3541 return 0;
3542 }
3543 _ACEOF
3544 if ac_fn_c_try_compile "$LINENO"; then :
3545 ac_cv_prog_cc_g=yes
3546 fi
3547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3548 fi
3549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3550 fi
3551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552 ac_c_werror_flag=$ac_save_c_werror_flag
3553 fi
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3555 $as_echo "$ac_cv_prog_cc_g" >&6; }
3556 if test "$ac_test_CFLAGS" = set; then
3557 CFLAGS=$ac_save_CFLAGS
3558 elif test $ac_cv_prog_cc_g = yes; then
3559 if test "$GCC" = yes; then
3560 CFLAGS="-g -O2"
3561 else
3562 CFLAGS="-g"
3563 fi
3564 else
3565 if test "$GCC" = yes; then
3566 CFLAGS="-O2"
3567 else
3568 CFLAGS=
3569 fi
3570 fi
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3572 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3573 if ${ac_cv_prog_cc_c89+:} false; then :
3574 $as_echo_n "(cached) " >&6
3575 else
3576 ac_cv_prog_cc_c89=no
3577 ac_save_CC=$CC
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3580 #include <stdarg.h>
3581 #include <stdio.h>
3582 struct stat;
3583 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3584 struct buf { int x; };
3585 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3586 static char *e (p, i)
3587 char **p;
3588 int i;
3589 {
3590 return p[i];
3591 }
3592 static char *f (char * (*g) (char **, int), char **p, ...)
3593 {
3594 char *s;
3595 va_list v;
3596 va_start (v,p);
3597 s = g (p, va_arg (v,int));
3598 va_end (v);
3599 return s;
3600 }
3601
3602 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3603 function prototypes and stuff, but not '\xHH' hex character constants.
3604 These don't provoke an error unfortunately, instead are silently treated
3605 as 'x'. The following induces an error, until -std is added to get
3606 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3607 array size at least. It's necessary to write '\x00'==0 to get something
3608 that's true only with -std. */
3609 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3610
3611 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3612 inside strings and character constants. */
3613 #define FOO(x) 'x'
3614 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3615
3616 int test (int i, double x);
3617 struct s1 {int (*f) (int a);};
3618 struct s2 {int (*f) (double a);};
3619 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3620 int argc;
3621 char **argv;
3622 int
3623 main ()
3624 {
3625 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3626 ;
3627 return 0;
3628 }
3629 _ACEOF
3630 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3631 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3632 do
3633 CC="$ac_save_CC $ac_arg"
3634 if ac_fn_c_try_compile "$LINENO"; then :
3635 ac_cv_prog_cc_c89=$ac_arg
3636 fi
3637 rm -f core conftest.err conftest.$ac_objext
3638 test "x$ac_cv_prog_cc_c89" != "xno" && break
3639 done
3640 rm -f conftest.$ac_ext
3641 CC=$ac_save_CC
3642
3643 fi
3644 # AC_CACHE_VAL
3645 case "x$ac_cv_prog_cc_c89" in
3646 x)
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3648 $as_echo "none needed" >&6; } ;;
3649 xno)
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3651 $as_echo "unsupported" >&6; } ;;
3652 *)
3653 CC="$CC $ac_cv_prog_cc_c89"
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3655 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3656 esac
3657 if test "x$ac_cv_prog_cc_c89" != xno; then :
3658
3659 fi
3660
3661 ac_ext=c
3662 ac_cpp='$CPP $CPPFLAGS'
3663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3666
3667 ac_ext=c
3668 ac_cpp='$CPP $CPPFLAGS'
3669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3673 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3674 if ${am_cv_prog_cc_c_o+:} false; then :
3675 $as_echo_n "(cached) " >&6
3676 else
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3679
3680 int
3681 main ()
3682 {
3683
3684 ;
3685 return 0;
3686 }
3687 _ACEOF
3688 # Make sure it works both with $CC and with simple cc.
3689 # Following AC_PROG_CC_C_O, we do the test twice because some
3690 # compilers refuse to overwrite an existing .o file with -o,
3691 # though they will create one.
3692 am_cv_prog_cc_c_o=yes
3693 for am_i in 1 2; do
3694 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3695 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3696 ac_status=$?
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); } \
3699 && test -f conftest2.$ac_objext; then
3700 : OK
3701 else
3702 am_cv_prog_cc_c_o=no
3703 break
3704 fi
3705 done
3706 rm -f core conftest*
3707 unset am_i
3708 fi
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3710 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3711 if test "$am_cv_prog_cc_c_o" != yes; then
3712 # Losing compiler, so override with the script.
3713 # FIXME: It is wrong to rewrite CC.
3714 # But if we don't then we get into trouble of one sort or another.
3715 # A longer-term fix would be to have automake use am__CC in this case,
3716 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3717 CC="$am_aux_dir/compile $CC"
3718 fi
3719 ac_ext=c
3720 ac_cpp='$CPP $CPPFLAGS'
3721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3724
3725
3726 depcc="$CC" am_compiler_list=
3727
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3729 $as_echo_n "checking dependency style of $depcc... " >&6; }
3730 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3731 $as_echo_n "(cached) " >&6
3732 else
3733 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3734 # We make a subdir and do the tests there. Otherwise we can end up
3735 # making bogus files that we don't know about and never remove. For
3736 # instance it was reported that on HP-UX the gcc test will end up
3737 # making a dummy file named 'D' -- because '-MD' means "put the output
3738 # in D".
3739 rm -rf conftest.dir
3740 mkdir conftest.dir
3741 # Copy depcomp to subdir because otherwise we won't find it if we're
3742 # using a relative directory.
3743 cp "$am_depcomp" conftest.dir
3744 cd conftest.dir
3745 # We will build objects and dependencies in a subdirectory because
3746 # it helps to detect inapplicable dependency modes. For instance
3747 # both Tru64's cc and ICC support -MD to output dependencies as a
3748 # side effect of compilation, but ICC will put the dependencies in
3749 # the current directory while Tru64 will put them in the object
3750 # directory.
3751 mkdir sub
3752
3753 am_cv_CC_dependencies_compiler_type=none
3754 if test "$am_compiler_list" = ""; then
3755 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3756 fi
3757 am__universal=false
3758 case " $depcc " in #(
3759 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3760 esac
3761
3762 for depmode in $am_compiler_list; do
3763 # Setup a source with many dependencies, because some compilers
3764 # like to wrap large dependency lists on column 80 (with \), and
3765 # we should not choose a depcomp mode which is confused by this.
3766 #
3767 # We need to recreate these files for each test, as the compiler may
3768 # overwrite some of them when testing with obscure command lines.
3769 # This happens at least with the AIX C compiler.
3770 : > sub/conftest.c
3771 for i in 1 2 3 4 5 6; do
3772 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3773 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3774 # Solaris 10 /bin/sh.
3775 echo '/* dummy */' > sub/conftst$i.h
3776 done
3777 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3778
3779 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3780 # mode. It turns out that the SunPro C++ compiler does not properly
3781 # handle '-M -o', and we need to detect this. Also, some Intel
3782 # versions had trouble with output in subdirs.
3783 am__obj=sub/conftest.${OBJEXT-o}
3784 am__minus_obj="-o $am__obj"
3785 case $depmode in
3786 gcc)
3787 # This depmode causes a compiler race in universal mode.
3788 test "$am__universal" = false || continue
3789 ;;
3790 nosideeffect)
3791 # After this tag, mechanisms are not by side-effect, so they'll
3792 # only be used when explicitly requested.
3793 if test "x$enable_dependency_tracking" = xyes; then
3794 continue
3795 else
3796 break
3797 fi
3798 ;;
3799 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3800 # This compiler won't grok '-c -o', but also, the minuso test has
3801 # not run yet. These depmodes are late enough in the game, and
3802 # so weak that their functioning should not be impacted.
3803 am__obj=conftest.${OBJEXT-o}
3804 am__minus_obj=
3805 ;;
3806 none) break ;;
3807 esac
3808 if depmode=$depmode \
3809 source=sub/conftest.c object=$am__obj \
3810 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3811 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3812 >/dev/null 2>conftest.err &&
3813 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3814 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3815 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3816 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3817 # icc doesn't choke on unknown options, it will just issue warnings
3818 # or remarks (even with -Werror). So we grep stderr for any message
3819 # that says an option was ignored or not supported.
3820 # When given -MP, icc 7.0 and 7.1 complain thusly:
3821 # icc: Command line warning: ignoring option '-M'; no argument required
3822 # The diagnosis changed in icc 8.0:
3823 # icc: Command line remark: option '-MP' not supported
3824 if (grep 'ignoring option' conftest.err ||
3825 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3826 am_cv_CC_dependencies_compiler_type=$depmode
3827 break
3828 fi
3829 fi
3830 done
3831
3832 cd ..
3833 rm -rf conftest.dir
3834 else
3835 am_cv_CC_dependencies_compiler_type=none
3836 fi
3837
3838 fi
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3840 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3841 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3842
3843 if
3844 test "x$enable_dependency_tracking" != xno \
3845 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3846 am__fastdepCC_TRUE=
3847 am__fastdepCC_FALSE='#'
3848 else
3849 am__fastdepCC_TRUE='#'
3850 am__fastdepCC_FALSE=
3851 fi
3852
3853
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3855 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3856 if ${ac_cv_prog_cc_c99+:} false; then :
3857 $as_echo_n "(cached) " >&6
3858 else
3859 ac_cv_prog_cc_c99=no
3860 ac_save_CC=$CC
3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h. */
3863 #include <stdarg.h>
3864 #include <stdbool.h>
3865 #include <stdlib.h>
3866 #include <wchar.h>
3867 #include <stdio.h>
3868
3869 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3870 #define debug(...) fprintf (stderr, __VA_ARGS__)
3871 #define showlist(...) puts (#__VA_ARGS__)
3872 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3873 static void
3874 test_varargs_macros (void)
3875 {
3876 int x = 1234;
3877 int y = 5678;
3878 debug ("Flag");
3879 debug ("X = %d\n", x);
3880 showlist (The first, second, and third items.);
3881 report (x>y, "x is %d but y is %d", x, y);
3882 }
3883
3884 // Check long long types.
3885 #define BIG64 18446744073709551615ull
3886 #define BIG32 4294967295ul
3887 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3888 #if !BIG_OK
3889 your preprocessor is broken;
3890 #endif
3891 #if BIG_OK
3892 #else
3893 your preprocessor is broken;
3894 #endif
3895 static long long int bignum = -9223372036854775807LL;
3896 static unsigned long long int ubignum = BIG64;
3897
3898 struct incomplete_array
3899 {
3900 int datasize;
3901 double data[];
3902 };
3903
3904 struct named_init {
3905 int number;
3906 const wchar_t *name;
3907 double average;
3908 };
3909
3910 typedef const char *ccp;
3911
3912 static inline int
3913 test_restrict (ccp restrict text)
3914 {
3915 // See if C++-style comments work.
3916 // Iterate through items via the restricted pointer.
3917 // Also check for declarations in for loops.
3918 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3919 continue;
3920 return 0;
3921 }
3922
3923 // Check varargs and va_copy.
3924 static void
3925 test_varargs (const char *format, ...)
3926 {
3927 va_list args;
3928 va_start (args, format);
3929 va_list args_copy;
3930 va_copy (args_copy, args);
3931
3932 const char *str;
3933 int number;
3934 float fnumber;
3935
3936 while (*format)
3937 {
3938 switch (*format++)
3939 {
3940 case 's': // string
3941 str = va_arg (args_copy, const char *);
3942 break;
3943 case 'd': // int
3944 number = va_arg (args_copy, int);
3945 break;
3946 case 'f': // float
3947 fnumber = va_arg (args_copy, double);
3948 break;
3949 default:
3950 break;
3951 }
3952 }
3953 va_end (args_copy);
3954 va_end (args);
3955 }
3956
3957 int
3958 main ()
3959 {
3960
3961 // Check bool.
3962 _Bool success = false;
3963
3964 // Check restrict.
3965 if (test_restrict ("String literal") == 0)
3966 success = true;
3967 char *restrict newvar = "Another string";
3968
3969 // Check varargs.
3970 test_varargs ("s, d' f .", "string", 65, 34.234);
3971 test_varargs_macros ();
3972
3973 // Check flexible array members.
3974 struct incomplete_array *ia =
3975 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3976 ia->datasize = 10;
3977 for (int i = 0; i < ia->datasize; ++i)
3978 ia->data[i] = i * 1.234;
3979
3980 // Check named initializers.
3981 struct named_init ni = {
3982 .number = 34,
3983 .name = L"Test wide string",
3984 .average = 543.34343,
3985 };
3986
3987 ni.number = 58;
3988
3989 int dynamic_array[ni.number];
3990 dynamic_array[ni.number - 1] = 543;
3991
3992 // work around unused variable warnings
3993 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3994 || dynamic_array[ni.number - 1] != 543);
3995
3996 ;
3997 return 0;
3998 }
3999 _ACEOF
4000 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4001 do
4002 CC="$ac_save_CC $ac_arg"
4003 if ac_fn_c_try_compile "$LINENO"; then :
4004 ac_cv_prog_cc_c99=$ac_arg
4005 fi
4006 rm -f core conftest.err conftest.$ac_objext
4007 test "x$ac_cv_prog_cc_c99" != "xno" && break
4008 done
4009 rm -f conftest.$ac_ext
4010 CC=$ac_save_CC
4011
4012 fi
4013 # AC_CACHE_VAL
4014 case "x$ac_cv_prog_cc_c99" in
4015 x)
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4017 $as_echo "none needed" >&6; } ;;
4018 xno)
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4020 $as_echo "unsupported" >&6; } ;;
4021 *)
4022 CC="$CC $ac_cv_prog_cc_c99"
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4024 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4025 esac
4026 if test "x$ac_cv_prog_cc_c99" != xno; then :
4027
4028 fi
4029
4030
4031
4032 ac_ext=c
4033 ac_cpp='$CPP $CPPFLAGS'
4034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4038 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4039 # On Suns, sometimes $CPP names a directory.
4040 if test -n "$CPP" && test -d "$CPP"; then
4041 CPP=
4042 fi
4043 if test -z "$CPP"; then
4044 if ${ac_cv_prog_CPP+:} false; then :
4045 $as_echo_n "(cached) " >&6
4046 else
4047 # Double quotes because CPP needs to be expanded
4048 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4049 do
4050 ac_preproc_ok=false
4051 for ac_c_preproc_warn_flag in '' yes
4052 do
4053 # Use a header file that comes with gcc, so configuring glibc
4054 # with a fresh cross-compiler works.
4055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4056 # <limits.h> exists even on freestanding compilers.
4057 # On the NeXT, cc -E runs the code through the compiler's parser,
4058 # not just through cpp. "Syntax error" is here to catch this case.
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4061 #ifdef __STDC__
4062 # include <limits.h>
4063 #else
4064 # include <assert.h>
4065 #endif
4066 Syntax error
4067 _ACEOF
4068 if ac_fn_c_try_cpp "$LINENO"; then :
4069
4070 else
4071 # Broken: fails on valid input.
4072 continue
4073 fi
4074 rm -f conftest.err conftest.i conftest.$ac_ext
4075
4076 # OK, works on sane cases. Now check whether nonexistent headers
4077 # can be detected and how.
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4080 #include <ac_nonexistent.h>
4081 _ACEOF
4082 if ac_fn_c_try_cpp "$LINENO"; then :
4083 # Broken: success on invalid input.
4084 continue
4085 else
4086 # Passes both tests.
4087 ac_preproc_ok=:
4088 break
4089 fi
4090 rm -f conftest.err conftest.i conftest.$ac_ext
4091
4092 done
4093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4094 rm -f conftest.i conftest.err conftest.$ac_ext
4095 if $ac_preproc_ok; then :
4096 break
4097 fi
4098
4099 done
4100 ac_cv_prog_CPP=$CPP
4101
4102 fi
4103 CPP=$ac_cv_prog_CPP
4104 else
4105 ac_cv_prog_CPP=$CPP
4106 fi
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4108 $as_echo "$CPP" >&6; }
4109 ac_preproc_ok=false
4110 for ac_c_preproc_warn_flag in '' yes
4111 do
4112 # Use a header file that comes with gcc, so configuring glibc
4113 # with a fresh cross-compiler works.
4114 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4115 # <limits.h> exists even on freestanding compilers.
4116 # On the NeXT, cc -E runs the code through the compiler's parser,
4117 # not just through cpp. "Syntax error" is here to catch this case.
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4120 #ifdef __STDC__
4121 # include <limits.h>
4122 #else
4123 # include <assert.h>
4124 #endif
4125 Syntax error
4126 _ACEOF
4127 if ac_fn_c_try_cpp "$LINENO"; then :
4128
4129 else
4130 # Broken: fails on valid input.
4131 continue
4132 fi
4133 rm -f conftest.err conftest.i conftest.$ac_ext
4134
4135 # OK, works on sane cases. Now check whether nonexistent headers
4136 # can be detected and how.
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4139 #include <ac_nonexistent.h>
4140 _ACEOF
4141 if ac_fn_c_try_cpp "$LINENO"; then :
4142 # Broken: success on invalid input.
4143 continue
4144 else
4145 # Passes both tests.
4146 ac_preproc_ok=:
4147 break
4148 fi
4149 rm -f conftest.err conftest.i conftest.$ac_ext
4150
4151 done
4152 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4153 rm -f conftest.i conftest.err conftest.$ac_ext
4154 if $ac_preproc_ok; then :
4155
4156 else
4157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4159 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4160 See \`config.log' for more details" "$LINENO" 5; }
4161 fi
4162
4163 ac_ext=c
4164 ac_cpp='$CPP $CPPFLAGS'
4165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4168
4169
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4171 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4172 if ${ac_cv_path_GREP+:} false; then :
4173 $as_echo_n "(cached) " >&6
4174 else
4175 if test -z "$GREP"; then
4176 ac_path_GREP_found=false
4177 # Loop through the user's path and test for each of PROGNAME-LIST
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4180 do
4181 IFS=$as_save_IFS
4182 test -z "$as_dir" && as_dir=.
4183 for ac_prog in grep ggrep; do
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4186 as_fn_executable_p "$ac_path_GREP" || continue
4187 # Check for GNU ac_path_GREP and select it if it is found.
4188 # Check for GNU $ac_path_GREP
4189 case `"$ac_path_GREP" --version 2>&1` in
4190 *GNU*)
4191 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4192 *)
4193 ac_count=0
4194 $as_echo_n 0123456789 >"conftest.in"
4195 while :
4196 do
4197 cat "conftest.in" "conftest.in" >"conftest.tmp"
4198 mv "conftest.tmp" "conftest.in"
4199 cp "conftest.in" "conftest.nl"
4200 $as_echo 'GREP' >> "conftest.nl"
4201 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4202 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4203 as_fn_arith $ac_count + 1 && ac_count=$as_val
4204 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4205 # Best one so far, save it but keep looking for a better one
4206 ac_cv_path_GREP="$ac_path_GREP"
4207 ac_path_GREP_max=$ac_count
4208 fi
4209 # 10*(2^10) chars as input seems more than enough
4210 test $ac_count -gt 10 && break
4211 done
4212 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4213 esac
4214
4215 $ac_path_GREP_found && break 3
4216 done
4217 done
4218 done
4219 IFS=$as_save_IFS
4220 if test -z "$ac_cv_path_GREP"; then
4221 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4222 fi
4223 else
4224 ac_cv_path_GREP=$GREP
4225 fi
4226
4227 fi
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4229 $as_echo "$ac_cv_path_GREP" >&6; }
4230 GREP="$ac_cv_path_GREP"
4231
4232
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4234 $as_echo_n "checking for egrep... " >&6; }
4235 if ${ac_cv_path_EGREP+:} false; then :
4236 $as_echo_n "(cached) " >&6
4237 else
4238 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4239 then ac_cv_path_EGREP="$GREP -E"
4240 else
4241 if test -z "$EGREP"; then
4242 ac_path_EGREP_found=false
4243 # Loop through the user's path and test for each of PROGNAME-LIST
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4246 do
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_prog in egrep; do
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4252 as_fn_executable_p "$ac_path_EGREP" || continue
4253 # Check for GNU ac_path_EGREP and select it if it is found.
4254 # Check for GNU $ac_path_EGREP
4255 case `"$ac_path_EGREP" --version 2>&1` in
4256 *GNU*)
4257 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4258 *)
4259 ac_count=0
4260 $as_echo_n 0123456789 >"conftest.in"
4261 while :
4262 do
4263 cat "conftest.in" "conftest.in" >"conftest.tmp"
4264 mv "conftest.tmp" "conftest.in"
4265 cp "conftest.in" "conftest.nl"
4266 $as_echo 'EGREP' >> "conftest.nl"
4267 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4269 as_fn_arith $ac_count + 1 && ac_count=$as_val
4270 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4271 # Best one so far, save it but keep looking for a better one
4272 ac_cv_path_EGREP="$ac_path_EGREP"
4273 ac_path_EGREP_max=$ac_count
4274 fi
4275 # 10*(2^10) chars as input seems more than enough
4276 test $ac_count -gt 10 && break
4277 done
4278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4279 esac
4280
4281 $ac_path_EGREP_found && break 3
4282 done
4283 done
4284 done
4285 IFS=$as_save_IFS
4286 if test -z "$ac_cv_path_EGREP"; then
4287 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4288 fi
4289 else
4290 ac_cv_path_EGREP=$EGREP
4291 fi
4292
4293 fi
4294 fi
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4296 $as_echo "$ac_cv_path_EGREP" >&6; }
4297 EGREP="$ac_cv_path_EGREP"
4298
4299
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4301 $as_echo_n "checking for ANSI C header files... " >&6; }
4302 if ${ac_cv_header_stdc+:} false; then :
4303 $as_echo_n "(cached) " >&6
4304 else
4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306 /* end confdefs.h. */
4307 #include <stdlib.h>
4308 #include <stdarg.h>
4309 #include <string.h>
4310 #include <float.h>
4311
4312 int
4313 main ()
4314 {
4315
4316 ;
4317 return 0;
4318 }
4319 _ACEOF
4320 if ac_fn_c_try_compile "$LINENO"; then :
4321 ac_cv_header_stdc=yes
4322 else
4323 ac_cv_header_stdc=no
4324 fi
4325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326
4327 if test $ac_cv_header_stdc = yes; then
4328 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330 /* end confdefs.h. */
4331 #include <string.h>
4332
4333 _ACEOF
4334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4335 $EGREP "memchr" >/dev/null 2>&1; then :
4336
4337 else
4338 ac_cv_header_stdc=no
4339 fi
4340 rm -f conftest*
4341
4342 fi
4343
4344 if test $ac_cv_header_stdc = yes; then
4345 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h. */
4348 #include <stdlib.h>
4349
4350 _ACEOF
4351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4352 $EGREP "free" >/dev/null 2>&1; then :
4353
4354 else
4355 ac_cv_header_stdc=no
4356 fi
4357 rm -f conftest*
4358
4359 fi
4360
4361 if test $ac_cv_header_stdc = yes; then
4362 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4363 if test "$cross_compiling" = yes; then :
4364 :
4365 else
4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h. */
4368 #include <ctype.h>
4369 #include <stdlib.h>
4370 #if ((' ' & 0x0FF) == 0x020)
4371 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4372 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4373 #else
4374 # define ISLOWER(c) \
4375 (('a' <= (c) && (c) <= 'i') \
4376 || ('j' <= (c) && (c) <= 'r') \
4377 || ('s' <= (c) && (c) <= 'z'))
4378 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4379 #endif
4380
4381 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4382 int
4383 main ()
4384 {
4385 int i;
4386 for (i = 0; i < 256; i++)
4387 if (XOR (islower (i), ISLOWER (i))
4388 || toupper (i) != TOUPPER (i))
4389 return 2;
4390 return 0;
4391 }
4392 _ACEOF
4393 if ac_fn_c_try_run "$LINENO"; then :
4394
4395 else
4396 ac_cv_header_stdc=no
4397 fi
4398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4399 conftest.$ac_objext conftest.beam conftest.$ac_ext
4400 fi
4401
4402 fi
4403 fi
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4405 $as_echo "$ac_cv_header_stdc" >&6; }
4406 if test $ac_cv_header_stdc = yes; then
4407
4408 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4409
4410 fi
4411
4412 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4413 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4414 inttypes.h stdint.h unistd.h
4415 do :
4416 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4417 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4418 "
4419 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4420 cat >>confdefs.h <<_ACEOF
4421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4422 _ACEOF
4423
4424 fi
4425
4426 done
4427
4428
4429
4430
4431
4432
4433 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4434 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4435 CLANGCC="yes"
4436 else
4437 CLANGCC="no"
4438 fi
4439
4440 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4441 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4442 INTELCC="yes"
4443 else
4444 INTELCC="no"
4445 fi
4446
4447 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4448 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4449 SUNCC="yes"
4450 else
4451 SUNCC="no"
4452 fi
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4463 if test -n "$ac_tool_prefix"; then
4464 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4465 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4467 $as_echo_n "checking for $ac_word... " >&6; }
4468 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4469 $as_echo_n "(cached) " >&6
4470 else
4471 case $PKG_CONFIG in
4472 [\\/]* | ?:[\\/]*)
4473 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4474 ;;
4475 *)
4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 for as_dir in $PATH
4478 do
4479 IFS=$as_save_IFS
4480 test -z "$as_dir" && as_dir=.
4481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4483 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 break 2
4486 fi
4487 done
4488 done
4489 IFS=$as_save_IFS
4490
4491 ;;
4492 esac
4493 fi
4494 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4495 if test -n "$PKG_CONFIG"; then
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4497 $as_echo "$PKG_CONFIG" >&6; }
4498 else
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4500 $as_echo "no" >&6; }
4501 fi
4502
4503
4504 fi
4505 if test -z "$ac_cv_path_PKG_CONFIG"; then
4506 ac_pt_PKG_CONFIG=$PKG_CONFIG
4507 # Extract the first word of "pkg-config", so it can be a program name with args.
4508 set dummy pkg-config; ac_word=$2
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510 $as_echo_n "checking for $ac_word... " >&6; }
4511 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4512 $as_echo_n "(cached) " >&6
4513 else
4514 case $ac_pt_PKG_CONFIG in
4515 [\\/]* | ?:[\\/]*)
4516 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4517 ;;
4518 *)
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4521 do
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 break 2
4529 fi
4530 done
4531 done
4532 IFS=$as_save_IFS
4533
4534 ;;
4535 esac
4536 fi
4537 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4538 if test -n "$ac_pt_PKG_CONFIG"; then
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4540 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4541 else
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543 $as_echo "no" >&6; }
4544 fi
4545
4546 if test "x$ac_pt_PKG_CONFIG" = x; then
4547 PKG_CONFIG=""
4548 else
4549 case $cross_compiling:$ac_tool_warned in
4550 yes:)
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4553 ac_tool_warned=yes ;;
4554 esac
4555 PKG_CONFIG=$ac_pt_PKG_CONFIG
4556 fi
4557 else
4558 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4559 fi
4560
4561 fi
4562 if test -n "$PKG_CONFIG"; then
4563 _pkg_min_version=0.9.0
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4565 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4566 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4568 $as_echo "yes" >&6; }
4569 else
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571 $as_echo "no" >&6; }
4572 PKG_CONFIG=""
4573 fi
4574 fi
4575 # Make sure we can run config.sub.
4576 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4577 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4578
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4580 $as_echo_n "checking build system type... " >&6; }
4581 if ${ac_cv_build+:} false; then :
4582 $as_echo_n "(cached) " >&6
4583 else
4584 ac_build_alias=$build_alias
4585 test "x$ac_build_alias" = x &&
4586 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4587 test "x$ac_build_alias" = x &&
4588 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4589 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4590 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4591
4592 fi
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4594 $as_echo "$ac_cv_build" >&6; }
4595 case $ac_cv_build in
4596 *-*-*) ;;
4597 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4598 esac
4599 build=$ac_cv_build
4600 ac_save_IFS=$IFS; IFS='-'
4601 set x $ac_cv_build
4602 shift
4603 build_cpu=$1
4604 build_vendor=$2
4605 shift; shift
4606 # Remember, the first character of IFS is used to create $*,
4607 # except with old shells:
4608 build_os=$*
4609 IFS=$ac_save_IFS
4610 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4611
4612
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4614 $as_echo_n "checking host system type... " >&6; }
4615 if ${ac_cv_host+:} false; then :
4616 $as_echo_n "(cached) " >&6
4617 else
4618 if test "x$host_alias" = x; then
4619 ac_cv_host=$ac_cv_build
4620 else
4621 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4622 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4623 fi
4624
4625 fi
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4627 $as_echo "$ac_cv_host" >&6; }
4628 case $ac_cv_host in
4629 *-*-*) ;;
4630 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4631 esac
4632 host=$ac_cv_host
4633 ac_save_IFS=$IFS; IFS='-'
4634 set x $ac_cv_host
4635 shift
4636 host_cpu=$1
4637 host_vendor=$2
4638 shift; shift
4639 # Remember, the first character of IFS is used to create $*,
4640 # except with old shells:
4641 host_os=$*
4642 IFS=$ac_save_IFS
4643 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4644
4645
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4647 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4648 if ${ac_cv_path_SED+:} false; then :
4649 $as_echo_n "(cached) " >&6
4650 else
4651 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4652 for ac_i in 1 2 3 4 5 6 7; do
4653 ac_script="$ac_script$as_nl$ac_script"
4654 done
4655 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4656 { ac_script=; unset ac_script;}
4657 if test -z "$SED"; then
4658 ac_path_SED_found=false
4659 # Loop through the user's path and test for each of PROGNAME-LIST
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH
4662 do
4663 IFS=$as_save_IFS
4664 test -z "$as_dir" && as_dir=.
4665 for ac_prog in sed gsed; do
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4668 as_fn_executable_p "$ac_path_SED" || continue
4669 # Check for GNU ac_path_SED and select it if it is found.
4670 # Check for GNU $ac_path_SED
4671 case `"$ac_path_SED" --version 2>&1` in
4672 *GNU*)
4673 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4674 *)
4675 ac_count=0
4676 $as_echo_n 0123456789 >"conftest.in"
4677 while :
4678 do
4679 cat "conftest.in" "conftest.in" >"conftest.tmp"
4680 mv "conftest.tmp" "conftest.in"
4681 cp "conftest.in" "conftest.nl"
4682 $as_echo '' >> "conftest.nl"
4683 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4685 as_fn_arith $ac_count + 1 && ac_count=$as_val
4686 if test $ac_count -gt ${ac_path_SED_max-0}; then
4687 # Best one so far, save it but keep looking for a better one
4688 ac_cv_path_SED="$ac_path_SED"
4689 ac_path_SED_max=$ac_count
4690 fi
4691 # 10*(2^10) chars as input seems more than enough
4692 test $ac_count -gt 10 && break
4693 done
4694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4695 esac
4696
4697 $ac_path_SED_found && break 3
4698 done
4699 done
4700 done
4701 IFS=$as_save_IFS
4702 if test -z "$ac_cv_path_SED"; then
4703 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4704 fi
4705 else
4706 ac_cv_path_SED=$SED
4707 fi
4708
4709 fi
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4711 $as_echo "$ac_cv_path_SED" >&6; }
4712 SED="$ac_cv_path_SED"
4713 rm -f conftest.sed
4714
4715
4716
4717
4718
4719
4720 # Check whether --enable-selective-werror was given.
4721 if test "${enable_selective_werror+set}" = set; then :
4722 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4723 else
4724 SELECTIVE_WERROR=yes
4725 fi
4726
4727
4728
4729
4730
4731 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4732 if test "x$SUNCC" = "xyes"; then
4733 BASE_CFLAGS="-v"
4734 else
4735 BASE_CFLAGS=""
4736 fi
4737
4738 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752 xorg_testset_save_CFLAGS="$CFLAGS"
4753
4754 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4755 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4757 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4758 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4759 $as_echo_n "(cached) " >&6
4760 else
4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h. */
4763 int i;
4764 _ACEOF
4765 if ac_fn_c_try_compile "$LINENO"; then :
4766 xorg_cv_cc_flag_unknown_warning_option=yes
4767 else
4768 xorg_cv_cc_flag_unknown_warning_option=no
4769 fi
4770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771 fi
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4773 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4775 CFLAGS="$xorg_testset_save_CFLAGS"
4776 fi
4777
4778 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4781 fi
4782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4784 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4785 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4786 $as_echo_n "(cached) " >&6
4787 else
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4790 int i;
4791 _ACEOF
4792 if ac_fn_c_try_compile "$LINENO"; then :
4793 xorg_cv_cc_flag_unused_command_line_argument=yes
4794 else
4795 xorg_cv_cc_flag_unused_command_line_argument=no
4796 fi
4797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798 fi
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4800 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4801 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4802 CFLAGS="$xorg_testset_save_CFLAGS"
4803 fi
4804
4805 found="no"
4806
4807 if test $found = "no" ; then
4808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4810 fi
4811
4812 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4814 fi
4815
4816 CFLAGS="$CFLAGS -Wall"
4817
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4819 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4820 cacheid=xorg_cv_cc_flag__Wall
4821 if eval \${$cacheid+:} false; then :
4822 $as_echo_n "(cached) " >&6
4823 else
4824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4825 /* end confdefs.h. */
4826 int i;
4827 int
4828 main ()
4829 {
4830
4831 ;
4832 return 0;
4833 }
4834 _ACEOF
4835 if ac_fn_c_try_link "$LINENO"; then :
4836 eval $cacheid=yes
4837 else
4838 eval $cacheid=no
4839 fi
4840 rm -f core conftest.err conftest.$ac_objext \
4841 conftest$ac_exeext conftest.$ac_ext
4842 fi
4843
4844
4845 CFLAGS="$xorg_testset_save_CFLAGS"
4846
4847 eval supported=\$$cacheid
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4849 $as_echo "$supported" >&6; }
4850 if test "$supported" = "yes" ; then
4851 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4852 found="yes"
4853 fi
4854 fi
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870 xorg_testset_save_CFLAGS="$CFLAGS"
4871
4872 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4875 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4876 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4877 $as_echo_n "(cached) " >&6
4878 else
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4881 int i;
4882 _ACEOF
4883 if ac_fn_c_try_compile "$LINENO"; then :
4884 xorg_cv_cc_flag_unknown_warning_option=yes
4885 else
4886 xorg_cv_cc_flag_unknown_warning_option=no
4887 fi
4888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889 fi
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4891 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4892 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4893 CFLAGS="$xorg_testset_save_CFLAGS"
4894 fi
4895
4896 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4899 fi
4900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4902 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4903 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4904 $as_echo_n "(cached) " >&6
4905 else
4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907 /* end confdefs.h. */
4908 int i;
4909 _ACEOF
4910 if ac_fn_c_try_compile "$LINENO"; then :
4911 xorg_cv_cc_flag_unused_command_line_argument=yes
4912 else
4913 xorg_cv_cc_flag_unused_command_line_argument=no
4914 fi
4915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4916 fi
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4918 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4919 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4920 CFLAGS="$xorg_testset_save_CFLAGS"
4921 fi
4922
4923 found="no"
4924
4925 if test $found = "no" ; then
4926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4928 fi
4929
4930 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4932 fi
4933
4934 CFLAGS="$CFLAGS -Wpointer-arith"
4935
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4937 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4938 cacheid=xorg_cv_cc_flag__Wpointer_arith
4939 if eval \${$cacheid+:} false; then :
4940 $as_echo_n "(cached) " >&6
4941 else
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4944 int i;
4945 int
4946 main ()
4947 {
4948
4949 ;
4950 return 0;
4951 }
4952 _ACEOF
4953 if ac_fn_c_try_link "$LINENO"; then :
4954 eval $cacheid=yes
4955 else
4956 eval $cacheid=no
4957 fi
4958 rm -f core conftest.err conftest.$ac_objext \
4959 conftest$ac_exeext conftest.$ac_ext
4960 fi
4961
4962
4963 CFLAGS="$xorg_testset_save_CFLAGS"
4964
4965 eval supported=\$$cacheid
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4967 $as_echo "$supported" >&6; }
4968 if test "$supported" = "yes" ; then
4969 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4970 found="yes"
4971 fi
4972 fi
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988 xorg_testset_save_CFLAGS="$CFLAGS"
4989
4990 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4993 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4994 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4995 $as_echo_n "(cached) " >&6
4996 else
4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
4999 int i;
5000 _ACEOF
5001 if ac_fn_c_try_compile "$LINENO"; then :
5002 xorg_cv_cc_flag_unknown_warning_option=yes
5003 else
5004 xorg_cv_cc_flag_unknown_warning_option=no
5005 fi
5006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5007 fi
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5009 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5010 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5011 CFLAGS="$xorg_testset_save_CFLAGS"
5012 fi
5013
5014 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5017 fi
5018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5020 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5021 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5022 $as_echo_n "(cached) " >&6
5023 else
5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025 /* end confdefs.h. */
5026 int i;
5027 _ACEOF
5028 if ac_fn_c_try_compile "$LINENO"; then :
5029 xorg_cv_cc_flag_unused_command_line_argument=yes
5030 else
5031 xorg_cv_cc_flag_unused_command_line_argument=no
5032 fi
5033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5034 fi
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5036 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5037 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5038 CFLAGS="$xorg_testset_save_CFLAGS"
5039 fi
5040
5041 found="no"
5042
5043 if test $found = "no" ; then
5044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5046 fi
5047
5048 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5050 fi
5051
5052 CFLAGS="$CFLAGS -Wmissing-declarations"
5053
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5055 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5056 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5057 if eval \${$cacheid+:} false; then :
5058 $as_echo_n "(cached) " >&6
5059 else
5060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061 /* end confdefs.h. */
5062 int i;
5063 int
5064 main ()
5065 {
5066
5067 ;
5068 return 0;
5069 }
5070 _ACEOF
5071 if ac_fn_c_try_link "$LINENO"; then :
5072 eval $cacheid=yes
5073 else
5074 eval $cacheid=no
5075 fi
5076 rm -f core conftest.err conftest.$ac_objext \
5077 conftest$ac_exeext conftest.$ac_ext
5078 fi
5079
5080
5081 CFLAGS="$xorg_testset_save_CFLAGS"
5082
5083 eval supported=\$$cacheid
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5085 $as_echo "$supported" >&6; }
5086 if test "$supported" = "yes" ; then
5087 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5088 found="yes"
5089 fi
5090 fi
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106 xorg_testset_save_CFLAGS="$CFLAGS"
5107
5108 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5111 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5112 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5113 $as_echo_n "(cached) " >&6
5114 else
5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h. */
5117 int i;
5118 _ACEOF
5119 if ac_fn_c_try_compile "$LINENO"; then :
5120 xorg_cv_cc_flag_unknown_warning_option=yes
5121 else
5122 xorg_cv_cc_flag_unknown_warning_option=no
5123 fi
5124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5125 fi
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5127 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5128 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5129 CFLAGS="$xorg_testset_save_CFLAGS"
5130 fi
5131
5132 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5135 fi
5136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5138 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5139 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5140 $as_echo_n "(cached) " >&6
5141 else
5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5144 int i;
5145 _ACEOF
5146 if ac_fn_c_try_compile "$LINENO"; then :
5147 xorg_cv_cc_flag_unused_command_line_argument=yes
5148 else
5149 xorg_cv_cc_flag_unused_command_line_argument=no
5150 fi
5151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5152 fi
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5154 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5155 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5156 CFLAGS="$xorg_testset_save_CFLAGS"
5157 fi
5158
5159 found="no"
5160
5161 if test $found = "no" ; then
5162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5164 fi
5165
5166 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5168 fi
5169
5170 CFLAGS="$CFLAGS -Wformat=2"
5171
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5173 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5174 cacheid=xorg_cv_cc_flag__Wformat_2
5175 if eval \${$cacheid+:} 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 int
5182 main ()
5183 {
5184
5185 ;
5186 return 0;
5187 }
5188 _ACEOF
5189 if ac_fn_c_try_link "$LINENO"; then :
5190 eval $cacheid=yes
5191 else
5192 eval $cacheid=no
5193 fi
5194 rm -f core conftest.err conftest.$ac_objext \
5195 conftest$ac_exeext conftest.$ac_ext
5196 fi
5197
5198
5199 CFLAGS="$xorg_testset_save_CFLAGS"
5200
5201 eval supported=\$$cacheid
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5203 $as_echo "$supported" >&6; }
5204 if test "$supported" = "yes" ; then
5205 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5206 found="yes"
5207 fi
5208 fi
5209
5210 if test $found = "no" ; then
5211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5213 fi
5214
5215 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5217 fi
5218
5219 CFLAGS="$CFLAGS -Wformat"
5220
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5222 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5223 cacheid=xorg_cv_cc_flag__Wformat
5224 if eval \${$cacheid+:} false; then :
5225 $as_echo_n "(cached) " >&6
5226 else
5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h. */
5229 int i;
5230 int
5231 main ()
5232 {
5233
5234 ;
5235 return 0;
5236 }
5237 _ACEOF
5238 if ac_fn_c_try_link "$LINENO"; then :
5239 eval $cacheid=yes
5240 else
5241 eval $cacheid=no
5242 fi
5243 rm -f core conftest.err conftest.$ac_objext \
5244 conftest$ac_exeext conftest.$ac_ext
5245 fi
5246
5247
5248 CFLAGS="$xorg_testset_save_CFLAGS"
5249
5250 eval supported=\$$cacheid
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5252 $as_echo "$supported" >&6; }
5253 if test "$supported" = "yes" ; then
5254 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5255 found="yes"
5256 fi
5257 fi
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275 xorg_testset_save_CFLAGS="$CFLAGS"
5276
5277 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5280 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5281 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5282 $as_echo_n "(cached) " >&6
5283 else
5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5286 int i;
5287 _ACEOF
5288 if ac_fn_c_try_compile "$LINENO"; then :
5289 xorg_cv_cc_flag_unknown_warning_option=yes
5290 else
5291 xorg_cv_cc_flag_unknown_warning_option=no
5292 fi
5293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5294 fi
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5296 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5297 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5298 CFLAGS="$xorg_testset_save_CFLAGS"
5299 fi
5300
5301 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5304 fi
5305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5307 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5308 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5309 $as_echo_n "(cached) " >&6
5310 else
5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h. */
5313 int i;
5314 _ACEOF
5315 if ac_fn_c_try_compile "$LINENO"; then :
5316 xorg_cv_cc_flag_unused_command_line_argument=yes
5317 else
5318 xorg_cv_cc_flag_unused_command_line_argument=no
5319 fi
5320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5321 fi
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5323 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5324 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5325 CFLAGS="$xorg_testset_save_CFLAGS"
5326 fi
5327
5328 found="no"
5329
5330 if test $found = "no" ; then
5331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5333 fi
5334
5335 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5337 fi
5338
5339 CFLAGS="$CFLAGS -Wstrict-prototypes"
5340
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5342 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5343 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5344 if eval \${$cacheid+:} false; then :
5345 $as_echo_n "(cached) " >&6
5346 else
5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348 /* end confdefs.h. */
5349 int i;
5350 int
5351 main ()
5352 {
5353
5354 ;
5355 return 0;
5356 }
5357 _ACEOF
5358 if ac_fn_c_try_link "$LINENO"; then :
5359 eval $cacheid=yes
5360 else
5361 eval $cacheid=no
5362 fi
5363 rm -f core conftest.err conftest.$ac_objext \
5364 conftest$ac_exeext conftest.$ac_ext
5365 fi
5366
5367
5368 CFLAGS="$xorg_testset_save_CFLAGS"
5369
5370 eval supported=\$$cacheid
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5372 $as_echo "$supported" >&6; }
5373 if test "$supported" = "yes" ; then
5374 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5375 found="yes"
5376 fi
5377 fi
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393 xorg_testset_save_CFLAGS="$CFLAGS"
5394
5395 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5398 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5399 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5400 $as_echo_n "(cached) " >&6
5401 else
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5404 int i;
5405 _ACEOF
5406 if ac_fn_c_try_compile "$LINENO"; then :
5407 xorg_cv_cc_flag_unknown_warning_option=yes
5408 else
5409 xorg_cv_cc_flag_unknown_warning_option=no
5410 fi
5411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5412 fi
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5414 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5415 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5416 CFLAGS="$xorg_testset_save_CFLAGS"
5417 fi
5418
5419 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5420 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5422 fi
5423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5425 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5426 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5427 $as_echo_n "(cached) " >&6
5428 else
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5431 int i;
5432 _ACEOF
5433 if ac_fn_c_try_compile "$LINENO"; then :
5434 xorg_cv_cc_flag_unused_command_line_argument=yes
5435 else
5436 xorg_cv_cc_flag_unused_command_line_argument=no
5437 fi
5438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5439 fi
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5441 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5442 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5443 CFLAGS="$xorg_testset_save_CFLAGS"
5444 fi
5445
5446 found="no"
5447
5448 if test $found = "no" ; then
5449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5451 fi
5452
5453 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5455 fi
5456
5457 CFLAGS="$CFLAGS -Wmissing-prototypes"
5458
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5460 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5461 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5462 if eval \${$cacheid+:} false; then :
5463 $as_echo_n "(cached) " >&6
5464 else
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5467 int i;
5468 int
5469 main ()
5470 {
5471
5472 ;
5473 return 0;
5474 }
5475 _ACEOF
5476 if ac_fn_c_try_link "$LINENO"; then :
5477 eval $cacheid=yes
5478 else
5479 eval $cacheid=no
5480 fi
5481 rm -f core conftest.err conftest.$ac_objext \
5482 conftest$ac_exeext conftest.$ac_ext
5483 fi
5484
5485
5486 CFLAGS="$xorg_testset_save_CFLAGS"
5487
5488 eval supported=\$$cacheid
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5490 $as_echo "$supported" >&6; }
5491 if test "$supported" = "yes" ; then
5492 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5493 found="yes"
5494 fi
5495 fi
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511 xorg_testset_save_CFLAGS="$CFLAGS"
5512
5513 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5516 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5517 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h. */
5522 int i;
5523 _ACEOF
5524 if ac_fn_c_try_compile "$LINENO"; then :
5525 xorg_cv_cc_flag_unknown_warning_option=yes
5526 else
5527 xorg_cv_cc_flag_unknown_warning_option=no
5528 fi
5529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 fi
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5532 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5533 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5534 CFLAGS="$xorg_testset_save_CFLAGS"
5535 fi
5536
5537 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5540 fi
5541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5543 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5544 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5545 $as_echo_n "(cached) " >&6
5546 else
5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548 /* end confdefs.h. */
5549 int i;
5550 _ACEOF
5551 if ac_fn_c_try_compile "$LINENO"; then :
5552 xorg_cv_cc_flag_unused_command_line_argument=yes
5553 else
5554 xorg_cv_cc_flag_unused_command_line_argument=no
5555 fi
5556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557 fi
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5559 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5560 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5561 CFLAGS="$xorg_testset_save_CFLAGS"
5562 fi
5563
5564 found="no"
5565
5566 if test $found = "no" ; then
5567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5569 fi
5570
5571 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5573 fi
5574
5575 CFLAGS="$CFLAGS -Wnested-externs"
5576
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5578 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5579 cacheid=xorg_cv_cc_flag__Wnested_externs
5580 if eval \${$cacheid+:} false; then :
5581 $as_echo_n "(cached) " >&6
5582 else
5583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584 /* end confdefs.h. */
5585 int i;
5586 int
5587 main ()
5588 {
5589
5590 ;
5591 return 0;
5592 }
5593 _ACEOF
5594 if ac_fn_c_try_link "$LINENO"; then :
5595 eval $cacheid=yes
5596 else
5597 eval $cacheid=no
5598 fi
5599 rm -f core conftest.err conftest.$ac_objext \
5600 conftest$ac_exeext conftest.$ac_ext
5601 fi
5602
5603
5604 CFLAGS="$xorg_testset_save_CFLAGS"
5605
5606 eval supported=\$$cacheid
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5608 $as_echo "$supported" >&6; }
5609 if test "$supported" = "yes" ; then
5610 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5611 found="yes"
5612 fi
5613 fi
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629 xorg_testset_save_CFLAGS="$CFLAGS"
5630
5631 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5634 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5635 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5636 $as_echo_n "(cached) " >&6
5637 else
5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h. */
5640 int i;
5641 _ACEOF
5642 if ac_fn_c_try_compile "$LINENO"; then :
5643 xorg_cv_cc_flag_unknown_warning_option=yes
5644 else
5645 xorg_cv_cc_flag_unknown_warning_option=no
5646 fi
5647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5648 fi
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5650 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5651 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5652 CFLAGS="$xorg_testset_save_CFLAGS"
5653 fi
5654
5655 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5658 fi
5659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5661 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5662 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5663 $as_echo_n "(cached) " >&6
5664 else
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667 int i;
5668 _ACEOF
5669 if ac_fn_c_try_compile "$LINENO"; then :
5670 xorg_cv_cc_flag_unused_command_line_argument=yes
5671 else
5672 xorg_cv_cc_flag_unused_command_line_argument=no
5673 fi
5674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675 fi
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5677 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5679 CFLAGS="$xorg_testset_save_CFLAGS"
5680 fi
5681
5682 found="no"
5683
5684 if test $found = "no" ; then
5685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5687 fi
5688
5689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5691 fi
5692
5693 CFLAGS="$CFLAGS -Wbad-function-cast"
5694
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5696 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5697 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5698 if eval \${$cacheid+:} false; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702 /* end confdefs.h. */
5703 int i;
5704 int
5705 main ()
5706 {
5707
5708 ;
5709 return 0;
5710 }
5711 _ACEOF
5712 if ac_fn_c_try_link "$LINENO"; then :
5713 eval $cacheid=yes
5714 else
5715 eval $cacheid=no
5716 fi
5717 rm -f core conftest.err conftest.$ac_objext \
5718 conftest$ac_exeext conftest.$ac_ext
5719 fi
5720
5721
5722 CFLAGS="$xorg_testset_save_CFLAGS"
5723
5724 eval supported=\$$cacheid
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5726 $as_echo "$supported" >&6; }
5727 if test "$supported" = "yes" ; then
5728 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5729 found="yes"
5730 fi
5731 fi
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747 xorg_testset_save_CFLAGS="$CFLAGS"
5748
5749 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5752 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5753 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5754 $as_echo_n "(cached) " >&6
5755 else
5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757 /* end confdefs.h. */
5758 int i;
5759 _ACEOF
5760 if ac_fn_c_try_compile "$LINENO"; then :
5761 xorg_cv_cc_flag_unknown_warning_option=yes
5762 else
5763 xorg_cv_cc_flag_unknown_warning_option=no
5764 fi
5765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766 fi
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5768 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5769 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5770 CFLAGS="$xorg_testset_save_CFLAGS"
5771 fi
5772
5773 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5776 fi
5777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5779 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5780 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5781 $as_echo_n "(cached) " >&6
5782 else
5783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5784 /* end confdefs.h. */
5785 int i;
5786 _ACEOF
5787 if ac_fn_c_try_compile "$LINENO"; then :
5788 xorg_cv_cc_flag_unused_command_line_argument=yes
5789 else
5790 xorg_cv_cc_flag_unused_command_line_argument=no
5791 fi
5792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5793 fi
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5795 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5796 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5797 CFLAGS="$xorg_testset_save_CFLAGS"
5798 fi
5799
5800 found="no"
5801
5802 if test $found = "no" ; then
5803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5805 fi
5806
5807 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5809 fi
5810
5811 CFLAGS="$CFLAGS -Wold-style-definition"
5812
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5814 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5815 cacheid=xorg_cv_cc_flag__Wold_style_definition
5816 if eval \${$cacheid+:} false; then :
5817 $as_echo_n "(cached) " >&6
5818 else
5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5821 int i;
5822 int
5823 main ()
5824 {
5825
5826 ;
5827 return 0;
5828 }
5829 _ACEOF
5830 if ac_fn_c_try_link "$LINENO"; then :
5831 eval $cacheid=yes
5832 else
5833 eval $cacheid=no
5834 fi
5835 rm -f core conftest.err conftest.$ac_objext \
5836 conftest$ac_exeext conftest.$ac_ext
5837 fi
5838
5839
5840 CFLAGS="$xorg_testset_save_CFLAGS"
5841
5842 eval supported=\$$cacheid
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5844 $as_echo "$supported" >&6; }
5845 if test "$supported" = "yes" ; then
5846 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5847 found="yes"
5848 fi
5849 fi
5850
5851 if test $found = "no" ; then
5852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5854 fi
5855
5856 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5858 fi
5859
5860 CFLAGS="$CFLAGS -fd"
5861
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5863 $as_echo_n "checking if $CC supports -fd... " >&6; }
5864 cacheid=xorg_cv_cc_flag__fd
5865 if eval \${$cacheid+:} false; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5870 int i;
5871 int
5872 main ()
5873 {
5874
5875 ;
5876 return 0;
5877 }
5878 _ACEOF
5879 if ac_fn_c_try_link "$LINENO"; then :
5880 eval $cacheid=yes
5881 else
5882 eval $cacheid=no
5883 fi
5884 rm -f core conftest.err conftest.$ac_objext \
5885 conftest$ac_exeext conftest.$ac_ext
5886 fi
5887
5888
5889 CFLAGS="$xorg_testset_save_CFLAGS"
5890
5891 eval supported=\$$cacheid
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5893 $as_echo "$supported" >&6; }
5894 if test "$supported" = "yes" ; then
5895 BASE_CFLAGS="$BASE_CFLAGS -fd"
5896 found="yes"
5897 fi
5898 fi
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914 xorg_testset_save_CFLAGS="$CFLAGS"
5915
5916 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5919 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5920 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5921 $as_echo_n "(cached) " >&6
5922 else
5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h. */
5925 int i;
5926 _ACEOF
5927 if ac_fn_c_try_compile "$LINENO"; then :
5928 xorg_cv_cc_flag_unknown_warning_option=yes
5929 else
5930 xorg_cv_cc_flag_unknown_warning_option=no
5931 fi
5932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5933 fi
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5935 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5936 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5937 CFLAGS="$xorg_testset_save_CFLAGS"
5938 fi
5939
5940 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5943 fi
5944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5946 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5947 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5948 $as_echo_n "(cached) " >&6
5949 else
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h. */
5952 int i;
5953 _ACEOF
5954 if ac_fn_c_try_compile "$LINENO"; then :
5955 xorg_cv_cc_flag_unused_command_line_argument=yes
5956 else
5957 xorg_cv_cc_flag_unused_command_line_argument=no
5958 fi
5959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960 fi
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5962 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5964 CFLAGS="$xorg_testset_save_CFLAGS"
5965 fi
5966
5967 found="no"
5968
5969 if test $found = "no" ; then
5970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5972 fi
5973
5974 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5976 fi
5977
5978 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5979
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5981 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5982 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5983 if eval \${$cacheid+:} false; then :
5984 $as_echo_n "(cached) " >&6
5985 else
5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987 /* end confdefs.h. */
5988 int i;
5989 int
5990 main ()
5991 {
5992
5993 ;
5994 return 0;
5995 }
5996 _ACEOF
5997 if ac_fn_c_try_link "$LINENO"; then :
5998 eval $cacheid=yes
5999 else
6000 eval $cacheid=no
6001 fi
6002 rm -f core conftest.err conftest.$ac_objext \
6003 conftest$ac_exeext conftest.$ac_ext
6004 fi
6005
6006
6007 CFLAGS="$xorg_testset_save_CFLAGS"
6008
6009 eval supported=\$$cacheid
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6011 $as_echo "$supported" >&6; }
6012 if test "$supported" = "yes" ; then
6013 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6014 found="yes"
6015 fi
6016 fi
6017
6018
6019
6020
6021
6022 # This chunk adds additional warnings that could catch undesired effects.
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036 xorg_testset_save_CFLAGS="$CFLAGS"
6037
6038 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6041 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6042 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6043 $as_echo_n "(cached) " >&6
6044 else
6045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046 /* end confdefs.h. */
6047 int i;
6048 _ACEOF
6049 if ac_fn_c_try_compile "$LINENO"; then :
6050 xorg_cv_cc_flag_unknown_warning_option=yes
6051 else
6052 xorg_cv_cc_flag_unknown_warning_option=no
6053 fi
6054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055 fi
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6057 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6058 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6059 CFLAGS="$xorg_testset_save_CFLAGS"
6060 fi
6061
6062 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6065 fi
6066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6068 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6069 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6070 $as_echo_n "(cached) " >&6
6071 else
6072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6073 /* end confdefs.h. */
6074 int i;
6075 _ACEOF
6076 if ac_fn_c_try_compile "$LINENO"; then :
6077 xorg_cv_cc_flag_unused_command_line_argument=yes
6078 else
6079 xorg_cv_cc_flag_unused_command_line_argument=no
6080 fi
6081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6082 fi
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6084 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6085 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6086 CFLAGS="$xorg_testset_save_CFLAGS"
6087 fi
6088
6089 found="no"
6090
6091 if test $found = "no" ; then
6092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6094 fi
6095
6096 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6098 fi
6099
6100 CFLAGS="$CFLAGS -Wunused"
6101
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6103 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6104 cacheid=xorg_cv_cc_flag__Wunused
6105 if eval \${$cacheid+:} false; then :
6106 $as_echo_n "(cached) " >&6
6107 else
6108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6110 int i;
6111 int
6112 main ()
6113 {
6114
6115 ;
6116 return 0;
6117 }
6118 _ACEOF
6119 if ac_fn_c_try_link "$LINENO"; then :
6120 eval $cacheid=yes
6121 else
6122 eval $cacheid=no
6123 fi
6124 rm -f core conftest.err conftest.$ac_objext \
6125 conftest$ac_exeext conftest.$ac_ext
6126 fi
6127
6128
6129 CFLAGS="$xorg_testset_save_CFLAGS"
6130
6131 eval supported=\$$cacheid
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6133 $as_echo "$supported" >&6; }
6134 if test "$supported" = "yes" ; then
6135 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6136 found="yes"
6137 fi
6138 fi
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154 xorg_testset_save_CFLAGS="$CFLAGS"
6155
6156 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6159 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6160 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6161 $as_echo_n "(cached) " >&6
6162 else
6163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164 /* end confdefs.h. */
6165 int i;
6166 _ACEOF
6167 if ac_fn_c_try_compile "$LINENO"; then :
6168 xorg_cv_cc_flag_unknown_warning_option=yes
6169 else
6170 xorg_cv_cc_flag_unknown_warning_option=no
6171 fi
6172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6173 fi
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6175 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6176 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6177 CFLAGS="$xorg_testset_save_CFLAGS"
6178 fi
6179
6180 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6183 fi
6184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6186 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6187 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6188 $as_echo_n "(cached) " >&6
6189 else
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6192 int i;
6193 _ACEOF
6194 if ac_fn_c_try_compile "$LINENO"; then :
6195 xorg_cv_cc_flag_unused_command_line_argument=yes
6196 else
6197 xorg_cv_cc_flag_unused_command_line_argument=no
6198 fi
6199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6200 fi
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6202 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6203 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6204 CFLAGS="$xorg_testset_save_CFLAGS"
6205 fi
6206
6207 found="no"
6208
6209 if test $found = "no" ; then
6210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6212 fi
6213
6214 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6216 fi
6217
6218 CFLAGS="$CFLAGS -Wuninitialized"
6219
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6221 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6222 cacheid=xorg_cv_cc_flag__Wuninitialized
6223 if eval \${$cacheid+:} false; then :
6224 $as_echo_n "(cached) " >&6
6225 else
6226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227 /* end confdefs.h. */
6228 int i;
6229 int
6230 main ()
6231 {
6232
6233 ;
6234 return 0;
6235 }
6236 _ACEOF
6237 if ac_fn_c_try_link "$LINENO"; then :
6238 eval $cacheid=yes
6239 else
6240 eval $cacheid=no
6241 fi
6242 rm -f core conftest.err conftest.$ac_objext \
6243 conftest$ac_exeext conftest.$ac_ext
6244 fi
6245
6246
6247 CFLAGS="$xorg_testset_save_CFLAGS"
6248
6249 eval supported=\$$cacheid
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6251 $as_echo "$supported" >&6; }
6252 if test "$supported" = "yes" ; then
6253 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6254 found="yes"
6255 fi
6256 fi
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272 xorg_testset_save_CFLAGS="$CFLAGS"
6273
6274 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6277 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6278 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6279 $as_echo_n "(cached) " >&6
6280 else
6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6283 int i;
6284 _ACEOF
6285 if ac_fn_c_try_compile "$LINENO"; then :
6286 xorg_cv_cc_flag_unknown_warning_option=yes
6287 else
6288 xorg_cv_cc_flag_unknown_warning_option=no
6289 fi
6290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291 fi
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6293 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6294 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6295 CFLAGS="$xorg_testset_save_CFLAGS"
6296 fi
6297
6298 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6301 fi
6302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6304 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6305 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6306 $as_echo_n "(cached) " >&6
6307 else
6308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309 /* end confdefs.h. */
6310 int i;
6311 _ACEOF
6312 if ac_fn_c_try_compile "$LINENO"; then :
6313 xorg_cv_cc_flag_unused_command_line_argument=yes
6314 else
6315 xorg_cv_cc_flag_unused_command_line_argument=no
6316 fi
6317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6318 fi
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6320 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6321 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6322 CFLAGS="$xorg_testset_save_CFLAGS"
6323 fi
6324
6325 found="no"
6326
6327 if test $found = "no" ; then
6328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6330 fi
6331
6332 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6334 fi
6335
6336 CFLAGS="$CFLAGS -Wshadow"
6337
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6339 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6340 cacheid=xorg_cv_cc_flag__Wshadow
6341 if eval \${$cacheid+:} false; then :
6342 $as_echo_n "(cached) " >&6
6343 else
6344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345 /* end confdefs.h. */
6346 int i;
6347 int
6348 main ()
6349 {
6350
6351 ;
6352 return 0;
6353 }
6354 _ACEOF
6355 if ac_fn_c_try_link "$LINENO"; then :
6356 eval $cacheid=yes
6357 else
6358 eval $cacheid=no
6359 fi
6360 rm -f core conftest.err conftest.$ac_objext \
6361 conftest$ac_exeext conftest.$ac_ext
6362 fi
6363
6364
6365 CFLAGS="$xorg_testset_save_CFLAGS"
6366
6367 eval supported=\$$cacheid
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6369 $as_echo "$supported" >&6; }
6370 if test "$supported" = "yes" ; then
6371 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6372 found="yes"
6373 fi
6374 fi
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390 xorg_testset_save_CFLAGS="$CFLAGS"
6391
6392 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6395 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6396 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6397 $as_echo_n "(cached) " >&6
6398 else
6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h. */
6401 int i;
6402 _ACEOF
6403 if ac_fn_c_try_compile "$LINENO"; then :
6404 xorg_cv_cc_flag_unknown_warning_option=yes
6405 else
6406 xorg_cv_cc_flag_unknown_warning_option=no
6407 fi
6408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6409 fi
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6411 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6412 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6413 CFLAGS="$xorg_testset_save_CFLAGS"
6414 fi
6415
6416 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6419 fi
6420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6422 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6423 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6427 /* end confdefs.h. */
6428 int i;
6429 _ACEOF
6430 if ac_fn_c_try_compile "$LINENO"; then :
6431 xorg_cv_cc_flag_unused_command_line_argument=yes
6432 else
6433 xorg_cv_cc_flag_unused_command_line_argument=no
6434 fi
6435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6436 fi
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6438 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6439 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6440 CFLAGS="$xorg_testset_save_CFLAGS"
6441 fi
6442
6443 found="no"
6444
6445 if test $found = "no" ; then
6446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6448 fi
6449
6450 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6452 fi
6453
6454 CFLAGS="$CFLAGS -Wmissing-noreturn"
6455
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6457 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6458 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6459 if eval \${$cacheid+:} false; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6464 int i;
6465 int
6466 main ()
6467 {
6468
6469 ;
6470 return 0;
6471 }
6472 _ACEOF
6473 if ac_fn_c_try_link "$LINENO"; then :
6474 eval $cacheid=yes
6475 else
6476 eval $cacheid=no
6477 fi
6478 rm -f core conftest.err conftest.$ac_objext \
6479 conftest$ac_exeext conftest.$ac_ext
6480 fi
6481
6482
6483 CFLAGS="$xorg_testset_save_CFLAGS"
6484
6485 eval supported=\$$cacheid
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6487 $as_echo "$supported" >&6; }
6488 if test "$supported" = "yes" ; then
6489 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6490 found="yes"
6491 fi
6492 fi
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508 xorg_testset_save_CFLAGS="$CFLAGS"
6509
6510 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6513 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6514 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6515 $as_echo_n "(cached) " >&6
6516 else
6517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518 /* end confdefs.h. */
6519 int i;
6520 _ACEOF
6521 if ac_fn_c_try_compile "$LINENO"; then :
6522 xorg_cv_cc_flag_unknown_warning_option=yes
6523 else
6524 xorg_cv_cc_flag_unknown_warning_option=no
6525 fi
6526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6527 fi
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6529 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6530 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6531 CFLAGS="$xorg_testset_save_CFLAGS"
6532 fi
6533
6534 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6537 fi
6538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6540 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6541 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6542 $as_echo_n "(cached) " >&6
6543 else
6544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6545 /* end confdefs.h. */
6546 int i;
6547 _ACEOF
6548 if ac_fn_c_try_compile "$LINENO"; then :
6549 xorg_cv_cc_flag_unused_command_line_argument=yes
6550 else
6551 xorg_cv_cc_flag_unused_command_line_argument=no
6552 fi
6553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554 fi
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6556 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6557 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6558 CFLAGS="$xorg_testset_save_CFLAGS"
6559 fi
6560
6561 found="no"
6562
6563 if test $found = "no" ; then
6564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6566 fi
6567
6568 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6570 fi
6571
6572 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6573
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6575 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6576 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6577 if eval \${$cacheid+:} false; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h. */
6582 int i;
6583 int
6584 main ()
6585 {
6586
6587 ;
6588 return 0;
6589 }
6590 _ACEOF
6591 if ac_fn_c_try_link "$LINENO"; then :
6592 eval $cacheid=yes
6593 else
6594 eval $cacheid=no
6595 fi
6596 rm -f core conftest.err conftest.$ac_objext \
6597 conftest$ac_exeext conftest.$ac_ext
6598 fi
6599
6600
6601 CFLAGS="$xorg_testset_save_CFLAGS"
6602
6603 eval supported=\$$cacheid
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6605 $as_echo "$supported" >&6; }
6606 if test "$supported" = "yes" ; then
6607 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6608 found="yes"
6609 fi
6610 fi
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626 xorg_testset_save_CFLAGS="$CFLAGS"
6627
6628 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6631 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6632 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6633 $as_echo_n "(cached) " >&6
6634 else
6635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636 /* end confdefs.h. */
6637 int i;
6638 _ACEOF
6639 if ac_fn_c_try_compile "$LINENO"; then :
6640 xorg_cv_cc_flag_unknown_warning_option=yes
6641 else
6642 xorg_cv_cc_flag_unknown_warning_option=no
6643 fi
6644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645 fi
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6647 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6648 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6649 CFLAGS="$xorg_testset_save_CFLAGS"
6650 fi
6651
6652 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6655 fi
6656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6658 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6659 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6660 $as_echo_n "(cached) " >&6
6661 else
6662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663 /* end confdefs.h. */
6664 int i;
6665 _ACEOF
6666 if ac_fn_c_try_compile "$LINENO"; then :
6667 xorg_cv_cc_flag_unused_command_line_argument=yes
6668 else
6669 xorg_cv_cc_flag_unused_command_line_argument=no
6670 fi
6671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6672 fi
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6674 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6675 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6676 CFLAGS="$xorg_testset_save_CFLAGS"
6677 fi
6678
6679 found="no"
6680
6681 if test $found = "no" ; then
6682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6684 fi
6685
6686 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6688 fi
6689
6690 CFLAGS="$CFLAGS -Wredundant-decls"
6691
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6693 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6694 cacheid=xorg_cv_cc_flag__Wredundant_decls
6695 if eval \${$cacheid+:} false; then :
6696 $as_echo_n "(cached) " >&6
6697 else
6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699 /* end confdefs.h. */
6700 int i;
6701 int
6702 main ()
6703 {
6704
6705 ;
6706 return 0;
6707 }
6708 _ACEOF
6709 if ac_fn_c_try_link "$LINENO"; then :
6710 eval $cacheid=yes
6711 else
6712 eval $cacheid=no
6713 fi
6714 rm -f core conftest.err conftest.$ac_objext \
6715 conftest$ac_exeext conftest.$ac_ext
6716 fi
6717
6718
6719 CFLAGS="$xorg_testset_save_CFLAGS"
6720
6721 eval supported=\$$cacheid
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6723 $as_echo "$supported" >&6; }
6724 if test "$supported" = "yes" ; then
6725 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6726 found="yes"
6727 fi
6728 fi
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744 xorg_testset_save_CFLAGS="$CFLAGS"
6745
6746 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6749 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6750 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6751 $as_echo_n "(cached) " >&6
6752 else
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6755 int i;
6756 _ACEOF
6757 if ac_fn_c_try_compile "$LINENO"; then :
6758 xorg_cv_cc_flag_unknown_warning_option=yes
6759 else
6760 xorg_cv_cc_flag_unknown_warning_option=no
6761 fi
6762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6763 fi
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6765 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6766 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6767 CFLAGS="$xorg_testset_save_CFLAGS"
6768 fi
6769
6770 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6773 fi
6774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6776 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6777 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6778 $as_echo_n "(cached) " >&6
6779 else
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h. */
6782 int i;
6783 _ACEOF
6784 if ac_fn_c_try_compile "$LINENO"; then :
6785 xorg_cv_cc_flag_unused_command_line_argument=yes
6786 else
6787 xorg_cv_cc_flag_unused_command_line_argument=no
6788 fi
6789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6790 fi
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6792 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6793 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6794 CFLAGS="$xorg_testset_save_CFLAGS"
6795 fi
6796
6797 found="no"
6798
6799 if test $found = "no" ; then
6800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6802 fi
6803
6804 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6806 fi
6807
6808 CFLAGS="$CFLAGS -Wlogical-op"
6809
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6811 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6812 cacheid=xorg_cv_cc_flag__Wlogical_op
6813 if eval \${$cacheid+:} false; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817 /* end confdefs.h. */
6818 int i;
6819 int
6820 main ()
6821 {
6822
6823 ;
6824 return 0;
6825 }
6826 _ACEOF
6827 if ac_fn_c_try_link "$LINENO"; then :
6828 eval $cacheid=yes
6829 else
6830 eval $cacheid=no
6831 fi
6832 rm -f core conftest.err conftest.$ac_objext \
6833 conftest$ac_exeext conftest.$ac_ext
6834 fi
6835
6836
6837 CFLAGS="$xorg_testset_save_CFLAGS"
6838
6839 eval supported=\$$cacheid
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6841 $as_echo "$supported" >&6; }
6842 if test "$supported" = "yes" ; then
6843 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6844 found="yes"
6845 fi
6846 fi
6847
6848
6849
6850 # These are currently disabled because they are noisy. They will be enabled
6851 # in the future once the codebase is sufficiently modernized to silence
6852 # them. For now, I don't want them to drown out the other warnings.
6853 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6854 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6855 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6856
6857 # Turn some warnings into errors, so we don't accidently get successful builds
6858 # when there are problems that should be fixed.
6859
6860 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874 xorg_testset_save_CFLAGS="$CFLAGS"
6875
6876 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6879 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6880 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6881 $as_echo_n "(cached) " >&6
6882 else
6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h. */
6885 int i;
6886 _ACEOF
6887 if ac_fn_c_try_compile "$LINENO"; then :
6888 xorg_cv_cc_flag_unknown_warning_option=yes
6889 else
6890 xorg_cv_cc_flag_unknown_warning_option=no
6891 fi
6892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6893 fi
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6895 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6896 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6897 CFLAGS="$xorg_testset_save_CFLAGS"
6898 fi
6899
6900 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6903 fi
6904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6906 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6907 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6908 $as_echo_n "(cached) " >&6
6909 else
6910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911 /* end confdefs.h. */
6912 int i;
6913 _ACEOF
6914 if ac_fn_c_try_compile "$LINENO"; then :
6915 xorg_cv_cc_flag_unused_command_line_argument=yes
6916 else
6917 xorg_cv_cc_flag_unused_command_line_argument=no
6918 fi
6919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6920 fi
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6922 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6923 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6924 CFLAGS="$xorg_testset_save_CFLAGS"
6925 fi
6926
6927 found="no"
6928
6929 if test $found = "no" ; then
6930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6931 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6932 fi
6933
6934 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6936 fi
6937
6938 CFLAGS="$CFLAGS -Werror=implicit"
6939
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6941 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6942 cacheid=xorg_cv_cc_flag__Werror_implicit
6943 if eval \${$cacheid+:} false; then :
6944 $as_echo_n "(cached) " >&6
6945 else
6946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6947 /* end confdefs.h. */
6948 int i;
6949 int
6950 main ()
6951 {
6952
6953 ;
6954 return 0;
6955 }
6956 _ACEOF
6957 if ac_fn_c_try_link "$LINENO"; then :
6958 eval $cacheid=yes
6959 else
6960 eval $cacheid=no
6961 fi
6962 rm -f core conftest.err conftest.$ac_objext \
6963 conftest$ac_exeext conftest.$ac_ext
6964 fi
6965
6966
6967 CFLAGS="$xorg_testset_save_CFLAGS"
6968
6969 eval supported=\$$cacheid
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6971 $as_echo "$supported" >&6; }
6972 if test "$supported" = "yes" ; then
6973 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6974 found="yes"
6975 fi
6976 fi
6977
6978 if test $found = "no" ; then
6979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6981 fi
6982
6983 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6985 fi
6986
6987 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6988
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6990 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6991 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6992 if eval \${$cacheid+:} false; then :
6993 $as_echo_n "(cached) " >&6
6994 else
6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h. */
6997 int i;
6998 int
6999 main ()
7000 {
7001
7002 ;
7003 return 0;
7004 }
7005 _ACEOF
7006 if ac_fn_c_try_link "$LINENO"; then :
7007 eval $cacheid=yes
7008 else
7009 eval $cacheid=no
7010 fi
7011 rm -f core conftest.err conftest.$ac_objext \
7012 conftest$ac_exeext conftest.$ac_ext
7013 fi
7014
7015
7016 CFLAGS="$xorg_testset_save_CFLAGS"
7017
7018 eval supported=\$$cacheid
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7020 $as_echo "$supported" >&6; }
7021 if test "$supported" = "yes" ; then
7022 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7023 found="yes"
7024 fi
7025 fi
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041 xorg_testset_save_CFLAGS="$CFLAGS"
7042
7043 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7046 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7047 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7048 $as_echo_n "(cached) " >&6
7049 else
7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7052 int i;
7053 _ACEOF
7054 if ac_fn_c_try_compile "$LINENO"; then :
7055 xorg_cv_cc_flag_unknown_warning_option=yes
7056 else
7057 xorg_cv_cc_flag_unknown_warning_option=no
7058 fi
7059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7060 fi
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7062 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7063 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7064 CFLAGS="$xorg_testset_save_CFLAGS"
7065 fi
7066
7067 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7070 fi
7071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7073 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7074 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7075 $as_echo_n "(cached) " >&6
7076 else
7077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7078 /* end confdefs.h. */
7079 int i;
7080 _ACEOF
7081 if ac_fn_c_try_compile "$LINENO"; then :
7082 xorg_cv_cc_flag_unused_command_line_argument=yes
7083 else
7084 xorg_cv_cc_flag_unused_command_line_argument=no
7085 fi
7086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7087 fi
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7089 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7090 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7091 CFLAGS="$xorg_testset_save_CFLAGS"
7092 fi
7093
7094 found="no"
7095
7096 if test $found = "no" ; then
7097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7099 fi
7100
7101 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7103 fi
7104
7105 CFLAGS="$CFLAGS -Werror=nonnull"
7106
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7108 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7109 cacheid=xorg_cv_cc_flag__Werror_nonnull
7110 if eval \${$cacheid+:} false; then :
7111 $as_echo_n "(cached) " >&6
7112 else
7113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114 /* end confdefs.h. */
7115 int i;
7116 int
7117 main ()
7118 {
7119
7120 ;
7121 return 0;
7122 }
7123 _ACEOF
7124 if ac_fn_c_try_link "$LINENO"; then :
7125 eval $cacheid=yes
7126 else
7127 eval $cacheid=no
7128 fi
7129 rm -f core conftest.err conftest.$ac_objext \
7130 conftest$ac_exeext conftest.$ac_ext
7131 fi
7132
7133
7134 CFLAGS="$xorg_testset_save_CFLAGS"
7135
7136 eval supported=\$$cacheid
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7138 $as_echo "$supported" >&6; }
7139 if test "$supported" = "yes" ; then
7140 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7141 found="yes"
7142 fi
7143 fi
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159 xorg_testset_save_CFLAGS="$CFLAGS"
7160
7161 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7162 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7164 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7165 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7166 $as_echo_n "(cached) " >&6
7167 else
7168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169 /* end confdefs.h. */
7170 int i;
7171 _ACEOF
7172 if ac_fn_c_try_compile "$LINENO"; then :
7173 xorg_cv_cc_flag_unknown_warning_option=yes
7174 else
7175 xorg_cv_cc_flag_unknown_warning_option=no
7176 fi
7177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178 fi
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7180 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7181 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7182 CFLAGS="$xorg_testset_save_CFLAGS"
7183 fi
7184
7185 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7188 fi
7189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7191 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7192 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7193 $as_echo_n "(cached) " >&6
7194 else
7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196 /* end confdefs.h. */
7197 int i;
7198 _ACEOF
7199 if ac_fn_c_try_compile "$LINENO"; then :
7200 xorg_cv_cc_flag_unused_command_line_argument=yes
7201 else
7202 xorg_cv_cc_flag_unused_command_line_argument=no
7203 fi
7204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7205 fi
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7207 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7208 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7209 CFLAGS="$xorg_testset_save_CFLAGS"
7210 fi
7211
7212 found="no"
7213
7214 if test $found = "no" ; then
7215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7217 fi
7218
7219 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7221 fi
7222
7223 CFLAGS="$CFLAGS -Werror=init-self"
7224
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7226 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7227 cacheid=xorg_cv_cc_flag__Werror_init_self
7228 if eval \${$cacheid+:} false; then :
7229 $as_echo_n "(cached) " >&6
7230 else
7231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232 /* end confdefs.h. */
7233 int i;
7234 int
7235 main ()
7236 {
7237
7238 ;
7239 return 0;
7240 }
7241 _ACEOF
7242 if ac_fn_c_try_link "$LINENO"; then :
7243 eval $cacheid=yes
7244 else
7245 eval $cacheid=no
7246 fi
7247 rm -f core conftest.err conftest.$ac_objext \
7248 conftest$ac_exeext conftest.$ac_ext
7249 fi
7250
7251
7252 CFLAGS="$xorg_testset_save_CFLAGS"
7253
7254 eval supported=\$$cacheid
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7256 $as_echo "$supported" >&6; }
7257 if test "$supported" = "yes" ; then
7258 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7259 found="yes"
7260 fi
7261 fi
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277 xorg_testset_save_CFLAGS="$CFLAGS"
7278
7279 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7282 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7283 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7284 $as_echo_n "(cached) " >&6
7285 else
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h. */
7288 int i;
7289 _ACEOF
7290 if ac_fn_c_try_compile "$LINENO"; then :
7291 xorg_cv_cc_flag_unknown_warning_option=yes
7292 else
7293 xorg_cv_cc_flag_unknown_warning_option=no
7294 fi
7295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7296 fi
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7298 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7299 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7300 CFLAGS="$xorg_testset_save_CFLAGS"
7301 fi
7302
7303 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7306 fi
7307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7309 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7310 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7311 $as_echo_n "(cached) " >&6
7312 else
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7315 int i;
7316 _ACEOF
7317 if ac_fn_c_try_compile "$LINENO"; then :
7318 xorg_cv_cc_flag_unused_command_line_argument=yes
7319 else
7320 xorg_cv_cc_flag_unused_command_line_argument=no
7321 fi
7322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7323 fi
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7325 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7326 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7327 CFLAGS="$xorg_testset_save_CFLAGS"
7328 fi
7329
7330 found="no"
7331
7332 if test $found = "no" ; then
7333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7335 fi
7336
7337 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7339 fi
7340
7341 CFLAGS="$CFLAGS -Werror=main"
7342
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7344 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7345 cacheid=xorg_cv_cc_flag__Werror_main
7346 if eval \${$cacheid+:} false; then :
7347 $as_echo_n "(cached) " >&6
7348 else
7349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350 /* end confdefs.h. */
7351 int i;
7352 int
7353 main ()
7354 {
7355
7356 ;
7357 return 0;
7358 }
7359 _ACEOF
7360 if ac_fn_c_try_link "$LINENO"; then :
7361 eval $cacheid=yes
7362 else
7363 eval $cacheid=no
7364 fi
7365 rm -f core conftest.err conftest.$ac_objext \
7366 conftest$ac_exeext conftest.$ac_ext
7367 fi
7368
7369
7370 CFLAGS="$xorg_testset_save_CFLAGS"
7371
7372 eval supported=\$$cacheid
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7374 $as_echo "$supported" >&6; }
7375 if test "$supported" = "yes" ; then
7376 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7377 found="yes"
7378 fi
7379 fi
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395 xorg_testset_save_CFLAGS="$CFLAGS"
7396
7397 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7400 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7401 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7402 $as_echo_n "(cached) " >&6
7403 else
7404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405 /* end confdefs.h. */
7406 int i;
7407 _ACEOF
7408 if ac_fn_c_try_compile "$LINENO"; then :
7409 xorg_cv_cc_flag_unknown_warning_option=yes
7410 else
7411 xorg_cv_cc_flag_unknown_warning_option=no
7412 fi
7413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7414 fi
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7416 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7417 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7418 CFLAGS="$xorg_testset_save_CFLAGS"
7419 fi
7420
7421 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7424 fi
7425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7427 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7428 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7429 $as_echo_n "(cached) " >&6
7430 else
7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h. */
7433 int i;
7434 _ACEOF
7435 if ac_fn_c_try_compile "$LINENO"; then :
7436 xorg_cv_cc_flag_unused_command_line_argument=yes
7437 else
7438 xorg_cv_cc_flag_unused_command_line_argument=no
7439 fi
7440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7441 fi
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7443 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7444 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7445 CFLAGS="$xorg_testset_save_CFLAGS"
7446 fi
7447
7448 found="no"
7449
7450 if test $found = "no" ; then
7451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7453 fi
7454
7455 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7457 fi
7458
7459 CFLAGS="$CFLAGS -Werror=missing-braces"
7460
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7462 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7463 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7464 if eval \${$cacheid+:} false; then :
7465 $as_echo_n "(cached) " >&6
7466 else
7467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468 /* end confdefs.h. */
7469 int i;
7470 int
7471 main ()
7472 {
7473
7474 ;
7475 return 0;
7476 }
7477 _ACEOF
7478 if ac_fn_c_try_link "$LINENO"; then :
7479 eval $cacheid=yes
7480 else
7481 eval $cacheid=no
7482 fi
7483 rm -f core conftest.err conftest.$ac_objext \
7484 conftest$ac_exeext conftest.$ac_ext
7485 fi
7486
7487
7488 CFLAGS="$xorg_testset_save_CFLAGS"
7489
7490 eval supported=\$$cacheid
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7492 $as_echo "$supported" >&6; }
7493 if test "$supported" = "yes" ; then
7494 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7495 found="yes"
7496 fi
7497 fi
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513 xorg_testset_save_CFLAGS="$CFLAGS"
7514
7515 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7518 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7519 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7520 $as_echo_n "(cached) " >&6
7521 else
7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h. */
7524 int i;
7525 _ACEOF
7526 if ac_fn_c_try_compile "$LINENO"; then :
7527 xorg_cv_cc_flag_unknown_warning_option=yes
7528 else
7529 xorg_cv_cc_flag_unknown_warning_option=no
7530 fi
7531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7532 fi
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7534 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7535 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7536 CFLAGS="$xorg_testset_save_CFLAGS"
7537 fi
7538
7539 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7542 fi
7543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7545 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7546 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7547 $as_echo_n "(cached) " >&6
7548 else
7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550 /* end confdefs.h. */
7551 int i;
7552 _ACEOF
7553 if ac_fn_c_try_compile "$LINENO"; then :
7554 xorg_cv_cc_flag_unused_command_line_argument=yes
7555 else
7556 xorg_cv_cc_flag_unused_command_line_argument=no
7557 fi
7558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7559 fi
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7561 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7562 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7563 CFLAGS="$xorg_testset_save_CFLAGS"
7564 fi
7565
7566 found="no"
7567
7568 if test $found = "no" ; then
7569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7571 fi
7572
7573 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7575 fi
7576
7577 CFLAGS="$CFLAGS -Werror=sequence-point"
7578
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7580 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7581 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7582 if eval \${$cacheid+:} false; then :
7583 $as_echo_n "(cached) " >&6
7584 else
7585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7586 /* end confdefs.h. */
7587 int i;
7588 int
7589 main ()
7590 {
7591
7592 ;
7593 return 0;
7594 }
7595 _ACEOF
7596 if ac_fn_c_try_link "$LINENO"; then :
7597 eval $cacheid=yes
7598 else
7599 eval $cacheid=no
7600 fi
7601 rm -f core conftest.err conftest.$ac_objext \
7602 conftest$ac_exeext conftest.$ac_ext
7603 fi
7604
7605
7606 CFLAGS="$xorg_testset_save_CFLAGS"
7607
7608 eval supported=\$$cacheid
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7610 $as_echo "$supported" >&6; }
7611 if test "$supported" = "yes" ; then
7612 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7613 found="yes"
7614 fi
7615 fi
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631 xorg_testset_save_CFLAGS="$CFLAGS"
7632
7633 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7636 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7637 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7638 $as_echo_n "(cached) " >&6
7639 else
7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7642 int i;
7643 _ACEOF
7644 if ac_fn_c_try_compile "$LINENO"; then :
7645 xorg_cv_cc_flag_unknown_warning_option=yes
7646 else
7647 xorg_cv_cc_flag_unknown_warning_option=no
7648 fi
7649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7650 fi
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7652 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7653 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7654 CFLAGS="$xorg_testset_save_CFLAGS"
7655 fi
7656
7657 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7660 fi
7661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7663 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7664 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7665 $as_echo_n "(cached) " >&6
7666 else
7667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668 /* end confdefs.h. */
7669 int i;
7670 _ACEOF
7671 if ac_fn_c_try_compile "$LINENO"; then :
7672 xorg_cv_cc_flag_unused_command_line_argument=yes
7673 else
7674 xorg_cv_cc_flag_unused_command_line_argument=no
7675 fi
7676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7677 fi
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7679 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7680 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7681 CFLAGS="$xorg_testset_save_CFLAGS"
7682 fi
7683
7684 found="no"
7685
7686 if test $found = "no" ; then
7687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7688 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7689 fi
7690
7691 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7693 fi
7694
7695 CFLAGS="$CFLAGS -Werror=return-type"
7696
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7698 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7699 cacheid=xorg_cv_cc_flag__Werror_return_type
7700 if eval \${$cacheid+:} false; then :
7701 $as_echo_n "(cached) " >&6
7702 else
7703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7704 /* end confdefs.h. */
7705 int i;
7706 int
7707 main ()
7708 {
7709
7710 ;
7711 return 0;
7712 }
7713 _ACEOF
7714 if ac_fn_c_try_link "$LINENO"; then :
7715 eval $cacheid=yes
7716 else
7717 eval $cacheid=no
7718 fi
7719 rm -f core conftest.err conftest.$ac_objext \
7720 conftest$ac_exeext conftest.$ac_ext
7721 fi
7722
7723
7724 CFLAGS="$xorg_testset_save_CFLAGS"
7725
7726 eval supported=\$$cacheid
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7728 $as_echo "$supported" >&6; }
7729 if test "$supported" = "yes" ; then
7730 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7731 found="yes"
7732 fi
7733 fi
7734
7735 if test $found = "no" ; then
7736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7738 fi
7739
7740 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7742 fi
7743
7744 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7745
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7747 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7748 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7749 if eval \${$cacheid+:} false; then :
7750 $as_echo_n "(cached) " >&6
7751 else
7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753 /* end confdefs.h. */
7754 int i;
7755 int
7756 main ()
7757 {
7758
7759 ;
7760 return 0;
7761 }
7762 _ACEOF
7763 if ac_fn_c_try_link "$LINENO"; then :
7764 eval $cacheid=yes
7765 else
7766 eval $cacheid=no
7767 fi
7768 rm -f core conftest.err conftest.$ac_objext \
7769 conftest$ac_exeext conftest.$ac_ext
7770 fi
7771
7772
7773 CFLAGS="$xorg_testset_save_CFLAGS"
7774
7775 eval supported=\$$cacheid
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7777 $as_echo "$supported" >&6; }
7778 if test "$supported" = "yes" ; then
7779 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7780 found="yes"
7781 fi
7782 fi
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798 xorg_testset_save_CFLAGS="$CFLAGS"
7799
7800 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7803 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7804 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7805 $as_echo_n "(cached) " >&6
7806 else
7807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h. */
7809 int i;
7810 _ACEOF
7811 if ac_fn_c_try_compile "$LINENO"; then :
7812 xorg_cv_cc_flag_unknown_warning_option=yes
7813 else
7814 xorg_cv_cc_flag_unknown_warning_option=no
7815 fi
7816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7817 fi
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7819 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7821 CFLAGS="$xorg_testset_save_CFLAGS"
7822 fi
7823
7824 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7827 fi
7828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7830 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7831 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7832 $as_echo_n "(cached) " >&6
7833 else
7834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835 /* end confdefs.h. */
7836 int i;
7837 _ACEOF
7838 if ac_fn_c_try_compile "$LINENO"; then :
7839 xorg_cv_cc_flag_unused_command_line_argument=yes
7840 else
7841 xorg_cv_cc_flag_unused_command_line_argument=no
7842 fi
7843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7844 fi
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7846 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7848 CFLAGS="$xorg_testset_save_CFLAGS"
7849 fi
7850
7851 found="no"
7852
7853 if test $found = "no" ; then
7854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7856 fi
7857
7858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7860 fi
7861
7862 CFLAGS="$CFLAGS -Werror=trigraphs"
7863
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7865 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7866 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7867 if eval \${$cacheid+:} false; then :
7868 $as_echo_n "(cached) " >&6
7869 else
7870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h. */
7872 int i;
7873 int
7874 main ()
7875 {
7876
7877 ;
7878 return 0;
7879 }
7880 _ACEOF
7881 if ac_fn_c_try_link "$LINENO"; then :
7882 eval $cacheid=yes
7883 else
7884 eval $cacheid=no
7885 fi
7886 rm -f core conftest.err conftest.$ac_objext \
7887 conftest$ac_exeext conftest.$ac_ext
7888 fi
7889
7890
7891 CFLAGS="$xorg_testset_save_CFLAGS"
7892
7893 eval supported=\$$cacheid
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7895 $as_echo "$supported" >&6; }
7896 if test "$supported" = "yes" ; then
7897 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7898 found="yes"
7899 fi
7900 fi
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916 xorg_testset_save_CFLAGS="$CFLAGS"
7917
7918 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7921 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7922 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7923 $as_echo_n "(cached) " >&6
7924 else
7925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7926 /* end confdefs.h. */
7927 int i;
7928 _ACEOF
7929 if ac_fn_c_try_compile "$LINENO"; then :
7930 xorg_cv_cc_flag_unknown_warning_option=yes
7931 else
7932 xorg_cv_cc_flag_unknown_warning_option=no
7933 fi
7934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7935 fi
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7937 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7938 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7939 CFLAGS="$xorg_testset_save_CFLAGS"
7940 fi
7941
7942 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7945 fi
7946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7948 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7949 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7950 $as_echo_n "(cached) " >&6
7951 else
7952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953 /* end confdefs.h. */
7954 int i;
7955 _ACEOF
7956 if ac_fn_c_try_compile "$LINENO"; then :
7957 xorg_cv_cc_flag_unused_command_line_argument=yes
7958 else
7959 xorg_cv_cc_flag_unused_command_line_argument=no
7960 fi
7961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7962 fi
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7964 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7965 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7966 CFLAGS="$xorg_testset_save_CFLAGS"
7967 fi
7968
7969 found="no"
7970
7971 if test $found = "no" ; then
7972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7974 fi
7975
7976 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7978 fi
7979
7980 CFLAGS="$CFLAGS -Werror=array-bounds"
7981
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7983 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7984 cacheid=xorg_cv_cc_flag__Werror_array_bounds
7985 if eval \${$cacheid+:} false; then :
7986 $as_echo_n "(cached) " >&6
7987 else
7988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7989 /* end confdefs.h. */
7990 int i;
7991 int
7992 main ()
7993 {
7994
7995 ;
7996 return 0;
7997 }
7998 _ACEOF
7999 if ac_fn_c_try_link "$LINENO"; then :
8000 eval $cacheid=yes
8001 else
8002 eval $cacheid=no
8003 fi
8004 rm -f core conftest.err conftest.$ac_objext \
8005 conftest$ac_exeext conftest.$ac_ext
8006 fi
8007
8008
8009 CFLAGS="$xorg_testset_save_CFLAGS"
8010
8011 eval supported=\$$cacheid
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8013 $as_echo "$supported" >&6; }
8014 if test "$supported" = "yes" ; then
8015 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8016 found="yes"
8017 fi
8018 fi
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034 xorg_testset_save_CFLAGS="$CFLAGS"
8035
8036 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8039 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8040 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8041 $as_echo_n "(cached) " >&6
8042 else
8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044 /* end confdefs.h. */
8045 int i;
8046 _ACEOF
8047 if ac_fn_c_try_compile "$LINENO"; then :
8048 xorg_cv_cc_flag_unknown_warning_option=yes
8049 else
8050 xorg_cv_cc_flag_unknown_warning_option=no
8051 fi
8052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8053 fi
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8055 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8057 CFLAGS="$xorg_testset_save_CFLAGS"
8058 fi
8059
8060 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8063 fi
8064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8066 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8067 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8068 $as_echo_n "(cached) " >&6
8069 else
8070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8071 /* end confdefs.h. */
8072 int i;
8073 _ACEOF
8074 if ac_fn_c_try_compile "$LINENO"; then :
8075 xorg_cv_cc_flag_unused_command_line_argument=yes
8076 else
8077 xorg_cv_cc_flag_unused_command_line_argument=no
8078 fi
8079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8080 fi
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8082 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8083 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8084 CFLAGS="$xorg_testset_save_CFLAGS"
8085 fi
8086
8087 found="no"
8088
8089 if test $found = "no" ; then
8090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8092 fi
8093
8094 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8096 fi
8097
8098 CFLAGS="$CFLAGS -Werror=write-strings"
8099
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8101 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8102 cacheid=xorg_cv_cc_flag__Werror_write_strings
8103 if eval \${$cacheid+:} false; then :
8104 $as_echo_n "(cached) " >&6
8105 else
8106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107 /* end confdefs.h. */
8108 int i;
8109 int
8110 main ()
8111 {
8112
8113 ;
8114 return 0;
8115 }
8116 _ACEOF
8117 if ac_fn_c_try_link "$LINENO"; then :
8118 eval $cacheid=yes
8119 else
8120 eval $cacheid=no
8121 fi
8122 rm -f core conftest.err conftest.$ac_objext \
8123 conftest$ac_exeext conftest.$ac_ext
8124 fi
8125
8126
8127 CFLAGS="$xorg_testset_save_CFLAGS"
8128
8129 eval supported=\$$cacheid
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8131 $as_echo "$supported" >&6; }
8132 if test "$supported" = "yes" ; then
8133 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8134 found="yes"
8135 fi
8136 fi
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152 xorg_testset_save_CFLAGS="$CFLAGS"
8153
8154 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8157 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8158 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8159 $as_echo_n "(cached) " >&6
8160 else
8161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h. */
8163 int i;
8164 _ACEOF
8165 if ac_fn_c_try_compile "$LINENO"; then :
8166 xorg_cv_cc_flag_unknown_warning_option=yes
8167 else
8168 xorg_cv_cc_flag_unknown_warning_option=no
8169 fi
8170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8171 fi
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8173 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8174 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8175 CFLAGS="$xorg_testset_save_CFLAGS"
8176 fi
8177
8178 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8181 fi
8182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8184 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8185 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8186 $as_echo_n "(cached) " >&6
8187 else
8188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8189 /* end confdefs.h. */
8190 int i;
8191 _ACEOF
8192 if ac_fn_c_try_compile "$LINENO"; then :
8193 xorg_cv_cc_flag_unused_command_line_argument=yes
8194 else
8195 xorg_cv_cc_flag_unused_command_line_argument=no
8196 fi
8197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8198 fi
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8200 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8201 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8202 CFLAGS="$xorg_testset_save_CFLAGS"
8203 fi
8204
8205 found="no"
8206
8207 if test $found = "no" ; then
8208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8210 fi
8211
8212 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8214 fi
8215
8216 CFLAGS="$CFLAGS -Werror=address"
8217
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8219 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8220 cacheid=xorg_cv_cc_flag__Werror_address
8221 if eval \${$cacheid+:} false; then :
8222 $as_echo_n "(cached) " >&6
8223 else
8224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8225 /* end confdefs.h. */
8226 int i;
8227 int
8228 main ()
8229 {
8230
8231 ;
8232 return 0;
8233 }
8234 _ACEOF
8235 if ac_fn_c_try_link "$LINENO"; then :
8236 eval $cacheid=yes
8237 else
8238 eval $cacheid=no
8239 fi
8240 rm -f core conftest.err conftest.$ac_objext \
8241 conftest$ac_exeext conftest.$ac_ext
8242 fi
8243
8244
8245 CFLAGS="$xorg_testset_save_CFLAGS"
8246
8247 eval supported=\$$cacheid
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8249 $as_echo "$supported" >&6; }
8250 if test "$supported" = "yes" ; then
8251 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8252 found="yes"
8253 fi
8254 fi
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270 xorg_testset_save_CFLAGS="$CFLAGS"
8271
8272 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8275 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8276 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8277 $as_echo_n "(cached) " >&6
8278 else
8279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8280 /* end confdefs.h. */
8281 int i;
8282 _ACEOF
8283 if ac_fn_c_try_compile "$LINENO"; then :
8284 xorg_cv_cc_flag_unknown_warning_option=yes
8285 else
8286 xorg_cv_cc_flag_unknown_warning_option=no
8287 fi
8288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8289 fi
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8291 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8292 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8293 CFLAGS="$xorg_testset_save_CFLAGS"
8294 fi
8295
8296 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8298 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8299 fi
8300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8302 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8303 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8304 $as_echo_n "(cached) " >&6
8305 else
8306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h. */
8308 int i;
8309 _ACEOF
8310 if ac_fn_c_try_compile "$LINENO"; then :
8311 xorg_cv_cc_flag_unused_command_line_argument=yes
8312 else
8313 xorg_cv_cc_flag_unused_command_line_argument=no
8314 fi
8315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8316 fi
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8318 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8319 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8320 CFLAGS="$xorg_testset_save_CFLAGS"
8321 fi
8322
8323 found="no"
8324
8325 if test $found = "no" ; then
8326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8328 fi
8329
8330 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8332 fi
8333
8334 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8335
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8337 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8338 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8339 if eval \${$cacheid+:} false; then :
8340 $as_echo_n "(cached) " >&6
8341 else
8342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8343 /* end confdefs.h. */
8344 int i;
8345 int
8346 main ()
8347 {
8348
8349 ;
8350 return 0;
8351 }
8352 _ACEOF
8353 if ac_fn_c_try_link "$LINENO"; then :
8354 eval $cacheid=yes
8355 else
8356 eval $cacheid=no
8357 fi
8358 rm -f core conftest.err conftest.$ac_objext \
8359 conftest$ac_exeext conftest.$ac_ext
8360 fi
8361
8362
8363 CFLAGS="$xorg_testset_save_CFLAGS"
8364
8365 eval supported=\$$cacheid
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8367 $as_echo "$supported" >&6; }
8368 if test "$supported" = "yes" ; then
8369 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8370 found="yes"
8371 fi
8372 fi
8373
8374 if test $found = "no" ; then
8375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8377 fi
8378
8379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8381 fi
8382
8383 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8384
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8386 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8387 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8388 if eval \${$cacheid+:} false; then :
8389 $as_echo_n "(cached) " >&6
8390 else
8391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8392 /* end confdefs.h. */
8393 int i;
8394 int
8395 main ()
8396 {
8397
8398 ;
8399 return 0;
8400 }
8401 _ACEOF
8402 if ac_fn_c_try_link "$LINENO"; then :
8403 eval $cacheid=yes
8404 else
8405 eval $cacheid=no
8406 fi
8407 rm -f core conftest.err conftest.$ac_objext \
8408 conftest$ac_exeext conftest.$ac_ext
8409 fi
8410
8411
8412 CFLAGS="$xorg_testset_save_CFLAGS"
8413
8414 eval supported=\$$cacheid
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8416 $as_echo "$supported" >&6; }
8417 if test "$supported" = "yes" ; then
8418 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8419 found="yes"
8420 fi
8421 fi
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437 xorg_testset_save_CFLAGS="$CFLAGS"
8438
8439 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8442 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8443 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8444 $as_echo_n "(cached) " >&6
8445 else
8446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447 /* end confdefs.h. */
8448 int i;
8449 _ACEOF
8450 if ac_fn_c_try_compile "$LINENO"; then :
8451 xorg_cv_cc_flag_unknown_warning_option=yes
8452 else
8453 xorg_cv_cc_flag_unknown_warning_option=no
8454 fi
8455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8456 fi
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8458 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8460 CFLAGS="$xorg_testset_save_CFLAGS"
8461 fi
8462
8463 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8466 fi
8467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8469 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8470 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8471 $as_echo_n "(cached) " >&6
8472 else
8473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474 /* end confdefs.h. */
8475 int i;
8476 _ACEOF
8477 if ac_fn_c_try_compile "$LINENO"; then :
8478 xorg_cv_cc_flag_unused_command_line_argument=yes
8479 else
8480 xorg_cv_cc_flag_unused_command_line_argument=no
8481 fi
8482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483 fi
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8485 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8486 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8487 CFLAGS="$xorg_testset_save_CFLAGS"
8488 fi
8489
8490 found="no"
8491
8492 if test $found = "no" ; then
8493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8495 fi
8496
8497 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8499 fi
8500
8501 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8502
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8504 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8505 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8506 if eval \${$cacheid+:} false; then :
8507 $as_echo_n "(cached) " >&6
8508 else
8509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8510 /* end confdefs.h. */
8511 int i;
8512 int
8513 main ()
8514 {
8515
8516 ;
8517 return 0;
8518 }
8519 _ACEOF
8520 if ac_fn_c_try_link "$LINENO"; then :
8521 eval $cacheid=yes
8522 else
8523 eval $cacheid=no
8524 fi
8525 rm -f core conftest.err conftest.$ac_objext \
8526 conftest$ac_exeext conftest.$ac_ext
8527 fi
8528
8529
8530 CFLAGS="$xorg_testset_save_CFLAGS"
8531
8532 eval supported=\$$cacheid
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8534 $as_echo "$supported" >&6; }
8535 if test "$supported" = "yes" ; then
8536 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8537 found="yes"
8538 fi
8539 fi
8540
8541 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8542 else
8543 { $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
8544 $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;}
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558 xorg_testset_save_CFLAGS="$CFLAGS"
8559
8560 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8561 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8563 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8564 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8565 $as_echo_n "(cached) " >&6
8566 else
8567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8568 /* end confdefs.h. */
8569 int i;
8570 _ACEOF
8571 if ac_fn_c_try_compile "$LINENO"; then :
8572 xorg_cv_cc_flag_unknown_warning_option=yes
8573 else
8574 xorg_cv_cc_flag_unknown_warning_option=no
8575 fi
8576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8577 fi
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8579 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8580 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8581 CFLAGS="$xorg_testset_save_CFLAGS"
8582 fi
8583
8584 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8586 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8587 fi
8588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8590 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8591 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8592 $as_echo_n "(cached) " >&6
8593 else
8594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595 /* end confdefs.h. */
8596 int i;
8597 _ACEOF
8598 if ac_fn_c_try_compile "$LINENO"; then :
8599 xorg_cv_cc_flag_unused_command_line_argument=yes
8600 else
8601 xorg_cv_cc_flag_unused_command_line_argument=no
8602 fi
8603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8604 fi
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8606 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8607 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8608 CFLAGS="$xorg_testset_save_CFLAGS"
8609 fi
8610
8611 found="no"
8612
8613 if test $found = "no" ; then
8614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8616 fi
8617
8618 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8620 fi
8621
8622 CFLAGS="$CFLAGS -Wimplicit"
8623
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8625 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8626 cacheid=xorg_cv_cc_flag__Wimplicit
8627 if eval \${$cacheid+:} false; then :
8628 $as_echo_n "(cached) " >&6
8629 else
8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h. */
8632 int i;
8633 int
8634 main ()
8635 {
8636
8637 ;
8638 return 0;
8639 }
8640 _ACEOF
8641 if ac_fn_c_try_link "$LINENO"; then :
8642 eval $cacheid=yes
8643 else
8644 eval $cacheid=no
8645 fi
8646 rm -f core conftest.err conftest.$ac_objext \
8647 conftest$ac_exeext conftest.$ac_ext
8648 fi
8649
8650
8651 CFLAGS="$xorg_testset_save_CFLAGS"
8652
8653 eval supported=\$$cacheid
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8655 $as_echo "$supported" >&6; }
8656 if test "$supported" = "yes" ; then
8657 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8658 found="yes"
8659 fi
8660 fi
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676 xorg_testset_save_CFLAGS="$CFLAGS"
8677
8678 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8681 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8682 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8683 $as_echo_n "(cached) " >&6
8684 else
8685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686 /* end confdefs.h. */
8687 int i;
8688 _ACEOF
8689 if ac_fn_c_try_compile "$LINENO"; then :
8690 xorg_cv_cc_flag_unknown_warning_option=yes
8691 else
8692 xorg_cv_cc_flag_unknown_warning_option=no
8693 fi
8694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8695 fi
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8697 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8698 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8699 CFLAGS="$xorg_testset_save_CFLAGS"
8700 fi
8701
8702 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8705 fi
8706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8708 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8709 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8710 $as_echo_n "(cached) " >&6
8711 else
8712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h. */
8714 int i;
8715 _ACEOF
8716 if ac_fn_c_try_compile "$LINENO"; then :
8717 xorg_cv_cc_flag_unused_command_line_argument=yes
8718 else
8719 xorg_cv_cc_flag_unused_command_line_argument=no
8720 fi
8721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8722 fi
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8724 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8725 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8726 CFLAGS="$xorg_testset_save_CFLAGS"
8727 fi
8728
8729 found="no"
8730
8731 if test $found = "no" ; then
8732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8734 fi
8735
8736 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8738 fi
8739
8740 CFLAGS="$CFLAGS -Wnonnull"
8741
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8743 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8744 cacheid=xorg_cv_cc_flag__Wnonnull
8745 if eval \${$cacheid+:} false; then :
8746 $as_echo_n "(cached) " >&6
8747 else
8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749 /* end confdefs.h. */
8750 int i;
8751 int
8752 main ()
8753 {
8754
8755 ;
8756 return 0;
8757 }
8758 _ACEOF
8759 if ac_fn_c_try_link "$LINENO"; then :
8760 eval $cacheid=yes
8761 else
8762 eval $cacheid=no
8763 fi
8764 rm -f core conftest.err conftest.$ac_objext \
8765 conftest$ac_exeext conftest.$ac_ext
8766 fi
8767
8768
8769 CFLAGS="$xorg_testset_save_CFLAGS"
8770
8771 eval supported=\$$cacheid
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8773 $as_echo "$supported" >&6; }
8774 if test "$supported" = "yes" ; then
8775 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8776 found="yes"
8777 fi
8778 fi
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794 xorg_testset_save_CFLAGS="$CFLAGS"
8795
8796 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8797 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8799 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8800 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8801 $as_echo_n "(cached) " >&6
8802 else
8803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8804 /* end confdefs.h. */
8805 int i;
8806 _ACEOF
8807 if ac_fn_c_try_compile "$LINENO"; then :
8808 xorg_cv_cc_flag_unknown_warning_option=yes
8809 else
8810 xorg_cv_cc_flag_unknown_warning_option=no
8811 fi
8812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8813 fi
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8815 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8817 CFLAGS="$xorg_testset_save_CFLAGS"
8818 fi
8819
8820 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8823 fi
8824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8826 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8827 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8828 $as_echo_n "(cached) " >&6
8829 else
8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8832 int i;
8833 _ACEOF
8834 if ac_fn_c_try_compile "$LINENO"; then :
8835 xorg_cv_cc_flag_unused_command_line_argument=yes
8836 else
8837 xorg_cv_cc_flag_unused_command_line_argument=no
8838 fi
8839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8840 fi
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8842 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8843 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8844 CFLAGS="$xorg_testset_save_CFLAGS"
8845 fi
8846
8847 found="no"
8848
8849 if test $found = "no" ; then
8850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8852 fi
8853
8854 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8856 fi
8857
8858 CFLAGS="$CFLAGS -Winit-self"
8859
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8861 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8862 cacheid=xorg_cv_cc_flag__Winit_self
8863 if eval \${$cacheid+:} false; then :
8864 $as_echo_n "(cached) " >&6
8865 else
8866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8868 int i;
8869 int
8870 main ()
8871 {
8872
8873 ;
8874 return 0;
8875 }
8876 _ACEOF
8877 if ac_fn_c_try_link "$LINENO"; then :
8878 eval $cacheid=yes
8879 else
8880 eval $cacheid=no
8881 fi
8882 rm -f core conftest.err conftest.$ac_objext \
8883 conftest$ac_exeext conftest.$ac_ext
8884 fi
8885
8886
8887 CFLAGS="$xorg_testset_save_CFLAGS"
8888
8889 eval supported=\$$cacheid
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8891 $as_echo "$supported" >&6; }
8892 if test "$supported" = "yes" ; then
8893 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8894 found="yes"
8895 fi
8896 fi
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912 xorg_testset_save_CFLAGS="$CFLAGS"
8913
8914 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8917 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8918 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8919 $as_echo_n "(cached) " >&6
8920 else
8921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8922 /* end confdefs.h. */
8923 int i;
8924 _ACEOF
8925 if ac_fn_c_try_compile "$LINENO"; then :
8926 xorg_cv_cc_flag_unknown_warning_option=yes
8927 else
8928 xorg_cv_cc_flag_unknown_warning_option=no
8929 fi
8930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8931 fi
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8933 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8934 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8935 CFLAGS="$xorg_testset_save_CFLAGS"
8936 fi
8937
8938 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8941 fi
8942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8944 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8945 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8946 $as_echo_n "(cached) " >&6
8947 else
8948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8949 /* end confdefs.h. */
8950 int i;
8951 _ACEOF
8952 if ac_fn_c_try_compile "$LINENO"; then :
8953 xorg_cv_cc_flag_unused_command_line_argument=yes
8954 else
8955 xorg_cv_cc_flag_unused_command_line_argument=no
8956 fi
8957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8958 fi
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8960 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8961 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8962 CFLAGS="$xorg_testset_save_CFLAGS"
8963 fi
8964
8965 found="no"
8966
8967 if test $found = "no" ; then
8968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8970 fi
8971
8972 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8974 fi
8975
8976 CFLAGS="$CFLAGS -Wmain"
8977
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8979 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8980 cacheid=xorg_cv_cc_flag__Wmain
8981 if eval \${$cacheid+:} false; then :
8982 $as_echo_n "(cached) " >&6
8983 else
8984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8985 /* end confdefs.h. */
8986 int i;
8987 int
8988 main ()
8989 {
8990
8991 ;
8992 return 0;
8993 }
8994 _ACEOF
8995 if ac_fn_c_try_link "$LINENO"; then :
8996 eval $cacheid=yes
8997 else
8998 eval $cacheid=no
8999 fi
9000 rm -f core conftest.err conftest.$ac_objext \
9001 conftest$ac_exeext conftest.$ac_ext
9002 fi
9003
9004
9005 CFLAGS="$xorg_testset_save_CFLAGS"
9006
9007 eval supported=\$$cacheid
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9009 $as_echo "$supported" >&6; }
9010 if test "$supported" = "yes" ; then
9011 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9012 found="yes"
9013 fi
9014 fi
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030 xorg_testset_save_CFLAGS="$CFLAGS"
9031
9032 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9033 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9035 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9036 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9037 $as_echo_n "(cached) " >&6
9038 else
9039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9040 /* end confdefs.h. */
9041 int i;
9042 _ACEOF
9043 if ac_fn_c_try_compile "$LINENO"; then :
9044 xorg_cv_cc_flag_unknown_warning_option=yes
9045 else
9046 xorg_cv_cc_flag_unknown_warning_option=no
9047 fi
9048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9049 fi
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9051 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9052 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9053 CFLAGS="$xorg_testset_save_CFLAGS"
9054 fi
9055
9056 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9059 fi
9060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9062 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9063 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9064 $as_echo_n "(cached) " >&6
9065 else
9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9068 int i;
9069 _ACEOF
9070 if ac_fn_c_try_compile "$LINENO"; then :
9071 xorg_cv_cc_flag_unused_command_line_argument=yes
9072 else
9073 xorg_cv_cc_flag_unused_command_line_argument=no
9074 fi
9075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9076 fi
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9078 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9079 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9080 CFLAGS="$xorg_testset_save_CFLAGS"
9081 fi
9082
9083 found="no"
9084
9085 if test $found = "no" ; then
9086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9088 fi
9089
9090 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9092 fi
9093
9094 CFLAGS="$CFLAGS -Wmissing-braces"
9095
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9097 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9098 cacheid=xorg_cv_cc_flag__Wmissing_braces
9099 if eval \${$cacheid+:} false; then :
9100 $as_echo_n "(cached) " >&6
9101 else
9102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9103 /* end confdefs.h. */
9104 int i;
9105 int
9106 main ()
9107 {
9108
9109 ;
9110 return 0;
9111 }
9112 _ACEOF
9113 if ac_fn_c_try_link "$LINENO"; then :
9114 eval $cacheid=yes
9115 else
9116 eval $cacheid=no
9117 fi
9118 rm -f core conftest.err conftest.$ac_objext \
9119 conftest$ac_exeext conftest.$ac_ext
9120 fi
9121
9122
9123 CFLAGS="$xorg_testset_save_CFLAGS"
9124
9125 eval supported=\$$cacheid
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9127 $as_echo "$supported" >&6; }
9128 if test "$supported" = "yes" ; then
9129 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9130 found="yes"
9131 fi
9132 fi
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148 xorg_testset_save_CFLAGS="$CFLAGS"
9149
9150 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9153 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9154 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9155 $as_echo_n "(cached) " >&6
9156 else
9157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9158 /* end confdefs.h. */
9159 int i;
9160 _ACEOF
9161 if ac_fn_c_try_compile "$LINENO"; then :
9162 xorg_cv_cc_flag_unknown_warning_option=yes
9163 else
9164 xorg_cv_cc_flag_unknown_warning_option=no
9165 fi
9166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9167 fi
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9169 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9170 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9171 CFLAGS="$xorg_testset_save_CFLAGS"
9172 fi
9173
9174 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9177 fi
9178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9180 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9181 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9182 $as_echo_n "(cached) " >&6
9183 else
9184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9185 /* end confdefs.h. */
9186 int i;
9187 _ACEOF
9188 if ac_fn_c_try_compile "$LINENO"; then :
9189 xorg_cv_cc_flag_unused_command_line_argument=yes
9190 else
9191 xorg_cv_cc_flag_unused_command_line_argument=no
9192 fi
9193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9194 fi
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9196 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9197 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9198 CFLAGS="$xorg_testset_save_CFLAGS"
9199 fi
9200
9201 found="no"
9202
9203 if test $found = "no" ; then
9204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9206 fi
9207
9208 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9210 fi
9211
9212 CFLAGS="$CFLAGS -Wsequence-point"
9213
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9215 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9216 cacheid=xorg_cv_cc_flag__Wsequence_point
9217 if eval \${$cacheid+:} false; then :
9218 $as_echo_n "(cached) " >&6
9219 else
9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h. */
9222 int i;
9223 int
9224 main ()
9225 {
9226
9227 ;
9228 return 0;
9229 }
9230 _ACEOF
9231 if ac_fn_c_try_link "$LINENO"; then :
9232 eval $cacheid=yes
9233 else
9234 eval $cacheid=no
9235 fi
9236 rm -f core conftest.err conftest.$ac_objext \
9237 conftest$ac_exeext conftest.$ac_ext
9238 fi
9239
9240
9241 CFLAGS="$xorg_testset_save_CFLAGS"
9242
9243 eval supported=\$$cacheid
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9245 $as_echo "$supported" >&6; }
9246 if test "$supported" = "yes" ; then
9247 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9248 found="yes"
9249 fi
9250 fi
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266 xorg_testset_save_CFLAGS="$CFLAGS"
9267
9268 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9271 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9272 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9273 $as_echo_n "(cached) " >&6
9274 else
9275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9276 /* end confdefs.h. */
9277 int i;
9278 _ACEOF
9279 if ac_fn_c_try_compile "$LINENO"; then :
9280 xorg_cv_cc_flag_unknown_warning_option=yes
9281 else
9282 xorg_cv_cc_flag_unknown_warning_option=no
9283 fi
9284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9285 fi
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9287 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9288 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9289 CFLAGS="$xorg_testset_save_CFLAGS"
9290 fi
9291
9292 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9295 fi
9296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9298 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9299 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9300 $as_echo_n "(cached) " >&6
9301 else
9302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303 /* end confdefs.h. */
9304 int i;
9305 _ACEOF
9306 if ac_fn_c_try_compile "$LINENO"; then :
9307 xorg_cv_cc_flag_unused_command_line_argument=yes
9308 else
9309 xorg_cv_cc_flag_unused_command_line_argument=no
9310 fi
9311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9312 fi
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9314 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9315 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9316 CFLAGS="$xorg_testset_save_CFLAGS"
9317 fi
9318
9319 found="no"
9320
9321 if test $found = "no" ; then
9322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9324 fi
9325
9326 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9328 fi
9329
9330 CFLAGS="$CFLAGS -Wreturn-type"
9331
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9333 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9334 cacheid=xorg_cv_cc_flag__Wreturn_type
9335 if eval \${$cacheid+:} false; then :
9336 $as_echo_n "(cached) " >&6
9337 else
9338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9339 /* end confdefs.h. */
9340 int i;
9341 int
9342 main ()
9343 {
9344
9345 ;
9346 return 0;
9347 }
9348 _ACEOF
9349 if ac_fn_c_try_link "$LINENO"; then :
9350 eval $cacheid=yes
9351 else
9352 eval $cacheid=no
9353 fi
9354 rm -f core conftest.err conftest.$ac_objext \
9355 conftest$ac_exeext conftest.$ac_ext
9356 fi
9357
9358
9359 CFLAGS="$xorg_testset_save_CFLAGS"
9360
9361 eval supported=\$$cacheid
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9363 $as_echo "$supported" >&6; }
9364 if test "$supported" = "yes" ; then
9365 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9366 found="yes"
9367 fi
9368 fi
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384 xorg_testset_save_CFLAGS="$CFLAGS"
9385
9386 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9389 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9390 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9391 $as_echo_n "(cached) " >&6
9392 else
9393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394 /* end confdefs.h. */
9395 int i;
9396 _ACEOF
9397 if ac_fn_c_try_compile "$LINENO"; then :
9398 xorg_cv_cc_flag_unknown_warning_option=yes
9399 else
9400 xorg_cv_cc_flag_unknown_warning_option=no
9401 fi
9402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9403 fi
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9405 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9406 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9407 CFLAGS="$xorg_testset_save_CFLAGS"
9408 fi
9409
9410 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9413 fi
9414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9416 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9417 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9418 $as_echo_n "(cached) " >&6
9419 else
9420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421 /* end confdefs.h. */
9422 int i;
9423 _ACEOF
9424 if ac_fn_c_try_compile "$LINENO"; then :
9425 xorg_cv_cc_flag_unused_command_line_argument=yes
9426 else
9427 xorg_cv_cc_flag_unused_command_line_argument=no
9428 fi
9429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9430 fi
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9432 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9433 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9434 CFLAGS="$xorg_testset_save_CFLAGS"
9435 fi
9436
9437 found="no"
9438
9439 if test $found = "no" ; then
9440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9441 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9442 fi
9443
9444 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9446 fi
9447
9448 CFLAGS="$CFLAGS -Wtrigraphs"
9449
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9451 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9452 cacheid=xorg_cv_cc_flag__Wtrigraphs
9453 if eval \${$cacheid+:} false; then :
9454 $as_echo_n "(cached) " >&6
9455 else
9456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9457 /* end confdefs.h. */
9458 int i;
9459 int
9460 main ()
9461 {
9462
9463 ;
9464 return 0;
9465 }
9466 _ACEOF
9467 if ac_fn_c_try_link "$LINENO"; then :
9468 eval $cacheid=yes
9469 else
9470 eval $cacheid=no
9471 fi
9472 rm -f core conftest.err conftest.$ac_objext \
9473 conftest$ac_exeext conftest.$ac_ext
9474 fi
9475
9476
9477 CFLAGS="$xorg_testset_save_CFLAGS"
9478
9479 eval supported=\$$cacheid
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9481 $as_echo "$supported" >&6; }
9482 if test "$supported" = "yes" ; then
9483 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9484 found="yes"
9485 fi
9486 fi
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502 xorg_testset_save_CFLAGS="$CFLAGS"
9503
9504 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9507 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9508 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9509 $as_echo_n "(cached) " >&6
9510 else
9511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9512 /* end confdefs.h. */
9513 int i;
9514 _ACEOF
9515 if ac_fn_c_try_compile "$LINENO"; then :
9516 xorg_cv_cc_flag_unknown_warning_option=yes
9517 else
9518 xorg_cv_cc_flag_unknown_warning_option=no
9519 fi
9520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9521 fi
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9523 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9524 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9525 CFLAGS="$xorg_testset_save_CFLAGS"
9526 fi
9527
9528 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9531 fi
9532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9534 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9535 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9536 $as_echo_n "(cached) " >&6
9537 else
9538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9539 /* end confdefs.h. */
9540 int i;
9541 _ACEOF
9542 if ac_fn_c_try_compile "$LINENO"; then :
9543 xorg_cv_cc_flag_unused_command_line_argument=yes
9544 else
9545 xorg_cv_cc_flag_unused_command_line_argument=no
9546 fi
9547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9548 fi
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9550 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9551 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9552 CFLAGS="$xorg_testset_save_CFLAGS"
9553 fi
9554
9555 found="no"
9556
9557 if test $found = "no" ; then
9558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9560 fi
9561
9562 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9564 fi
9565
9566 CFLAGS="$CFLAGS -Warray-bounds"
9567
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9569 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9570 cacheid=xorg_cv_cc_flag__Warray_bounds
9571 if eval \${$cacheid+:} false; then :
9572 $as_echo_n "(cached) " >&6
9573 else
9574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575 /* end confdefs.h. */
9576 int i;
9577 int
9578 main ()
9579 {
9580
9581 ;
9582 return 0;
9583 }
9584 _ACEOF
9585 if ac_fn_c_try_link "$LINENO"; then :
9586 eval $cacheid=yes
9587 else
9588 eval $cacheid=no
9589 fi
9590 rm -f core conftest.err conftest.$ac_objext \
9591 conftest$ac_exeext conftest.$ac_ext
9592 fi
9593
9594
9595 CFLAGS="$xorg_testset_save_CFLAGS"
9596
9597 eval supported=\$$cacheid
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9599 $as_echo "$supported" >&6; }
9600 if test "$supported" = "yes" ; then
9601 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9602 found="yes"
9603 fi
9604 fi
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620 xorg_testset_save_CFLAGS="$CFLAGS"
9621
9622 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9625 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9626 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9627 $as_echo_n "(cached) " >&6
9628 else
9629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630 /* end confdefs.h. */
9631 int i;
9632 _ACEOF
9633 if ac_fn_c_try_compile "$LINENO"; then :
9634 xorg_cv_cc_flag_unknown_warning_option=yes
9635 else
9636 xorg_cv_cc_flag_unknown_warning_option=no
9637 fi
9638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9639 fi
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9641 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9642 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9643 CFLAGS="$xorg_testset_save_CFLAGS"
9644 fi
9645
9646 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9649 fi
9650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9652 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9653 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9654 $as_echo_n "(cached) " >&6
9655 else
9656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9657 /* end confdefs.h. */
9658 int i;
9659 _ACEOF
9660 if ac_fn_c_try_compile "$LINENO"; then :
9661 xorg_cv_cc_flag_unused_command_line_argument=yes
9662 else
9663 xorg_cv_cc_flag_unused_command_line_argument=no
9664 fi
9665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9666 fi
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9668 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9669 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9670 CFLAGS="$xorg_testset_save_CFLAGS"
9671 fi
9672
9673 found="no"
9674
9675 if test $found = "no" ; then
9676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9678 fi
9679
9680 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9682 fi
9683
9684 CFLAGS="$CFLAGS -Wwrite-strings"
9685
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9687 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9688 cacheid=xorg_cv_cc_flag__Wwrite_strings
9689 if eval \${$cacheid+:} false; then :
9690 $as_echo_n "(cached) " >&6
9691 else
9692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693 /* end confdefs.h. */
9694 int i;
9695 int
9696 main ()
9697 {
9698
9699 ;
9700 return 0;
9701 }
9702 _ACEOF
9703 if ac_fn_c_try_link "$LINENO"; then :
9704 eval $cacheid=yes
9705 else
9706 eval $cacheid=no
9707 fi
9708 rm -f core conftest.err conftest.$ac_objext \
9709 conftest$ac_exeext conftest.$ac_ext
9710 fi
9711
9712
9713 CFLAGS="$xorg_testset_save_CFLAGS"
9714
9715 eval supported=\$$cacheid
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9717 $as_echo "$supported" >&6; }
9718 if test "$supported" = "yes" ; then
9719 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9720 found="yes"
9721 fi
9722 fi
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738 xorg_testset_save_CFLAGS="$CFLAGS"
9739
9740 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9743 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9744 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9745 $as_echo_n "(cached) " >&6
9746 else
9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h. */
9749 int i;
9750 _ACEOF
9751 if ac_fn_c_try_compile "$LINENO"; then :
9752 xorg_cv_cc_flag_unknown_warning_option=yes
9753 else
9754 xorg_cv_cc_flag_unknown_warning_option=no
9755 fi
9756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9757 fi
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9759 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9760 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9761 CFLAGS="$xorg_testset_save_CFLAGS"
9762 fi
9763
9764 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9767 fi
9768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9770 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9771 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9772 $as_echo_n "(cached) " >&6
9773 else
9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h. */
9776 int i;
9777 _ACEOF
9778 if ac_fn_c_try_compile "$LINENO"; then :
9779 xorg_cv_cc_flag_unused_command_line_argument=yes
9780 else
9781 xorg_cv_cc_flag_unused_command_line_argument=no
9782 fi
9783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9784 fi
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9786 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9788 CFLAGS="$xorg_testset_save_CFLAGS"
9789 fi
9790
9791 found="no"
9792
9793 if test $found = "no" ; then
9794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9796 fi
9797
9798 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9800 fi
9801
9802 CFLAGS="$CFLAGS -Waddress"
9803
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9805 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9806 cacheid=xorg_cv_cc_flag__Waddress
9807 if eval \${$cacheid+:} false; then :
9808 $as_echo_n "(cached) " >&6
9809 else
9810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811 /* end confdefs.h. */
9812 int i;
9813 int
9814 main ()
9815 {
9816
9817 ;
9818 return 0;
9819 }
9820 _ACEOF
9821 if ac_fn_c_try_link "$LINENO"; then :
9822 eval $cacheid=yes
9823 else
9824 eval $cacheid=no
9825 fi
9826 rm -f core conftest.err conftest.$ac_objext \
9827 conftest$ac_exeext conftest.$ac_ext
9828 fi
9829
9830
9831 CFLAGS="$xorg_testset_save_CFLAGS"
9832
9833 eval supported=\$$cacheid
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9835 $as_echo "$supported" >&6; }
9836 if test "$supported" = "yes" ; then
9837 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9838 found="yes"
9839 fi
9840 fi
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856 xorg_testset_save_CFLAGS="$CFLAGS"
9857
9858 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9861 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9862 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9863 $as_echo_n "(cached) " >&6
9864 else
9865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9866 /* end confdefs.h. */
9867 int i;
9868 _ACEOF
9869 if ac_fn_c_try_compile "$LINENO"; then :
9870 xorg_cv_cc_flag_unknown_warning_option=yes
9871 else
9872 xorg_cv_cc_flag_unknown_warning_option=no
9873 fi
9874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9875 fi
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9877 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9878 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9879 CFLAGS="$xorg_testset_save_CFLAGS"
9880 fi
9881
9882 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9885 fi
9886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9888 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9889 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9890 $as_echo_n "(cached) " >&6
9891 else
9892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9893 /* end confdefs.h. */
9894 int i;
9895 _ACEOF
9896 if ac_fn_c_try_compile "$LINENO"; then :
9897 xorg_cv_cc_flag_unused_command_line_argument=yes
9898 else
9899 xorg_cv_cc_flag_unused_command_line_argument=no
9900 fi
9901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9902 fi
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9904 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9905 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9906 CFLAGS="$xorg_testset_save_CFLAGS"
9907 fi
9908
9909 found="no"
9910
9911 if test $found = "no" ; then
9912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9914 fi
9915
9916 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9918 fi
9919
9920 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9921
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9923 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9924 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9925 if eval \${$cacheid+:} false; then :
9926 $as_echo_n "(cached) " >&6
9927 else
9928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9929 /* end confdefs.h. */
9930 int i;
9931 int
9932 main ()
9933 {
9934
9935 ;
9936 return 0;
9937 }
9938 _ACEOF
9939 if ac_fn_c_try_link "$LINENO"; then :
9940 eval $cacheid=yes
9941 else
9942 eval $cacheid=no
9943 fi
9944 rm -f core conftest.err conftest.$ac_objext \
9945 conftest$ac_exeext conftest.$ac_ext
9946 fi
9947
9948
9949 CFLAGS="$xorg_testset_save_CFLAGS"
9950
9951 eval supported=\$$cacheid
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9953 $as_echo "$supported" >&6; }
9954 if test "$supported" = "yes" ; then
9955 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9956 found="yes"
9957 fi
9958 fi
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974 xorg_testset_save_CFLAGS="$CFLAGS"
9975
9976 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9979 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9980 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9981 $as_echo_n "(cached) " >&6
9982 else
9983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9984 /* end confdefs.h. */
9985 int i;
9986 _ACEOF
9987 if ac_fn_c_try_compile "$LINENO"; then :
9988 xorg_cv_cc_flag_unknown_warning_option=yes
9989 else
9990 xorg_cv_cc_flag_unknown_warning_option=no
9991 fi
9992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9993 fi
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9995 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9996 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9997 CFLAGS="$xorg_testset_save_CFLAGS"
9998 fi
9999
10000 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10003 fi
10004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10006 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10007 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10008 $as_echo_n "(cached) " >&6
10009 else
10010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10011 /* end confdefs.h. */
10012 int i;
10013 _ACEOF
10014 if ac_fn_c_try_compile "$LINENO"; then :
10015 xorg_cv_cc_flag_unused_command_line_argument=yes
10016 else
10017 xorg_cv_cc_flag_unused_command_line_argument=no
10018 fi
10019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10020 fi
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10022 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10023 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10024 CFLAGS="$xorg_testset_save_CFLAGS"
10025 fi
10026
10027 found="no"
10028
10029 if test $found = "no" ; then
10030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10032 fi
10033
10034 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10036 fi
10037
10038 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10039
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10041 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10042 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10043 if eval \${$cacheid+:} false; then :
10044 $as_echo_n "(cached) " >&6
10045 else
10046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10047 /* end confdefs.h. */
10048 int i;
10049 int
10050 main ()
10051 {
10052
10053 ;
10054 return 0;
10055 }
10056 _ACEOF
10057 if ac_fn_c_try_link "$LINENO"; then :
10058 eval $cacheid=yes
10059 else
10060 eval $cacheid=no
10061 fi
10062 rm -f core conftest.err conftest.$ac_objext \
10063 conftest$ac_exeext conftest.$ac_ext
10064 fi
10065
10066
10067 CFLAGS="$xorg_testset_save_CFLAGS"
10068
10069 eval supported=\$$cacheid
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10071 $as_echo "$supported" >&6; }
10072 if test "$supported" = "yes" ; then
10073 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10074 found="yes"
10075 fi
10076 fi
10077
10078
10079 fi
10080
10081
10082
10083
10084
10085
10086
10087 CWARNFLAGS="$BASE_CFLAGS"
10088 if test "x$GCC" = xyes ; then
10089 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10090 fi
10091
10092
10093
10094
10095
10096
10097
10098
10099 # Check whether --enable-strict-compilation was given.
10100 if test "${enable_strict_compilation+set}" = set; then :
10101 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10102 else
10103 STRICT_COMPILE=no
10104 fi
10105
10106
10107
10108
10109
10110
10111 STRICT_CFLAGS=""
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125 xorg_testset_save_CFLAGS="$CFLAGS"
10126
10127 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10130 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10131 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10132 $as_echo_n "(cached) " >&6
10133 else
10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10135 /* end confdefs.h. */
10136 int i;
10137 _ACEOF
10138 if ac_fn_c_try_compile "$LINENO"; then :
10139 xorg_cv_cc_flag_unknown_warning_option=yes
10140 else
10141 xorg_cv_cc_flag_unknown_warning_option=no
10142 fi
10143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10144 fi
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10146 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10148 CFLAGS="$xorg_testset_save_CFLAGS"
10149 fi
10150
10151 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10154 fi
10155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10157 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10158 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10159 $as_echo_n "(cached) " >&6
10160 else
10161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10162 /* end confdefs.h. */
10163 int i;
10164 _ACEOF
10165 if ac_fn_c_try_compile "$LINENO"; then :
10166 xorg_cv_cc_flag_unused_command_line_argument=yes
10167 else
10168 xorg_cv_cc_flag_unused_command_line_argument=no
10169 fi
10170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10171 fi
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10173 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10175 CFLAGS="$xorg_testset_save_CFLAGS"
10176 fi
10177
10178 found="no"
10179
10180 if test $found = "no" ; then
10181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10183 fi
10184
10185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10187 fi
10188
10189 CFLAGS="$CFLAGS -pedantic"
10190
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10192 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10193 cacheid=xorg_cv_cc_flag__pedantic
10194 if eval \${$cacheid+:} false; then :
10195 $as_echo_n "(cached) " >&6
10196 else
10197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10198 /* end confdefs.h. */
10199 int i;
10200 int
10201 main ()
10202 {
10203
10204 ;
10205 return 0;
10206 }
10207 _ACEOF
10208 if ac_fn_c_try_link "$LINENO"; then :
10209 eval $cacheid=yes
10210 else
10211 eval $cacheid=no
10212 fi
10213 rm -f core conftest.err conftest.$ac_objext \
10214 conftest$ac_exeext conftest.$ac_ext
10215 fi
10216
10217
10218 CFLAGS="$xorg_testset_save_CFLAGS"
10219
10220 eval supported=\$$cacheid
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10222 $as_echo "$supported" >&6; }
10223 if test "$supported" = "yes" ; then
10224 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10225 found="yes"
10226 fi
10227 fi
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243 xorg_testset_save_CFLAGS="$CFLAGS"
10244
10245 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10248 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10249 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10250 $as_echo_n "(cached) " >&6
10251 else
10252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10253 /* end confdefs.h. */
10254 int i;
10255 _ACEOF
10256 if ac_fn_c_try_compile "$LINENO"; then :
10257 xorg_cv_cc_flag_unknown_warning_option=yes
10258 else
10259 xorg_cv_cc_flag_unknown_warning_option=no
10260 fi
10261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10262 fi
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10264 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10266 CFLAGS="$xorg_testset_save_CFLAGS"
10267 fi
10268
10269 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10272 fi
10273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10275 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10276 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10277 $as_echo_n "(cached) " >&6
10278 else
10279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10280 /* end confdefs.h. */
10281 int i;
10282 _ACEOF
10283 if ac_fn_c_try_compile "$LINENO"; then :
10284 xorg_cv_cc_flag_unused_command_line_argument=yes
10285 else
10286 xorg_cv_cc_flag_unused_command_line_argument=no
10287 fi
10288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10289 fi
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10291 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10293 CFLAGS="$xorg_testset_save_CFLAGS"
10294 fi
10295
10296 found="no"
10297
10298 if test $found = "no" ; then
10299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10301 fi
10302
10303 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10305 fi
10306
10307 CFLAGS="$CFLAGS -Werror"
10308
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10310 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10311 cacheid=xorg_cv_cc_flag__Werror
10312 if eval \${$cacheid+:} false; then :
10313 $as_echo_n "(cached) " >&6
10314 else
10315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10316 /* end confdefs.h. */
10317 int i;
10318 int
10319 main ()
10320 {
10321
10322 ;
10323 return 0;
10324 }
10325 _ACEOF
10326 if ac_fn_c_try_link "$LINENO"; then :
10327 eval $cacheid=yes
10328 else
10329 eval $cacheid=no
10330 fi
10331 rm -f core conftest.err conftest.$ac_objext \
10332 conftest$ac_exeext conftest.$ac_ext
10333 fi
10334
10335
10336 CFLAGS="$xorg_testset_save_CFLAGS"
10337
10338 eval supported=\$$cacheid
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10340 $as_echo "$supported" >&6; }
10341 if test "$supported" = "yes" ; then
10342 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10343 found="yes"
10344 fi
10345 fi
10346
10347 if test $found = "no" ; then
10348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10350 fi
10351
10352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10354 fi
10355
10356 CFLAGS="$CFLAGS -errwarn"
10357
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10359 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10360 cacheid=xorg_cv_cc_flag__errwarn
10361 if eval \${$cacheid+:} false; then :
10362 $as_echo_n "(cached) " >&6
10363 else
10364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365 /* end confdefs.h. */
10366 int i;
10367 int
10368 main ()
10369 {
10370
10371 ;
10372 return 0;
10373 }
10374 _ACEOF
10375 if ac_fn_c_try_link "$LINENO"; then :
10376 eval $cacheid=yes
10377 else
10378 eval $cacheid=no
10379 fi
10380 rm -f core conftest.err conftest.$ac_objext \
10381 conftest$ac_exeext conftest.$ac_ext
10382 fi
10383
10384
10385 CFLAGS="$xorg_testset_save_CFLAGS"
10386
10387 eval supported=\$$cacheid
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10389 $as_echo "$supported" >&6; }
10390 if test "$supported" = "yes" ; then
10391 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10392 found="yes"
10393 fi
10394 fi
10395
10396
10397
10398 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10399 # activate it with -Werror, so we add it here explicitly.
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413 xorg_testset_save_CFLAGS="$CFLAGS"
10414
10415 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10418 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10419 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10420 $as_echo_n "(cached) " >&6
10421 else
10422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10423 /* end confdefs.h. */
10424 int i;
10425 _ACEOF
10426 if ac_fn_c_try_compile "$LINENO"; then :
10427 xorg_cv_cc_flag_unknown_warning_option=yes
10428 else
10429 xorg_cv_cc_flag_unknown_warning_option=no
10430 fi
10431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10432 fi
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10434 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10435 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10436 CFLAGS="$xorg_testset_save_CFLAGS"
10437 fi
10438
10439 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10441 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10442 fi
10443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10445 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10446 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10447 $as_echo_n "(cached) " >&6
10448 else
10449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10450 /* end confdefs.h. */
10451 int i;
10452 _ACEOF
10453 if ac_fn_c_try_compile "$LINENO"; then :
10454 xorg_cv_cc_flag_unused_command_line_argument=yes
10455 else
10456 xorg_cv_cc_flag_unused_command_line_argument=no
10457 fi
10458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10459 fi
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10461 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10462 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10463 CFLAGS="$xorg_testset_save_CFLAGS"
10464 fi
10465
10466 found="no"
10467
10468 if test $found = "no" ; then
10469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10471 fi
10472
10473 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10475 fi
10476
10477 CFLAGS="$CFLAGS -Werror=attributes"
10478
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10480 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10481 cacheid=xorg_cv_cc_flag__Werror_attributes
10482 if eval \${$cacheid+:} false; then :
10483 $as_echo_n "(cached) " >&6
10484 else
10485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10486 /* end confdefs.h. */
10487 int i;
10488 int
10489 main ()
10490 {
10491
10492 ;
10493 return 0;
10494 }
10495 _ACEOF
10496 if ac_fn_c_try_link "$LINENO"; then :
10497 eval $cacheid=yes
10498 else
10499 eval $cacheid=no
10500 fi
10501 rm -f core conftest.err conftest.$ac_objext \
10502 conftest$ac_exeext conftest.$ac_ext
10503 fi
10504
10505
10506 CFLAGS="$xorg_testset_save_CFLAGS"
10507
10508 eval supported=\$$cacheid
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10510 $as_echo "$supported" >&6; }
10511 if test "$supported" = "yes" ; then
10512 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10513 found="yes"
10514 fi
10515 fi
10516
10517
10518
10519 if test "x$STRICT_COMPILE" = "xyes"; then
10520 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10521 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10522 fi
10523
10524
10525
10526
10527
10528
10529 cat >>confdefs.h <<_ACEOF
10530 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10531 _ACEOF
10532
10533 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10534 if test "x$PVM" = "x"; then
10535 PVM="0"
10536 fi
10537
10538 cat >>confdefs.h <<_ACEOF
10539 #define PACKAGE_VERSION_MINOR $PVM
10540 _ACEOF
10541
10542 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10543 if test "x$PVP" = "x"; then
10544 PVP="0"
10545 fi
10546
10547 cat >>confdefs.h <<_ACEOF
10548 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10549 _ACEOF
10550
10551
10552
10553 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10554 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10555 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10556 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10557
10558
10559
10560
10561 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10562 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10563 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10564 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10565 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10566
10567
10568
10569
10570
10571
10572 if test x$APP_MAN_SUFFIX = x ; then
10573 APP_MAN_SUFFIX=1
10574 fi
10575 if test x$APP_MAN_DIR = x ; then
10576 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10577 fi
10578
10579 if test x$LIB_MAN_SUFFIX = x ; then
10580 LIB_MAN_SUFFIX=3
10581 fi
10582 if test x$LIB_MAN_DIR = x ; then
10583 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10584 fi
10585
10586 if test x$FILE_MAN_SUFFIX = x ; then
10587 case $host_os in
10588 # Solaris 2.0 - 11 use SysV man page sections
10589 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;;
10590 *) FILE_MAN_SUFFIX=5 ;;
10591 esac
10592 fi
10593 if test x$FILE_MAN_DIR = x ; then
10594 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10595 fi
10596
10597 if test x$MISC_MAN_SUFFIX = x ; then
10598 case $host_os in
10599 # Solaris 2.0 - 11 use SysV man page sections
10600 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;;
10601 *) MISC_MAN_SUFFIX=7 ;;
10602 esac
10603 fi
10604 if test x$MISC_MAN_DIR = x ; then
10605 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10606 fi
10607
10608 if test x$DRIVER_MAN_SUFFIX = x ; then
10609 case $host_os in
10610 # Solaris 2.0 - 11 use SysV man page sections
10611 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;;
10612 *) DRIVER_MAN_SUFFIX=4 ;;
10613 esac
10614 fi
10615 if test x$DRIVER_MAN_DIR = x ; then
10616 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10617 fi
10618
10619 if test x$ADMIN_MAN_SUFFIX = x ; then
10620 case $host_os in
10621 # Solaris 2.0 - 11 use SysV man page sections
10622 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;;
10623 *) ADMIN_MAN_SUFFIX=8 ;;
10624 esac
10625 fi
10626 if test x$ADMIN_MAN_DIR = x ; then
10627 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10628 fi
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644 XORG_MAN_PAGE="X Version 11"
10645
10646 MAN_SUBSTS="\
10647 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10648 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10649 -e 's|__xservername__|Xorg|g' \
10650 -e 's|__xconfigfile__|xorg.conf|g' \
10651 -e 's|__projectroot__|\$(prefix)|g' \
10652 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10653 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10654 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10655 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10656 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10657 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10658 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10659
10660
10661
10662 # Check whether --enable-silent-rules was given.
10663 if test "${enable_silent_rules+set}" = set; then :
10664 enableval=$enable_silent_rules;
10665 fi
10666
10667 case $enable_silent_rules in # (((
10668 yes) AM_DEFAULT_VERBOSITY=0;;
10669 no) AM_DEFAULT_VERBOSITY=1;;
10670 *) AM_DEFAULT_VERBOSITY=0;;
10671 esac
10672 am_make=${MAKE-make}
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10674 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10675 if ${am_cv_make_support_nested_variables+:} false; then :
10676 $as_echo_n "(cached) " >&6
10677 else
10678 if $as_echo 'TRUE=$(BAR$(V))
10679 BAR0=false
10680 BAR1=true
10681 V=1
10682 am__doit:
10683 @$(TRUE)
10684 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10685 am_cv_make_support_nested_variables=yes
10686 else
10687 am_cv_make_support_nested_variables=no
10688 fi
10689 fi
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10691 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10692 if test $am_cv_make_support_nested_variables = yes; then
10693 AM_V='$(V)'
10694 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10695 else
10696 AM_V=$AM_DEFAULT_VERBOSITY
10697 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10698 fi
10699 AM_BACKSLASH='\'
10700
10701
10702
10703
10704
10705 for ac_func in mkstemp
10706 do :
10707 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
10708 if test "x$ac_cv_func_mkstemp" = xyes; then :
10709 cat >>confdefs.h <<_ACEOF
10710 #define HAVE_MKSTEMP 1
10711 _ACEOF
10712
10713 fi
10714 done
10715
10716
10717 # Math libraries & functions
10718 # - some compilers use builtin inlines for floor when optimizing
10719 # - lrint() is a C99 addition not found on some older systems
10720 # - must do the libm check first so that the lrint check will have it in $LIBS
10721 save_LIBS="$LIBS"
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
10723 $as_echo_n "checking for library containing floor... " >&6; }
10724 if ${ac_cv_search_floor+:} false; then :
10725 $as_echo_n "(cached) " >&6
10726 else
10727 ac_func_search_save_LIBS=$LIBS
10728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10729 /* end confdefs.h. */
10730
10731 /* Override any GCC internal prototype to avoid an error.
10732 Use char because int might match the return type of a GCC
10733 builtin and then its argument prototype would still apply. */
10734 #ifdef __cplusplus
10735 extern "C"
10736 #endif
10737 char floor ();
10738 int
10739 main ()
10740 {
10741 return floor ();
10742 ;
10743 return 0;
10744 }
10745 _ACEOF
10746 for ac_lib in '' m; do
10747 if test -z "$ac_lib"; then
10748 ac_res="none required"
10749 else
10750 ac_res=-l$ac_lib
10751 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10752 fi
10753 if ac_fn_c_try_link "$LINENO"; then :
10754 ac_cv_search_floor=$ac_res
10755 fi
10756 rm -f core conftest.err conftest.$ac_objext \
10757 conftest$ac_exeext
10758 if ${ac_cv_search_floor+:} false; then :
10759 break
10760 fi
10761 done
10762 if ${ac_cv_search_floor+:} false; then :
10763
10764 else
10765 ac_cv_search_floor=no
10766 fi
10767 rm conftest.$ac_ext
10768 LIBS=$ac_func_search_save_LIBS
10769 fi
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
10771 $as_echo "$ac_cv_search_floor" >&6; }
10772 ac_res=$ac_cv_search_floor
10773 if test "$ac_res" != no; then :
10774 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10775
10776 fi
10777
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lrint" >&5
10779 $as_echo_n "checking for library containing lrint... " >&6; }
10780 if ${ac_cv_search_lrint+:} false; then :
10781 $as_echo_n "(cached) " >&6
10782 else
10783 ac_func_search_save_LIBS=$LIBS
10784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10785 /* end confdefs.h. */
10786
10787 /* Override any GCC internal prototype to avoid an error.
10788 Use char because int might match the return type of a GCC
10789 builtin and then its argument prototype would still apply. */
10790 #ifdef __cplusplus
10791 extern "C"
10792 #endif
10793 char lrint ();
10794 int
10795 main ()
10796 {
10797 return lrint ();
10798 ;
10799 return 0;
10800 }
10801 _ACEOF
10802 for ac_lib in '' m; do
10803 if test -z "$ac_lib"; then
10804 ac_res="none required"
10805 else
10806 ac_res=-l$ac_lib
10807 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10808 fi
10809 if ac_fn_c_try_link "$LINENO"; then :
10810 ac_cv_search_lrint=$ac_res
10811 fi
10812 rm -f core conftest.err conftest.$ac_objext \
10813 conftest$ac_exeext
10814 if ${ac_cv_search_lrint+:} false; then :
10815 break
10816 fi
10817 done
10818 if ${ac_cv_search_lrint+:} false; then :
10819
10820 else
10821 ac_cv_search_lrint=no
10822 fi
10823 rm conftest.$ac_ext
10824 LIBS=$ac_func_search_save_LIBS
10825 fi
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lrint" >&5
10827 $as_echo "$ac_cv_search_lrint" >&6; }
10828 ac_res=$ac_cv_search_lrint
10829 if test "$ac_res" != no; then :
10830 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10831
10832 fi
10833
10834 for ac_func in lrint
10835 do :
10836 ac_fn_c_check_func "$LINENO" "lrint" "ac_cv_func_lrint"
10837 if test "x$ac_cv_func_lrint" = xyes; then :
10838 cat >>confdefs.h <<_ACEOF
10839 #define HAVE_LRINT 1
10840 _ACEOF
10841
10842 fi
10843 done
10844
10845 MATH_LIBS="$LIBS"
10846 LIBS="$save_LIBS"
10847
10848
10849 # Obtain compiler/linker options from dependencies
10850
10851 pkg_failed=no
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BMTOA" >&5
10853 $as_echo_n "checking for BMTOA... " >&6; }
10854
10855 if test -n "$BMTOA_CFLAGS"; then
10856 pkg_cv_BMTOA_CFLAGS="$BMTOA_CFLAGS"
10857 elif test -n "$PKG_CONFIG"; then
10858 if test -n "$PKG_CONFIG" && \
10859 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmu xproto >= 7.0.17\""; } >&5
10860 ($PKG_CONFIG --exists --print-errors "x11 xmu xproto >= 7.0.17") 2>&5
10861 ac_status=$?
10862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10863 test $ac_status = 0; }; then
10864 pkg_cv_BMTOA_CFLAGS=`$PKG_CONFIG --cflags "x11 xmu xproto >= 7.0.17" 2>/dev/null`
10865 test "x$?" != "x0" && pkg_failed=yes
10866 else
10867 pkg_failed=yes
10868 fi
10869 else
10870 pkg_failed=untried
10871 fi
10872 if test -n "$BMTOA_LIBS"; then
10873 pkg_cv_BMTOA_LIBS="$BMTOA_LIBS"
10874 elif test -n "$PKG_CONFIG"; then
10875 if test -n "$PKG_CONFIG" && \
10876 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmu xproto >= 7.0.17\""; } >&5
10877 ($PKG_CONFIG --exists --print-errors "x11 xmu xproto >= 7.0.17") 2>&5
10878 ac_status=$?
10879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10880 test $ac_status = 0; }; then
10881 pkg_cv_BMTOA_LIBS=`$PKG_CONFIG --libs "x11 xmu xproto >= 7.0.17" 2>/dev/null`
10882 test "x$?" != "x0" && pkg_failed=yes
10883 else
10884 pkg_failed=yes
10885 fi
10886 else
10887 pkg_failed=untried
10888 fi
10889
10890
10891
10892 if test $pkg_failed = yes; then
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10894 $as_echo "no" >&6; }
10895
10896 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10897 _pkg_short_errors_supported=yes
10898 else
10899 _pkg_short_errors_supported=no
10900 fi
10901 if test $_pkg_short_errors_supported = yes; then
10902 BMTOA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xmu xproto >= 7.0.17" 2>&1`
10903 else
10904 BMTOA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xmu xproto >= 7.0.17" 2>&1`
10905 fi
10906 # Put the nasty error message in config.log where it belongs
10907 echo "$BMTOA_PKG_ERRORS" >&5
10908
10909 as_fn_error $? "Package requirements (x11 xmu xproto >= 7.0.17) were not met:
10910
10911 $BMTOA_PKG_ERRORS
10912
10913 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10914 installed software in a non-standard prefix.
10915
10916 Alternatively, you may set the environment variables BMTOA_CFLAGS
10917 and BMTOA_LIBS to avoid the need to call pkg-config.
10918 See the pkg-config man page for more details." "$LINENO" 5
10919 elif test $pkg_failed = untried; then
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10921 $as_echo "no" >&6; }
10922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10924 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10925 is in your PATH or set the PKG_CONFIG environment variable to the full
10926 path to pkg-config.
10927
10928 Alternatively, you may set the environment variables BMTOA_CFLAGS
10929 and BMTOA_LIBS to avoid the need to call pkg-config.
10930 See the pkg-config man page for more details.
10931
10932 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10933 See \`config.log' for more details" "$LINENO" 5; }
10934 else
10935 BMTOA_CFLAGS=$pkg_cv_BMTOA_CFLAGS
10936 BMTOA_LIBS=$pkg_cv_BMTOA_LIBS
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10938 $as_echo "yes" >&6; }
10939
10940 fi
10941
10942 pkg_failed=no
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATOBM" >&5
10944 $as_echo_n "checking for ATOBM... " >&6; }
10945
10946 if test -n "$ATOBM_CFLAGS"; then
10947 pkg_cv_ATOBM_CFLAGS="$ATOBM_CFLAGS"
10948 elif test -n "$PKG_CONFIG"; then
10949 if test -n "$PKG_CONFIG" && \
10950 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5
10951 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5
10952 ac_status=$?
10953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10954 test $ac_status = 0; }; then
10955 pkg_cv_ATOBM_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.25" 2>/dev/null`
10956 test "x$?" != "x0" && pkg_failed=yes
10957 else
10958 pkg_failed=yes
10959 fi
10960 else
10961 pkg_failed=untried
10962 fi
10963 if test -n "$ATOBM_LIBS"; then
10964 pkg_cv_ATOBM_LIBS="$ATOBM_LIBS"
10965 elif test -n "$PKG_CONFIG"; then
10966 if test -n "$PKG_CONFIG" && \
10967 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5
10968 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5
10969 ac_status=$?
10970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10971 test $ac_status = 0; }; then
10972 pkg_cv_ATOBM_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.25" 2>/dev/null`
10973 test "x$?" != "x0" && pkg_failed=yes
10974 else
10975 pkg_failed=yes
10976 fi
10977 else
10978 pkg_failed=untried
10979 fi
10980
10981
10982
10983 if test $pkg_failed = yes; then
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10985 $as_echo "no" >&6; }
10986
10987 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10988 _pkg_short_errors_supported=yes
10989 else
10990 _pkg_short_errors_supported=no
10991 fi
10992 if test $_pkg_short_errors_supported = yes; then
10993 ATOBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.25" 2>&1`
10994 else
10995 ATOBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.25" 2>&1`
10996 fi
10997 # Put the nasty error message in config.log where it belongs
10998 echo "$ATOBM_PKG_ERRORS" >&5
10999
11000 as_fn_error $? "Package requirements (xproto >= 7.0.25) were not met:
11001
11002 $ATOBM_PKG_ERRORS
11003
11004 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11005 installed software in a non-standard prefix.
11006
11007 Alternatively, you may set the environment variables ATOBM_CFLAGS
11008 and ATOBM_LIBS to avoid the need to call pkg-config.
11009 See the pkg-config man page for more details." "$LINENO" 5
11010 elif test $pkg_failed = untried; then
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11012 $as_echo "no" >&6; }
11013 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11015 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11016 is in your PATH or set the PKG_CONFIG environment variable to the full
11017 path to pkg-config.
11018
11019 Alternatively, you may set the environment variables ATOBM_CFLAGS
11020 and ATOBM_LIBS to avoid the need to call pkg-config.
11021 See the pkg-config man page for more details.
11022
11023 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11024 See \`config.log' for more details" "$LINENO" 5; }
11025 else
11026 ATOBM_CFLAGS=$pkg_cv_ATOBM_CFLAGS
11027 ATOBM_LIBS=$pkg_cv_ATOBM_LIBS
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11029 $as_echo "yes" >&6; }
11030
11031 fi
11032
11033 pkg_failed=no
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BITMAP" >&5
11035 $as_echo_n "checking for BITMAP... " >&6; }
11036
11037 if test -n "$BITMAP_CFLAGS"; then
11038 pkg_cv_BITMAP_CFLAGS="$BITMAP_CFLAGS"
11039 elif test -n "$PKG_CONFIG"; then
11040 if test -n "$PKG_CONFIG" && \
11041 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xbitmaps xaw7 xmu\""; } >&5
11042 ($PKG_CONFIG --exists --print-errors "xbitmaps xaw7 xmu") 2>&5
11043 ac_status=$?
11044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11045 test $ac_status = 0; }; then
11046 pkg_cv_BITMAP_CFLAGS=`$PKG_CONFIG --cflags "xbitmaps xaw7 xmu" 2>/dev/null`
11047 test "x$?" != "x0" && pkg_failed=yes
11048 else
11049 pkg_failed=yes
11050 fi
11051 else
11052 pkg_failed=untried
11053 fi
11054 if test -n "$BITMAP_LIBS"; then
11055 pkg_cv_BITMAP_LIBS="$BITMAP_LIBS"
11056 elif test -n "$PKG_CONFIG"; then
11057 if test -n "$PKG_CONFIG" && \
11058 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xbitmaps xaw7 xmu\""; } >&5
11059 ($PKG_CONFIG --exists --print-errors "xbitmaps xaw7 xmu") 2>&5
11060 ac_status=$?
11061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11062 test $ac_status = 0; }; then
11063 pkg_cv_BITMAP_LIBS=`$PKG_CONFIG --libs "xbitmaps xaw7 xmu" 2>/dev/null`
11064 test "x$?" != "x0" && pkg_failed=yes
11065 else
11066 pkg_failed=yes
11067 fi
11068 else
11069 pkg_failed=untried
11070 fi
11071
11072
11073
11074 if test $pkg_failed = yes; then
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11076 $as_echo "no" >&6; }
11077
11078 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11079 _pkg_short_errors_supported=yes
11080 else
11081 _pkg_short_errors_supported=no
11082 fi
11083 if test $_pkg_short_errors_supported = yes; then
11084 BITMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xbitmaps xaw7 xmu" 2>&1`
11085 else
11086 BITMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xbitmaps xaw7 xmu" 2>&1`
11087 fi
11088 # Put the nasty error message in config.log where it belongs
11089 echo "$BITMAP_PKG_ERRORS" >&5
11090
11091 as_fn_error $? "Package requirements (xbitmaps xaw7 xmu) were not met:
11092
11093 $BITMAP_PKG_ERRORS
11094
11095 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11096 installed software in a non-standard prefix.
11097
11098 Alternatively, you may set the environment variables BITMAP_CFLAGS
11099 and BITMAP_LIBS to avoid the need to call pkg-config.
11100 See the pkg-config man page for more details." "$LINENO" 5
11101 elif test $pkg_failed = untried; then
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11103 $as_echo "no" >&6; }
11104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11106 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11107 is in your PATH or set the PKG_CONFIG environment variable to the full
11108 path to pkg-config.
11109
11110 Alternatively, you may set the environment variables BITMAP_CFLAGS
11111 and BITMAP_LIBS to avoid the need to call pkg-config.
11112 See the pkg-config man page for more details.
11113
11114 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11115 See \`config.log' for more details" "$LINENO" 5; }
11116 else
11117 BITMAP_CFLAGS=$pkg_cv_BITMAP_CFLAGS
11118 BITMAP_LIBS=$pkg_cv_BITMAP_LIBS
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11120 $as_echo "yes" >&6; }
11121
11122 fi
11123
11124
11125 pkg_failed=no
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
11127 $as_echo_n "checking for APPDEFS... " >&6; }
11128
11129 if test -n "$APPDEFS_CFLAGS"; then
11130 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
11131 elif test -n "$PKG_CONFIG"; then
11132 if test -n "$PKG_CONFIG" && \
11133 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11134 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11135 ac_status=$?
11136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11137 test $ac_status = 0; }; then
11138 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
11139 test "x$?" != "x0" && pkg_failed=yes
11140 else
11141 pkg_failed=yes
11142 fi
11143 else
11144 pkg_failed=untried
11145 fi
11146 if test -n "$APPDEFS_LIBS"; then
11147 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
11148 elif test -n "$PKG_CONFIG"; then
11149 if test -n "$PKG_CONFIG" && \
11150 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11151 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11152 ac_status=$?
11153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11154 test $ac_status = 0; }; then
11155 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
11156 test "x$?" != "x0" && pkg_failed=yes
11157 else
11158 pkg_failed=yes
11159 fi
11160 else
11161 pkg_failed=untried
11162 fi
11163
11164
11165
11166 if test $pkg_failed = yes; then
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11168 $as_echo "no" >&6; }
11169
11170 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11171 _pkg_short_errors_supported=yes
11172 else
11173 _pkg_short_errors_supported=no
11174 fi
11175 if test $_pkg_short_errors_supported = yes; then
11176 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
11177 else
11178 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
11179 fi
11180 # Put the nasty error message in config.log where it belongs
11181 echo "$APPDEFS_PKG_ERRORS" >&5
11182
11183 as_fn_error $? "Package requirements (xt) were not met:
11184
11185 $APPDEFS_PKG_ERRORS
11186
11187 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11188 installed software in a non-standard prefix.
11189
11190 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11191 and APPDEFS_LIBS to avoid the need to call pkg-config.
11192 See the pkg-config man page for more details." "$LINENO" 5
11193 elif test $pkg_failed = untried; then
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11195 $as_echo "no" >&6; }
11196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11198 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11199 is in your PATH or set the PKG_CONFIG environment variable to the full
11200 path to pkg-config.
11201
11202 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11203 and APPDEFS_LIBS to avoid the need to call pkg-config.
11204 See the pkg-config man page for more details.
11205
11206 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11207 See \`config.log' for more details" "$LINENO" 5; }
11208 else
11209 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11210 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11212 $as_echo "yes" >&6; }
11213
11214 fi
11215 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11216
11217 # Check whether --with-appdefaultdir was given.
11218 if test "${with_appdefaultdir+set}" = set; then :
11219 withval=$with_appdefaultdir; appdefaultdir="$withval"
11220 else
11221 appdefaultdir="${xt_appdefaultdir}"
11222 fi
11223
11224
11225
11226 ac_config_files="$ac_config_files Makefile man/Makefile"
11227
11228 cat >confcache <<\_ACEOF
11229 # This file is a shell script that caches the results of configure
11230 # tests run on this system so they can be shared between configure
11231 # scripts and configure runs, see configure's option --config-cache.
11232 # It is not useful on other systems. If it contains results you don't
11233 # want to keep, you may remove or edit it.
11234 #
11235 # config.status only pays attention to the cache file if you give it
11236 # the --recheck option to rerun configure.
11237 #
11238 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11239 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11240 # following values.
11241
11242 _ACEOF
11243
11244 # The following way of writing the cache mishandles newlines in values,
11245 # but we know of no workaround that is simple, portable, and efficient.
11246 # So, we kill variables containing newlines.
11247 # Ultrix sh set writes to stderr and can't be redirected directly,
11248 # and sets the high bit in the cache file unless we assign to the vars.
11249 (
11250 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11251 eval ac_val=\$$ac_var
11252 case $ac_val in #(
11253 *${as_nl}*)
11254 case $ac_var in #(
11255 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11256 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11257 esac
11258 case $ac_var in #(
11259 _ | IFS | as_nl) ;; #(
11260 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11261 *) { eval $ac_var=; unset $ac_var;} ;;
11262 esac ;;
11263 esac
11264 done
11265
11266 (set) 2>&1 |
11267 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11268 *${as_nl}ac_space=\ *)
11269 # `set' does not quote correctly, so add quotes: double-quote
11270 # substitution turns \\\\ into \\, and sed turns \\ into \.
11271 sed -n \
11272 "s/'/'\\\\''/g;
11273 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11274 ;; #(
11275 *)
11276 # `set' quotes correctly as required by POSIX, so do not add quotes.
11277 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11278 ;;
11279 esac |
11280 sort
11281 ) |
11282 sed '
11283 /^ac_cv_env_/b end
11284 t clear
11285 :clear
11286 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11287 t end
11288 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11289 :end' >>confcache
11290 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11291 if test -w "$cache_file"; then
11292 if test "x$cache_file" != "x/dev/null"; then
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11294 $as_echo "$as_me: updating cache $cache_file" >&6;}
11295 if test ! -f "$cache_file" || test -h "$cache_file"; then
11296 cat confcache >"$cache_file"
11297 else
11298 case $cache_file in #(
11299 */* | ?:*)
11300 mv -f confcache "$cache_file"$$ &&
11301 mv -f "$cache_file"$$ "$cache_file" ;; #(
11302 *)
11303 mv -f confcache "$cache_file" ;;
11304 esac
11305 fi
11306 fi
11307 else
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11309 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11310 fi
11311 fi
11312 rm -f confcache
11313
11314 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11315 # Let make expand exec_prefix.
11316 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11317
11318 DEFS=-DHAVE_CONFIG_H
11319
11320 ac_libobjs=
11321 ac_ltlibobjs=
11322 U=
11323 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11324 # 1. Remove the extension, and $U if already installed.
11325 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11326 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11327 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11328 # will be set to the directory where LIBOBJS objects are built.
11329 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11330 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11331 done
11332 LIBOBJS=$ac_libobjs
11333
11334 LTLIBOBJS=$ac_ltlibobjs
11335
11336
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11338 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11339 if test -n "$am_sleep_pid"; then
11340 # Hide warnings about reused PIDs.
11341 wait $am_sleep_pid 2>/dev/null
11342 fi
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11344 $as_echo "done" >&6; }
11345 if test -n "$EXEEXT"; then
11346 am__EXEEXT_TRUE=
11347 am__EXEEXT_FALSE='#'
11348 else
11349 am__EXEEXT_TRUE='#'
11350 am__EXEEXT_FALSE=
11351 fi
11352
11353 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11354 as_fn_error $? "conditional \"AMDEP\" was never defined.
11355 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11356 fi
11357 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11358 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11359 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11360 fi
11361
11362 : "${CONFIG_STATUS=./config.status}"
11363 ac_write_fail=0
11364 ac_clean_files_save=$ac_clean_files
11365 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11367 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11368 as_write_fail=0
11369 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11370 #! $SHELL
11371 # Generated by $as_me.
11372 # Run this file to recreate the current configuration.
11373 # Compiler output produced by configure, useful for debugging
11374 # configure, is in config.log if it exists.
11375
11376 debug=false
11377 ac_cs_recheck=false
11378 ac_cs_silent=false
11379
11380 SHELL=\${CONFIG_SHELL-$SHELL}
11381 export SHELL
11382 _ASEOF
11383 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11384 ## -------------------- ##
11385 ## M4sh Initialization. ##
11386 ## -------------------- ##
11387
11388 # Be more Bourne compatible
11389 DUALCASE=1; export DUALCASE # for MKS sh
11390 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11391 emulate sh
11392 NULLCMD=:
11393 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11394 # is contrary to our usage. Disable this feature.
11395 alias -g '${1+"$@"}'='"$@"'
11396 setopt NO_GLOB_SUBST
11397 else
11398 case `(set -o) 2>/dev/null` in #(
11399 *posix*) :
11400 set -o posix ;; #(
11401 *) :
11402 ;;
11403 esac
11404 fi
11405
11406
11407 as_nl='
11408 '
11409 export as_nl
11410 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11411 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11412 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11413 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11414 # Prefer a ksh shell builtin over an external printf program on Solaris,
11415 # but without wasting forks for bash or zsh.
11416 if test -z "$BASH_VERSION$ZSH_VERSION" \
11417 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11418 as_echo='print -r --'
11419 as_echo_n='print -rn --'
11420 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11421 as_echo='printf %s\n'
11422 as_echo_n='printf %s'
11423 else
11424 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11425 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11426 as_echo_n='/usr/ucb/echo -n'
11427 else
11428 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11429 as_echo_n_body='eval
11430 arg=$1;
11431 case $arg in #(
11432 *"$as_nl"*)
11433 expr "X$arg" : "X\\(.*\\)$as_nl";
11434 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11435 esac;
11436 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11437 '
11438 export as_echo_n_body
11439 as_echo_n='sh -c $as_echo_n_body as_echo'
11440 fi
11441 export as_echo_body
11442 as_echo='sh -c $as_echo_body as_echo'
11443 fi
11444
11445 # The user is always right.
11446 if test "${PATH_SEPARATOR+set}" != set; then
11447 PATH_SEPARATOR=:
11448 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11449 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11450 PATH_SEPARATOR=';'
11451 }
11452 fi
11453
11454
11455 # IFS
11456 # We need space, tab and new line, in precisely that order. Quoting is
11457 # there to prevent editors from complaining about space-tab.
11458 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11459 # splitting by setting IFS to empty value.)
11460 IFS=" "" $as_nl"
11461
11462 # Find who we are. Look in the path if we contain no directory separator.
11463 as_myself=
11464 case $0 in #((
11465 *[\\/]* ) as_myself=$0 ;;
11466 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11467 for as_dir in $PATH
11468 do
11469 IFS=$as_save_IFS
11470 test -z "$as_dir" && as_dir=.
11471 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11472 done
11473 IFS=$as_save_IFS
11474
11475 ;;
11476 esac
11477 # We did not find ourselves, most probably we were run as `sh COMMAND'
11478 # in which case we are not to be found in the path.
11479 if test "x$as_myself" = x; then
11480 as_myself=$0
11481 fi
11482 if test ! -f "$as_myself"; then
11483 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11484 exit 1
11485 fi
11486
11487 # Unset variables that we do not need and which cause bugs (e.g. in
11488 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11489 # suppresses any "Segmentation fault" message there. '((' could
11490 # trigger a bug in pdksh 5.2.14.
11491 for as_var in BASH_ENV ENV MAIL MAILPATH
11492 do eval test x\${$as_var+set} = xset \
11493 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11494 done
11495 PS1='$ '
11496 PS2='> '
11497 PS4='+ '
11498
11499 # NLS nuisances.
11500 LC_ALL=C
11501 export LC_ALL
11502 LANGUAGE=C
11503 export LANGUAGE
11504
11505 # CDPATH.
11506 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11507
11508
11509 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11510 # ----------------------------------------
11511 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11512 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11513 # script with STATUS, using 1 if that was 0.
11514 as_fn_error ()
11515 {
11516 as_status=$1; test $as_status -eq 0 && as_status=1
11517 if test "$4"; then
11518 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11519 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11520 fi
11521 $as_echo "$as_me: error: $2" >&2
11522 as_fn_exit $as_status
11523 } # as_fn_error
11524
11525
11526 # as_fn_set_status STATUS
11527 # -----------------------
11528 # Set $? to STATUS, without forking.
11529 as_fn_set_status ()
11530 {
11531 return $1
11532 } # as_fn_set_status
11533
11534 # as_fn_exit STATUS
11535 # -----------------
11536 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11537 as_fn_exit ()
11538 {
11539 set +e
11540 as_fn_set_status $1
11541 exit $1
11542 } # as_fn_exit
11543
11544 # as_fn_unset VAR
11545 # ---------------
11546 # Portably unset VAR.
11547 as_fn_unset ()
11548 {
11549 { eval $1=; unset $1;}
11550 }
11551 as_unset=as_fn_unset
11552 # as_fn_append VAR VALUE
11553 # ----------------------
11554 # Append the text in VALUE to the end of the definition contained in VAR. Take
11555 # advantage of any shell optimizations that allow amortized linear growth over
11556 # repeated appends, instead of the typical quadratic growth present in naive
11557 # implementations.
11558 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11559 eval 'as_fn_append ()
11560 {
11561 eval $1+=\$2
11562 }'
11563 else
11564 as_fn_append ()
11565 {
11566 eval $1=\$$1\$2
11567 }
11568 fi # as_fn_append
11569
11570 # as_fn_arith ARG...
11571 # ------------------
11572 # Perform arithmetic evaluation on the ARGs, and store the result in the
11573 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11574 # must be portable across $(()) and expr.
11575 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11576 eval 'as_fn_arith ()
11577 {
11578 as_val=$(( $* ))
11579 }'
11580 else
11581 as_fn_arith ()
11582 {
11583 as_val=`expr "$@" || test $? -eq 1`
11584 }
11585 fi # as_fn_arith
11586
11587
11588 if expr a : '\(a\)' >/dev/null 2>&1 &&
11589 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11590 as_expr=expr
11591 else
11592 as_expr=false
11593 fi
11594
11595 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11596 as_basename=basename
11597 else
11598 as_basename=false
11599 fi
11600
11601 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11602 as_dirname=dirname
11603 else
11604 as_dirname=false
11605 fi
11606
11607 as_me=`$as_basename -- "$0" ||
11608 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11609 X"$0" : 'X\(//\)$' \| \
11610 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11611 $as_echo X/"$0" |
11612 sed '/^.*\/\([^/][^/]*\)\/*$/{
11613 s//\1/
11614 q
11615 }
11616 /^X\/\(\/\/\)$/{
11617 s//\1/
11618 q
11619 }
11620 /^X\/\(\/\).*/{
11621 s//\1/
11622 q
11623 }
11624 s/.*/./; q'`
11625
11626 # Avoid depending upon Character Ranges.
11627 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11628 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11629 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11630 as_cr_digits='0123456789'
11631 as_cr_alnum=$as_cr_Letters$as_cr_digits
11632
11633 ECHO_C= ECHO_N= ECHO_T=
11634 case `echo -n x` in #(((((
11635 -n*)
11636 case `echo 'xy\c'` in
11637 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11638 xy) ECHO_C='\c';;
11639 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11640 ECHO_T=' ';;
11641 esac;;
11642 *)
11643 ECHO_N='-n';;
11644 esac
11645
11646 rm -f conf$$ conf$$.exe conf$$.file
11647 if test -d conf$$.dir; then
11648 rm -f conf$$.dir/conf$$.file
11649 else
11650 rm -f conf$$.dir
11651 mkdir conf$$.dir 2>/dev/null
11652 fi
11653 if (echo >conf$$.file) 2>/dev/null; then
11654 if ln -s conf$$.file conf$$ 2>/dev/null; then
11655 as_ln_s='ln -s'
11656 # ... but there are two gotchas:
11657 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11658 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11659 # In both cases, we have to default to `cp -pR'.
11660 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11661 as_ln_s='cp -pR'
11662 elif ln conf$$.file conf$$ 2>/dev/null; then
11663 as_ln_s=ln
11664 else
11665 as_ln_s='cp -pR'
11666 fi
11667 else
11668 as_ln_s='cp -pR'
11669 fi
11670 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11671 rmdir conf$$.dir 2>/dev/null
11672
11673
11674 # as_fn_mkdir_p
11675 # -------------
11676 # Create "$as_dir" as a directory, including parents if necessary.
11677 as_fn_mkdir_p ()
11678 {
11679
11680 case $as_dir in #(
11681 -*) as_dir=./$as_dir;;
11682 esac
11683 test -d "$as_dir" || eval $as_mkdir_p || {
11684 as_dirs=
11685 while :; do
11686 case $as_dir in #(
11687 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11688 *) as_qdir=$as_dir;;
11689 esac
11690 as_dirs="'$as_qdir' $as_dirs"
11691 as_dir=`$as_dirname -- "$as_dir" ||
11692 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11693 X"$as_dir" : 'X\(//\)[^/]' \| \
11694 X"$as_dir" : 'X\(//\)$' \| \
11695 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11696 $as_echo X"$as_dir" |
11697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11698 s//\1/
11699 q
11700 }
11701 /^X\(\/\/\)[^/].*/{
11702 s//\1/
11703 q
11704 }
11705 /^X\(\/\/\)$/{
11706 s//\1/
11707 q
11708 }
11709 /^X\(\/\).*/{
11710 s//\1/
11711 q
11712 }
11713 s/.*/./; q'`
11714 test -d "$as_dir" && break
11715 done
11716 test -z "$as_dirs" || eval "mkdir $as_dirs"
11717 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11718
11719
11720 } # as_fn_mkdir_p
11721 if mkdir -p . 2>/dev/null; then
11722 as_mkdir_p='mkdir -p "$as_dir"'
11723 else
11724 test -d ./-p && rmdir ./-p
11725 as_mkdir_p=false
11726 fi
11727
11728
11729 # as_fn_executable_p FILE
11730 # -----------------------
11731 # Test if FILE is an executable regular file.
11732 as_fn_executable_p ()
11733 {
11734 test -f "$1" && test -x "$1"
11735 } # as_fn_executable_p
11736 as_test_x='test -x'
11737 as_executable_p=as_fn_executable_p
11738
11739 # Sed expression to map a string onto a valid CPP name.
11740 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11741
11742 # Sed expression to map a string onto a valid variable name.
11743 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11744
11745
11746 exec 6>&1
11747 ## ----------------------------------- ##
11748 ## Main body of $CONFIG_STATUS script. ##
11749 ## ----------------------------------- ##
11750 _ASEOF
11751 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11752
11753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11754 # Save the log message, to keep $0 and so on meaningful, and to
11755 # report actual input values of CONFIG_FILES etc. instead of their
11756 # values after options handling.
11757 ac_log="
11758 This file was extended by bitmap $as_me 1.0.9, which was
11759 generated by GNU Autoconf 2.69. Invocation command line was
11760
11761 CONFIG_FILES = $CONFIG_FILES
11762 CONFIG_HEADERS = $CONFIG_HEADERS
11763 CONFIG_LINKS = $CONFIG_LINKS
11764 CONFIG_COMMANDS = $CONFIG_COMMANDS
11765 $ $0 $@
11766
11767 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11768 "
11769
11770 _ACEOF
11771
11772 case $ac_config_files in *"
11773 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11774 esac
11775
11776 case $ac_config_headers in *"
11777 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11778 esac
11779
11780
11781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11782 # Files that config.status was made for.
11783 config_files="$ac_config_files"
11784 config_headers="$ac_config_headers"
11785 config_commands="$ac_config_commands"
11786
11787 _ACEOF
11788
11789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11790 ac_cs_usage="\
11791 \`$as_me' instantiates files and other configuration actions
11792 from templates according to the current configuration. Unless the files
11793 and actions are specified as TAGs, all are instantiated by default.
11794
11795 Usage: $0 [OPTION]... [TAG]...
11796
11797 -h, --help print this help, then exit
11798 -V, --version print version number and configuration settings, then exit
11799 --config print configuration, then exit
11800 -q, --quiet, --silent
11801 do not print progress messages
11802 -d, --debug don't remove temporary files
11803 --recheck update $as_me by reconfiguring in the same conditions
11804 --file=FILE[:TEMPLATE]
11805 instantiate the configuration file FILE
11806 --header=FILE[:TEMPLATE]
11807 instantiate the configuration header FILE
11808
11809 Configuration files:
11810 $config_files
11811
11812 Configuration headers:
11813 $config_headers
11814
11815 Configuration commands:
11816 $config_commands
11817
11818 Report bugs to <https://gitlab.freedesktop.org/xorg/app/bitmap/issues>."
11819
11820 _ACEOF
11821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11822 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11823 ac_cs_version="\\
11824 bitmap config.status 1.0.9
11825 configured by $0, generated by GNU Autoconf 2.69,
11826 with options \\"\$ac_cs_config\\"
11827
11828 Copyright (C) 2012 Free Software Foundation, Inc.
11829 This config.status script is free software; the Free Software Foundation
11830 gives unlimited permission to copy, distribute and modify it."
11831
11832 ac_pwd='$ac_pwd'
11833 srcdir='$srcdir'
11834 INSTALL='$INSTALL'
11835 MKDIR_P='$MKDIR_P'
11836 AWK='$AWK'
11837 test -n "\$AWK" || AWK=awk
11838 _ACEOF
11839
11840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11841 # The default lists apply if the user does not specify any file.
11842 ac_need_defaults=:
11843 while test $# != 0
11844 do
11845 case $1 in
11846 --*=?*)
11847 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11848 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11849 ac_shift=:
11850 ;;
11851 --*=)
11852 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11853 ac_optarg=
11854 ac_shift=:
11855 ;;
11856 *)
11857 ac_option=$1
11858 ac_optarg=$2
11859 ac_shift=shift
11860 ;;
11861 esac
11862
11863 case $ac_option in
11864 # Handling of the options.
11865 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11866 ac_cs_recheck=: ;;
11867 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11868 $as_echo "$ac_cs_version"; exit ;;
11869 --config | --confi | --conf | --con | --co | --c )
11870 $as_echo "$ac_cs_config"; exit ;;
11871 --debug | --debu | --deb | --de | --d | -d )
11872 debug=: ;;
11873 --file | --fil | --fi | --f )
11874 $ac_shift
11875 case $ac_optarg in
11876 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11877 '') as_fn_error $? "missing file argument" ;;
11878 esac
11879 as_fn_append CONFIG_FILES " '$ac_optarg'"
11880 ac_need_defaults=false;;
11881 --header | --heade | --head | --hea )
11882 $ac_shift
11883 case $ac_optarg in
11884 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11885 esac
11886 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11887 ac_need_defaults=false;;
11888 --he | --h)
11889 # Conflict between --help and --header
11890 as_fn_error $? "ambiguous option: \`$1'
11891 Try \`$0 --help' for more information.";;
11892 --help | --hel | -h )
11893 $as_echo "$ac_cs_usage"; exit ;;
11894 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11895 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11896 ac_cs_silent=: ;;
11897
11898 # This is an error.
11899 -*) as_fn_error $? "unrecognized option: \`$1'
11900 Try \`$0 --help' for more information." ;;
11901
11902 *) as_fn_append ac_config_targets " $1"
11903 ac_need_defaults=false ;;
11904
11905 esac
11906 shift
11907 done
11908
11909 ac_configure_extra_args=
11910
11911 if $ac_cs_silent; then
11912 exec 6>/dev/null
11913 ac_configure_extra_args="$ac_configure_extra_args --silent"
11914 fi
11915
11916 _ACEOF
11917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11918 if \$ac_cs_recheck; then
11919 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11920 shift
11921 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11922 CONFIG_SHELL='$SHELL'
11923 export CONFIG_SHELL
11924 exec "\$@"
11925 fi
11926
11927 _ACEOF
11928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11929 exec 5>>config.log
11930 {
11931 echo
11932 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11933 ## Running $as_me. ##
11934 _ASBOX
11935 $as_echo "$ac_log"
11936 } >&5
11937
11938 _ACEOF
11939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11940 #
11941 # INIT-COMMANDS
11942 #
11943 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11944
11945 _ACEOF
11946
11947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11948
11949 # Handling of arguments.
11950 for ac_config_target in $ac_config_targets
11951 do
11952 case $ac_config_target in
11953 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11954 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11955 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11956 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11957
11958 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11959 esac
11960 done
11961
11962
11963 # If the user did not use the arguments to specify the items to instantiate,
11964 # then the envvar interface is used. Set only those that are not.
11965 # We use the long form for the default assignment because of an extremely
11966 # bizarre bug on SunOS 4.1.3.
11967 if $ac_need_defaults; then
11968 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11969 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11970 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11971 fi
11972
11973 # Have a temporary directory for convenience. Make it in the build tree
11974 # simply because there is no reason against having it here, and in addition,
11975 # creating and moving files from /tmp can sometimes cause problems.
11976 # Hook for its removal unless debugging.
11977 # Note that there is a small window in which the directory will not be cleaned:
11978 # after its creation but before its name has been assigned to `$tmp'.
11979 $debug ||
11980 {
11981 tmp= ac_tmp=
11982 trap 'exit_status=$?
11983 : "${ac_tmp:=$tmp}"
11984 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11985 ' 0
11986 trap 'as_fn_exit 1' 1 2 13 15
11987 }
11988 # Create a (secure) tmp directory for tmp files.
11989
11990 {
11991 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11992 test -d "$tmp"
11993 } ||
11994 {
11995 tmp=./conf$$-$RANDOM
11996 (umask 077 && mkdir "$tmp")
11997 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11998 ac_tmp=$tmp
11999
12000 # Set up the scripts for CONFIG_FILES section.
12001 # No need to generate them if there are no CONFIG_FILES.
12002 # This happens for instance with `./config.status config.h'.
12003 if test -n "$CONFIG_FILES"; then
12004
12005
12006 ac_cr=`echo X | tr X '\015'`
12007 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12008 # But we know of no other shell where ac_cr would be empty at this
12009 # point, so we can use a bashism as a fallback.
12010 if test "x$ac_cr" = x; then
12011 eval ac_cr=\$\'\\r\'
12012 fi
12013 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12014 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12015 ac_cs_awk_cr='\\r'
12016 else
12017 ac_cs_awk_cr=$ac_cr
12018 fi
12019
12020 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12021 _ACEOF
12022
12023
12024 {
12025 echo "cat >conf$$subs.awk <<_ACEOF" &&
12026 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12027 echo "_ACEOF"
12028 } >conf$$subs.sh ||
12029 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12030 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12031 ac_delim='%!_!# '
12032 for ac_last_try in false false false false false :; do
12033 . ./conf$$subs.sh ||
12034 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12035
12036 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12037 if test $ac_delim_n = $ac_delim_num; then
12038 break
12039 elif $ac_last_try; then
12040 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12041 else
12042 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12043 fi
12044 done
12045 rm -f conf$$subs.sh
12046
12047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12048 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12049 _ACEOF
12050 sed -n '
12051 h
12052 s/^/S["/; s/!.*/"]=/
12053 p
12054 g
12055 s/^[^!]*!//
12056 :repl
12057 t repl
12058 s/'"$ac_delim"'$//
12059 t delim
12060 :nl
12061 h
12062 s/\(.\{148\}\)..*/\1/
12063 t more1
12064 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12065 p
12066 n
12067 b repl
12068 :more1
12069 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12070 p
12071 g
12072 s/.\{148\}//
12073 t nl
12074 :delim
12075 h
12076 s/\(.\{148\}\)..*/\1/
12077 t more2
12078 s/["\\]/\\&/g; s/^/"/; s/$/"/
12079 p
12080 b
12081 :more2
12082 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12083 p
12084 g
12085 s/.\{148\}//
12086 t delim
12087 ' <conf$$subs.awk | sed '
12088 /^[^""]/{
12089 N
12090 s/\n//
12091 }
12092 ' >>$CONFIG_STATUS || ac_write_fail=1
12093 rm -f conf$$subs.awk
12094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12095 _ACAWK
12096 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12097 for (key in S) S_is_set[key] = 1
12098 FS = ""
12099
12100 }
12101 {
12102 line = $ 0
12103 nfields = split(line, field, "@")
12104 substed = 0
12105 len = length(field[1])
12106 for (i = 2; i < nfields; i++) {
12107 key = field[i]
12108 keylen = length(key)
12109 if (S_is_set[key]) {
12110 value = S[key]
12111 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12112 len += length(value) + length(field[++i])
12113 substed = 1
12114 } else
12115 len += 1 + keylen
12116 }
12117
12118 print line
12119 }
12120
12121 _ACAWK
12122 _ACEOF
12123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12124 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12125 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12126 else
12127 cat
12128 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12129 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12130 _ACEOF
12131
12132 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12133 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12134 # trailing colons and then remove the whole line if VPATH becomes empty
12135 # (actually we leave an empty line to preserve line numbers).
12136 if test "x$srcdir" = x.; then
12137 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12138 h
12139 s///
12140 s/^/:/
12141 s/[ ]*$/:/
12142 s/:\$(srcdir):/:/g
12143 s/:\${srcdir}:/:/g
12144 s/:@srcdir@:/:/g
12145 s/^:*//
12146 s/:*$//
12147 x
12148 s/\(=[ ]*\).*/\1/
12149 G
12150 s/\n//
12151 s/^[^=]*=[ ]*$//
12152 }'
12153 fi
12154
12155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12156 fi # test -n "$CONFIG_FILES"
12157
12158 # Set up the scripts for CONFIG_HEADERS section.
12159 # No need to generate them if there are no CONFIG_HEADERS.
12160 # This happens for instance with `./config.status Makefile'.
12161 if test -n "$CONFIG_HEADERS"; then
12162 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12163 BEGIN {
12164 _ACEOF
12165
12166 # Transform confdefs.h into an awk script `defines.awk', embedded as
12167 # here-document in config.status, that substitutes the proper values into
12168 # config.h.in to produce config.h.
12169
12170 # Create a delimiter string that does not exist in confdefs.h, to ease
12171 # handling of long lines.
12172 ac_delim='%!_!# '
12173 for ac_last_try in false false :; do
12174 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12175 if test -z "$ac_tt"; then
12176 break
12177 elif $ac_last_try; then
12178 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12179 else
12180 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12181 fi
12182 done
12183
12184 # For the awk script, D is an array of macro values keyed by name,
12185 # likewise P contains macro parameters if any. Preserve backslash
12186 # newline sequences.
12187
12188 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12189 sed -n '
12190 s/.\{148\}/&'"$ac_delim"'/g
12191 t rset
12192 :rset
12193 s/^[ ]*#[ ]*define[ ][ ]*/ /
12194 t def
12195 d
12196 :def
12197 s/\\$//
12198 t bsnl
12199 s/["\\]/\\&/g
12200 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12201 D["\1"]=" \3"/p
12202 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12203 d
12204 :bsnl
12205 s/["\\]/\\&/g
12206 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12207 D["\1"]=" \3\\\\\\n"\\/p
12208 t cont
12209 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12210 t cont
12211 d
12212 :cont
12213 n
12214 s/.\{148\}/&'"$ac_delim"'/g
12215 t clear
12216 :clear
12217 s/\\$//
12218 t bsnlc
12219 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12220 d
12221 :bsnlc
12222 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12223 b cont
12224 ' <confdefs.h | sed '
12225 s/'"$ac_delim"'/"\\\
12226 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12227
12228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12229 for (key in D) D_is_set[key] = 1
12230 FS = ""
12231 }
12232 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12233 line = \$ 0
12234 split(line, arg, " ")
12235 if (arg[1] == "#") {
12236 defundef = arg[2]
12237 mac1 = arg[3]
12238 } else {
12239 defundef = substr(arg[1], 2)
12240 mac1 = arg[2]
12241 }
12242 split(mac1, mac2, "(") #)
12243 macro = mac2[1]
12244 prefix = substr(line, 1, index(line, defundef) - 1)
12245 if (D_is_set[macro]) {
12246 # Preserve the white space surrounding the "#".
12247 print prefix "define", macro P[macro] D[macro]
12248 next
12249 } else {
12250 # Replace #undef with comments. This is necessary, for example,
12251 # in the case of _POSIX_SOURCE, which is predefined and required
12252 # on some systems where configure will not decide to define it.
12253 if (defundef == "undef") {
12254 print "/*", prefix defundef, macro, "*/"
12255 next
12256 }
12257 }
12258 }
12259 { print }
12260 _ACAWK
12261 _ACEOF
12262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12263 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12264 fi # test -n "$CONFIG_HEADERS"
12265
12266
12267 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12268 shift
12269 for ac_tag
12270 do
12271 case $ac_tag in
12272 :[FHLC]) ac_mode=$ac_tag; continue;;
12273 esac
12274 case $ac_mode$ac_tag in
12275 :[FHL]*:*);;
12276 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12277 :[FH]-) ac_tag=-:-;;
12278 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12279 esac
12280 ac_save_IFS=$IFS
12281 IFS=:
12282 set x $ac_tag
12283 IFS=$ac_save_IFS
12284 shift
12285 ac_file=$1
12286 shift
12287
12288 case $ac_mode in
12289 :L) ac_source=$1;;
12290 :[FH])
12291 ac_file_inputs=
12292 for ac_f
12293 do
12294 case $ac_f in
12295 -) ac_f="$ac_tmp/stdin";;
12296 *) # Look for the file first in the build tree, then in the source tree
12297 # (if the path is not absolute). The absolute path cannot be DOS-style,
12298 # because $ac_f cannot contain `:'.
12299 test -f "$ac_f" ||
12300 case $ac_f in
12301 [\\/$]*) false;;
12302 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12303 esac ||
12304 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12305 esac
12306 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12307 as_fn_append ac_file_inputs " '$ac_f'"
12308 done
12309
12310 # Let's still pretend it is `configure' which instantiates (i.e., don't
12311 # use $as_me), people would be surprised to read:
12312 # /* config.h. Generated by config.status. */
12313 configure_input='Generated from '`
12314 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12315 `' by configure.'
12316 if test x"$ac_file" != x-; then
12317 configure_input="$ac_file. $configure_input"
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12319 $as_echo "$as_me: creating $ac_file" >&6;}
12320 fi
12321 # Neutralize special characters interpreted by sed in replacement strings.
12322 case $configure_input in #(
12323 *\&* | *\|* | *\\* )
12324 ac_sed_conf_input=`$as_echo "$configure_input" |
12325 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12326 *) ac_sed_conf_input=$configure_input;;
12327 esac
12328
12329 case $ac_tag in
12330 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12331 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12332 esac
12333 ;;
12334 esac
12335
12336 ac_dir=`$as_dirname -- "$ac_file" ||
12337 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12338 X"$ac_file" : 'X\(//\)[^/]' \| \
12339 X"$ac_file" : 'X\(//\)$' \| \
12340 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12341 $as_echo X"$ac_file" |
12342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12343 s//\1/
12344 q
12345 }
12346 /^X\(\/\/\)[^/].*/{
12347 s//\1/
12348 q
12349 }
12350 /^X\(\/\/\)$/{
12351 s//\1/
12352 q
12353 }
12354 /^X\(\/\).*/{
12355 s//\1/
12356 q
12357 }
12358 s/.*/./; q'`
12359 as_dir="$ac_dir"; as_fn_mkdir_p
12360 ac_builddir=.
12361
12362 case "$ac_dir" in
12363 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12364 *)
12365 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12366 # A ".." for each directory in $ac_dir_suffix.
12367 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12368 case $ac_top_builddir_sub in
12369 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12370 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12371 esac ;;
12372 esac
12373 ac_abs_top_builddir=$ac_pwd
12374 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12375 # for backward compatibility:
12376 ac_top_builddir=$ac_top_build_prefix
12377
12378 case $srcdir in
12379 .) # We are building in place.
12380 ac_srcdir=.
12381 ac_top_srcdir=$ac_top_builddir_sub
12382 ac_abs_top_srcdir=$ac_pwd ;;
12383 [\\/]* | ?:[\\/]* ) # Absolute name.
12384 ac_srcdir=$srcdir$ac_dir_suffix;
12385 ac_top_srcdir=$srcdir
12386 ac_abs_top_srcdir=$srcdir ;;
12387 *) # Relative name.
12388 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12389 ac_top_srcdir=$ac_top_build_prefix$srcdir
12390 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12391 esac
12392 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12393
12394
12395 case $ac_mode in
12396 :F)
12397 #
12398 # CONFIG_FILE
12399 #
12400
12401 case $INSTALL in
12402 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12403 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12404 esac
12405 ac_MKDIR_P=$MKDIR_P
12406 case $MKDIR_P in
12407 [\\/$]* | ?:[\\/]* ) ;;
12408 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12409 esac
12410 _ACEOF
12411
12412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12413 # If the template does not know about datarootdir, expand it.
12414 # FIXME: This hack should be removed a few years after 2.60.
12415 ac_datarootdir_hack=; ac_datarootdir_seen=
12416 ac_sed_dataroot='
12417 /datarootdir/ {
12418 p
12419 q
12420 }
12421 /@datadir@/p
12422 /@docdir@/p
12423 /@infodir@/p
12424 /@localedir@/p
12425 /@mandir@/p'
12426 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12427 *datarootdir*) ac_datarootdir_seen=yes;;
12428 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12430 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12431 _ACEOF
12432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12433 ac_datarootdir_hack='
12434 s&@datadir@&$datadir&g
12435 s&@docdir@&$docdir&g
12436 s&@infodir@&$infodir&g
12437 s&@localedir@&$localedir&g
12438 s&@mandir@&$mandir&g
12439 s&\\\${datarootdir}&$datarootdir&g' ;;
12440 esac
12441 _ACEOF
12442
12443 # Neutralize VPATH when `$srcdir' = `.'.
12444 # Shell code in configure.ac might set extrasub.
12445 # FIXME: do we really want to maintain this feature?
12446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12447 ac_sed_extra="$ac_vpsub
12448 $extrasub
12449 _ACEOF
12450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12451 :t
12452 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12453 s|@configure_input@|$ac_sed_conf_input|;t t
12454 s&@top_builddir@&$ac_top_builddir_sub&;t t
12455 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12456 s&@srcdir@&$ac_srcdir&;t t
12457 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12458 s&@top_srcdir@&$ac_top_srcdir&;t t
12459 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12460 s&@builddir@&$ac_builddir&;t t
12461 s&@abs_builddir@&$ac_abs_builddir&;t t
12462 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12463 s&@INSTALL@&$ac_INSTALL&;t t
12464 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12465 $ac_datarootdir_hack
12466 "
12467 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12468 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12469
12470 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12471 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12472 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12473 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12475 which seems to be undefined. Please make sure it is defined" >&5
12476 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12477 which seems to be undefined. Please make sure it is defined" >&2;}
12478
12479 rm -f "$ac_tmp/stdin"
12480 case $ac_file in
12481 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12482 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12483 esac \
12484 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12485 ;;
12486 :H)
12487 #
12488 # CONFIG_HEADER
12489 #
12490 if test x"$ac_file" != x-; then
12491 {
12492 $as_echo "/* $configure_input */" \
12493 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12494 } >"$ac_tmp/config.h" \
12495 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12496 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12498 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12499 else
12500 rm -f "$ac_file"
12501 mv "$ac_tmp/config.h" "$ac_file" \
12502 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12503 fi
12504 else
12505 $as_echo "/* $configure_input */" \
12506 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12507 || as_fn_error $? "could not create -" "$LINENO" 5
12508 fi
12509 # Compute "$ac_file"'s index in $config_headers.
12510 _am_arg="$ac_file"
12511 _am_stamp_count=1
12512 for _am_header in $config_headers :; do
12513 case $_am_header in
12514 $_am_arg | $_am_arg:* )
12515 break ;;
12516 * )
12517 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12518 esac
12519 done
12520 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12521 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12522 X"$_am_arg" : 'X\(//\)[^/]' \| \
12523 X"$_am_arg" : 'X\(//\)$' \| \
12524 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12525 $as_echo X"$_am_arg" |
12526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12527 s//\1/
12528 q
12529 }
12530 /^X\(\/\/\)[^/].*/{
12531 s//\1/
12532 q
12533 }
12534 /^X\(\/\/\)$/{
12535 s//\1/
12536 q
12537 }
12538 /^X\(\/\).*/{
12539 s//\1/
12540 q
12541 }
12542 s/.*/./; q'`/stamp-h$_am_stamp_count
12543 ;;
12544
12545 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12546 $as_echo "$as_me: executing $ac_file commands" >&6;}
12547 ;;
12548 esac
12549
12550
12551 case $ac_file$ac_mode in
12552 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12553 # Older Autoconf quotes --file arguments for eval, but not when files
12554 # are listed without --file. Let's play safe and only enable the eval
12555 # if we detect the quoting.
12556 case $CONFIG_FILES in
12557 *\'*) eval set x "$CONFIG_FILES" ;;
12558 *) set x $CONFIG_FILES ;;
12559 esac
12560 shift
12561 for mf
12562 do
12563 # Strip MF so we end up with the name of the file.
12564 mf=`echo "$mf" | sed -e 's/:.*$//'`
12565 # Check whether this is an Automake generated Makefile or not.
12566 # We used to match only the files named 'Makefile.in', but
12567 # some people rename them; so instead we look at the file content.
12568 # Grep'ing the first line is not enough: some people post-process
12569 # each Makefile.in and add a new line on top of each file to say so.
12570 # Grep'ing the whole file is not good either: AIX grep has a line
12571 # limit of 2048, but all sed's we know have understand at least 4000.
12572 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12573 dirpart=`$as_dirname -- "$mf" ||
12574 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12575 X"$mf" : 'X\(//\)[^/]' \| \
12576 X"$mf" : 'X\(//\)$' \| \
12577 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12578 $as_echo X"$mf" |
12579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12580 s//\1/
12581 q
12582 }
12583 /^X\(\/\/\)[^/].*/{
12584 s//\1/
12585 q
12586 }
12587 /^X\(\/\/\)$/{
12588 s//\1/
12589 q
12590 }
12591 /^X\(\/\).*/{
12592 s//\1/
12593 q
12594 }
12595 s/.*/./; q'`
12596 else
12597 continue
12598 fi
12599 # Extract the definition of DEPDIR, am__include, and am__quote
12600 # from the Makefile without running 'make'.
12601 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12602 test -z "$DEPDIR" && continue
12603 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12604 test -z "$am__include" && continue
12605 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12606 # Find all dependency output files, they are included files with
12607 # $(DEPDIR) in their names. We invoke sed twice because it is the
12608 # simplest approach to changing $(DEPDIR) to its actual value in the
12609 # expansion.
12610 for file in `sed -n "
12611 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12612 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12613 # Make sure the directory exists.
12614 test -f "$dirpart/$file" && continue
12615 fdir=`$as_dirname -- "$file" ||
12616 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12617 X"$file" : 'X\(//\)[^/]' \| \
12618 X"$file" : 'X\(//\)$' \| \
12619 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12620 $as_echo X"$file" |
12621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12622 s//\1/
12623 q
12624 }
12625 /^X\(\/\/\)[^/].*/{
12626 s//\1/
12627 q
12628 }
12629 /^X\(\/\/\)$/{
12630 s//\1/
12631 q
12632 }
12633 /^X\(\/\).*/{
12634 s//\1/
12635 q
12636 }
12637 s/.*/./; q'`
12638 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12639 # echo "creating $dirpart/$file"
12640 echo '# dummy' > "$dirpart/$file"
12641 done
12642 done
12643 }
12644 ;;
12645
12646 esac
12647 done # for ac_tag
12648
12649
12650 as_fn_exit 0
12651 _ACEOF
12652 ac_clean_files=$ac_clean_files_save
12653
12654 test $ac_write_fail = 0 ||
12655 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12656
12657
12658 # configure is writing to config.log, and then calls config.status.
12659 # config.status does its own redirection, appending to config.log.
12660 # Unfortunately, on DOS this fails, as config.log is still kept open
12661 # by configure, so config.status won't be able to write to it; its
12662 # output is simply discarded. So we exec the FD to /dev/null,
12663 # effectively closing config.log, so it can be properly (re)opened and
12664 # appended to by config.status. When coming back to configure, we
12665 # need to make the FD available again.
12666 if test "$no_create" != yes; then
12667 ac_cs_success=:
12668 ac_config_status_args=
12669 test "$silent" = yes &&
12670 ac_config_status_args="$ac_config_status_args --quiet"
12671 exec 5>/dev/null
12672 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12673 exec 5>>config.log
12674 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12675 # would make configure fail if this is the last instruction.
12676 $ac_cs_success || as_fn_exit 1
12677 fi
12678 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12680 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12681 fi
12682
12683