configure revision 1.1.1.5 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xman 1.1.3.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
182 fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203 fi
204 fi
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
242 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243 $0: about your system, including any error possibly output
244 $0: before this message. Then install a modern shell, or
245 $0: manually run the script under such a shell if you do
246 $0: have one."
247 fi
248 exit 1
249 fi
250 fi
251 fi
252 SHELL=${CONFIG_SHELL-/bin/sh}
253 export SHELL
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
257
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
261 # as_fn_unset VAR
262 # ---------------
263 # Portably unset VAR.
264 as_fn_unset ()
265 {
266 { eval $1=; unset $1;}
267 }
268 as_unset=as_fn_unset
269
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
273 as_fn_set_status ()
274 {
275 return $1
276 } # as_fn_set_status
277
278 # as_fn_exit STATUS
279 # -----------------
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 as_fn_exit ()
282 {
283 set +e
284 as_fn_set_status $1
285 exit $1
286 } # as_fn_exit
287
288 # as_fn_mkdir_p
289 # -------------
290 # Create "$as_dir" as a directory, including parents if necessary.
291 as_fn_mkdir_p ()
292 {
293
294 case $as_dir in #(
295 -*) as_dir=./$as_dir;;
296 esac
297 test -d "$as_dir" || eval $as_mkdir_p || {
298 as_dirs=
299 while :; do
300 case $as_dir in #(
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 *) as_qdir=$as_dir;;
303 esac
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)[^/].*/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\).*/{
324 s//\1/
325 q
326 }
327 s/.*/./; q'`
328 test -d "$as_dir" && break
329 done
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334 } # as_fn_mkdir_p
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
340 # implementations.
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
343 {
344 eval $1+=\$2
345 }'
346 else
347 as_fn_append ()
348 {
349 eval $1=\$$1\$2
350 }
351 fi # as_fn_append
352
353 # as_fn_arith ARG...
354 # ------------------
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 eval 'as_fn_arith ()
360 {
361 as_val=$(( $* ))
362 }'
363 else
364 as_fn_arith ()
365 {
366 as_val=`expr "$@" || test $? -eq 1`
367 }
368 fi # as_fn_arith
369
370
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
376 as_fn_error ()
377 {
378 as_status=$1; test $as_status -eq 0 && as_status=1
379 if test "$4"; then
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 fi
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
385 } # as_fn_error
386
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
389 as_expr=expr
390 else
391 as_expr=false
392 fi
393
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395 as_basename=basename
396 else
397 as_basename=false
398 fi
399
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401 as_dirname=dirname
402 else
403 as_dirname=false
404 fi
405
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 $as_echo X/"$0" |
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\/\)$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\).*/{
420 s//\1/
421 q
422 }
423 s/.*/./; q'`
424
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
462 }
463
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
466 -n*)
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 xy) ECHO_C='\c';;
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 ECHO_T=' ';;
472 esac;;
473 *)
474 ECHO_N='-n';;
475 esac
476
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
480 else
481 rm -f conf$$.dir
482 mkdir conf$$.dir 2>/dev/null
483 fi
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s='ln -s'
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 as_ln_s='cp -p'
493 elif ln conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s=ln
495 else
496 as_ln_s='cp -p'
497 fi
498 else
499 as_ln_s='cp -p'
500 fi
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
503
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
506 else
507 test -d ./-p && rmdir ./-p
508 as_mkdir_p=false
509 fi
510
511 if test -x / >/dev/null 2>&1; then
512 as_test_x='test -x'
513 else
514 if ls -dL / >/dev/null 2>&1; then
515 as_ls_L_option=L
516 else
517 as_ls_L_option=
518 fi
519 as_test_x='
520 eval sh -c '\''
521 if test -d "$1"; then
522 test -d "$1/.";
523 else
524 case $1 in #(
525 -*)set "./$1";;
526 esac;
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
529 '\'' sh
530 '
531 fi
532 as_executable_p=$as_test_x
533
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541 test -n "$DJDIR" || exec 7<&0 </dev/null
542 exec 6>&1
543
544 # Name of the host.
545 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546 # so uname gets run too.
547 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549 #
550 # Initializations.
551 #
552 ac_default_prefix=/usr/local
553 ac_clean_files=
554 ac_config_libobj_dir=.
555 LIBOBJS=
556 cross_compiling=no
557 subdirs=
558 MFLAGS=
559 MAKEFLAGS=
560
561 # Identity of this package.
562 PACKAGE_NAME='xman'
563 PACKAGE_TARNAME='xman'
564 PACKAGE_VERSION='1.1.3'
565 PACKAGE_STRING='xman 1.1.3'
566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567 PACKAGE_URL=''
568
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 # include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 # include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='am__EXEEXT_FALSE
606 am__EXEEXT_TRUE
607 LTLIBOBJS
608 LIBOBJS
609 appdefaultdir
610 APPDEFS_LIBS
611 APPDEFS_CFLAGS
612 XMAN_LIBS
613 XMAN_CFLAGS
614 HELPDIR
615 GROFF
616 MAN_SUBSTS
617 XORG_MAN_PAGE
618 ADMIN_MAN_DIR
619 DRIVER_MAN_DIR
620 MISC_MAN_DIR
621 FILE_MAN_DIR
622 LIB_MAN_DIR
623 APP_MAN_DIR
624 ADMIN_MAN_SUFFIX
625 DRIVER_MAN_SUFFIX
626 MISC_MAN_SUFFIX
627 FILE_MAN_SUFFIX
628 LIB_MAN_SUFFIX
629 APP_MAN_SUFFIX
630 SED
631 host_os
632 host_vendor
633 host_cpu
634 host
635 build_os
636 build_vendor
637 build_cpu
638 build
639 INSTALL_CMD
640 PKG_CONFIG
641 CHANGELOG_CMD
642 STRICT_CFLAGS
643 CWARNFLAGS
644 BASE_CFLAGS
645 EGREP
646 GREP
647 CPP
648 am__fastdepCC_FALSE
649 am__fastdepCC_TRUE
650 CCDEPMODE
651 am__nodep
652 AMDEPBACKSLASH
653 AMDEP_FALSE
654 AMDEP_TRUE
655 am__quote
656 am__include
657 DEPDIR
658 OBJEXT
659 EXEEXT
660 ac_ct_CC
661 CPPFLAGS
662 LDFLAGS
663 CFLAGS
664 CC
665 MAINT
666 MAINTAINER_MODE_FALSE
667 MAINTAINER_MODE_TRUE
668 AM_BACKSLASH
669 AM_DEFAULT_VERBOSITY
670 AM_DEFAULT_V
671 AM_V
672 am__untar
673 am__tar
674 AMTAR
675 am__leading_dot
676 SET_MAKE
677 AWK
678 mkdir_p
679 MKDIR_P
680 INSTALL_STRIP_PROGRAM
681 STRIP
682 install_sh
683 MAKEINFO
684 AUTOHEADER
685 AUTOMAKE
686 AUTOCONF
687 ACLOCAL
688 VERSION
689 PACKAGE
690 CYGPATH_W
691 am__isrc
692 INSTALL_DATA
693 INSTALL_SCRIPT
694 INSTALL_PROGRAM
695 target_alias
696 host_alias
697 build_alias
698 LIBS
699 ECHO_T
700 ECHO_N
701 ECHO_C
702 DEFS
703 mandir
704 localedir
705 libdir
706 psdir
707 pdfdir
708 dvidir
709 htmldir
710 infodir
711 docdir
712 oldincludedir
713 includedir
714 localstatedir
715 sharedstatedir
716 sysconfdir
717 datadir
718 datarootdir
719 libexecdir
720 sbindir
721 bindir
722 program_transform_name
723 prefix
724 exec_prefix
725 PACKAGE_URL
726 PACKAGE_BUGREPORT
727 PACKAGE_STRING
728 PACKAGE_VERSION
729 PACKAGE_TARNAME
730 PACKAGE_NAME
731 PATH_SEPARATOR
732 SHELL'
733 ac_subst_files=''
734 ac_user_opts='
735 enable_option_checking
736 enable_silent_rules
737 enable_maintainer_mode
738 enable_dependency_tracking
739 enable_selective_werror
740 enable_strict_compilation
741 with_helpdir
742 with_sysmanpath
743 with_localmanpath
744 with_manconfig
745 with_appdefaultdir
746 '
747 ac_precious_vars='build_alias
748 host_alias
749 target_alias
750 CC
751 CFLAGS
752 LDFLAGS
753 LIBS
754 CPPFLAGS
755 CPP
756 PKG_CONFIG
757 XMAN_CFLAGS
758 XMAN_LIBS
759 APPDEFS_CFLAGS
760 APPDEFS_LIBS'
761
762
763 # Initialize some variables set by options.
764 ac_init_help=
765 ac_init_version=false
766 ac_unrecognized_opts=
767 ac_unrecognized_sep=
768 # The variables have the same names as the options, with
769 # dashes changed to underlines.
770 cache_file=/dev/null
771 exec_prefix=NONE
772 no_create=
773 no_recursion=
774 prefix=NONE
775 program_prefix=NONE
776 program_suffix=NONE
777 program_transform_name=s,x,x,
778 silent=
779 site=
780 srcdir=
781 verbose=
782 x_includes=NONE
783 x_libraries=NONE
784
785 # Installation directory options.
786 # These are left unexpanded so users can "make install exec_prefix=/foo"
787 # and all the variables that are supposed to be based on exec_prefix
788 # by default will actually change.
789 # Use braces instead of parens because sh, perl, etc. also accept them.
790 # (The list follows the same order as the GNU Coding Standards.)
791 bindir='${exec_prefix}/bin'
792 sbindir='${exec_prefix}/sbin'
793 libexecdir='${exec_prefix}/libexec'
794 datarootdir='${prefix}/share'
795 datadir='${datarootdir}'
796 sysconfdir='${prefix}/etc'
797 sharedstatedir='${prefix}/com'
798 localstatedir='${prefix}/var'
799 includedir='${prefix}/include'
800 oldincludedir='/usr/include'
801 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
802 infodir='${datarootdir}/info'
803 htmldir='${docdir}'
804 dvidir='${docdir}'
805 pdfdir='${docdir}'
806 psdir='${docdir}'
807 libdir='${exec_prefix}/lib'
808 localedir='${datarootdir}/locale'
809 mandir='${datarootdir}/man'
810
811 ac_prev=
812 ac_dashdash=
813 for ac_option
814 do
815 # If the previous option needs an argument, assign it.
816 if test -n "$ac_prev"; then
817 eval $ac_prev=\$ac_option
818 ac_prev=
819 continue
820 fi
821
822 case $ac_option in
823 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
824 *=) ac_optarg= ;;
825 *) ac_optarg=yes ;;
826 esac
827
828 # Accept the important Cygnus configure options, so we can diagnose typos.
829
830 case $ac_dashdash$ac_option in
831 --)
832 ac_dashdash=yes ;;
833
834 -bindir | --bindir | --bindi | --bind | --bin | --bi)
835 ac_prev=bindir ;;
836 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
837 bindir=$ac_optarg ;;
838
839 -build | --build | --buil | --bui | --bu)
840 ac_prev=build_alias ;;
841 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
842 build_alias=$ac_optarg ;;
843
844 -cache-file | --cache-file | --cache-fil | --cache-fi \
845 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
846 ac_prev=cache_file ;;
847 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
848 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
849 cache_file=$ac_optarg ;;
850
851 --config-cache | -C)
852 cache_file=config.cache ;;
853
854 -datadir | --datadir | --datadi | --datad)
855 ac_prev=datadir ;;
856 -datadir=* | --datadir=* | --datadi=* | --datad=*)
857 datadir=$ac_optarg ;;
858
859 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
860 | --dataroo | --dataro | --datar)
861 ac_prev=datarootdir ;;
862 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
863 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
864 datarootdir=$ac_optarg ;;
865
866 -disable-* | --disable-*)
867 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
868 # Reject names that are not valid shell variable names.
869 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
870 as_fn_error $? "invalid feature name: $ac_useropt"
871 ac_useropt_orig=$ac_useropt
872 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
873 case $ac_user_opts in
874 *"
875 "enable_$ac_useropt"
876 "*) ;;
877 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
878 ac_unrecognized_sep=', ';;
879 esac
880 eval enable_$ac_useropt=no ;;
881
882 -docdir | --docdir | --docdi | --doc | --do)
883 ac_prev=docdir ;;
884 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
885 docdir=$ac_optarg ;;
886
887 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
888 ac_prev=dvidir ;;
889 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
890 dvidir=$ac_optarg ;;
891
892 -enable-* | --enable-*)
893 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896 as_fn_error $? "invalid feature name: $ac_useropt"
897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
900 *"
901 "enable_$ac_useropt"
902 "*) ;;
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
905 esac
906 eval enable_$ac_useropt=\$ac_optarg ;;
907
908 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
909 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
910 | --exec | --exe | --ex)
911 ac_prev=exec_prefix ;;
912 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
913 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
914 | --exec=* | --exe=* | --ex=*)
915 exec_prefix=$ac_optarg ;;
916
917 -gas | --gas | --ga | --g)
918 # Obsolete; use --with-gas.
919 with_gas=yes ;;
920
921 -help | --help | --hel | --he | -h)
922 ac_init_help=long ;;
923 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
924 ac_init_help=recursive ;;
925 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
926 ac_init_help=short ;;
927
928 -host | --host | --hos | --ho)
929 ac_prev=host_alias ;;
930 -host=* | --host=* | --hos=* | --ho=*)
931 host_alias=$ac_optarg ;;
932
933 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
934 ac_prev=htmldir ;;
935 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
936 | --ht=*)
937 htmldir=$ac_optarg ;;
938
939 -includedir | --includedir | --includedi | --included | --include \
940 | --includ | --inclu | --incl | --inc)
941 ac_prev=includedir ;;
942 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
943 | --includ=* | --inclu=* | --incl=* | --inc=*)
944 includedir=$ac_optarg ;;
945
946 -infodir | --infodir | --infodi | --infod | --info | --inf)
947 ac_prev=infodir ;;
948 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
949 infodir=$ac_optarg ;;
950
951 -libdir | --libdir | --libdi | --libd)
952 ac_prev=libdir ;;
953 -libdir=* | --libdir=* | --libdi=* | --libd=*)
954 libdir=$ac_optarg ;;
955
956 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
957 | --libexe | --libex | --libe)
958 ac_prev=libexecdir ;;
959 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
960 | --libexe=* | --libex=* | --libe=*)
961 libexecdir=$ac_optarg ;;
962
963 -localedir | --localedir | --localedi | --localed | --locale)
964 ac_prev=localedir ;;
965 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
966 localedir=$ac_optarg ;;
967
968 -localstatedir | --localstatedir | --localstatedi | --localstated \
969 | --localstate | --localstat | --localsta | --localst | --locals)
970 ac_prev=localstatedir ;;
971 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
972 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
973 localstatedir=$ac_optarg ;;
974
975 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
976 ac_prev=mandir ;;
977 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
978 mandir=$ac_optarg ;;
979
980 -nfp | --nfp | --nf)
981 # Obsolete; use --without-fp.
982 with_fp=no ;;
983
984 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
985 | --no-cr | --no-c | -n)
986 no_create=yes ;;
987
988 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
989 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
990 no_recursion=yes ;;
991
992 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
993 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
994 | --oldin | --oldi | --old | --ol | --o)
995 ac_prev=oldincludedir ;;
996 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
997 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
998 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
999 oldincludedir=$ac_optarg ;;
1000
1001 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1002 ac_prev=prefix ;;
1003 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1004 prefix=$ac_optarg ;;
1005
1006 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1007 | --program-pre | --program-pr | --program-p)
1008 ac_prev=program_prefix ;;
1009 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1010 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1011 program_prefix=$ac_optarg ;;
1012
1013 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1014 | --program-suf | --program-su | --program-s)
1015 ac_prev=program_suffix ;;
1016 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1017 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1018 program_suffix=$ac_optarg ;;
1019
1020 -program-transform-name | --program-transform-name \
1021 | --program-transform-nam | --program-transform-na \
1022 | --program-transform-n | --program-transform- \
1023 | --program-transform | --program-transfor \
1024 | --program-transfo | --program-transf \
1025 | --program-trans | --program-tran \
1026 | --progr-tra | --program-tr | --program-t)
1027 ac_prev=program_transform_name ;;
1028 -program-transform-name=* | --program-transform-name=* \
1029 | --program-transform-nam=* | --program-transform-na=* \
1030 | --program-transform-n=* | --program-transform-=* \
1031 | --program-transform=* | --program-transfor=* \
1032 | --program-transfo=* | --program-transf=* \
1033 | --program-trans=* | --program-tran=* \
1034 | --progr-tra=* | --program-tr=* | --program-t=*)
1035 program_transform_name=$ac_optarg ;;
1036
1037 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1038 ac_prev=pdfdir ;;
1039 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1040 pdfdir=$ac_optarg ;;
1041
1042 -psdir | --psdir | --psdi | --psd | --ps)
1043 ac_prev=psdir ;;
1044 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1045 psdir=$ac_optarg ;;
1046
1047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048 | -silent | --silent | --silen | --sile | --sil)
1049 silent=yes ;;
1050
1051 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1052 ac_prev=sbindir ;;
1053 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1054 | --sbi=* | --sb=*)
1055 sbindir=$ac_optarg ;;
1056
1057 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1058 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1059 | --sharedst | --shareds | --shared | --share | --shar \
1060 | --sha | --sh)
1061 ac_prev=sharedstatedir ;;
1062 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1063 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1064 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1065 | --sha=* | --sh=*)
1066 sharedstatedir=$ac_optarg ;;
1067
1068 -site | --site | --sit)
1069 ac_prev=site ;;
1070 -site=* | --site=* | --sit=*)
1071 site=$ac_optarg ;;
1072
1073 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1074 ac_prev=srcdir ;;
1075 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1076 srcdir=$ac_optarg ;;
1077
1078 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1079 | --syscon | --sysco | --sysc | --sys | --sy)
1080 ac_prev=sysconfdir ;;
1081 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1082 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1083 sysconfdir=$ac_optarg ;;
1084
1085 -target | --target | --targe | --targ | --tar | --ta | --t)
1086 ac_prev=target_alias ;;
1087 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1088 target_alias=$ac_optarg ;;
1089
1090 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1091 verbose=yes ;;
1092
1093 -version | --version | --versio | --versi | --vers | -V)
1094 ac_init_version=: ;;
1095
1096 -with-* | --with-*)
1097 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100 as_fn_error $? "invalid package name: $ac_useropt"
1101 ac_useropt_orig=$ac_useropt
1102 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103 case $ac_user_opts in
1104 *"
1105 "with_$ac_useropt"
1106 "*) ;;
1107 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1108 ac_unrecognized_sep=', ';;
1109 esac
1110 eval with_$ac_useropt=\$ac_optarg ;;
1111
1112 -without-* | --without-*)
1113 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116 as_fn_error $? "invalid package name: $ac_useropt"
1117 ac_useropt_orig=$ac_useropt
1118 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119 case $ac_user_opts in
1120 *"
1121 "with_$ac_useropt"
1122 "*) ;;
1123 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1124 ac_unrecognized_sep=', ';;
1125 esac
1126 eval with_$ac_useropt=no ;;
1127
1128 --x)
1129 # Obsolete; use --with-x.
1130 with_x=yes ;;
1131
1132 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1133 | --x-incl | --x-inc | --x-in | --x-i)
1134 ac_prev=x_includes ;;
1135 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1136 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1137 x_includes=$ac_optarg ;;
1138
1139 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1140 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1141 ac_prev=x_libraries ;;
1142 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1143 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1144 x_libraries=$ac_optarg ;;
1145
1146 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1147 Try \`$0 --help' for more information"
1148 ;;
1149
1150 *=*)
1151 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1152 # Reject names that are not valid shell variable names.
1153 case $ac_envvar in #(
1154 '' | [0-9]* | *[!_$as_cr_alnum]* )
1155 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1156 esac
1157 eval $ac_envvar=\$ac_optarg
1158 export $ac_envvar ;;
1159
1160 *)
1161 # FIXME: should be removed in autoconf 3.0.
1162 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1163 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1164 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1165 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1166 ;;
1167
1168 esac
1169 done
1170
1171 if test -n "$ac_prev"; then
1172 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1173 as_fn_error $? "missing argument to $ac_option"
1174 fi
1175
1176 if test -n "$ac_unrecognized_opts"; then
1177 case $enable_option_checking in
1178 no) ;;
1179 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1180 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1181 esac
1182 fi
1183
1184 # Check all directory arguments for consistency.
1185 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1186 datadir sysconfdir sharedstatedir localstatedir includedir \
1187 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1188 libdir localedir mandir
1189 do
1190 eval ac_val=\$$ac_var
1191 # Remove trailing slashes.
1192 case $ac_val in
1193 */ )
1194 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1195 eval $ac_var=\$ac_val;;
1196 esac
1197 # Be sure to have absolute directory names.
1198 case $ac_val in
1199 [\\/$]* | ?:[\\/]* ) continue;;
1200 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1201 esac
1202 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1203 done
1204
1205 # There might be people who depend on the old broken behavior: `$host'
1206 # used to hold the argument of --host etc.
1207 # FIXME: To remove some day.
1208 build=$build_alias
1209 host=$host_alias
1210 target=$target_alias
1211
1212 # FIXME: To remove some day.
1213 if test "x$host_alias" != x; then
1214 if test "x$build_alias" = x; then
1215 cross_compiling=maybe
1216 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1217 If a cross compiler is detected then cross compile mode will be used" >&2
1218 elif test "x$build_alias" != "x$host_alias"; then
1219 cross_compiling=yes
1220 fi
1221 fi
1222
1223 ac_tool_prefix=
1224 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1225
1226 test "$silent" = yes && exec 6>/dev/null
1227
1228
1229 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1230 ac_ls_di=`ls -di .` &&
1231 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1232 as_fn_error $? "working directory cannot be determined"
1233 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1234 as_fn_error $? "pwd does not report name of working directory"
1235
1236
1237 # Find the source files, if location was not specified.
1238 if test -z "$srcdir"; then
1239 ac_srcdir_defaulted=yes
1240 # Try the directory containing this script, then the parent directory.
1241 ac_confdir=`$as_dirname -- "$as_myself" ||
1242 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1243 X"$as_myself" : 'X\(//\)[^/]' \| \
1244 X"$as_myself" : 'X\(//\)$' \| \
1245 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1246 $as_echo X"$as_myself" |
1247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1248 s//\1/
1249 q
1250 }
1251 /^X\(\/\/\)[^/].*/{
1252 s//\1/
1253 q
1254 }
1255 /^X\(\/\/\)$/{
1256 s//\1/
1257 q
1258 }
1259 /^X\(\/\).*/{
1260 s//\1/
1261 q
1262 }
1263 s/.*/./; q'`
1264 srcdir=$ac_confdir
1265 if test ! -r "$srcdir/$ac_unique_file"; then
1266 srcdir=..
1267 fi
1268 else
1269 ac_srcdir_defaulted=no
1270 fi
1271 if test ! -r "$srcdir/$ac_unique_file"; then
1272 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1273 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1274 fi
1275 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1276 ac_abs_confdir=`(
1277 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1278 pwd)`
1279 # When building in place, set srcdir=.
1280 if test "$ac_abs_confdir" = "$ac_pwd"; then
1281 srcdir=.
1282 fi
1283 # Remove unnecessary trailing slashes from srcdir.
1284 # Double slashes in file names in object file debugging info
1285 # mess up M-x gdb in Emacs.
1286 case $srcdir in
1287 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1288 esac
1289 for ac_var in $ac_precious_vars; do
1290 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1291 eval ac_env_${ac_var}_value=\$${ac_var}
1292 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1294 done
1295
1296 #
1297 # Report the --help message.
1298 #
1299 if test "$ac_init_help" = "long"; then
1300 # Omit some internal or obsolete options to make the list less imposing.
1301 # This message is too long to be a string in the A/UX 3.1 sh.
1302 cat <<_ACEOF
1303 \`configure' configures xman 1.1.3 to adapt to many kinds of systems.
1304
1305 Usage: $0 [OPTION]... [VAR=VALUE]...
1306
1307 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1308 VAR=VALUE. See below for descriptions of some of the useful variables.
1309
1310 Defaults for the options are specified in brackets.
1311
1312 Configuration:
1313 -h, --help display this help and exit
1314 --help=short display options specific to this package
1315 --help=recursive display the short help of all the included packages
1316 -V, --version display version information and exit
1317 -q, --quiet, --silent do not print \`checking ...' messages
1318 --cache-file=FILE cache test results in FILE [disabled]
1319 -C, --config-cache alias for \`--cache-file=config.cache'
1320 -n, --no-create do not create output files
1321 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1322
1323 Installation directories:
1324 --prefix=PREFIX install architecture-independent files in PREFIX
1325 [$ac_default_prefix]
1326 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1327 [PREFIX]
1328
1329 By default, \`make install' will install all the files in
1330 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1331 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1332 for instance \`--prefix=\$HOME'.
1333
1334 For better control, use the options below.
1335
1336 Fine tuning of the installation directories:
1337 --bindir=DIR user executables [EPREFIX/bin]
1338 --sbindir=DIR system admin executables [EPREFIX/sbin]
1339 --libexecdir=DIR program executables [EPREFIX/libexec]
1340 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1341 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1342 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1343 --libdir=DIR object code libraries [EPREFIX/lib]
1344 --includedir=DIR C header files [PREFIX/include]
1345 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1346 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1347 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1348 --infodir=DIR info documentation [DATAROOTDIR/info]
1349 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1350 --mandir=DIR man documentation [DATAROOTDIR/man]
1351 --docdir=DIR documentation root [DATAROOTDIR/doc/xman]
1352 --htmldir=DIR html documentation [DOCDIR]
1353 --dvidir=DIR dvi documentation [DOCDIR]
1354 --pdfdir=DIR pdf documentation [DOCDIR]
1355 --psdir=DIR ps documentation [DOCDIR]
1356 _ACEOF
1357
1358 cat <<\_ACEOF
1359
1360 Program names:
1361 --program-prefix=PREFIX prepend PREFIX to installed program names
1362 --program-suffix=SUFFIX append SUFFIX to installed program names
1363 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1364
1365 System types:
1366 --build=BUILD configure for building on BUILD [guessed]
1367 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1368 _ACEOF
1369 fi
1370
1371 if test -n "$ac_init_help"; then
1372 case $ac_init_help in
1373 short | recursive ) echo "Configuration of xman 1.1.3:";;
1374 esac
1375 cat <<\_ACEOF
1376
1377 Optional Features:
1378 --disable-option-checking ignore unrecognized --enable/--with options
1379 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1380 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1381 --enable-silent-rules less verbose build output (undo: "make V=1")
1382 --disable-silent-rules verbose build output (undo: "make V=0")
1383 --enable-maintainer-mode
1384 enable make rules and dependencies not useful (and
1385 sometimes confusing) to the casual installer
1386 --enable-dependency-tracking
1387 do not reject slow dependency extractors
1388 --disable-dependency-tracking
1389 speeds up one-time build
1390 --disable-selective-werror
1391 Turn off selective compiler errors. (default:
1392 enabled)
1393 --enable-strict-compilation
1394 Enable all warnings from compiler and make them
1395 errors (default: disabled)
1396
1397 Optional Packages:
1398 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1399 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1400 --with-helpdir=<path> Set default directory for xman.help (default:
1401 ${datadir}/X11)
1402 --with-sysmanpath=<path>
1403 Set default system man page search path
1404 --with-localmanpath=<path>
1405 Set default local man page search path
1406 --with-manconfig=<filename>
1407 Set default system man configuration file
1408 --with-appdefaultdir=<pathname>
1409 specify directory for app-defaults files (default is
1410 autodetected)
1411
1412 Some influential environment variables:
1413 CC C compiler command
1414 CFLAGS C compiler flags
1415 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1416 nonstandard directory <lib dir>
1417 LIBS libraries to pass to the linker, e.g. -l<library>
1418 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1419 you have headers in a nonstandard directory <include dir>
1420 CPP C preprocessor
1421 PKG_CONFIG path to pkg-config utility
1422 XMAN_CFLAGS C compiler flags for XMAN, overriding pkg-config
1423 XMAN_LIBS linker flags for XMAN, overriding pkg-config
1424 APPDEFS_CFLAGS
1425 C compiler flags for APPDEFS, overriding pkg-config
1426 APPDEFS_LIBS
1427 linker flags for APPDEFS, overriding pkg-config
1428
1429 Use these variables to override the choices made by `configure' or to help
1430 it to find libraries and programs with nonstandard names/locations.
1431
1432 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1433 _ACEOF
1434 ac_status=$?
1435 fi
1436
1437 if test "$ac_init_help" = "recursive"; then
1438 # If there are subdirs, report their specific --help.
1439 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1440 test -d "$ac_dir" ||
1441 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1442 continue
1443 ac_builddir=.
1444
1445 case "$ac_dir" in
1446 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1447 *)
1448 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1449 # A ".." for each directory in $ac_dir_suffix.
1450 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1451 case $ac_top_builddir_sub in
1452 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1454 esac ;;
1455 esac
1456 ac_abs_top_builddir=$ac_pwd
1457 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1458 # for backward compatibility:
1459 ac_top_builddir=$ac_top_build_prefix
1460
1461 case $srcdir in
1462 .) # We are building in place.
1463 ac_srcdir=.
1464 ac_top_srcdir=$ac_top_builddir_sub
1465 ac_abs_top_srcdir=$ac_pwd ;;
1466 [\\/]* | ?:[\\/]* ) # Absolute name.
1467 ac_srcdir=$srcdir$ac_dir_suffix;
1468 ac_top_srcdir=$srcdir
1469 ac_abs_top_srcdir=$srcdir ;;
1470 *) # Relative name.
1471 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1472 ac_top_srcdir=$ac_top_build_prefix$srcdir
1473 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1474 esac
1475 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1476
1477 cd "$ac_dir" || { ac_status=$?; continue; }
1478 # Check for guested configure.
1479 if test -f "$ac_srcdir/configure.gnu"; then
1480 echo &&
1481 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1482 elif test -f "$ac_srcdir/configure"; then
1483 echo &&
1484 $SHELL "$ac_srcdir/configure" --help=recursive
1485 else
1486 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1487 fi || ac_status=$?
1488 cd "$ac_pwd" || { ac_status=$?; break; }
1489 done
1490 fi
1491
1492 test -n "$ac_init_help" && exit $ac_status
1493 if $ac_init_version; then
1494 cat <<\_ACEOF
1495 xman configure 1.1.3
1496 generated by GNU Autoconf 2.68
1497
1498 Copyright (C) 2010 Free Software Foundation, Inc.
1499 This configure script is free software; the Free Software Foundation
1500 gives unlimited permission to copy, distribute and modify it.
1501 _ACEOF
1502 exit
1503 fi
1504
1505 ## ------------------------ ##
1506 ## Autoconf initialization. ##
1507 ## ------------------------ ##
1508
1509 # ac_fn_c_try_compile LINENO
1510 # --------------------------
1511 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1512 ac_fn_c_try_compile ()
1513 {
1514 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1515 rm -f conftest.$ac_objext
1516 if { { ac_try="$ac_compile"
1517 case "(($ac_try" in
1518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519 *) ac_try_echo=$ac_try;;
1520 esac
1521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522 $as_echo "$ac_try_echo"; } >&5
1523 (eval "$ac_compile") 2>conftest.err
1524 ac_status=$?
1525 if test -s conftest.err; then
1526 grep -v '^ *+' conftest.err >conftest.er1
1527 cat conftest.er1 >&5
1528 mv -f conftest.er1 conftest.err
1529 fi
1530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531 test $ac_status = 0; } && {
1532 test -z "$ac_c_werror_flag" ||
1533 test ! -s conftest.err
1534 } && test -s conftest.$ac_objext; then :
1535 ac_retval=0
1536 else
1537 $as_echo "$as_me: failed program was:" >&5
1538 sed 's/^/| /' conftest.$ac_ext >&5
1539
1540 ac_retval=1
1541 fi
1542 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1543 as_fn_set_status $ac_retval
1544
1545 } # ac_fn_c_try_compile
1546
1547 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1548 # ---------------------------------------------
1549 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1550 # accordingly.
1551 ac_fn_c_check_decl ()
1552 {
1553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554 as_decl_name=`echo $2|sed 's/ *(.*//'`
1555 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1557 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1558 if eval \${$3+:} false; then :
1559 $as_echo_n "(cached) " >&6
1560 else
1561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1562 /* end confdefs.h. */
1563 $4
1564 int
1565 main ()
1566 {
1567 #ifndef $as_decl_name
1568 #ifdef __cplusplus
1569 (void) $as_decl_use;
1570 #else
1571 (void) $as_decl_name;
1572 #endif
1573 #endif
1574
1575 ;
1576 return 0;
1577 }
1578 _ACEOF
1579 if ac_fn_c_try_compile "$LINENO"; then :
1580 eval "$3=yes"
1581 else
1582 eval "$3=no"
1583 fi
1584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1585 fi
1586 eval ac_res=\$$3
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1588 $as_echo "$ac_res" >&6; }
1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590
1591 } # ac_fn_c_check_decl
1592
1593 # ac_fn_c_try_cpp LINENO
1594 # ----------------------
1595 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1596 ac_fn_c_try_cpp ()
1597 {
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 if { { ac_try="$ac_cpp conftest.$ac_ext"
1600 case "(($ac_try" in
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1603 esac
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1607 ac_status=$?
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1612 fi
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } > conftest.i && {
1615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1616 test ! -s conftest.err
1617 }; then :
1618 ac_retval=0
1619 else
1620 $as_echo "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.$ac_ext >&5
1622
1623 ac_retval=1
1624 fi
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626 as_fn_set_status $ac_retval
1627
1628 } # ac_fn_c_try_cpp
1629
1630 # ac_fn_c_try_run LINENO
1631 # ----------------------
1632 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1633 # that executables *can* be run.
1634 ac_fn_c_try_run ()
1635 {
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 if { { ac_try="$ac_link"
1638 case "(($ac_try" in
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1641 esac
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_link") 2>&5
1645 ac_status=$?
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1648 { { case "(($ac_try" in
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1651 esac
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 $as_echo "$ac_try_echo"; } >&5
1654 (eval "$ac_try") 2>&5
1655 ac_status=$?
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; }; }; then :
1658 ac_retval=0
1659 else
1660 $as_echo "$as_me: program exited with status $ac_status" >&5
1661 $as_echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1663
1664 ac_retval=$ac_status
1665 fi
1666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668 as_fn_set_status $ac_retval
1669
1670 } # ac_fn_c_try_run
1671
1672 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1673 # -------------------------------------------------------
1674 # Tests whether HEADER exists and can be compiled using the include files in
1675 # INCLUDES, setting the cache variable VAR accordingly.
1676 ac_fn_c_check_header_compile ()
1677 {
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 $as_echo_n "checking for $2... " >&6; }
1681 if eval \${$3+:} false; then :
1682 $as_echo_n "(cached) " >&6
1683 else
1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h. */
1686 $4
1687 #include <$2>
1688 _ACEOF
1689 if ac_fn_c_try_compile "$LINENO"; then :
1690 eval "$3=yes"
1691 else
1692 eval "$3=no"
1693 fi
1694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1695 fi
1696 eval ac_res=\$$3
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698 $as_echo "$ac_res" >&6; }
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700
1701 } # ac_fn_c_check_header_compile
1702
1703 # ac_fn_c_try_link LINENO
1704 # -----------------------
1705 # Try to link conftest.$ac_ext, and return whether this succeeded.
1706 ac_fn_c_try_link ()
1707 {
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 rm -f conftest.$ac_objext conftest$ac_exeext
1710 if { { ac_try="$ac_link"
1711 case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714 esac
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_link") 2>conftest.err
1718 ac_status=$?
1719 if test -s conftest.err; then
1720 grep -v '^ *+' conftest.err >conftest.er1
1721 cat conftest.er1 >&5
1722 mv -f conftest.er1 conftest.err
1723 fi
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } && {
1726 test -z "$ac_c_werror_flag" ||
1727 test ! -s conftest.err
1728 } && test -s conftest$ac_exeext && {
1729 test "$cross_compiling" = yes ||
1730 $as_test_x conftest$ac_exeext
1731 }; then :
1732 ac_retval=0
1733 else
1734 $as_echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.$ac_ext >&5
1736
1737 ac_retval=1
1738 fi
1739 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1740 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1741 # interfere with the next link command; also delete a directory that is
1742 # left behind by Apple's compiler. We do this before executing the actions.
1743 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 as_fn_set_status $ac_retval
1746
1747 } # ac_fn_c_try_link
1748
1749 # ac_fn_c_check_func LINENO FUNC VAR
1750 # ----------------------------------
1751 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1752 ac_fn_c_check_func ()
1753 {
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756 $as_echo_n "checking for $2... " >&6; }
1757 if eval \${$3+:} false; then :
1758 $as_echo_n "(cached) " >&6
1759 else
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1762 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1764 #define $2 innocuous_$2
1765
1766 /* System header to define __stub macros and hopefully few prototypes,
1767 which can conflict with char $2 (); below.
1768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1769 <limits.h> exists even on freestanding compilers. */
1770
1771 #ifdef __STDC__
1772 # include <limits.h>
1773 #else
1774 # include <assert.h>
1775 #endif
1776
1777 #undef $2
1778
1779 /* Override any GCC internal prototype to avoid an error.
1780 Use char because int might match the return type of a GCC
1781 builtin and then its argument prototype would still apply. */
1782 #ifdef __cplusplus
1783 extern "C"
1784 #endif
1785 char $2 ();
1786 /* The GNU C library defines this for functions which it implements
1787 to always fail with ENOSYS. Some functions are actually named
1788 something starting with __ and the normal name is an alias. */
1789 #if defined __stub_$2 || defined __stub___$2
1790 choke me
1791 #endif
1792
1793 int
1794 main ()
1795 {
1796 return $2 ();
1797 ;
1798 return 0;
1799 }
1800 _ACEOF
1801 if ac_fn_c_try_link "$LINENO"; then :
1802 eval "$3=yes"
1803 else
1804 eval "$3=no"
1805 fi
1806 rm -f core conftest.err conftest.$ac_objext \
1807 conftest$ac_exeext conftest.$ac_ext
1808 fi
1809 eval ac_res=\$$3
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813
1814 } # ac_fn_c_check_func
1815 cat >config.log <<_ACEOF
1816 This file contains any messages produced by compilers while
1817 running configure, to aid debugging if configure makes a mistake.
1818
1819 It was created by xman $as_me 1.1.3, which was
1820 generated by GNU Autoconf 2.68. Invocation command line was
1821
1822 $ $0 $@
1823
1824 _ACEOF
1825 exec 5>>config.log
1826 {
1827 cat <<_ASUNAME
1828 ## --------- ##
1829 ## Platform. ##
1830 ## --------- ##
1831
1832 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1833 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1834 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1835 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1836 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1837
1838 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1839 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1840
1841 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1842 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1843 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1844 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1845 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1846 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1847 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1848
1849 _ASUNAME
1850
1851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1852 for as_dir in $PATH
1853 do
1854 IFS=$as_save_IFS
1855 test -z "$as_dir" && as_dir=.
1856 $as_echo "PATH: $as_dir"
1857 done
1858 IFS=$as_save_IFS
1859
1860 } >&5
1861
1862 cat >&5 <<_ACEOF
1863
1864
1865 ## ----------- ##
1866 ## Core tests. ##
1867 ## ----------- ##
1868
1869 _ACEOF
1870
1871
1872 # Keep a trace of the command line.
1873 # Strip out --no-create and --no-recursion so they do not pile up.
1874 # Strip out --silent because we don't want to record it for future runs.
1875 # Also quote any args containing shell meta-characters.
1876 # Make two passes to allow for proper duplicate-argument suppression.
1877 ac_configure_args=
1878 ac_configure_args0=
1879 ac_configure_args1=
1880 ac_must_keep_next=false
1881 for ac_pass in 1 2
1882 do
1883 for ac_arg
1884 do
1885 case $ac_arg in
1886 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1887 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1888 | -silent | --silent | --silen | --sile | --sil)
1889 continue ;;
1890 *\'*)
1891 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1892 esac
1893 case $ac_pass in
1894 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1895 2)
1896 as_fn_append ac_configure_args1 " '$ac_arg'"
1897 if test $ac_must_keep_next = true; then
1898 ac_must_keep_next=false # Got value, back to normal.
1899 else
1900 case $ac_arg in
1901 *=* | --config-cache | -C | -disable-* | --disable-* \
1902 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1903 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1904 | -with-* | --with-* | -without-* | --without-* | --x)
1905 case "$ac_configure_args0 " in
1906 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1907 esac
1908 ;;
1909 -* ) ac_must_keep_next=true ;;
1910 esac
1911 fi
1912 as_fn_append ac_configure_args " '$ac_arg'"
1913 ;;
1914 esac
1915 done
1916 done
1917 { ac_configure_args0=; unset ac_configure_args0;}
1918 { ac_configure_args1=; unset ac_configure_args1;}
1919
1920 # When interrupted or exit'd, cleanup temporary files, and complete
1921 # config.log. We remove comments because anyway the quotes in there
1922 # would cause problems or look ugly.
1923 # WARNING: Use '\'' to represent an apostrophe within the trap.
1924 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1925 trap 'exit_status=$?
1926 # Save into config.log some information that might help in debugging.
1927 {
1928 echo
1929
1930 $as_echo "## ---------------- ##
1931 ## Cache variables. ##
1932 ## ---------------- ##"
1933 echo
1934 # The following way of writing the cache mishandles newlines in values,
1935 (
1936 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1937 eval ac_val=\$$ac_var
1938 case $ac_val in #(
1939 *${as_nl}*)
1940 case $ac_var in #(
1941 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1942 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1943 esac
1944 case $ac_var in #(
1945 _ | IFS | as_nl) ;; #(
1946 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1947 *) { eval $ac_var=; unset $ac_var;} ;;
1948 esac ;;
1949 esac
1950 done
1951 (set) 2>&1 |
1952 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1953 *${as_nl}ac_space=\ *)
1954 sed -n \
1955 "s/'\''/'\''\\\\'\'''\''/g;
1956 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1957 ;; #(
1958 *)
1959 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1960 ;;
1961 esac |
1962 sort
1963 )
1964 echo
1965
1966 $as_echo "## ----------------- ##
1967 ## Output variables. ##
1968 ## ----------------- ##"
1969 echo
1970 for ac_var in $ac_subst_vars
1971 do
1972 eval ac_val=\$$ac_var
1973 case $ac_val in
1974 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1975 esac
1976 $as_echo "$ac_var='\''$ac_val'\''"
1977 done | sort
1978 echo
1979
1980 if test -n "$ac_subst_files"; then
1981 $as_echo "## ------------------- ##
1982 ## File substitutions. ##
1983 ## ------------------- ##"
1984 echo
1985 for ac_var in $ac_subst_files
1986 do
1987 eval ac_val=\$$ac_var
1988 case $ac_val in
1989 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1990 esac
1991 $as_echo "$ac_var='\''$ac_val'\''"
1992 done | sort
1993 echo
1994 fi
1995
1996 if test -s confdefs.h; then
1997 $as_echo "## ----------- ##
1998 ## confdefs.h. ##
1999 ## ----------- ##"
2000 echo
2001 cat confdefs.h
2002 echo
2003 fi
2004 test "$ac_signal" != 0 &&
2005 $as_echo "$as_me: caught signal $ac_signal"
2006 $as_echo "$as_me: exit $exit_status"
2007 } >&5
2008 rm -f core *.core core.conftest.* &&
2009 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2010 exit $exit_status
2011 ' 0
2012 for ac_signal in 1 2 13 15; do
2013 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2014 done
2015 ac_signal=0
2016
2017 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2018 rm -f -r conftest* confdefs.h
2019
2020 $as_echo "/* confdefs.h */" > confdefs.h
2021
2022 # Predefined preprocessor variables.
2023
2024 cat >>confdefs.h <<_ACEOF
2025 #define PACKAGE_NAME "$PACKAGE_NAME"
2026 _ACEOF
2027
2028 cat >>confdefs.h <<_ACEOF
2029 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2030 _ACEOF
2031
2032 cat >>confdefs.h <<_ACEOF
2033 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2034 _ACEOF
2035
2036 cat >>confdefs.h <<_ACEOF
2037 #define PACKAGE_STRING "$PACKAGE_STRING"
2038 _ACEOF
2039
2040 cat >>confdefs.h <<_ACEOF
2041 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2042 _ACEOF
2043
2044 cat >>confdefs.h <<_ACEOF
2045 #define PACKAGE_URL "$PACKAGE_URL"
2046 _ACEOF
2047
2048
2049 # Let the site file select an alternate cache file if it wants to.
2050 # Prefer an explicitly selected file to automatically selected ones.
2051 ac_site_file1=NONE
2052 ac_site_file2=NONE
2053 if test -n "$CONFIG_SITE"; then
2054 # We do not want a PATH search for config.site.
2055 case $CONFIG_SITE in #((
2056 -*) ac_site_file1=./$CONFIG_SITE;;
2057 */*) ac_site_file1=$CONFIG_SITE;;
2058 *) ac_site_file1=./$CONFIG_SITE;;
2059 esac
2060 elif test "x$prefix" != xNONE; then
2061 ac_site_file1=$prefix/share/config.site
2062 ac_site_file2=$prefix/etc/config.site
2063 else
2064 ac_site_file1=$ac_default_prefix/share/config.site
2065 ac_site_file2=$ac_default_prefix/etc/config.site
2066 fi
2067 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2068 do
2069 test "x$ac_site_file" = xNONE && continue
2070 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2072 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2073 sed 's/^/| /' "$ac_site_file" >&5
2074 . "$ac_site_file" \
2075 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2077 as_fn_error $? "failed to load site script $ac_site_file
2078 See \`config.log' for more details" "$LINENO" 5; }
2079 fi
2080 done
2081
2082 if test -r "$cache_file"; then
2083 # Some versions of bash will fail to source /dev/null (special files
2084 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2085 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2087 $as_echo "$as_me: loading cache $cache_file" >&6;}
2088 case $cache_file in
2089 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2090 *) . "./$cache_file";;
2091 esac
2092 fi
2093 else
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2095 $as_echo "$as_me: creating cache $cache_file" >&6;}
2096 >$cache_file
2097 fi
2098
2099 # Check that the precious variables saved in the cache have kept the same
2100 # value.
2101 ac_cache_corrupted=false
2102 for ac_var in $ac_precious_vars; do
2103 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2104 eval ac_new_set=\$ac_env_${ac_var}_set
2105 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2106 eval ac_new_val=\$ac_env_${ac_var}_value
2107 case $ac_old_set,$ac_new_set in
2108 set,)
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2110 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2111 ac_cache_corrupted=: ;;
2112 ,set)
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2114 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2115 ac_cache_corrupted=: ;;
2116 ,);;
2117 *)
2118 if test "x$ac_old_val" != "x$ac_new_val"; then
2119 # differences in whitespace do not lead to failure.
2120 ac_old_val_w=`echo x $ac_old_val`
2121 ac_new_val_w=`echo x $ac_new_val`
2122 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2124 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2125 ac_cache_corrupted=:
2126 else
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2128 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2129 eval $ac_var=\$ac_old_val
2130 fi
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2132 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2134 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2135 fi;;
2136 esac
2137 # Pass precious variables to config.status.
2138 if test "$ac_new_set" = set; then
2139 case $ac_new_val in
2140 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2141 *) ac_arg=$ac_var=$ac_new_val ;;
2142 esac
2143 case " $ac_configure_args " in
2144 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2145 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2146 esac
2147 fi
2148 done
2149 if $ac_cache_corrupted; then
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2153 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2154 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2155 fi
2156 ## -------------------- ##
2157 ## Main body of script. ##
2158 ## -------------------- ##
2159
2160 ac_ext=c
2161 ac_cpp='$CPP $CPPFLAGS'
2162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2165
2166
2167 am__api_version='1.14'
2168
2169 ac_aux_dir=
2170 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2171 if test -f "$ac_dir/install-sh"; then
2172 ac_aux_dir=$ac_dir
2173 ac_install_sh="$ac_aux_dir/install-sh -c"
2174 break
2175 elif test -f "$ac_dir/install.sh"; then
2176 ac_aux_dir=$ac_dir
2177 ac_install_sh="$ac_aux_dir/install.sh -c"
2178 break
2179 elif test -f "$ac_dir/shtool"; then
2180 ac_aux_dir=$ac_dir
2181 ac_install_sh="$ac_aux_dir/shtool install -c"
2182 break
2183 fi
2184 done
2185 if test -z "$ac_aux_dir"; then
2186 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2187 fi
2188
2189 # These three variables are undocumented and unsupported,
2190 # and are intended to be withdrawn in a future Autoconf release.
2191 # They can cause serious problems if a builder's source tree is in a directory
2192 # whose full name contains unusual characters.
2193 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2194 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2195 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2196
2197
2198 # Find a good install program. We prefer a C program (faster),
2199 # so one script is as good as another. But avoid the broken or
2200 # incompatible versions:
2201 # SysV /etc/install, /usr/sbin/install
2202 # SunOS /usr/etc/install
2203 # IRIX /sbin/install
2204 # AIX /bin/install
2205 # AmigaOS /C/install, which installs bootblocks on floppy discs
2206 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2207 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2208 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2209 # OS/2's system install, which has a completely different semantic
2210 # ./install, which can be erroneously created by make from ./install.sh.
2211 # Reject install programs that cannot install multiple files.
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2213 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2214 if test -z "$INSTALL"; then
2215 if ${ac_cv_path_install+:} false; then :
2216 $as_echo_n "(cached) " >&6
2217 else
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 for as_dir in $PATH
2220 do
2221 IFS=$as_save_IFS
2222 test -z "$as_dir" && as_dir=.
2223 # Account for people who put trailing slashes in PATH elements.
2224 case $as_dir/ in #((
2225 ./ | .// | /[cC]/* | \
2226 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2227 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2228 /usr/ucb/* ) ;;
2229 *)
2230 # OSF1 and SCO ODT 3.0 have their own names for install.
2231 # Don't use installbsd from OSF since it installs stuff as root
2232 # by default.
2233 for ac_prog in ginstall scoinst install; do
2234 for ac_exec_ext in '' $ac_executable_extensions; do
2235 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2236 if test $ac_prog = install &&
2237 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2238 # AIX install. It has an incompatible calling convention.
2239 :
2240 elif test $ac_prog = install &&
2241 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2242 # program-specific install script used by HP pwplus--don't use.
2243 :
2244 else
2245 rm -rf conftest.one conftest.two conftest.dir
2246 echo one > conftest.one
2247 echo two > conftest.two
2248 mkdir conftest.dir
2249 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2250 test -s conftest.one && test -s conftest.two &&
2251 test -s conftest.dir/conftest.one &&
2252 test -s conftest.dir/conftest.two
2253 then
2254 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2255 break 3
2256 fi
2257 fi
2258 fi
2259 done
2260 done
2261 ;;
2262 esac
2263
2264 done
2265 IFS=$as_save_IFS
2266
2267 rm -rf conftest.one conftest.two conftest.dir
2268
2269 fi
2270 if test "${ac_cv_path_install+set}" = set; then
2271 INSTALL=$ac_cv_path_install
2272 else
2273 # As a last resort, use the slow shell script. Don't cache a
2274 # value for INSTALL within a source directory, because that will
2275 # break other packages using the cache if that directory is
2276 # removed, or if the value is a relative name.
2277 INSTALL=$ac_install_sh
2278 fi
2279 fi
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2281 $as_echo "$INSTALL" >&6; }
2282
2283 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2284 # It thinks the first close brace ends the variable substitution.
2285 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2286
2287 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2288
2289 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2290
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2292 $as_echo_n "checking whether build environment is sane... " >&6; }
2293 # Reject unsafe characters in $srcdir or the absolute working directory
2294 # name. Accept space and tab only in the latter.
2295 am_lf='
2296 '
2297 case `pwd` in
2298 *[\\\"\#\$\&\'\`$am_lf]*)
2299 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2300 esac
2301 case $srcdir in
2302 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2303 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2304 esac
2305
2306 # Do 'set' in a subshell so we don't clobber the current shell's
2307 # arguments. Must try -L first in case configure is actually a
2308 # symlink; some systems play weird games with the mod time of symlinks
2309 # (eg FreeBSD returns the mod time of the symlink's containing
2310 # directory).
2311 if (
2312 am_has_slept=no
2313 for am_try in 1 2; do
2314 echo "timestamp, slept: $am_has_slept" > conftest.file
2315 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2316 if test "$*" = "X"; then
2317 # -L didn't work.
2318 set X `ls -t "$srcdir/configure" conftest.file`
2319 fi
2320 if test "$*" != "X $srcdir/configure conftest.file" \
2321 && test "$*" != "X conftest.file $srcdir/configure"; then
2322
2323 # If neither matched, then we have a broken ls. This can happen
2324 # if, for instance, CONFIG_SHELL is bash and it inherits a
2325 # broken ls alias from the environment. This has actually
2326 # happened. Such a system could not be considered "sane".
2327 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2328 alias in your environment" "$LINENO" 5
2329 fi
2330 if test "$2" = conftest.file || test $am_try -eq 2; then
2331 break
2332 fi
2333 # Just in case.
2334 sleep 1
2335 am_has_slept=yes
2336 done
2337 test "$2" = conftest.file
2338 )
2339 then
2340 # Ok.
2341 :
2342 else
2343 as_fn_error $? "newly created file is older than distributed files!
2344 Check your system clock" "$LINENO" 5
2345 fi
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2347 $as_echo "yes" >&6; }
2348 # If we didn't sleep, we still need to ensure time stamps of config.status and
2349 # generated files are strictly newer.
2350 am_sleep_pid=
2351 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2352 ( sleep 1 ) &
2353 am_sleep_pid=$!
2354 fi
2355
2356 rm -f conftest.file
2357
2358 test "$program_prefix" != NONE &&
2359 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2360 # Use a double $ so make ignores it.
2361 test "$program_suffix" != NONE &&
2362 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2363 # Double any \ or $.
2364 # By default was `s,x,x', remove it if useless.
2365 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2366 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2367
2368 # expand $ac_aux_dir to an absolute path
2369 am_aux_dir=`cd $ac_aux_dir && pwd`
2370
2371 if test x"${MISSING+set}" != xset; then
2372 case $am_aux_dir in
2373 *\ * | *\ *)
2374 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2375 *)
2376 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2377 esac
2378 fi
2379 # Use eval to expand $SHELL
2380 if eval "$MISSING --is-lightweight"; then
2381 am_missing_run="$MISSING "
2382 else
2383 am_missing_run=
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2385 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2386 fi
2387
2388 if test x"${install_sh}" != xset; then
2389 case $am_aux_dir in
2390 *\ * | *\ *)
2391 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2392 *)
2393 install_sh="\${SHELL} $am_aux_dir/install-sh"
2394 esac
2395 fi
2396
2397 # Installed binaries are usually stripped using 'strip' when the user
2398 # run "make install-strip". However 'strip' might not be the right
2399 # tool to use in cross-compilation environments, therefore Automake
2400 # will honor the 'STRIP' environment variable to overrule this program.
2401 if test "$cross_compiling" != no; then
2402 if test -n "$ac_tool_prefix"; then
2403 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2404 set dummy ${ac_tool_prefix}strip; ac_word=$2
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2406 $as_echo_n "checking for $ac_word... " >&6; }
2407 if ${ac_cv_prog_STRIP+:} false; then :
2408 $as_echo_n "(cached) " >&6
2409 else
2410 if test -n "$STRIP"; then
2411 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2412 else
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 for as_dir in $PATH
2415 do
2416 IFS=$as_save_IFS
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2420 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2422 break 2
2423 fi
2424 done
2425 done
2426 IFS=$as_save_IFS
2427
2428 fi
2429 fi
2430 STRIP=$ac_cv_prog_STRIP
2431 if test -n "$STRIP"; then
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2433 $as_echo "$STRIP" >&6; }
2434 else
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2436 $as_echo "no" >&6; }
2437 fi
2438
2439
2440 fi
2441 if test -z "$ac_cv_prog_STRIP"; then
2442 ac_ct_STRIP=$STRIP
2443 # Extract the first word of "strip", so it can be a program name with args.
2444 set dummy strip; ac_word=$2
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2446 $as_echo_n "checking for $ac_word... " >&6; }
2447 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2448 $as_echo_n "(cached) " >&6
2449 else
2450 if test -n "$ac_ct_STRIP"; then
2451 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2452 else
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 for as_dir in $PATH
2455 do
2456 IFS=$as_save_IFS
2457 test -z "$as_dir" && as_dir=.
2458 for ac_exec_ext in '' $ac_executable_extensions; do
2459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2460 ac_cv_prog_ac_ct_STRIP="strip"
2461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2462 break 2
2463 fi
2464 done
2465 done
2466 IFS=$as_save_IFS
2467
2468 fi
2469 fi
2470 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2471 if test -n "$ac_ct_STRIP"; then
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2473 $as_echo "$ac_ct_STRIP" >&6; }
2474 else
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2476 $as_echo "no" >&6; }
2477 fi
2478
2479 if test "x$ac_ct_STRIP" = x; then
2480 STRIP=":"
2481 else
2482 case $cross_compiling:$ac_tool_warned in
2483 yes:)
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2486 ac_tool_warned=yes ;;
2487 esac
2488 STRIP=$ac_ct_STRIP
2489 fi
2490 else
2491 STRIP="$ac_cv_prog_STRIP"
2492 fi
2493
2494 fi
2495 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2496
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2498 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2499 if test -z "$MKDIR_P"; then
2500 if ${ac_cv_path_mkdir+:} false; then :
2501 $as_echo_n "(cached) " >&6
2502 else
2503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2505 do
2506 IFS=$as_save_IFS
2507 test -z "$as_dir" && as_dir=.
2508 for ac_prog in mkdir gmkdir; do
2509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2511 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2512 'mkdir (GNU coreutils) '* | \
2513 'mkdir (coreutils) '* | \
2514 'mkdir (fileutils) '4.1*)
2515 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2516 break 3;;
2517 esac
2518 done
2519 done
2520 done
2521 IFS=$as_save_IFS
2522
2523 fi
2524
2525 test -d ./--version && rmdir ./--version
2526 if test "${ac_cv_path_mkdir+set}" = set; then
2527 MKDIR_P="$ac_cv_path_mkdir -p"
2528 else
2529 # As a last resort, use the slow shell script. Don't cache a
2530 # value for MKDIR_P within a source directory, because that will
2531 # break other packages using the cache if that directory is
2532 # removed, or if the value is a relative name.
2533 MKDIR_P="$ac_install_sh -d"
2534 fi
2535 fi
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2537 $as_echo "$MKDIR_P" >&6; }
2538
2539 for ac_prog in gawk mawk nawk awk
2540 do
2541 # Extract the first word of "$ac_prog", so it can be a program name with args.
2542 set dummy $ac_prog; ac_word=$2
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2544 $as_echo_n "checking for $ac_word... " >&6; }
2545 if ${ac_cv_prog_AWK+:} false; then :
2546 $as_echo_n "(cached) " >&6
2547 else
2548 if test -n "$AWK"; then
2549 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2550 else
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 for as_dir in $PATH
2553 do
2554 IFS=$as_save_IFS
2555 test -z "$as_dir" && as_dir=.
2556 for ac_exec_ext in '' $ac_executable_extensions; do
2557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2558 ac_cv_prog_AWK="$ac_prog"
2559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 break 2
2561 fi
2562 done
2563 done
2564 IFS=$as_save_IFS
2565
2566 fi
2567 fi
2568 AWK=$ac_cv_prog_AWK
2569 if test -n "$AWK"; then
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2571 $as_echo "$AWK" >&6; }
2572 else
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2574 $as_echo "no" >&6; }
2575 fi
2576
2577
2578 test -n "$AWK" && break
2579 done
2580
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2582 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2583 set x ${MAKE-make}
2584 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2585 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2586 $as_echo_n "(cached) " >&6
2587 else
2588 cat >conftest.make <<\_ACEOF
2589 SHELL = /bin/sh
2590 all:
2591 @echo '@@@%%%=$(MAKE)=@@@%%%'
2592 _ACEOF
2593 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2594 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2595 *@@@%%%=?*=@@@%%%*)
2596 eval ac_cv_prog_make_${ac_make}_set=yes;;
2597 *)
2598 eval ac_cv_prog_make_${ac_make}_set=no;;
2599 esac
2600 rm -f conftest.make
2601 fi
2602 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2604 $as_echo "yes" >&6; }
2605 SET_MAKE=
2606 else
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2608 $as_echo "no" >&6; }
2609 SET_MAKE="MAKE=${MAKE-make}"
2610 fi
2611
2612 rm -rf .tst 2>/dev/null
2613 mkdir .tst 2>/dev/null
2614 if test -d .tst; then
2615 am__leading_dot=.
2616 else
2617 am__leading_dot=_
2618 fi
2619 rmdir .tst 2>/dev/null
2620
2621 # Check whether --enable-silent-rules was given.
2622 if test "${enable_silent_rules+set}" = set; then :
2623 enableval=$enable_silent_rules;
2624 fi
2625
2626 case $enable_silent_rules in # (((
2627 yes) AM_DEFAULT_VERBOSITY=0;;
2628 no) AM_DEFAULT_VERBOSITY=1;;
2629 *) AM_DEFAULT_VERBOSITY=1;;
2630 esac
2631 am_make=${MAKE-make}
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2633 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2634 if ${am_cv_make_support_nested_variables+:} false; then :
2635 $as_echo_n "(cached) " >&6
2636 else
2637 if $as_echo 'TRUE=$(BAR$(V))
2638 BAR0=false
2639 BAR1=true
2640 V=1
2641 am__doit:
2642 @$(TRUE)
2643 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2644 am_cv_make_support_nested_variables=yes
2645 else
2646 am_cv_make_support_nested_variables=no
2647 fi
2648 fi
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2650 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2651 if test $am_cv_make_support_nested_variables = yes; then
2652 AM_V='$(V)'
2653 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2654 else
2655 AM_V=$AM_DEFAULT_VERBOSITY
2656 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2657 fi
2658 AM_BACKSLASH='\'
2659
2660 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2661 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2662 # is not polluted with repeated "-I."
2663 am__isrc=' -I$(srcdir)'
2664 # test to see if srcdir already configured
2665 if test -f $srcdir/config.status; then
2666 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2667 fi
2668 fi
2669
2670 # test whether we have cygpath
2671 if test -z "$CYGPATH_W"; then
2672 if (cygpath --version) >/dev/null 2>/dev/null; then
2673 CYGPATH_W='cygpath -w'
2674 else
2675 CYGPATH_W=echo
2676 fi
2677 fi
2678
2679
2680 # Define the identity of the package.
2681 PACKAGE='xman'
2682 VERSION='1.1.3'
2683
2684
2685 cat >>confdefs.h <<_ACEOF
2686 #define PACKAGE "$PACKAGE"
2687 _ACEOF
2688
2689
2690 cat >>confdefs.h <<_ACEOF
2691 #define VERSION "$VERSION"
2692 _ACEOF
2693
2694 # Some tools Automake needs.
2695
2696 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2697
2698
2699 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2700
2701
2702 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2703
2704
2705 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2706
2707
2708 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2709
2710 # For better backward compatibility. To be removed once Automake 1.9.x
2711 # dies out for good. For more background, see:
2712 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2713 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2714 mkdir_p='$(MKDIR_P)'
2715
2716 # We need awk for the "check" target. The system "awk" is bad on
2717 # some platforms.
2718 # Always define AMTAR for backward compatibility. Yes, it's still used
2719 # in the wild :-( We should find a proper way to deprecate it ...
2720 AMTAR='$${TAR-tar}'
2721
2722
2723 # We'll loop over all known methods to create a tar archive until one works.
2724 _am_tools='gnutar pax cpio none'
2725
2726 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2727
2728
2729
2730
2731
2732
2733 # POSIX will say in a future version that running "rm -f" with no argument
2734 # is OK; and we want to be able to make that assumption in our Makefile
2735 # recipes. So use an aggressive probe to check that the usage we want is
2736 # actually supported "in the wild" to an acceptable degree.
2737 # See automake bug#10828.
2738 # To make any issue more visible, cause the running configure to be aborted
2739 # by default if the 'rm' program in use doesn't match our expectations; the
2740 # user can still override this though.
2741 if rm -f && rm -fr && rm -rf; then : OK; else
2742 cat >&2 <<'END'
2743 Oops!
2744
2745 Your 'rm' program seems unable to run without file operands specified
2746 on the command line, even when the '-f' option is present. This is contrary
2747 to the behaviour of most rm programs out there, and not conforming with
2748 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2749
2750 Please tell bug-automake@gnu.org about your system, including the value
2751 of your $PATH and any error possibly output before this message. This
2752 can help us improve future automake versions.
2753
2754 END
2755 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2756 echo 'Configuration will proceed anyway, since you have set the' >&2
2757 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2758 echo >&2
2759 else
2760 cat >&2 <<'END'
2761 Aborting the configuration process, to ensure you take notice of the issue.
2762
2763 You can download and install GNU coreutils to get an 'rm' implementation
2764 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2765
2766 If you want to complete the configuration process using your problematic
2767 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2768 to "yes", and re-run configure.
2769
2770 END
2771 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2772 fi
2773 fi
2774
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2776 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2777 # Check whether --enable-maintainer-mode was given.
2778 if test "${enable_maintainer_mode+set}" = set; then :
2779 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2780 else
2781 USE_MAINTAINER_MODE=no
2782 fi
2783
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2785 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2786 if test $USE_MAINTAINER_MODE = yes; then
2787 MAINTAINER_MODE_TRUE=
2788 MAINTAINER_MODE_FALSE='#'
2789 else
2790 MAINTAINER_MODE_TRUE='#'
2791 MAINTAINER_MODE_FALSE=
2792 fi
2793
2794 MAINT=$MAINTAINER_MODE_TRUE
2795
2796
2797
2798 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810 DEPDIR="${am__leading_dot}deps"
2811
2812 ac_config_commands="$ac_config_commands depfiles"
2813
2814
2815 am_make=${MAKE-make}
2816 cat > confinc << 'END'
2817 am__doit:
2818 @echo this is the am__doit target
2819 .PHONY: am__doit
2820 END
2821 # If we don't find an include directive, just comment out the code.
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2823 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2824 am__include="#"
2825 am__quote=
2826 _am_result=none
2827 # First try GNU make style include.
2828 echo "include confinc" > confmf
2829 # Ignore all kinds of additional output from 'make'.
2830 case `$am_make -s -f confmf 2> /dev/null` in #(
2831 *the\ am__doit\ target*)
2832 am__include=include
2833 am__quote=
2834 _am_result=GNU
2835 ;;
2836 esac
2837 # Now try BSD make style include.
2838 if test "$am__include" = "#"; then
2839 echo '.include "confinc"' > confmf
2840 case `$am_make -s -f confmf 2> /dev/null` in #(
2841 *the\ am__doit\ target*)
2842 am__include=.include
2843 am__quote="\""
2844 _am_result=BSD
2845 ;;
2846 esac
2847 fi
2848
2849
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2851 $as_echo "$_am_result" >&6; }
2852 rm -f confinc confmf
2853
2854 # Check whether --enable-dependency-tracking was given.
2855 if test "${enable_dependency_tracking+set}" = set; then :
2856 enableval=$enable_dependency_tracking;
2857 fi
2858
2859 if test "x$enable_dependency_tracking" != xno; then
2860 am_depcomp="$ac_aux_dir/depcomp"
2861 AMDEPBACKSLASH='\'
2862 am__nodep='_no'
2863 fi
2864 if test "x$enable_dependency_tracking" != xno; then
2865 AMDEP_TRUE=
2866 AMDEP_FALSE='#'
2867 else
2868 AMDEP_TRUE='#'
2869 AMDEP_FALSE=
2870 fi
2871
2872
2873 ac_ext=c
2874 ac_cpp='$CPP $CPPFLAGS'
2875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2878 if test -n "$ac_tool_prefix"; then
2879 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2880 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882 $as_echo_n "checking for $ac_word... " >&6; }
2883 if ${ac_cv_prog_CC+:} false; then :
2884 $as_echo_n "(cached) " >&6
2885 else
2886 if test -n "$CC"; then
2887 ac_cv_prog_CC="$CC" # Let the user override the test.
2888 else
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 for as_dir in $PATH
2891 do
2892 IFS=$as_save_IFS
2893 test -z "$as_dir" && as_dir=.
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898 break 2
2899 fi
2900 done
2901 done
2902 IFS=$as_save_IFS
2903
2904 fi
2905 fi
2906 CC=$ac_cv_prog_CC
2907 if test -n "$CC"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2909 $as_echo "$CC" >&6; }
2910 else
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2913 fi
2914
2915
2916 fi
2917 if test -z "$ac_cv_prog_CC"; then
2918 ac_ct_CC=$CC
2919 # Extract the first word of "gcc", so it can be a program name with args.
2920 set dummy gcc; ac_word=$2
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2922 $as_echo_n "checking for $ac_word... " >&6; }
2923 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2924 $as_echo_n "(cached) " >&6
2925 else
2926 if test -n "$ac_ct_CC"; then
2927 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2928 else
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 for as_dir in $PATH
2931 do
2932 IFS=$as_save_IFS
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2936 ac_cv_prog_ac_ct_CC="gcc"
2937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 break 2
2939 fi
2940 done
2941 done
2942 IFS=$as_save_IFS
2943
2944 fi
2945 fi
2946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2947 if test -n "$ac_ct_CC"; then
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2949 $as_echo "$ac_ct_CC" >&6; }
2950 else
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952 $as_echo "no" >&6; }
2953 fi
2954
2955 if test "x$ac_ct_CC" = x; then
2956 CC=""
2957 else
2958 case $cross_compiling:$ac_tool_warned in
2959 yes:)
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2962 ac_tool_warned=yes ;;
2963 esac
2964 CC=$ac_ct_CC
2965 fi
2966 else
2967 CC="$ac_cv_prog_CC"
2968 fi
2969
2970 if test -z "$CC"; then
2971 if test -n "$ac_tool_prefix"; then
2972 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2973 set dummy ${ac_tool_prefix}cc; ac_word=$2
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975 $as_echo_n "checking for $ac_word... " >&6; }
2976 if ${ac_cv_prog_CC+:} false; then :
2977 $as_echo_n "(cached) " >&6
2978 else
2979 if test -n "$CC"; then
2980 ac_cv_prog_CC="$CC" # Let the user override the test.
2981 else
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 for as_dir in $PATH
2984 do
2985 IFS=$as_save_IFS
2986 test -z "$as_dir" && as_dir=.
2987 for ac_exec_ext in '' $ac_executable_extensions; do
2988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2989 ac_cv_prog_CC="${ac_tool_prefix}cc"
2990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2991 break 2
2992 fi
2993 done
2994 done
2995 IFS=$as_save_IFS
2996
2997 fi
2998 fi
2999 CC=$ac_cv_prog_CC
3000 if test -n "$CC"; then
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3002 $as_echo "$CC" >&6; }
3003 else
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005 $as_echo "no" >&6; }
3006 fi
3007
3008
3009 fi
3010 fi
3011 if test -z "$CC"; then
3012 # Extract the first word of "cc", so it can be a program name with args.
3013 set dummy cc; ac_word=$2
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015 $as_echo_n "checking for $ac_word... " >&6; }
3016 if ${ac_cv_prog_CC+:} false; then :
3017 $as_echo_n "(cached) " >&6
3018 else
3019 if test -n "$CC"; then
3020 ac_cv_prog_CC="$CC" # Let the user override the test.
3021 else
3022 ac_prog_rejected=no
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024 for as_dir in $PATH
3025 do
3026 IFS=$as_save_IFS
3027 test -z "$as_dir" && as_dir=.
3028 for ac_exec_ext in '' $ac_executable_extensions; do
3029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3030 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3031 ac_prog_rejected=yes
3032 continue
3033 fi
3034 ac_cv_prog_CC="cc"
3035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3036 break 2
3037 fi
3038 done
3039 done
3040 IFS=$as_save_IFS
3041
3042 if test $ac_prog_rejected = yes; then
3043 # We found a bogon in the path, so make sure we never use it.
3044 set dummy $ac_cv_prog_CC
3045 shift
3046 if test $# != 0; then
3047 # We chose a different compiler from the bogus one.
3048 # However, it has the same basename, so the bogon will be chosen
3049 # first if we set CC to just the basename; use the full file name.
3050 shift
3051 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3052 fi
3053 fi
3054 fi
3055 fi
3056 CC=$ac_cv_prog_CC
3057 if test -n "$CC"; then
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3059 $as_echo "$CC" >&6; }
3060 else
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 $as_echo "no" >&6; }
3063 fi
3064
3065
3066 fi
3067 if test -z "$CC"; then
3068 if test -n "$ac_tool_prefix"; then
3069 for ac_prog in cl.exe
3070 do
3071 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3072 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074 $as_echo_n "checking for $ac_word... " >&6; }
3075 if ${ac_cv_prog_CC+:} false; then :
3076 $as_echo_n "(cached) " >&6
3077 else
3078 if test -n "$CC"; then
3079 ac_cv_prog_CC="$CC" # Let the user override the test.
3080 else
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3083 do
3084 IFS=$as_save_IFS
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3088 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 break 2
3091 fi
3092 done
3093 done
3094 IFS=$as_save_IFS
3095
3096 fi
3097 fi
3098 CC=$ac_cv_prog_CC
3099 if test -n "$CC"; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3101 $as_echo "$CC" >&6; }
3102 else
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3105 fi
3106
3107
3108 test -n "$CC" && break
3109 done
3110 fi
3111 if test -z "$CC"; then
3112 ac_ct_CC=$CC
3113 for ac_prog in cl.exe
3114 do
3115 # Extract the first word of "$ac_prog", so it can be a program name with args.
3116 set dummy $ac_prog; ac_word=$2
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118 $as_echo_n "checking for $ac_word... " >&6; }
3119 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3120 $as_echo_n "(cached) " >&6
3121 else
3122 if test -n "$ac_ct_CC"; then
3123 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3124 else
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 for as_dir in $PATH
3127 do
3128 IFS=$as_save_IFS
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3132 ac_cv_prog_ac_ct_CC="$ac_prog"
3133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 break 2
3135 fi
3136 done
3137 done
3138 IFS=$as_save_IFS
3139
3140 fi
3141 fi
3142 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3143 if test -n "$ac_ct_CC"; then
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3145 $as_echo "$ac_ct_CC" >&6; }
3146 else
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 $as_echo "no" >&6; }
3149 fi
3150
3151
3152 test -n "$ac_ct_CC" && break
3153 done
3154
3155 if test "x$ac_ct_CC" = x; then
3156 CC=""
3157 else
3158 case $cross_compiling:$ac_tool_warned in
3159 yes:)
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3162 ac_tool_warned=yes ;;
3163 esac
3164 CC=$ac_ct_CC
3165 fi
3166 fi
3167
3168 fi
3169
3170
3171 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3173 as_fn_error $? "no acceptable C compiler found in \$PATH
3174 See \`config.log' for more details" "$LINENO" 5; }
3175
3176 # Provide some information about the compiler.
3177 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3178 set X $ac_compile
3179 ac_compiler=$2
3180 for ac_option in --version -v -V -qversion; do
3181 { { ac_try="$ac_compiler $ac_option >&5"
3182 case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185 esac
3186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3187 $as_echo "$ac_try_echo"; } >&5
3188 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3189 ac_status=$?
3190 if test -s conftest.err; then
3191 sed '10a\
3192 ... rest of stderr output deleted ...
3193 10q' conftest.err >conftest.er1
3194 cat conftest.er1 >&5
3195 fi
3196 rm -f conftest.er1 conftest.err
3197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3198 test $ac_status = 0; }
3199 done
3200
3201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3202 /* end confdefs.h. */
3203
3204 int
3205 main ()
3206 {
3207
3208 ;
3209 return 0;
3210 }
3211 _ACEOF
3212 ac_clean_files_save=$ac_clean_files
3213 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3214 # Try to create an executable without -o first, disregard a.out.
3215 # It will help us diagnose broken compilers, and finding out an intuition
3216 # of exeext.
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3218 $as_echo_n "checking whether the C compiler works... " >&6; }
3219 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3220
3221 # The possible output files:
3222 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3223
3224 ac_rmfiles=
3225 for ac_file in $ac_files
3226 do
3227 case $ac_file in
3228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3229 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3230 esac
3231 done
3232 rm -f $ac_rmfiles
3233
3234 if { { ac_try="$ac_link_default"
3235 case "(($ac_try" in
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3238 esac
3239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3240 $as_echo "$ac_try_echo"; } >&5
3241 (eval "$ac_link_default") 2>&5
3242 ac_status=$?
3243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3244 test $ac_status = 0; }; then :
3245 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3246 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3247 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3248 # so that the user can short-circuit this test for compilers unknown to
3249 # Autoconf.
3250 for ac_file in $ac_files ''
3251 do
3252 test -f "$ac_file" || continue
3253 case $ac_file in
3254 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3255 ;;
3256 [ab].out )
3257 # We found the default executable, but exeext='' is most
3258 # certainly right.
3259 break;;
3260 *.* )
3261 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3262 then :; else
3263 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3264 fi
3265 # We set ac_cv_exeext here because the later test for it is not
3266 # safe: cross compilers may not add the suffix if given an `-o'
3267 # argument, so we may need to know it at that point already.
3268 # Even if this section looks crufty: it has the advantage of
3269 # actually working.
3270 break;;
3271 * )
3272 break;;
3273 esac
3274 done
3275 test "$ac_cv_exeext" = no && ac_cv_exeext=
3276
3277 else
3278 ac_file=''
3279 fi
3280 if test -z "$ac_file"; then :
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3283 $as_echo "$as_me: failed program was:" >&5
3284 sed 's/^/| /' conftest.$ac_ext >&5
3285
3286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3288 as_fn_error 77 "C compiler cannot create executables
3289 See \`config.log' for more details" "$LINENO" 5; }
3290 else
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3292 $as_echo "yes" >&6; }
3293 fi
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3295 $as_echo_n "checking for C compiler default output file name... " >&6; }
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3297 $as_echo "$ac_file" >&6; }
3298 ac_exeext=$ac_cv_exeext
3299
3300 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3301 ac_clean_files=$ac_clean_files_save
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3303 $as_echo_n "checking for suffix of executables... " >&6; }
3304 if { { ac_try="$ac_link"
3305 case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308 esac
3309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310 $as_echo "$ac_try_echo"; } >&5
3311 (eval "$ac_link") 2>&5
3312 ac_status=$?
3313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314 test $ac_status = 0; }; then :
3315 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3316 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3317 # work properly (i.e., refer to `conftest.exe'), while it won't with
3318 # `rm'.
3319 for ac_file in conftest.exe conftest conftest.*; do
3320 test -f "$ac_file" || continue
3321 case $ac_file in
3322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3323 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3324 break;;
3325 * ) break;;
3326 esac
3327 done
3328 else
3329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3332 See \`config.log' for more details" "$LINENO" 5; }
3333 fi
3334 rm -f conftest conftest$ac_cv_exeext
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3336 $as_echo "$ac_cv_exeext" >&6; }
3337
3338 rm -f conftest.$ac_ext
3339 EXEEXT=$ac_cv_exeext
3340 ac_exeext=$EXEEXT
3341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342 /* end confdefs.h. */
3343 #include <stdio.h>
3344 int
3345 main ()
3346 {
3347 FILE *f = fopen ("conftest.out", "w");
3348 return ferror (f) || fclose (f) != 0;
3349
3350 ;
3351 return 0;
3352 }
3353 _ACEOF
3354 ac_clean_files="$ac_clean_files conftest.out"
3355 # Check that the compiler produces executables we can run. If not, either
3356 # the compiler is broken, or we cross compile.
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3358 $as_echo_n "checking whether we are cross compiling... " >&6; }
3359 if test "$cross_compiling" != yes; then
3360 { { ac_try="$ac_link"
3361 case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364 esac
3365 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3366 $as_echo "$ac_try_echo"; } >&5
3367 (eval "$ac_link") 2>&5
3368 ac_status=$?
3369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3370 test $ac_status = 0; }
3371 if { ac_try='./conftest$ac_cv_exeext'
3372 { { case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375 esac
3376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377 $as_echo "$ac_try_echo"; } >&5
3378 (eval "$ac_try") 2>&5
3379 ac_status=$?
3380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381 test $ac_status = 0; }; }; then
3382 cross_compiling=no
3383 else
3384 if test "$cross_compiling" = maybe; then
3385 cross_compiling=yes
3386 else
3387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3389 as_fn_error $? "cannot run C compiled programs.
3390 If you meant to cross compile, use \`--host'.
3391 See \`config.log' for more details" "$LINENO" 5; }
3392 fi
3393 fi
3394 fi
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3396 $as_echo "$cross_compiling" >&6; }
3397
3398 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3399 ac_clean_files=$ac_clean_files_save
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3401 $as_echo_n "checking for suffix of object files... " >&6; }
3402 if ${ac_cv_objext+:} false; then :
3403 $as_echo_n "(cached) " >&6
3404 else
3405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406 /* end confdefs.h. */
3407
3408 int
3409 main ()
3410 {
3411
3412 ;
3413 return 0;
3414 }
3415 _ACEOF
3416 rm -f conftest.o conftest.obj
3417 if { { ac_try="$ac_compile"
3418 case "(($ac_try" in
3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420 *) ac_try_echo=$ac_try;;
3421 esac
3422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3423 $as_echo "$ac_try_echo"; } >&5
3424 (eval "$ac_compile") 2>&5
3425 ac_status=$?
3426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3427 test $ac_status = 0; }; then :
3428 for ac_file in conftest.o conftest.obj conftest.*; do
3429 test -f "$ac_file" || continue;
3430 case $ac_file in
3431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3432 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3433 break;;
3434 esac
3435 done
3436 else
3437 $as_echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3439
3440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442 as_fn_error $? "cannot compute suffix of object files: cannot compile
3443 See \`config.log' for more details" "$LINENO" 5; }
3444 fi
3445 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3446 fi
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3448 $as_echo "$ac_cv_objext" >&6; }
3449 OBJEXT=$ac_cv_objext
3450 ac_objext=$OBJEXT
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3452 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3453 if ${ac_cv_c_compiler_gnu+:} false; then :
3454 $as_echo_n "(cached) " >&6
3455 else
3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h. */
3458
3459 int
3460 main ()
3461 {
3462 #ifndef __GNUC__
3463 choke me
3464 #endif
3465
3466 ;
3467 return 0;
3468 }
3469 _ACEOF
3470 if ac_fn_c_try_compile "$LINENO"; then :
3471 ac_compiler_gnu=yes
3472 else
3473 ac_compiler_gnu=no
3474 fi
3475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3477
3478 fi
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3480 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3481 if test $ac_compiler_gnu = yes; then
3482 GCC=yes
3483 else
3484 GCC=
3485 fi
3486 ac_test_CFLAGS=${CFLAGS+set}
3487 ac_save_CFLAGS=$CFLAGS
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3489 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3490 if ${ac_cv_prog_cc_g+:} false; then :
3491 $as_echo_n "(cached) " >&6
3492 else
3493 ac_save_c_werror_flag=$ac_c_werror_flag
3494 ac_c_werror_flag=yes
3495 ac_cv_prog_cc_g=no
3496 CFLAGS="-g"
3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h. */
3499
3500 int
3501 main ()
3502 {
3503
3504 ;
3505 return 0;
3506 }
3507 _ACEOF
3508 if ac_fn_c_try_compile "$LINENO"; then :
3509 ac_cv_prog_cc_g=yes
3510 else
3511 CFLAGS=""
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3514
3515 int
3516 main ()
3517 {
3518
3519 ;
3520 return 0;
3521 }
3522 _ACEOF
3523 if ac_fn_c_try_compile "$LINENO"; then :
3524
3525 else
3526 ac_c_werror_flag=$ac_save_c_werror_flag
3527 CFLAGS="-g"
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3530
3531 int
3532 main ()
3533 {
3534
3535 ;
3536 return 0;
3537 }
3538 _ACEOF
3539 if ac_fn_c_try_compile "$LINENO"; then :
3540 ac_cv_prog_cc_g=yes
3541 fi
3542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3543 fi
3544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3545 fi
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547 ac_c_werror_flag=$ac_save_c_werror_flag
3548 fi
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3550 $as_echo "$ac_cv_prog_cc_g" >&6; }
3551 if test "$ac_test_CFLAGS" = set; then
3552 CFLAGS=$ac_save_CFLAGS
3553 elif test $ac_cv_prog_cc_g = yes; then
3554 if test "$GCC" = yes; then
3555 CFLAGS="-g -O2"
3556 else
3557 CFLAGS="-g"
3558 fi
3559 else
3560 if test "$GCC" = yes; then
3561 CFLAGS="-O2"
3562 else
3563 CFLAGS=
3564 fi
3565 fi
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3567 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3568 if ${ac_cv_prog_cc_c89+:} false; then :
3569 $as_echo_n "(cached) " >&6
3570 else
3571 ac_cv_prog_cc_c89=no
3572 ac_save_CC=$CC
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h. */
3575 #include <stdarg.h>
3576 #include <stdio.h>
3577 #include <sys/types.h>
3578 #include <sys/stat.h>
3579 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3580 struct buf { int x; };
3581 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3582 static char *e (p, i)
3583 char **p;
3584 int i;
3585 {
3586 return p[i];
3587 }
3588 static char *f (char * (*g) (char **, int), char **p, ...)
3589 {
3590 char *s;
3591 va_list v;
3592 va_start (v,p);
3593 s = g (p, va_arg (v,int));
3594 va_end (v);
3595 return s;
3596 }
3597
3598 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3599 function prototypes and stuff, but not '\xHH' hex character constants.
3600 These don't provoke an error unfortunately, instead are silently treated
3601 as 'x'. The following induces an error, until -std is added to get
3602 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3603 array size at least. It's necessary to write '\x00'==0 to get something
3604 that's true only with -std. */
3605 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3606
3607 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3608 inside strings and character constants. */
3609 #define FOO(x) 'x'
3610 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3611
3612 int test (int i, double x);
3613 struct s1 {int (*f) (int a);};
3614 struct s2 {int (*f) (double a);};
3615 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3616 int argc;
3617 char **argv;
3618 int
3619 main ()
3620 {
3621 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3622 ;
3623 return 0;
3624 }
3625 _ACEOF
3626 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3627 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3628 do
3629 CC="$ac_save_CC $ac_arg"
3630 if ac_fn_c_try_compile "$LINENO"; then :
3631 ac_cv_prog_cc_c89=$ac_arg
3632 fi
3633 rm -f core conftest.err conftest.$ac_objext
3634 test "x$ac_cv_prog_cc_c89" != "xno" && break
3635 done
3636 rm -f conftest.$ac_ext
3637 CC=$ac_save_CC
3638
3639 fi
3640 # AC_CACHE_VAL
3641 case "x$ac_cv_prog_cc_c89" in
3642 x)
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3644 $as_echo "none needed" >&6; } ;;
3645 xno)
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3647 $as_echo "unsupported" >&6; } ;;
3648 *)
3649 CC="$CC $ac_cv_prog_cc_c89"
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3651 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3652 esac
3653 if test "x$ac_cv_prog_cc_c89" != xno; then :
3654
3655 fi
3656
3657 ac_ext=c
3658 ac_cpp='$CPP $CPPFLAGS'
3659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3662
3663 ac_ext=c
3664 ac_cpp='$CPP $CPPFLAGS'
3665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3669 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3670 if ${am_cv_prog_cc_c_o+:} false; then :
3671 $as_echo_n "(cached) " >&6
3672 else
3673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674 /* end confdefs.h. */
3675
3676 int
3677 main ()
3678 {
3679
3680 ;
3681 return 0;
3682 }
3683 _ACEOF
3684 # Make sure it works both with $CC and with simple cc.
3685 # Following AC_PROG_CC_C_O, we do the test twice because some
3686 # compilers refuse to overwrite an existing .o file with -o,
3687 # though they will create one.
3688 am_cv_prog_cc_c_o=yes
3689 for am_i in 1 2; do
3690 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3691 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3692 ac_status=$?
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); } \
3695 && test -f conftest2.$ac_objext; then
3696 : OK
3697 else
3698 am_cv_prog_cc_c_o=no
3699 break
3700 fi
3701 done
3702 rm -f core conftest*
3703 unset am_i
3704 fi
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3706 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3707 if test "$am_cv_prog_cc_c_o" != yes; then
3708 # Losing compiler, so override with the script.
3709 # FIXME: It is wrong to rewrite CC.
3710 # But if we don't then we get into trouble of one sort or another.
3711 # A longer-term fix would be to have automake use am__CC in this case,
3712 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3713 CC="$am_aux_dir/compile $CC"
3714 fi
3715 ac_ext=c
3716 ac_cpp='$CPP $CPPFLAGS'
3717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3720
3721
3722 depcc="$CC" am_compiler_list=
3723
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3725 $as_echo_n "checking dependency style of $depcc... " >&6; }
3726 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3727 $as_echo_n "(cached) " >&6
3728 else
3729 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3730 # We make a subdir and do the tests there. Otherwise we can end up
3731 # making bogus files that we don't know about and never remove. For
3732 # instance it was reported that on HP-UX the gcc test will end up
3733 # making a dummy file named 'D' -- because '-MD' means "put the output
3734 # in D".
3735 rm -rf conftest.dir
3736 mkdir conftest.dir
3737 # Copy depcomp to subdir because otherwise we won't find it if we're
3738 # using a relative directory.
3739 cp "$am_depcomp" conftest.dir
3740 cd conftest.dir
3741 # We will build objects and dependencies in a subdirectory because
3742 # it helps to detect inapplicable dependency modes. For instance
3743 # both Tru64's cc and ICC support -MD to output dependencies as a
3744 # side effect of compilation, but ICC will put the dependencies in
3745 # the current directory while Tru64 will put them in the object
3746 # directory.
3747 mkdir sub
3748
3749 am_cv_CC_dependencies_compiler_type=none
3750 if test "$am_compiler_list" = ""; then
3751 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3752 fi
3753 am__universal=false
3754 case " $depcc " in #(
3755 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3756 esac
3757
3758 for depmode in $am_compiler_list; do
3759 # Setup a source with many dependencies, because some compilers
3760 # like to wrap large dependency lists on column 80 (with \), and
3761 # we should not choose a depcomp mode which is confused by this.
3762 #
3763 # We need to recreate these files for each test, as the compiler may
3764 # overwrite some of them when testing with obscure command lines.
3765 # This happens at least with the AIX C compiler.
3766 : > sub/conftest.c
3767 for i in 1 2 3 4 5 6; do
3768 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3769 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3770 # Solaris 10 /bin/sh.
3771 echo '/* dummy */' > sub/conftst$i.h
3772 done
3773 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3774
3775 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3776 # mode. It turns out that the SunPro C++ compiler does not properly
3777 # handle '-M -o', and we need to detect this. Also, some Intel
3778 # versions had trouble with output in subdirs.
3779 am__obj=sub/conftest.${OBJEXT-o}
3780 am__minus_obj="-o $am__obj"
3781 case $depmode in
3782 gcc)
3783 # This depmode causes a compiler race in universal mode.
3784 test "$am__universal" = false || continue
3785 ;;
3786 nosideeffect)
3787 # After this tag, mechanisms are not by side-effect, so they'll
3788 # only be used when explicitly requested.
3789 if test "x$enable_dependency_tracking" = xyes; then
3790 continue
3791 else
3792 break
3793 fi
3794 ;;
3795 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3796 # This compiler won't grok '-c -o', but also, the minuso test has
3797 # not run yet. These depmodes are late enough in the game, and
3798 # so weak that their functioning should not be impacted.
3799 am__obj=conftest.${OBJEXT-o}
3800 am__minus_obj=
3801 ;;
3802 none) break ;;
3803 esac
3804 if depmode=$depmode \
3805 source=sub/conftest.c object=$am__obj \
3806 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3807 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3808 >/dev/null 2>conftest.err &&
3809 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3810 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3811 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3812 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3813 # icc doesn't choke on unknown options, it will just issue warnings
3814 # or remarks (even with -Werror). So we grep stderr for any message
3815 # that says an option was ignored or not supported.
3816 # When given -MP, icc 7.0 and 7.1 complain thusly:
3817 # icc: Command line warning: ignoring option '-M'; no argument required
3818 # The diagnosis changed in icc 8.0:
3819 # icc: Command line remark: option '-MP' not supported
3820 if (grep 'ignoring option' conftest.err ||
3821 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3822 am_cv_CC_dependencies_compiler_type=$depmode
3823 break
3824 fi
3825 fi
3826 done
3827
3828 cd ..
3829 rm -rf conftest.dir
3830 else
3831 am_cv_CC_dependencies_compiler_type=none
3832 fi
3833
3834 fi
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3836 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3837 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3838
3839 if
3840 test "x$enable_dependency_tracking" != xno \
3841 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3842 am__fastdepCC_TRUE=
3843 am__fastdepCC_FALSE='#'
3844 else
3845 am__fastdepCC_TRUE='#'
3846 am__fastdepCC_FALSE=
3847 fi
3848
3849
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3851 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3852 if ${ac_cv_prog_cc_c99+:} false; then :
3853 $as_echo_n "(cached) " >&6
3854 else
3855 ac_cv_prog_cc_c99=no
3856 ac_save_CC=$CC
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3859 #include <stdarg.h>
3860 #include <stdbool.h>
3861 #include <stdlib.h>
3862 #include <wchar.h>
3863 #include <stdio.h>
3864
3865 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3866 #define debug(...) fprintf (stderr, __VA_ARGS__)
3867 #define showlist(...) puts (#__VA_ARGS__)
3868 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3869 static void
3870 test_varargs_macros (void)
3871 {
3872 int x = 1234;
3873 int y = 5678;
3874 debug ("Flag");
3875 debug ("X = %d\n", x);
3876 showlist (The first, second, and third items.);
3877 report (x>y, "x is %d but y is %d", x, y);
3878 }
3879
3880 // Check long long types.
3881 #define BIG64 18446744073709551615ull
3882 #define BIG32 4294967295ul
3883 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3884 #if !BIG_OK
3885 your preprocessor is broken;
3886 #endif
3887 #if BIG_OK
3888 #else
3889 your preprocessor is broken;
3890 #endif
3891 static long long int bignum = -9223372036854775807LL;
3892 static unsigned long long int ubignum = BIG64;
3893
3894 struct incomplete_array
3895 {
3896 int datasize;
3897 double data[];
3898 };
3899
3900 struct named_init {
3901 int number;
3902 const wchar_t *name;
3903 double average;
3904 };
3905
3906 typedef const char *ccp;
3907
3908 static inline int
3909 test_restrict (ccp restrict text)
3910 {
3911 // See if C++-style comments work.
3912 // Iterate through items via the restricted pointer.
3913 // Also check for declarations in for loops.
3914 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3915 continue;
3916 return 0;
3917 }
3918
3919 // Check varargs and va_copy.
3920 static void
3921 test_varargs (const char *format, ...)
3922 {
3923 va_list args;
3924 va_start (args, format);
3925 va_list args_copy;
3926 va_copy (args_copy, args);
3927
3928 const char *str;
3929 int number;
3930 float fnumber;
3931
3932 while (*format)
3933 {
3934 switch (*format++)
3935 {
3936 case 's': // string
3937 str = va_arg (args_copy, const char *);
3938 break;
3939 case 'd': // int
3940 number = va_arg (args_copy, int);
3941 break;
3942 case 'f': // float
3943 fnumber = va_arg (args_copy, double);
3944 break;
3945 default:
3946 break;
3947 }
3948 }
3949 va_end (args_copy);
3950 va_end (args);
3951 }
3952
3953 int
3954 main ()
3955 {
3956
3957 // Check bool.
3958 _Bool success = false;
3959
3960 // Check restrict.
3961 if (test_restrict ("String literal") == 0)
3962 success = true;
3963 char *restrict newvar = "Another string";
3964
3965 // Check varargs.
3966 test_varargs ("s, d' f .", "string", 65, 34.234);
3967 test_varargs_macros ();
3968
3969 // Check flexible array members.
3970 struct incomplete_array *ia =
3971 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3972 ia->datasize = 10;
3973 for (int i = 0; i < ia->datasize; ++i)
3974 ia->data[i] = i * 1.234;
3975
3976 // Check named initializers.
3977 struct named_init ni = {
3978 .number = 34,
3979 .name = L"Test wide string",
3980 .average = 543.34343,
3981 };
3982
3983 ni.number = 58;
3984
3985 int dynamic_array[ni.number];
3986 dynamic_array[ni.number - 1] = 543;
3987
3988 // work around unused variable warnings
3989 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3990 || dynamic_array[ni.number - 1] != 543);
3991
3992 ;
3993 return 0;
3994 }
3995 _ACEOF
3996 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3997 do
3998 CC="$ac_save_CC $ac_arg"
3999 if ac_fn_c_try_compile "$LINENO"; then :
4000 ac_cv_prog_cc_c99=$ac_arg
4001 fi
4002 rm -f core conftest.err conftest.$ac_objext
4003 test "x$ac_cv_prog_cc_c99" != "xno" && break
4004 done
4005 rm -f conftest.$ac_ext
4006 CC=$ac_save_CC
4007
4008 fi
4009 # AC_CACHE_VAL
4010 case "x$ac_cv_prog_cc_c99" in
4011 x)
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4013 $as_echo "none needed" >&6; } ;;
4014 xno)
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4016 $as_echo "unsupported" >&6; } ;;
4017 *)
4018 CC="$CC $ac_cv_prog_cc_c99"
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4020 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4021 esac
4022 if test "x$ac_cv_prog_cc_c99" != xno; then :
4023
4024 fi
4025
4026
4027
4028 ac_ext=c
4029 ac_cpp='$CPP $CPPFLAGS'
4030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4034 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4035 # On Suns, sometimes $CPP names a directory.
4036 if test -n "$CPP" && test -d "$CPP"; then
4037 CPP=
4038 fi
4039 if test -z "$CPP"; then
4040 if ${ac_cv_prog_CPP+:} false; then :
4041 $as_echo_n "(cached) " >&6
4042 else
4043 # Double quotes because CPP needs to be expanded
4044 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4045 do
4046 ac_preproc_ok=false
4047 for ac_c_preproc_warn_flag in '' yes
4048 do
4049 # Use a header file that comes with gcc, so configuring glibc
4050 # with a fresh cross-compiler works.
4051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4052 # <limits.h> exists even on freestanding compilers.
4053 # On the NeXT, cc -E runs the code through the compiler's parser,
4054 # not just through cpp. "Syntax error" is here to catch this case.
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4057 #ifdef __STDC__
4058 # include <limits.h>
4059 #else
4060 # include <assert.h>
4061 #endif
4062 Syntax error
4063 _ACEOF
4064 if ac_fn_c_try_cpp "$LINENO"; then :
4065
4066 else
4067 # Broken: fails on valid input.
4068 continue
4069 fi
4070 rm -f conftest.err conftest.i conftest.$ac_ext
4071
4072 # OK, works on sane cases. Now check whether nonexistent headers
4073 # can be detected and how.
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4076 #include <ac_nonexistent.h>
4077 _ACEOF
4078 if ac_fn_c_try_cpp "$LINENO"; then :
4079 # Broken: success on invalid input.
4080 continue
4081 else
4082 # Passes both tests.
4083 ac_preproc_ok=:
4084 break
4085 fi
4086 rm -f conftest.err conftest.i conftest.$ac_ext
4087
4088 done
4089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4090 rm -f conftest.i conftest.err conftest.$ac_ext
4091 if $ac_preproc_ok; then :
4092 break
4093 fi
4094
4095 done
4096 ac_cv_prog_CPP=$CPP
4097
4098 fi
4099 CPP=$ac_cv_prog_CPP
4100 else
4101 ac_cv_prog_CPP=$CPP
4102 fi
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4104 $as_echo "$CPP" >&6; }
4105 ac_preproc_ok=false
4106 for ac_c_preproc_warn_flag in '' yes
4107 do
4108 # Use a header file that comes with gcc, so configuring glibc
4109 # with a fresh cross-compiler works.
4110 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4111 # <limits.h> exists even on freestanding compilers.
4112 # On the NeXT, cc -E runs the code through the compiler's parser,
4113 # not just through cpp. "Syntax error" is here to catch this case.
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4116 #ifdef __STDC__
4117 # include <limits.h>
4118 #else
4119 # include <assert.h>
4120 #endif
4121 Syntax error
4122 _ACEOF
4123 if ac_fn_c_try_cpp "$LINENO"; then :
4124
4125 else
4126 # Broken: fails on valid input.
4127 continue
4128 fi
4129 rm -f conftest.err conftest.i conftest.$ac_ext
4130
4131 # OK, works on sane cases. Now check whether nonexistent headers
4132 # can be detected and how.
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4135 #include <ac_nonexistent.h>
4136 _ACEOF
4137 if ac_fn_c_try_cpp "$LINENO"; then :
4138 # Broken: success on invalid input.
4139 continue
4140 else
4141 # Passes both tests.
4142 ac_preproc_ok=:
4143 break
4144 fi
4145 rm -f conftest.err conftest.i conftest.$ac_ext
4146
4147 done
4148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4149 rm -f conftest.i conftest.err conftest.$ac_ext
4150 if $ac_preproc_ok; then :
4151
4152 else
4153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4155 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4156 See \`config.log' for more details" "$LINENO" 5; }
4157 fi
4158
4159 ac_ext=c
4160 ac_cpp='$CPP $CPPFLAGS'
4161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4164
4165
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4167 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4168 if ${ac_cv_path_GREP+:} false; then :
4169 $as_echo_n "(cached) " >&6
4170 else
4171 if test -z "$GREP"; then
4172 ac_path_GREP_found=false
4173 # Loop through the user's path and test for each of PROGNAME-LIST
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4176 do
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
4179 for ac_prog in grep ggrep; do
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4182 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4183 # Check for GNU ac_path_GREP and select it if it is found.
4184 # Check for GNU $ac_path_GREP
4185 case `"$ac_path_GREP" --version 2>&1` in
4186 *GNU*)
4187 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4188 *)
4189 ac_count=0
4190 $as_echo_n 0123456789 >"conftest.in"
4191 while :
4192 do
4193 cat "conftest.in" "conftest.in" >"conftest.tmp"
4194 mv "conftest.tmp" "conftest.in"
4195 cp "conftest.in" "conftest.nl"
4196 $as_echo 'GREP' >> "conftest.nl"
4197 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4199 as_fn_arith $ac_count + 1 && ac_count=$as_val
4200 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4201 # Best one so far, save it but keep looking for a better one
4202 ac_cv_path_GREP="$ac_path_GREP"
4203 ac_path_GREP_max=$ac_count
4204 fi
4205 # 10*(2^10) chars as input seems more than enough
4206 test $ac_count -gt 10 && break
4207 done
4208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4209 esac
4210
4211 $ac_path_GREP_found && break 3
4212 done
4213 done
4214 done
4215 IFS=$as_save_IFS
4216 if test -z "$ac_cv_path_GREP"; then
4217 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4218 fi
4219 else
4220 ac_cv_path_GREP=$GREP
4221 fi
4222
4223 fi
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4225 $as_echo "$ac_cv_path_GREP" >&6; }
4226 GREP="$ac_cv_path_GREP"
4227
4228
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4230 $as_echo_n "checking for egrep... " >&6; }
4231 if ${ac_cv_path_EGREP+:} false; then :
4232 $as_echo_n "(cached) " >&6
4233 else
4234 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4235 then ac_cv_path_EGREP="$GREP -E"
4236 else
4237 if test -z "$EGREP"; then
4238 ac_path_EGREP_found=false
4239 # Loop through the user's path and test for each of PROGNAME-LIST
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4242 do
4243 IFS=$as_save_IFS
4244 test -z "$as_dir" && as_dir=.
4245 for ac_prog in egrep; do
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4248 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4249 # Check for GNU ac_path_EGREP and select it if it is found.
4250 # Check for GNU $ac_path_EGREP
4251 case `"$ac_path_EGREP" --version 2>&1` in
4252 *GNU*)
4253 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4254 *)
4255 ac_count=0
4256 $as_echo_n 0123456789 >"conftest.in"
4257 while :
4258 do
4259 cat "conftest.in" "conftest.in" >"conftest.tmp"
4260 mv "conftest.tmp" "conftest.in"
4261 cp "conftest.in" "conftest.nl"
4262 $as_echo 'EGREP' >> "conftest.nl"
4263 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4264 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4265 as_fn_arith $ac_count + 1 && ac_count=$as_val
4266 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4267 # Best one so far, save it but keep looking for a better one
4268 ac_cv_path_EGREP="$ac_path_EGREP"
4269 ac_path_EGREP_max=$ac_count
4270 fi
4271 # 10*(2^10) chars as input seems more than enough
4272 test $ac_count -gt 10 && break
4273 done
4274 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4275 esac
4276
4277 $ac_path_EGREP_found && break 3
4278 done
4279 done
4280 done
4281 IFS=$as_save_IFS
4282 if test -z "$ac_cv_path_EGREP"; then
4283 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4284 fi
4285 else
4286 ac_cv_path_EGREP=$EGREP
4287 fi
4288
4289 fi
4290 fi
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4292 $as_echo "$ac_cv_path_EGREP" >&6; }
4293 EGREP="$ac_cv_path_EGREP"
4294
4295
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4297 $as_echo_n "checking for ANSI C header files... " >&6; }
4298 if ${ac_cv_header_stdc+:} false; then :
4299 $as_echo_n "(cached) " >&6
4300 else
4301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302 /* end confdefs.h. */
4303 #include <stdlib.h>
4304 #include <stdarg.h>
4305 #include <string.h>
4306 #include <float.h>
4307
4308 int
4309 main ()
4310 {
4311
4312 ;
4313 return 0;
4314 }
4315 _ACEOF
4316 if ac_fn_c_try_compile "$LINENO"; then :
4317 ac_cv_header_stdc=yes
4318 else
4319 ac_cv_header_stdc=no
4320 fi
4321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4322
4323 if test $ac_cv_header_stdc = yes; then
4324 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4327 #include <string.h>
4328
4329 _ACEOF
4330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4331 $EGREP "memchr" >/dev/null 2>&1; then :
4332
4333 else
4334 ac_cv_header_stdc=no
4335 fi
4336 rm -f conftest*
4337
4338 fi
4339
4340 if test $ac_cv_header_stdc = yes; then
4341 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4344 #include <stdlib.h>
4345
4346 _ACEOF
4347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4348 $EGREP "free" >/dev/null 2>&1; then :
4349
4350 else
4351 ac_cv_header_stdc=no
4352 fi
4353 rm -f conftest*
4354
4355 fi
4356
4357 if test $ac_cv_header_stdc = yes; then
4358 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4359 if test "$cross_compiling" = yes; then :
4360 :
4361 else
4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h. */
4364 #include <ctype.h>
4365 #include <stdlib.h>
4366 #if ((' ' & 0x0FF) == 0x020)
4367 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4368 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4369 #else
4370 # define ISLOWER(c) \
4371 (('a' <= (c) && (c) <= 'i') \
4372 || ('j' <= (c) && (c) <= 'r') \
4373 || ('s' <= (c) && (c) <= 'z'))
4374 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4375 #endif
4376
4377 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4378 int
4379 main ()
4380 {
4381 int i;
4382 for (i = 0; i < 256; i++)
4383 if (XOR (islower (i), ISLOWER (i))
4384 || toupper (i) != TOUPPER (i))
4385 return 2;
4386 return 0;
4387 }
4388 _ACEOF
4389 if ac_fn_c_try_run "$LINENO"; then :
4390
4391 else
4392 ac_cv_header_stdc=no
4393 fi
4394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4395 conftest.$ac_objext conftest.beam conftest.$ac_ext
4396 fi
4397
4398 fi
4399 fi
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4401 $as_echo "$ac_cv_header_stdc" >&6; }
4402 if test $ac_cv_header_stdc = yes; then
4403
4404 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4405
4406 fi
4407
4408 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4409 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4410 inttypes.h stdint.h unistd.h
4411 do :
4412 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4413 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4414 "
4415 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4416 cat >>confdefs.h <<_ACEOF
4417 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4418 _ACEOF
4419
4420 fi
4421
4422 done
4423
4424
4425
4426
4427
4428
4429 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4430 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4431 CLANGCC="yes"
4432 else
4433 CLANGCC="no"
4434 fi
4435
4436 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4437 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4438 INTELCC="yes"
4439 else
4440 INTELCC="no"
4441 fi
4442
4443 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4444 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4445 SUNCC="yes"
4446 else
4447 SUNCC="no"
4448 fi
4449
4450
4451
4452
4453 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4454 if test -n "$ac_tool_prefix"; then
4455 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4456 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4458 $as_echo_n "checking for $ac_word... " >&6; }
4459 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4460 $as_echo_n "(cached) " >&6
4461 else
4462 case $PKG_CONFIG in
4463 [\\/]* | ?:[\\/]*)
4464 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4465 ;;
4466 *)
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 for as_dir in $PATH
4469 do
4470 IFS=$as_save_IFS
4471 test -z "$as_dir" && as_dir=.
4472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4474 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4476 break 2
4477 fi
4478 done
4479 done
4480 IFS=$as_save_IFS
4481
4482 ;;
4483 esac
4484 fi
4485 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4486 if test -n "$PKG_CONFIG"; then
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4488 $as_echo "$PKG_CONFIG" >&6; }
4489 else
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491 $as_echo "no" >&6; }
4492 fi
4493
4494
4495 fi
4496 if test -z "$ac_cv_path_PKG_CONFIG"; then
4497 ac_pt_PKG_CONFIG=$PKG_CONFIG
4498 # Extract the first word of "pkg-config", so it can be a program name with args.
4499 set dummy pkg-config; ac_word=$2
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4501 $as_echo_n "checking for $ac_word... " >&6; }
4502 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4503 $as_echo_n "(cached) " >&6
4504 else
4505 case $ac_pt_PKG_CONFIG in
4506 [\\/]* | ?:[\\/]*)
4507 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4508 ;;
4509 *)
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH
4512 do
4513 IFS=$as_save_IFS
4514 test -z "$as_dir" && as_dir=.
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4517 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4519 break 2
4520 fi
4521 done
4522 done
4523 IFS=$as_save_IFS
4524
4525 ;;
4526 esac
4527 fi
4528 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4529 if test -n "$ac_pt_PKG_CONFIG"; then
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4531 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4532 else
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534 $as_echo "no" >&6; }
4535 fi
4536
4537 if test "x$ac_pt_PKG_CONFIG" = x; then
4538 PKG_CONFIG=""
4539 else
4540 case $cross_compiling:$ac_tool_warned in
4541 yes:)
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4544 ac_tool_warned=yes ;;
4545 esac
4546 PKG_CONFIG=$ac_pt_PKG_CONFIG
4547 fi
4548 else
4549 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4550 fi
4551
4552 fi
4553 if test -n "$PKG_CONFIG"; then
4554 _pkg_min_version=0.9.0
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4556 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4557 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4559 $as_echo "yes" >&6; }
4560 else
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4562 $as_echo "no" >&6; }
4563 PKG_CONFIG=""
4564 fi
4565
4566 fi
4567 # Make sure we can run config.sub.
4568 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4569 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4570
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4572 $as_echo_n "checking build system type... " >&6; }
4573 if ${ac_cv_build+:} false; then :
4574 $as_echo_n "(cached) " >&6
4575 else
4576 ac_build_alias=$build_alias
4577 test "x$ac_build_alias" = x &&
4578 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4579 test "x$ac_build_alias" = x &&
4580 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4581 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4582 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4583
4584 fi
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4586 $as_echo "$ac_cv_build" >&6; }
4587 case $ac_cv_build in
4588 *-*-*) ;;
4589 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4590 esac
4591 build=$ac_cv_build
4592 ac_save_IFS=$IFS; IFS='-'
4593 set x $ac_cv_build
4594 shift
4595 build_cpu=$1
4596 build_vendor=$2
4597 shift; shift
4598 # Remember, the first character of IFS is used to create $*,
4599 # except with old shells:
4600 build_os=$*
4601 IFS=$ac_save_IFS
4602 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4603
4604
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4606 $as_echo_n "checking host system type... " >&6; }
4607 if ${ac_cv_host+:} false; then :
4608 $as_echo_n "(cached) " >&6
4609 else
4610 if test "x$host_alias" = x; then
4611 ac_cv_host=$ac_cv_build
4612 else
4613 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4614 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4615 fi
4616
4617 fi
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4619 $as_echo "$ac_cv_host" >&6; }
4620 case $ac_cv_host in
4621 *-*-*) ;;
4622 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4623 esac
4624 host=$ac_cv_host
4625 ac_save_IFS=$IFS; IFS='-'
4626 set x $ac_cv_host
4627 shift
4628 host_cpu=$1
4629 host_vendor=$2
4630 shift; shift
4631 # Remember, the first character of IFS is used to create $*,
4632 # except with old shells:
4633 host_os=$*
4634 IFS=$ac_save_IFS
4635 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4636
4637
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4639 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4640 if ${ac_cv_path_SED+:} false; then :
4641 $as_echo_n "(cached) " >&6
4642 else
4643 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4644 for ac_i in 1 2 3 4 5 6 7; do
4645 ac_script="$ac_script$as_nl$ac_script"
4646 done
4647 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4648 { ac_script=; unset ac_script;}
4649 if test -z "$SED"; then
4650 ac_path_SED_found=false
4651 # Loop through the user's path and test for each of PROGNAME-LIST
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4654 do
4655 IFS=$as_save_IFS
4656 test -z "$as_dir" && as_dir=.
4657 for ac_prog in sed gsed; do
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4660 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4661 # Check for GNU ac_path_SED and select it if it is found.
4662 # Check for GNU $ac_path_SED
4663 case `"$ac_path_SED" --version 2>&1` in
4664 *GNU*)
4665 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4666 *)
4667 ac_count=0
4668 $as_echo_n 0123456789 >"conftest.in"
4669 while :
4670 do
4671 cat "conftest.in" "conftest.in" >"conftest.tmp"
4672 mv "conftest.tmp" "conftest.in"
4673 cp "conftest.in" "conftest.nl"
4674 $as_echo '' >> "conftest.nl"
4675 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4676 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4677 as_fn_arith $ac_count + 1 && ac_count=$as_val
4678 if test $ac_count -gt ${ac_path_SED_max-0}; then
4679 # Best one so far, save it but keep looking for a better one
4680 ac_cv_path_SED="$ac_path_SED"
4681 ac_path_SED_max=$ac_count
4682 fi
4683 # 10*(2^10) chars as input seems more than enough
4684 test $ac_count -gt 10 && break
4685 done
4686 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4687 esac
4688
4689 $ac_path_SED_found && break 3
4690 done
4691 done
4692 done
4693 IFS=$as_save_IFS
4694 if test -z "$ac_cv_path_SED"; then
4695 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4696 fi
4697 else
4698 ac_cv_path_SED=$SED
4699 fi
4700
4701 fi
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4703 $as_echo "$ac_cv_path_SED" >&6; }
4704 SED="$ac_cv_path_SED"
4705 rm -f conftest.sed
4706
4707
4708
4709
4710
4711
4712 # Check whether --enable-selective-werror was given.
4713 if test "${enable_selective_werror+set}" = set; then :
4714 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4715 else
4716 SELECTIVE_WERROR=yes
4717 fi
4718
4719
4720
4721
4722
4723 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4724 if test "x$SUNCC" = "xyes"; then
4725 BASE_CFLAGS="-v"
4726 else
4727 BASE_CFLAGS=""
4728 fi
4729
4730 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744 xorg_testset_save_CFLAGS="$CFLAGS"
4745
4746 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4749 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4750 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4751 $as_echo_n "(cached) " >&6
4752 else
4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754 /* end confdefs.h. */
4755 int i;
4756 _ACEOF
4757 if ac_fn_c_try_compile "$LINENO"; then :
4758 xorg_cv_cc_flag_unknown_warning_option=yes
4759 else
4760 xorg_cv_cc_flag_unknown_warning_option=no
4761 fi
4762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4763 fi
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4765 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4766 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4767 CFLAGS="$xorg_testset_save_CFLAGS"
4768 fi
4769
4770 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4773 fi
4774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4776 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4777 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4778 $as_echo_n "(cached) " >&6
4779 else
4780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4781 /* end confdefs.h. */
4782 int i;
4783 _ACEOF
4784 if ac_fn_c_try_compile "$LINENO"; then :
4785 xorg_cv_cc_flag_unused_command_line_argument=yes
4786 else
4787 xorg_cv_cc_flag_unused_command_line_argument=no
4788 fi
4789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4790 fi
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4792 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4793 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4794 CFLAGS="$xorg_testset_save_CFLAGS"
4795 fi
4796
4797 found="no"
4798
4799 if test $found = "no" ; then
4800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4802 fi
4803
4804 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4806 fi
4807
4808 CFLAGS="$CFLAGS -Wall"
4809
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4811 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4812 cacheid=xorg_cv_cc_flag__Wall
4813 if eval \${$cacheid+:} false; then :
4814 $as_echo_n "(cached) " >&6
4815 else
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4818 int i;
4819 int
4820 main ()
4821 {
4822
4823 ;
4824 return 0;
4825 }
4826 _ACEOF
4827 if ac_fn_c_try_link "$LINENO"; then :
4828 eval $cacheid=yes
4829 else
4830 eval $cacheid=no
4831 fi
4832 rm -f core conftest.err conftest.$ac_objext \
4833 conftest$ac_exeext conftest.$ac_ext
4834 fi
4835
4836
4837 CFLAGS="$xorg_testset_save_CFLAGS"
4838
4839 eval supported=\$$cacheid
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4841 $as_echo "$supported" >&6; }
4842 if test "$supported" = "yes" ; then
4843 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4844 found="yes"
4845 fi
4846 fi
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862 xorg_testset_save_CFLAGS="$CFLAGS"
4863
4864 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4867 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4868 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4869 $as_echo_n "(cached) " >&6
4870 else
4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4873 int i;
4874 _ACEOF
4875 if ac_fn_c_try_compile "$LINENO"; then :
4876 xorg_cv_cc_flag_unknown_warning_option=yes
4877 else
4878 xorg_cv_cc_flag_unknown_warning_option=no
4879 fi
4880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4881 fi
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4883 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4884 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4885 CFLAGS="$xorg_testset_save_CFLAGS"
4886 fi
4887
4888 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4891 fi
4892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4894 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4895 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4896 $as_echo_n "(cached) " >&6
4897 else
4898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4899 /* end confdefs.h. */
4900 int i;
4901 _ACEOF
4902 if ac_fn_c_try_compile "$LINENO"; then :
4903 xorg_cv_cc_flag_unused_command_line_argument=yes
4904 else
4905 xorg_cv_cc_flag_unused_command_line_argument=no
4906 fi
4907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908 fi
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4910 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4911 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4912 CFLAGS="$xorg_testset_save_CFLAGS"
4913 fi
4914
4915 found="no"
4916
4917 if test $found = "no" ; then
4918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4920 fi
4921
4922 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4924 fi
4925
4926 CFLAGS="$CFLAGS -Wpointer-arith"
4927
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4929 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4930 cacheid=xorg_cv_cc_flag__Wpointer_arith
4931 if eval \${$cacheid+:} false; then :
4932 $as_echo_n "(cached) " >&6
4933 else
4934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935 /* end confdefs.h. */
4936 int i;
4937 int
4938 main ()
4939 {
4940
4941 ;
4942 return 0;
4943 }
4944 _ACEOF
4945 if ac_fn_c_try_link "$LINENO"; then :
4946 eval $cacheid=yes
4947 else
4948 eval $cacheid=no
4949 fi
4950 rm -f core conftest.err conftest.$ac_objext \
4951 conftest$ac_exeext conftest.$ac_ext
4952 fi
4953
4954
4955 CFLAGS="$xorg_testset_save_CFLAGS"
4956
4957 eval supported=\$$cacheid
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4959 $as_echo "$supported" >&6; }
4960 if test "$supported" = "yes" ; then
4961 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4962 found="yes"
4963 fi
4964 fi
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980 xorg_testset_save_CFLAGS="$CFLAGS"
4981
4982 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4985 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4986 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h. */
4991 int i;
4992 _ACEOF
4993 if ac_fn_c_try_compile "$LINENO"; then :
4994 xorg_cv_cc_flag_unknown_warning_option=yes
4995 else
4996 xorg_cv_cc_flag_unknown_warning_option=no
4997 fi
4998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4999 fi
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5001 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5002 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5003 CFLAGS="$xorg_testset_save_CFLAGS"
5004 fi
5005
5006 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5009 fi
5010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5012 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5013 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5014 $as_echo_n "(cached) " >&6
5015 else
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h. */
5018 int i;
5019 _ACEOF
5020 if ac_fn_c_try_compile "$LINENO"; then :
5021 xorg_cv_cc_flag_unused_command_line_argument=yes
5022 else
5023 xorg_cv_cc_flag_unused_command_line_argument=no
5024 fi
5025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5026 fi
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5028 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5029 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5030 CFLAGS="$xorg_testset_save_CFLAGS"
5031 fi
5032
5033 found="no"
5034
5035 if test $found = "no" ; then
5036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5038 fi
5039
5040 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5042 fi
5043
5044 CFLAGS="$CFLAGS -Wmissing-declarations"
5045
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5047 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5048 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5049 if eval \${$cacheid+:} false; then :
5050 $as_echo_n "(cached) " >&6
5051 else
5052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053 /* end confdefs.h. */
5054 int i;
5055 int
5056 main ()
5057 {
5058
5059 ;
5060 return 0;
5061 }
5062 _ACEOF
5063 if ac_fn_c_try_link "$LINENO"; then :
5064 eval $cacheid=yes
5065 else
5066 eval $cacheid=no
5067 fi
5068 rm -f core conftest.err conftest.$ac_objext \
5069 conftest$ac_exeext conftest.$ac_ext
5070 fi
5071
5072
5073 CFLAGS="$xorg_testset_save_CFLAGS"
5074
5075 eval supported=\$$cacheid
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5077 $as_echo "$supported" >&6; }
5078 if test "$supported" = "yes" ; then
5079 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5080 found="yes"
5081 fi
5082 fi
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098 xorg_testset_save_CFLAGS="$CFLAGS"
5099
5100 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5103 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5104 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5105 $as_echo_n "(cached) " >&6
5106 else
5107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5108 /* end confdefs.h. */
5109 int i;
5110 _ACEOF
5111 if ac_fn_c_try_compile "$LINENO"; then :
5112 xorg_cv_cc_flag_unknown_warning_option=yes
5113 else
5114 xorg_cv_cc_flag_unknown_warning_option=no
5115 fi
5116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5117 fi
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5119 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5120 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5121 CFLAGS="$xorg_testset_save_CFLAGS"
5122 fi
5123
5124 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5127 fi
5128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5130 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5131 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5132 $as_echo_n "(cached) " >&6
5133 else
5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135 /* end confdefs.h. */
5136 int i;
5137 _ACEOF
5138 if ac_fn_c_try_compile "$LINENO"; then :
5139 xorg_cv_cc_flag_unused_command_line_argument=yes
5140 else
5141 xorg_cv_cc_flag_unused_command_line_argument=no
5142 fi
5143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5144 fi
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5146 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5147 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5148 CFLAGS="$xorg_testset_save_CFLAGS"
5149 fi
5150
5151 found="no"
5152
5153 if test $found = "no" ; then
5154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5156 fi
5157
5158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5160 fi
5161
5162 CFLAGS="$CFLAGS -Wformat=2"
5163
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5165 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5166 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5167 if eval \${$cacheid+:} false; then :
5168 $as_echo_n "(cached) " >&6
5169 else
5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h. */
5172 int i;
5173 int
5174 main ()
5175 {
5176
5177 ;
5178 return 0;
5179 }
5180 _ACEOF
5181 if ac_fn_c_try_link "$LINENO"; then :
5182 eval $cacheid=yes
5183 else
5184 eval $cacheid=no
5185 fi
5186 rm -f core conftest.err conftest.$ac_objext \
5187 conftest$ac_exeext conftest.$ac_ext
5188 fi
5189
5190
5191 CFLAGS="$xorg_testset_save_CFLAGS"
5192
5193 eval supported=\$$cacheid
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5195 $as_echo "$supported" >&6; }
5196 if test "$supported" = "yes" ; then
5197 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5198 found="yes"
5199 fi
5200 fi
5201
5202 if test $found = "no" ; then
5203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5205 fi
5206
5207 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5209 fi
5210
5211 CFLAGS="$CFLAGS -Wformat"
5212
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5214 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5215 cacheid=xorg_cv_cc_flag__Wformat
5216 if eval \${$cacheid+:} false; then :
5217 $as_echo_n "(cached) " >&6
5218 else
5219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220 /* end confdefs.h. */
5221 int i;
5222 int
5223 main ()
5224 {
5225
5226 ;
5227 return 0;
5228 }
5229 _ACEOF
5230 if ac_fn_c_try_link "$LINENO"; then :
5231 eval $cacheid=yes
5232 else
5233 eval $cacheid=no
5234 fi
5235 rm -f core conftest.err conftest.$ac_objext \
5236 conftest$ac_exeext conftest.$ac_ext
5237 fi
5238
5239
5240 CFLAGS="$xorg_testset_save_CFLAGS"
5241
5242 eval supported=\$$cacheid
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5244 $as_echo "$supported" >&6; }
5245 if test "$supported" = "yes" ; then
5246 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5247 found="yes"
5248 fi
5249 fi
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267 xorg_testset_save_CFLAGS="$CFLAGS"
5268
5269 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5272 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5273 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5274 $as_echo_n "(cached) " >&6
5275 else
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5278 int i;
5279 _ACEOF
5280 if ac_fn_c_try_compile "$LINENO"; then :
5281 xorg_cv_cc_flag_unknown_warning_option=yes
5282 else
5283 xorg_cv_cc_flag_unknown_warning_option=no
5284 fi
5285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5286 fi
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5288 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5289 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5290 CFLAGS="$xorg_testset_save_CFLAGS"
5291 fi
5292
5293 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5296 fi
5297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5299 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5300 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5301 $as_echo_n "(cached) " >&6
5302 else
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5305 int i;
5306 _ACEOF
5307 if ac_fn_c_try_compile "$LINENO"; then :
5308 xorg_cv_cc_flag_unused_command_line_argument=yes
5309 else
5310 xorg_cv_cc_flag_unused_command_line_argument=no
5311 fi
5312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5313 fi
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5315 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5316 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5317 CFLAGS="$xorg_testset_save_CFLAGS"
5318 fi
5319
5320 found="no"
5321
5322 if test $found = "no" ; then
5323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5325 fi
5326
5327 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5329 fi
5330
5331 CFLAGS="$CFLAGS -Wstrict-prototypes"
5332
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5334 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5335 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5336 if eval \${$cacheid+:} false; then :
5337 $as_echo_n "(cached) " >&6
5338 else
5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340 /* end confdefs.h. */
5341 int i;
5342 int
5343 main ()
5344 {
5345
5346 ;
5347 return 0;
5348 }
5349 _ACEOF
5350 if ac_fn_c_try_link "$LINENO"; then :
5351 eval $cacheid=yes
5352 else
5353 eval $cacheid=no
5354 fi
5355 rm -f core conftest.err conftest.$ac_objext \
5356 conftest$ac_exeext conftest.$ac_ext
5357 fi
5358
5359
5360 CFLAGS="$xorg_testset_save_CFLAGS"
5361
5362 eval supported=\$$cacheid
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5364 $as_echo "$supported" >&6; }
5365 if test "$supported" = "yes" ; then
5366 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5367 found="yes"
5368 fi
5369 fi
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385 xorg_testset_save_CFLAGS="$CFLAGS"
5386
5387 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5390 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5391 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5392 $as_echo_n "(cached) " >&6
5393 else
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5396 int i;
5397 _ACEOF
5398 if ac_fn_c_try_compile "$LINENO"; then :
5399 xorg_cv_cc_flag_unknown_warning_option=yes
5400 else
5401 xorg_cv_cc_flag_unknown_warning_option=no
5402 fi
5403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404 fi
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5406 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5407 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5408 CFLAGS="$xorg_testset_save_CFLAGS"
5409 fi
5410
5411 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5414 fi
5415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5417 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5418 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5419 $as_echo_n "(cached) " >&6
5420 else
5421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422 /* end confdefs.h. */
5423 int i;
5424 _ACEOF
5425 if ac_fn_c_try_compile "$LINENO"; then :
5426 xorg_cv_cc_flag_unused_command_line_argument=yes
5427 else
5428 xorg_cv_cc_flag_unused_command_line_argument=no
5429 fi
5430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5431 fi
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5433 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5434 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5435 CFLAGS="$xorg_testset_save_CFLAGS"
5436 fi
5437
5438 found="no"
5439
5440 if test $found = "no" ; then
5441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5443 fi
5444
5445 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5447 fi
5448
5449 CFLAGS="$CFLAGS -Wmissing-prototypes"
5450
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5452 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5453 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5454 if eval \${$cacheid+:} false; then :
5455 $as_echo_n "(cached) " >&6
5456 else
5457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458 /* end confdefs.h. */
5459 int i;
5460 int
5461 main ()
5462 {
5463
5464 ;
5465 return 0;
5466 }
5467 _ACEOF
5468 if ac_fn_c_try_link "$LINENO"; then :
5469 eval $cacheid=yes
5470 else
5471 eval $cacheid=no
5472 fi
5473 rm -f core conftest.err conftest.$ac_objext \
5474 conftest$ac_exeext conftest.$ac_ext
5475 fi
5476
5477
5478 CFLAGS="$xorg_testset_save_CFLAGS"
5479
5480 eval supported=\$$cacheid
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5482 $as_echo "$supported" >&6; }
5483 if test "$supported" = "yes" ; then
5484 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5485 found="yes"
5486 fi
5487 fi
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503 xorg_testset_save_CFLAGS="$CFLAGS"
5504
5505 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5508 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5509 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5510 $as_echo_n "(cached) " >&6
5511 else
5512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513 /* end confdefs.h. */
5514 int i;
5515 _ACEOF
5516 if ac_fn_c_try_compile "$LINENO"; then :
5517 xorg_cv_cc_flag_unknown_warning_option=yes
5518 else
5519 xorg_cv_cc_flag_unknown_warning_option=no
5520 fi
5521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5522 fi
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5524 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5526 CFLAGS="$xorg_testset_save_CFLAGS"
5527 fi
5528
5529 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5532 fi
5533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5535 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5536 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5537 $as_echo_n "(cached) " >&6
5538 else
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5541 int i;
5542 _ACEOF
5543 if ac_fn_c_try_compile "$LINENO"; then :
5544 xorg_cv_cc_flag_unused_command_line_argument=yes
5545 else
5546 xorg_cv_cc_flag_unused_command_line_argument=no
5547 fi
5548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5549 fi
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5551 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5553 CFLAGS="$xorg_testset_save_CFLAGS"
5554 fi
5555
5556 found="no"
5557
5558 if test $found = "no" ; then
5559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5561 fi
5562
5563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5565 fi
5566
5567 CFLAGS="$CFLAGS -Wnested-externs"
5568
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5570 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5571 cacheid=xorg_cv_cc_flag__Wnested_externs
5572 if eval \${$cacheid+:} false; then :
5573 $as_echo_n "(cached) " >&6
5574 else
5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5577 int i;
5578 int
5579 main ()
5580 {
5581
5582 ;
5583 return 0;
5584 }
5585 _ACEOF
5586 if ac_fn_c_try_link "$LINENO"; then :
5587 eval $cacheid=yes
5588 else
5589 eval $cacheid=no
5590 fi
5591 rm -f core conftest.err conftest.$ac_objext \
5592 conftest$ac_exeext conftest.$ac_ext
5593 fi
5594
5595
5596 CFLAGS="$xorg_testset_save_CFLAGS"
5597
5598 eval supported=\$$cacheid
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5600 $as_echo "$supported" >&6; }
5601 if test "$supported" = "yes" ; then
5602 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5603 found="yes"
5604 fi
5605 fi
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621 xorg_testset_save_CFLAGS="$CFLAGS"
5622
5623 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5626 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5627 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5628 $as_echo_n "(cached) " >&6
5629 else
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h. */
5632 int i;
5633 _ACEOF
5634 if ac_fn_c_try_compile "$LINENO"; then :
5635 xorg_cv_cc_flag_unknown_warning_option=yes
5636 else
5637 xorg_cv_cc_flag_unknown_warning_option=no
5638 fi
5639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5640 fi
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5642 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5643 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5644 CFLAGS="$xorg_testset_save_CFLAGS"
5645 fi
5646
5647 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5650 fi
5651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5653 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5654 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5655 $as_echo_n "(cached) " >&6
5656 else
5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h. */
5659 int i;
5660 _ACEOF
5661 if ac_fn_c_try_compile "$LINENO"; then :
5662 xorg_cv_cc_flag_unused_command_line_argument=yes
5663 else
5664 xorg_cv_cc_flag_unused_command_line_argument=no
5665 fi
5666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5667 fi
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5669 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5670 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5671 CFLAGS="$xorg_testset_save_CFLAGS"
5672 fi
5673
5674 found="no"
5675
5676 if test $found = "no" ; then
5677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5679 fi
5680
5681 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5683 fi
5684
5685 CFLAGS="$CFLAGS -Wbad-function-cast"
5686
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5688 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5689 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5690 if eval \${$cacheid+:} false; then :
5691 $as_echo_n "(cached) " >&6
5692 else
5693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694 /* end confdefs.h. */
5695 int i;
5696 int
5697 main ()
5698 {
5699
5700 ;
5701 return 0;
5702 }
5703 _ACEOF
5704 if ac_fn_c_try_link "$LINENO"; then :
5705 eval $cacheid=yes
5706 else
5707 eval $cacheid=no
5708 fi
5709 rm -f core conftest.err conftest.$ac_objext \
5710 conftest$ac_exeext conftest.$ac_ext
5711 fi
5712
5713
5714 CFLAGS="$xorg_testset_save_CFLAGS"
5715
5716 eval supported=\$$cacheid
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5718 $as_echo "$supported" >&6; }
5719 if test "$supported" = "yes" ; then
5720 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5721 found="yes"
5722 fi
5723 fi
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739 xorg_testset_save_CFLAGS="$CFLAGS"
5740
5741 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5742 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5744 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5745 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5746 $as_echo_n "(cached) " >&6
5747 else
5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5750 int i;
5751 _ACEOF
5752 if ac_fn_c_try_compile "$LINENO"; then :
5753 xorg_cv_cc_flag_unknown_warning_option=yes
5754 else
5755 xorg_cv_cc_flag_unknown_warning_option=no
5756 fi
5757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5758 fi
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5760 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5762 CFLAGS="$xorg_testset_save_CFLAGS"
5763 fi
5764
5765 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5768 fi
5769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5771 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5772 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5773 $as_echo_n "(cached) " >&6
5774 else
5775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776 /* end confdefs.h. */
5777 int i;
5778 _ACEOF
5779 if ac_fn_c_try_compile "$LINENO"; then :
5780 xorg_cv_cc_flag_unused_command_line_argument=yes
5781 else
5782 xorg_cv_cc_flag_unused_command_line_argument=no
5783 fi
5784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5785 fi
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5787 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5788 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5789 CFLAGS="$xorg_testset_save_CFLAGS"
5790 fi
5791
5792 found="no"
5793
5794 if test $found = "no" ; then
5795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5797 fi
5798
5799 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5801 fi
5802
5803 CFLAGS="$CFLAGS -Wold-style-definition"
5804
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5806 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5807 cacheid=xorg_cv_cc_flag__Wold_style_definition
5808 if eval \${$cacheid+:} false; then :
5809 $as_echo_n "(cached) " >&6
5810 else
5811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812 /* end confdefs.h. */
5813 int i;
5814 int
5815 main ()
5816 {
5817
5818 ;
5819 return 0;
5820 }
5821 _ACEOF
5822 if ac_fn_c_try_link "$LINENO"; then :
5823 eval $cacheid=yes
5824 else
5825 eval $cacheid=no
5826 fi
5827 rm -f core conftest.err conftest.$ac_objext \
5828 conftest$ac_exeext conftest.$ac_ext
5829 fi
5830
5831
5832 CFLAGS="$xorg_testset_save_CFLAGS"
5833
5834 eval supported=\$$cacheid
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5836 $as_echo "$supported" >&6; }
5837 if test "$supported" = "yes" ; then
5838 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5839 found="yes"
5840 fi
5841 fi
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857 xorg_testset_save_CFLAGS="$CFLAGS"
5858
5859 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5862 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5863 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5864 $as_echo_n "(cached) " >&6
5865 else
5866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5867 /* end confdefs.h. */
5868 int i;
5869 _ACEOF
5870 if ac_fn_c_try_compile "$LINENO"; then :
5871 xorg_cv_cc_flag_unknown_warning_option=yes
5872 else
5873 xorg_cv_cc_flag_unknown_warning_option=no
5874 fi
5875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5876 fi
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5878 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5879 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5880 CFLAGS="$xorg_testset_save_CFLAGS"
5881 fi
5882
5883 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5886 fi
5887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5889 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5890 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5891 $as_echo_n "(cached) " >&6
5892 else
5893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5894 /* end confdefs.h. */
5895 int i;
5896 _ACEOF
5897 if ac_fn_c_try_compile "$LINENO"; then :
5898 xorg_cv_cc_flag_unused_command_line_argument=yes
5899 else
5900 xorg_cv_cc_flag_unused_command_line_argument=no
5901 fi
5902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5903 fi
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5905 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5906 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5907 CFLAGS="$xorg_testset_save_CFLAGS"
5908 fi
5909
5910 found="no"
5911
5912 if test $found = "no" ; then
5913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5915 fi
5916
5917 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5919 fi
5920
5921 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5922
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5924 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5925 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5926 if eval \${$cacheid+:} false; then :
5927 $as_echo_n "(cached) " >&6
5928 else
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930 /* end confdefs.h. */
5931 int i;
5932 int
5933 main ()
5934 {
5935
5936 ;
5937 return 0;
5938 }
5939 _ACEOF
5940 if ac_fn_c_try_link "$LINENO"; then :
5941 eval $cacheid=yes
5942 else
5943 eval $cacheid=no
5944 fi
5945 rm -f core conftest.err conftest.$ac_objext \
5946 conftest$ac_exeext conftest.$ac_ext
5947 fi
5948
5949
5950 CFLAGS="$xorg_testset_save_CFLAGS"
5951
5952 eval supported=\$$cacheid
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5954 $as_echo "$supported" >&6; }
5955 if test "$supported" = "yes" ; then
5956 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5957 found="yes"
5958 fi
5959 fi
5960
5961
5962
5963
5964
5965 # This chunk adds additional warnings that could catch undesired effects.
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979 xorg_testset_save_CFLAGS="$CFLAGS"
5980
5981 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5984 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5985 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5986 $as_echo_n "(cached) " >&6
5987 else
5988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5989 /* end confdefs.h. */
5990 int i;
5991 _ACEOF
5992 if ac_fn_c_try_compile "$LINENO"; then :
5993 xorg_cv_cc_flag_unknown_warning_option=yes
5994 else
5995 xorg_cv_cc_flag_unknown_warning_option=no
5996 fi
5997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5998 fi
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6000 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6001 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6002 CFLAGS="$xorg_testset_save_CFLAGS"
6003 fi
6004
6005 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6007 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6008 fi
6009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6011 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6012 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6013 $as_echo_n "(cached) " >&6
6014 else
6015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016 /* end confdefs.h. */
6017 int i;
6018 _ACEOF
6019 if ac_fn_c_try_compile "$LINENO"; then :
6020 xorg_cv_cc_flag_unused_command_line_argument=yes
6021 else
6022 xorg_cv_cc_flag_unused_command_line_argument=no
6023 fi
6024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6025 fi
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6027 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6028 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6029 CFLAGS="$xorg_testset_save_CFLAGS"
6030 fi
6031
6032 found="no"
6033
6034 if test $found = "no" ; then
6035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6037 fi
6038
6039 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6041 fi
6042
6043 CFLAGS="$CFLAGS -Wunused"
6044
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6046 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6047 cacheid=xorg_cv_cc_flag__Wunused
6048 if eval \${$cacheid+:} false; then :
6049 $as_echo_n "(cached) " >&6
6050 else
6051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6052 /* end confdefs.h. */
6053 int i;
6054 int
6055 main ()
6056 {
6057
6058 ;
6059 return 0;
6060 }
6061 _ACEOF
6062 if ac_fn_c_try_link "$LINENO"; then :
6063 eval $cacheid=yes
6064 else
6065 eval $cacheid=no
6066 fi
6067 rm -f core conftest.err conftest.$ac_objext \
6068 conftest$ac_exeext conftest.$ac_ext
6069 fi
6070
6071
6072 CFLAGS="$xorg_testset_save_CFLAGS"
6073
6074 eval supported=\$$cacheid
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6076 $as_echo "$supported" >&6; }
6077 if test "$supported" = "yes" ; then
6078 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6079 found="yes"
6080 fi
6081 fi
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097 xorg_testset_save_CFLAGS="$CFLAGS"
6098
6099 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6102 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6103 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6104 $as_echo_n "(cached) " >&6
6105 else
6106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6107 /* end confdefs.h. */
6108 int i;
6109 _ACEOF
6110 if ac_fn_c_try_compile "$LINENO"; then :
6111 xorg_cv_cc_flag_unknown_warning_option=yes
6112 else
6113 xorg_cv_cc_flag_unknown_warning_option=no
6114 fi
6115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6116 fi
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6118 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6119 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6120 CFLAGS="$xorg_testset_save_CFLAGS"
6121 fi
6122
6123 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6126 fi
6127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6129 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6130 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6131 $as_echo_n "(cached) " >&6
6132 else
6133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h. */
6135 int i;
6136 _ACEOF
6137 if ac_fn_c_try_compile "$LINENO"; then :
6138 xorg_cv_cc_flag_unused_command_line_argument=yes
6139 else
6140 xorg_cv_cc_flag_unused_command_line_argument=no
6141 fi
6142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6143 fi
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6145 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6146 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6147 CFLAGS="$xorg_testset_save_CFLAGS"
6148 fi
6149
6150 found="no"
6151
6152 if test $found = "no" ; then
6153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6154 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6155 fi
6156
6157 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6159 fi
6160
6161 CFLAGS="$CFLAGS -Wuninitialized"
6162
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6164 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6165 cacheid=xorg_cv_cc_flag__Wuninitialized
6166 if eval \${$cacheid+:} false; then :
6167 $as_echo_n "(cached) " >&6
6168 else
6169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6170 /* end confdefs.h. */
6171 int i;
6172 int
6173 main ()
6174 {
6175
6176 ;
6177 return 0;
6178 }
6179 _ACEOF
6180 if ac_fn_c_try_link "$LINENO"; then :
6181 eval $cacheid=yes
6182 else
6183 eval $cacheid=no
6184 fi
6185 rm -f core conftest.err conftest.$ac_objext \
6186 conftest$ac_exeext conftest.$ac_ext
6187 fi
6188
6189
6190 CFLAGS="$xorg_testset_save_CFLAGS"
6191
6192 eval supported=\$$cacheid
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6194 $as_echo "$supported" >&6; }
6195 if test "$supported" = "yes" ; then
6196 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6197 found="yes"
6198 fi
6199 fi
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215 xorg_testset_save_CFLAGS="$CFLAGS"
6216
6217 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6220 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6221 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6222 $as_echo_n "(cached) " >&6
6223 else
6224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h. */
6226 int i;
6227 _ACEOF
6228 if ac_fn_c_try_compile "$LINENO"; then :
6229 xorg_cv_cc_flag_unknown_warning_option=yes
6230 else
6231 xorg_cv_cc_flag_unknown_warning_option=no
6232 fi
6233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6234 fi
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6236 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6237 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6238 CFLAGS="$xorg_testset_save_CFLAGS"
6239 fi
6240
6241 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6243 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6244 fi
6245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6247 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6248 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6249 $as_echo_n "(cached) " >&6
6250 else
6251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6252 /* end confdefs.h. */
6253 int i;
6254 _ACEOF
6255 if ac_fn_c_try_compile "$LINENO"; then :
6256 xorg_cv_cc_flag_unused_command_line_argument=yes
6257 else
6258 xorg_cv_cc_flag_unused_command_line_argument=no
6259 fi
6260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6261 fi
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6263 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6264 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6265 CFLAGS="$xorg_testset_save_CFLAGS"
6266 fi
6267
6268 found="no"
6269
6270 if test $found = "no" ; then
6271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6273 fi
6274
6275 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6277 fi
6278
6279 CFLAGS="$CFLAGS -Wshadow"
6280
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6282 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6283 cacheid=xorg_cv_cc_flag__Wshadow
6284 if eval \${$cacheid+:} false; then :
6285 $as_echo_n "(cached) " >&6
6286 else
6287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6288 /* end confdefs.h. */
6289 int i;
6290 int
6291 main ()
6292 {
6293
6294 ;
6295 return 0;
6296 }
6297 _ACEOF
6298 if ac_fn_c_try_link "$LINENO"; then :
6299 eval $cacheid=yes
6300 else
6301 eval $cacheid=no
6302 fi
6303 rm -f core conftest.err conftest.$ac_objext \
6304 conftest$ac_exeext conftest.$ac_ext
6305 fi
6306
6307
6308 CFLAGS="$xorg_testset_save_CFLAGS"
6309
6310 eval supported=\$$cacheid
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6312 $as_echo "$supported" >&6; }
6313 if test "$supported" = "yes" ; then
6314 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6315 found="yes"
6316 fi
6317 fi
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333 xorg_testset_save_CFLAGS="$CFLAGS"
6334
6335 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6338 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6339 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6340 $as_echo_n "(cached) " >&6
6341 else
6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h. */
6344 int i;
6345 _ACEOF
6346 if ac_fn_c_try_compile "$LINENO"; then :
6347 xorg_cv_cc_flag_unknown_warning_option=yes
6348 else
6349 xorg_cv_cc_flag_unknown_warning_option=no
6350 fi
6351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6352 fi
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6354 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6355 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6356 CFLAGS="$xorg_testset_save_CFLAGS"
6357 fi
6358
6359 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6361 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6362 fi
6363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6365 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6366 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6367 $as_echo_n "(cached) " >&6
6368 else
6369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370 /* end confdefs.h. */
6371 int i;
6372 _ACEOF
6373 if ac_fn_c_try_compile "$LINENO"; then :
6374 xorg_cv_cc_flag_unused_command_line_argument=yes
6375 else
6376 xorg_cv_cc_flag_unused_command_line_argument=no
6377 fi
6378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6379 fi
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6381 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6382 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6383 CFLAGS="$xorg_testset_save_CFLAGS"
6384 fi
6385
6386 found="no"
6387
6388 if test $found = "no" ; then
6389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6391 fi
6392
6393 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6395 fi
6396
6397 CFLAGS="$CFLAGS -Wcast-qual"
6398
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6400 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6401 cacheid=xorg_cv_cc_flag__Wcast_qual
6402 if eval \${$cacheid+:} false; then :
6403 $as_echo_n "(cached) " >&6
6404 else
6405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6406 /* end confdefs.h. */
6407 int i;
6408 int
6409 main ()
6410 {
6411
6412 ;
6413 return 0;
6414 }
6415 _ACEOF
6416 if ac_fn_c_try_link "$LINENO"; then :
6417 eval $cacheid=yes
6418 else
6419 eval $cacheid=no
6420 fi
6421 rm -f core conftest.err conftest.$ac_objext \
6422 conftest$ac_exeext conftest.$ac_ext
6423 fi
6424
6425
6426 CFLAGS="$xorg_testset_save_CFLAGS"
6427
6428 eval supported=\$$cacheid
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6430 $as_echo "$supported" >&6; }
6431 if test "$supported" = "yes" ; then
6432 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6433 found="yes"
6434 fi
6435 fi
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451 xorg_testset_save_CFLAGS="$CFLAGS"
6452
6453 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6456 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6457 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6458 $as_echo_n "(cached) " >&6
6459 else
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6462 int i;
6463 _ACEOF
6464 if ac_fn_c_try_compile "$LINENO"; then :
6465 xorg_cv_cc_flag_unknown_warning_option=yes
6466 else
6467 xorg_cv_cc_flag_unknown_warning_option=no
6468 fi
6469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6470 fi
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6472 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6473 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6474 CFLAGS="$xorg_testset_save_CFLAGS"
6475 fi
6476
6477 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6479 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6480 fi
6481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6483 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6484 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6485 $as_echo_n "(cached) " >&6
6486 else
6487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488 /* end confdefs.h. */
6489 int i;
6490 _ACEOF
6491 if ac_fn_c_try_compile "$LINENO"; then :
6492 xorg_cv_cc_flag_unused_command_line_argument=yes
6493 else
6494 xorg_cv_cc_flag_unused_command_line_argument=no
6495 fi
6496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6497 fi
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6499 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6500 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6501 CFLAGS="$xorg_testset_save_CFLAGS"
6502 fi
6503
6504 found="no"
6505
6506 if test $found = "no" ; then
6507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6509 fi
6510
6511 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6513 fi
6514
6515 CFLAGS="$CFLAGS -Wmissing-noreturn"
6516
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6518 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6519 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6520 if eval \${$cacheid+:} false; then :
6521 $as_echo_n "(cached) " >&6
6522 else
6523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h. */
6525 int i;
6526 int
6527 main ()
6528 {
6529
6530 ;
6531 return 0;
6532 }
6533 _ACEOF
6534 if ac_fn_c_try_link "$LINENO"; then :
6535 eval $cacheid=yes
6536 else
6537 eval $cacheid=no
6538 fi
6539 rm -f core conftest.err conftest.$ac_objext \
6540 conftest$ac_exeext conftest.$ac_ext
6541 fi
6542
6543
6544 CFLAGS="$xorg_testset_save_CFLAGS"
6545
6546 eval supported=\$$cacheid
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6548 $as_echo "$supported" >&6; }
6549 if test "$supported" = "yes" ; then
6550 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6551 found="yes"
6552 fi
6553 fi
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569 xorg_testset_save_CFLAGS="$CFLAGS"
6570
6571 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6574 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6575 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6576 $as_echo_n "(cached) " >&6
6577 else
6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579 /* end confdefs.h. */
6580 int i;
6581 _ACEOF
6582 if ac_fn_c_try_compile "$LINENO"; then :
6583 xorg_cv_cc_flag_unknown_warning_option=yes
6584 else
6585 xorg_cv_cc_flag_unknown_warning_option=no
6586 fi
6587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6588 fi
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6590 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6591 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6592 CFLAGS="$xorg_testset_save_CFLAGS"
6593 fi
6594
6595 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6597 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6598 fi
6599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6601 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6602 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6603 $as_echo_n "(cached) " >&6
6604 else
6605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6606 /* end confdefs.h. */
6607 int i;
6608 _ACEOF
6609 if ac_fn_c_try_compile "$LINENO"; then :
6610 xorg_cv_cc_flag_unused_command_line_argument=yes
6611 else
6612 xorg_cv_cc_flag_unused_command_line_argument=no
6613 fi
6614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6615 fi
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6617 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6618 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6619 CFLAGS="$xorg_testset_save_CFLAGS"
6620 fi
6621
6622 found="no"
6623
6624 if test $found = "no" ; then
6625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6627 fi
6628
6629 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6631 fi
6632
6633 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6634
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6636 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6637 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6638 if eval \${$cacheid+:} false; then :
6639 $as_echo_n "(cached) " >&6
6640 else
6641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6642 /* end confdefs.h. */
6643 int i;
6644 int
6645 main ()
6646 {
6647
6648 ;
6649 return 0;
6650 }
6651 _ACEOF
6652 if ac_fn_c_try_link "$LINENO"; then :
6653 eval $cacheid=yes
6654 else
6655 eval $cacheid=no
6656 fi
6657 rm -f core conftest.err conftest.$ac_objext \
6658 conftest$ac_exeext conftest.$ac_ext
6659 fi
6660
6661
6662 CFLAGS="$xorg_testset_save_CFLAGS"
6663
6664 eval supported=\$$cacheid
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6666 $as_echo "$supported" >&6; }
6667 if test "$supported" = "yes" ; then
6668 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6669 found="yes"
6670 fi
6671 fi
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687 xorg_testset_save_CFLAGS="$CFLAGS"
6688
6689 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6692 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6693 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6694 $as_echo_n "(cached) " >&6
6695 else
6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h. */
6698 int i;
6699 _ACEOF
6700 if ac_fn_c_try_compile "$LINENO"; then :
6701 xorg_cv_cc_flag_unknown_warning_option=yes
6702 else
6703 xorg_cv_cc_flag_unknown_warning_option=no
6704 fi
6705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6706 fi
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6708 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6709 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6710 CFLAGS="$xorg_testset_save_CFLAGS"
6711 fi
6712
6713 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6716 fi
6717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6719 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6720 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6721 $as_echo_n "(cached) " >&6
6722 else
6723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724 /* end confdefs.h. */
6725 int i;
6726 _ACEOF
6727 if ac_fn_c_try_compile "$LINENO"; then :
6728 xorg_cv_cc_flag_unused_command_line_argument=yes
6729 else
6730 xorg_cv_cc_flag_unused_command_line_argument=no
6731 fi
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6733 fi
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6735 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6736 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6737 CFLAGS="$xorg_testset_save_CFLAGS"
6738 fi
6739
6740 found="no"
6741
6742 if test $found = "no" ; then
6743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6745 fi
6746
6747 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6749 fi
6750
6751 CFLAGS="$CFLAGS -Wredundant-decls"
6752
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6754 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6755 cacheid=xorg_cv_cc_flag__Wredundant_decls
6756 if eval \${$cacheid+:} false; then :
6757 $as_echo_n "(cached) " >&6
6758 else
6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760 /* end confdefs.h. */
6761 int i;
6762 int
6763 main ()
6764 {
6765
6766 ;
6767 return 0;
6768 }
6769 _ACEOF
6770 if ac_fn_c_try_link "$LINENO"; then :
6771 eval $cacheid=yes
6772 else
6773 eval $cacheid=no
6774 fi
6775 rm -f core conftest.err conftest.$ac_objext \
6776 conftest$ac_exeext conftest.$ac_ext
6777 fi
6778
6779
6780 CFLAGS="$xorg_testset_save_CFLAGS"
6781
6782 eval supported=\$$cacheid
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6784 $as_echo "$supported" >&6; }
6785 if test "$supported" = "yes" ; then
6786 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6787 found="yes"
6788 fi
6789 fi
6790
6791
6792
6793 # These are currently disabled because they are noisy. They will be enabled
6794 # in the future once the codebase is sufficiently modernized to silence
6795 # them. For now, I don't want them to drown out the other warnings.
6796 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6797 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6798 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6799
6800 # Turn some warnings into errors, so we don't accidently get successful builds
6801 # when there are problems that should be fixed.
6802
6803 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817 xorg_testset_save_CFLAGS="$CFLAGS"
6818
6819 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6822 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6823 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6824 $as_echo_n "(cached) " >&6
6825 else
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h. */
6828 int i;
6829 _ACEOF
6830 if ac_fn_c_try_compile "$LINENO"; then :
6831 xorg_cv_cc_flag_unknown_warning_option=yes
6832 else
6833 xorg_cv_cc_flag_unknown_warning_option=no
6834 fi
6835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6836 fi
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6838 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6840 CFLAGS="$xorg_testset_save_CFLAGS"
6841 fi
6842
6843 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6846 fi
6847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6849 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6850 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6851 $as_echo_n "(cached) " >&6
6852 else
6853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6854 /* end confdefs.h. */
6855 int i;
6856 _ACEOF
6857 if ac_fn_c_try_compile "$LINENO"; then :
6858 xorg_cv_cc_flag_unused_command_line_argument=yes
6859 else
6860 xorg_cv_cc_flag_unused_command_line_argument=no
6861 fi
6862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6863 fi
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6865 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6866 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6867 CFLAGS="$xorg_testset_save_CFLAGS"
6868 fi
6869
6870 found="no"
6871
6872 if test $found = "no" ; then
6873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6875 fi
6876
6877 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6879 fi
6880
6881 CFLAGS="$CFLAGS -Werror=implicit"
6882
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6884 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6885 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6886 if eval \${$cacheid+:} false; then :
6887 $as_echo_n "(cached) " >&6
6888 else
6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6891 int i;
6892 int
6893 main ()
6894 {
6895
6896 ;
6897 return 0;
6898 }
6899 _ACEOF
6900 if ac_fn_c_try_link "$LINENO"; then :
6901 eval $cacheid=yes
6902 else
6903 eval $cacheid=no
6904 fi
6905 rm -f core conftest.err conftest.$ac_objext \
6906 conftest$ac_exeext conftest.$ac_ext
6907 fi
6908
6909
6910 CFLAGS="$xorg_testset_save_CFLAGS"
6911
6912 eval supported=\$$cacheid
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6914 $as_echo "$supported" >&6; }
6915 if test "$supported" = "yes" ; then
6916 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6917 found="yes"
6918 fi
6919 fi
6920
6921 if test $found = "no" ; then
6922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6924 fi
6925
6926 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6928 fi
6929
6930 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6931
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6933 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6934 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6935 if eval \${$cacheid+:} false; then :
6936 $as_echo_n "(cached) " >&6
6937 else
6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h. */
6940 int i;
6941 int
6942 main ()
6943 {
6944
6945 ;
6946 return 0;
6947 }
6948 _ACEOF
6949 if ac_fn_c_try_link "$LINENO"; then :
6950 eval $cacheid=yes
6951 else
6952 eval $cacheid=no
6953 fi
6954 rm -f core conftest.err conftest.$ac_objext \
6955 conftest$ac_exeext conftest.$ac_ext
6956 fi
6957
6958
6959 CFLAGS="$xorg_testset_save_CFLAGS"
6960
6961 eval supported=\$$cacheid
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6963 $as_echo "$supported" >&6; }
6964 if test "$supported" = "yes" ; then
6965 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6966 found="yes"
6967 fi
6968 fi
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984 xorg_testset_save_CFLAGS="$CFLAGS"
6985
6986 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6989 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6990 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6991 $as_echo_n "(cached) " >&6
6992 else
6993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994 /* end confdefs.h. */
6995 int i;
6996 _ACEOF
6997 if ac_fn_c_try_compile "$LINENO"; then :
6998 xorg_cv_cc_flag_unknown_warning_option=yes
6999 else
7000 xorg_cv_cc_flag_unknown_warning_option=no
7001 fi
7002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7003 fi
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7005 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7006 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7007 CFLAGS="$xorg_testset_save_CFLAGS"
7008 fi
7009
7010 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7013 fi
7014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7016 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7017 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7018 $as_echo_n "(cached) " >&6
7019 else
7020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021 /* end confdefs.h. */
7022 int i;
7023 _ACEOF
7024 if ac_fn_c_try_compile "$LINENO"; then :
7025 xorg_cv_cc_flag_unused_command_line_argument=yes
7026 else
7027 xorg_cv_cc_flag_unused_command_line_argument=no
7028 fi
7029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7030 fi
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7032 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7033 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7034 CFLAGS="$xorg_testset_save_CFLAGS"
7035 fi
7036
7037 found="no"
7038
7039 if test $found = "no" ; then
7040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7042 fi
7043
7044 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7046 fi
7047
7048 CFLAGS="$CFLAGS -Werror=nonnull"
7049
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7051 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7052 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7053 if eval \${$cacheid+:} false; then :
7054 $as_echo_n "(cached) " >&6
7055 else
7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h. */
7058 int i;
7059 int
7060 main ()
7061 {
7062
7063 ;
7064 return 0;
7065 }
7066 _ACEOF
7067 if ac_fn_c_try_link "$LINENO"; then :
7068 eval $cacheid=yes
7069 else
7070 eval $cacheid=no
7071 fi
7072 rm -f core conftest.err conftest.$ac_objext \
7073 conftest$ac_exeext conftest.$ac_ext
7074 fi
7075
7076
7077 CFLAGS="$xorg_testset_save_CFLAGS"
7078
7079 eval supported=\$$cacheid
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7081 $as_echo "$supported" >&6; }
7082 if test "$supported" = "yes" ; then
7083 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7084 found="yes"
7085 fi
7086 fi
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102 xorg_testset_save_CFLAGS="$CFLAGS"
7103
7104 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7107 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7108 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7109 $as_echo_n "(cached) " >&6
7110 else
7111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h. */
7113 int i;
7114 _ACEOF
7115 if ac_fn_c_try_compile "$LINENO"; then :
7116 xorg_cv_cc_flag_unknown_warning_option=yes
7117 else
7118 xorg_cv_cc_flag_unknown_warning_option=no
7119 fi
7120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7121 fi
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7123 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7124 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7125 CFLAGS="$xorg_testset_save_CFLAGS"
7126 fi
7127
7128 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7131 fi
7132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7134 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7135 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7136 $as_echo_n "(cached) " >&6
7137 else
7138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7139 /* end confdefs.h. */
7140 int i;
7141 _ACEOF
7142 if ac_fn_c_try_compile "$LINENO"; then :
7143 xorg_cv_cc_flag_unused_command_line_argument=yes
7144 else
7145 xorg_cv_cc_flag_unused_command_line_argument=no
7146 fi
7147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7148 fi
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7150 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7151 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7152 CFLAGS="$xorg_testset_save_CFLAGS"
7153 fi
7154
7155 found="no"
7156
7157 if test $found = "no" ; then
7158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7160 fi
7161
7162 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7164 fi
7165
7166 CFLAGS="$CFLAGS -Werror=init-self"
7167
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7169 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7170 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7171 if eval \${$cacheid+:} false; then :
7172 $as_echo_n "(cached) " >&6
7173 else
7174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h. */
7176 int i;
7177 int
7178 main ()
7179 {
7180
7181 ;
7182 return 0;
7183 }
7184 _ACEOF
7185 if ac_fn_c_try_link "$LINENO"; then :
7186 eval $cacheid=yes
7187 else
7188 eval $cacheid=no
7189 fi
7190 rm -f core conftest.err conftest.$ac_objext \
7191 conftest$ac_exeext conftest.$ac_ext
7192 fi
7193
7194
7195 CFLAGS="$xorg_testset_save_CFLAGS"
7196
7197 eval supported=\$$cacheid
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7199 $as_echo "$supported" >&6; }
7200 if test "$supported" = "yes" ; then
7201 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7202 found="yes"
7203 fi
7204 fi
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220 xorg_testset_save_CFLAGS="$CFLAGS"
7221
7222 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7225 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7226 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7227 $as_echo_n "(cached) " >&6
7228 else
7229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7230 /* end confdefs.h. */
7231 int i;
7232 _ACEOF
7233 if ac_fn_c_try_compile "$LINENO"; then :
7234 xorg_cv_cc_flag_unknown_warning_option=yes
7235 else
7236 xorg_cv_cc_flag_unknown_warning_option=no
7237 fi
7238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7239 fi
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7241 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7243 CFLAGS="$xorg_testset_save_CFLAGS"
7244 fi
7245
7246 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7249 fi
7250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7252 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7253 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7254 $as_echo_n "(cached) " >&6
7255 else
7256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7257 /* end confdefs.h. */
7258 int i;
7259 _ACEOF
7260 if ac_fn_c_try_compile "$LINENO"; then :
7261 xorg_cv_cc_flag_unused_command_line_argument=yes
7262 else
7263 xorg_cv_cc_flag_unused_command_line_argument=no
7264 fi
7265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7266 fi
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7268 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7269 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7270 CFLAGS="$xorg_testset_save_CFLAGS"
7271 fi
7272
7273 found="no"
7274
7275 if test $found = "no" ; then
7276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7278 fi
7279
7280 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7282 fi
7283
7284 CFLAGS="$CFLAGS -Werror=main"
7285
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7287 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7288 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7289 if eval \${$cacheid+:} false; then :
7290 $as_echo_n "(cached) " >&6
7291 else
7292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293 /* end confdefs.h. */
7294 int i;
7295 int
7296 main ()
7297 {
7298
7299 ;
7300 return 0;
7301 }
7302 _ACEOF
7303 if ac_fn_c_try_link "$LINENO"; then :
7304 eval $cacheid=yes
7305 else
7306 eval $cacheid=no
7307 fi
7308 rm -f core conftest.err conftest.$ac_objext \
7309 conftest$ac_exeext conftest.$ac_ext
7310 fi
7311
7312
7313 CFLAGS="$xorg_testset_save_CFLAGS"
7314
7315 eval supported=\$$cacheid
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7317 $as_echo "$supported" >&6; }
7318 if test "$supported" = "yes" ; then
7319 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7320 found="yes"
7321 fi
7322 fi
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338 xorg_testset_save_CFLAGS="$CFLAGS"
7339
7340 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7343 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7344 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7345 $as_echo_n "(cached) " >&6
7346 else
7347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348 /* end confdefs.h. */
7349 int i;
7350 _ACEOF
7351 if ac_fn_c_try_compile "$LINENO"; then :
7352 xorg_cv_cc_flag_unknown_warning_option=yes
7353 else
7354 xorg_cv_cc_flag_unknown_warning_option=no
7355 fi
7356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357 fi
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7359 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7360 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7361 CFLAGS="$xorg_testset_save_CFLAGS"
7362 fi
7363
7364 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7367 fi
7368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7370 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7371 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7372 $as_echo_n "(cached) " >&6
7373 else
7374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7375 /* end confdefs.h. */
7376 int i;
7377 _ACEOF
7378 if ac_fn_c_try_compile "$LINENO"; then :
7379 xorg_cv_cc_flag_unused_command_line_argument=yes
7380 else
7381 xorg_cv_cc_flag_unused_command_line_argument=no
7382 fi
7383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7384 fi
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7386 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7387 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7388 CFLAGS="$xorg_testset_save_CFLAGS"
7389 fi
7390
7391 found="no"
7392
7393 if test $found = "no" ; then
7394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7396 fi
7397
7398 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7400 fi
7401
7402 CFLAGS="$CFLAGS -Werror=missing-braces"
7403
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7405 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7406 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7407 if eval \${$cacheid+:} false; then :
7408 $as_echo_n "(cached) " >&6
7409 else
7410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411 /* end confdefs.h. */
7412 int i;
7413 int
7414 main ()
7415 {
7416
7417 ;
7418 return 0;
7419 }
7420 _ACEOF
7421 if ac_fn_c_try_link "$LINENO"; then :
7422 eval $cacheid=yes
7423 else
7424 eval $cacheid=no
7425 fi
7426 rm -f core conftest.err conftest.$ac_objext \
7427 conftest$ac_exeext conftest.$ac_ext
7428 fi
7429
7430
7431 CFLAGS="$xorg_testset_save_CFLAGS"
7432
7433 eval supported=\$$cacheid
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7435 $as_echo "$supported" >&6; }
7436 if test "$supported" = "yes" ; then
7437 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7438 found="yes"
7439 fi
7440 fi
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456 xorg_testset_save_CFLAGS="$CFLAGS"
7457
7458 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7461 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7462 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7463 $as_echo_n "(cached) " >&6
7464 else
7465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7466 /* end confdefs.h. */
7467 int i;
7468 _ACEOF
7469 if ac_fn_c_try_compile "$LINENO"; then :
7470 xorg_cv_cc_flag_unknown_warning_option=yes
7471 else
7472 xorg_cv_cc_flag_unknown_warning_option=no
7473 fi
7474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7475 fi
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7477 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7478 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7479 CFLAGS="$xorg_testset_save_CFLAGS"
7480 fi
7481
7482 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7485 fi
7486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7488 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7489 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7490 $as_echo_n "(cached) " >&6
7491 else
7492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7493 /* end confdefs.h. */
7494 int i;
7495 _ACEOF
7496 if ac_fn_c_try_compile "$LINENO"; then :
7497 xorg_cv_cc_flag_unused_command_line_argument=yes
7498 else
7499 xorg_cv_cc_flag_unused_command_line_argument=no
7500 fi
7501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7502 fi
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7504 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7505 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7506 CFLAGS="$xorg_testset_save_CFLAGS"
7507 fi
7508
7509 found="no"
7510
7511 if test $found = "no" ; then
7512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7514 fi
7515
7516 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7518 fi
7519
7520 CFLAGS="$CFLAGS -Werror=sequence-point"
7521
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7523 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7524 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7525 if eval \${$cacheid+:} false; then :
7526 $as_echo_n "(cached) " >&6
7527 else
7528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7529 /* end confdefs.h. */
7530 int i;
7531 int
7532 main ()
7533 {
7534
7535 ;
7536 return 0;
7537 }
7538 _ACEOF
7539 if ac_fn_c_try_link "$LINENO"; then :
7540 eval $cacheid=yes
7541 else
7542 eval $cacheid=no
7543 fi
7544 rm -f core conftest.err conftest.$ac_objext \
7545 conftest$ac_exeext conftest.$ac_ext
7546 fi
7547
7548
7549 CFLAGS="$xorg_testset_save_CFLAGS"
7550
7551 eval supported=\$$cacheid
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7553 $as_echo "$supported" >&6; }
7554 if test "$supported" = "yes" ; then
7555 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7556 found="yes"
7557 fi
7558 fi
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574 xorg_testset_save_CFLAGS="$CFLAGS"
7575
7576 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7579 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7580 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7581 $as_echo_n "(cached) " >&6
7582 else
7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584 /* end confdefs.h. */
7585 int i;
7586 _ACEOF
7587 if ac_fn_c_try_compile "$LINENO"; then :
7588 xorg_cv_cc_flag_unknown_warning_option=yes
7589 else
7590 xorg_cv_cc_flag_unknown_warning_option=no
7591 fi
7592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7593 fi
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7595 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7596 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7597 CFLAGS="$xorg_testset_save_CFLAGS"
7598 fi
7599
7600 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7603 fi
7604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7606 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7607 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7608 $as_echo_n "(cached) " >&6
7609 else
7610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7611 /* end confdefs.h. */
7612 int i;
7613 _ACEOF
7614 if ac_fn_c_try_compile "$LINENO"; then :
7615 xorg_cv_cc_flag_unused_command_line_argument=yes
7616 else
7617 xorg_cv_cc_flag_unused_command_line_argument=no
7618 fi
7619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7620 fi
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7622 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7623 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7624 CFLAGS="$xorg_testset_save_CFLAGS"
7625 fi
7626
7627 found="no"
7628
7629 if test $found = "no" ; then
7630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7632 fi
7633
7634 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7636 fi
7637
7638 CFLAGS="$CFLAGS -Werror=return-type"
7639
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7641 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7642 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7643 if eval \${$cacheid+:} false; then :
7644 $as_echo_n "(cached) " >&6
7645 else
7646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647 /* end confdefs.h. */
7648 int i;
7649 int
7650 main ()
7651 {
7652
7653 ;
7654 return 0;
7655 }
7656 _ACEOF
7657 if ac_fn_c_try_link "$LINENO"; then :
7658 eval $cacheid=yes
7659 else
7660 eval $cacheid=no
7661 fi
7662 rm -f core conftest.err conftest.$ac_objext \
7663 conftest$ac_exeext conftest.$ac_ext
7664 fi
7665
7666
7667 CFLAGS="$xorg_testset_save_CFLAGS"
7668
7669 eval supported=\$$cacheid
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7671 $as_echo "$supported" >&6; }
7672 if test "$supported" = "yes" ; then
7673 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7674 found="yes"
7675 fi
7676 fi
7677
7678 if test $found = "no" ; then
7679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7681 fi
7682
7683 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7685 fi
7686
7687 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7688
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7690 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7691 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7692 if eval \${$cacheid+:} false; then :
7693 $as_echo_n "(cached) " >&6
7694 else
7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h. */
7697 int i;
7698 int
7699 main ()
7700 {
7701
7702 ;
7703 return 0;
7704 }
7705 _ACEOF
7706 if ac_fn_c_try_link "$LINENO"; then :
7707 eval $cacheid=yes
7708 else
7709 eval $cacheid=no
7710 fi
7711 rm -f core conftest.err conftest.$ac_objext \
7712 conftest$ac_exeext conftest.$ac_ext
7713 fi
7714
7715
7716 CFLAGS="$xorg_testset_save_CFLAGS"
7717
7718 eval supported=\$$cacheid
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7720 $as_echo "$supported" >&6; }
7721 if test "$supported" = "yes" ; then
7722 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7723 found="yes"
7724 fi
7725 fi
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741 xorg_testset_save_CFLAGS="$CFLAGS"
7742
7743 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7746 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7747 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7748 $as_echo_n "(cached) " >&6
7749 else
7750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751 /* end confdefs.h. */
7752 int i;
7753 _ACEOF
7754 if ac_fn_c_try_compile "$LINENO"; then :
7755 xorg_cv_cc_flag_unknown_warning_option=yes
7756 else
7757 xorg_cv_cc_flag_unknown_warning_option=no
7758 fi
7759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7760 fi
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7762 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7763 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7764 CFLAGS="$xorg_testset_save_CFLAGS"
7765 fi
7766
7767 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7770 fi
7771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7773 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7774 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7775 $as_echo_n "(cached) " >&6
7776 else
7777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h. */
7779 int i;
7780 _ACEOF
7781 if ac_fn_c_try_compile "$LINENO"; then :
7782 xorg_cv_cc_flag_unused_command_line_argument=yes
7783 else
7784 xorg_cv_cc_flag_unused_command_line_argument=no
7785 fi
7786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7787 fi
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7789 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7791 CFLAGS="$xorg_testset_save_CFLAGS"
7792 fi
7793
7794 found="no"
7795
7796 if test $found = "no" ; then
7797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7799 fi
7800
7801 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7803 fi
7804
7805 CFLAGS="$CFLAGS -Werror=trigraphs"
7806
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7808 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7809 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7810 if eval \${$cacheid+:} false; then :
7811 $as_echo_n "(cached) " >&6
7812 else
7813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h. */
7815 int i;
7816 int
7817 main ()
7818 {
7819
7820 ;
7821 return 0;
7822 }
7823 _ACEOF
7824 if ac_fn_c_try_link "$LINENO"; then :
7825 eval $cacheid=yes
7826 else
7827 eval $cacheid=no
7828 fi
7829 rm -f core conftest.err conftest.$ac_objext \
7830 conftest$ac_exeext conftest.$ac_ext
7831 fi
7832
7833
7834 CFLAGS="$xorg_testset_save_CFLAGS"
7835
7836 eval supported=\$$cacheid
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7838 $as_echo "$supported" >&6; }
7839 if test "$supported" = "yes" ; then
7840 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7841 found="yes"
7842 fi
7843 fi
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859 xorg_testset_save_CFLAGS="$CFLAGS"
7860
7861 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7864 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7865 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7866 $as_echo_n "(cached) " >&6
7867 else
7868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7869 /* end confdefs.h. */
7870 int i;
7871 _ACEOF
7872 if ac_fn_c_try_compile "$LINENO"; then :
7873 xorg_cv_cc_flag_unknown_warning_option=yes
7874 else
7875 xorg_cv_cc_flag_unknown_warning_option=no
7876 fi
7877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7878 fi
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7880 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7881 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7882 CFLAGS="$xorg_testset_save_CFLAGS"
7883 fi
7884
7885 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7888 fi
7889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7891 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7892 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7893 $as_echo_n "(cached) " >&6
7894 else
7895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896 /* end confdefs.h. */
7897 int i;
7898 _ACEOF
7899 if ac_fn_c_try_compile "$LINENO"; then :
7900 xorg_cv_cc_flag_unused_command_line_argument=yes
7901 else
7902 xorg_cv_cc_flag_unused_command_line_argument=no
7903 fi
7904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7905 fi
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7907 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7908 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7909 CFLAGS="$xorg_testset_save_CFLAGS"
7910 fi
7911
7912 found="no"
7913
7914 if test $found = "no" ; then
7915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7917 fi
7918
7919 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7921 fi
7922
7923 CFLAGS="$CFLAGS -Werror=array-bounds"
7924
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7926 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7927 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7928 if eval \${$cacheid+:} false; then :
7929 $as_echo_n "(cached) " >&6
7930 else
7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h. */
7933 int i;
7934 int
7935 main ()
7936 {
7937
7938 ;
7939 return 0;
7940 }
7941 _ACEOF
7942 if ac_fn_c_try_link "$LINENO"; then :
7943 eval $cacheid=yes
7944 else
7945 eval $cacheid=no
7946 fi
7947 rm -f core conftest.err conftest.$ac_objext \
7948 conftest$ac_exeext conftest.$ac_ext
7949 fi
7950
7951
7952 CFLAGS="$xorg_testset_save_CFLAGS"
7953
7954 eval supported=\$$cacheid
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7956 $as_echo "$supported" >&6; }
7957 if test "$supported" = "yes" ; then
7958 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7959 found="yes"
7960 fi
7961 fi
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977 xorg_testset_save_CFLAGS="$CFLAGS"
7978
7979 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7982 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7983 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7984 $as_echo_n "(cached) " >&6
7985 else
7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7988 int i;
7989 _ACEOF
7990 if ac_fn_c_try_compile "$LINENO"; then :
7991 xorg_cv_cc_flag_unknown_warning_option=yes
7992 else
7993 xorg_cv_cc_flag_unknown_warning_option=no
7994 fi
7995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7996 fi
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7998 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7999 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8000 CFLAGS="$xorg_testset_save_CFLAGS"
8001 fi
8002
8003 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8006 fi
8007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8009 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8010 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8011 $as_echo_n "(cached) " >&6
8012 else
8013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014 /* end confdefs.h. */
8015 int i;
8016 _ACEOF
8017 if ac_fn_c_try_compile "$LINENO"; then :
8018 xorg_cv_cc_flag_unused_command_line_argument=yes
8019 else
8020 xorg_cv_cc_flag_unused_command_line_argument=no
8021 fi
8022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8023 fi
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8025 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8026 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8027 CFLAGS="$xorg_testset_save_CFLAGS"
8028 fi
8029
8030 found="no"
8031
8032 if test $found = "no" ; then
8033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8034 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8035 fi
8036
8037 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8039 fi
8040
8041 CFLAGS="$CFLAGS -Werror=write-strings"
8042
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8044 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8045 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8046 if eval \${$cacheid+:} false; then :
8047 $as_echo_n "(cached) " >&6
8048 else
8049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050 /* end confdefs.h. */
8051 int i;
8052 int
8053 main ()
8054 {
8055
8056 ;
8057 return 0;
8058 }
8059 _ACEOF
8060 if ac_fn_c_try_link "$LINENO"; then :
8061 eval $cacheid=yes
8062 else
8063 eval $cacheid=no
8064 fi
8065 rm -f core conftest.err conftest.$ac_objext \
8066 conftest$ac_exeext conftest.$ac_ext
8067 fi
8068
8069
8070 CFLAGS="$xorg_testset_save_CFLAGS"
8071
8072 eval supported=\$$cacheid
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8074 $as_echo "$supported" >&6; }
8075 if test "$supported" = "yes" ; then
8076 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8077 found="yes"
8078 fi
8079 fi
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095 xorg_testset_save_CFLAGS="$CFLAGS"
8096
8097 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8100 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8101 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8102 $as_echo_n "(cached) " >&6
8103 else
8104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8105 /* end confdefs.h. */
8106 int i;
8107 _ACEOF
8108 if ac_fn_c_try_compile "$LINENO"; then :
8109 xorg_cv_cc_flag_unknown_warning_option=yes
8110 else
8111 xorg_cv_cc_flag_unknown_warning_option=no
8112 fi
8113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114 fi
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8116 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8117 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8118 CFLAGS="$xorg_testset_save_CFLAGS"
8119 fi
8120
8121 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8123 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8124 fi
8125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8127 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8128 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8129 $as_echo_n "(cached) " >&6
8130 else
8131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8132 /* end confdefs.h. */
8133 int i;
8134 _ACEOF
8135 if ac_fn_c_try_compile "$LINENO"; then :
8136 xorg_cv_cc_flag_unused_command_line_argument=yes
8137 else
8138 xorg_cv_cc_flag_unused_command_line_argument=no
8139 fi
8140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8141 fi
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8143 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8144 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8145 CFLAGS="$xorg_testset_save_CFLAGS"
8146 fi
8147
8148 found="no"
8149
8150 if test $found = "no" ; then
8151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8153 fi
8154
8155 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8157 fi
8158
8159 CFLAGS="$CFLAGS -Werror=address"
8160
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8162 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8163 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8164 if eval \${$cacheid+:} false; then :
8165 $as_echo_n "(cached) " >&6
8166 else
8167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8168 /* end confdefs.h. */
8169 int i;
8170 int
8171 main ()
8172 {
8173
8174 ;
8175 return 0;
8176 }
8177 _ACEOF
8178 if ac_fn_c_try_link "$LINENO"; then :
8179 eval $cacheid=yes
8180 else
8181 eval $cacheid=no
8182 fi
8183 rm -f core conftest.err conftest.$ac_objext \
8184 conftest$ac_exeext conftest.$ac_ext
8185 fi
8186
8187
8188 CFLAGS="$xorg_testset_save_CFLAGS"
8189
8190 eval supported=\$$cacheid
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8192 $as_echo "$supported" >&6; }
8193 if test "$supported" = "yes" ; then
8194 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8195 found="yes"
8196 fi
8197 fi
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213 xorg_testset_save_CFLAGS="$CFLAGS"
8214
8215 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8218 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8219 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8220 $as_echo_n "(cached) " >&6
8221 else
8222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223 /* end confdefs.h. */
8224 int i;
8225 _ACEOF
8226 if ac_fn_c_try_compile "$LINENO"; then :
8227 xorg_cv_cc_flag_unknown_warning_option=yes
8228 else
8229 xorg_cv_cc_flag_unknown_warning_option=no
8230 fi
8231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8232 fi
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8234 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8235 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8236 CFLAGS="$xorg_testset_save_CFLAGS"
8237 fi
8238
8239 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8242 fi
8243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8245 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8246 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8247 $as_echo_n "(cached) " >&6
8248 else
8249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8250 /* end confdefs.h. */
8251 int i;
8252 _ACEOF
8253 if ac_fn_c_try_compile "$LINENO"; then :
8254 xorg_cv_cc_flag_unused_command_line_argument=yes
8255 else
8256 xorg_cv_cc_flag_unused_command_line_argument=no
8257 fi
8258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8259 fi
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8261 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8262 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8263 CFLAGS="$xorg_testset_save_CFLAGS"
8264 fi
8265
8266 found="no"
8267
8268 if test $found = "no" ; then
8269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8271 fi
8272
8273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8275 fi
8276
8277 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8278
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8280 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8281 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8282 if eval \${$cacheid+:} false; then :
8283 $as_echo_n "(cached) " >&6
8284 else
8285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8286 /* end confdefs.h. */
8287 int i;
8288 int
8289 main ()
8290 {
8291
8292 ;
8293 return 0;
8294 }
8295 _ACEOF
8296 if ac_fn_c_try_link "$LINENO"; then :
8297 eval $cacheid=yes
8298 else
8299 eval $cacheid=no
8300 fi
8301 rm -f core conftest.err conftest.$ac_objext \
8302 conftest$ac_exeext conftest.$ac_ext
8303 fi
8304
8305
8306 CFLAGS="$xorg_testset_save_CFLAGS"
8307
8308 eval supported=\$$cacheid
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8310 $as_echo "$supported" >&6; }
8311 if test "$supported" = "yes" ; then
8312 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8313 found="yes"
8314 fi
8315 fi
8316
8317 if test $found = "no" ; then
8318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8320 fi
8321
8322 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8324 fi
8325
8326 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8327
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8329 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8330 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8331 if eval \${$cacheid+:} false; then :
8332 $as_echo_n "(cached) " >&6
8333 else
8334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335 /* end confdefs.h. */
8336 int i;
8337 int
8338 main ()
8339 {
8340
8341 ;
8342 return 0;
8343 }
8344 _ACEOF
8345 if ac_fn_c_try_link "$LINENO"; then :
8346 eval $cacheid=yes
8347 else
8348 eval $cacheid=no
8349 fi
8350 rm -f core conftest.err conftest.$ac_objext \
8351 conftest$ac_exeext conftest.$ac_ext
8352 fi
8353
8354
8355 CFLAGS="$xorg_testset_save_CFLAGS"
8356
8357 eval supported=\$$cacheid
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8359 $as_echo "$supported" >&6; }
8360 if test "$supported" = "yes" ; then
8361 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8362 found="yes"
8363 fi
8364 fi
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380 xorg_testset_save_CFLAGS="$CFLAGS"
8381
8382 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8385 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8386 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8387 $as_echo_n "(cached) " >&6
8388 else
8389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8390 /* end confdefs.h. */
8391 int i;
8392 _ACEOF
8393 if ac_fn_c_try_compile "$LINENO"; then :
8394 xorg_cv_cc_flag_unknown_warning_option=yes
8395 else
8396 xorg_cv_cc_flag_unknown_warning_option=no
8397 fi
8398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8399 fi
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8401 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8402 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8403 CFLAGS="$xorg_testset_save_CFLAGS"
8404 fi
8405
8406 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8408 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8409 fi
8410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8412 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8413 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8414 $as_echo_n "(cached) " >&6
8415 else
8416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8417 /* end confdefs.h. */
8418 int i;
8419 _ACEOF
8420 if ac_fn_c_try_compile "$LINENO"; then :
8421 xorg_cv_cc_flag_unused_command_line_argument=yes
8422 else
8423 xorg_cv_cc_flag_unused_command_line_argument=no
8424 fi
8425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8426 fi
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8428 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8429 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8430 CFLAGS="$xorg_testset_save_CFLAGS"
8431 fi
8432
8433 found="no"
8434
8435 if test $found = "no" ; then
8436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8437 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8438 fi
8439
8440 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8442 fi
8443
8444 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8445
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8447 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8448 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8449 if eval \${$cacheid+:} false; then :
8450 $as_echo_n "(cached) " >&6
8451 else
8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453 /* end confdefs.h. */
8454 int i;
8455 int
8456 main ()
8457 {
8458
8459 ;
8460 return 0;
8461 }
8462 _ACEOF
8463 if ac_fn_c_try_link "$LINENO"; then :
8464 eval $cacheid=yes
8465 else
8466 eval $cacheid=no
8467 fi
8468 rm -f core conftest.err conftest.$ac_objext \
8469 conftest$ac_exeext conftest.$ac_ext
8470 fi
8471
8472
8473 CFLAGS="$xorg_testset_save_CFLAGS"
8474
8475 eval supported=\$$cacheid
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8477 $as_echo "$supported" >&6; }
8478 if test "$supported" = "yes" ; then
8479 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8480 found="yes"
8481 fi
8482 fi
8483
8484 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8485 else
8486 { $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
8487 $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;}
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501 xorg_testset_save_CFLAGS="$CFLAGS"
8502
8503 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8506 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8507 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8508 $as_echo_n "(cached) " >&6
8509 else
8510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511 /* end confdefs.h. */
8512 int i;
8513 _ACEOF
8514 if ac_fn_c_try_compile "$LINENO"; then :
8515 xorg_cv_cc_flag_unknown_warning_option=yes
8516 else
8517 xorg_cv_cc_flag_unknown_warning_option=no
8518 fi
8519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8520 fi
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8522 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8523 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8524 CFLAGS="$xorg_testset_save_CFLAGS"
8525 fi
8526
8527 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8530 fi
8531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8533 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8534 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8535 $as_echo_n "(cached) " >&6
8536 else
8537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538 /* end confdefs.h. */
8539 int i;
8540 _ACEOF
8541 if ac_fn_c_try_compile "$LINENO"; then :
8542 xorg_cv_cc_flag_unused_command_line_argument=yes
8543 else
8544 xorg_cv_cc_flag_unused_command_line_argument=no
8545 fi
8546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8547 fi
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8549 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8551 CFLAGS="$xorg_testset_save_CFLAGS"
8552 fi
8553
8554 found="no"
8555
8556 if test $found = "no" ; then
8557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8559 fi
8560
8561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8563 fi
8564
8565 CFLAGS="$CFLAGS -Wimplicit"
8566
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8568 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8569 cacheid=xorg_cv_cc_flag__Wimplicit
8570 if eval \${$cacheid+:} false; then :
8571 $as_echo_n "(cached) " >&6
8572 else
8573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8574 /* end confdefs.h. */
8575 int i;
8576 int
8577 main ()
8578 {
8579
8580 ;
8581 return 0;
8582 }
8583 _ACEOF
8584 if ac_fn_c_try_link "$LINENO"; then :
8585 eval $cacheid=yes
8586 else
8587 eval $cacheid=no
8588 fi
8589 rm -f core conftest.err conftest.$ac_objext \
8590 conftest$ac_exeext conftest.$ac_ext
8591 fi
8592
8593
8594 CFLAGS="$xorg_testset_save_CFLAGS"
8595
8596 eval supported=\$$cacheid
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8598 $as_echo "$supported" >&6; }
8599 if test "$supported" = "yes" ; then
8600 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8601 found="yes"
8602 fi
8603 fi
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619 xorg_testset_save_CFLAGS="$CFLAGS"
8620
8621 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8622 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8624 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8625 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8626 $as_echo_n "(cached) " >&6
8627 else
8628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8629 /* end confdefs.h. */
8630 int i;
8631 _ACEOF
8632 if ac_fn_c_try_compile "$LINENO"; then :
8633 xorg_cv_cc_flag_unknown_warning_option=yes
8634 else
8635 xorg_cv_cc_flag_unknown_warning_option=no
8636 fi
8637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8638 fi
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8640 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8641 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8642 CFLAGS="$xorg_testset_save_CFLAGS"
8643 fi
8644
8645 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8648 fi
8649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8651 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8652 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8653 $as_echo_n "(cached) " >&6
8654 else
8655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656 /* end confdefs.h. */
8657 int i;
8658 _ACEOF
8659 if ac_fn_c_try_compile "$LINENO"; then :
8660 xorg_cv_cc_flag_unused_command_line_argument=yes
8661 else
8662 xorg_cv_cc_flag_unused_command_line_argument=no
8663 fi
8664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8665 fi
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8667 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8668 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8669 CFLAGS="$xorg_testset_save_CFLAGS"
8670 fi
8671
8672 found="no"
8673
8674 if test $found = "no" ; then
8675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8677 fi
8678
8679 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8681 fi
8682
8683 CFLAGS="$CFLAGS -Wnonnull"
8684
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8686 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8687 cacheid=xorg_cv_cc_flag__Wnonnull
8688 if eval \${$cacheid+:} false; then :
8689 $as_echo_n "(cached) " >&6
8690 else
8691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8692 /* end confdefs.h. */
8693 int i;
8694 int
8695 main ()
8696 {
8697
8698 ;
8699 return 0;
8700 }
8701 _ACEOF
8702 if ac_fn_c_try_link "$LINENO"; then :
8703 eval $cacheid=yes
8704 else
8705 eval $cacheid=no
8706 fi
8707 rm -f core conftest.err conftest.$ac_objext \
8708 conftest$ac_exeext conftest.$ac_ext
8709 fi
8710
8711
8712 CFLAGS="$xorg_testset_save_CFLAGS"
8713
8714 eval supported=\$$cacheid
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8716 $as_echo "$supported" >&6; }
8717 if test "$supported" = "yes" ; then
8718 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8719 found="yes"
8720 fi
8721 fi
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737 xorg_testset_save_CFLAGS="$CFLAGS"
8738
8739 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8742 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8743 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8744 $as_echo_n "(cached) " >&6
8745 else
8746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8747 /* end confdefs.h. */
8748 int i;
8749 _ACEOF
8750 if ac_fn_c_try_compile "$LINENO"; then :
8751 xorg_cv_cc_flag_unknown_warning_option=yes
8752 else
8753 xorg_cv_cc_flag_unknown_warning_option=no
8754 fi
8755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8756 fi
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8758 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8759 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8760 CFLAGS="$xorg_testset_save_CFLAGS"
8761 fi
8762
8763 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8766 fi
8767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8769 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8770 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8771 $as_echo_n "(cached) " >&6
8772 else
8773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8774 /* end confdefs.h. */
8775 int i;
8776 _ACEOF
8777 if ac_fn_c_try_compile "$LINENO"; then :
8778 xorg_cv_cc_flag_unused_command_line_argument=yes
8779 else
8780 xorg_cv_cc_flag_unused_command_line_argument=no
8781 fi
8782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8783 fi
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8785 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8786 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8787 CFLAGS="$xorg_testset_save_CFLAGS"
8788 fi
8789
8790 found="no"
8791
8792 if test $found = "no" ; then
8793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8795 fi
8796
8797 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8799 fi
8800
8801 CFLAGS="$CFLAGS -Winit-self"
8802
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8804 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8805 cacheid=xorg_cv_cc_flag__Winit_self
8806 if eval \${$cacheid+:} false; then :
8807 $as_echo_n "(cached) " >&6
8808 else
8809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8810 /* end confdefs.h. */
8811 int i;
8812 int
8813 main ()
8814 {
8815
8816 ;
8817 return 0;
8818 }
8819 _ACEOF
8820 if ac_fn_c_try_link "$LINENO"; then :
8821 eval $cacheid=yes
8822 else
8823 eval $cacheid=no
8824 fi
8825 rm -f core conftest.err conftest.$ac_objext \
8826 conftest$ac_exeext conftest.$ac_ext
8827 fi
8828
8829
8830 CFLAGS="$xorg_testset_save_CFLAGS"
8831
8832 eval supported=\$$cacheid
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8834 $as_echo "$supported" >&6; }
8835 if test "$supported" = "yes" ; then
8836 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8837 found="yes"
8838 fi
8839 fi
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855 xorg_testset_save_CFLAGS="$CFLAGS"
8856
8857 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8860 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8861 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8862 $as_echo_n "(cached) " >&6
8863 else
8864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8865 /* end confdefs.h. */
8866 int i;
8867 _ACEOF
8868 if ac_fn_c_try_compile "$LINENO"; then :
8869 xorg_cv_cc_flag_unknown_warning_option=yes
8870 else
8871 xorg_cv_cc_flag_unknown_warning_option=no
8872 fi
8873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8874 fi
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8876 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8877 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8878 CFLAGS="$xorg_testset_save_CFLAGS"
8879 fi
8880
8881 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8884 fi
8885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8887 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8888 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8889 $as_echo_n "(cached) " >&6
8890 else
8891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8892 /* end confdefs.h. */
8893 int i;
8894 _ACEOF
8895 if ac_fn_c_try_compile "$LINENO"; then :
8896 xorg_cv_cc_flag_unused_command_line_argument=yes
8897 else
8898 xorg_cv_cc_flag_unused_command_line_argument=no
8899 fi
8900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8901 fi
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8903 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8904 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8905 CFLAGS="$xorg_testset_save_CFLAGS"
8906 fi
8907
8908 found="no"
8909
8910 if test $found = "no" ; then
8911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8913 fi
8914
8915 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8917 fi
8918
8919 CFLAGS="$CFLAGS -Wmain"
8920
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8922 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8923 cacheid=xorg_cv_cc_flag__Wmain
8924 if eval \${$cacheid+:} false; then :
8925 $as_echo_n "(cached) " >&6
8926 else
8927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8928 /* end confdefs.h. */
8929 int i;
8930 int
8931 main ()
8932 {
8933
8934 ;
8935 return 0;
8936 }
8937 _ACEOF
8938 if ac_fn_c_try_link "$LINENO"; then :
8939 eval $cacheid=yes
8940 else
8941 eval $cacheid=no
8942 fi
8943 rm -f core conftest.err conftest.$ac_objext \
8944 conftest$ac_exeext conftest.$ac_ext
8945 fi
8946
8947
8948 CFLAGS="$xorg_testset_save_CFLAGS"
8949
8950 eval supported=\$$cacheid
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8952 $as_echo "$supported" >&6; }
8953 if test "$supported" = "yes" ; then
8954 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8955 found="yes"
8956 fi
8957 fi
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973 xorg_testset_save_CFLAGS="$CFLAGS"
8974
8975 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8978 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8979 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8980 $as_echo_n "(cached) " >&6
8981 else
8982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8983 /* end confdefs.h. */
8984 int i;
8985 _ACEOF
8986 if ac_fn_c_try_compile "$LINENO"; then :
8987 xorg_cv_cc_flag_unknown_warning_option=yes
8988 else
8989 xorg_cv_cc_flag_unknown_warning_option=no
8990 fi
8991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8992 fi
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8994 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8995 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8996 CFLAGS="$xorg_testset_save_CFLAGS"
8997 fi
8998
8999 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9002 fi
9003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9005 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9006 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9007 $as_echo_n "(cached) " >&6
9008 else
9009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9010 /* end confdefs.h. */
9011 int i;
9012 _ACEOF
9013 if ac_fn_c_try_compile "$LINENO"; then :
9014 xorg_cv_cc_flag_unused_command_line_argument=yes
9015 else
9016 xorg_cv_cc_flag_unused_command_line_argument=no
9017 fi
9018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9019 fi
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9021 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9022 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9023 CFLAGS="$xorg_testset_save_CFLAGS"
9024 fi
9025
9026 found="no"
9027
9028 if test $found = "no" ; then
9029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9031 fi
9032
9033 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9035 fi
9036
9037 CFLAGS="$CFLAGS -Wmissing-braces"
9038
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9040 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9041 cacheid=xorg_cv_cc_flag__Wmissing_braces
9042 if eval \${$cacheid+:} false; then :
9043 $as_echo_n "(cached) " >&6
9044 else
9045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9046 /* end confdefs.h. */
9047 int i;
9048 int
9049 main ()
9050 {
9051
9052 ;
9053 return 0;
9054 }
9055 _ACEOF
9056 if ac_fn_c_try_link "$LINENO"; then :
9057 eval $cacheid=yes
9058 else
9059 eval $cacheid=no
9060 fi
9061 rm -f core conftest.err conftest.$ac_objext \
9062 conftest$ac_exeext conftest.$ac_ext
9063 fi
9064
9065
9066 CFLAGS="$xorg_testset_save_CFLAGS"
9067
9068 eval supported=\$$cacheid
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9070 $as_echo "$supported" >&6; }
9071 if test "$supported" = "yes" ; then
9072 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9073 found="yes"
9074 fi
9075 fi
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091 xorg_testset_save_CFLAGS="$CFLAGS"
9092
9093 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9096 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9097 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9098 $as_echo_n "(cached) " >&6
9099 else
9100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9101 /* end confdefs.h. */
9102 int i;
9103 _ACEOF
9104 if ac_fn_c_try_compile "$LINENO"; then :
9105 xorg_cv_cc_flag_unknown_warning_option=yes
9106 else
9107 xorg_cv_cc_flag_unknown_warning_option=no
9108 fi
9109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9110 fi
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9112 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9114 CFLAGS="$xorg_testset_save_CFLAGS"
9115 fi
9116
9117 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9120 fi
9121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9123 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9124 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9125 $as_echo_n "(cached) " >&6
9126 else
9127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9128 /* end confdefs.h. */
9129 int i;
9130 _ACEOF
9131 if ac_fn_c_try_compile "$LINENO"; then :
9132 xorg_cv_cc_flag_unused_command_line_argument=yes
9133 else
9134 xorg_cv_cc_flag_unused_command_line_argument=no
9135 fi
9136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9137 fi
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9139 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9141 CFLAGS="$xorg_testset_save_CFLAGS"
9142 fi
9143
9144 found="no"
9145
9146 if test $found = "no" ; then
9147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9149 fi
9150
9151 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9153 fi
9154
9155 CFLAGS="$CFLAGS -Wsequence-point"
9156
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9158 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9159 cacheid=xorg_cv_cc_flag__Wsequence_point
9160 if eval \${$cacheid+:} false; then :
9161 $as_echo_n "(cached) " >&6
9162 else
9163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9164 /* end confdefs.h. */
9165 int i;
9166 int
9167 main ()
9168 {
9169
9170 ;
9171 return 0;
9172 }
9173 _ACEOF
9174 if ac_fn_c_try_link "$LINENO"; then :
9175 eval $cacheid=yes
9176 else
9177 eval $cacheid=no
9178 fi
9179 rm -f core conftest.err conftest.$ac_objext \
9180 conftest$ac_exeext conftest.$ac_ext
9181 fi
9182
9183
9184 CFLAGS="$xorg_testset_save_CFLAGS"
9185
9186 eval supported=\$$cacheid
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9188 $as_echo "$supported" >&6; }
9189 if test "$supported" = "yes" ; then
9190 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9191 found="yes"
9192 fi
9193 fi
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209 xorg_testset_save_CFLAGS="$CFLAGS"
9210
9211 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9214 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9215 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9216 $as_echo_n "(cached) " >&6
9217 else
9218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9219 /* end confdefs.h. */
9220 int i;
9221 _ACEOF
9222 if ac_fn_c_try_compile "$LINENO"; then :
9223 xorg_cv_cc_flag_unknown_warning_option=yes
9224 else
9225 xorg_cv_cc_flag_unknown_warning_option=no
9226 fi
9227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9228 fi
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9230 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9232 CFLAGS="$xorg_testset_save_CFLAGS"
9233 fi
9234
9235 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9238 fi
9239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9241 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9242 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9243 $as_echo_n "(cached) " >&6
9244 else
9245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9246 /* end confdefs.h. */
9247 int i;
9248 _ACEOF
9249 if ac_fn_c_try_compile "$LINENO"; then :
9250 xorg_cv_cc_flag_unused_command_line_argument=yes
9251 else
9252 xorg_cv_cc_flag_unused_command_line_argument=no
9253 fi
9254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9255 fi
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9257 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9258 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9259 CFLAGS="$xorg_testset_save_CFLAGS"
9260 fi
9261
9262 found="no"
9263
9264 if test $found = "no" ; then
9265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9267 fi
9268
9269 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9271 fi
9272
9273 CFLAGS="$CFLAGS -Wreturn-type"
9274
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9276 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9277 cacheid=xorg_cv_cc_flag__Wreturn_type
9278 if eval \${$cacheid+:} false; then :
9279 $as_echo_n "(cached) " >&6
9280 else
9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h. */
9283 int i;
9284 int
9285 main ()
9286 {
9287
9288 ;
9289 return 0;
9290 }
9291 _ACEOF
9292 if ac_fn_c_try_link "$LINENO"; then :
9293 eval $cacheid=yes
9294 else
9295 eval $cacheid=no
9296 fi
9297 rm -f core conftest.err conftest.$ac_objext \
9298 conftest$ac_exeext conftest.$ac_ext
9299 fi
9300
9301
9302 CFLAGS="$xorg_testset_save_CFLAGS"
9303
9304 eval supported=\$$cacheid
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9306 $as_echo "$supported" >&6; }
9307 if test "$supported" = "yes" ; then
9308 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9309 found="yes"
9310 fi
9311 fi
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327 xorg_testset_save_CFLAGS="$CFLAGS"
9328
9329 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9330 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9332 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9333 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9334 $as_echo_n "(cached) " >&6
9335 else
9336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9337 /* end confdefs.h. */
9338 int i;
9339 _ACEOF
9340 if ac_fn_c_try_compile "$LINENO"; then :
9341 xorg_cv_cc_flag_unknown_warning_option=yes
9342 else
9343 xorg_cv_cc_flag_unknown_warning_option=no
9344 fi
9345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9346 fi
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9348 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9349 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9350 CFLAGS="$xorg_testset_save_CFLAGS"
9351 fi
9352
9353 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9356 fi
9357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9359 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9360 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9361 $as_echo_n "(cached) " >&6
9362 else
9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364 /* end confdefs.h. */
9365 int i;
9366 _ACEOF
9367 if ac_fn_c_try_compile "$LINENO"; then :
9368 xorg_cv_cc_flag_unused_command_line_argument=yes
9369 else
9370 xorg_cv_cc_flag_unused_command_line_argument=no
9371 fi
9372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9373 fi
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9375 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9376 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9377 CFLAGS="$xorg_testset_save_CFLAGS"
9378 fi
9379
9380 found="no"
9381
9382 if test $found = "no" ; then
9383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9385 fi
9386
9387 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9389 fi
9390
9391 CFLAGS="$CFLAGS -Wtrigraphs"
9392
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9394 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9395 cacheid=xorg_cv_cc_flag__Wtrigraphs
9396 if eval \${$cacheid+:} false; then :
9397 $as_echo_n "(cached) " >&6
9398 else
9399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9400 /* end confdefs.h. */
9401 int i;
9402 int
9403 main ()
9404 {
9405
9406 ;
9407 return 0;
9408 }
9409 _ACEOF
9410 if ac_fn_c_try_link "$LINENO"; then :
9411 eval $cacheid=yes
9412 else
9413 eval $cacheid=no
9414 fi
9415 rm -f core conftest.err conftest.$ac_objext \
9416 conftest$ac_exeext conftest.$ac_ext
9417 fi
9418
9419
9420 CFLAGS="$xorg_testset_save_CFLAGS"
9421
9422 eval supported=\$$cacheid
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9424 $as_echo "$supported" >&6; }
9425 if test "$supported" = "yes" ; then
9426 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9427 found="yes"
9428 fi
9429 fi
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445 xorg_testset_save_CFLAGS="$CFLAGS"
9446
9447 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9448 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9450 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9451 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9452 $as_echo_n "(cached) " >&6
9453 else
9454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455 /* end confdefs.h. */
9456 int i;
9457 _ACEOF
9458 if ac_fn_c_try_compile "$LINENO"; then :
9459 xorg_cv_cc_flag_unknown_warning_option=yes
9460 else
9461 xorg_cv_cc_flag_unknown_warning_option=no
9462 fi
9463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9464 fi
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9466 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9467 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9468 CFLAGS="$xorg_testset_save_CFLAGS"
9469 fi
9470
9471 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9474 fi
9475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9477 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9478 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9479 $as_echo_n "(cached) " >&6
9480 else
9481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482 /* end confdefs.h. */
9483 int i;
9484 _ACEOF
9485 if ac_fn_c_try_compile "$LINENO"; then :
9486 xorg_cv_cc_flag_unused_command_line_argument=yes
9487 else
9488 xorg_cv_cc_flag_unused_command_line_argument=no
9489 fi
9490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9491 fi
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9493 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9495 CFLAGS="$xorg_testset_save_CFLAGS"
9496 fi
9497
9498 found="no"
9499
9500 if test $found = "no" ; then
9501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9503 fi
9504
9505 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9507 fi
9508
9509 CFLAGS="$CFLAGS -Warray-bounds"
9510
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9512 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9513 cacheid=xorg_cv_cc_flag__Warray_bounds
9514 if eval \${$cacheid+:} false; then :
9515 $as_echo_n "(cached) " >&6
9516 else
9517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9518 /* end confdefs.h. */
9519 int i;
9520 int
9521 main ()
9522 {
9523
9524 ;
9525 return 0;
9526 }
9527 _ACEOF
9528 if ac_fn_c_try_link "$LINENO"; then :
9529 eval $cacheid=yes
9530 else
9531 eval $cacheid=no
9532 fi
9533 rm -f core conftest.err conftest.$ac_objext \
9534 conftest$ac_exeext conftest.$ac_ext
9535 fi
9536
9537
9538 CFLAGS="$xorg_testset_save_CFLAGS"
9539
9540 eval supported=\$$cacheid
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9542 $as_echo "$supported" >&6; }
9543 if test "$supported" = "yes" ; then
9544 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9545 found="yes"
9546 fi
9547 fi
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563 xorg_testset_save_CFLAGS="$CFLAGS"
9564
9565 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9568 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9569 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9570 $as_echo_n "(cached) " >&6
9571 else
9572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9573 /* end confdefs.h. */
9574 int i;
9575 _ACEOF
9576 if ac_fn_c_try_compile "$LINENO"; then :
9577 xorg_cv_cc_flag_unknown_warning_option=yes
9578 else
9579 xorg_cv_cc_flag_unknown_warning_option=no
9580 fi
9581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9582 fi
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9584 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9585 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9586 CFLAGS="$xorg_testset_save_CFLAGS"
9587 fi
9588
9589 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9592 fi
9593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9595 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9596 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9597 $as_echo_n "(cached) " >&6
9598 else
9599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9600 /* end confdefs.h. */
9601 int i;
9602 _ACEOF
9603 if ac_fn_c_try_compile "$LINENO"; then :
9604 xorg_cv_cc_flag_unused_command_line_argument=yes
9605 else
9606 xorg_cv_cc_flag_unused_command_line_argument=no
9607 fi
9608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9609 fi
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9611 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9612 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9613 CFLAGS="$xorg_testset_save_CFLAGS"
9614 fi
9615
9616 found="no"
9617
9618 if test $found = "no" ; then
9619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9621 fi
9622
9623 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9625 fi
9626
9627 CFLAGS="$CFLAGS -Wwrite-strings"
9628
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9630 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9631 cacheid=xorg_cv_cc_flag__Wwrite_strings
9632 if eval \${$cacheid+:} false; then :
9633 $as_echo_n "(cached) " >&6
9634 else
9635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636 /* end confdefs.h. */
9637 int i;
9638 int
9639 main ()
9640 {
9641
9642 ;
9643 return 0;
9644 }
9645 _ACEOF
9646 if ac_fn_c_try_link "$LINENO"; then :
9647 eval $cacheid=yes
9648 else
9649 eval $cacheid=no
9650 fi
9651 rm -f core conftest.err conftest.$ac_objext \
9652 conftest$ac_exeext conftest.$ac_ext
9653 fi
9654
9655
9656 CFLAGS="$xorg_testset_save_CFLAGS"
9657
9658 eval supported=\$$cacheid
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9660 $as_echo "$supported" >&6; }
9661 if test "$supported" = "yes" ; then
9662 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9663 found="yes"
9664 fi
9665 fi
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681 xorg_testset_save_CFLAGS="$CFLAGS"
9682
9683 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9686 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9687 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9688 $as_echo_n "(cached) " >&6
9689 else
9690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9691 /* end confdefs.h. */
9692 int i;
9693 _ACEOF
9694 if ac_fn_c_try_compile "$LINENO"; then :
9695 xorg_cv_cc_flag_unknown_warning_option=yes
9696 else
9697 xorg_cv_cc_flag_unknown_warning_option=no
9698 fi
9699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9700 fi
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9702 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9703 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9704 CFLAGS="$xorg_testset_save_CFLAGS"
9705 fi
9706
9707 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9710 fi
9711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9713 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9714 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9715 $as_echo_n "(cached) " >&6
9716 else
9717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9718 /* end confdefs.h. */
9719 int i;
9720 _ACEOF
9721 if ac_fn_c_try_compile "$LINENO"; then :
9722 xorg_cv_cc_flag_unused_command_line_argument=yes
9723 else
9724 xorg_cv_cc_flag_unused_command_line_argument=no
9725 fi
9726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9727 fi
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9729 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9730 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9731 CFLAGS="$xorg_testset_save_CFLAGS"
9732 fi
9733
9734 found="no"
9735
9736 if test $found = "no" ; then
9737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9739 fi
9740
9741 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9743 fi
9744
9745 CFLAGS="$CFLAGS -Waddress"
9746
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9748 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9749 cacheid=xorg_cv_cc_flag__Waddress
9750 if eval \${$cacheid+:} false; then :
9751 $as_echo_n "(cached) " >&6
9752 else
9753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754 /* end confdefs.h. */
9755 int i;
9756 int
9757 main ()
9758 {
9759
9760 ;
9761 return 0;
9762 }
9763 _ACEOF
9764 if ac_fn_c_try_link "$LINENO"; then :
9765 eval $cacheid=yes
9766 else
9767 eval $cacheid=no
9768 fi
9769 rm -f core conftest.err conftest.$ac_objext \
9770 conftest$ac_exeext conftest.$ac_ext
9771 fi
9772
9773
9774 CFLAGS="$xorg_testset_save_CFLAGS"
9775
9776 eval supported=\$$cacheid
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9778 $as_echo "$supported" >&6; }
9779 if test "$supported" = "yes" ; then
9780 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9781 found="yes"
9782 fi
9783 fi
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799 xorg_testset_save_CFLAGS="$CFLAGS"
9800
9801 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9804 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9805 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9806 $as_echo_n "(cached) " >&6
9807 else
9808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9809 /* end confdefs.h. */
9810 int i;
9811 _ACEOF
9812 if ac_fn_c_try_compile "$LINENO"; then :
9813 xorg_cv_cc_flag_unknown_warning_option=yes
9814 else
9815 xorg_cv_cc_flag_unknown_warning_option=no
9816 fi
9817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9818 fi
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9820 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9821 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9822 CFLAGS="$xorg_testset_save_CFLAGS"
9823 fi
9824
9825 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9828 fi
9829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9831 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9832 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9833 $as_echo_n "(cached) " >&6
9834 else
9835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9836 /* end confdefs.h. */
9837 int i;
9838 _ACEOF
9839 if ac_fn_c_try_compile "$LINENO"; then :
9840 xorg_cv_cc_flag_unused_command_line_argument=yes
9841 else
9842 xorg_cv_cc_flag_unused_command_line_argument=no
9843 fi
9844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9845 fi
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9847 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9848 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9849 CFLAGS="$xorg_testset_save_CFLAGS"
9850 fi
9851
9852 found="no"
9853
9854 if test $found = "no" ; then
9855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9857 fi
9858
9859 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9861 fi
9862
9863 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9864
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9866 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9867 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9868 if eval \${$cacheid+:} false; then :
9869 $as_echo_n "(cached) " >&6
9870 else
9871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9872 /* end confdefs.h. */
9873 int i;
9874 int
9875 main ()
9876 {
9877
9878 ;
9879 return 0;
9880 }
9881 _ACEOF
9882 if ac_fn_c_try_link "$LINENO"; then :
9883 eval $cacheid=yes
9884 else
9885 eval $cacheid=no
9886 fi
9887 rm -f core conftest.err conftest.$ac_objext \
9888 conftest$ac_exeext conftest.$ac_ext
9889 fi
9890
9891
9892 CFLAGS="$xorg_testset_save_CFLAGS"
9893
9894 eval supported=\$$cacheid
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9896 $as_echo "$supported" >&6; }
9897 if test "$supported" = "yes" ; then
9898 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9899 found="yes"
9900 fi
9901 fi
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917 xorg_testset_save_CFLAGS="$CFLAGS"
9918
9919 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9922 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9923 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9924 $as_echo_n "(cached) " >&6
9925 else
9926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927 /* end confdefs.h. */
9928 int i;
9929 _ACEOF
9930 if ac_fn_c_try_compile "$LINENO"; then :
9931 xorg_cv_cc_flag_unknown_warning_option=yes
9932 else
9933 xorg_cv_cc_flag_unknown_warning_option=no
9934 fi
9935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9936 fi
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9938 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9939 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9940 CFLAGS="$xorg_testset_save_CFLAGS"
9941 fi
9942
9943 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9946 fi
9947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9949 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9950 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9951 $as_echo_n "(cached) " >&6
9952 else
9953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9954 /* end confdefs.h. */
9955 int i;
9956 _ACEOF
9957 if ac_fn_c_try_compile "$LINENO"; then :
9958 xorg_cv_cc_flag_unused_command_line_argument=yes
9959 else
9960 xorg_cv_cc_flag_unused_command_line_argument=no
9961 fi
9962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9963 fi
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9965 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9966 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9967 CFLAGS="$xorg_testset_save_CFLAGS"
9968 fi
9969
9970 found="no"
9971
9972 if test $found = "no" ; then
9973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9974 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9975 fi
9976
9977 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9979 fi
9980
9981 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9982
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9984 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9985 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9986 if eval \${$cacheid+:} false; then :
9987 $as_echo_n "(cached) " >&6
9988 else
9989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9990 /* end confdefs.h. */
9991 int i;
9992 int
9993 main ()
9994 {
9995
9996 ;
9997 return 0;
9998 }
9999 _ACEOF
10000 if ac_fn_c_try_link "$LINENO"; then :
10001 eval $cacheid=yes
10002 else
10003 eval $cacheid=no
10004 fi
10005 rm -f core conftest.err conftest.$ac_objext \
10006 conftest$ac_exeext conftest.$ac_ext
10007 fi
10008
10009
10010 CFLAGS="$xorg_testset_save_CFLAGS"
10011
10012 eval supported=\$$cacheid
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10014 $as_echo "$supported" >&6; }
10015 if test "$supported" = "yes" ; then
10016 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10017 found="yes"
10018 fi
10019 fi
10020
10021
10022 fi
10023
10024
10025
10026
10027
10028
10029
10030 CWARNFLAGS="$BASE_CFLAGS"
10031 if test "x$GCC" = xyes ; then
10032 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10033 fi
10034
10035
10036
10037
10038
10039
10040
10041
10042 # Check whether --enable-strict-compilation was given.
10043 if test "${enable_strict_compilation+set}" = set; then :
10044 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10045 else
10046 STRICT_COMPILE=no
10047 fi
10048
10049
10050
10051
10052
10053
10054 STRICT_CFLAGS=""
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068 xorg_testset_save_CFLAGS="$CFLAGS"
10069
10070 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10073 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10074 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10075 $as_echo_n "(cached) " >&6
10076 else
10077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10078 /* end confdefs.h. */
10079 int i;
10080 _ACEOF
10081 if ac_fn_c_try_compile "$LINENO"; then :
10082 xorg_cv_cc_flag_unknown_warning_option=yes
10083 else
10084 xorg_cv_cc_flag_unknown_warning_option=no
10085 fi
10086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10087 fi
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10089 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10090 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10091 CFLAGS="$xorg_testset_save_CFLAGS"
10092 fi
10093
10094 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10097 fi
10098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10100 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10101 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10102 $as_echo_n "(cached) " >&6
10103 else
10104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10105 /* end confdefs.h. */
10106 int i;
10107 _ACEOF
10108 if ac_fn_c_try_compile "$LINENO"; then :
10109 xorg_cv_cc_flag_unused_command_line_argument=yes
10110 else
10111 xorg_cv_cc_flag_unused_command_line_argument=no
10112 fi
10113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10114 fi
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10116 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10117 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10118 CFLAGS="$xorg_testset_save_CFLAGS"
10119 fi
10120
10121 found="no"
10122
10123 if test $found = "no" ; then
10124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10126 fi
10127
10128 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10130 fi
10131
10132 CFLAGS="$CFLAGS -pedantic"
10133
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10135 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10136 cacheid=xorg_cv_cc_flag__pedantic
10137 if eval \${$cacheid+:} false; then :
10138 $as_echo_n "(cached) " >&6
10139 else
10140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10141 /* end confdefs.h. */
10142 int i;
10143 int
10144 main ()
10145 {
10146
10147 ;
10148 return 0;
10149 }
10150 _ACEOF
10151 if ac_fn_c_try_link "$LINENO"; then :
10152 eval $cacheid=yes
10153 else
10154 eval $cacheid=no
10155 fi
10156 rm -f core conftest.err conftest.$ac_objext \
10157 conftest$ac_exeext conftest.$ac_ext
10158 fi
10159
10160
10161 CFLAGS="$xorg_testset_save_CFLAGS"
10162
10163 eval supported=\$$cacheid
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10165 $as_echo "$supported" >&6; }
10166 if test "$supported" = "yes" ; then
10167 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10168 found="yes"
10169 fi
10170 fi
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186 xorg_testset_save_CFLAGS="$CFLAGS"
10187
10188 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10191 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10192 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10193 $as_echo_n "(cached) " >&6
10194 else
10195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10196 /* end confdefs.h. */
10197 int i;
10198 _ACEOF
10199 if ac_fn_c_try_compile "$LINENO"; then :
10200 xorg_cv_cc_flag_unknown_warning_option=yes
10201 else
10202 xorg_cv_cc_flag_unknown_warning_option=no
10203 fi
10204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10205 fi
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10207 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10208 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10209 CFLAGS="$xorg_testset_save_CFLAGS"
10210 fi
10211
10212 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10215 fi
10216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10218 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10219 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10220 $as_echo_n "(cached) " >&6
10221 else
10222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10223 /* end confdefs.h. */
10224 int i;
10225 _ACEOF
10226 if ac_fn_c_try_compile "$LINENO"; then :
10227 xorg_cv_cc_flag_unused_command_line_argument=yes
10228 else
10229 xorg_cv_cc_flag_unused_command_line_argument=no
10230 fi
10231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10232 fi
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10234 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10235 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10236 CFLAGS="$xorg_testset_save_CFLAGS"
10237 fi
10238
10239 found="no"
10240
10241 if test $found = "no" ; then
10242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10243 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10244 fi
10245
10246 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10248 fi
10249
10250 CFLAGS="$CFLAGS -Werror"
10251
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10253 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10254 cacheid=xorg_cv_cc_flag__Werror
10255 if eval \${$cacheid+:} false; then :
10256 $as_echo_n "(cached) " >&6
10257 else
10258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10259 /* end confdefs.h. */
10260 int i;
10261 int
10262 main ()
10263 {
10264
10265 ;
10266 return 0;
10267 }
10268 _ACEOF
10269 if ac_fn_c_try_link "$LINENO"; then :
10270 eval $cacheid=yes
10271 else
10272 eval $cacheid=no
10273 fi
10274 rm -f core conftest.err conftest.$ac_objext \
10275 conftest$ac_exeext conftest.$ac_ext
10276 fi
10277
10278
10279 CFLAGS="$xorg_testset_save_CFLAGS"
10280
10281 eval supported=\$$cacheid
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10283 $as_echo "$supported" >&6; }
10284 if test "$supported" = "yes" ; then
10285 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10286 found="yes"
10287 fi
10288 fi
10289
10290 if test $found = "no" ; then
10291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10293 fi
10294
10295 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10297 fi
10298
10299 CFLAGS="$CFLAGS -errwarn"
10300
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10302 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10303 cacheid=xorg_cv_cc_flag__errwarn
10304 if eval \${$cacheid+:} false; then :
10305 $as_echo_n "(cached) " >&6
10306 else
10307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308 /* end confdefs.h. */
10309 int i;
10310 int
10311 main ()
10312 {
10313
10314 ;
10315 return 0;
10316 }
10317 _ACEOF
10318 if ac_fn_c_try_link "$LINENO"; then :
10319 eval $cacheid=yes
10320 else
10321 eval $cacheid=no
10322 fi
10323 rm -f core conftest.err conftest.$ac_objext \
10324 conftest$ac_exeext conftest.$ac_ext
10325 fi
10326
10327
10328 CFLAGS="$xorg_testset_save_CFLAGS"
10329
10330 eval supported=\$$cacheid
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10332 $as_echo "$supported" >&6; }
10333 if test "$supported" = "yes" ; then
10334 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10335 found="yes"
10336 fi
10337 fi
10338
10339
10340
10341 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10342 # activate it with -Werror, so we add it here explicitly.
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356 xorg_testset_save_CFLAGS="$CFLAGS"
10357
10358 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10361 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10362 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10363 $as_echo_n "(cached) " >&6
10364 else
10365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10366 /* end confdefs.h. */
10367 int i;
10368 _ACEOF
10369 if ac_fn_c_try_compile "$LINENO"; then :
10370 xorg_cv_cc_flag_unknown_warning_option=yes
10371 else
10372 xorg_cv_cc_flag_unknown_warning_option=no
10373 fi
10374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10375 fi
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10377 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10378 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10379 CFLAGS="$xorg_testset_save_CFLAGS"
10380 fi
10381
10382 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10385 fi
10386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10388 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10389 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10390 $as_echo_n "(cached) " >&6
10391 else
10392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393 /* end confdefs.h. */
10394 int i;
10395 _ACEOF
10396 if ac_fn_c_try_compile "$LINENO"; then :
10397 xorg_cv_cc_flag_unused_command_line_argument=yes
10398 else
10399 xorg_cv_cc_flag_unused_command_line_argument=no
10400 fi
10401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10402 fi
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10404 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10405 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10406 CFLAGS="$xorg_testset_save_CFLAGS"
10407 fi
10408
10409 found="no"
10410
10411 if test $found = "no" ; then
10412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10414 fi
10415
10416 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10418 fi
10419
10420 CFLAGS="$CFLAGS -Werror=attributes"
10421
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10423 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10424 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10425 if eval \${$cacheid+:} false; then :
10426 $as_echo_n "(cached) " >&6
10427 else
10428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10429 /* end confdefs.h. */
10430 int i;
10431 int
10432 main ()
10433 {
10434
10435 ;
10436 return 0;
10437 }
10438 _ACEOF
10439 if ac_fn_c_try_link "$LINENO"; then :
10440 eval $cacheid=yes
10441 else
10442 eval $cacheid=no
10443 fi
10444 rm -f core conftest.err conftest.$ac_objext \
10445 conftest$ac_exeext conftest.$ac_ext
10446 fi
10447
10448
10449 CFLAGS="$xorg_testset_save_CFLAGS"
10450
10451 eval supported=\$$cacheid
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10453 $as_echo "$supported" >&6; }
10454 if test "$supported" = "yes" ; then
10455 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10456 found="yes"
10457 fi
10458 fi
10459
10460
10461
10462 if test "x$STRICT_COMPILE" = "xyes"; then
10463 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10464 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10465 fi
10466
10467
10468
10469
10470
10471
10472 cat >>confdefs.h <<_ACEOF
10473 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10474 _ACEOF
10475
10476 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10477 if test "x$PVM" = "x"; then
10478 PVM="0"
10479 fi
10480
10481 cat >>confdefs.h <<_ACEOF
10482 #define PACKAGE_VERSION_MINOR $PVM
10483 _ACEOF
10484
10485 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10486 if test "x$PVP" = "x"; then
10487 PVP="0"
10488 fi
10489
10490 cat >>confdefs.h <<_ACEOF
10491 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10492 _ACEOF
10493
10494
10495
10496 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10497 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10498 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10499 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10500
10501
10502
10503
10504 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10505 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10506 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10507 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10508 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10509
10510
10511
10512
10513
10514
10515 if test x$APP_MAN_SUFFIX = x ; then
10516 APP_MAN_SUFFIX=1
10517 fi
10518 if test x$APP_MAN_DIR = x ; then
10519 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10520 fi
10521
10522 if test x$LIB_MAN_SUFFIX = x ; then
10523 LIB_MAN_SUFFIX=3
10524 fi
10525 if test x$LIB_MAN_DIR = x ; then
10526 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10527 fi
10528
10529 if test x$FILE_MAN_SUFFIX = x ; then
10530 case $host_os in
10531 solaris*) FILE_MAN_SUFFIX=4 ;;
10532 *) FILE_MAN_SUFFIX=5 ;;
10533 esac
10534 fi
10535 if test x$FILE_MAN_DIR = x ; then
10536 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10537 fi
10538
10539 if test x$MISC_MAN_SUFFIX = x ; then
10540 case $host_os in
10541 solaris*) MISC_MAN_SUFFIX=5 ;;
10542 *) MISC_MAN_SUFFIX=7 ;;
10543 esac
10544 fi
10545 if test x$MISC_MAN_DIR = x ; then
10546 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10547 fi
10548
10549 if test x$DRIVER_MAN_SUFFIX = x ; then
10550 case $host_os in
10551 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10552 *) DRIVER_MAN_SUFFIX=4 ;;
10553 esac
10554 fi
10555 if test x$DRIVER_MAN_DIR = x ; then
10556 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10557 fi
10558
10559 if test x$ADMIN_MAN_SUFFIX = x ; then
10560 case $host_os in
10561 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10562 *) ADMIN_MAN_SUFFIX=8 ;;
10563 esac
10564 fi
10565 if test x$ADMIN_MAN_DIR = x ; then
10566 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10567 fi
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583 XORG_MAN_PAGE="X Version 11"
10584
10585 MAN_SUBSTS="\
10586 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10587 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10588 -e 's|__xservername__|Xorg|g' \
10589 -e 's|__xconfigfile__|xorg.conf|g' \
10590 -e 's|__projectroot__|\$(prefix)|g' \
10591 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10592 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10593 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10594 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10595 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10596 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10597 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10598
10599
10600
10601 # Check whether --enable-silent-rules was given.
10602 if test "${enable_silent_rules+set}" = set; then :
10603 enableval=$enable_silent_rules;
10604 fi
10605
10606 case $enable_silent_rules in # (((
10607 yes) AM_DEFAULT_VERBOSITY=0;;
10608 no) AM_DEFAULT_VERBOSITY=1;;
10609 *) AM_DEFAULT_VERBOSITY=0;;
10610 esac
10611 am_make=${MAKE-make}
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10613 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10614 if ${am_cv_make_support_nested_variables+:} false; then :
10615 $as_echo_n "(cached) " >&6
10616 else
10617 if $as_echo 'TRUE=$(BAR$(V))
10618 BAR0=false
10619 BAR1=true
10620 V=1
10621 am__doit:
10622 @$(TRUE)
10623 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10624 am_cv_make_support_nested_variables=yes
10625 else
10626 am_cv_make_support_nested_variables=no
10627 fi
10628 fi
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10630 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10631 if test $am_cv_make_support_nested_variables = yes; then
10632 AM_V='$(V)'
10633 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10634 else
10635 AM_V=$AM_DEFAULT_VERBOSITY
10636 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10637 fi
10638 AM_BACKSLASH='\'
10639
10640
10641
10642 ac_config_headers="$ac_config_headers config.h"
10643
10644
10645
10646
10647 # Extract the first word of "groff", so it can be a program name with args.
10648 set dummy groff; ac_word=$2
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10650 $as_echo_n "checking for $ac_word... " >&6; }
10651 if ${ac_cv_prog_GROFF+:} false; then :
10652 $as_echo_n "(cached) " >&6
10653 else
10654 if test -n "$GROFF"; then
10655 ac_cv_prog_GROFF="$GROFF" # Let the user override the test.
10656 else
10657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10658 for as_dir in $PATH
10659 do
10660 IFS=$as_save_IFS
10661 test -z "$as_dir" && as_dir=.
10662 for ac_exec_ext in '' $ac_executable_extensions; do
10663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10664 ac_cv_prog_GROFF="found"
10665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10666 break 2
10667 fi
10668 done
10669 done
10670 IFS=$as_save_IFS
10671
10672 test -z "$ac_cv_prog_GROFF" && ac_cv_prog_GROFF="missing"
10673 fi
10674 fi
10675 GROFF=$ac_cv_prog_GROFF
10676 if test -n "$GROFF"; then
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
10678 $as_echo "$GROFF" >&6; }
10679 else
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10681 $as_echo "no" >&6; }
10682 fi
10683
10684
10685 if test "x$GROFF" = "xfound" ; then
10686
10687 $as_echo "#define HAS_GROFF 1" >>confdefs.h
10688
10689 fi
10690
10691 for ac_func in mkstemp
10692 do :
10693 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
10694 if test "x$ac_cv_func_mkstemp" = xyes; then :
10695 cat >>confdefs.h <<_ACEOF
10696 #define HAVE_MKSTEMP 1
10697 _ACEOF
10698
10699 fi
10700 done
10701
10702
10703
10704 # Check whether --with-helpdir was given.
10705 if test "${with_helpdir+set}" = set; then :
10706 withval=$with_helpdir; HELPDIR="$withval"
10707 else
10708 HELPDIR=${datadir}/X11
10709 fi
10710
10711
10712
10713
10714 # Check whether --with-sysmanpath was given.
10715 if test "${with_sysmanpath+set}" = set; then :
10716 withval=$with_sysmanpath; SYSMANPATH="$withval"
10717 fi
10718
10719 if test x$SYSMANPATH != x; then
10720
10721 cat >>confdefs.h <<_ACEOF
10722 #define SYSMANPATH "$SYSMANPATH"
10723 _ACEOF
10724
10725 fi
10726
10727
10728 # Check whether --with-localmanpath was given.
10729 if test "${with_localmanpath+set}" = set; then :
10730 withval=$with_localmanpath; LOCALMANPATH="$withval"
10731 fi
10732
10733 if test x$LOCALMANPATH != x; then
10734
10735 cat >>confdefs.h <<_ACEOF
10736 #define LOCALMANPATH "$LOCALMANPATH"
10737 _ACEOF
10738
10739 fi
10740
10741 # Obtain compiler/linker options from depedencies
10742
10743 pkg_failed=no
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMAN" >&5
10745 $as_echo_n "checking for XMAN... " >&6; }
10746
10747 if test -n "$XMAN_CFLAGS"; then
10748 pkg_cv_XMAN_CFLAGS="$XMAN_CFLAGS"
10749 elif test -n "$PKG_CONFIG"; then
10750 if test -n "$PKG_CONFIG" && \
10751 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt\""; } >&5
10752 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt") 2>&5
10753 ac_status=$?
10754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10755 test $ac_status = 0; }; then
10756 pkg_cv_XMAN_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xaw7 xt" 2>/dev/null`
10757 else
10758 pkg_failed=yes
10759 fi
10760 else
10761 pkg_failed=untried
10762 fi
10763 if test -n "$XMAN_LIBS"; then
10764 pkg_cv_XMAN_LIBS="$XMAN_LIBS"
10765 elif test -n "$PKG_CONFIG"; then
10766 if test -n "$PKG_CONFIG" && \
10767 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt\""; } >&5
10768 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt") 2>&5
10769 ac_status=$?
10770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10771 test $ac_status = 0; }; then
10772 pkg_cv_XMAN_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xaw7 xt" 2>/dev/null`
10773 else
10774 pkg_failed=yes
10775 fi
10776 else
10777 pkg_failed=untried
10778 fi
10779
10780
10781
10782 if test $pkg_failed = yes; then
10783
10784 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10785 _pkg_short_errors_supported=yes
10786 else
10787 _pkg_short_errors_supported=no
10788 fi
10789 if test $_pkg_short_errors_supported = yes; then
10790 XMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.17 xaw7 xt" 2>&1`
10791 else
10792 XMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.17 xaw7 xt" 2>&1`
10793 fi
10794 # Put the nasty error message in config.log where it belongs
10795 echo "$XMAN_PKG_ERRORS" >&5
10796
10797 as_fn_error $? "Package requirements (xproto >= 7.0.17 xaw7 xt) were not met:
10798
10799 $XMAN_PKG_ERRORS
10800
10801 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10802 installed software in a non-standard prefix.
10803
10804 Alternatively, you may set the environment variables XMAN_CFLAGS
10805 and XMAN_LIBS to avoid the need to call pkg-config.
10806 See the pkg-config man page for more details.
10807 " "$LINENO" 5
10808 elif test $pkg_failed = untried; then
10809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10811 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10812 is in your PATH or set the PKG_CONFIG environment variable to the full
10813 path to pkg-config.
10814
10815 Alternatively, you may set the environment variables XMAN_CFLAGS
10816 and XMAN_LIBS to avoid the need to call pkg-config.
10817 See the pkg-config man page for more details.
10818
10819 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10820 See \`config.log' for more details" "$LINENO" 5; }
10821 else
10822 XMAN_CFLAGS=$pkg_cv_XMAN_CFLAGS
10823 XMAN_LIBS=$pkg_cv_XMAN_LIBS
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10825 $as_echo "yes" >&6; }
10826 :
10827 fi
10828
10829
10830 # Check whether --with-manconfig was given.
10831 if test "${with_manconfig+set}" = set; then :
10832 withval=$with_manconfig; MANCONF="$withval"
10833 fi
10834
10835 if test x$MANCONF = x; then
10836 # Check for man page config files
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/man.conf" >&5
10838 $as_echo_n "checking for /etc/man.conf... " >&6; }
10839 if ${ac_cv_file__etc_man_conf+:} false; then :
10840 $as_echo_n "(cached) " >&6
10841 else
10842 test "$cross_compiling" = yes &&
10843 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10844 if test -r "/etc/man.conf"; then
10845 ac_cv_file__etc_man_conf=yes
10846 else
10847 ac_cv_file__etc_man_conf=no
10848 fi
10849 fi
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_man_conf" >&5
10851 $as_echo "$ac_cv_file__etc_man_conf" >&6; }
10852 if test "x$ac_cv_file__etc_man_conf" = xyes; then :
10853 MANCONF="/etc/man.conf"
10854 else
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/man.config" >&5
10856 $as_echo_n "checking for /etc/man.config... " >&6; }
10857 if ${ac_cv_file__etc_man_config+:} false; then :
10858 $as_echo_n "(cached) " >&6
10859 else
10860 test "$cross_compiling" = yes &&
10861 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10862 if test -r "/etc/man.config"; then
10863 ac_cv_file__etc_man_config=yes
10864 else
10865 ac_cv_file__etc_man_config=no
10866 fi
10867 fi
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_man_config" >&5
10869 $as_echo "$ac_cv_file__etc_man_config" >&6; }
10870 if test "x$ac_cv_file__etc_man_config" = xyes; then :
10871 MANCONF="/etc/man.config"
10872 else
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/manpath.config" >&5
10874 $as_echo_n "checking for /etc/manpath.config... " >&6; }
10875 if ${ac_cv_file__etc_manpath_config+:} false; then :
10876 $as_echo_n "(cached) " >&6
10877 else
10878 test "$cross_compiling" = yes &&
10879 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10880 if test -r "/etc/manpath.config"; then
10881 ac_cv_file__etc_manpath_config=yes
10882 else
10883 ac_cv_file__etc_manpath_config=no
10884 fi
10885 fi
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_manpath_config" >&5
10887 $as_echo "$ac_cv_file__etc_manpath_config" >&6; }
10888 if test "x$ac_cv_file__etc_manpath_config" = xyes; then :
10889 MANCONF="/etc/manpath.config"
10890 else
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/misc/man.conf" >&5
10892 $as_echo_n "checking for /usr/share/misc/man.conf... " >&6; }
10893 if ${ac_cv_file__usr_share_misc_man_conf+:} false; then :
10894 $as_echo_n "(cached) " >&6
10895 else
10896 test "$cross_compiling" = yes &&
10897 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10898 if test -r "/usr/share/misc/man.conf"; then
10899 ac_cv_file__usr_share_misc_man_conf=yes
10900 else
10901 ac_cv_file__usr_share_misc_man_conf=no
10902 fi
10903 fi
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_misc_man_conf" >&5
10905 $as_echo "$ac_cv_file__usr_share_misc_man_conf" >&6; }
10906 if test "x$ac_cv_file__usr_share_misc_man_conf" = xyes; then :
10907 MANCONF="/usr/share/misc/man.conf"
10908 fi
10909
10910 fi
10911
10912 fi
10913
10914 fi
10915
10916 fi
10917
10918 if test x$MANCONF != x ; then
10919
10920 cat >>confdefs.h <<_ACEOF
10921 #define MANCONF "$MANCONF"
10922 _ACEOF
10923
10924
10925 # Try to determine format of config file
10926 # would be better to somehow determine from the files themselves, but
10927 # we'll guess based on pathname and OS for now (mirrors old Imake tests)
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking man config file format" >&5
10929 $as_echo_n "checking man config file format... " >&6; }
10930 if test x$MANCONF = x/etc/manpath.config ; then
10931 MAN_CONFIG_STYLE="FreeBSD"
10932 else
10933 case $host_os in
10934 *darwin* | *openbsd* | *netbsd* )
10935 MAN_CONFIG_STYLE="OpenBSD"
10936 ;;
10937 *linux* | cygwin* )
10938 MAN_CONFIG_STYLE="Linux"
10939 ;;
10940 *bsd* )
10941 MAN_CONFIG_STYLE="BSD"
10942 ;;
10943 *)
10944 ;;
10945 esac
10946 fi
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN_CONFIG_STYLE" >&5
10948 $as_echo "$MAN_CONFIG_STYLE" >&6; }
10949
10950 case $MAN_CONFIG_STYLE in
10951 FreeBSD)
10952
10953 $as_echo "#define MANCONFIGSTYLE_FreeBSD 1" >>confdefs.h
10954
10955 ;;
10956 OpenBSD)
10957
10958 $as_echo "#define MANCONFIGSTYLE_OpenBSD 1" >>confdefs.h
10959
10960 ;;
10961 BSD)
10962
10963 $as_echo "#define MANCONFIGSTYLE_BSD 1" >>confdefs.h
10964
10965 ;;
10966 Linux)
10967
10968 $as_echo "#define MANCONFIGSTYLE_Linux 1" >>confdefs.h
10969
10970 ;;
10971 *)
10972 as_fn_error $? "Could not determine man page file config format." "$LINENO" 5
10973 esac
10974 fi
10975
10976
10977 pkg_failed=no
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
10979 $as_echo_n "checking for APPDEFS... " >&6; }
10980
10981 if test -n "$APPDEFS_CFLAGS"; then
10982 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
10983 elif test -n "$PKG_CONFIG"; then
10984 if test -n "$PKG_CONFIG" && \
10985 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10986 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10987 ac_status=$?
10988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10989 test $ac_status = 0; }; then
10990 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
10991 else
10992 pkg_failed=yes
10993 fi
10994 else
10995 pkg_failed=untried
10996 fi
10997 if test -n "$APPDEFS_LIBS"; then
10998 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
10999 elif test -n "$PKG_CONFIG"; then
11000 if test -n "$PKG_CONFIG" && \
11001 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11002 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11003 ac_status=$?
11004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11005 test $ac_status = 0; }; then
11006 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
11007 else
11008 pkg_failed=yes
11009 fi
11010 else
11011 pkg_failed=untried
11012 fi
11013
11014
11015
11016 if test $pkg_failed = yes; then
11017
11018 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11019 _pkg_short_errors_supported=yes
11020 else
11021 _pkg_short_errors_supported=no
11022 fi
11023 if test $_pkg_short_errors_supported = yes; then
11024 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1`
11025 else
11026 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1`
11027 fi
11028 # Put the nasty error message in config.log where it belongs
11029 echo "$APPDEFS_PKG_ERRORS" >&5
11030
11031 as_fn_error $? "Package requirements (xt) were not met:
11032
11033 $APPDEFS_PKG_ERRORS
11034
11035 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11036 installed software in a non-standard prefix.
11037
11038 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11039 and APPDEFS_LIBS to avoid the need to call pkg-config.
11040 See the pkg-config man page for more details.
11041 " "$LINENO" 5
11042 elif test $pkg_failed = untried; then
11043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11045 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11046 is in your PATH or set the PKG_CONFIG environment variable to the full
11047 path to pkg-config.
11048
11049 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11050 and APPDEFS_LIBS to avoid the need to call pkg-config.
11051 See the pkg-config man page for more details.
11052
11053 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11054 See \`config.log' for more details" "$LINENO" 5; }
11055 else
11056 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11057 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11059 $as_echo "yes" >&6; }
11060 :
11061 fi
11062 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11063
11064 # Check whether --with-appdefaultdir was given.
11065 if test "${with_appdefaultdir+set}" = set; then :
11066 withval=$with_appdefaultdir; appdefaultdir="$withval"
11067 else
11068 appdefaultdir="${xt_appdefaultdir}"
11069 fi
11070
11071
11072
11073 if test "x$RELEASE_VERSION" != "x"; then
11074
11075 cat >>confdefs.h <<_ACEOF
11076 #define RELEASE_VERSION "$RELEASE_VERSION"
11077 _ACEOF
11078
11079 fi
11080
11081 ac_config_files="$ac_config_files Makefile man/Makefile"
11082
11083 cat >confcache <<\_ACEOF
11084 # This file is a shell script that caches the results of configure
11085 # tests run on this system so they can be shared between configure
11086 # scripts and configure runs, see configure's option --config-cache.
11087 # It is not useful on other systems. If it contains results you don't
11088 # want to keep, you may remove or edit it.
11089 #
11090 # config.status only pays attention to the cache file if you give it
11091 # the --recheck option to rerun configure.
11092 #
11093 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11094 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11095 # following values.
11096
11097 _ACEOF
11098
11099 # The following way of writing the cache mishandles newlines in values,
11100 # but we know of no workaround that is simple, portable, and efficient.
11101 # So, we kill variables containing newlines.
11102 # Ultrix sh set writes to stderr and can't be redirected directly,
11103 # and sets the high bit in the cache file unless we assign to the vars.
11104 (
11105 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11106 eval ac_val=\$$ac_var
11107 case $ac_val in #(
11108 *${as_nl}*)
11109 case $ac_var in #(
11110 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11111 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11112 esac
11113 case $ac_var in #(
11114 _ | IFS | as_nl) ;; #(
11115 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11116 *) { eval $ac_var=; unset $ac_var;} ;;
11117 esac ;;
11118 esac
11119 done
11120
11121 (set) 2>&1 |
11122 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11123 *${as_nl}ac_space=\ *)
11124 # `set' does not quote correctly, so add quotes: double-quote
11125 # substitution turns \\\\ into \\, and sed turns \\ into \.
11126 sed -n \
11127 "s/'/'\\\\''/g;
11128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11129 ;; #(
11130 *)
11131 # `set' quotes correctly as required by POSIX, so do not add quotes.
11132 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11133 ;;
11134 esac |
11135 sort
11136 ) |
11137 sed '
11138 /^ac_cv_env_/b end
11139 t clear
11140 :clear
11141 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11142 t end
11143 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11144 :end' >>confcache
11145 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11146 if test -w "$cache_file"; then
11147 if test "x$cache_file" != "x/dev/null"; then
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11149 $as_echo "$as_me: updating cache $cache_file" >&6;}
11150 if test ! -f "$cache_file" || test -h "$cache_file"; then
11151 cat confcache >"$cache_file"
11152 else
11153 case $cache_file in #(
11154 */* | ?:*)
11155 mv -f confcache "$cache_file"$$ &&
11156 mv -f "$cache_file"$$ "$cache_file" ;; #(
11157 *)
11158 mv -f confcache "$cache_file" ;;
11159 esac
11160 fi
11161 fi
11162 else
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11164 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11165 fi
11166 fi
11167 rm -f confcache
11168
11169 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11170 # Let make expand exec_prefix.
11171 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11172
11173 DEFS=-DHAVE_CONFIG_H
11174
11175 ac_libobjs=
11176 ac_ltlibobjs=
11177 U=
11178 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11179 # 1. Remove the extension, and $U if already installed.
11180 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11181 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11182 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11183 # will be set to the directory where LIBOBJS objects are built.
11184 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11185 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11186 done
11187 LIBOBJS=$ac_libobjs
11188
11189 LTLIBOBJS=$ac_ltlibobjs
11190
11191
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11193 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11194 if test -n "$am_sleep_pid"; then
11195 # Hide warnings about reused PIDs.
11196 wait $am_sleep_pid 2>/dev/null
11197 fi
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11199 $as_echo "done" >&6; }
11200 if test -n "$EXEEXT"; then
11201 am__EXEEXT_TRUE=
11202 am__EXEEXT_FALSE='#'
11203 else
11204 am__EXEEXT_TRUE='#'
11205 am__EXEEXT_FALSE=
11206 fi
11207
11208 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11209 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11211 fi
11212 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11213 as_fn_error $? "conditional \"AMDEP\" was never defined.
11214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11215 fi
11216 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11217 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11219 fi
11220
11221 : "${CONFIG_STATUS=./config.status}"
11222 ac_write_fail=0
11223 ac_clean_files_save=$ac_clean_files
11224 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11226 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11227 as_write_fail=0
11228 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11229 #! $SHELL
11230 # Generated by $as_me.
11231 # Run this file to recreate the current configuration.
11232 # Compiler output produced by configure, useful for debugging
11233 # configure, is in config.log if it exists.
11234
11235 debug=false
11236 ac_cs_recheck=false
11237 ac_cs_silent=false
11238
11239 SHELL=\${CONFIG_SHELL-$SHELL}
11240 export SHELL
11241 _ASEOF
11242 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11243 ## -------------------- ##
11244 ## M4sh Initialization. ##
11245 ## -------------------- ##
11246
11247 # Be more Bourne compatible
11248 DUALCASE=1; export DUALCASE # for MKS sh
11249 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11250 emulate sh
11251 NULLCMD=:
11252 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11253 # is contrary to our usage. Disable this feature.
11254 alias -g '${1+"$@"}'='"$@"'
11255 setopt NO_GLOB_SUBST
11256 else
11257 case `(set -o) 2>/dev/null` in #(
11258 *posix*) :
11259 set -o posix ;; #(
11260 *) :
11261 ;;
11262 esac
11263 fi
11264
11265
11266 as_nl='
11267 '
11268 export as_nl
11269 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11270 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11271 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11272 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11273 # Prefer a ksh shell builtin over an external printf program on Solaris,
11274 # but without wasting forks for bash or zsh.
11275 if test -z "$BASH_VERSION$ZSH_VERSION" \
11276 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11277 as_echo='print -r --'
11278 as_echo_n='print -rn --'
11279 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11280 as_echo='printf %s\n'
11281 as_echo_n='printf %s'
11282 else
11283 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11284 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11285 as_echo_n='/usr/ucb/echo -n'
11286 else
11287 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11288 as_echo_n_body='eval
11289 arg=$1;
11290 case $arg in #(
11291 *"$as_nl"*)
11292 expr "X$arg" : "X\\(.*\\)$as_nl";
11293 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11294 esac;
11295 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11296 '
11297 export as_echo_n_body
11298 as_echo_n='sh -c $as_echo_n_body as_echo'
11299 fi
11300 export as_echo_body
11301 as_echo='sh -c $as_echo_body as_echo'
11302 fi
11303
11304 # The user is always right.
11305 if test "${PATH_SEPARATOR+set}" != set; then
11306 PATH_SEPARATOR=:
11307 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11308 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11309 PATH_SEPARATOR=';'
11310 }
11311 fi
11312
11313
11314 # IFS
11315 # We need space, tab and new line, in precisely that order. Quoting is
11316 # there to prevent editors from complaining about space-tab.
11317 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11318 # splitting by setting IFS to empty value.)
11319 IFS=" "" $as_nl"
11320
11321 # Find who we are. Look in the path if we contain no directory separator.
11322 as_myself=
11323 case $0 in #((
11324 *[\\/]* ) as_myself=$0 ;;
11325 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11326 for as_dir in $PATH
11327 do
11328 IFS=$as_save_IFS
11329 test -z "$as_dir" && as_dir=.
11330 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11331 done
11332 IFS=$as_save_IFS
11333
11334 ;;
11335 esac
11336 # We did not find ourselves, most probably we were run as `sh COMMAND'
11337 # in which case we are not to be found in the path.
11338 if test "x$as_myself" = x; then
11339 as_myself=$0
11340 fi
11341 if test ! -f "$as_myself"; then
11342 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11343 exit 1
11344 fi
11345
11346 # Unset variables that we do not need and which cause bugs (e.g. in
11347 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11348 # suppresses any "Segmentation fault" message there. '((' could
11349 # trigger a bug in pdksh 5.2.14.
11350 for as_var in BASH_ENV ENV MAIL MAILPATH
11351 do eval test x\${$as_var+set} = xset \
11352 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11353 done
11354 PS1='$ '
11355 PS2='> '
11356 PS4='+ '
11357
11358 # NLS nuisances.
11359 LC_ALL=C
11360 export LC_ALL
11361 LANGUAGE=C
11362 export LANGUAGE
11363
11364 # CDPATH.
11365 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11366
11367
11368 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11369 # ----------------------------------------
11370 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11371 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11372 # script with STATUS, using 1 if that was 0.
11373 as_fn_error ()
11374 {
11375 as_status=$1; test $as_status -eq 0 && as_status=1
11376 if test "$4"; then
11377 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11378 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11379 fi
11380 $as_echo "$as_me: error: $2" >&2
11381 as_fn_exit $as_status
11382 } # as_fn_error
11383
11384
11385 # as_fn_set_status STATUS
11386 # -----------------------
11387 # Set $? to STATUS, without forking.
11388 as_fn_set_status ()
11389 {
11390 return $1
11391 } # as_fn_set_status
11392
11393 # as_fn_exit STATUS
11394 # -----------------
11395 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11396 as_fn_exit ()
11397 {
11398 set +e
11399 as_fn_set_status $1
11400 exit $1
11401 } # as_fn_exit
11402
11403 # as_fn_unset VAR
11404 # ---------------
11405 # Portably unset VAR.
11406 as_fn_unset ()
11407 {
11408 { eval $1=; unset $1;}
11409 }
11410 as_unset=as_fn_unset
11411 # as_fn_append VAR VALUE
11412 # ----------------------
11413 # Append the text in VALUE to the end of the definition contained in VAR. Take
11414 # advantage of any shell optimizations that allow amortized linear growth over
11415 # repeated appends, instead of the typical quadratic growth present in naive
11416 # implementations.
11417 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11418 eval 'as_fn_append ()
11419 {
11420 eval $1+=\$2
11421 }'
11422 else
11423 as_fn_append ()
11424 {
11425 eval $1=\$$1\$2
11426 }
11427 fi # as_fn_append
11428
11429 # as_fn_arith ARG...
11430 # ------------------
11431 # Perform arithmetic evaluation on the ARGs, and store the result in the
11432 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11433 # must be portable across $(()) and expr.
11434 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11435 eval 'as_fn_arith ()
11436 {
11437 as_val=$(( $* ))
11438 }'
11439 else
11440 as_fn_arith ()
11441 {
11442 as_val=`expr "$@" || test $? -eq 1`
11443 }
11444 fi # as_fn_arith
11445
11446
11447 if expr a : '\(a\)' >/dev/null 2>&1 &&
11448 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11449 as_expr=expr
11450 else
11451 as_expr=false
11452 fi
11453
11454 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11455 as_basename=basename
11456 else
11457 as_basename=false
11458 fi
11459
11460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11461 as_dirname=dirname
11462 else
11463 as_dirname=false
11464 fi
11465
11466 as_me=`$as_basename -- "$0" ||
11467 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11468 X"$0" : 'X\(//\)$' \| \
11469 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11470 $as_echo X/"$0" |
11471 sed '/^.*\/\([^/][^/]*\)\/*$/{
11472 s//\1/
11473 q
11474 }
11475 /^X\/\(\/\/\)$/{
11476 s//\1/
11477 q
11478 }
11479 /^X\/\(\/\).*/{
11480 s//\1/
11481 q
11482 }
11483 s/.*/./; q'`
11484
11485 # Avoid depending upon Character Ranges.
11486 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11487 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11488 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11489 as_cr_digits='0123456789'
11490 as_cr_alnum=$as_cr_Letters$as_cr_digits
11491
11492 ECHO_C= ECHO_N= ECHO_T=
11493 case `echo -n x` in #(((((
11494 -n*)
11495 case `echo 'xy\c'` in
11496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11497 xy) ECHO_C='\c';;
11498 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11499 ECHO_T=' ';;
11500 esac;;
11501 *)
11502 ECHO_N='-n';;
11503 esac
11504
11505 rm -f conf$$ conf$$.exe conf$$.file
11506 if test -d conf$$.dir; then
11507 rm -f conf$$.dir/conf$$.file
11508 else
11509 rm -f conf$$.dir
11510 mkdir conf$$.dir 2>/dev/null
11511 fi
11512 if (echo >conf$$.file) 2>/dev/null; then
11513 if ln -s conf$$.file conf$$ 2>/dev/null; then
11514 as_ln_s='ln -s'
11515 # ... but there are two gotchas:
11516 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11517 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11518 # In both cases, we have to default to `cp -p'.
11519 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11520 as_ln_s='cp -p'
11521 elif ln conf$$.file conf$$ 2>/dev/null; then
11522 as_ln_s=ln
11523 else
11524 as_ln_s='cp -p'
11525 fi
11526 else
11527 as_ln_s='cp -p'
11528 fi
11529 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11530 rmdir conf$$.dir 2>/dev/null
11531
11532
11533 # as_fn_mkdir_p
11534 # -------------
11535 # Create "$as_dir" as a directory, including parents if necessary.
11536 as_fn_mkdir_p ()
11537 {
11538
11539 case $as_dir in #(
11540 -*) as_dir=./$as_dir;;
11541 esac
11542 test -d "$as_dir" || eval $as_mkdir_p || {
11543 as_dirs=
11544 while :; do
11545 case $as_dir in #(
11546 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11547 *) as_qdir=$as_dir;;
11548 esac
11549 as_dirs="'$as_qdir' $as_dirs"
11550 as_dir=`$as_dirname -- "$as_dir" ||
11551 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11552 X"$as_dir" : 'X\(//\)[^/]' \| \
11553 X"$as_dir" : 'X\(//\)$' \| \
11554 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11555 $as_echo X"$as_dir" |
11556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11557 s//\1/
11558 q
11559 }
11560 /^X\(\/\/\)[^/].*/{
11561 s//\1/
11562 q
11563 }
11564 /^X\(\/\/\)$/{
11565 s//\1/
11566 q
11567 }
11568 /^X\(\/\).*/{
11569 s//\1/
11570 q
11571 }
11572 s/.*/./; q'`
11573 test -d "$as_dir" && break
11574 done
11575 test -z "$as_dirs" || eval "mkdir $as_dirs"
11576 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11577
11578
11579 } # as_fn_mkdir_p
11580 if mkdir -p . 2>/dev/null; then
11581 as_mkdir_p='mkdir -p "$as_dir"'
11582 else
11583 test -d ./-p && rmdir ./-p
11584 as_mkdir_p=false
11585 fi
11586
11587 if test -x / >/dev/null 2>&1; then
11588 as_test_x='test -x'
11589 else
11590 if ls -dL / >/dev/null 2>&1; then
11591 as_ls_L_option=L
11592 else
11593 as_ls_L_option=
11594 fi
11595 as_test_x='
11596 eval sh -c '\''
11597 if test -d "$1"; then
11598 test -d "$1/.";
11599 else
11600 case $1 in #(
11601 -*)set "./$1";;
11602 esac;
11603 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11604 ???[sx]*):;;*)false;;esac;fi
11605 '\'' sh
11606 '
11607 fi
11608 as_executable_p=$as_test_x
11609
11610 # Sed expression to map a string onto a valid CPP name.
11611 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11612
11613 # Sed expression to map a string onto a valid variable name.
11614 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11615
11616
11617 exec 6>&1
11618 ## ----------------------------------- ##
11619 ## Main body of $CONFIG_STATUS script. ##
11620 ## ----------------------------------- ##
11621 _ASEOF
11622 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11623
11624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11625 # Save the log message, to keep $0 and so on meaningful, and to
11626 # report actual input values of CONFIG_FILES etc. instead of their
11627 # values after options handling.
11628 ac_log="
11629 This file was extended by xman $as_me 1.1.3, which was
11630 generated by GNU Autoconf 2.68. Invocation command line was
11631
11632 CONFIG_FILES = $CONFIG_FILES
11633 CONFIG_HEADERS = $CONFIG_HEADERS
11634 CONFIG_LINKS = $CONFIG_LINKS
11635 CONFIG_COMMANDS = $CONFIG_COMMANDS
11636 $ $0 $@
11637
11638 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11639 "
11640
11641 _ACEOF
11642
11643 case $ac_config_files in *"
11644 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11645 esac
11646
11647 case $ac_config_headers in *"
11648 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11649 esac
11650
11651
11652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11653 # Files that config.status was made for.
11654 config_files="$ac_config_files"
11655 config_headers="$ac_config_headers"
11656 config_commands="$ac_config_commands"
11657
11658 _ACEOF
11659
11660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11661 ac_cs_usage="\
11662 \`$as_me' instantiates files and other configuration actions
11663 from templates according to the current configuration. Unless the files
11664 and actions are specified as TAGs, all are instantiated by default.
11665
11666 Usage: $0 [OPTION]... [TAG]...
11667
11668 -h, --help print this help, then exit
11669 -V, --version print version number and configuration settings, then exit
11670 --config print configuration, then exit
11671 -q, --quiet, --silent
11672 do not print progress messages
11673 -d, --debug don't remove temporary files
11674 --recheck update $as_me by reconfiguring in the same conditions
11675 --file=FILE[:TEMPLATE]
11676 instantiate the configuration file FILE
11677 --header=FILE[:TEMPLATE]
11678 instantiate the configuration header FILE
11679
11680 Configuration files:
11681 $config_files
11682
11683 Configuration headers:
11684 $config_headers
11685
11686 Configuration commands:
11687 $config_commands
11688
11689 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11690
11691 _ACEOF
11692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11693 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11694 ac_cs_version="\\
11695 xman config.status 1.1.3
11696 configured by $0, generated by GNU Autoconf 2.68,
11697 with options \\"\$ac_cs_config\\"
11698
11699 Copyright (C) 2010 Free Software Foundation, Inc.
11700 This config.status script is free software; the Free Software Foundation
11701 gives unlimited permission to copy, distribute and modify it."
11702
11703 ac_pwd='$ac_pwd'
11704 srcdir='$srcdir'
11705 INSTALL='$INSTALL'
11706 MKDIR_P='$MKDIR_P'
11707 AWK='$AWK'
11708 test -n "\$AWK" || AWK=awk
11709 _ACEOF
11710
11711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11712 # The default lists apply if the user does not specify any file.
11713 ac_need_defaults=:
11714 while test $# != 0
11715 do
11716 case $1 in
11717 --*=?*)
11718 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11719 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11720 ac_shift=:
11721 ;;
11722 --*=)
11723 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11724 ac_optarg=
11725 ac_shift=:
11726 ;;
11727 *)
11728 ac_option=$1
11729 ac_optarg=$2
11730 ac_shift=shift
11731 ;;
11732 esac
11733
11734 case $ac_option in
11735 # Handling of the options.
11736 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11737 ac_cs_recheck=: ;;
11738 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11739 $as_echo "$ac_cs_version"; exit ;;
11740 --config | --confi | --conf | --con | --co | --c )
11741 $as_echo "$ac_cs_config"; exit ;;
11742 --debug | --debu | --deb | --de | --d | -d )
11743 debug=: ;;
11744 --file | --fil | --fi | --f )
11745 $ac_shift
11746 case $ac_optarg in
11747 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11748 '') as_fn_error $? "missing file argument" ;;
11749 esac
11750 as_fn_append CONFIG_FILES " '$ac_optarg'"
11751 ac_need_defaults=false;;
11752 --header | --heade | --head | --hea )
11753 $ac_shift
11754 case $ac_optarg in
11755 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11756 esac
11757 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11758 ac_need_defaults=false;;
11759 --he | --h)
11760 # Conflict between --help and --header
11761 as_fn_error $? "ambiguous option: \`$1'
11762 Try \`$0 --help' for more information.";;
11763 --help | --hel | -h )
11764 $as_echo "$ac_cs_usage"; exit ;;
11765 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11766 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11767 ac_cs_silent=: ;;
11768
11769 # This is an error.
11770 -*) as_fn_error $? "unrecognized option: \`$1'
11771 Try \`$0 --help' for more information." ;;
11772
11773 *) as_fn_append ac_config_targets " $1"
11774 ac_need_defaults=false ;;
11775
11776 esac
11777 shift
11778 done
11779
11780 ac_configure_extra_args=
11781
11782 if $ac_cs_silent; then
11783 exec 6>/dev/null
11784 ac_configure_extra_args="$ac_configure_extra_args --silent"
11785 fi
11786
11787 _ACEOF
11788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11789 if \$ac_cs_recheck; then
11790 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11791 shift
11792 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11793 CONFIG_SHELL='$SHELL'
11794 export CONFIG_SHELL
11795 exec "\$@"
11796 fi
11797
11798 _ACEOF
11799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11800 exec 5>>config.log
11801 {
11802 echo
11803 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11804 ## Running $as_me. ##
11805 _ASBOX
11806 $as_echo "$ac_log"
11807 } >&5
11808
11809 _ACEOF
11810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11811 #
11812 # INIT-COMMANDS
11813 #
11814 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11815
11816 _ACEOF
11817
11818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11819
11820 # Handling of arguments.
11821 for ac_config_target in $ac_config_targets
11822 do
11823 case $ac_config_target in
11824 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11825 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11826 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11827 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11828
11829 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11830 esac
11831 done
11832
11833
11834 # If the user did not use the arguments to specify the items to instantiate,
11835 # then the envvar interface is used. Set only those that are not.
11836 # We use the long form for the default assignment because of an extremely
11837 # bizarre bug on SunOS 4.1.3.
11838 if $ac_need_defaults; then
11839 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11840 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11841 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11842 fi
11843
11844 # Have a temporary directory for convenience. Make it in the build tree
11845 # simply because there is no reason against having it here, and in addition,
11846 # creating and moving files from /tmp can sometimes cause problems.
11847 # Hook for its removal unless debugging.
11848 # Note that there is a small window in which the directory will not be cleaned:
11849 # after its creation but before its name has been assigned to `$tmp'.
11850 $debug ||
11851 {
11852 tmp= ac_tmp=
11853 trap 'exit_status=$?
11854 : "${ac_tmp:=$tmp}"
11855 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11856 ' 0
11857 trap 'as_fn_exit 1' 1 2 13 15
11858 }
11859 # Create a (secure) tmp directory for tmp files.
11860
11861 {
11862 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11863 test -d "$tmp"
11864 } ||
11865 {
11866 tmp=./conf$$-$RANDOM
11867 (umask 077 && mkdir "$tmp")
11868 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11869 ac_tmp=$tmp
11870
11871 # Set up the scripts for CONFIG_FILES section.
11872 # No need to generate them if there are no CONFIG_FILES.
11873 # This happens for instance with `./config.status config.h'.
11874 if test -n "$CONFIG_FILES"; then
11875
11876
11877 ac_cr=`echo X | tr X '\015'`
11878 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11879 # But we know of no other shell where ac_cr would be empty at this
11880 # point, so we can use a bashism as a fallback.
11881 if test "x$ac_cr" = x; then
11882 eval ac_cr=\$\'\\r\'
11883 fi
11884 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11885 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11886 ac_cs_awk_cr='\\r'
11887 else
11888 ac_cs_awk_cr=$ac_cr
11889 fi
11890
11891 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11892 _ACEOF
11893
11894
11895 {
11896 echo "cat >conf$$subs.awk <<_ACEOF" &&
11897 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11898 echo "_ACEOF"
11899 } >conf$$subs.sh ||
11900 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11901 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11902 ac_delim='%!_!# '
11903 for ac_last_try in false false false false false :; do
11904 . ./conf$$subs.sh ||
11905 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11906
11907 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11908 if test $ac_delim_n = $ac_delim_num; then
11909 break
11910 elif $ac_last_try; then
11911 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11912 else
11913 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11914 fi
11915 done
11916 rm -f conf$$subs.sh
11917
11918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11919 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11920 _ACEOF
11921 sed -n '
11922 h
11923 s/^/S["/; s/!.*/"]=/
11924 p
11925 g
11926 s/^[^!]*!//
11927 :repl
11928 t repl
11929 s/'"$ac_delim"'$//
11930 t delim
11931 :nl
11932 h
11933 s/\(.\{148\}\)..*/\1/
11934 t more1
11935 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11936 p
11937 n
11938 b repl
11939 :more1
11940 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11941 p
11942 g
11943 s/.\{148\}//
11944 t nl
11945 :delim
11946 h
11947 s/\(.\{148\}\)..*/\1/
11948 t more2
11949 s/["\\]/\\&/g; s/^/"/; s/$/"/
11950 p
11951 b
11952 :more2
11953 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11954 p
11955 g
11956 s/.\{148\}//
11957 t delim
11958 ' <conf$$subs.awk | sed '
11959 /^[^""]/{
11960 N
11961 s/\n//
11962 }
11963 ' >>$CONFIG_STATUS || ac_write_fail=1
11964 rm -f conf$$subs.awk
11965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11966 _ACAWK
11967 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11968 for (key in S) S_is_set[key] = 1
11969 FS = ""
11970
11971 }
11972 {
11973 line = $ 0
11974 nfields = split(line, field, "@")
11975 substed = 0
11976 len = length(field[1])
11977 for (i = 2; i < nfields; i++) {
11978 key = field[i]
11979 keylen = length(key)
11980 if (S_is_set[key]) {
11981 value = S[key]
11982 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11983 len += length(value) + length(field[++i])
11984 substed = 1
11985 } else
11986 len += 1 + keylen
11987 }
11988
11989 print line
11990 }
11991
11992 _ACAWK
11993 _ACEOF
11994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11995 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11996 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11997 else
11998 cat
11999 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12000 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12001 _ACEOF
12002
12003 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12004 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12005 # trailing colons and then remove the whole line if VPATH becomes empty
12006 # (actually we leave an empty line to preserve line numbers).
12007 if test "x$srcdir" = x.; then
12008 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12009 h
12010 s///
12011 s/^/:/
12012 s/[ ]*$/:/
12013 s/:\$(srcdir):/:/g
12014 s/:\${srcdir}:/:/g
12015 s/:@srcdir@:/:/g
12016 s/^:*//
12017 s/:*$//
12018 x
12019 s/\(=[ ]*\).*/\1/
12020 G
12021 s/\n//
12022 s/^[^=]*=[ ]*$//
12023 }'
12024 fi
12025
12026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12027 fi # test -n "$CONFIG_FILES"
12028
12029 # Set up the scripts for CONFIG_HEADERS section.
12030 # No need to generate them if there are no CONFIG_HEADERS.
12031 # This happens for instance with `./config.status Makefile'.
12032 if test -n "$CONFIG_HEADERS"; then
12033 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12034 BEGIN {
12035 _ACEOF
12036
12037 # Transform confdefs.h into an awk script `defines.awk', embedded as
12038 # here-document in config.status, that substitutes the proper values into
12039 # config.h.in to produce config.h.
12040
12041 # Create a delimiter string that does not exist in confdefs.h, to ease
12042 # handling of long lines.
12043 ac_delim='%!_!# '
12044 for ac_last_try in false false :; do
12045 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12046 if test -z "$ac_tt"; then
12047 break
12048 elif $ac_last_try; then
12049 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12050 else
12051 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12052 fi
12053 done
12054
12055 # For the awk script, D is an array of macro values keyed by name,
12056 # likewise P contains macro parameters if any. Preserve backslash
12057 # newline sequences.
12058
12059 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12060 sed -n '
12061 s/.\{148\}/&'"$ac_delim"'/g
12062 t rset
12063 :rset
12064 s/^[ ]*#[ ]*define[ ][ ]*/ /
12065 t def
12066 d
12067 :def
12068 s/\\$//
12069 t bsnl
12070 s/["\\]/\\&/g
12071 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12072 D["\1"]=" \3"/p
12073 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12074 d
12075 :bsnl
12076 s/["\\]/\\&/g
12077 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12078 D["\1"]=" \3\\\\\\n"\\/p
12079 t cont
12080 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12081 t cont
12082 d
12083 :cont
12084 n
12085 s/.\{148\}/&'"$ac_delim"'/g
12086 t clear
12087 :clear
12088 s/\\$//
12089 t bsnlc
12090 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12091 d
12092 :bsnlc
12093 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12094 b cont
12095 ' <confdefs.h | sed '
12096 s/'"$ac_delim"'/"\\\
12097 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12098
12099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12100 for (key in D) D_is_set[key] = 1
12101 FS = ""
12102 }
12103 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12104 line = \$ 0
12105 split(line, arg, " ")
12106 if (arg[1] == "#") {
12107 defundef = arg[2]
12108 mac1 = arg[3]
12109 } else {
12110 defundef = substr(arg[1], 2)
12111 mac1 = arg[2]
12112 }
12113 split(mac1, mac2, "(") #)
12114 macro = mac2[1]
12115 prefix = substr(line, 1, index(line, defundef) - 1)
12116 if (D_is_set[macro]) {
12117 # Preserve the white space surrounding the "#".
12118 print prefix "define", macro P[macro] D[macro]
12119 next
12120 } else {
12121 # Replace #undef with comments. This is necessary, for example,
12122 # in the case of _POSIX_SOURCE, which is predefined and required
12123 # on some systems where configure will not decide to define it.
12124 if (defundef == "undef") {
12125 print "/*", prefix defundef, macro, "*/"
12126 next
12127 }
12128 }
12129 }
12130 { print }
12131 _ACAWK
12132 _ACEOF
12133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12134 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12135 fi # test -n "$CONFIG_HEADERS"
12136
12137
12138 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12139 shift
12140 for ac_tag
12141 do
12142 case $ac_tag in
12143 :[FHLC]) ac_mode=$ac_tag; continue;;
12144 esac
12145 case $ac_mode$ac_tag in
12146 :[FHL]*:*);;
12147 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12148 :[FH]-) ac_tag=-:-;;
12149 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12150 esac
12151 ac_save_IFS=$IFS
12152 IFS=:
12153 set x $ac_tag
12154 IFS=$ac_save_IFS
12155 shift
12156 ac_file=$1
12157 shift
12158
12159 case $ac_mode in
12160 :L) ac_source=$1;;
12161 :[FH])
12162 ac_file_inputs=
12163 for ac_f
12164 do
12165 case $ac_f in
12166 -) ac_f="$ac_tmp/stdin";;
12167 *) # Look for the file first in the build tree, then in the source tree
12168 # (if the path is not absolute). The absolute path cannot be DOS-style,
12169 # because $ac_f cannot contain `:'.
12170 test -f "$ac_f" ||
12171 case $ac_f in
12172 [\\/$]*) false;;
12173 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12174 esac ||
12175 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12176 esac
12177 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12178 as_fn_append ac_file_inputs " '$ac_f'"
12179 done
12180
12181 # Let's still pretend it is `configure' which instantiates (i.e., don't
12182 # use $as_me), people would be surprised to read:
12183 # /* config.h. Generated by config.status. */
12184 configure_input='Generated from '`
12185 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12186 `' by configure.'
12187 if test x"$ac_file" != x-; then
12188 configure_input="$ac_file. $configure_input"
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12190 $as_echo "$as_me: creating $ac_file" >&6;}
12191 fi
12192 # Neutralize special characters interpreted by sed in replacement strings.
12193 case $configure_input in #(
12194 *\&* | *\|* | *\\* )
12195 ac_sed_conf_input=`$as_echo "$configure_input" |
12196 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12197 *) ac_sed_conf_input=$configure_input;;
12198 esac
12199
12200 case $ac_tag in
12201 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12202 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12203 esac
12204 ;;
12205 esac
12206
12207 ac_dir=`$as_dirname -- "$ac_file" ||
12208 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12209 X"$ac_file" : 'X\(//\)[^/]' \| \
12210 X"$ac_file" : 'X\(//\)$' \| \
12211 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12212 $as_echo X"$ac_file" |
12213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12214 s//\1/
12215 q
12216 }
12217 /^X\(\/\/\)[^/].*/{
12218 s//\1/
12219 q
12220 }
12221 /^X\(\/\/\)$/{
12222 s//\1/
12223 q
12224 }
12225 /^X\(\/\).*/{
12226 s//\1/
12227 q
12228 }
12229 s/.*/./; q'`
12230 as_dir="$ac_dir"; as_fn_mkdir_p
12231 ac_builddir=.
12232
12233 case "$ac_dir" in
12234 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12235 *)
12236 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12237 # A ".." for each directory in $ac_dir_suffix.
12238 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12239 case $ac_top_builddir_sub in
12240 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12241 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12242 esac ;;
12243 esac
12244 ac_abs_top_builddir=$ac_pwd
12245 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12246 # for backward compatibility:
12247 ac_top_builddir=$ac_top_build_prefix
12248
12249 case $srcdir in
12250 .) # We are building in place.
12251 ac_srcdir=.
12252 ac_top_srcdir=$ac_top_builddir_sub
12253 ac_abs_top_srcdir=$ac_pwd ;;
12254 [\\/]* | ?:[\\/]* ) # Absolute name.
12255 ac_srcdir=$srcdir$ac_dir_suffix;
12256 ac_top_srcdir=$srcdir
12257 ac_abs_top_srcdir=$srcdir ;;
12258 *) # Relative name.
12259 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12260 ac_top_srcdir=$ac_top_build_prefix$srcdir
12261 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12262 esac
12263 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12264
12265
12266 case $ac_mode in
12267 :F)
12268 #
12269 # CONFIG_FILE
12270 #
12271
12272 case $INSTALL in
12273 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12274 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12275 esac
12276 ac_MKDIR_P=$MKDIR_P
12277 case $MKDIR_P in
12278 [\\/$]* | ?:[\\/]* ) ;;
12279 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12280 esac
12281 _ACEOF
12282
12283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12284 # If the template does not know about datarootdir, expand it.
12285 # FIXME: This hack should be removed a few years after 2.60.
12286 ac_datarootdir_hack=; ac_datarootdir_seen=
12287 ac_sed_dataroot='
12288 /datarootdir/ {
12289 p
12290 q
12291 }
12292 /@datadir@/p
12293 /@docdir@/p
12294 /@infodir@/p
12295 /@localedir@/p
12296 /@mandir@/p'
12297 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12298 *datarootdir*) ac_datarootdir_seen=yes;;
12299 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12301 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12302 _ACEOF
12303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12304 ac_datarootdir_hack='
12305 s&@datadir@&$datadir&g
12306 s&@docdir@&$docdir&g
12307 s&@infodir@&$infodir&g
12308 s&@localedir@&$localedir&g
12309 s&@mandir@&$mandir&g
12310 s&\\\${datarootdir}&$datarootdir&g' ;;
12311 esac
12312 _ACEOF
12313
12314 # Neutralize VPATH when `$srcdir' = `.'.
12315 # Shell code in configure.ac might set extrasub.
12316 # FIXME: do we really want to maintain this feature?
12317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12318 ac_sed_extra="$ac_vpsub
12319 $extrasub
12320 _ACEOF
12321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12322 :t
12323 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12324 s|@configure_input@|$ac_sed_conf_input|;t t
12325 s&@top_builddir@&$ac_top_builddir_sub&;t t
12326 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12327 s&@srcdir@&$ac_srcdir&;t t
12328 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12329 s&@top_srcdir@&$ac_top_srcdir&;t t
12330 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12331 s&@builddir@&$ac_builddir&;t t
12332 s&@abs_builddir@&$ac_abs_builddir&;t t
12333 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12334 s&@INSTALL@&$ac_INSTALL&;t t
12335 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12336 $ac_datarootdir_hack
12337 "
12338 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12339 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12340
12341 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12342 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12343 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12344 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12346 which seems to be undefined. Please make sure it is defined" >&5
12347 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12348 which seems to be undefined. Please make sure it is defined" >&2;}
12349
12350 rm -f "$ac_tmp/stdin"
12351 case $ac_file in
12352 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12353 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12354 esac \
12355 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12356 ;;
12357 :H)
12358 #
12359 # CONFIG_HEADER
12360 #
12361 if test x"$ac_file" != x-; then
12362 {
12363 $as_echo "/* $configure_input */" \
12364 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12365 } >"$ac_tmp/config.h" \
12366 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12367 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12369 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12370 else
12371 rm -f "$ac_file"
12372 mv "$ac_tmp/config.h" "$ac_file" \
12373 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12374 fi
12375 else
12376 $as_echo "/* $configure_input */" \
12377 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12378 || as_fn_error $? "could not create -" "$LINENO" 5
12379 fi
12380 # Compute "$ac_file"'s index in $config_headers.
12381 _am_arg="$ac_file"
12382 _am_stamp_count=1
12383 for _am_header in $config_headers :; do
12384 case $_am_header in
12385 $_am_arg | $_am_arg:* )
12386 break ;;
12387 * )
12388 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12389 esac
12390 done
12391 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12392 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12393 X"$_am_arg" : 'X\(//\)[^/]' \| \
12394 X"$_am_arg" : 'X\(//\)$' \| \
12395 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12396 $as_echo X"$_am_arg" |
12397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12398 s//\1/
12399 q
12400 }
12401 /^X\(\/\/\)[^/].*/{
12402 s//\1/
12403 q
12404 }
12405 /^X\(\/\/\)$/{
12406 s//\1/
12407 q
12408 }
12409 /^X\(\/\).*/{
12410 s//\1/
12411 q
12412 }
12413 s/.*/./; q'`/stamp-h$_am_stamp_count
12414 ;;
12415
12416 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12417 $as_echo "$as_me: executing $ac_file commands" >&6;}
12418 ;;
12419 esac
12420
12421
12422 case $ac_file$ac_mode in
12423 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12424 # Older Autoconf quotes --file arguments for eval, but not when files
12425 # are listed without --file. Let's play safe and only enable the eval
12426 # if we detect the quoting.
12427 case $CONFIG_FILES in
12428 *\'*) eval set x "$CONFIG_FILES" ;;
12429 *) set x $CONFIG_FILES ;;
12430 esac
12431 shift
12432 for mf
12433 do
12434 # Strip MF so we end up with the name of the file.
12435 mf=`echo "$mf" | sed -e 's/:.*$//'`
12436 # Check whether this is an Automake generated Makefile or not.
12437 # We used to match only the files named 'Makefile.in', but
12438 # some people rename them; so instead we look at the file content.
12439 # Grep'ing the first line is not enough: some people post-process
12440 # each Makefile.in and add a new line on top of each file to say so.
12441 # Grep'ing the whole file is not good either: AIX grep has a line
12442 # limit of 2048, but all sed's we know have understand at least 4000.
12443 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12444 dirpart=`$as_dirname -- "$mf" ||
12445 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12446 X"$mf" : 'X\(//\)[^/]' \| \
12447 X"$mf" : 'X\(//\)$' \| \
12448 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12449 $as_echo X"$mf" |
12450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12451 s//\1/
12452 q
12453 }
12454 /^X\(\/\/\)[^/].*/{
12455 s//\1/
12456 q
12457 }
12458 /^X\(\/\/\)$/{
12459 s//\1/
12460 q
12461 }
12462 /^X\(\/\).*/{
12463 s//\1/
12464 q
12465 }
12466 s/.*/./; q'`
12467 else
12468 continue
12469 fi
12470 # Extract the definition of DEPDIR, am__include, and am__quote
12471 # from the Makefile without running 'make'.
12472 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12473 test -z "$DEPDIR" && continue
12474 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12475 test -z "$am__include" && continue
12476 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12477 # Find all dependency output files, they are included files with
12478 # $(DEPDIR) in their names. We invoke sed twice because it is the
12479 # simplest approach to changing $(DEPDIR) to its actual value in the
12480 # expansion.
12481 for file in `sed -n "
12482 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12483 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12484 # Make sure the directory exists.
12485 test -f "$dirpart/$file" && continue
12486 fdir=`$as_dirname -- "$file" ||
12487 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12488 X"$file" : 'X\(//\)[^/]' \| \
12489 X"$file" : 'X\(//\)$' \| \
12490 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12491 $as_echo X"$file" |
12492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12493 s//\1/
12494 q
12495 }
12496 /^X\(\/\/\)[^/].*/{
12497 s//\1/
12498 q
12499 }
12500 /^X\(\/\/\)$/{
12501 s//\1/
12502 q
12503 }
12504 /^X\(\/\).*/{
12505 s//\1/
12506 q
12507 }
12508 s/.*/./; q'`
12509 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12510 # echo "creating $dirpart/$file"
12511 echo '# dummy' > "$dirpart/$file"
12512 done
12513 done
12514 }
12515 ;;
12516
12517 esac
12518 done # for ac_tag
12519
12520
12521 as_fn_exit 0
12522 _ACEOF
12523 ac_clean_files=$ac_clean_files_save
12524
12525 test $ac_write_fail = 0 ||
12526 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12527
12528
12529 # configure is writing to config.log, and then calls config.status.
12530 # config.status does its own redirection, appending to config.log.
12531 # Unfortunately, on DOS this fails, as config.log is still kept open
12532 # by configure, so config.status won't be able to write to it; its
12533 # output is simply discarded. So we exec the FD to /dev/null,
12534 # effectively closing config.log, so it can be properly (re)opened and
12535 # appended to by config.status. When coming back to configure, we
12536 # need to make the FD available again.
12537 if test "$no_create" != yes; then
12538 ac_cs_success=:
12539 ac_config_status_args=
12540 test "$silent" = yes &&
12541 ac_config_status_args="$ac_config_status_args --quiet"
12542 exec 5>/dev/null
12543 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12544 exec 5>>config.log
12545 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12546 # would make configure fail if this is the last instruction.
12547 $ac_cs_success || as_fn_exit 1
12548 fi
12549 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12551 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12552 fi
12553
12554