configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xwininfo 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='xwininfo'
563 PACKAGE_TARNAME='xwininfo'
564 PACKAGE_VERSION='1.1.3'
565 PACKAGE_STRING='xwininfo 1.1.3'
566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567 PACKAGE_URL=''
568
569 ac_unique_file="Makefile.am"
570 # Factoring default headers for most tests.
571 ac_includes_default="\
572 #include <stdio.h>
573 #ifdef HAVE_SYS_TYPES_H
574 # include <sys/types.h>
575 #endif
576 #ifdef HAVE_SYS_STAT_H
577 # include <sys/stat.h>
578 #endif
579 #ifdef STDC_HEADERS
580 # include <stdlib.h>
581 # include <stddef.h>
582 #else
583 # ifdef HAVE_STDLIB_H
584 # include <stdlib.h>
585 # endif
586 #endif
587 #ifdef HAVE_STRING_H
588 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 # include <memory.h>
590 # endif
591 # include <string.h>
592 #endif
593 #ifdef HAVE_STRINGS_H
594 # include <strings.h>
595 #endif
596 #ifdef HAVE_INTTYPES_H
597 # include <inttypes.h>
598 #endif
599 #ifdef HAVE_STDINT_H
600 # include <stdint.h>
601 #endif
602 #ifdef HAVE_UNISTD_H
603 # include <unistd.h>
604 #endif"
605
606 ac_subst_vars='am__EXEEXT_FALSE
607 am__EXEEXT_TRUE
608 LTLIBOBJS
609 XLIB_LIBS
610 XLIB_CFLAGS
611 XWININFO_LIBS
612 XWININFO_CFLAGS
613 LIBOBJS
614 MAN_SUBSTS
615 XORG_MAN_PAGE
616 ADMIN_MAN_DIR
617 DRIVER_MAN_DIR
618 MISC_MAN_DIR
619 FILE_MAN_DIR
620 LIB_MAN_DIR
621 APP_MAN_DIR
622 ADMIN_MAN_SUFFIX
623 DRIVER_MAN_SUFFIX
624 MISC_MAN_SUFFIX
625 FILE_MAN_SUFFIX
626 LIB_MAN_SUFFIX
627 APP_MAN_SUFFIX
628 SED
629 INSTALL_CMD
630 PKG_CONFIG
631 CHANGELOG_CMD
632 STRICT_CFLAGS
633 CWARNFLAGS
634 BASE_CFLAGS
635 LTLIBICONV
636 LIBICONV
637 host_os
638 host_vendor
639 host_cpu
640 host
641 build_os
642 build_vendor
643 build_cpu
644 build
645 MAINT
646 MAINTAINER_MODE_FALSE
647 MAINTAINER_MODE_TRUE
648 AM_BACKSLASH
649 AM_DEFAULT_VERBOSITY
650 AM_DEFAULT_V
651 AM_V
652 am__fastdepCC_FALSE
653 am__fastdepCC_TRUE
654 CCDEPMODE
655 am__nodep
656 AMDEPBACKSLASH
657 AMDEP_FALSE
658 AMDEP_TRUE
659 am__quote
660 am__include
661 DEPDIR
662 am__untar
663 am__tar
664 AMTAR
665 am__leading_dot
666 SET_MAKE
667 AWK
668 mkdir_p
669 MKDIR_P
670 INSTALL_STRIP_PROGRAM
671 STRIP
672 install_sh
673 MAKEINFO
674 AUTOHEADER
675 AUTOMAKE
676 AUTOCONF
677 ACLOCAL
678 VERSION
679 PACKAGE
680 CYGPATH_W
681 am__isrc
682 INSTALL_DATA
683 INSTALL_SCRIPT
684 INSTALL_PROGRAM
685 EGREP
686 GREP
687 CPP
688 OBJEXT
689 EXEEXT
690 ac_ct_CC
691 CPPFLAGS
692 LDFLAGS
693 CFLAGS
694 CC
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_dependency_tracking
737 enable_silent_rules
738 enable_maintainer_mode
739 with_gnu_ld
740 enable_rpath
741 with_libiconv_prefix
742 enable_selective_werror
743 enable_strict_compilation
744 with_xcb_icccm
745 '
746 ac_precious_vars='build_alias
747 host_alias
748 target_alias
749 CC
750 CFLAGS
751 LDFLAGS
752 LIBS
753 CPPFLAGS
754 CPP
755 PKG_CONFIG
756 XWININFO_CFLAGS
757 XWININFO_LIBS
758 XLIB_CFLAGS
759 XLIB_LIBS'
760
761
762 # Initialize some variables set by options.
763 ac_init_help=
764 ac_init_version=false
765 ac_unrecognized_opts=
766 ac_unrecognized_sep=
767 # The variables have the same names as the options, with
768 # dashes changed to underlines.
769 cache_file=/dev/null
770 exec_prefix=NONE
771 no_create=
772 no_recursion=
773 prefix=NONE
774 program_prefix=NONE
775 program_suffix=NONE
776 program_transform_name=s,x,x,
777 silent=
778 site=
779 srcdir=
780 verbose=
781 x_includes=NONE
782 x_libraries=NONE
783
784 # Installation directory options.
785 # These are left unexpanded so users can "make install exec_prefix=/foo"
786 # and all the variables that are supposed to be based on exec_prefix
787 # by default will actually change.
788 # Use braces instead of parens because sh, perl, etc. also accept them.
789 # (The list follows the same order as the GNU Coding Standards.)
790 bindir='${exec_prefix}/bin'
791 sbindir='${exec_prefix}/sbin'
792 libexecdir='${exec_prefix}/libexec'
793 datarootdir='${prefix}/share'
794 datadir='${datarootdir}'
795 sysconfdir='${prefix}/etc'
796 sharedstatedir='${prefix}/com'
797 localstatedir='${prefix}/var'
798 includedir='${prefix}/include'
799 oldincludedir='/usr/include'
800 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
801 infodir='${datarootdir}/info'
802 htmldir='${docdir}'
803 dvidir='${docdir}'
804 pdfdir='${docdir}'
805 psdir='${docdir}'
806 libdir='${exec_prefix}/lib'
807 localedir='${datarootdir}/locale'
808 mandir='${datarootdir}/man'
809
810 ac_prev=
811 ac_dashdash=
812 for ac_option
813 do
814 # If the previous option needs an argument, assign it.
815 if test -n "$ac_prev"; then
816 eval $ac_prev=\$ac_option
817 ac_prev=
818 continue
819 fi
820
821 case $ac_option in
822 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
823 *=) ac_optarg= ;;
824 *) ac_optarg=yes ;;
825 esac
826
827 # Accept the important Cygnus configure options, so we can diagnose typos.
828
829 case $ac_dashdash$ac_option in
830 --)
831 ac_dashdash=yes ;;
832
833 -bindir | --bindir | --bindi | --bind | --bin | --bi)
834 ac_prev=bindir ;;
835 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
836 bindir=$ac_optarg ;;
837
838 -build | --build | --buil | --bui | --bu)
839 ac_prev=build_alias ;;
840 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
841 build_alias=$ac_optarg ;;
842
843 -cache-file | --cache-file | --cache-fil | --cache-fi \
844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
845 ac_prev=cache_file ;;
846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
848 cache_file=$ac_optarg ;;
849
850 --config-cache | -C)
851 cache_file=config.cache ;;
852
853 -datadir | --datadir | --datadi | --datad)
854 ac_prev=datadir ;;
855 -datadir=* | --datadir=* | --datadi=* | --datad=*)
856 datadir=$ac_optarg ;;
857
858 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
859 | --dataroo | --dataro | --datar)
860 ac_prev=datarootdir ;;
861 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
862 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
863 datarootdir=$ac_optarg ;;
864
865 -disable-* | --disable-*)
866 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869 as_fn_error $? "invalid feature name: $ac_useropt"
870 ac_useropt_orig=$ac_useropt
871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872 case $ac_user_opts in
873 *"
874 "enable_$ac_useropt"
875 "*) ;;
876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
877 ac_unrecognized_sep=', ';;
878 esac
879 eval enable_$ac_useropt=no ;;
880
881 -docdir | --docdir | --docdi | --doc | --do)
882 ac_prev=docdir ;;
883 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
884 docdir=$ac_optarg ;;
885
886 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
887 ac_prev=dvidir ;;
888 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
889 dvidir=$ac_optarg ;;
890
891 -enable-* | --enable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error $? "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
899 *"
900 "enable_$ac_useropt"
901 "*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
904 esac
905 eval enable_$ac_useropt=\$ac_optarg ;;
906
907 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
908 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
909 | --exec | --exe | --ex)
910 ac_prev=exec_prefix ;;
911 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
912 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
913 | --exec=* | --exe=* | --ex=*)
914 exec_prefix=$ac_optarg ;;
915
916 -gas | --gas | --ga | --g)
917 # Obsolete; use --with-gas.
918 with_gas=yes ;;
919
920 -help | --help | --hel | --he | -h)
921 ac_init_help=long ;;
922 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
923 ac_init_help=recursive ;;
924 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
925 ac_init_help=short ;;
926
927 -host | --host | --hos | --ho)
928 ac_prev=host_alias ;;
929 -host=* | --host=* | --hos=* | --ho=*)
930 host_alias=$ac_optarg ;;
931
932 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
933 ac_prev=htmldir ;;
934 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
935 | --ht=*)
936 htmldir=$ac_optarg ;;
937
938 -includedir | --includedir | --includedi | --included | --include \
939 | --includ | --inclu | --incl | --inc)
940 ac_prev=includedir ;;
941 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
942 | --includ=* | --inclu=* | --incl=* | --inc=*)
943 includedir=$ac_optarg ;;
944
945 -infodir | --infodir | --infodi | --infod | --info | --inf)
946 ac_prev=infodir ;;
947 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
948 infodir=$ac_optarg ;;
949
950 -libdir | --libdir | --libdi | --libd)
951 ac_prev=libdir ;;
952 -libdir=* | --libdir=* | --libdi=* | --libd=*)
953 libdir=$ac_optarg ;;
954
955 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
956 | --libexe | --libex | --libe)
957 ac_prev=libexecdir ;;
958 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
959 | --libexe=* | --libex=* | --libe=*)
960 libexecdir=$ac_optarg ;;
961
962 -localedir | --localedir | --localedi | --localed | --locale)
963 ac_prev=localedir ;;
964 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
965 localedir=$ac_optarg ;;
966
967 -localstatedir | --localstatedir | --localstatedi | --localstated \
968 | --localstate | --localstat | --localsta | --localst | --locals)
969 ac_prev=localstatedir ;;
970 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
971 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
972 localstatedir=$ac_optarg ;;
973
974 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
975 ac_prev=mandir ;;
976 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
977 mandir=$ac_optarg ;;
978
979 -nfp | --nfp | --nf)
980 # Obsolete; use --without-fp.
981 with_fp=no ;;
982
983 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
984 | --no-cr | --no-c | -n)
985 no_create=yes ;;
986
987 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
988 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
989 no_recursion=yes ;;
990
991 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
992 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
993 | --oldin | --oldi | --old | --ol | --o)
994 ac_prev=oldincludedir ;;
995 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
996 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
997 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
998 oldincludedir=$ac_optarg ;;
999
1000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1001 ac_prev=prefix ;;
1002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1003 prefix=$ac_optarg ;;
1004
1005 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1006 | --program-pre | --program-pr | --program-p)
1007 ac_prev=program_prefix ;;
1008 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1009 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1010 program_prefix=$ac_optarg ;;
1011
1012 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1013 | --program-suf | --program-su | --program-s)
1014 ac_prev=program_suffix ;;
1015 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1016 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1017 program_suffix=$ac_optarg ;;
1018
1019 -program-transform-name | --program-transform-name \
1020 | --program-transform-nam | --program-transform-na \
1021 | --program-transform-n | --program-transform- \
1022 | --program-transform | --program-transfor \
1023 | --program-transfo | --program-transf \
1024 | --program-trans | --program-tran \
1025 | --progr-tra | --program-tr | --program-t)
1026 ac_prev=program_transform_name ;;
1027 -program-transform-name=* | --program-transform-name=* \
1028 | --program-transform-nam=* | --program-transform-na=* \
1029 | --program-transform-n=* | --program-transform-=* \
1030 | --program-transform=* | --program-transfor=* \
1031 | --program-transfo=* | --program-transf=* \
1032 | --program-trans=* | --program-tran=* \
1033 | --progr-tra=* | --program-tr=* | --program-t=*)
1034 program_transform_name=$ac_optarg ;;
1035
1036 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1037 ac_prev=pdfdir ;;
1038 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1039 pdfdir=$ac_optarg ;;
1040
1041 -psdir | --psdir | --psdi | --psd | --ps)
1042 ac_prev=psdir ;;
1043 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1044 psdir=$ac_optarg ;;
1045
1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047 | -silent | --silent | --silen | --sile | --sil)
1048 silent=yes ;;
1049
1050 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1051 ac_prev=sbindir ;;
1052 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1053 | --sbi=* | --sb=*)
1054 sbindir=$ac_optarg ;;
1055
1056 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1057 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1058 | --sharedst | --shareds | --shared | --share | --shar \
1059 | --sha | --sh)
1060 ac_prev=sharedstatedir ;;
1061 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1062 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1063 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1064 | --sha=* | --sh=*)
1065 sharedstatedir=$ac_optarg ;;
1066
1067 -site | --site | --sit)
1068 ac_prev=site ;;
1069 -site=* | --site=* | --sit=*)
1070 site=$ac_optarg ;;
1071
1072 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1073 ac_prev=srcdir ;;
1074 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1075 srcdir=$ac_optarg ;;
1076
1077 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1078 | --syscon | --sysco | --sysc | --sys | --sy)
1079 ac_prev=sysconfdir ;;
1080 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1081 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1082 sysconfdir=$ac_optarg ;;
1083
1084 -target | --target | --targe | --targ | --tar | --ta | --t)
1085 ac_prev=target_alias ;;
1086 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1087 target_alias=$ac_optarg ;;
1088
1089 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1090 verbose=yes ;;
1091
1092 -version | --version | --versio | --versi | --vers | -V)
1093 ac_init_version=: ;;
1094
1095 -with-* | --with-*)
1096 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error $? "invalid package name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1103 *"
1104 "with_$ac_useropt"
1105 "*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval with_$ac_useropt=\$ac_optarg ;;
1110
1111 -without-* | --without-*)
1112 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error $? "invalid package name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1119 *"
1120 "with_$ac_useropt"
1121 "*) ;;
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1124 esac
1125 eval with_$ac_useropt=no ;;
1126
1127 --x)
1128 # Obsolete; use --with-x.
1129 with_x=yes ;;
1130
1131 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1132 | --x-incl | --x-inc | --x-in | --x-i)
1133 ac_prev=x_includes ;;
1134 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1135 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1136 x_includes=$ac_optarg ;;
1137
1138 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1139 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1140 ac_prev=x_libraries ;;
1141 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1142 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1143 x_libraries=$ac_optarg ;;
1144
1145 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1146 Try \`$0 --help' for more information"
1147 ;;
1148
1149 *=*)
1150 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151 # Reject names that are not valid shell variable names.
1152 case $ac_envvar in #(
1153 '' | [0-9]* | *[!_$as_cr_alnum]* )
1154 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1155 esac
1156 eval $ac_envvar=\$ac_optarg
1157 export $ac_envvar ;;
1158
1159 *)
1160 # FIXME: should be removed in autoconf 3.0.
1161 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1162 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1163 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1164 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1165 ;;
1166
1167 esac
1168 done
1169
1170 if test -n "$ac_prev"; then
1171 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1172 as_fn_error $? "missing argument to $ac_option"
1173 fi
1174
1175 if test -n "$ac_unrecognized_opts"; then
1176 case $enable_option_checking in
1177 no) ;;
1178 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1179 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1180 esac
1181 fi
1182
1183 # Check all directory arguments for consistency.
1184 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1185 datadir sysconfdir sharedstatedir localstatedir includedir \
1186 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1187 libdir localedir mandir
1188 do
1189 eval ac_val=\$$ac_var
1190 # Remove trailing slashes.
1191 case $ac_val in
1192 */ )
1193 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1194 eval $ac_var=\$ac_val;;
1195 esac
1196 # Be sure to have absolute directory names.
1197 case $ac_val in
1198 [\\/$]* | ?:[\\/]* ) continue;;
1199 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1200 esac
1201 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1202 done
1203
1204 # There might be people who depend on the old broken behavior: `$host'
1205 # used to hold the argument of --host etc.
1206 # FIXME: To remove some day.
1207 build=$build_alias
1208 host=$host_alias
1209 target=$target_alias
1210
1211 # FIXME: To remove some day.
1212 if test "x$host_alias" != x; then
1213 if test "x$build_alias" = x; then
1214 cross_compiling=maybe
1215 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1216 If a cross compiler is detected then cross compile mode will be used" >&2
1217 elif test "x$build_alias" != "x$host_alias"; then
1218 cross_compiling=yes
1219 fi
1220 fi
1221
1222 ac_tool_prefix=
1223 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1224
1225 test "$silent" = yes && exec 6>/dev/null
1226
1227
1228 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1229 ac_ls_di=`ls -di .` &&
1230 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1231 as_fn_error $? "working directory cannot be determined"
1232 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233 as_fn_error $? "pwd does not report name of working directory"
1234
1235
1236 # Find the source files, if location was not specified.
1237 if test -z "$srcdir"; then
1238 ac_srcdir_defaulted=yes
1239 # Try the directory containing this script, then the parent directory.
1240 ac_confdir=`$as_dirname -- "$as_myself" ||
1241 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242 X"$as_myself" : 'X\(//\)[^/]' \| \
1243 X"$as_myself" : 'X\(//\)$' \| \
1244 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1245 $as_echo X"$as_myself" |
1246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247 s//\1/
1248 q
1249 }
1250 /^X\(\/\/\)[^/].*/{
1251 s//\1/
1252 q
1253 }
1254 /^X\(\/\/\)$/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\).*/{
1259 s//\1/
1260 q
1261 }
1262 s/.*/./; q'`
1263 srcdir=$ac_confdir
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1265 srcdir=..
1266 fi
1267 else
1268 ac_srcdir_defaulted=no
1269 fi
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1273 fi
1274 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275 ac_abs_confdir=`(
1276 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1277 pwd)`
1278 # When building in place, set srcdir=.
1279 if test "$ac_abs_confdir" = "$ac_pwd"; then
1280 srcdir=.
1281 fi
1282 # Remove unnecessary trailing slashes from srcdir.
1283 # Double slashes in file names in object file debugging info
1284 # mess up M-x gdb in Emacs.
1285 case $srcdir in
1286 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1287 esac
1288 for ac_var in $ac_precious_vars; do
1289 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1290 eval ac_env_${ac_var}_value=\$${ac_var}
1291 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1293 done
1294
1295 #
1296 # Report the --help message.
1297 #
1298 if test "$ac_init_help" = "long"; then
1299 # Omit some internal or obsolete options to make the list less imposing.
1300 # This message is too long to be a string in the A/UX 3.1 sh.
1301 cat <<_ACEOF
1302 \`configure' configures xwininfo 1.1.3 to adapt to many kinds of systems.
1303
1304 Usage: $0 [OPTION]... [VAR=VALUE]...
1305
1306 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1307 VAR=VALUE. See below for descriptions of some of the useful variables.
1308
1309 Defaults for the options are specified in brackets.
1310
1311 Configuration:
1312 -h, --help display this help and exit
1313 --help=short display options specific to this package
1314 --help=recursive display the short help of all the included packages
1315 -V, --version display version information and exit
1316 -q, --quiet, --silent do not print \`checking ...' messages
1317 --cache-file=FILE cache test results in FILE [disabled]
1318 -C, --config-cache alias for \`--cache-file=config.cache'
1319 -n, --no-create do not create output files
1320 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1321
1322 Installation directories:
1323 --prefix=PREFIX install architecture-independent files in PREFIX
1324 [$ac_default_prefix]
1325 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1326 [PREFIX]
1327
1328 By default, \`make install' will install all the files in
1329 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1330 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1331 for instance \`--prefix=\$HOME'.
1332
1333 For better control, use the options below.
1334
1335 Fine tuning of the installation directories:
1336 --bindir=DIR user executables [EPREFIX/bin]
1337 --sbindir=DIR system admin executables [EPREFIX/sbin]
1338 --libexecdir=DIR program executables [EPREFIX/libexec]
1339 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1340 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1341 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1342 --libdir=DIR object code libraries [EPREFIX/lib]
1343 --includedir=DIR C header files [PREFIX/include]
1344 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1345 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1346 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1347 --infodir=DIR info documentation [DATAROOTDIR/info]
1348 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1349 --mandir=DIR man documentation [DATAROOTDIR/man]
1350 --docdir=DIR documentation root [DATAROOTDIR/doc/xwininfo]
1351 --htmldir=DIR html documentation [DOCDIR]
1352 --dvidir=DIR dvi documentation [DOCDIR]
1353 --pdfdir=DIR pdf documentation [DOCDIR]
1354 --psdir=DIR ps documentation [DOCDIR]
1355 _ACEOF
1356
1357 cat <<\_ACEOF
1358
1359 Program names:
1360 --program-prefix=PREFIX prepend PREFIX to installed program names
1361 --program-suffix=SUFFIX append SUFFIX to installed program names
1362 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1363
1364 System types:
1365 --build=BUILD configure for building on BUILD [guessed]
1366 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1367 _ACEOF
1368 fi
1369
1370 if test -n "$ac_init_help"; then
1371 case $ac_init_help in
1372 short | recursive ) echo "Configuration of xwininfo 1.1.3:";;
1373 esac
1374 cat <<\_ACEOF
1375
1376 Optional Features:
1377 --disable-option-checking ignore unrecognized --enable/--with options
1378 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1379 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1380 --enable-dependency-tracking
1381 do not reject slow dependency extractors
1382 --disable-dependency-tracking
1383 speeds up one-time build
1384 --enable-silent-rules less verbose build output (undo: "make V=1")
1385 --disable-silent-rules verbose build output (undo: "make V=0")
1386 --enable-maintainer-mode
1387 enable make rules and dependencies not useful (and
1388 sometimes confusing) to the casual installer
1389 --disable-rpath do not hardcode runtime library paths
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-gnu-ld assume the C compiler uses GNU ld default=no
1401 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1402 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1403 --with-xcb-icccm use xcb-icccm (default: no)
1404
1405 Some influential environment variables:
1406 CC C compiler command
1407 CFLAGS C compiler flags
1408 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1409 nonstandard directory <lib dir>
1410 LIBS libraries to pass to the linker, e.g. -l<library>
1411 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1412 you have headers in a nonstandard directory <include dir>
1413 CPP C preprocessor
1414 PKG_CONFIG path to pkg-config utility
1415 XWININFO_CFLAGS
1416 C compiler flags for XWININFO, overriding pkg-config
1417 XWININFO_LIBS
1418 linker flags for XWININFO, overriding pkg-config
1419 XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config
1420 XLIB_LIBS linker flags for XLIB, overriding pkg-config
1421
1422 Use these variables to override the choices made by `configure' or to help
1423 it to find libraries and programs with nonstandard names/locations.
1424
1425 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1426 _ACEOF
1427 ac_status=$?
1428 fi
1429
1430 if test "$ac_init_help" = "recursive"; then
1431 # If there are subdirs, report their specific --help.
1432 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1433 test -d "$ac_dir" ||
1434 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1435 continue
1436 ac_builddir=.
1437
1438 case "$ac_dir" in
1439 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440 *)
1441 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1442 # A ".." for each directory in $ac_dir_suffix.
1443 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1444 case $ac_top_builddir_sub in
1445 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1447 esac ;;
1448 esac
1449 ac_abs_top_builddir=$ac_pwd
1450 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1451 # for backward compatibility:
1452 ac_top_builddir=$ac_top_build_prefix
1453
1454 case $srcdir in
1455 .) # We are building in place.
1456 ac_srcdir=.
1457 ac_top_srcdir=$ac_top_builddir_sub
1458 ac_abs_top_srcdir=$ac_pwd ;;
1459 [\\/]* | ?:[\\/]* ) # Absolute name.
1460 ac_srcdir=$srcdir$ac_dir_suffix;
1461 ac_top_srcdir=$srcdir
1462 ac_abs_top_srcdir=$srcdir ;;
1463 *) # Relative name.
1464 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1465 ac_top_srcdir=$ac_top_build_prefix$srcdir
1466 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1467 esac
1468 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1469
1470 cd "$ac_dir" || { ac_status=$?; continue; }
1471 # Check for guested configure.
1472 if test -f "$ac_srcdir/configure.gnu"; then
1473 echo &&
1474 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1475 elif test -f "$ac_srcdir/configure"; then
1476 echo &&
1477 $SHELL "$ac_srcdir/configure" --help=recursive
1478 else
1479 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1480 fi || ac_status=$?
1481 cd "$ac_pwd" || { ac_status=$?; break; }
1482 done
1483 fi
1484
1485 test -n "$ac_init_help" && exit $ac_status
1486 if $ac_init_version; then
1487 cat <<\_ACEOF
1488 xwininfo configure 1.1.3
1489 generated by GNU Autoconf 2.68
1490
1491 Copyright (C) 2010 Free Software Foundation, Inc.
1492 This configure script is free software; the Free Software Foundation
1493 gives unlimited permission to copy, distribute and modify it.
1494 _ACEOF
1495 exit
1496 fi
1497
1498 ## ------------------------ ##
1499 ## Autoconf initialization. ##
1500 ## ------------------------ ##
1501
1502 # ac_fn_c_try_compile LINENO
1503 # --------------------------
1504 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1505 ac_fn_c_try_compile ()
1506 {
1507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1508 rm -f conftest.$ac_objext
1509 if { { ac_try="$ac_compile"
1510 case "(($ac_try" in
1511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1512 *) ac_try_echo=$ac_try;;
1513 esac
1514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1515 $as_echo "$ac_try_echo"; } >&5
1516 (eval "$ac_compile") 2>conftest.err
1517 ac_status=$?
1518 if test -s conftest.err; then
1519 grep -v '^ *+' conftest.err >conftest.er1
1520 cat conftest.er1 >&5
1521 mv -f conftest.er1 conftest.err
1522 fi
1523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1524 test $ac_status = 0; } && {
1525 test -z "$ac_c_werror_flag" ||
1526 test ! -s conftest.err
1527 } && test -s conftest.$ac_objext; then :
1528 ac_retval=0
1529 else
1530 $as_echo "$as_me: failed program was:" >&5
1531 sed 's/^/| /' conftest.$ac_ext >&5
1532
1533 ac_retval=1
1534 fi
1535 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1536 as_fn_set_status $ac_retval
1537
1538 } # ac_fn_c_try_compile
1539
1540 # ac_fn_c_try_cpp LINENO
1541 # ----------------------
1542 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1543 ac_fn_c_try_cpp ()
1544 {
1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546 if { { ac_try="$ac_cpp conftest.$ac_ext"
1547 case "(($ac_try" in
1548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549 *) ac_try_echo=$ac_try;;
1550 esac
1551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552 $as_echo "$ac_try_echo"; } >&5
1553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1554 ac_status=$?
1555 if test -s conftest.err; then
1556 grep -v '^ *+' conftest.err >conftest.er1
1557 cat conftest.er1 >&5
1558 mv -f conftest.er1 conftest.err
1559 fi
1560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561 test $ac_status = 0; } > conftest.i && {
1562 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1563 test ! -s conftest.err
1564 }; then :
1565 ac_retval=0
1566 else
1567 $as_echo "$as_me: failed program was:" >&5
1568 sed 's/^/| /' conftest.$ac_ext >&5
1569
1570 ac_retval=1
1571 fi
1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573 as_fn_set_status $ac_retval
1574
1575 } # ac_fn_c_try_cpp
1576
1577 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1578 # -------------------------------------------------------
1579 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1580 # the include files in INCLUDES and setting the cache variable VAR
1581 # accordingly.
1582 ac_fn_c_check_header_mongrel ()
1583 {
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 if eval \${$3+:} false; then :
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1587 $as_echo_n "checking for $2... " >&6; }
1588 if eval \${$3+:} false; then :
1589 $as_echo_n "(cached) " >&6
1590 fi
1591 eval ac_res=\$$3
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1593 $as_echo "$ac_res" >&6; }
1594 else
1595 # Is the header compilable?
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1597 $as_echo_n "checking $2 usability... " >&6; }
1598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1599 /* end confdefs.h. */
1600 $4
1601 #include <$2>
1602 _ACEOF
1603 if ac_fn_c_try_compile "$LINENO"; then :
1604 ac_header_compiler=yes
1605 else
1606 ac_header_compiler=no
1607 fi
1608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1610 $as_echo "$ac_header_compiler" >&6; }
1611
1612 # Is the header present?
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1614 $as_echo_n "checking $2 presence... " >&6; }
1615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1616 /* end confdefs.h. */
1617 #include <$2>
1618 _ACEOF
1619 if ac_fn_c_try_cpp "$LINENO"; then :
1620 ac_header_preproc=yes
1621 else
1622 ac_header_preproc=no
1623 fi
1624 rm -f conftest.err conftest.i conftest.$ac_ext
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1626 $as_echo "$ac_header_preproc" >&6; }
1627
1628 # So? What about this header?
1629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1630 yes:no: )
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1632 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1634 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1635 ;;
1636 no:yes:* )
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1638 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1640 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1642 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1644 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1646 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1647 ( $as_echo "## ---------------------------------------------------------------------- ##
1648 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1649 ## ---------------------------------------------------------------------- ##"
1650 ) | sed "s/^/$as_me: WARNING: /" >&2
1651 ;;
1652 esac
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1654 $as_echo_n "checking for $2... " >&6; }
1655 if eval \${$3+:} false; then :
1656 $as_echo_n "(cached) " >&6
1657 else
1658 eval "$3=\$ac_header_compiler"
1659 fi
1660 eval ac_res=\$$3
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662 $as_echo "$ac_res" >&6; }
1663 fi
1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665
1666 } # ac_fn_c_check_header_mongrel
1667
1668 # ac_fn_c_try_run LINENO
1669 # ----------------------
1670 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1671 # that executables *can* be run.
1672 ac_fn_c_try_run ()
1673 {
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 if { { ac_try="$ac_link"
1676 case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_link") 2>&5
1683 ac_status=$?
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1686 { { case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_try") 2>&5
1693 ac_status=$?
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; }; }; then :
1696 ac_retval=0
1697 else
1698 $as_echo "$as_me: program exited with status $ac_status" >&5
1699 $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1701
1702 ac_retval=$ac_status
1703 fi
1704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1707
1708 } # ac_fn_c_try_run
1709
1710 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1711 # -------------------------------------------------------
1712 # Tests whether HEADER exists and can be compiled using the include files in
1713 # INCLUDES, setting the cache variable VAR accordingly.
1714 ac_fn_c_check_header_compile ()
1715 {
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1718 $as_echo_n "checking for $2... " >&6; }
1719 if eval \${$3+:} false; then :
1720 $as_echo_n "(cached) " >&6
1721 else
1722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723 /* end confdefs.h. */
1724 $4
1725 #include <$2>
1726 _ACEOF
1727 if ac_fn_c_try_compile "$LINENO"; then :
1728 eval "$3=yes"
1729 else
1730 eval "$3=no"
1731 fi
1732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1733 fi
1734 eval ac_res=\$$3
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736 $as_echo "$ac_res" >&6; }
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738
1739 } # ac_fn_c_check_header_compile
1740
1741 # ac_fn_c_try_link LINENO
1742 # -----------------------
1743 # Try to link conftest.$ac_ext, and return whether this succeeded.
1744 ac_fn_c_try_link ()
1745 {
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 rm -f conftest.$ac_objext conftest$ac_exeext
1748 if { { ac_try="$ac_link"
1749 case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1752 esac
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_link") 2>conftest.err
1756 ac_status=$?
1757 if test -s conftest.err; then
1758 grep -v '^ *+' conftest.err >conftest.er1
1759 cat conftest.er1 >&5
1760 mv -f conftest.er1 conftest.err
1761 fi
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } && {
1764 test -z "$ac_c_werror_flag" ||
1765 test ! -s conftest.err
1766 } && test -s conftest$ac_exeext && {
1767 test "$cross_compiling" = yes ||
1768 $as_test_x conftest$ac_exeext
1769 }; then :
1770 ac_retval=0
1771 else
1772 $as_echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1774
1775 ac_retval=1
1776 fi
1777 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1778 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1779 # interfere with the next link command; also delete a directory that is
1780 # left behind by Apple's compiler. We do this before executing the actions.
1781 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783 as_fn_set_status $ac_retval
1784
1785 } # ac_fn_c_try_link
1786
1787 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1788 # ---------------------------------------------
1789 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1790 # accordingly.
1791 ac_fn_c_check_decl ()
1792 {
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 as_decl_name=`echo $2|sed 's/ *(.*//'`
1795 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1797 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1798 if eval \${$3+:} false; then :
1799 $as_echo_n "(cached) " >&6
1800 else
1801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802 /* end confdefs.h. */
1803 $4
1804 int
1805 main ()
1806 {
1807 #ifndef $as_decl_name
1808 #ifdef __cplusplus
1809 (void) $as_decl_use;
1810 #else
1811 (void) $as_decl_name;
1812 #endif
1813 #endif
1814
1815 ;
1816 return 0;
1817 }
1818 _ACEOF
1819 if ac_fn_c_try_compile "$LINENO"; then :
1820 eval "$3=yes"
1821 else
1822 eval "$3=no"
1823 fi
1824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825 fi
1826 eval ac_res=\$$3
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828 $as_echo "$ac_res" >&6; }
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830
1831 } # ac_fn_c_check_decl
1832
1833 # ac_fn_c_check_func LINENO FUNC VAR
1834 # ----------------------------------
1835 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1836 ac_fn_c_check_func ()
1837 {
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if eval \${$3+:} false; then :
1842 $as_echo_n "(cached) " >&6
1843 else
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1846 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1848 #define $2 innocuous_$2
1849
1850 /* System header to define __stub macros and hopefully few prototypes,
1851 which can conflict with char $2 (); below.
1852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1853 <limits.h> exists even on freestanding compilers. */
1854
1855 #ifdef __STDC__
1856 # include <limits.h>
1857 #else
1858 # include <assert.h>
1859 #endif
1860
1861 #undef $2
1862
1863 /* Override any GCC internal prototype to avoid an error.
1864 Use char because int might match the return type of a GCC
1865 builtin and then its argument prototype would still apply. */
1866 #ifdef __cplusplus
1867 extern "C"
1868 #endif
1869 char $2 ();
1870 /* The GNU C library defines this for functions which it implements
1871 to always fail with ENOSYS. Some functions are actually named
1872 something starting with __ and the normal name is an alias. */
1873 #if defined __stub_$2 || defined __stub___$2
1874 choke me
1875 #endif
1876
1877 int
1878 main ()
1879 {
1880 return $2 ();
1881 ;
1882 return 0;
1883 }
1884 _ACEOF
1885 if ac_fn_c_try_link "$LINENO"; then :
1886 eval "$3=yes"
1887 else
1888 eval "$3=no"
1889 fi
1890 rm -f core conftest.err conftest.$ac_objext \
1891 conftest$ac_exeext conftest.$ac_ext
1892 fi
1893 eval ac_res=\$$3
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897
1898 } # ac_fn_c_check_func
1899 cat >config.log <<_ACEOF
1900 This file contains any messages produced by compilers while
1901 running configure, to aid debugging if configure makes a mistake.
1902
1903 It was created by xwininfo $as_me 1.1.3, which was
1904 generated by GNU Autoconf 2.68. Invocation command line was
1905
1906 $ $0 $@
1907
1908 _ACEOF
1909 exec 5>>config.log
1910 {
1911 cat <<_ASUNAME
1912 ## --------- ##
1913 ## Platform. ##
1914 ## --------- ##
1915
1916 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1917 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1918 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1919 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1920 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1921
1922 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1923 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1924
1925 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1926 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1927 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1928 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1929 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1930 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1931 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1932
1933 _ASUNAME
1934
1935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 for as_dir in $PATH
1937 do
1938 IFS=$as_save_IFS
1939 test -z "$as_dir" && as_dir=.
1940 $as_echo "PATH: $as_dir"
1941 done
1942 IFS=$as_save_IFS
1943
1944 } >&5
1945
1946 cat >&5 <<_ACEOF
1947
1948
1949 ## ----------- ##
1950 ## Core tests. ##
1951 ## ----------- ##
1952
1953 _ACEOF
1954
1955
1956 # Keep a trace of the command line.
1957 # Strip out --no-create and --no-recursion so they do not pile up.
1958 # Strip out --silent because we don't want to record it for future runs.
1959 # Also quote any args containing shell meta-characters.
1960 # Make two passes to allow for proper duplicate-argument suppression.
1961 ac_configure_args=
1962 ac_configure_args0=
1963 ac_configure_args1=
1964 ac_must_keep_next=false
1965 for ac_pass in 1 2
1966 do
1967 for ac_arg
1968 do
1969 case $ac_arg in
1970 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1971 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1972 | -silent | --silent | --silen | --sile | --sil)
1973 continue ;;
1974 *\'*)
1975 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1976 esac
1977 case $ac_pass in
1978 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1979 2)
1980 as_fn_append ac_configure_args1 " '$ac_arg'"
1981 if test $ac_must_keep_next = true; then
1982 ac_must_keep_next=false # Got value, back to normal.
1983 else
1984 case $ac_arg in
1985 *=* | --config-cache | -C | -disable-* | --disable-* \
1986 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1987 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1988 | -with-* | --with-* | -without-* | --without-* | --x)
1989 case "$ac_configure_args0 " in
1990 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1991 esac
1992 ;;
1993 -* ) ac_must_keep_next=true ;;
1994 esac
1995 fi
1996 as_fn_append ac_configure_args " '$ac_arg'"
1997 ;;
1998 esac
1999 done
2000 done
2001 { ac_configure_args0=; unset ac_configure_args0;}
2002 { ac_configure_args1=; unset ac_configure_args1;}
2003
2004 # When interrupted or exit'd, cleanup temporary files, and complete
2005 # config.log. We remove comments because anyway the quotes in there
2006 # would cause problems or look ugly.
2007 # WARNING: Use '\'' to represent an apostrophe within the trap.
2008 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2009 trap 'exit_status=$?
2010 # Save into config.log some information that might help in debugging.
2011 {
2012 echo
2013
2014 $as_echo "## ---------------- ##
2015 ## Cache variables. ##
2016 ## ---------------- ##"
2017 echo
2018 # The following way of writing the cache mishandles newlines in values,
2019 (
2020 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2021 eval ac_val=\$$ac_var
2022 case $ac_val in #(
2023 *${as_nl}*)
2024 case $ac_var in #(
2025 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2026 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2027 esac
2028 case $ac_var in #(
2029 _ | IFS | as_nl) ;; #(
2030 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2031 *) { eval $ac_var=; unset $ac_var;} ;;
2032 esac ;;
2033 esac
2034 done
2035 (set) 2>&1 |
2036 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2037 *${as_nl}ac_space=\ *)
2038 sed -n \
2039 "s/'\''/'\''\\\\'\'''\''/g;
2040 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2041 ;; #(
2042 *)
2043 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2044 ;;
2045 esac |
2046 sort
2047 )
2048 echo
2049
2050 $as_echo "## ----------------- ##
2051 ## Output variables. ##
2052 ## ----------------- ##"
2053 echo
2054 for ac_var in $ac_subst_vars
2055 do
2056 eval ac_val=\$$ac_var
2057 case $ac_val in
2058 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2059 esac
2060 $as_echo "$ac_var='\''$ac_val'\''"
2061 done | sort
2062 echo
2063
2064 if test -n "$ac_subst_files"; then
2065 $as_echo "## ------------------- ##
2066 ## File substitutions. ##
2067 ## ------------------- ##"
2068 echo
2069 for ac_var in $ac_subst_files
2070 do
2071 eval ac_val=\$$ac_var
2072 case $ac_val in
2073 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2074 esac
2075 $as_echo "$ac_var='\''$ac_val'\''"
2076 done | sort
2077 echo
2078 fi
2079
2080 if test -s confdefs.h; then
2081 $as_echo "## ----------- ##
2082 ## confdefs.h. ##
2083 ## ----------- ##"
2084 echo
2085 cat confdefs.h
2086 echo
2087 fi
2088 test "$ac_signal" != 0 &&
2089 $as_echo "$as_me: caught signal $ac_signal"
2090 $as_echo "$as_me: exit $exit_status"
2091 } >&5
2092 rm -f core *.core core.conftest.* &&
2093 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2094 exit $exit_status
2095 ' 0
2096 for ac_signal in 1 2 13 15; do
2097 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2098 done
2099 ac_signal=0
2100
2101 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2102 rm -f -r conftest* confdefs.h
2103
2104 $as_echo "/* confdefs.h */" > confdefs.h
2105
2106 # Predefined preprocessor variables.
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_NAME "$PACKAGE_NAME"
2110 _ACEOF
2111
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2114 _ACEOF
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2118 _ACEOF
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_STRING "$PACKAGE_STRING"
2122 _ACEOF
2123
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2126 _ACEOF
2127
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_URL "$PACKAGE_URL"
2130 _ACEOF
2131
2132
2133 # Let the site file select an alternate cache file if it wants to.
2134 # Prefer an explicitly selected file to automatically selected ones.
2135 ac_site_file1=NONE
2136 ac_site_file2=NONE
2137 if test -n "$CONFIG_SITE"; then
2138 # We do not want a PATH search for config.site.
2139 case $CONFIG_SITE in #((
2140 -*) ac_site_file1=./$CONFIG_SITE;;
2141 */*) ac_site_file1=$CONFIG_SITE;;
2142 *) ac_site_file1=./$CONFIG_SITE;;
2143 esac
2144 elif test "x$prefix" != xNONE; then
2145 ac_site_file1=$prefix/share/config.site
2146 ac_site_file2=$prefix/etc/config.site
2147 else
2148 ac_site_file1=$ac_default_prefix/share/config.site
2149 ac_site_file2=$ac_default_prefix/etc/config.site
2150 fi
2151 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2152 do
2153 test "x$ac_site_file" = xNONE && continue
2154 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2156 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2157 sed 's/^/| /' "$ac_site_file" >&5
2158 . "$ac_site_file" \
2159 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2161 as_fn_error $? "failed to load site script $ac_site_file
2162 See \`config.log' for more details" "$LINENO" 5; }
2163 fi
2164 done
2165
2166 if test -r "$cache_file"; then
2167 # Some versions of bash will fail to source /dev/null (special files
2168 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2169 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2171 $as_echo "$as_me: loading cache $cache_file" >&6;}
2172 case $cache_file in
2173 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2174 *) . "./$cache_file";;
2175 esac
2176 fi
2177 else
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2179 $as_echo "$as_me: creating cache $cache_file" >&6;}
2180 >$cache_file
2181 fi
2182
2183 # Check that the precious variables saved in the cache have kept the same
2184 # value.
2185 ac_cache_corrupted=false
2186 for ac_var in $ac_precious_vars; do
2187 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2188 eval ac_new_set=\$ac_env_${ac_var}_set
2189 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2190 eval ac_new_val=\$ac_env_${ac_var}_value
2191 case $ac_old_set,$ac_new_set in
2192 set,)
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2194 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2195 ac_cache_corrupted=: ;;
2196 ,set)
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2198 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2199 ac_cache_corrupted=: ;;
2200 ,);;
2201 *)
2202 if test "x$ac_old_val" != "x$ac_new_val"; then
2203 # differences in whitespace do not lead to failure.
2204 ac_old_val_w=`echo x $ac_old_val`
2205 ac_new_val_w=`echo x $ac_new_val`
2206 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2208 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2209 ac_cache_corrupted=:
2210 else
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2212 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2213 eval $ac_var=\$ac_old_val
2214 fi
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2216 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2218 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2219 fi;;
2220 esac
2221 # Pass precious variables to config.status.
2222 if test "$ac_new_set" = set; then
2223 case $ac_new_val in
2224 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2225 *) ac_arg=$ac_var=$ac_new_val ;;
2226 esac
2227 case " $ac_configure_args " in
2228 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2229 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2230 esac
2231 fi
2232 done
2233 if $ac_cache_corrupted; then
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2237 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2238 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2239 fi
2240 ## -------------------- ##
2241 ## Main body of script. ##
2242 ## -------------------- ##
2243
2244 ac_ext=c
2245 ac_cpp='$CPP $CPPFLAGS'
2246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2249
2250
2251
2252 ac_config_headers="$ac_config_headers config.h"
2253
2254 ac_ext=c
2255 ac_cpp='$CPP $CPPFLAGS'
2256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2259 if test -n "$ac_tool_prefix"; then
2260 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2261 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2263 $as_echo_n "checking for $ac_word... " >&6; }
2264 if ${ac_cv_prog_CC+:} false; then :
2265 $as_echo_n "(cached) " >&6
2266 else
2267 if test -n "$CC"; then
2268 ac_cv_prog_CC="$CC" # Let the user override the test.
2269 else
2270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271 for as_dir in $PATH
2272 do
2273 IFS=$as_save_IFS
2274 test -z "$as_dir" && as_dir=.
2275 for ac_exec_ext in '' $ac_executable_extensions; do
2276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2277 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2279 break 2
2280 fi
2281 done
2282 done
2283 IFS=$as_save_IFS
2284
2285 fi
2286 fi
2287 CC=$ac_cv_prog_CC
2288 if test -n "$CC"; then
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2290 $as_echo "$CC" >&6; }
2291 else
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2293 $as_echo "no" >&6; }
2294 fi
2295
2296
2297 fi
2298 if test -z "$ac_cv_prog_CC"; then
2299 ac_ct_CC=$CC
2300 # Extract the first word of "gcc", so it can be a program name with args.
2301 set dummy gcc; ac_word=$2
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2303 $as_echo_n "checking for $ac_word... " >&6; }
2304 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2305 $as_echo_n "(cached) " >&6
2306 else
2307 if test -n "$ac_ct_CC"; then
2308 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2309 else
2310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311 for as_dir in $PATH
2312 do
2313 IFS=$as_save_IFS
2314 test -z "$as_dir" && as_dir=.
2315 for ac_exec_ext in '' $ac_executable_extensions; do
2316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2317 ac_cv_prog_ac_ct_CC="gcc"
2318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2319 break 2
2320 fi
2321 done
2322 done
2323 IFS=$as_save_IFS
2324
2325 fi
2326 fi
2327 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2328 if test -n "$ac_ct_CC"; then
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2330 $as_echo "$ac_ct_CC" >&6; }
2331 else
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2333 $as_echo "no" >&6; }
2334 fi
2335
2336 if test "x$ac_ct_CC" = x; then
2337 CC=""
2338 else
2339 case $cross_compiling:$ac_tool_warned in
2340 yes:)
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2343 ac_tool_warned=yes ;;
2344 esac
2345 CC=$ac_ct_CC
2346 fi
2347 else
2348 CC="$ac_cv_prog_CC"
2349 fi
2350
2351 if test -z "$CC"; then
2352 if test -n "$ac_tool_prefix"; then
2353 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2354 set dummy ${ac_tool_prefix}cc; ac_word=$2
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2356 $as_echo_n "checking for $ac_word... " >&6; }
2357 if ${ac_cv_prog_CC+:} false; then :
2358 $as_echo_n "(cached) " >&6
2359 else
2360 if test -n "$CC"; then
2361 ac_cv_prog_CC="$CC" # Let the user override the test.
2362 else
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 for as_dir in $PATH
2365 do
2366 IFS=$as_save_IFS
2367 test -z "$as_dir" && as_dir=.
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2370 ac_cv_prog_CC="${ac_tool_prefix}cc"
2371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2372 break 2
2373 fi
2374 done
2375 done
2376 IFS=$as_save_IFS
2377
2378 fi
2379 fi
2380 CC=$ac_cv_prog_CC
2381 if test -n "$CC"; then
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2383 $as_echo "$CC" >&6; }
2384 else
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2386 $as_echo "no" >&6; }
2387 fi
2388
2389
2390 fi
2391 fi
2392 if test -z "$CC"; then
2393 # Extract the first word of "cc", so it can be a program name with args.
2394 set dummy cc; ac_word=$2
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2396 $as_echo_n "checking for $ac_word... " >&6; }
2397 if ${ac_cv_prog_CC+:} false; then :
2398 $as_echo_n "(cached) " >&6
2399 else
2400 if test -n "$CC"; then
2401 ac_cv_prog_CC="$CC" # Let the user override the test.
2402 else
2403 ac_prog_rejected=no
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 for as_dir in $PATH
2406 do
2407 IFS=$as_save_IFS
2408 test -z "$as_dir" && as_dir=.
2409 for ac_exec_ext in '' $ac_executable_extensions; do
2410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2411 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2412 ac_prog_rejected=yes
2413 continue
2414 fi
2415 ac_cv_prog_CC="cc"
2416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2417 break 2
2418 fi
2419 done
2420 done
2421 IFS=$as_save_IFS
2422
2423 if test $ac_prog_rejected = yes; then
2424 # We found a bogon in the path, so make sure we never use it.
2425 set dummy $ac_cv_prog_CC
2426 shift
2427 if test $# != 0; then
2428 # We chose a different compiler from the bogus one.
2429 # However, it has the same basename, so the bogon will be chosen
2430 # first if we set CC to just the basename; use the full file name.
2431 shift
2432 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2433 fi
2434 fi
2435 fi
2436 fi
2437 CC=$ac_cv_prog_CC
2438 if test -n "$CC"; then
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2440 $as_echo "$CC" >&6; }
2441 else
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2443 $as_echo "no" >&6; }
2444 fi
2445
2446
2447 fi
2448 if test -z "$CC"; then
2449 if test -n "$ac_tool_prefix"; then
2450 for ac_prog in cl.exe
2451 do
2452 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2453 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2455 $as_echo_n "checking for $ac_word... " >&6; }
2456 if ${ac_cv_prog_CC+:} false; then :
2457 $as_echo_n "(cached) " >&6
2458 else
2459 if test -n "$CC"; then
2460 ac_cv_prog_CC="$CC" # Let the user override the test.
2461 else
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 for as_dir in $PATH
2464 do
2465 IFS=$as_save_IFS
2466 test -z "$as_dir" && as_dir=.
2467 for ac_exec_ext in '' $ac_executable_extensions; do
2468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2469 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2471 break 2
2472 fi
2473 done
2474 done
2475 IFS=$as_save_IFS
2476
2477 fi
2478 fi
2479 CC=$ac_cv_prog_CC
2480 if test -n "$CC"; then
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2482 $as_echo "$CC" >&6; }
2483 else
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2485 $as_echo "no" >&6; }
2486 fi
2487
2488
2489 test -n "$CC" && break
2490 done
2491 fi
2492 if test -z "$CC"; then
2493 ac_ct_CC=$CC
2494 for ac_prog in cl.exe
2495 do
2496 # Extract the first word of "$ac_prog", so it can be a program name with args.
2497 set dummy $ac_prog; ac_word=$2
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2499 $as_echo_n "checking for $ac_word... " >&6; }
2500 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2501 $as_echo_n "(cached) " >&6
2502 else
2503 if test -n "$ac_ct_CC"; then
2504 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2505 else
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2508 do
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2513 ac_cv_prog_ac_ct_CC="$ac_prog"
2514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2515 break 2
2516 fi
2517 done
2518 done
2519 IFS=$as_save_IFS
2520
2521 fi
2522 fi
2523 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2524 if test -n "$ac_ct_CC"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2526 $as_echo "$ac_ct_CC" >&6; }
2527 else
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2529 $as_echo "no" >&6; }
2530 fi
2531
2532
2533 test -n "$ac_ct_CC" && break
2534 done
2535
2536 if test "x$ac_ct_CC" = x; then
2537 CC=""
2538 else
2539 case $cross_compiling:$ac_tool_warned in
2540 yes:)
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2543 ac_tool_warned=yes ;;
2544 esac
2545 CC=$ac_ct_CC
2546 fi
2547 fi
2548
2549 fi
2550
2551
2552 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2554 as_fn_error $? "no acceptable C compiler found in \$PATH
2555 See \`config.log' for more details" "$LINENO" 5; }
2556
2557 # Provide some information about the compiler.
2558 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2559 set X $ac_compile
2560 ac_compiler=$2
2561 for ac_option in --version -v -V -qversion; do
2562 { { ac_try="$ac_compiler $ac_option >&5"
2563 case "(($ac_try" in
2564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565 *) ac_try_echo=$ac_try;;
2566 esac
2567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2568 $as_echo "$ac_try_echo"; } >&5
2569 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2570 ac_status=$?
2571 if test -s conftest.err; then
2572 sed '10a\
2573 ... rest of stderr output deleted ...
2574 10q' conftest.err >conftest.er1
2575 cat conftest.er1 >&5
2576 fi
2577 rm -f conftest.er1 conftest.err
2578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2579 test $ac_status = 0; }
2580 done
2581
2582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2583 /* end confdefs.h. */
2584
2585 int
2586 main ()
2587 {
2588
2589 ;
2590 return 0;
2591 }
2592 _ACEOF
2593 ac_clean_files_save=$ac_clean_files
2594 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2595 # Try to create an executable without -o first, disregard a.out.
2596 # It will help us diagnose broken compilers, and finding out an intuition
2597 # of exeext.
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2599 $as_echo_n "checking whether the C compiler works... " >&6; }
2600 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2601
2602 # The possible output files:
2603 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2604
2605 ac_rmfiles=
2606 for ac_file in $ac_files
2607 do
2608 case $ac_file in
2609 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2610 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2611 esac
2612 done
2613 rm -f $ac_rmfiles
2614
2615 if { { ac_try="$ac_link_default"
2616 case "(($ac_try" in
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2619 esac
2620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2621 $as_echo "$ac_try_echo"; } >&5
2622 (eval "$ac_link_default") 2>&5
2623 ac_status=$?
2624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2625 test $ac_status = 0; }; then :
2626 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2627 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2628 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2629 # so that the user can short-circuit this test for compilers unknown to
2630 # Autoconf.
2631 for ac_file in $ac_files ''
2632 do
2633 test -f "$ac_file" || continue
2634 case $ac_file in
2635 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2636 ;;
2637 [ab].out )
2638 # We found the default executable, but exeext='' is most
2639 # certainly right.
2640 break;;
2641 *.* )
2642 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2643 then :; else
2644 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2645 fi
2646 # We set ac_cv_exeext here because the later test for it is not
2647 # safe: cross compilers may not add the suffix if given an `-o'
2648 # argument, so we may need to know it at that point already.
2649 # Even if this section looks crufty: it has the advantage of
2650 # actually working.
2651 break;;
2652 * )
2653 break;;
2654 esac
2655 done
2656 test "$ac_cv_exeext" = no && ac_cv_exeext=
2657
2658 else
2659 ac_file=''
2660 fi
2661 if test -z "$ac_file"; then :
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663 $as_echo "no" >&6; }
2664 $as_echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2666
2667 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2669 as_fn_error 77 "C compiler cannot create executables
2670 See \`config.log' for more details" "$LINENO" 5; }
2671 else
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2673 $as_echo "yes" >&6; }
2674 fi
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2676 $as_echo_n "checking for C compiler default output file name... " >&6; }
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2678 $as_echo "$ac_file" >&6; }
2679 ac_exeext=$ac_cv_exeext
2680
2681 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2682 ac_clean_files=$ac_clean_files_save
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2684 $as_echo_n "checking for suffix of executables... " >&6; }
2685 if { { ac_try="$ac_link"
2686 case "(($ac_try" in
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2689 esac
2690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2691 $as_echo "$ac_try_echo"; } >&5
2692 (eval "$ac_link") 2>&5
2693 ac_status=$?
2694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2695 test $ac_status = 0; }; then :
2696 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2697 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2698 # work properly (i.e., refer to `conftest.exe'), while it won't with
2699 # `rm'.
2700 for ac_file in conftest.exe conftest conftest.*; do
2701 test -f "$ac_file" || continue
2702 case $ac_file in
2703 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2704 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2705 break;;
2706 * ) break;;
2707 esac
2708 done
2709 else
2710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2712 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2713 See \`config.log' for more details" "$LINENO" 5; }
2714 fi
2715 rm -f conftest conftest$ac_cv_exeext
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2717 $as_echo "$ac_cv_exeext" >&6; }
2718
2719 rm -f conftest.$ac_ext
2720 EXEEXT=$ac_cv_exeext
2721 ac_exeext=$EXEEXT
2722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2723 /* end confdefs.h. */
2724 #include <stdio.h>
2725 int
2726 main ()
2727 {
2728 FILE *f = fopen ("conftest.out", "w");
2729 return ferror (f) || fclose (f) != 0;
2730
2731 ;
2732 return 0;
2733 }
2734 _ACEOF
2735 ac_clean_files="$ac_clean_files conftest.out"
2736 # Check that the compiler produces executables we can run. If not, either
2737 # the compiler is broken, or we cross compile.
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2739 $as_echo_n "checking whether we are cross compiling... " >&6; }
2740 if test "$cross_compiling" != yes; then
2741 { { ac_try="$ac_link"
2742 case "(($ac_try" in
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2745 esac
2746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2747 $as_echo "$ac_try_echo"; } >&5
2748 (eval "$ac_link") 2>&5
2749 ac_status=$?
2750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2751 test $ac_status = 0; }
2752 if { ac_try='./conftest$ac_cv_exeext'
2753 { { case "(($ac_try" in
2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755 *) ac_try_echo=$ac_try;;
2756 esac
2757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2758 $as_echo "$ac_try_echo"; } >&5
2759 (eval "$ac_try") 2>&5
2760 ac_status=$?
2761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2762 test $ac_status = 0; }; }; then
2763 cross_compiling=no
2764 else
2765 if test "$cross_compiling" = maybe; then
2766 cross_compiling=yes
2767 else
2768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2770 as_fn_error $? "cannot run C compiled programs.
2771 If you meant to cross compile, use \`--host'.
2772 See \`config.log' for more details" "$LINENO" 5; }
2773 fi
2774 fi
2775 fi
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2777 $as_echo "$cross_compiling" >&6; }
2778
2779 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2780 ac_clean_files=$ac_clean_files_save
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2782 $as_echo_n "checking for suffix of object files... " >&6; }
2783 if ${ac_cv_objext+:} false; then :
2784 $as_echo_n "(cached) " >&6
2785 else
2786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2787 /* end confdefs.h. */
2788
2789 int
2790 main ()
2791 {
2792
2793 ;
2794 return 0;
2795 }
2796 _ACEOF
2797 rm -f conftest.o conftest.obj
2798 if { { ac_try="$ac_compile"
2799 case "(($ac_try" in
2800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801 *) ac_try_echo=$ac_try;;
2802 esac
2803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2804 $as_echo "$ac_try_echo"; } >&5
2805 (eval "$ac_compile") 2>&5
2806 ac_status=$?
2807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2808 test $ac_status = 0; }; then :
2809 for ac_file in conftest.o conftest.obj conftest.*; do
2810 test -f "$ac_file" || continue;
2811 case $ac_file in
2812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2813 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2814 break;;
2815 esac
2816 done
2817 else
2818 $as_echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.$ac_ext >&5
2820
2821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2823 as_fn_error $? "cannot compute suffix of object files: cannot compile
2824 See \`config.log' for more details" "$LINENO" 5; }
2825 fi
2826 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2827 fi
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2829 $as_echo "$ac_cv_objext" >&6; }
2830 OBJEXT=$ac_cv_objext
2831 ac_objext=$OBJEXT
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2833 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2834 if ${ac_cv_c_compiler_gnu+:} false; then :
2835 $as_echo_n "(cached) " >&6
2836 else
2837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2838 /* end confdefs.h. */
2839
2840 int
2841 main ()
2842 {
2843 #ifndef __GNUC__
2844 choke me
2845 #endif
2846
2847 ;
2848 return 0;
2849 }
2850 _ACEOF
2851 if ac_fn_c_try_compile "$LINENO"; then :
2852 ac_compiler_gnu=yes
2853 else
2854 ac_compiler_gnu=no
2855 fi
2856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2857 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2858
2859 fi
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2861 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2862 if test $ac_compiler_gnu = yes; then
2863 GCC=yes
2864 else
2865 GCC=
2866 fi
2867 ac_test_CFLAGS=${CFLAGS+set}
2868 ac_save_CFLAGS=$CFLAGS
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2870 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2871 if ${ac_cv_prog_cc_g+:} false; then :
2872 $as_echo_n "(cached) " >&6
2873 else
2874 ac_save_c_werror_flag=$ac_c_werror_flag
2875 ac_c_werror_flag=yes
2876 ac_cv_prog_cc_g=no
2877 CFLAGS="-g"
2878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2879 /* end confdefs.h. */
2880
2881 int
2882 main ()
2883 {
2884
2885 ;
2886 return 0;
2887 }
2888 _ACEOF
2889 if ac_fn_c_try_compile "$LINENO"; then :
2890 ac_cv_prog_cc_g=yes
2891 else
2892 CFLAGS=""
2893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2894 /* end confdefs.h. */
2895
2896 int
2897 main ()
2898 {
2899
2900 ;
2901 return 0;
2902 }
2903 _ACEOF
2904 if ac_fn_c_try_compile "$LINENO"; then :
2905
2906 else
2907 ac_c_werror_flag=$ac_save_c_werror_flag
2908 CFLAGS="-g"
2909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2910 /* end confdefs.h. */
2911
2912 int
2913 main ()
2914 {
2915
2916 ;
2917 return 0;
2918 }
2919 _ACEOF
2920 if ac_fn_c_try_compile "$LINENO"; then :
2921 ac_cv_prog_cc_g=yes
2922 fi
2923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2924 fi
2925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2926 fi
2927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2928 ac_c_werror_flag=$ac_save_c_werror_flag
2929 fi
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2931 $as_echo "$ac_cv_prog_cc_g" >&6; }
2932 if test "$ac_test_CFLAGS" = set; then
2933 CFLAGS=$ac_save_CFLAGS
2934 elif test $ac_cv_prog_cc_g = yes; then
2935 if test "$GCC" = yes; then
2936 CFLAGS="-g -O2"
2937 else
2938 CFLAGS="-g"
2939 fi
2940 else
2941 if test "$GCC" = yes; then
2942 CFLAGS="-O2"
2943 else
2944 CFLAGS=
2945 fi
2946 fi
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2948 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2949 if ${ac_cv_prog_cc_c89+:} false; then :
2950 $as_echo_n "(cached) " >&6
2951 else
2952 ac_cv_prog_cc_c89=no
2953 ac_save_CC=$CC
2954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2955 /* end confdefs.h. */
2956 #include <stdarg.h>
2957 #include <stdio.h>
2958 #include <sys/types.h>
2959 #include <sys/stat.h>
2960 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2961 struct buf { int x; };
2962 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2963 static char *e (p, i)
2964 char **p;
2965 int i;
2966 {
2967 return p[i];
2968 }
2969 static char *f (char * (*g) (char **, int), char **p, ...)
2970 {
2971 char *s;
2972 va_list v;
2973 va_start (v,p);
2974 s = g (p, va_arg (v,int));
2975 va_end (v);
2976 return s;
2977 }
2978
2979 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2980 function prototypes and stuff, but not '\xHH' hex character constants.
2981 These don't provoke an error unfortunately, instead are silently treated
2982 as 'x'. The following induces an error, until -std is added to get
2983 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2984 array size at least. It's necessary to write '\x00'==0 to get something
2985 that's true only with -std. */
2986 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2987
2988 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2989 inside strings and character constants. */
2990 #define FOO(x) 'x'
2991 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2992
2993 int test (int i, double x);
2994 struct s1 {int (*f) (int a);};
2995 struct s2 {int (*f) (double a);};
2996 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2997 int argc;
2998 char **argv;
2999 int
3000 main ()
3001 {
3002 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3003 ;
3004 return 0;
3005 }
3006 _ACEOF
3007 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3008 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3009 do
3010 CC="$ac_save_CC $ac_arg"
3011 if ac_fn_c_try_compile "$LINENO"; then :
3012 ac_cv_prog_cc_c89=$ac_arg
3013 fi
3014 rm -f core conftest.err conftest.$ac_objext
3015 test "x$ac_cv_prog_cc_c89" != "xno" && break
3016 done
3017 rm -f conftest.$ac_ext
3018 CC=$ac_save_CC
3019
3020 fi
3021 # AC_CACHE_VAL
3022 case "x$ac_cv_prog_cc_c89" in
3023 x)
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3025 $as_echo "none needed" >&6; } ;;
3026 xno)
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3028 $as_echo "unsupported" >&6; } ;;
3029 *)
3030 CC="$CC $ac_cv_prog_cc_c89"
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3032 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3033 esac
3034 if test "x$ac_cv_prog_cc_c89" != xno; then :
3035
3036 fi
3037
3038 ac_ext=c
3039 ac_cpp='$CPP $CPPFLAGS'
3040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3043
3044
3045 ac_ext=c
3046 ac_cpp='$CPP $CPPFLAGS'
3047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3051 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3052 # On Suns, sometimes $CPP names a directory.
3053 if test -n "$CPP" && test -d "$CPP"; then
3054 CPP=
3055 fi
3056 if test -z "$CPP"; then
3057 if ${ac_cv_prog_CPP+:} false; then :
3058 $as_echo_n "(cached) " >&6
3059 else
3060 # Double quotes because CPP needs to be expanded
3061 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3062 do
3063 ac_preproc_ok=false
3064 for ac_c_preproc_warn_flag in '' yes
3065 do
3066 # Use a header file that comes with gcc, so configuring glibc
3067 # with a fresh cross-compiler works.
3068 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3069 # <limits.h> exists even on freestanding compilers.
3070 # On the NeXT, cc -E runs the code through the compiler's parser,
3071 # not just through cpp. "Syntax error" is here to catch this case.
3072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073 /* end confdefs.h. */
3074 #ifdef __STDC__
3075 # include <limits.h>
3076 #else
3077 # include <assert.h>
3078 #endif
3079 Syntax error
3080 _ACEOF
3081 if ac_fn_c_try_cpp "$LINENO"; then :
3082
3083 else
3084 # Broken: fails on valid input.
3085 continue
3086 fi
3087 rm -f conftest.err conftest.i conftest.$ac_ext
3088
3089 # OK, works on sane cases. Now check whether nonexistent headers
3090 # can be detected and how.
3091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3092 /* end confdefs.h. */
3093 #include <ac_nonexistent.h>
3094 _ACEOF
3095 if ac_fn_c_try_cpp "$LINENO"; then :
3096 # Broken: success on invalid input.
3097 continue
3098 else
3099 # Passes both tests.
3100 ac_preproc_ok=:
3101 break
3102 fi
3103 rm -f conftest.err conftest.i conftest.$ac_ext
3104
3105 done
3106 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3107 rm -f conftest.i conftest.err conftest.$ac_ext
3108 if $ac_preproc_ok; then :
3109 break
3110 fi
3111
3112 done
3113 ac_cv_prog_CPP=$CPP
3114
3115 fi
3116 CPP=$ac_cv_prog_CPP
3117 else
3118 ac_cv_prog_CPP=$CPP
3119 fi
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3121 $as_echo "$CPP" >&6; }
3122 ac_preproc_ok=false
3123 for ac_c_preproc_warn_flag in '' yes
3124 do
3125 # Use a header file that comes with gcc, so configuring glibc
3126 # with a fresh cross-compiler works.
3127 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3128 # <limits.h> exists even on freestanding compilers.
3129 # On the NeXT, cc -E runs the code through the compiler's parser,
3130 # not just through cpp. "Syntax error" is here to catch this case.
3131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3132 /* end confdefs.h. */
3133 #ifdef __STDC__
3134 # include <limits.h>
3135 #else
3136 # include <assert.h>
3137 #endif
3138 Syntax error
3139 _ACEOF
3140 if ac_fn_c_try_cpp "$LINENO"; then :
3141
3142 else
3143 # Broken: fails on valid input.
3144 continue
3145 fi
3146 rm -f conftest.err conftest.i conftest.$ac_ext
3147
3148 # OK, works on sane cases. Now check whether nonexistent headers
3149 # can be detected and how.
3150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3151 /* end confdefs.h. */
3152 #include <ac_nonexistent.h>
3153 _ACEOF
3154 if ac_fn_c_try_cpp "$LINENO"; then :
3155 # Broken: success on invalid input.
3156 continue
3157 else
3158 # Passes both tests.
3159 ac_preproc_ok=:
3160 break
3161 fi
3162 rm -f conftest.err conftest.i conftest.$ac_ext
3163
3164 done
3165 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3166 rm -f conftest.i conftest.err conftest.$ac_ext
3167 if $ac_preproc_ok; then :
3168
3169 else
3170 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3172 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3173 See \`config.log' for more details" "$LINENO" 5; }
3174 fi
3175
3176 ac_ext=c
3177 ac_cpp='$CPP $CPPFLAGS'
3178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3181
3182
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3184 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3185 if ${ac_cv_path_GREP+:} false; then :
3186 $as_echo_n "(cached) " >&6
3187 else
3188 if test -z "$GREP"; then
3189 ac_path_GREP_found=false
3190 # Loop through the user's path and test for each of PROGNAME-LIST
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3193 do
3194 IFS=$as_save_IFS
3195 test -z "$as_dir" && as_dir=.
3196 for ac_prog in grep ggrep; do
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3199 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3200 # Check for GNU ac_path_GREP and select it if it is found.
3201 # Check for GNU $ac_path_GREP
3202 case `"$ac_path_GREP" --version 2>&1` in
3203 *GNU*)
3204 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3205 *)
3206 ac_count=0
3207 $as_echo_n 0123456789 >"conftest.in"
3208 while :
3209 do
3210 cat "conftest.in" "conftest.in" >"conftest.tmp"
3211 mv "conftest.tmp" "conftest.in"
3212 cp "conftest.in" "conftest.nl"
3213 $as_echo 'GREP' >> "conftest.nl"
3214 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3215 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3216 as_fn_arith $ac_count + 1 && ac_count=$as_val
3217 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3218 # Best one so far, save it but keep looking for a better one
3219 ac_cv_path_GREP="$ac_path_GREP"
3220 ac_path_GREP_max=$ac_count
3221 fi
3222 # 10*(2^10) chars as input seems more than enough
3223 test $ac_count -gt 10 && break
3224 done
3225 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3226 esac
3227
3228 $ac_path_GREP_found && break 3
3229 done
3230 done
3231 done
3232 IFS=$as_save_IFS
3233 if test -z "$ac_cv_path_GREP"; then
3234 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3235 fi
3236 else
3237 ac_cv_path_GREP=$GREP
3238 fi
3239
3240 fi
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3242 $as_echo "$ac_cv_path_GREP" >&6; }
3243 GREP="$ac_cv_path_GREP"
3244
3245
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3247 $as_echo_n "checking for egrep... " >&6; }
3248 if ${ac_cv_path_EGREP+:} false; then :
3249 $as_echo_n "(cached) " >&6
3250 else
3251 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3252 then ac_cv_path_EGREP="$GREP -E"
3253 else
3254 if test -z "$EGREP"; then
3255 ac_path_EGREP_found=false
3256 # Loop through the user's path and test for each of PROGNAME-LIST
3257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3259 do
3260 IFS=$as_save_IFS
3261 test -z "$as_dir" && as_dir=.
3262 for ac_prog in egrep; do
3263 for ac_exec_ext in '' $ac_executable_extensions; do
3264 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3265 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3266 # Check for GNU ac_path_EGREP and select it if it is found.
3267 # Check for GNU $ac_path_EGREP
3268 case `"$ac_path_EGREP" --version 2>&1` in
3269 *GNU*)
3270 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3271 *)
3272 ac_count=0
3273 $as_echo_n 0123456789 >"conftest.in"
3274 while :
3275 do
3276 cat "conftest.in" "conftest.in" >"conftest.tmp"
3277 mv "conftest.tmp" "conftest.in"
3278 cp "conftest.in" "conftest.nl"
3279 $as_echo 'EGREP' >> "conftest.nl"
3280 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3281 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3282 as_fn_arith $ac_count + 1 && ac_count=$as_val
3283 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3284 # Best one so far, save it but keep looking for a better one
3285 ac_cv_path_EGREP="$ac_path_EGREP"
3286 ac_path_EGREP_max=$ac_count
3287 fi
3288 # 10*(2^10) chars as input seems more than enough
3289 test $ac_count -gt 10 && break
3290 done
3291 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3292 esac
3293
3294 $ac_path_EGREP_found && break 3
3295 done
3296 done
3297 done
3298 IFS=$as_save_IFS
3299 if test -z "$ac_cv_path_EGREP"; then
3300 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3301 fi
3302 else
3303 ac_cv_path_EGREP=$EGREP
3304 fi
3305
3306 fi
3307 fi
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3309 $as_echo "$ac_cv_path_EGREP" >&6; }
3310 EGREP="$ac_cv_path_EGREP"
3311
3312
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3314 $as_echo_n "checking for ANSI C header files... " >&6; }
3315 if ${ac_cv_header_stdc+:} false; then :
3316 $as_echo_n "(cached) " >&6
3317 else
3318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319 /* end confdefs.h. */
3320 #include <stdlib.h>
3321 #include <stdarg.h>
3322 #include <string.h>
3323 #include <float.h>
3324
3325 int
3326 main ()
3327 {
3328
3329 ;
3330 return 0;
3331 }
3332 _ACEOF
3333 if ac_fn_c_try_compile "$LINENO"; then :
3334 ac_cv_header_stdc=yes
3335 else
3336 ac_cv_header_stdc=no
3337 fi
3338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339
3340 if test $ac_cv_header_stdc = yes; then
3341 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343 /* end confdefs.h. */
3344 #include <string.h>
3345
3346 _ACEOF
3347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3348 $EGREP "memchr" >/dev/null 2>&1; then :
3349
3350 else
3351 ac_cv_header_stdc=no
3352 fi
3353 rm -f conftest*
3354
3355 fi
3356
3357 if test $ac_cv_header_stdc = yes; then
3358 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360 /* end confdefs.h. */
3361 #include <stdlib.h>
3362
3363 _ACEOF
3364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3365 $EGREP "free" >/dev/null 2>&1; then :
3366
3367 else
3368 ac_cv_header_stdc=no
3369 fi
3370 rm -f conftest*
3371
3372 fi
3373
3374 if test $ac_cv_header_stdc = yes; then
3375 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3376 if test "$cross_compiling" = yes; then :
3377 :
3378 else
3379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380 /* end confdefs.h. */
3381 #include <ctype.h>
3382 #include <stdlib.h>
3383 #if ((' ' & 0x0FF) == 0x020)
3384 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3385 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3386 #else
3387 # define ISLOWER(c) \
3388 (('a' <= (c) && (c) <= 'i') \
3389 || ('j' <= (c) && (c) <= 'r') \
3390 || ('s' <= (c) && (c) <= 'z'))
3391 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3392 #endif
3393
3394 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3395 int
3396 main ()
3397 {
3398 int i;
3399 for (i = 0; i < 256; i++)
3400 if (XOR (islower (i), ISLOWER (i))
3401 || toupper (i) != TOUPPER (i))
3402 return 2;
3403 return 0;
3404 }
3405 _ACEOF
3406 if ac_fn_c_try_run "$LINENO"; then :
3407
3408 else
3409 ac_cv_header_stdc=no
3410 fi
3411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3412 conftest.$ac_objext conftest.beam conftest.$ac_ext
3413 fi
3414
3415 fi
3416 fi
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3418 $as_echo "$ac_cv_header_stdc" >&6; }
3419 if test $ac_cv_header_stdc = yes; then
3420
3421 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3422
3423 fi
3424
3425 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3426 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3427 inttypes.h stdint.h unistd.h
3428 do :
3429 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3430 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3431 "
3432 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3433 cat >>confdefs.h <<_ACEOF
3434 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3435 _ACEOF
3436
3437 fi
3438
3439 done
3440
3441
3442
3443 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3444 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3445 MINIX=yes
3446 else
3447 MINIX=
3448 fi
3449
3450
3451 if test "$MINIX" = yes; then
3452
3453 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3454
3455
3456 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3457
3458
3459 $as_echo "#define _MINIX 1" >>confdefs.h
3460
3461 fi
3462
3463
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3465 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3466 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3467 $as_echo_n "(cached) " >&6
3468 else
3469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470 /* end confdefs.h. */
3471
3472 # define __EXTENSIONS__ 1
3473 $ac_includes_default
3474 int
3475 main ()
3476 {
3477
3478 ;
3479 return 0;
3480 }
3481 _ACEOF
3482 if ac_fn_c_try_compile "$LINENO"; then :
3483 ac_cv_safe_to_define___extensions__=yes
3484 else
3485 ac_cv_safe_to_define___extensions__=no
3486 fi
3487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3488 fi
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3490 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3491 test $ac_cv_safe_to_define___extensions__ = yes &&
3492 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3493
3494 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3495
3496 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3497
3498 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3499
3500 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3501
3502
3503
3504 # Initialize Automake
3505 am__api_version='1.13'
3506
3507 ac_aux_dir=
3508 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3509 if test -f "$ac_dir/install-sh"; then
3510 ac_aux_dir=$ac_dir
3511 ac_install_sh="$ac_aux_dir/install-sh -c"
3512 break
3513 elif test -f "$ac_dir/install.sh"; then
3514 ac_aux_dir=$ac_dir
3515 ac_install_sh="$ac_aux_dir/install.sh -c"
3516 break
3517 elif test -f "$ac_dir/shtool"; then
3518 ac_aux_dir=$ac_dir
3519 ac_install_sh="$ac_aux_dir/shtool install -c"
3520 break
3521 fi
3522 done
3523 if test -z "$ac_aux_dir"; then
3524 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3525 fi
3526
3527 # These three variables are undocumented and unsupported,
3528 # and are intended to be withdrawn in a future Autoconf release.
3529 # They can cause serious problems if a builder's source tree is in a directory
3530 # whose full name contains unusual characters.
3531 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3532 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3533 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3534
3535
3536 # Find a good install program. We prefer a C program (faster),
3537 # so one script is as good as another. But avoid the broken or
3538 # incompatible versions:
3539 # SysV /etc/install, /usr/sbin/install
3540 # SunOS /usr/etc/install
3541 # IRIX /sbin/install
3542 # AIX /bin/install
3543 # AmigaOS /C/install, which installs bootblocks on floppy discs
3544 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3545 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3546 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3547 # OS/2's system install, which has a completely different semantic
3548 # ./install, which can be erroneously created by make from ./install.sh.
3549 # Reject install programs that cannot install multiple files.
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3551 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3552 if test -z "$INSTALL"; then
3553 if ${ac_cv_path_install+:} false; then :
3554 $as_echo_n "(cached) " >&6
3555 else
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 for as_dir in $PATH
3558 do
3559 IFS=$as_save_IFS
3560 test -z "$as_dir" && as_dir=.
3561 # Account for people who put trailing slashes in PATH elements.
3562 case $as_dir/ in #((
3563 ./ | .// | /[cC]/* | \
3564 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3565 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3566 /usr/ucb/* ) ;;
3567 *)
3568 # OSF1 and SCO ODT 3.0 have their own names for install.
3569 # Don't use installbsd from OSF since it installs stuff as root
3570 # by default.
3571 for ac_prog in ginstall scoinst install; do
3572 for ac_exec_ext in '' $ac_executable_extensions; do
3573 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3574 if test $ac_prog = install &&
3575 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3576 # AIX install. It has an incompatible calling convention.
3577 :
3578 elif test $ac_prog = install &&
3579 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3580 # program-specific install script used by HP pwplus--don't use.
3581 :
3582 else
3583 rm -rf conftest.one conftest.two conftest.dir
3584 echo one > conftest.one
3585 echo two > conftest.two
3586 mkdir conftest.dir
3587 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3588 test -s conftest.one && test -s conftest.two &&
3589 test -s conftest.dir/conftest.one &&
3590 test -s conftest.dir/conftest.two
3591 then
3592 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3593 break 3
3594 fi
3595 fi
3596 fi
3597 done
3598 done
3599 ;;
3600 esac
3601
3602 done
3603 IFS=$as_save_IFS
3604
3605 rm -rf conftest.one conftest.two conftest.dir
3606
3607 fi
3608 if test "${ac_cv_path_install+set}" = set; then
3609 INSTALL=$ac_cv_path_install
3610 else
3611 # As a last resort, use the slow shell script. Don't cache a
3612 # value for INSTALL within a source directory, because that will
3613 # break other packages using the cache if that directory is
3614 # removed, or if the value is a relative name.
3615 INSTALL=$ac_install_sh
3616 fi
3617 fi
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3619 $as_echo "$INSTALL" >&6; }
3620
3621 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3622 # It thinks the first close brace ends the variable substitution.
3623 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3624
3625 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3626
3627 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3628
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3630 $as_echo_n "checking whether build environment is sane... " >&6; }
3631 # Reject unsafe characters in $srcdir or the absolute working directory
3632 # name. Accept space and tab only in the latter.
3633 am_lf='
3634 '
3635 case `pwd` in
3636 *[\\\"\#\$\&\'\`$am_lf]*)
3637 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3638 esac
3639 case $srcdir in
3640 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3641 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3642 esac
3643
3644 # Do 'set' in a subshell so we don't clobber the current shell's
3645 # arguments. Must try -L first in case configure is actually a
3646 # symlink; some systems play weird games with the mod time of symlinks
3647 # (eg FreeBSD returns the mod time of the symlink's containing
3648 # directory).
3649 if (
3650 am_has_slept=no
3651 for am_try in 1 2; do
3652 echo "timestamp, slept: $am_has_slept" > conftest.file
3653 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3654 if test "$*" = "X"; then
3655 # -L didn't work.
3656 set X `ls -t "$srcdir/configure" conftest.file`
3657 fi
3658 if test "$*" != "X $srcdir/configure conftest.file" \
3659 && test "$*" != "X conftest.file $srcdir/configure"; then
3660
3661 # If neither matched, then we have a broken ls. This can happen
3662 # if, for instance, CONFIG_SHELL is bash and it inherits a
3663 # broken ls alias from the environment. This has actually
3664 # happened. Such a system could not be considered "sane".
3665 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3666 alias in your environment" "$LINENO" 5
3667 fi
3668 if test "$2" = conftest.file || test $am_try -eq 2; then
3669 break
3670 fi
3671 # Just in case.
3672 sleep 1
3673 am_has_slept=yes
3674 done
3675 test "$2" = conftest.file
3676 )
3677 then
3678 # Ok.
3679 :
3680 else
3681 as_fn_error $? "newly created file is older than distributed files!
3682 Check your system clock" "$LINENO" 5
3683 fi
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3685 $as_echo "yes" >&6; }
3686 # If we didn't sleep, we still need to ensure time stamps of config.status and
3687 # generated files are strictly newer.
3688 am_sleep_pid=
3689 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3690 ( sleep 1 ) &
3691 am_sleep_pid=$!
3692 fi
3693
3694 rm -f conftest.file
3695
3696 test "$program_prefix" != NONE &&
3697 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3698 # Use a double $ so make ignores it.
3699 test "$program_suffix" != NONE &&
3700 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3701 # Double any \ or $.
3702 # By default was `s,x,x', remove it if useless.
3703 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3704 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3705
3706 # expand $ac_aux_dir to an absolute path
3707 am_aux_dir=`cd $ac_aux_dir && pwd`
3708
3709 if test x"${MISSING+set}" != xset; then
3710 case $am_aux_dir in
3711 *\ * | *\ *)
3712 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3713 *)
3714 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3715 esac
3716 fi
3717 # Use eval to expand $SHELL
3718 if eval "$MISSING --is-lightweight"; then
3719 am_missing_run="$MISSING "
3720 else
3721 am_missing_run=
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3723 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3724 fi
3725
3726 if test x"${install_sh}" != xset; then
3727 case $am_aux_dir in
3728 *\ * | *\ *)
3729 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3730 *)
3731 install_sh="\${SHELL} $am_aux_dir/install-sh"
3732 esac
3733 fi
3734
3735 # Installed binaries are usually stripped using 'strip' when the user
3736 # run "make install-strip". However 'strip' might not be the right
3737 # tool to use in cross-compilation environments, therefore Automake
3738 # will honor the 'STRIP' environment variable to overrule this program.
3739 if test "$cross_compiling" != no; then
3740 if test -n "$ac_tool_prefix"; then
3741 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3742 set dummy ${ac_tool_prefix}strip; ac_word=$2
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3744 $as_echo_n "checking for $ac_word... " >&6; }
3745 if ${ac_cv_prog_STRIP+:} false; then :
3746 $as_echo_n "(cached) " >&6
3747 else
3748 if test -n "$STRIP"; then
3749 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3750 else
3751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 for as_dir in $PATH
3753 do
3754 IFS=$as_save_IFS
3755 test -z "$as_dir" && as_dir=.
3756 for ac_exec_ext in '' $ac_executable_extensions; do
3757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3758 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3760 break 2
3761 fi
3762 done
3763 done
3764 IFS=$as_save_IFS
3765
3766 fi
3767 fi
3768 STRIP=$ac_cv_prog_STRIP
3769 if test -n "$STRIP"; then
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3771 $as_echo "$STRIP" >&6; }
3772 else
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774 $as_echo "no" >&6; }
3775 fi
3776
3777
3778 fi
3779 if test -z "$ac_cv_prog_STRIP"; then
3780 ac_ct_STRIP=$STRIP
3781 # Extract the first word of "strip", so it can be a program name with args.
3782 set dummy strip; ac_word=$2
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3784 $as_echo_n "checking for $ac_word... " >&6; }
3785 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3786 $as_echo_n "(cached) " >&6
3787 else
3788 if test -n "$ac_ct_STRIP"; then
3789 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3790 else
3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 for as_dir in $PATH
3793 do
3794 IFS=$as_save_IFS
3795 test -z "$as_dir" && as_dir=.
3796 for ac_exec_ext in '' $ac_executable_extensions; do
3797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3798 ac_cv_prog_ac_ct_STRIP="strip"
3799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3800 break 2
3801 fi
3802 done
3803 done
3804 IFS=$as_save_IFS
3805
3806 fi
3807 fi
3808 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3809 if test -n "$ac_ct_STRIP"; then
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3811 $as_echo "$ac_ct_STRIP" >&6; }
3812 else
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3814 $as_echo "no" >&6; }
3815 fi
3816
3817 if test "x$ac_ct_STRIP" = x; then
3818 STRIP=":"
3819 else
3820 case $cross_compiling:$ac_tool_warned in
3821 yes:)
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3824 ac_tool_warned=yes ;;
3825 esac
3826 STRIP=$ac_ct_STRIP
3827 fi
3828 else
3829 STRIP="$ac_cv_prog_STRIP"
3830 fi
3831
3832 fi
3833 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3834
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3836 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3837 if test -z "$MKDIR_P"; then
3838 if ${ac_cv_path_mkdir+:} false; then :
3839 $as_echo_n "(cached) " >&6
3840 else
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3843 do
3844 IFS=$as_save_IFS
3845 test -z "$as_dir" && as_dir=.
3846 for ac_prog in mkdir gmkdir; do
3847 for ac_exec_ext in '' $ac_executable_extensions; do
3848 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3849 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3850 'mkdir (GNU coreutils) '* | \
3851 'mkdir (coreutils) '* | \
3852 'mkdir (fileutils) '4.1*)
3853 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3854 break 3;;
3855 esac
3856 done
3857 done
3858 done
3859 IFS=$as_save_IFS
3860
3861 fi
3862
3863 test -d ./--version && rmdir ./--version
3864 if test "${ac_cv_path_mkdir+set}" = set; then
3865 MKDIR_P="$ac_cv_path_mkdir -p"
3866 else
3867 # As a last resort, use the slow shell script. Don't cache a
3868 # value for MKDIR_P within a source directory, because that will
3869 # break other packages using the cache if that directory is
3870 # removed, or if the value is a relative name.
3871 MKDIR_P="$ac_install_sh -d"
3872 fi
3873 fi
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3875 $as_echo "$MKDIR_P" >&6; }
3876
3877 for ac_prog in gawk mawk nawk awk
3878 do
3879 # Extract the first word of "$ac_prog", so it can be a program name with args.
3880 set dummy $ac_prog; ac_word=$2
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3882 $as_echo_n "checking for $ac_word... " >&6; }
3883 if ${ac_cv_prog_AWK+:} false; then :
3884 $as_echo_n "(cached) " >&6
3885 else
3886 if test -n "$AWK"; then
3887 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3888 else
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 for as_dir in $PATH
3891 do
3892 IFS=$as_save_IFS
3893 test -z "$as_dir" && as_dir=.
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3896 ac_cv_prog_AWK="$ac_prog"
3897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3898 break 2
3899 fi
3900 done
3901 done
3902 IFS=$as_save_IFS
3903
3904 fi
3905 fi
3906 AWK=$ac_cv_prog_AWK
3907 if test -n "$AWK"; then
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3909 $as_echo "$AWK" >&6; }
3910 else
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3912 $as_echo "no" >&6; }
3913 fi
3914
3915
3916 test -n "$AWK" && break
3917 done
3918
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3920 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3921 set x ${MAKE-make}
3922 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3923 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3924 $as_echo_n "(cached) " >&6
3925 else
3926 cat >conftest.make <<\_ACEOF
3927 SHELL = /bin/sh
3928 all:
3929 @echo '@@@%%%=$(MAKE)=@@@%%%'
3930 _ACEOF
3931 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3932 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3933 *@@@%%%=?*=@@@%%%*)
3934 eval ac_cv_prog_make_${ac_make}_set=yes;;
3935 *)
3936 eval ac_cv_prog_make_${ac_make}_set=no;;
3937 esac
3938 rm -f conftest.make
3939 fi
3940 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3942 $as_echo "yes" >&6; }
3943 SET_MAKE=
3944 else
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3946 $as_echo "no" >&6; }
3947 SET_MAKE="MAKE=${MAKE-make}"
3948 fi
3949
3950 rm -rf .tst 2>/dev/null
3951 mkdir .tst 2>/dev/null
3952 if test -d .tst; then
3953 am__leading_dot=.
3954 else
3955 am__leading_dot=_
3956 fi
3957 rmdir .tst 2>/dev/null
3958
3959 DEPDIR="${am__leading_dot}deps"
3960
3961 ac_config_commands="$ac_config_commands depfiles"
3962
3963
3964 am_make=${MAKE-make}
3965 cat > confinc << 'END'
3966 am__doit:
3967 @echo this is the am__doit target
3968 .PHONY: am__doit
3969 END
3970 # If we don't find an include directive, just comment out the code.
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3972 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3973 am__include="#"
3974 am__quote=
3975 _am_result=none
3976 # First try GNU make style include.
3977 echo "include confinc" > confmf
3978 # Ignore all kinds of additional output from 'make'.
3979 case `$am_make -s -f confmf 2> /dev/null` in #(
3980 *the\ am__doit\ target*)
3981 am__include=include
3982 am__quote=
3983 _am_result=GNU
3984 ;;
3985 esac
3986 # Now try BSD make style include.
3987 if test "$am__include" = "#"; then
3988 echo '.include "confinc"' > confmf
3989 case `$am_make -s -f confmf 2> /dev/null` in #(
3990 *the\ am__doit\ target*)
3991 am__include=.include
3992 am__quote="\""
3993 _am_result=BSD
3994 ;;
3995 esac
3996 fi
3997
3998
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4000 $as_echo "$_am_result" >&6; }
4001 rm -f confinc confmf
4002
4003 # Check whether --enable-dependency-tracking was given.
4004 if test "${enable_dependency_tracking+set}" = set; then :
4005 enableval=$enable_dependency_tracking;
4006 fi
4007
4008 if test "x$enable_dependency_tracking" != xno; then
4009 am_depcomp="$ac_aux_dir/depcomp"
4010 AMDEPBACKSLASH='\'
4011 am__nodep='_no'
4012 fi
4013 if test "x$enable_dependency_tracking" != xno; then
4014 AMDEP_TRUE=
4015 AMDEP_FALSE='#'
4016 else
4017 AMDEP_TRUE='#'
4018 AMDEP_FALSE=
4019 fi
4020
4021
4022 # Check whether --enable-silent-rules was given.
4023 if test "${enable_silent_rules+set}" = set; then :
4024 enableval=$enable_silent_rules;
4025 fi
4026
4027 case $enable_silent_rules in # (((
4028 yes) AM_DEFAULT_VERBOSITY=0;;
4029 no) AM_DEFAULT_VERBOSITY=1;;
4030 *) AM_DEFAULT_VERBOSITY=1;;
4031 esac
4032 am_make=${MAKE-make}
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4034 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4035 if ${am_cv_make_support_nested_variables+:} false; then :
4036 $as_echo_n "(cached) " >&6
4037 else
4038 if $as_echo 'TRUE=$(BAR$(V))
4039 BAR0=false
4040 BAR1=true
4041 V=1
4042 am__doit:
4043 @$(TRUE)
4044 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4045 am_cv_make_support_nested_variables=yes
4046 else
4047 am_cv_make_support_nested_variables=no
4048 fi
4049 fi
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4051 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4052 if test $am_cv_make_support_nested_variables = yes; then
4053 AM_V='$(V)'
4054 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4055 else
4056 AM_V=$AM_DEFAULT_VERBOSITY
4057 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4058 fi
4059 AM_BACKSLASH='\'
4060
4061 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4062 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4063 # is not polluted with repeated "-I."
4064 am__isrc=' -I$(srcdir)'
4065 # test to see if srcdir already configured
4066 if test -f $srcdir/config.status; then
4067 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4068 fi
4069 fi
4070
4071 # test whether we have cygpath
4072 if test -z "$CYGPATH_W"; then
4073 if (cygpath --version) >/dev/null 2>/dev/null; then
4074 CYGPATH_W='cygpath -w'
4075 else
4076 CYGPATH_W=echo
4077 fi
4078 fi
4079
4080
4081 # Define the identity of the package.
4082 PACKAGE='xwininfo'
4083 VERSION='1.1.3'
4084
4085
4086 cat >>confdefs.h <<_ACEOF
4087 #define PACKAGE "$PACKAGE"
4088 _ACEOF
4089
4090
4091 cat >>confdefs.h <<_ACEOF
4092 #define VERSION "$VERSION"
4093 _ACEOF
4094
4095 # Some tools Automake needs.
4096
4097 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4098
4099
4100 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4101
4102
4103 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4104
4105
4106 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4107
4108
4109 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4110
4111 # For better backward compatibility. To be removed once Automake 1.9.x
4112 # dies out for good. For more background, see:
4113 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4114 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4115 mkdir_p='$(MKDIR_P)'
4116
4117 # We need awk for the "check" target. The system "awk" is bad on
4118 # some platforms.
4119 # Always define AMTAR for backward compatibility. Yes, it's still used
4120 # in the wild :-( We should find a proper way to deprecate it ...
4121 AMTAR='$${TAR-tar}'
4122
4123
4124 # We'll loop over all known methods to create a tar archive until one works.
4125 _am_tools='gnutar pax cpio none'
4126
4127 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4128
4129
4130
4131
4132
4133 depcc="$CC" am_compiler_list=
4134
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4136 $as_echo_n "checking dependency style of $depcc... " >&6; }
4137 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4138 $as_echo_n "(cached) " >&6
4139 else
4140 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4141 # We make a subdir and do the tests there. Otherwise we can end up
4142 # making bogus files that we don't know about and never remove. For
4143 # instance it was reported that on HP-UX the gcc test will end up
4144 # making a dummy file named 'D' -- because '-MD' means "put the output
4145 # in D".
4146 rm -rf conftest.dir
4147 mkdir conftest.dir
4148 # Copy depcomp to subdir because otherwise we won't find it if we're
4149 # using a relative directory.
4150 cp "$am_depcomp" conftest.dir
4151 cd conftest.dir
4152 # We will build objects and dependencies in a subdirectory because
4153 # it helps to detect inapplicable dependency modes. For instance
4154 # both Tru64's cc and ICC support -MD to output dependencies as a
4155 # side effect of compilation, but ICC will put the dependencies in
4156 # the current directory while Tru64 will put them in the object
4157 # directory.
4158 mkdir sub
4159
4160 am_cv_CC_dependencies_compiler_type=none
4161 if test "$am_compiler_list" = ""; then
4162 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4163 fi
4164 am__universal=false
4165 case " $depcc " in #(
4166 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4167 esac
4168
4169 for depmode in $am_compiler_list; do
4170 # Setup a source with many dependencies, because some compilers
4171 # like to wrap large dependency lists on column 80 (with \), and
4172 # we should not choose a depcomp mode which is confused by this.
4173 #
4174 # We need to recreate these files for each test, as the compiler may
4175 # overwrite some of them when testing with obscure command lines.
4176 # This happens at least with the AIX C compiler.
4177 : > sub/conftest.c
4178 for i in 1 2 3 4 5 6; do
4179 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4180 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4181 # Solaris 10 /bin/sh.
4182 echo '/* dummy */' > sub/conftst$i.h
4183 done
4184 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4185
4186 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4187 # mode. It turns out that the SunPro C++ compiler does not properly
4188 # handle '-M -o', and we need to detect this. Also, some Intel
4189 # versions had trouble with output in subdirs.
4190 am__obj=sub/conftest.${OBJEXT-o}
4191 am__minus_obj="-o $am__obj"
4192 case $depmode in
4193 gcc)
4194 # This depmode causes a compiler race in universal mode.
4195 test "$am__universal" = false || continue
4196 ;;
4197 nosideeffect)
4198 # After this tag, mechanisms are not by side-effect, so they'll
4199 # only be used when explicitly requested.
4200 if test "x$enable_dependency_tracking" = xyes; then
4201 continue
4202 else
4203 break
4204 fi
4205 ;;
4206 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4207 # This compiler won't grok '-c -o', but also, the minuso test has
4208 # not run yet. These depmodes are late enough in the game, and
4209 # so weak that their functioning should not be impacted.
4210 am__obj=conftest.${OBJEXT-o}
4211 am__minus_obj=
4212 ;;
4213 none) break ;;
4214 esac
4215 if depmode=$depmode \
4216 source=sub/conftest.c object=$am__obj \
4217 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4218 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4219 >/dev/null 2>conftest.err &&
4220 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4221 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4222 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4223 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4224 # icc doesn't choke on unknown options, it will just issue warnings
4225 # or remarks (even with -Werror). So we grep stderr for any message
4226 # that says an option was ignored or not supported.
4227 # When given -MP, icc 7.0 and 7.1 complain thusly:
4228 # icc: Command line warning: ignoring option '-M'; no argument required
4229 # The diagnosis changed in icc 8.0:
4230 # icc: Command line remark: option '-MP' not supported
4231 if (grep 'ignoring option' conftest.err ||
4232 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4233 am_cv_CC_dependencies_compiler_type=$depmode
4234 break
4235 fi
4236 fi
4237 done
4238
4239 cd ..
4240 rm -rf conftest.dir
4241 else
4242 am_cv_CC_dependencies_compiler_type=none
4243 fi
4244
4245 fi
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4247 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4248 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4249
4250 if
4251 test "x$enable_dependency_tracking" != xno \
4252 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4253 am__fastdepCC_TRUE=
4254 am__fastdepCC_FALSE='#'
4255 else
4256 am__fastdepCC_TRUE='#'
4257 am__fastdepCC_FALSE=
4258 fi
4259
4260
4261
4262
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4264 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4265 # Check whether --enable-maintainer-mode was given.
4266 if test "${enable_maintainer_mode+set}" = set; then :
4267 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4268 else
4269 USE_MAINTAINER_MODE=no
4270 fi
4271
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4273 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4274 if test $USE_MAINTAINER_MODE = yes; then
4275 MAINTAINER_MODE_TRUE=
4276 MAINTAINER_MODE_FALSE='#'
4277 else
4278 MAINTAINER_MODE_TRUE='#'
4279 MAINTAINER_MODE_FALSE=
4280 fi
4281
4282 MAINT=$MAINTAINER_MODE_TRUE
4283
4284
4285
4286 if test "X$prefix" = "XNONE"; then
4287 acl_final_prefix="$ac_default_prefix"
4288 else
4289 acl_final_prefix="$prefix"
4290 fi
4291 if test "X$exec_prefix" = "XNONE"; then
4292 acl_final_exec_prefix='${prefix}'
4293 else
4294 acl_final_exec_prefix="$exec_prefix"
4295 fi
4296 acl_save_prefix="$prefix"
4297 prefix="$acl_final_prefix"
4298 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4299 prefix="$acl_save_prefix"
4300
4301 # Make sure we can run config.sub.
4302 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4303 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4304
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4306 $as_echo_n "checking build system type... " >&6; }
4307 if ${ac_cv_build+:} false; then :
4308 $as_echo_n "(cached) " >&6
4309 else
4310 ac_build_alias=$build_alias
4311 test "x$ac_build_alias" = x &&
4312 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4313 test "x$ac_build_alias" = x &&
4314 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4315 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4316 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4317
4318 fi
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4320 $as_echo "$ac_cv_build" >&6; }
4321 case $ac_cv_build in
4322 *-*-*) ;;
4323 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4324 esac
4325 build=$ac_cv_build
4326 ac_save_IFS=$IFS; IFS='-'
4327 set x $ac_cv_build
4328 shift
4329 build_cpu=$1
4330 build_vendor=$2
4331 shift; shift
4332 # Remember, the first character of IFS is used to create $*,
4333 # except with old shells:
4334 build_os=$*
4335 IFS=$ac_save_IFS
4336 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4337
4338
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4340 $as_echo_n "checking host system type... " >&6; }
4341 if ${ac_cv_host+:} false; then :
4342 $as_echo_n "(cached) " >&6
4343 else
4344 if test "x$host_alias" = x; then
4345 ac_cv_host=$ac_cv_build
4346 else
4347 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4348 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4349 fi
4350
4351 fi
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4353 $as_echo "$ac_cv_host" >&6; }
4354 case $ac_cv_host in
4355 *-*-*) ;;
4356 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4357 esac
4358 host=$ac_cv_host
4359 ac_save_IFS=$IFS; IFS='-'
4360 set x $ac_cv_host
4361 shift
4362 host_cpu=$1
4363 host_vendor=$2
4364 shift; shift
4365 # Remember, the first character of IFS is used to create $*,
4366 # except with old shells:
4367 host_os=$*
4368 IFS=$ac_save_IFS
4369 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4370
4371
4372
4373 # Check whether --with-gnu-ld was given.
4374 if test "${with_gnu_ld+set}" = set; then :
4375 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4376 else
4377 with_gnu_ld=no
4378 fi
4379
4380 # Prepare PATH_SEPARATOR.
4381 # The user is always right.
4382 if test "${PATH_SEPARATOR+set}" != set; then
4383 echo "#! /bin/sh" >conf$$.sh
4384 echo "exit 0" >>conf$$.sh
4385 chmod +x conf$$.sh
4386 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4387 PATH_SEPARATOR=';'
4388 else
4389 PATH_SEPARATOR=:
4390 fi
4391 rm -f conf$$.sh
4392 fi
4393 ac_prog=ld
4394 if test "$GCC" = yes; then
4395 # Check if gcc -print-prog-name=ld gives a path.
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4397 $as_echo_n "checking for ld used by GCC... " >&6; }
4398 case $host in
4399 *-*-mingw*)
4400 # gcc leaves a trailing carriage return which upsets mingw
4401 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4402 *)
4403 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4404 esac
4405 case $ac_prog in
4406 # Accept absolute paths.
4407 [\\/]* | [A-Za-z]:[\\/]*)
4408 re_direlt='/[^/][^/]*/\.\./'
4409 # Canonicalize the path of ld
4410 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4411 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4412 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4413 done
4414 test -z "$LD" && LD="$ac_prog"
4415 ;;
4416 "")
4417 # If it fails, then pretend we aren't using GCC.
4418 ac_prog=ld
4419 ;;
4420 *)
4421 # If it is relative, then search for the first ld in PATH.
4422 with_gnu_ld=unknown
4423 ;;
4424 esac
4425 elif test "$with_gnu_ld" = yes; then
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4427 $as_echo_n "checking for GNU ld... " >&6; }
4428 else
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4430 $as_echo_n "checking for non-GNU ld... " >&6; }
4431 fi
4432 if ${acl_cv_path_LD+:} false; then :
4433 $as_echo_n "(cached) " >&6
4434 else
4435 if test -z "$LD"; then
4436 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4437 for ac_dir in $PATH; do
4438 test -z "$ac_dir" && ac_dir=.
4439 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4440 acl_cv_path_LD="$ac_dir/$ac_prog"
4441 # Check to see if the program is GNU ld. I'd rather use --version,
4442 # but apparently some GNU ld's only accept -v.
4443 # Break only if it was the GNU/non-GNU ld that we prefer.
4444 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4445 *GNU* | *'with BFD'*)
4446 test "$with_gnu_ld" != no && break ;;
4447 *)
4448 test "$with_gnu_ld" != yes && break ;;
4449 esac
4450 fi
4451 done
4452 IFS="$ac_save_ifs"
4453 else
4454 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4455 fi
4456 fi
4457
4458 LD="$acl_cv_path_LD"
4459 if test -n "$LD"; then
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4461 $as_echo "$LD" >&6; }
4462 else
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4464 $as_echo "no" >&6; }
4465 fi
4466 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4468 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4469 if ${acl_cv_prog_gnu_ld+:} false; then :
4470 $as_echo_n "(cached) " >&6
4471 else
4472 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4473 case `$LD -v 2>&1 </dev/null` in
4474 *GNU* | *'with BFD'*)
4475 acl_cv_prog_gnu_ld=yes ;;
4476 *)
4477 acl_cv_prog_gnu_ld=no ;;
4478 esac
4479 fi
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4481 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4482 with_gnu_ld=$acl_cv_prog_gnu_ld
4483
4484
4485
4486
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4488 $as_echo_n "checking for shared library run path origin... " >&6; }
4489 if ${acl_cv_rpath+:} false; then :
4490 $as_echo_n "(cached) " >&6
4491 else
4492
4493 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4494 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4495 . ./conftest.sh
4496 rm -f ./conftest.sh
4497 acl_cv_rpath=done
4498
4499 fi
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4501 $as_echo "$acl_cv_rpath" >&6; }
4502 wl="$acl_cv_wl"
4503 libext="$acl_cv_libext"
4504 shlibext="$acl_cv_shlibext"
4505 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4506 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4507 hardcode_direct="$acl_cv_hardcode_direct"
4508 hardcode_minus_L="$acl_cv_hardcode_minus_L"
4509 # Check whether --enable-rpath was given.
4510 if test "${enable_rpath+set}" = set; then :
4511 enableval=$enable_rpath; :
4512 else
4513 enable_rpath=yes
4514 fi
4515
4516
4517
4518 acl_libdirstem=lib
4519 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
4520 if test -n "$searchpath"; then
4521 acl_save_IFS="${IFS= }"; IFS=":"
4522 for searchdir in $searchpath; do
4523 if test -d "$searchdir"; then
4524 case "$searchdir" in
4525 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
4526 *) searchdir=`cd "$searchdir" && pwd`
4527 case "$searchdir" in
4528 */lib64 ) acl_libdirstem=lib64 ;;
4529 esac ;;
4530 esac
4531 fi
4532 done
4533 IFS="$acl_save_IFS"
4534 fi
4535
4536
4537
4538
4539
4540
4541
4542
4543 use_additional=yes
4544
4545 acl_save_prefix="$prefix"
4546 prefix="$acl_final_prefix"
4547 acl_save_exec_prefix="$exec_prefix"
4548 exec_prefix="$acl_final_exec_prefix"
4549
4550 eval additional_includedir=\"$includedir\"
4551 eval additional_libdir=\"$libdir\"
4552
4553 exec_prefix="$acl_save_exec_prefix"
4554 prefix="$acl_save_prefix"
4555
4556
4557 # Check whether --with-libiconv-prefix was given.
4558 if test "${with_libiconv_prefix+set}" = set; then :
4559 withval=$with_libiconv_prefix;
4560 if test "X$withval" = "Xno"; then
4561 use_additional=no
4562 else
4563 if test "X$withval" = "X"; then
4564
4565 acl_save_prefix="$prefix"
4566 prefix="$acl_final_prefix"
4567 acl_save_exec_prefix="$exec_prefix"
4568 exec_prefix="$acl_final_exec_prefix"
4569
4570 eval additional_includedir=\"$includedir\"
4571 eval additional_libdir=\"$libdir\"
4572
4573 exec_prefix="$acl_save_exec_prefix"
4574 prefix="$acl_save_prefix"
4575
4576 else
4577 additional_includedir="$withval/include"
4578 additional_libdir="$withval/$acl_libdirstem"
4579 fi
4580 fi
4581
4582 fi
4583
4584 LIBICONV=
4585 LTLIBICONV=
4586 INCICONV=
4587 rpathdirs=
4588 ltrpathdirs=
4589 names_already_handled=
4590 names_next_round='iconv '
4591 while test -n "$names_next_round"; do
4592 names_this_round="$names_next_round"
4593 names_next_round=
4594 for name in $names_this_round; do
4595 already_handled=
4596 for n in $names_already_handled; do
4597 if test "$n" = "$name"; then
4598 already_handled=yes
4599 break
4600 fi
4601 done
4602 if test -z "$already_handled"; then
4603 names_already_handled="$names_already_handled $name"
4604 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4605 eval value=\"\$HAVE_LIB$uppername\"
4606 if test -n "$value"; then
4607 if test "$value" = yes; then
4608 eval value=\"\$LIB$uppername\"
4609 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4610 eval value=\"\$LTLIB$uppername\"
4611 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4612 else
4613 :
4614 fi
4615 else
4616 found_dir=
4617 found_la=
4618 found_so=
4619 found_a=
4620 if test $use_additional = yes; then
4621 if test -n "$shlibext" \
4622 && { test -f "$additional_libdir/lib$name.$shlibext" \
4623 || { test "$shlibext" = dll \
4624 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
4625 found_dir="$additional_libdir"
4626 if test -f "$additional_libdir/lib$name.$shlibext"; then
4627 found_so="$additional_libdir/lib$name.$shlibext"
4628 else
4629 found_so="$additional_libdir/lib$name.dll.a"
4630 fi
4631 if test -f "$additional_libdir/lib$name.la"; then
4632 found_la="$additional_libdir/lib$name.la"
4633 fi
4634 else
4635 if test -f "$additional_libdir/lib$name.$libext"; then
4636 found_dir="$additional_libdir"
4637 found_a="$additional_libdir/lib$name.$libext"
4638 if test -f "$additional_libdir/lib$name.la"; then
4639 found_la="$additional_libdir/lib$name.la"
4640 fi
4641 fi
4642 fi
4643 fi
4644 if test "X$found_dir" = "X"; then
4645 for x in $LDFLAGS $LTLIBICONV; do
4646
4647 acl_save_prefix="$prefix"
4648 prefix="$acl_final_prefix"
4649 acl_save_exec_prefix="$exec_prefix"
4650 exec_prefix="$acl_final_exec_prefix"
4651 eval x=\"$x\"
4652 exec_prefix="$acl_save_exec_prefix"
4653 prefix="$acl_save_prefix"
4654
4655 case "$x" in
4656 -L*)
4657 dir=`echo "X$x" | sed -e 's/^X-L//'`
4658 if test -n "$shlibext" \
4659 && { test -f "$dir/lib$name.$shlibext" \
4660 || { test "$shlibext" = dll \
4661 && test -f "$dir/lib$name.dll.a"; }; }; then
4662 found_dir="$dir"
4663 if test -f "$dir/lib$name.$shlibext"; then
4664 found_so="$dir/lib$name.$shlibext"
4665 else
4666 found_so="$dir/lib$name.dll.a"
4667 fi
4668 if test -f "$dir/lib$name.la"; then
4669 found_la="$dir/lib$name.la"
4670 fi
4671 else
4672 if test -f "$dir/lib$name.$libext"; then
4673 found_dir="$dir"
4674 found_a="$dir/lib$name.$libext"
4675 if test -f "$dir/lib$name.la"; then
4676 found_la="$dir/lib$name.la"
4677 fi
4678 fi
4679 fi
4680 ;;
4681 esac
4682 if test "X$found_dir" != "X"; then
4683 break
4684 fi
4685 done
4686 fi
4687 if test "X$found_dir" != "X"; then
4688 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4689 if test "X$found_so" != "X"; then
4690 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
4691 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4692 else
4693 haveit=
4694 for x in $ltrpathdirs; do
4695 if test "X$x" = "X$found_dir"; then
4696 haveit=yes
4697 break
4698 fi
4699 done
4700 if test -z "$haveit"; then
4701 ltrpathdirs="$ltrpathdirs $found_dir"
4702 fi
4703 if test "$hardcode_direct" = yes; then
4704 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4705 else
4706 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4707 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4708 haveit=
4709 for x in $rpathdirs; do
4710 if test "X$x" = "X$found_dir"; then
4711 haveit=yes
4712 break
4713 fi
4714 done
4715 if test -z "$haveit"; then
4716 rpathdirs="$rpathdirs $found_dir"
4717 fi
4718 else
4719 haveit=
4720 for x in $LDFLAGS $LIBICONV; do
4721
4722 acl_save_prefix="$prefix"
4723 prefix="$acl_final_prefix"
4724 acl_save_exec_prefix="$exec_prefix"
4725 exec_prefix="$acl_final_exec_prefix"
4726 eval x=\"$x\"
4727 exec_prefix="$acl_save_exec_prefix"
4728 prefix="$acl_save_prefix"
4729
4730 if test "X$x" = "X-L$found_dir"; then
4731 haveit=yes
4732 break
4733 fi
4734 done
4735 if test -z "$haveit"; then
4736 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4737 fi
4738 if test "$hardcode_minus_L" != no; then
4739 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4740 else
4741 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4742 fi
4743 fi
4744 fi
4745 fi
4746 else
4747 if test "X$found_a" != "X"; then
4748 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4749 else
4750 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4751 fi
4752 fi
4753 additional_includedir=
4754 case "$found_dir" in
4755 */$acl_libdirstem | */$acl_libdirstem/)
4756 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
4757 additional_includedir="$basedir/include"
4758 ;;
4759 esac
4760 if test "X$additional_includedir" != "X"; then
4761 if test "X$additional_includedir" != "X/usr/include"; then
4762 haveit=
4763 if test "X$additional_includedir" = "X/usr/local/include"; then
4764 if test -n "$GCC"; then
4765 case $host_os in
4766 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4767 esac
4768 fi
4769 fi
4770 if test -z "$haveit"; then
4771 for x in $CPPFLAGS $INCICONV; do
4772
4773 acl_save_prefix="$prefix"
4774 prefix="$acl_final_prefix"
4775 acl_save_exec_prefix="$exec_prefix"
4776 exec_prefix="$acl_final_exec_prefix"
4777 eval x=\"$x\"
4778 exec_prefix="$acl_save_exec_prefix"
4779 prefix="$acl_save_prefix"
4780
4781 if test "X$x" = "X-I$additional_includedir"; then
4782 haveit=yes
4783 break
4784 fi
4785 done
4786 if test -z "$haveit"; then
4787 if test -d "$additional_includedir"; then
4788 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4789 fi
4790 fi
4791 fi
4792 fi
4793 fi
4794 if test -n "$found_la"; then
4795 save_libdir="$libdir"
4796 case "$found_la" in
4797 */* | *\\*) . "$found_la" ;;
4798 *) . "./$found_la" ;;
4799 esac
4800 libdir="$save_libdir"
4801 for dep in $dependency_libs; do
4802 case "$dep" in
4803 -L*)
4804 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4805 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
4806 haveit=
4807 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
4808 if test -n "$GCC"; then
4809 case $host_os in
4810 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4811 esac
4812 fi
4813 fi
4814 if test -z "$haveit"; then
4815 haveit=
4816 for x in $LDFLAGS $LIBICONV; do
4817
4818 acl_save_prefix="$prefix"
4819 prefix="$acl_final_prefix"
4820 acl_save_exec_prefix="$exec_prefix"
4821 exec_prefix="$acl_final_exec_prefix"
4822 eval x=\"$x\"
4823 exec_prefix="$acl_save_exec_prefix"
4824 prefix="$acl_save_prefix"
4825
4826 if test "X$x" = "X-L$additional_libdir"; then
4827 haveit=yes
4828 break
4829 fi
4830 done
4831 if test -z "$haveit"; then
4832 if test -d "$additional_libdir"; then
4833 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4834 fi
4835 fi
4836 haveit=
4837 for x in $LDFLAGS $LTLIBICONV; do
4838
4839 acl_save_prefix="$prefix"
4840 prefix="$acl_final_prefix"
4841 acl_save_exec_prefix="$exec_prefix"
4842 exec_prefix="$acl_final_exec_prefix"
4843 eval x=\"$x\"
4844 exec_prefix="$acl_save_exec_prefix"
4845 prefix="$acl_save_prefix"
4846
4847 if test "X$x" = "X-L$additional_libdir"; then
4848 haveit=yes
4849 break
4850 fi
4851 done
4852 if test -z "$haveit"; then
4853 if test -d "$additional_libdir"; then
4854 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4855 fi
4856 fi
4857 fi
4858 fi
4859 ;;
4860 -R*)
4861 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4862 if test "$enable_rpath" != no; then
4863 haveit=
4864 for x in $rpathdirs; do
4865 if test "X$x" = "X$dir"; then
4866 haveit=yes
4867 break
4868 fi
4869 done
4870 if test -z "$haveit"; then
4871 rpathdirs="$rpathdirs $dir"
4872 fi
4873 haveit=
4874 for x in $ltrpathdirs; do
4875 if test "X$x" = "X$dir"; then
4876 haveit=yes
4877 break
4878 fi
4879 done
4880 if test -z "$haveit"; then
4881 ltrpathdirs="$ltrpathdirs $dir"
4882 fi
4883 fi
4884 ;;
4885 -l*)
4886 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4887 ;;
4888 *.la)
4889 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4890 ;;
4891 *)
4892 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4893 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4894 ;;
4895 esac
4896 done
4897 fi
4898 else
4899 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4900 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4901 fi
4902 fi
4903 fi
4904 done
4905 done
4906 if test "X$rpathdirs" != "X"; then
4907 if test -n "$hardcode_libdir_separator"; then
4908 alldirs=
4909 for found_dir in $rpathdirs; do
4910 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4911 done
4912 acl_save_libdir="$libdir"
4913 libdir="$alldirs"
4914 eval flag=\"$hardcode_libdir_flag_spec\"
4915 libdir="$acl_save_libdir"
4916 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4917 else
4918 for found_dir in $rpathdirs; do
4919 acl_save_libdir="$libdir"
4920 libdir="$found_dir"
4921 eval flag=\"$hardcode_libdir_flag_spec\"
4922 libdir="$acl_save_libdir"
4923 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4924 done
4925 fi
4926 fi
4927 if test "X$ltrpathdirs" != "X"; then
4928 for found_dir in $ltrpathdirs; do
4929 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4930 done
4931 fi
4932
4933
4934
4935
4936
4937
4938
4939 am_save_CPPFLAGS="$CPPFLAGS"
4940
4941 for element in $INCICONV; do
4942 haveit=
4943 for x in $CPPFLAGS; do
4944
4945 acl_save_prefix="$prefix"
4946 prefix="$acl_final_prefix"
4947 acl_save_exec_prefix="$exec_prefix"
4948 exec_prefix="$acl_final_exec_prefix"
4949 eval x=\"$x\"
4950 exec_prefix="$acl_save_exec_prefix"
4951 prefix="$acl_save_prefix"
4952
4953 if test "X$x" = "X$element"; then
4954 haveit=yes
4955 break
4956 fi
4957 done
4958 if test -z "$haveit"; then
4959 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4960 fi
4961 done
4962
4963
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
4965 $as_echo_n "checking for iconv... " >&6; }
4966 if ${am_cv_func_iconv+:} false; then :
4967 $as_echo_n "(cached) " >&6
4968 else
4969
4970 am_cv_func_iconv="no, consider installing GNU libiconv"
4971 am_cv_lib_iconv=no
4972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4973 /* end confdefs.h. */
4974 #include <stdlib.h>
4975 #include <iconv.h>
4976 int
4977 main ()
4978 {
4979 iconv_t cd = iconv_open("","");
4980 iconv(cd,NULL,NULL,NULL,NULL);
4981 iconv_close(cd);
4982 ;
4983 return 0;
4984 }
4985 _ACEOF
4986 if ac_fn_c_try_link "$LINENO"; then :
4987 am_cv_func_iconv=yes
4988 fi
4989 rm -f core conftest.err conftest.$ac_objext \
4990 conftest$ac_exeext conftest.$ac_ext
4991 if test "$am_cv_func_iconv" != yes; then
4992 am_save_LIBS="$LIBS"
4993 LIBS="$LIBS $LIBICONV"
4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4996 #include <stdlib.h>
4997 #include <iconv.h>
4998 int
4999 main ()
5000 {
5001 iconv_t cd = iconv_open("","");
5002 iconv(cd,NULL,NULL,NULL,NULL);
5003 iconv_close(cd);
5004 ;
5005 return 0;
5006 }
5007 _ACEOF
5008 if ac_fn_c_try_link "$LINENO"; then :
5009 am_cv_lib_iconv=yes
5010 am_cv_func_iconv=yes
5011 fi
5012 rm -f core conftest.err conftest.$ac_objext \
5013 conftest$ac_exeext conftest.$ac_ext
5014 LIBS="$am_save_LIBS"
5015 fi
5016
5017 fi
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5019 $as_echo "$am_cv_func_iconv" >&6; }
5020 if test "$am_cv_func_iconv" = yes; then
5021
5022 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5023
5024 fi
5025 if test "$am_cv_lib_iconv" = yes; then
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5027 $as_echo_n "checking how to link with libiconv... " >&6; }
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5029 $as_echo "$LIBICONV" >&6; }
5030 else
5031 CPPFLAGS="$am_save_CPPFLAGS"
5032 LIBICONV=
5033 LTLIBICONV=
5034 fi
5035
5036
5037
5038 if test "$am_cv_func_iconv" = yes; then
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
5040 $as_echo_n "checking for iconv declaration... " >&6; }
5041 if ${am_cv_proto_iconv+:} false; then :
5042 $as_echo_n "(cached) " >&6
5043 else
5044
5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h. */
5047
5048 #include <stdlib.h>
5049 #include <iconv.h>
5050 extern
5051 #ifdef __cplusplus
5052 "C"
5053 #endif
5054 #if defined(__STDC__) || defined(__cplusplus)
5055 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5056 #else
5057 size_t iconv();
5058 #endif
5059
5060 int
5061 main ()
5062 {
5063
5064 ;
5065 return 0;
5066 }
5067 _ACEOF
5068 if ac_fn_c_try_compile "$LINENO"; then :
5069 am_cv_proto_iconv_arg1=""
5070 else
5071 am_cv_proto_iconv_arg1="const"
5072 fi
5073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5074 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
5075 fi
5076
5077 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
5079 }$am_cv_proto_iconv" >&5
5080 $as_echo "${ac_t:-
5081 }$am_cv_proto_iconv" >&6; }
5082
5083 cat >>confdefs.h <<_ACEOF
5084 #define ICONV_CONST $am_cv_proto_iconv_arg1
5085 _ACEOF
5086
5087 fi
5088
5089
5090 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5103 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5104 if ${ac_cv_prog_cc_c99+:} false; then :
5105 $as_echo_n "(cached) " >&6
5106 else
5107 ac_cv_prog_cc_c99=no
5108 ac_save_CC=$CC
5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5111 #include <stdarg.h>
5112 #include <stdbool.h>
5113 #include <stdlib.h>
5114 #include <wchar.h>
5115 #include <stdio.h>
5116
5117 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5118 #define debug(...) fprintf (stderr, __VA_ARGS__)
5119 #define showlist(...) puts (#__VA_ARGS__)
5120 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5121 static void
5122 test_varargs_macros (void)
5123 {
5124 int x = 1234;
5125 int y = 5678;
5126 debug ("Flag");
5127 debug ("X = %d\n", x);
5128 showlist (The first, second, and third items.);
5129 report (x>y, "x is %d but y is %d", x, y);
5130 }
5131
5132 // Check long long types.
5133 #define BIG64 18446744073709551615ull
5134 #define BIG32 4294967295ul
5135 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5136 #if !BIG_OK
5137 your preprocessor is broken;
5138 #endif
5139 #if BIG_OK
5140 #else
5141 your preprocessor is broken;
5142 #endif
5143 static long long int bignum = -9223372036854775807LL;
5144 static unsigned long long int ubignum = BIG64;
5145
5146 struct incomplete_array
5147 {
5148 int datasize;
5149 double data[];
5150 };
5151
5152 struct named_init {
5153 int number;
5154 const wchar_t *name;
5155 double average;
5156 };
5157
5158 typedef const char *ccp;
5159
5160 static inline int
5161 test_restrict (ccp restrict text)
5162 {
5163 // See if C++-style comments work.
5164 // Iterate through items via the restricted pointer.
5165 // Also check for declarations in for loops.
5166 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5167 continue;
5168 return 0;
5169 }
5170
5171 // Check varargs and va_copy.
5172 static void
5173 test_varargs (const char *format, ...)
5174 {
5175 va_list args;
5176 va_start (args, format);
5177 va_list args_copy;
5178 va_copy (args_copy, args);
5179
5180 const char *str;
5181 int number;
5182 float fnumber;
5183
5184 while (*format)
5185 {
5186 switch (*format++)
5187 {
5188 case 's': // string
5189 str = va_arg (args_copy, const char *);
5190 break;
5191 case 'd': // int
5192 number = va_arg (args_copy, int);
5193 break;
5194 case 'f': // float
5195 fnumber = va_arg (args_copy, double);
5196 break;
5197 default:
5198 break;
5199 }
5200 }
5201 va_end (args_copy);
5202 va_end (args);
5203 }
5204
5205 int
5206 main ()
5207 {
5208
5209 // Check bool.
5210 _Bool success = false;
5211
5212 // Check restrict.
5213 if (test_restrict ("String literal") == 0)
5214 success = true;
5215 char *restrict newvar = "Another string";
5216
5217 // Check varargs.
5218 test_varargs ("s, d' f .", "string", 65, 34.234);
5219 test_varargs_macros ();
5220
5221 // Check flexible array members.
5222 struct incomplete_array *ia =
5223 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5224 ia->datasize = 10;
5225 for (int i = 0; i < ia->datasize; ++i)
5226 ia->data[i] = i * 1.234;
5227
5228 // Check named initializers.
5229 struct named_init ni = {
5230 .number = 34,
5231 .name = L"Test wide string",
5232 .average = 543.34343,
5233 };
5234
5235 ni.number = 58;
5236
5237 int dynamic_array[ni.number];
5238 dynamic_array[ni.number - 1] = 543;
5239
5240 // work around unused variable warnings
5241 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5242 || dynamic_array[ni.number - 1] != 543);
5243
5244 ;
5245 return 0;
5246 }
5247 _ACEOF
5248 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5249 do
5250 CC="$ac_save_CC $ac_arg"
5251 if ac_fn_c_try_compile "$LINENO"; then :
5252 ac_cv_prog_cc_c99=$ac_arg
5253 fi
5254 rm -f core conftest.err conftest.$ac_objext
5255 test "x$ac_cv_prog_cc_c99" != "xno" && break
5256 done
5257 rm -f conftest.$ac_ext
5258 CC=$ac_save_CC
5259
5260 fi
5261 # AC_CACHE_VAL
5262 case "x$ac_cv_prog_cc_c99" in
5263 x)
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5265 $as_echo "none needed" >&6; } ;;
5266 xno)
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5268 $as_echo "unsupported" >&6; } ;;
5269 *)
5270 CC="$CC $ac_cv_prog_cc_c99"
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5272 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5273 esac
5274 if test "x$ac_cv_prog_cc_c99" != xno; then :
5275
5276 fi
5277
5278
5279
5280
5281
5282
5283 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
5284 if test "x$ac_cv_have_decl___clang__" = xyes; then :
5285 CLANGCC="yes"
5286 else
5287 CLANGCC="no"
5288 fi
5289
5290 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
5291 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
5292 INTELCC="yes"
5293 else
5294 INTELCC="no"
5295 fi
5296
5297 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
5298 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
5299 SUNCC="yes"
5300 else
5301 SUNCC="no"
5302 fi
5303
5304
5305
5306
5307 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5308 if test -n "$ac_tool_prefix"; then
5309 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5310 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5312 $as_echo_n "checking for $ac_word... " >&6; }
5313 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5314 $as_echo_n "(cached) " >&6
5315 else
5316 case $PKG_CONFIG in
5317 [\\/]* | ?:[\\/]*)
5318 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5319 ;;
5320 *)
5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 for as_dir in $PATH
5323 do
5324 IFS=$as_save_IFS
5325 test -z "$as_dir" && as_dir=.
5326 for ac_exec_ext in '' $ac_executable_extensions; do
5327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5328 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5330 break 2
5331 fi
5332 done
5333 done
5334 IFS=$as_save_IFS
5335
5336 ;;
5337 esac
5338 fi
5339 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5340 if test -n "$PKG_CONFIG"; then
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5342 $as_echo "$PKG_CONFIG" >&6; }
5343 else
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345 $as_echo "no" >&6; }
5346 fi
5347
5348
5349 fi
5350 if test -z "$ac_cv_path_PKG_CONFIG"; then
5351 ac_pt_PKG_CONFIG=$PKG_CONFIG
5352 # Extract the first word of "pkg-config", so it can be a program name with args.
5353 set dummy pkg-config; ac_word=$2
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5355 $as_echo_n "checking for $ac_word... " >&6; }
5356 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5357 $as_echo_n "(cached) " >&6
5358 else
5359 case $ac_pt_PKG_CONFIG in
5360 [\\/]* | ?:[\\/]*)
5361 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5362 ;;
5363 *)
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 for as_dir in $PATH
5366 do
5367 IFS=$as_save_IFS
5368 test -z "$as_dir" && as_dir=.
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5371 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 break 2
5374 fi
5375 done
5376 done
5377 IFS=$as_save_IFS
5378
5379 ;;
5380 esac
5381 fi
5382 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5383 if test -n "$ac_pt_PKG_CONFIG"; then
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5385 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5386 else
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388 $as_echo "no" >&6; }
5389 fi
5390
5391 if test "x$ac_pt_PKG_CONFIG" = x; then
5392 PKG_CONFIG=""
5393 else
5394 case $cross_compiling:$ac_tool_warned in
5395 yes:)
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5398 ac_tool_warned=yes ;;
5399 esac
5400 PKG_CONFIG=$ac_pt_PKG_CONFIG
5401 fi
5402 else
5403 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5404 fi
5405
5406 fi
5407 if test -n "$PKG_CONFIG"; then
5408 _pkg_min_version=0.9.0
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5410 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5411 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5413 $as_echo "yes" >&6; }
5414 else
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5417 PKG_CONFIG=""
5418 fi
5419
5420 fi
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5422 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5423 if ${ac_cv_path_SED+:} false; then :
5424 $as_echo_n "(cached) " >&6
5425 else
5426 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5427 for ac_i in 1 2 3 4 5 6 7; do
5428 ac_script="$ac_script$as_nl$ac_script"
5429 done
5430 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5431 { ac_script=; unset ac_script;}
5432 if test -z "$SED"; then
5433 ac_path_SED_found=false
5434 # Loop through the user's path and test for each of PROGNAME-LIST
5435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436 for as_dir in $PATH
5437 do
5438 IFS=$as_save_IFS
5439 test -z "$as_dir" && as_dir=.
5440 for ac_prog in sed gsed; do
5441 for ac_exec_ext in '' $ac_executable_extensions; do
5442 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5443 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5444 # Check for GNU ac_path_SED and select it if it is found.
5445 # Check for GNU $ac_path_SED
5446 case `"$ac_path_SED" --version 2>&1` in
5447 *GNU*)
5448 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5449 *)
5450 ac_count=0
5451 $as_echo_n 0123456789 >"conftest.in"
5452 while :
5453 do
5454 cat "conftest.in" "conftest.in" >"conftest.tmp"
5455 mv "conftest.tmp" "conftest.in"
5456 cp "conftest.in" "conftest.nl"
5457 $as_echo '' >> "conftest.nl"
5458 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5459 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5460 as_fn_arith $ac_count + 1 && ac_count=$as_val
5461 if test $ac_count -gt ${ac_path_SED_max-0}; then
5462 # Best one so far, save it but keep looking for a better one
5463 ac_cv_path_SED="$ac_path_SED"
5464 ac_path_SED_max=$ac_count
5465 fi
5466 # 10*(2^10) chars as input seems more than enough
5467 test $ac_count -gt 10 && break
5468 done
5469 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5470 esac
5471
5472 $ac_path_SED_found && break 3
5473 done
5474 done
5475 done
5476 IFS=$as_save_IFS
5477 if test -z "$ac_cv_path_SED"; then
5478 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5479 fi
5480 else
5481 ac_cv_path_SED=$SED
5482 fi
5483
5484 fi
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5486 $as_echo "$ac_cv_path_SED" >&6; }
5487 SED="$ac_cv_path_SED"
5488 rm -f conftest.sed
5489
5490
5491
5492
5493
5494
5495 # Check whether --enable-selective-werror was given.
5496 if test "${enable_selective_werror+set}" = set; then :
5497 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5498 else
5499 SELECTIVE_WERROR=yes
5500 fi
5501
5502
5503
5504
5505
5506 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5507 if test "x$SUNCC" = "xyes"; then
5508 BASE_CFLAGS="-v"
5509 else
5510 BASE_CFLAGS=""
5511 fi
5512
5513 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527 xorg_testset_save_CFLAGS="$CFLAGS"
5528
5529 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5532 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5533 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5534 $as_echo_n "(cached) " >&6
5535 else
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5538 int i;
5539 _ACEOF
5540 if ac_fn_c_try_compile "$LINENO"; then :
5541 xorg_cv_cc_flag_unknown_warning_option=yes
5542 else
5543 xorg_cv_cc_flag_unknown_warning_option=no
5544 fi
5545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5546 fi
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5548 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5549 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5550 CFLAGS="$xorg_testset_save_CFLAGS"
5551 fi
5552
5553 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5556 fi
5557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5559 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5560 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5561 $as_echo_n "(cached) " >&6
5562 else
5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564 /* end confdefs.h. */
5565 int i;
5566 _ACEOF
5567 if ac_fn_c_try_compile "$LINENO"; then :
5568 xorg_cv_cc_flag_unused_command_line_argument=yes
5569 else
5570 xorg_cv_cc_flag_unused_command_line_argument=no
5571 fi
5572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573 fi
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5575 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5576 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5577 CFLAGS="$xorg_testset_save_CFLAGS"
5578 fi
5579
5580 found="no"
5581
5582 if test $found = "no" ; then
5583 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5585 fi
5586
5587 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5589 fi
5590
5591 CFLAGS="$CFLAGS -Wall"
5592
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5594 $as_echo_n "checking if $CC supports -Wall... " >&6; }
5595 cacheid=xorg_cv_cc_flag__Wall
5596 if eval \${$cacheid+:} false; then :
5597 $as_echo_n "(cached) " >&6
5598 else
5599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600 /* end confdefs.h. */
5601 int i;
5602 int
5603 main ()
5604 {
5605
5606 ;
5607 return 0;
5608 }
5609 _ACEOF
5610 if ac_fn_c_try_link "$LINENO"; then :
5611 eval $cacheid=yes
5612 else
5613 eval $cacheid=no
5614 fi
5615 rm -f core conftest.err conftest.$ac_objext \
5616 conftest$ac_exeext conftest.$ac_ext
5617 fi
5618
5619
5620 CFLAGS="$xorg_testset_save_CFLAGS"
5621
5622 eval supported=\$$cacheid
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5624 $as_echo "$supported" >&6; }
5625 if test "$supported" = "yes" ; then
5626 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5627 found="yes"
5628 fi
5629 fi
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645 xorg_testset_save_CFLAGS="$CFLAGS"
5646
5647 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5650 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5651 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5656 int i;
5657 _ACEOF
5658 if ac_fn_c_try_compile "$LINENO"; then :
5659 xorg_cv_cc_flag_unknown_warning_option=yes
5660 else
5661 xorg_cv_cc_flag_unknown_warning_option=no
5662 fi
5663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5664 fi
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5666 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5667 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5668 CFLAGS="$xorg_testset_save_CFLAGS"
5669 fi
5670
5671 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5674 fi
5675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5677 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5678 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5679 $as_echo_n "(cached) " >&6
5680 else
5681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5682 /* end confdefs.h. */
5683 int i;
5684 _ACEOF
5685 if ac_fn_c_try_compile "$LINENO"; then :
5686 xorg_cv_cc_flag_unused_command_line_argument=yes
5687 else
5688 xorg_cv_cc_flag_unused_command_line_argument=no
5689 fi
5690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691 fi
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5693 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5694 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5695 CFLAGS="$xorg_testset_save_CFLAGS"
5696 fi
5697
5698 found="no"
5699
5700 if test $found = "no" ; then
5701 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5703 fi
5704
5705 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5707 fi
5708
5709 CFLAGS="$CFLAGS -Wpointer-arith"
5710
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5712 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5713 cacheid=xorg_cv_cc_flag__Wpointer_arith
5714 if eval \${$cacheid+:} false; then :
5715 $as_echo_n "(cached) " >&6
5716 else
5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718 /* end confdefs.h. */
5719 int i;
5720 int
5721 main ()
5722 {
5723
5724 ;
5725 return 0;
5726 }
5727 _ACEOF
5728 if ac_fn_c_try_link "$LINENO"; then :
5729 eval $cacheid=yes
5730 else
5731 eval $cacheid=no
5732 fi
5733 rm -f core conftest.err conftest.$ac_objext \
5734 conftest$ac_exeext conftest.$ac_ext
5735 fi
5736
5737
5738 CFLAGS="$xorg_testset_save_CFLAGS"
5739
5740 eval supported=\$$cacheid
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5742 $as_echo "$supported" >&6; }
5743 if test "$supported" = "yes" ; then
5744 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5745 found="yes"
5746 fi
5747 fi
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763 xorg_testset_save_CFLAGS="$CFLAGS"
5764
5765 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5768 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5769 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5770 $as_echo_n "(cached) " >&6
5771 else
5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h. */
5774 int i;
5775 _ACEOF
5776 if ac_fn_c_try_compile "$LINENO"; then :
5777 xorg_cv_cc_flag_unknown_warning_option=yes
5778 else
5779 xorg_cv_cc_flag_unknown_warning_option=no
5780 fi
5781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782 fi
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5784 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5785 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5786 CFLAGS="$xorg_testset_save_CFLAGS"
5787 fi
5788
5789 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5792 fi
5793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5795 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5796 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5797 $as_echo_n "(cached) " >&6
5798 else
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5801 int i;
5802 _ACEOF
5803 if ac_fn_c_try_compile "$LINENO"; then :
5804 xorg_cv_cc_flag_unused_command_line_argument=yes
5805 else
5806 xorg_cv_cc_flag_unused_command_line_argument=no
5807 fi
5808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5809 fi
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5811 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5812 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5813 CFLAGS="$xorg_testset_save_CFLAGS"
5814 fi
5815
5816 found="no"
5817
5818 if test $found = "no" ; then
5819 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5821 fi
5822
5823 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5825 fi
5826
5827 CFLAGS="$CFLAGS -Wmissing-declarations"
5828
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5830 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5831 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5832 if eval \${$cacheid+:} false; then :
5833 $as_echo_n "(cached) " >&6
5834 else
5835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5837 int i;
5838 int
5839 main ()
5840 {
5841
5842 ;
5843 return 0;
5844 }
5845 _ACEOF
5846 if ac_fn_c_try_link "$LINENO"; then :
5847 eval $cacheid=yes
5848 else
5849 eval $cacheid=no
5850 fi
5851 rm -f core conftest.err conftest.$ac_objext \
5852 conftest$ac_exeext conftest.$ac_ext
5853 fi
5854
5855
5856 CFLAGS="$xorg_testset_save_CFLAGS"
5857
5858 eval supported=\$$cacheid
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5860 $as_echo "$supported" >&6; }
5861 if test "$supported" = "yes" ; then
5862 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5863 found="yes"
5864 fi
5865 fi
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881 xorg_testset_save_CFLAGS="$CFLAGS"
5882
5883 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5886 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5887 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5888 $as_echo_n "(cached) " >&6
5889 else
5890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5891 /* end confdefs.h. */
5892 int i;
5893 _ACEOF
5894 if ac_fn_c_try_compile "$LINENO"; then :
5895 xorg_cv_cc_flag_unknown_warning_option=yes
5896 else
5897 xorg_cv_cc_flag_unknown_warning_option=no
5898 fi
5899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5900 fi
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5902 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5903 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5904 CFLAGS="$xorg_testset_save_CFLAGS"
5905 fi
5906
5907 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5910 fi
5911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5913 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5914 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5915 $as_echo_n "(cached) " >&6
5916 else
5917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918 /* end confdefs.h. */
5919 int i;
5920 _ACEOF
5921 if ac_fn_c_try_compile "$LINENO"; then :
5922 xorg_cv_cc_flag_unused_command_line_argument=yes
5923 else
5924 xorg_cv_cc_flag_unused_command_line_argument=no
5925 fi
5926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5927 fi
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5929 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5930 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5931 CFLAGS="$xorg_testset_save_CFLAGS"
5932 fi
5933
5934 found="no"
5935
5936 if test $found = "no" ; then
5937 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5939 fi
5940
5941 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5943 fi
5944
5945 CFLAGS="$CFLAGS -Wformat=2"
5946
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5948 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5949 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5950 if eval \${$cacheid+:} false; then :
5951 $as_echo_n "(cached) " >&6
5952 else
5953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954 /* end confdefs.h. */
5955 int i;
5956 int
5957 main ()
5958 {
5959
5960 ;
5961 return 0;
5962 }
5963 _ACEOF
5964 if ac_fn_c_try_link "$LINENO"; then :
5965 eval $cacheid=yes
5966 else
5967 eval $cacheid=no
5968 fi
5969 rm -f core conftest.err conftest.$ac_objext \
5970 conftest$ac_exeext conftest.$ac_ext
5971 fi
5972
5973
5974 CFLAGS="$xorg_testset_save_CFLAGS"
5975
5976 eval supported=\$$cacheid
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5978 $as_echo "$supported" >&6; }
5979 if test "$supported" = "yes" ; then
5980 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5981 found="yes"
5982 fi
5983 fi
5984
5985 if test $found = "no" ; then
5986 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5988 fi
5989
5990 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5992 fi
5993
5994 CFLAGS="$CFLAGS -Wformat"
5995
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5997 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5998 cacheid=xorg_cv_cc_flag__Wformat
5999 if eval \${$cacheid+:} false; then :
6000 $as_echo_n "(cached) " >&6
6001 else
6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003 /* end confdefs.h. */
6004 int i;
6005 int
6006 main ()
6007 {
6008
6009 ;
6010 return 0;
6011 }
6012 _ACEOF
6013 if ac_fn_c_try_link "$LINENO"; then :
6014 eval $cacheid=yes
6015 else
6016 eval $cacheid=no
6017 fi
6018 rm -f core conftest.err conftest.$ac_objext \
6019 conftest$ac_exeext conftest.$ac_ext
6020 fi
6021
6022
6023 CFLAGS="$xorg_testset_save_CFLAGS"
6024
6025 eval supported=\$$cacheid
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6027 $as_echo "$supported" >&6; }
6028 if test "$supported" = "yes" ; then
6029 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
6030 found="yes"
6031 fi
6032 fi
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050 xorg_testset_save_CFLAGS="$CFLAGS"
6051
6052 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6055 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6056 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6057 $as_echo_n "(cached) " >&6
6058 else
6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060 /* end confdefs.h. */
6061 int i;
6062 _ACEOF
6063 if ac_fn_c_try_compile "$LINENO"; then :
6064 xorg_cv_cc_flag_unknown_warning_option=yes
6065 else
6066 xorg_cv_cc_flag_unknown_warning_option=no
6067 fi
6068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6069 fi
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6071 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6072 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6073 CFLAGS="$xorg_testset_save_CFLAGS"
6074 fi
6075
6076 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6079 fi
6080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6082 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6083 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6084 $as_echo_n "(cached) " >&6
6085 else
6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087 /* end confdefs.h. */
6088 int i;
6089 _ACEOF
6090 if ac_fn_c_try_compile "$LINENO"; then :
6091 xorg_cv_cc_flag_unused_command_line_argument=yes
6092 else
6093 xorg_cv_cc_flag_unused_command_line_argument=no
6094 fi
6095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6096 fi
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6098 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6099 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6100 CFLAGS="$xorg_testset_save_CFLAGS"
6101 fi
6102
6103 found="no"
6104
6105 if test $found = "no" ; then
6106 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6108 fi
6109
6110 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6112 fi
6113
6114 CFLAGS="$CFLAGS -Wstrict-prototypes"
6115
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
6117 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
6118 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
6119 if eval \${$cacheid+:} false; then :
6120 $as_echo_n "(cached) " >&6
6121 else
6122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123 /* end confdefs.h. */
6124 int i;
6125 int
6126 main ()
6127 {
6128
6129 ;
6130 return 0;
6131 }
6132 _ACEOF
6133 if ac_fn_c_try_link "$LINENO"; then :
6134 eval $cacheid=yes
6135 else
6136 eval $cacheid=no
6137 fi
6138 rm -f core conftest.err conftest.$ac_objext \
6139 conftest$ac_exeext conftest.$ac_ext
6140 fi
6141
6142
6143 CFLAGS="$xorg_testset_save_CFLAGS"
6144
6145 eval supported=\$$cacheid
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6147 $as_echo "$supported" >&6; }
6148 if test "$supported" = "yes" ; then
6149 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
6150 found="yes"
6151 fi
6152 fi
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168 xorg_testset_save_CFLAGS="$CFLAGS"
6169
6170 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6173 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6174 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6175 $as_echo_n "(cached) " >&6
6176 else
6177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6178 /* end confdefs.h. */
6179 int i;
6180 _ACEOF
6181 if ac_fn_c_try_compile "$LINENO"; then :
6182 xorg_cv_cc_flag_unknown_warning_option=yes
6183 else
6184 xorg_cv_cc_flag_unknown_warning_option=no
6185 fi
6186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6187 fi
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6189 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6190 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6191 CFLAGS="$xorg_testset_save_CFLAGS"
6192 fi
6193
6194 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6197 fi
6198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6200 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6201 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6202 $as_echo_n "(cached) " >&6
6203 else
6204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205 /* end confdefs.h. */
6206 int i;
6207 _ACEOF
6208 if ac_fn_c_try_compile "$LINENO"; then :
6209 xorg_cv_cc_flag_unused_command_line_argument=yes
6210 else
6211 xorg_cv_cc_flag_unused_command_line_argument=no
6212 fi
6213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6214 fi
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6216 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6217 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6218 CFLAGS="$xorg_testset_save_CFLAGS"
6219 fi
6220
6221 found="no"
6222
6223 if test $found = "no" ; then
6224 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6226 fi
6227
6228 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6230 fi
6231
6232 CFLAGS="$CFLAGS -Wmissing-prototypes"
6233
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
6235 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
6236 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
6237 if eval \${$cacheid+:} false; then :
6238 $as_echo_n "(cached) " >&6
6239 else
6240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6241 /* end confdefs.h. */
6242 int i;
6243 int
6244 main ()
6245 {
6246
6247 ;
6248 return 0;
6249 }
6250 _ACEOF
6251 if ac_fn_c_try_link "$LINENO"; then :
6252 eval $cacheid=yes
6253 else
6254 eval $cacheid=no
6255 fi
6256 rm -f core conftest.err conftest.$ac_objext \
6257 conftest$ac_exeext conftest.$ac_ext
6258 fi
6259
6260
6261 CFLAGS="$xorg_testset_save_CFLAGS"
6262
6263 eval supported=\$$cacheid
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6265 $as_echo "$supported" >&6; }
6266 if test "$supported" = "yes" ; then
6267 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
6268 found="yes"
6269 fi
6270 fi
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286 xorg_testset_save_CFLAGS="$CFLAGS"
6287
6288 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6291 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6292 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6293 $as_echo_n "(cached) " >&6
6294 else
6295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296 /* end confdefs.h. */
6297 int i;
6298 _ACEOF
6299 if ac_fn_c_try_compile "$LINENO"; then :
6300 xorg_cv_cc_flag_unknown_warning_option=yes
6301 else
6302 xorg_cv_cc_flag_unknown_warning_option=no
6303 fi
6304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6305 fi
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6307 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6308 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6309 CFLAGS="$xorg_testset_save_CFLAGS"
6310 fi
6311
6312 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6315 fi
6316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6318 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6319 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6320 $as_echo_n "(cached) " >&6
6321 else
6322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323 /* end confdefs.h. */
6324 int i;
6325 _ACEOF
6326 if ac_fn_c_try_compile "$LINENO"; then :
6327 xorg_cv_cc_flag_unused_command_line_argument=yes
6328 else
6329 xorg_cv_cc_flag_unused_command_line_argument=no
6330 fi
6331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6332 fi
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6334 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6335 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6336 CFLAGS="$xorg_testset_save_CFLAGS"
6337 fi
6338
6339 found="no"
6340
6341 if test $found = "no" ; then
6342 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6344 fi
6345
6346 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6348 fi
6349
6350 CFLAGS="$CFLAGS -Wnested-externs"
6351
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6353 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
6354 cacheid=xorg_cv_cc_flag__Wnested_externs
6355 if eval \${$cacheid+:} false; then :
6356 $as_echo_n "(cached) " >&6
6357 else
6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359 /* end confdefs.h. */
6360 int i;
6361 int
6362 main ()
6363 {
6364
6365 ;
6366 return 0;
6367 }
6368 _ACEOF
6369 if ac_fn_c_try_link "$LINENO"; then :
6370 eval $cacheid=yes
6371 else
6372 eval $cacheid=no
6373 fi
6374 rm -f core conftest.err conftest.$ac_objext \
6375 conftest$ac_exeext conftest.$ac_ext
6376 fi
6377
6378
6379 CFLAGS="$xorg_testset_save_CFLAGS"
6380
6381 eval supported=\$$cacheid
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6383 $as_echo "$supported" >&6; }
6384 if test "$supported" = "yes" ; then
6385 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6386 found="yes"
6387 fi
6388 fi
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404 xorg_testset_save_CFLAGS="$CFLAGS"
6405
6406 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6409 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6410 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6411 $as_echo_n "(cached) " >&6
6412 else
6413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6414 /* end confdefs.h. */
6415 int i;
6416 _ACEOF
6417 if ac_fn_c_try_compile "$LINENO"; then :
6418 xorg_cv_cc_flag_unknown_warning_option=yes
6419 else
6420 xorg_cv_cc_flag_unknown_warning_option=no
6421 fi
6422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423 fi
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6425 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6427 CFLAGS="$xorg_testset_save_CFLAGS"
6428 fi
6429
6430 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6433 fi
6434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6436 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6437 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6438 $as_echo_n "(cached) " >&6
6439 else
6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441 /* end confdefs.h. */
6442 int i;
6443 _ACEOF
6444 if ac_fn_c_try_compile "$LINENO"; then :
6445 xorg_cv_cc_flag_unused_command_line_argument=yes
6446 else
6447 xorg_cv_cc_flag_unused_command_line_argument=no
6448 fi
6449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6450 fi
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6452 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6453 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6454 CFLAGS="$xorg_testset_save_CFLAGS"
6455 fi
6456
6457 found="no"
6458
6459 if test $found = "no" ; then
6460 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6462 fi
6463
6464 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6466 fi
6467
6468 CFLAGS="$CFLAGS -Wbad-function-cast"
6469
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6471 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
6472 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6473 if eval \${$cacheid+:} false; then :
6474 $as_echo_n "(cached) " >&6
6475 else
6476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477 /* end confdefs.h. */
6478 int i;
6479 int
6480 main ()
6481 {
6482
6483 ;
6484 return 0;
6485 }
6486 _ACEOF
6487 if ac_fn_c_try_link "$LINENO"; then :
6488 eval $cacheid=yes
6489 else
6490 eval $cacheid=no
6491 fi
6492 rm -f core conftest.err conftest.$ac_objext \
6493 conftest$ac_exeext conftest.$ac_ext
6494 fi
6495
6496
6497 CFLAGS="$xorg_testset_save_CFLAGS"
6498
6499 eval supported=\$$cacheid
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6501 $as_echo "$supported" >&6; }
6502 if test "$supported" = "yes" ; then
6503 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6504 found="yes"
6505 fi
6506 fi
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522 xorg_testset_save_CFLAGS="$CFLAGS"
6523
6524 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6525 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6527 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6528 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6529 $as_echo_n "(cached) " >&6
6530 else
6531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6532 /* end confdefs.h. */
6533 int i;
6534 _ACEOF
6535 if ac_fn_c_try_compile "$LINENO"; then :
6536 xorg_cv_cc_flag_unknown_warning_option=yes
6537 else
6538 xorg_cv_cc_flag_unknown_warning_option=no
6539 fi
6540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6541 fi
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6543 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6544 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6545 CFLAGS="$xorg_testset_save_CFLAGS"
6546 fi
6547
6548 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6551 fi
6552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6554 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6555 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6556 $as_echo_n "(cached) " >&6
6557 else
6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6559 /* end confdefs.h. */
6560 int i;
6561 _ACEOF
6562 if ac_fn_c_try_compile "$LINENO"; then :
6563 xorg_cv_cc_flag_unused_command_line_argument=yes
6564 else
6565 xorg_cv_cc_flag_unused_command_line_argument=no
6566 fi
6567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6568 fi
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6570 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6571 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6572 CFLAGS="$xorg_testset_save_CFLAGS"
6573 fi
6574
6575 found="no"
6576
6577 if test $found = "no" ; then
6578 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6580 fi
6581
6582 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6584 fi
6585
6586 CFLAGS="$CFLAGS -Wold-style-definition"
6587
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6589 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
6590 cacheid=xorg_cv_cc_flag__Wold_style_definition
6591 if eval \${$cacheid+:} false; then :
6592 $as_echo_n "(cached) " >&6
6593 else
6594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595 /* end confdefs.h. */
6596 int i;
6597 int
6598 main ()
6599 {
6600
6601 ;
6602 return 0;
6603 }
6604 _ACEOF
6605 if ac_fn_c_try_link "$LINENO"; then :
6606 eval $cacheid=yes
6607 else
6608 eval $cacheid=no
6609 fi
6610 rm -f core conftest.err conftest.$ac_objext \
6611 conftest$ac_exeext conftest.$ac_ext
6612 fi
6613
6614
6615 CFLAGS="$xorg_testset_save_CFLAGS"
6616
6617 eval supported=\$$cacheid
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6619 $as_echo "$supported" >&6; }
6620 if test "$supported" = "yes" ; then
6621 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6622 found="yes"
6623 fi
6624 fi
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640 xorg_testset_save_CFLAGS="$CFLAGS"
6641
6642 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6645 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6646 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6647 $as_echo_n "(cached) " >&6
6648 else
6649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6650 /* end confdefs.h. */
6651 int i;
6652 _ACEOF
6653 if ac_fn_c_try_compile "$LINENO"; then :
6654 xorg_cv_cc_flag_unknown_warning_option=yes
6655 else
6656 xorg_cv_cc_flag_unknown_warning_option=no
6657 fi
6658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6659 fi
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6661 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6662 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6663 CFLAGS="$xorg_testset_save_CFLAGS"
6664 fi
6665
6666 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6669 fi
6670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6672 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6673 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6674 $as_echo_n "(cached) " >&6
6675 else
6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677 /* end confdefs.h. */
6678 int i;
6679 _ACEOF
6680 if ac_fn_c_try_compile "$LINENO"; then :
6681 xorg_cv_cc_flag_unused_command_line_argument=yes
6682 else
6683 xorg_cv_cc_flag_unused_command_line_argument=no
6684 fi
6685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6686 fi
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6688 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6689 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6690 CFLAGS="$xorg_testset_save_CFLAGS"
6691 fi
6692
6693 found="no"
6694
6695 if test $found = "no" ; then
6696 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6698 fi
6699
6700 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6702 fi
6703
6704 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6705
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6707 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6708 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6709 if eval \${$cacheid+:} false; then :
6710 $as_echo_n "(cached) " >&6
6711 else
6712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6713 /* end confdefs.h. */
6714 int i;
6715 int
6716 main ()
6717 {
6718
6719 ;
6720 return 0;
6721 }
6722 _ACEOF
6723 if ac_fn_c_try_link "$LINENO"; then :
6724 eval $cacheid=yes
6725 else
6726 eval $cacheid=no
6727 fi
6728 rm -f core conftest.err conftest.$ac_objext \
6729 conftest$ac_exeext conftest.$ac_ext
6730 fi
6731
6732
6733 CFLAGS="$xorg_testset_save_CFLAGS"
6734
6735 eval supported=\$$cacheid
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6737 $as_echo "$supported" >&6; }
6738 if test "$supported" = "yes" ; then
6739 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6740 found="yes"
6741 fi
6742 fi
6743
6744
6745
6746
6747
6748 # This chunk adds additional warnings that could catch undesired effects.
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762 xorg_testset_save_CFLAGS="$CFLAGS"
6763
6764 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6767 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6768 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6769 $as_echo_n "(cached) " >&6
6770 else
6771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6772 /* end confdefs.h. */
6773 int i;
6774 _ACEOF
6775 if ac_fn_c_try_compile "$LINENO"; then :
6776 xorg_cv_cc_flag_unknown_warning_option=yes
6777 else
6778 xorg_cv_cc_flag_unknown_warning_option=no
6779 fi
6780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6781 fi
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6783 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6784 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6785 CFLAGS="$xorg_testset_save_CFLAGS"
6786 fi
6787
6788 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6791 fi
6792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6794 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6795 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6796 $as_echo_n "(cached) " >&6
6797 else
6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h. */
6800 int i;
6801 _ACEOF
6802 if ac_fn_c_try_compile "$LINENO"; then :
6803 xorg_cv_cc_flag_unused_command_line_argument=yes
6804 else
6805 xorg_cv_cc_flag_unused_command_line_argument=no
6806 fi
6807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6808 fi
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6810 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6811 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6812 CFLAGS="$xorg_testset_save_CFLAGS"
6813 fi
6814
6815 found="no"
6816
6817 if test $found = "no" ; then
6818 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6819 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6820 fi
6821
6822 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6824 fi
6825
6826 CFLAGS="$CFLAGS -Wunused"
6827
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6829 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6830 cacheid=xorg_cv_cc_flag__Wunused
6831 if eval \${$cacheid+:} false; then :
6832 $as_echo_n "(cached) " >&6
6833 else
6834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835 /* end confdefs.h. */
6836 int i;
6837 int
6838 main ()
6839 {
6840
6841 ;
6842 return 0;
6843 }
6844 _ACEOF
6845 if ac_fn_c_try_link "$LINENO"; then :
6846 eval $cacheid=yes
6847 else
6848 eval $cacheid=no
6849 fi
6850 rm -f core conftest.err conftest.$ac_objext \
6851 conftest$ac_exeext conftest.$ac_ext
6852 fi
6853
6854
6855 CFLAGS="$xorg_testset_save_CFLAGS"
6856
6857 eval supported=\$$cacheid
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6859 $as_echo "$supported" >&6; }
6860 if test "$supported" = "yes" ; then
6861 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6862 found="yes"
6863 fi
6864 fi
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880 xorg_testset_save_CFLAGS="$CFLAGS"
6881
6882 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6885 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6886 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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 _ACEOF
6893 if ac_fn_c_try_compile "$LINENO"; then :
6894 xorg_cv_cc_flag_unknown_warning_option=yes
6895 else
6896 xorg_cv_cc_flag_unknown_warning_option=no
6897 fi
6898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6899 fi
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6901 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6902 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6903 CFLAGS="$xorg_testset_save_CFLAGS"
6904 fi
6905
6906 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6909 fi
6910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6912 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6913 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6914 $as_echo_n "(cached) " >&6
6915 else
6916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6917 /* end confdefs.h. */
6918 int i;
6919 _ACEOF
6920 if ac_fn_c_try_compile "$LINENO"; then :
6921 xorg_cv_cc_flag_unused_command_line_argument=yes
6922 else
6923 xorg_cv_cc_flag_unused_command_line_argument=no
6924 fi
6925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6926 fi
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6928 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6929 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6930 CFLAGS="$xorg_testset_save_CFLAGS"
6931 fi
6932
6933 found="no"
6934
6935 if test $found = "no" ; then
6936 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6937 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6938 fi
6939
6940 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6942 fi
6943
6944 CFLAGS="$CFLAGS -Wuninitialized"
6945
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6947 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6948 cacheid=xorg_cv_cc_flag__Wuninitialized
6949 if eval \${$cacheid+:} false; then :
6950 $as_echo_n "(cached) " >&6
6951 else
6952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953 /* end confdefs.h. */
6954 int i;
6955 int
6956 main ()
6957 {
6958
6959 ;
6960 return 0;
6961 }
6962 _ACEOF
6963 if ac_fn_c_try_link "$LINENO"; then :
6964 eval $cacheid=yes
6965 else
6966 eval $cacheid=no
6967 fi
6968 rm -f core conftest.err conftest.$ac_objext \
6969 conftest$ac_exeext conftest.$ac_ext
6970 fi
6971
6972
6973 CFLAGS="$xorg_testset_save_CFLAGS"
6974
6975 eval supported=\$$cacheid
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6977 $as_echo "$supported" >&6; }
6978 if test "$supported" = "yes" ; then
6979 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6980 found="yes"
6981 fi
6982 fi
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998 xorg_testset_save_CFLAGS="$CFLAGS"
6999
7000 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7003 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7004 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7005 $as_echo_n "(cached) " >&6
7006 else
7007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7008 /* end confdefs.h. */
7009 int i;
7010 _ACEOF
7011 if ac_fn_c_try_compile "$LINENO"; then :
7012 xorg_cv_cc_flag_unknown_warning_option=yes
7013 else
7014 xorg_cv_cc_flag_unknown_warning_option=no
7015 fi
7016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7017 fi
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7019 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7020 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7021 CFLAGS="$xorg_testset_save_CFLAGS"
7022 fi
7023
7024 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7027 fi
7028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7030 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7031 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7032 $as_echo_n "(cached) " >&6
7033 else
7034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035 /* end confdefs.h. */
7036 int i;
7037 _ACEOF
7038 if ac_fn_c_try_compile "$LINENO"; then :
7039 xorg_cv_cc_flag_unused_command_line_argument=yes
7040 else
7041 xorg_cv_cc_flag_unused_command_line_argument=no
7042 fi
7043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7044 fi
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7046 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7047 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7048 CFLAGS="$xorg_testset_save_CFLAGS"
7049 fi
7050
7051 found="no"
7052
7053 if test $found = "no" ; then
7054 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7056 fi
7057
7058 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7060 fi
7061
7062 CFLAGS="$CFLAGS -Wshadow"
7063
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
7065 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
7066 cacheid=xorg_cv_cc_flag__Wshadow
7067 if eval \${$cacheid+:} false; then :
7068 $as_echo_n "(cached) " >&6
7069 else
7070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071 /* end confdefs.h. */
7072 int i;
7073 int
7074 main ()
7075 {
7076
7077 ;
7078 return 0;
7079 }
7080 _ACEOF
7081 if ac_fn_c_try_link "$LINENO"; then :
7082 eval $cacheid=yes
7083 else
7084 eval $cacheid=no
7085 fi
7086 rm -f core conftest.err conftest.$ac_objext \
7087 conftest$ac_exeext conftest.$ac_ext
7088 fi
7089
7090
7091 CFLAGS="$xorg_testset_save_CFLAGS"
7092
7093 eval supported=\$$cacheid
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7095 $as_echo "$supported" >&6; }
7096 if test "$supported" = "yes" ; then
7097 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
7098 found="yes"
7099 fi
7100 fi
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116 xorg_testset_save_CFLAGS="$CFLAGS"
7117
7118 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7121 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7122 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7123 $as_echo_n "(cached) " >&6
7124 else
7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h. */
7127 int i;
7128 _ACEOF
7129 if ac_fn_c_try_compile "$LINENO"; then :
7130 xorg_cv_cc_flag_unknown_warning_option=yes
7131 else
7132 xorg_cv_cc_flag_unknown_warning_option=no
7133 fi
7134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7135 fi
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7137 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7138 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7139 CFLAGS="$xorg_testset_save_CFLAGS"
7140 fi
7141
7142 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7145 fi
7146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7148 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7149 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7150 $as_echo_n "(cached) " >&6
7151 else
7152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7153 /* end confdefs.h. */
7154 int i;
7155 _ACEOF
7156 if ac_fn_c_try_compile "$LINENO"; then :
7157 xorg_cv_cc_flag_unused_command_line_argument=yes
7158 else
7159 xorg_cv_cc_flag_unused_command_line_argument=no
7160 fi
7161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7162 fi
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7164 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7165 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7166 CFLAGS="$xorg_testset_save_CFLAGS"
7167 fi
7168
7169 found="no"
7170
7171 if test $found = "no" ; then
7172 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7174 fi
7175
7176 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7178 fi
7179
7180 CFLAGS="$CFLAGS -Wcast-qual"
7181
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
7183 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
7184 cacheid=xorg_cv_cc_flag__Wcast_qual
7185 if eval \${$cacheid+:} false; then :
7186 $as_echo_n "(cached) " >&6
7187 else
7188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189 /* end confdefs.h. */
7190 int i;
7191 int
7192 main ()
7193 {
7194
7195 ;
7196 return 0;
7197 }
7198 _ACEOF
7199 if ac_fn_c_try_link "$LINENO"; then :
7200 eval $cacheid=yes
7201 else
7202 eval $cacheid=no
7203 fi
7204 rm -f core conftest.err conftest.$ac_objext \
7205 conftest$ac_exeext conftest.$ac_ext
7206 fi
7207
7208
7209 CFLAGS="$xorg_testset_save_CFLAGS"
7210
7211 eval supported=\$$cacheid
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7213 $as_echo "$supported" >&6; }
7214 if test "$supported" = "yes" ; then
7215 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
7216 found="yes"
7217 fi
7218 fi
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234 xorg_testset_save_CFLAGS="$CFLAGS"
7235
7236 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7239 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7240 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7241 $as_echo_n "(cached) " >&6
7242 else
7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244 /* end confdefs.h. */
7245 int i;
7246 _ACEOF
7247 if ac_fn_c_try_compile "$LINENO"; then :
7248 xorg_cv_cc_flag_unknown_warning_option=yes
7249 else
7250 xorg_cv_cc_flag_unknown_warning_option=no
7251 fi
7252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7253 fi
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7255 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7256 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7257 CFLAGS="$xorg_testset_save_CFLAGS"
7258 fi
7259
7260 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7263 fi
7264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7266 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7267 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7268 $as_echo_n "(cached) " >&6
7269 else
7270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h. */
7272 int i;
7273 _ACEOF
7274 if ac_fn_c_try_compile "$LINENO"; then :
7275 xorg_cv_cc_flag_unused_command_line_argument=yes
7276 else
7277 xorg_cv_cc_flag_unused_command_line_argument=no
7278 fi
7279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7280 fi
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7282 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7283 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7284 CFLAGS="$xorg_testset_save_CFLAGS"
7285 fi
7286
7287 found="no"
7288
7289 if test $found = "no" ; then
7290 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7292 fi
7293
7294 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7296 fi
7297
7298 CFLAGS="$CFLAGS -Wmissing-noreturn"
7299
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
7301 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
7302 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
7303 if eval \${$cacheid+:} false; then :
7304 $as_echo_n "(cached) " >&6
7305 else
7306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7307 /* end confdefs.h. */
7308 int i;
7309 int
7310 main ()
7311 {
7312
7313 ;
7314 return 0;
7315 }
7316 _ACEOF
7317 if ac_fn_c_try_link "$LINENO"; then :
7318 eval $cacheid=yes
7319 else
7320 eval $cacheid=no
7321 fi
7322 rm -f core conftest.err conftest.$ac_objext \
7323 conftest$ac_exeext conftest.$ac_ext
7324 fi
7325
7326
7327 CFLAGS="$xorg_testset_save_CFLAGS"
7328
7329 eval supported=\$$cacheid
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7331 $as_echo "$supported" >&6; }
7332 if test "$supported" = "yes" ; then
7333 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7334 found="yes"
7335 fi
7336 fi
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352 xorg_testset_save_CFLAGS="$CFLAGS"
7353
7354 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7357 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7358 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7359 $as_echo_n "(cached) " >&6
7360 else
7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362 /* end confdefs.h. */
7363 int i;
7364 _ACEOF
7365 if ac_fn_c_try_compile "$LINENO"; then :
7366 xorg_cv_cc_flag_unknown_warning_option=yes
7367 else
7368 xorg_cv_cc_flag_unknown_warning_option=no
7369 fi
7370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7371 fi
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7373 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7374 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7375 CFLAGS="$xorg_testset_save_CFLAGS"
7376 fi
7377
7378 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7381 fi
7382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7384 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7385 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7386 $as_echo_n "(cached) " >&6
7387 else
7388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389 /* end confdefs.h. */
7390 int i;
7391 _ACEOF
7392 if ac_fn_c_try_compile "$LINENO"; then :
7393 xorg_cv_cc_flag_unused_command_line_argument=yes
7394 else
7395 xorg_cv_cc_flag_unused_command_line_argument=no
7396 fi
7397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7398 fi
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7400 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7401 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7402 CFLAGS="$xorg_testset_save_CFLAGS"
7403 fi
7404
7405 found="no"
7406
7407 if test $found = "no" ; then
7408 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7410 fi
7411
7412 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7414 fi
7415
7416 CFLAGS="$CFLAGS -Wmissing-format-attribute"
7417
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7419 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7420 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7421 if eval \${$cacheid+:} false; then :
7422 $as_echo_n "(cached) " >&6
7423 else
7424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425 /* end confdefs.h. */
7426 int i;
7427 int
7428 main ()
7429 {
7430
7431 ;
7432 return 0;
7433 }
7434 _ACEOF
7435 if ac_fn_c_try_link "$LINENO"; then :
7436 eval $cacheid=yes
7437 else
7438 eval $cacheid=no
7439 fi
7440 rm -f core conftest.err conftest.$ac_objext \
7441 conftest$ac_exeext conftest.$ac_ext
7442 fi
7443
7444
7445 CFLAGS="$xorg_testset_save_CFLAGS"
7446
7447 eval supported=\$$cacheid
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7449 $as_echo "$supported" >&6; }
7450 if test "$supported" = "yes" ; then
7451 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7452 found="yes"
7453 fi
7454 fi
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470 xorg_testset_save_CFLAGS="$CFLAGS"
7471
7472 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7475 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7476 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7477 $as_echo_n "(cached) " >&6
7478 else
7479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480 /* end confdefs.h. */
7481 int i;
7482 _ACEOF
7483 if ac_fn_c_try_compile "$LINENO"; then :
7484 xorg_cv_cc_flag_unknown_warning_option=yes
7485 else
7486 xorg_cv_cc_flag_unknown_warning_option=no
7487 fi
7488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7489 fi
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7491 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7492 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7493 CFLAGS="$xorg_testset_save_CFLAGS"
7494 fi
7495
7496 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7499 fi
7500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7502 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7503 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7504 $as_echo_n "(cached) " >&6
7505 else
7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h. */
7508 int i;
7509 _ACEOF
7510 if ac_fn_c_try_compile "$LINENO"; then :
7511 xorg_cv_cc_flag_unused_command_line_argument=yes
7512 else
7513 xorg_cv_cc_flag_unused_command_line_argument=no
7514 fi
7515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7516 fi
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7518 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7520 CFLAGS="$xorg_testset_save_CFLAGS"
7521 fi
7522
7523 found="no"
7524
7525 if test $found = "no" ; then
7526 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7528 fi
7529
7530 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7532 fi
7533
7534 CFLAGS="$CFLAGS -Wredundant-decls"
7535
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7537 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
7538 cacheid=xorg_cv_cc_flag__Wredundant_decls
7539 if eval \${$cacheid+:} false; then :
7540 $as_echo_n "(cached) " >&6
7541 else
7542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543 /* end confdefs.h. */
7544 int i;
7545 int
7546 main ()
7547 {
7548
7549 ;
7550 return 0;
7551 }
7552 _ACEOF
7553 if ac_fn_c_try_link "$LINENO"; then :
7554 eval $cacheid=yes
7555 else
7556 eval $cacheid=no
7557 fi
7558 rm -f core conftest.err conftest.$ac_objext \
7559 conftest$ac_exeext conftest.$ac_ext
7560 fi
7561
7562
7563 CFLAGS="$xorg_testset_save_CFLAGS"
7564
7565 eval supported=\$$cacheid
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7567 $as_echo "$supported" >&6; }
7568 if test "$supported" = "yes" ; then
7569 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7570 found="yes"
7571 fi
7572 fi
7573
7574
7575
7576 # These are currently disabled because they are noisy. They will be enabled
7577 # in the future once the codebase is sufficiently modernized to silence
7578 # them. For now, I don't want them to drown out the other warnings.
7579 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
7580 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7581 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7582
7583 # Turn some warnings into errors, so we don't accidently get successful builds
7584 # when there are problems that should be fixed.
7585
7586 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600 xorg_testset_save_CFLAGS="$CFLAGS"
7601
7602 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7605 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7606 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7607 $as_echo_n "(cached) " >&6
7608 else
7609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7610 /* end confdefs.h. */
7611 int i;
7612 _ACEOF
7613 if ac_fn_c_try_compile "$LINENO"; then :
7614 xorg_cv_cc_flag_unknown_warning_option=yes
7615 else
7616 xorg_cv_cc_flag_unknown_warning_option=no
7617 fi
7618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7619 fi
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7621 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7622 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7623 CFLAGS="$xorg_testset_save_CFLAGS"
7624 fi
7625
7626 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7629 fi
7630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7632 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7633 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7634 $as_echo_n "(cached) " >&6
7635 else
7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637 /* end confdefs.h. */
7638 int i;
7639 _ACEOF
7640 if ac_fn_c_try_compile "$LINENO"; then :
7641 xorg_cv_cc_flag_unused_command_line_argument=yes
7642 else
7643 xorg_cv_cc_flag_unused_command_line_argument=no
7644 fi
7645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7646 fi
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7648 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7649 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7650 CFLAGS="$xorg_testset_save_CFLAGS"
7651 fi
7652
7653 found="no"
7654
7655 if test $found = "no" ; then
7656 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7658 fi
7659
7660 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7662 fi
7663
7664 CFLAGS="$CFLAGS -Werror=implicit"
7665
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7667 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7668 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
7669 if eval \${$cacheid+:} false; then :
7670 $as_echo_n "(cached) " >&6
7671 else
7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7673 /* end confdefs.h. */
7674 int i;
7675 int
7676 main ()
7677 {
7678
7679 ;
7680 return 0;
7681 }
7682 _ACEOF
7683 if ac_fn_c_try_link "$LINENO"; then :
7684 eval $cacheid=yes
7685 else
7686 eval $cacheid=no
7687 fi
7688 rm -f core conftest.err conftest.$ac_objext \
7689 conftest$ac_exeext conftest.$ac_ext
7690 fi
7691
7692
7693 CFLAGS="$xorg_testset_save_CFLAGS"
7694
7695 eval supported=\$$cacheid
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7697 $as_echo "$supported" >&6; }
7698 if test "$supported" = "yes" ; then
7699 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7700 found="yes"
7701 fi
7702 fi
7703
7704 if test $found = "no" ; then
7705 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7707 fi
7708
7709 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7711 fi
7712
7713 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7714
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7716 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7717 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
7718 if eval \${$cacheid+:} false; then :
7719 $as_echo_n "(cached) " >&6
7720 else
7721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7722 /* end confdefs.h. */
7723 int i;
7724 int
7725 main ()
7726 {
7727
7728 ;
7729 return 0;
7730 }
7731 _ACEOF
7732 if ac_fn_c_try_link "$LINENO"; then :
7733 eval $cacheid=yes
7734 else
7735 eval $cacheid=no
7736 fi
7737 rm -f core conftest.err conftest.$ac_objext \
7738 conftest$ac_exeext conftest.$ac_ext
7739 fi
7740
7741
7742 CFLAGS="$xorg_testset_save_CFLAGS"
7743
7744 eval supported=\$$cacheid
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7746 $as_echo "$supported" >&6; }
7747 if test "$supported" = "yes" ; then
7748 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7749 found="yes"
7750 fi
7751 fi
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767 xorg_testset_save_CFLAGS="$CFLAGS"
7768
7769 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7772 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7773 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7774 $as_echo_n "(cached) " >&6
7775 else
7776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h. */
7778 int i;
7779 _ACEOF
7780 if ac_fn_c_try_compile "$LINENO"; then :
7781 xorg_cv_cc_flag_unknown_warning_option=yes
7782 else
7783 xorg_cv_cc_flag_unknown_warning_option=no
7784 fi
7785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7786 fi
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7788 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7789 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7790 CFLAGS="$xorg_testset_save_CFLAGS"
7791 fi
7792
7793 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7796 fi
7797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7799 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7800 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7801 $as_echo_n "(cached) " >&6
7802 else
7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h. */
7805 int i;
7806 _ACEOF
7807 if ac_fn_c_try_compile "$LINENO"; then :
7808 xorg_cv_cc_flag_unused_command_line_argument=yes
7809 else
7810 xorg_cv_cc_flag_unused_command_line_argument=no
7811 fi
7812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7813 fi
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7815 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7816 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7817 CFLAGS="$xorg_testset_save_CFLAGS"
7818 fi
7819
7820 found="no"
7821
7822 if test $found = "no" ; then
7823 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7825 fi
7826
7827 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7829 fi
7830
7831 CFLAGS="$CFLAGS -Werror=nonnull"
7832
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7834 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7835 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7836 if eval \${$cacheid+:} false; then :
7837 $as_echo_n "(cached) " >&6
7838 else
7839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7840 /* end confdefs.h. */
7841 int i;
7842 int
7843 main ()
7844 {
7845
7846 ;
7847 return 0;
7848 }
7849 _ACEOF
7850 if ac_fn_c_try_link "$LINENO"; then :
7851 eval $cacheid=yes
7852 else
7853 eval $cacheid=no
7854 fi
7855 rm -f core conftest.err conftest.$ac_objext \
7856 conftest$ac_exeext conftest.$ac_ext
7857 fi
7858
7859
7860 CFLAGS="$xorg_testset_save_CFLAGS"
7861
7862 eval supported=\$$cacheid
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7864 $as_echo "$supported" >&6; }
7865 if test "$supported" = "yes" ; then
7866 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7867 found="yes"
7868 fi
7869 fi
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885 xorg_testset_save_CFLAGS="$CFLAGS"
7886
7887 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7890 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7891 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7892 $as_echo_n "(cached) " >&6
7893 else
7894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895 /* end confdefs.h. */
7896 int i;
7897 _ACEOF
7898 if ac_fn_c_try_compile "$LINENO"; then :
7899 xorg_cv_cc_flag_unknown_warning_option=yes
7900 else
7901 xorg_cv_cc_flag_unknown_warning_option=no
7902 fi
7903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7904 fi
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7906 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7907 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7908 CFLAGS="$xorg_testset_save_CFLAGS"
7909 fi
7910
7911 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7914 fi
7915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7917 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7918 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7919 $as_echo_n "(cached) " >&6
7920 else
7921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7922 /* end confdefs.h. */
7923 int i;
7924 _ACEOF
7925 if ac_fn_c_try_compile "$LINENO"; then :
7926 xorg_cv_cc_flag_unused_command_line_argument=yes
7927 else
7928 xorg_cv_cc_flag_unused_command_line_argument=no
7929 fi
7930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7931 fi
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7933 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7934 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7935 CFLAGS="$xorg_testset_save_CFLAGS"
7936 fi
7937
7938 found="no"
7939
7940 if test $found = "no" ; then
7941 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7943 fi
7944
7945 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7947 fi
7948
7949 CFLAGS="$CFLAGS -Werror=init-self"
7950
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7952 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7953 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7954 if eval \${$cacheid+:} false; then :
7955 $as_echo_n "(cached) " >&6
7956 else
7957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958 /* end confdefs.h. */
7959 int i;
7960 int
7961 main ()
7962 {
7963
7964 ;
7965 return 0;
7966 }
7967 _ACEOF
7968 if ac_fn_c_try_link "$LINENO"; then :
7969 eval $cacheid=yes
7970 else
7971 eval $cacheid=no
7972 fi
7973 rm -f core conftest.err conftest.$ac_objext \
7974 conftest$ac_exeext conftest.$ac_ext
7975 fi
7976
7977
7978 CFLAGS="$xorg_testset_save_CFLAGS"
7979
7980 eval supported=\$$cacheid
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7982 $as_echo "$supported" >&6; }
7983 if test "$supported" = "yes" ; then
7984 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7985 found="yes"
7986 fi
7987 fi
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003 xorg_testset_save_CFLAGS="$CFLAGS"
8004
8005 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8008 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8009 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8010 $as_echo_n "(cached) " >&6
8011 else
8012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013 /* end confdefs.h. */
8014 int i;
8015 _ACEOF
8016 if ac_fn_c_try_compile "$LINENO"; then :
8017 xorg_cv_cc_flag_unknown_warning_option=yes
8018 else
8019 xorg_cv_cc_flag_unknown_warning_option=no
8020 fi
8021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8022 fi
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8024 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8025 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8026 CFLAGS="$xorg_testset_save_CFLAGS"
8027 fi
8028
8029 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8032 fi
8033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8035 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8036 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8037 $as_echo_n "(cached) " >&6
8038 else
8039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040 /* end confdefs.h. */
8041 int i;
8042 _ACEOF
8043 if ac_fn_c_try_compile "$LINENO"; then :
8044 xorg_cv_cc_flag_unused_command_line_argument=yes
8045 else
8046 xorg_cv_cc_flag_unused_command_line_argument=no
8047 fi
8048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8049 fi
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8051 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8052 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8053 CFLAGS="$xorg_testset_save_CFLAGS"
8054 fi
8055
8056 found="no"
8057
8058 if test $found = "no" ; then
8059 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8061 fi
8062
8063 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8065 fi
8066
8067 CFLAGS="$CFLAGS -Werror=main"
8068
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
8070 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
8071 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
8072 if eval \${$cacheid+:} false; then :
8073 $as_echo_n "(cached) " >&6
8074 else
8075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8076 /* end confdefs.h. */
8077 int i;
8078 int
8079 main ()
8080 {
8081
8082 ;
8083 return 0;
8084 }
8085 _ACEOF
8086 if ac_fn_c_try_link "$LINENO"; then :
8087 eval $cacheid=yes
8088 else
8089 eval $cacheid=no
8090 fi
8091 rm -f core conftest.err conftest.$ac_objext \
8092 conftest$ac_exeext conftest.$ac_ext
8093 fi
8094
8095
8096 CFLAGS="$xorg_testset_save_CFLAGS"
8097
8098 eval supported=\$$cacheid
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8100 $as_echo "$supported" >&6; }
8101 if test "$supported" = "yes" ; then
8102 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
8103 found="yes"
8104 fi
8105 fi
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121 xorg_testset_save_CFLAGS="$CFLAGS"
8122
8123 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8126 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8127 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8128 $as_echo_n "(cached) " >&6
8129 else
8130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8131 /* end confdefs.h. */
8132 int i;
8133 _ACEOF
8134 if ac_fn_c_try_compile "$LINENO"; then :
8135 xorg_cv_cc_flag_unknown_warning_option=yes
8136 else
8137 xorg_cv_cc_flag_unknown_warning_option=no
8138 fi
8139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8140 fi
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8142 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8143 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8144 CFLAGS="$xorg_testset_save_CFLAGS"
8145 fi
8146
8147 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8150 fi
8151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8153 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8154 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8155 $as_echo_n "(cached) " >&6
8156 else
8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158 /* end confdefs.h. */
8159 int i;
8160 _ACEOF
8161 if ac_fn_c_try_compile "$LINENO"; then :
8162 xorg_cv_cc_flag_unused_command_line_argument=yes
8163 else
8164 xorg_cv_cc_flag_unused_command_line_argument=no
8165 fi
8166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8167 fi
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8169 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8170 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8171 CFLAGS="$xorg_testset_save_CFLAGS"
8172 fi
8173
8174 found="no"
8175
8176 if test $found = "no" ; then
8177 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8179 fi
8180
8181 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8183 fi
8184
8185 CFLAGS="$CFLAGS -Werror=missing-braces"
8186
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8188 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
8189 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
8190 if eval \${$cacheid+:} false; then :
8191 $as_echo_n "(cached) " >&6
8192 else
8193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194 /* end confdefs.h. */
8195 int i;
8196 int
8197 main ()
8198 {
8199
8200 ;
8201 return 0;
8202 }
8203 _ACEOF
8204 if ac_fn_c_try_link "$LINENO"; then :
8205 eval $cacheid=yes
8206 else
8207 eval $cacheid=no
8208 fi
8209 rm -f core conftest.err conftest.$ac_objext \
8210 conftest$ac_exeext conftest.$ac_ext
8211 fi
8212
8213
8214 CFLAGS="$xorg_testset_save_CFLAGS"
8215
8216 eval supported=\$$cacheid
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8218 $as_echo "$supported" >&6; }
8219 if test "$supported" = "yes" ; then
8220 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8221 found="yes"
8222 fi
8223 fi
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239 xorg_testset_save_CFLAGS="$CFLAGS"
8240
8241 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8244 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8245 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8246 $as_echo_n "(cached) " >&6
8247 else
8248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8249 /* end confdefs.h. */
8250 int i;
8251 _ACEOF
8252 if ac_fn_c_try_compile "$LINENO"; then :
8253 xorg_cv_cc_flag_unknown_warning_option=yes
8254 else
8255 xorg_cv_cc_flag_unknown_warning_option=no
8256 fi
8257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8258 fi
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8260 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8261 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8262 CFLAGS="$xorg_testset_save_CFLAGS"
8263 fi
8264
8265 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8268 fi
8269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8271 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8272 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8273 $as_echo_n "(cached) " >&6
8274 else
8275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8276 /* end confdefs.h. */
8277 int i;
8278 _ACEOF
8279 if ac_fn_c_try_compile "$LINENO"; then :
8280 xorg_cv_cc_flag_unused_command_line_argument=yes
8281 else
8282 xorg_cv_cc_flag_unused_command_line_argument=no
8283 fi
8284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8285 fi
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8287 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8288 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8289 CFLAGS="$xorg_testset_save_CFLAGS"
8290 fi
8291
8292 found="no"
8293
8294 if test $found = "no" ; then
8295 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8297 fi
8298
8299 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8301 fi
8302
8303 CFLAGS="$CFLAGS -Werror=sequence-point"
8304
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8306 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
8307 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
8308 if eval \${$cacheid+:} false; then :
8309 $as_echo_n "(cached) " >&6
8310 else
8311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312 /* end confdefs.h. */
8313 int i;
8314 int
8315 main ()
8316 {
8317
8318 ;
8319 return 0;
8320 }
8321 _ACEOF
8322 if ac_fn_c_try_link "$LINENO"; then :
8323 eval $cacheid=yes
8324 else
8325 eval $cacheid=no
8326 fi
8327 rm -f core conftest.err conftest.$ac_objext \
8328 conftest$ac_exeext conftest.$ac_ext
8329 fi
8330
8331
8332 CFLAGS="$xorg_testset_save_CFLAGS"
8333
8334 eval supported=\$$cacheid
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8336 $as_echo "$supported" >&6; }
8337 if test "$supported" = "yes" ; then
8338 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8339 found="yes"
8340 fi
8341 fi
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357 xorg_testset_save_CFLAGS="$CFLAGS"
8358
8359 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8362 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8363 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8364 $as_echo_n "(cached) " >&6
8365 else
8366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8367 /* end confdefs.h. */
8368 int i;
8369 _ACEOF
8370 if ac_fn_c_try_compile "$LINENO"; then :
8371 xorg_cv_cc_flag_unknown_warning_option=yes
8372 else
8373 xorg_cv_cc_flag_unknown_warning_option=no
8374 fi
8375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8376 fi
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8378 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8379 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8380 CFLAGS="$xorg_testset_save_CFLAGS"
8381 fi
8382
8383 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8386 fi
8387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8389 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8390 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8391 $as_echo_n "(cached) " >&6
8392 else
8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h. */
8395 int i;
8396 _ACEOF
8397 if ac_fn_c_try_compile "$LINENO"; then :
8398 xorg_cv_cc_flag_unused_command_line_argument=yes
8399 else
8400 xorg_cv_cc_flag_unused_command_line_argument=no
8401 fi
8402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8403 fi
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8405 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8406 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8407 CFLAGS="$xorg_testset_save_CFLAGS"
8408 fi
8409
8410 found="no"
8411
8412 if test $found = "no" ; then
8413 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8415 fi
8416
8417 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8419 fi
8420
8421 CFLAGS="$CFLAGS -Werror=return-type"
8422
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8424 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
8425 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
8426 if eval \${$cacheid+:} false; then :
8427 $as_echo_n "(cached) " >&6
8428 else
8429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8430 /* end confdefs.h. */
8431 int i;
8432 int
8433 main ()
8434 {
8435
8436 ;
8437 return 0;
8438 }
8439 _ACEOF
8440 if ac_fn_c_try_link "$LINENO"; then :
8441 eval $cacheid=yes
8442 else
8443 eval $cacheid=no
8444 fi
8445 rm -f core conftest.err conftest.$ac_objext \
8446 conftest$ac_exeext conftest.$ac_ext
8447 fi
8448
8449
8450 CFLAGS="$xorg_testset_save_CFLAGS"
8451
8452 eval supported=\$$cacheid
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8454 $as_echo "$supported" >&6; }
8455 if test "$supported" = "yes" ; then
8456 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8457 found="yes"
8458 fi
8459 fi
8460
8461 if test $found = "no" ; then
8462 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8464 fi
8465
8466 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8468 fi
8469
8470 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8471
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8473 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8474 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
8475 if eval \${$cacheid+:} false; then :
8476 $as_echo_n "(cached) " >&6
8477 else
8478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479 /* end confdefs.h. */
8480 int i;
8481 int
8482 main ()
8483 {
8484
8485 ;
8486 return 0;
8487 }
8488 _ACEOF
8489 if ac_fn_c_try_link "$LINENO"; then :
8490 eval $cacheid=yes
8491 else
8492 eval $cacheid=no
8493 fi
8494 rm -f core conftest.err conftest.$ac_objext \
8495 conftest$ac_exeext conftest.$ac_ext
8496 fi
8497
8498
8499 CFLAGS="$xorg_testset_save_CFLAGS"
8500
8501 eval supported=\$$cacheid
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8503 $as_echo "$supported" >&6; }
8504 if test "$supported" = "yes" ; then
8505 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8506 found="yes"
8507 fi
8508 fi
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524 xorg_testset_save_CFLAGS="$CFLAGS"
8525
8526 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8529 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8530 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8531 $as_echo_n "(cached) " >&6
8532 else
8533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8534 /* end confdefs.h. */
8535 int i;
8536 _ACEOF
8537 if ac_fn_c_try_compile "$LINENO"; then :
8538 xorg_cv_cc_flag_unknown_warning_option=yes
8539 else
8540 xorg_cv_cc_flag_unknown_warning_option=no
8541 fi
8542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8543 fi
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8545 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8546 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8547 CFLAGS="$xorg_testset_save_CFLAGS"
8548 fi
8549
8550 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8553 fi
8554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8556 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8557 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8558 $as_echo_n "(cached) " >&6
8559 else
8560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8561 /* end confdefs.h. */
8562 int i;
8563 _ACEOF
8564 if ac_fn_c_try_compile "$LINENO"; then :
8565 xorg_cv_cc_flag_unused_command_line_argument=yes
8566 else
8567 xorg_cv_cc_flag_unused_command_line_argument=no
8568 fi
8569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8570 fi
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8572 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8573 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8574 CFLAGS="$xorg_testset_save_CFLAGS"
8575 fi
8576
8577 found="no"
8578
8579 if test $found = "no" ; then
8580 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8582 fi
8583
8584 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8586 fi
8587
8588 CFLAGS="$CFLAGS -Werror=trigraphs"
8589
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8591 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8592 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
8593 if eval \${$cacheid+:} false; then :
8594 $as_echo_n "(cached) " >&6
8595 else
8596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8597 /* end confdefs.h. */
8598 int i;
8599 int
8600 main ()
8601 {
8602
8603 ;
8604 return 0;
8605 }
8606 _ACEOF
8607 if ac_fn_c_try_link "$LINENO"; then :
8608 eval $cacheid=yes
8609 else
8610 eval $cacheid=no
8611 fi
8612 rm -f core conftest.err conftest.$ac_objext \
8613 conftest$ac_exeext conftest.$ac_ext
8614 fi
8615
8616
8617 CFLAGS="$xorg_testset_save_CFLAGS"
8618
8619 eval supported=\$$cacheid
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8621 $as_echo "$supported" >&6; }
8622 if test "$supported" = "yes" ; then
8623 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8624 found="yes"
8625 fi
8626 fi
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642 xorg_testset_save_CFLAGS="$CFLAGS"
8643
8644 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8647 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8648 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8649 $as_echo_n "(cached) " >&6
8650 else
8651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8652 /* end confdefs.h. */
8653 int i;
8654 _ACEOF
8655 if ac_fn_c_try_compile "$LINENO"; then :
8656 xorg_cv_cc_flag_unknown_warning_option=yes
8657 else
8658 xorg_cv_cc_flag_unknown_warning_option=no
8659 fi
8660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8661 fi
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8663 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8664 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8665 CFLAGS="$xorg_testset_save_CFLAGS"
8666 fi
8667
8668 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8671 fi
8672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8674 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8675 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8676 $as_echo_n "(cached) " >&6
8677 else
8678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8679 /* end confdefs.h. */
8680 int i;
8681 _ACEOF
8682 if ac_fn_c_try_compile "$LINENO"; then :
8683 xorg_cv_cc_flag_unused_command_line_argument=yes
8684 else
8685 xorg_cv_cc_flag_unused_command_line_argument=no
8686 fi
8687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8688 fi
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8690 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8691 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8692 CFLAGS="$xorg_testset_save_CFLAGS"
8693 fi
8694
8695 found="no"
8696
8697 if test $found = "no" ; then
8698 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8700 fi
8701
8702 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8704 fi
8705
8706 CFLAGS="$CFLAGS -Werror=array-bounds"
8707
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8709 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8710 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
8711 if eval \${$cacheid+:} false; then :
8712 $as_echo_n "(cached) " >&6
8713 else
8714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8715 /* end confdefs.h. */
8716 int i;
8717 int
8718 main ()
8719 {
8720
8721 ;
8722 return 0;
8723 }
8724 _ACEOF
8725 if ac_fn_c_try_link "$LINENO"; then :
8726 eval $cacheid=yes
8727 else
8728 eval $cacheid=no
8729 fi
8730 rm -f core conftest.err conftest.$ac_objext \
8731 conftest$ac_exeext conftest.$ac_ext
8732 fi
8733
8734
8735 CFLAGS="$xorg_testset_save_CFLAGS"
8736
8737 eval supported=\$$cacheid
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8739 $as_echo "$supported" >&6; }
8740 if test "$supported" = "yes" ; then
8741 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8742 found="yes"
8743 fi
8744 fi
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760 xorg_testset_save_CFLAGS="$CFLAGS"
8761
8762 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8765 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8766 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8767 $as_echo_n "(cached) " >&6
8768 else
8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770 /* end confdefs.h. */
8771 int i;
8772 _ACEOF
8773 if ac_fn_c_try_compile "$LINENO"; then :
8774 xorg_cv_cc_flag_unknown_warning_option=yes
8775 else
8776 xorg_cv_cc_flag_unknown_warning_option=no
8777 fi
8778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8779 fi
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8781 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8782 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8783 CFLAGS="$xorg_testset_save_CFLAGS"
8784 fi
8785
8786 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8788 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8789 fi
8790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8792 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8793 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8794 $as_echo_n "(cached) " >&6
8795 else
8796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8797 /* end confdefs.h. */
8798 int i;
8799 _ACEOF
8800 if ac_fn_c_try_compile "$LINENO"; then :
8801 xorg_cv_cc_flag_unused_command_line_argument=yes
8802 else
8803 xorg_cv_cc_flag_unused_command_line_argument=no
8804 fi
8805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8806 fi
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8808 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8809 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8810 CFLAGS="$xorg_testset_save_CFLAGS"
8811 fi
8812
8813 found="no"
8814
8815 if test $found = "no" ; then
8816 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8818 fi
8819
8820 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8822 fi
8823
8824 CFLAGS="$CFLAGS -Werror=write-strings"
8825
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8827 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8828 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8829 if eval \${$cacheid+:} false; then :
8830 $as_echo_n "(cached) " >&6
8831 else
8832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833 /* end confdefs.h. */
8834 int i;
8835 int
8836 main ()
8837 {
8838
8839 ;
8840 return 0;
8841 }
8842 _ACEOF
8843 if ac_fn_c_try_link "$LINENO"; then :
8844 eval $cacheid=yes
8845 else
8846 eval $cacheid=no
8847 fi
8848 rm -f core conftest.err conftest.$ac_objext \
8849 conftest$ac_exeext conftest.$ac_ext
8850 fi
8851
8852
8853 CFLAGS="$xorg_testset_save_CFLAGS"
8854
8855 eval supported=\$$cacheid
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8857 $as_echo "$supported" >&6; }
8858 if test "$supported" = "yes" ; then
8859 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8860 found="yes"
8861 fi
8862 fi
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878 xorg_testset_save_CFLAGS="$CFLAGS"
8879
8880 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8883 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8884 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8885 $as_echo_n "(cached) " >&6
8886 else
8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8888 /* end confdefs.h. */
8889 int i;
8890 _ACEOF
8891 if ac_fn_c_try_compile "$LINENO"; then :
8892 xorg_cv_cc_flag_unknown_warning_option=yes
8893 else
8894 xorg_cv_cc_flag_unknown_warning_option=no
8895 fi
8896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8897 fi
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8899 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8900 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8901 CFLAGS="$xorg_testset_save_CFLAGS"
8902 fi
8903
8904 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8907 fi
8908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8910 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8911 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8912 $as_echo_n "(cached) " >&6
8913 else
8914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8915 /* end confdefs.h. */
8916 int i;
8917 _ACEOF
8918 if ac_fn_c_try_compile "$LINENO"; then :
8919 xorg_cv_cc_flag_unused_command_line_argument=yes
8920 else
8921 xorg_cv_cc_flag_unused_command_line_argument=no
8922 fi
8923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8924 fi
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8926 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8927 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8928 CFLAGS="$xorg_testset_save_CFLAGS"
8929 fi
8930
8931 found="no"
8932
8933 if test $found = "no" ; then
8934 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8936 fi
8937
8938 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8940 fi
8941
8942 CFLAGS="$CFLAGS -Werror=address"
8943
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8945 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8946 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8947 if eval \${$cacheid+:} false; then :
8948 $as_echo_n "(cached) " >&6
8949 else
8950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8951 /* end confdefs.h. */
8952 int i;
8953 int
8954 main ()
8955 {
8956
8957 ;
8958 return 0;
8959 }
8960 _ACEOF
8961 if ac_fn_c_try_link "$LINENO"; then :
8962 eval $cacheid=yes
8963 else
8964 eval $cacheid=no
8965 fi
8966 rm -f core conftest.err conftest.$ac_objext \
8967 conftest$ac_exeext conftest.$ac_ext
8968 fi
8969
8970
8971 CFLAGS="$xorg_testset_save_CFLAGS"
8972
8973 eval supported=\$$cacheid
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8975 $as_echo "$supported" >&6; }
8976 if test "$supported" = "yes" ; then
8977 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8978 found="yes"
8979 fi
8980 fi
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996 xorg_testset_save_CFLAGS="$CFLAGS"
8997
8998 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8999 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9001 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9002 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9003 $as_echo_n "(cached) " >&6
9004 else
9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006 /* end confdefs.h. */
9007 int i;
9008 _ACEOF
9009 if ac_fn_c_try_compile "$LINENO"; then :
9010 xorg_cv_cc_flag_unknown_warning_option=yes
9011 else
9012 xorg_cv_cc_flag_unknown_warning_option=no
9013 fi
9014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9015 fi
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9017 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9018 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9019 CFLAGS="$xorg_testset_save_CFLAGS"
9020 fi
9021
9022 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9025 fi
9026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9028 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9029 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9030 $as_echo_n "(cached) " >&6
9031 else
9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033 /* end confdefs.h. */
9034 int i;
9035 _ACEOF
9036 if ac_fn_c_try_compile "$LINENO"; then :
9037 xorg_cv_cc_flag_unused_command_line_argument=yes
9038 else
9039 xorg_cv_cc_flag_unused_command_line_argument=no
9040 fi
9041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9042 fi
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9044 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9045 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9046 CFLAGS="$xorg_testset_save_CFLAGS"
9047 fi
9048
9049 found="no"
9050
9051 if test $found = "no" ; then
9052 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9054 fi
9055
9056 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9058 fi
9059
9060 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9061
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9063 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9064 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
9065 if eval \${$cacheid+:} false; then :
9066 $as_echo_n "(cached) " >&6
9067 else
9068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9069 /* end confdefs.h. */
9070 int i;
9071 int
9072 main ()
9073 {
9074
9075 ;
9076 return 0;
9077 }
9078 _ACEOF
9079 if ac_fn_c_try_link "$LINENO"; then :
9080 eval $cacheid=yes
9081 else
9082 eval $cacheid=no
9083 fi
9084 rm -f core conftest.err conftest.$ac_objext \
9085 conftest$ac_exeext conftest.$ac_ext
9086 fi
9087
9088
9089 CFLAGS="$xorg_testset_save_CFLAGS"
9090
9091 eval supported=\$$cacheid
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9093 $as_echo "$supported" >&6; }
9094 if test "$supported" = "yes" ; then
9095 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9096 found="yes"
9097 fi
9098 fi
9099
9100 if test $found = "no" ; then
9101 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9103 fi
9104
9105 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9107 fi
9108
9109 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9110
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9112 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9113 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
9114 if eval \${$cacheid+:} false; then :
9115 $as_echo_n "(cached) " >&6
9116 else
9117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9118 /* end confdefs.h. */
9119 int i;
9120 int
9121 main ()
9122 {
9123
9124 ;
9125 return 0;
9126 }
9127 _ACEOF
9128 if ac_fn_c_try_link "$LINENO"; then :
9129 eval $cacheid=yes
9130 else
9131 eval $cacheid=no
9132 fi
9133 rm -f core conftest.err conftest.$ac_objext \
9134 conftest$ac_exeext conftest.$ac_ext
9135 fi
9136
9137
9138 CFLAGS="$xorg_testset_save_CFLAGS"
9139
9140 eval supported=\$$cacheid
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9142 $as_echo "$supported" >&6; }
9143 if test "$supported" = "yes" ; then
9144 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9145 found="yes"
9146 fi
9147 fi
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163 xorg_testset_save_CFLAGS="$CFLAGS"
9164
9165 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9166 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9168 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9169 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9170 $as_echo_n "(cached) " >&6
9171 else
9172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9173 /* end confdefs.h. */
9174 int i;
9175 _ACEOF
9176 if ac_fn_c_try_compile "$LINENO"; then :
9177 xorg_cv_cc_flag_unknown_warning_option=yes
9178 else
9179 xorg_cv_cc_flag_unknown_warning_option=no
9180 fi
9181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9182 fi
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9184 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9185 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9186 CFLAGS="$xorg_testset_save_CFLAGS"
9187 fi
9188
9189 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9192 fi
9193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9195 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9196 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9197 $as_echo_n "(cached) " >&6
9198 else
9199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200 /* end confdefs.h. */
9201 int i;
9202 _ACEOF
9203 if ac_fn_c_try_compile "$LINENO"; then :
9204 xorg_cv_cc_flag_unused_command_line_argument=yes
9205 else
9206 xorg_cv_cc_flag_unused_command_line_argument=no
9207 fi
9208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9209 fi
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9211 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9212 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9213 CFLAGS="$xorg_testset_save_CFLAGS"
9214 fi
9215
9216 found="no"
9217
9218 if test $found = "no" ; then
9219 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9221 fi
9222
9223 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9225 fi
9226
9227 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9228
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9230 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9231 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
9232 if eval \${$cacheid+:} false; then :
9233 $as_echo_n "(cached) " >&6
9234 else
9235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9236 /* end confdefs.h. */
9237 int i;
9238 int
9239 main ()
9240 {
9241
9242 ;
9243 return 0;
9244 }
9245 _ACEOF
9246 if ac_fn_c_try_link "$LINENO"; then :
9247 eval $cacheid=yes
9248 else
9249 eval $cacheid=no
9250 fi
9251 rm -f core conftest.err conftest.$ac_objext \
9252 conftest$ac_exeext conftest.$ac_ext
9253 fi
9254
9255
9256 CFLAGS="$xorg_testset_save_CFLAGS"
9257
9258 eval supported=\$$cacheid
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9260 $as_echo "$supported" >&6; }
9261 if test "$supported" = "yes" ; then
9262 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9263 found="yes"
9264 fi
9265 fi
9266
9267 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9268 else
9269 { $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
9270 $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;}
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284 xorg_testset_save_CFLAGS="$CFLAGS"
9285
9286 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9289 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9290 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9291 $as_echo_n "(cached) " >&6
9292 else
9293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9294 /* end confdefs.h. */
9295 int i;
9296 _ACEOF
9297 if ac_fn_c_try_compile "$LINENO"; then :
9298 xorg_cv_cc_flag_unknown_warning_option=yes
9299 else
9300 xorg_cv_cc_flag_unknown_warning_option=no
9301 fi
9302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9303 fi
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9305 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9306 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9307 CFLAGS="$xorg_testset_save_CFLAGS"
9308 fi
9309
9310 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9313 fi
9314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9316 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9317 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9318 $as_echo_n "(cached) " >&6
9319 else
9320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9321 /* end confdefs.h. */
9322 int i;
9323 _ACEOF
9324 if ac_fn_c_try_compile "$LINENO"; then :
9325 xorg_cv_cc_flag_unused_command_line_argument=yes
9326 else
9327 xorg_cv_cc_flag_unused_command_line_argument=no
9328 fi
9329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9330 fi
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9332 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9333 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9334 CFLAGS="$xorg_testset_save_CFLAGS"
9335 fi
9336
9337 found="no"
9338
9339 if test $found = "no" ; then
9340 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9342 fi
9343
9344 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9346 fi
9347
9348 CFLAGS="$CFLAGS -Wimplicit"
9349
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9351 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
9352 cacheid=xorg_cv_cc_flag__Wimplicit
9353 if eval \${$cacheid+:} false; then :
9354 $as_echo_n "(cached) " >&6
9355 else
9356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9357 /* end confdefs.h. */
9358 int i;
9359 int
9360 main ()
9361 {
9362
9363 ;
9364 return 0;
9365 }
9366 _ACEOF
9367 if ac_fn_c_try_link "$LINENO"; then :
9368 eval $cacheid=yes
9369 else
9370 eval $cacheid=no
9371 fi
9372 rm -f core conftest.err conftest.$ac_objext \
9373 conftest$ac_exeext conftest.$ac_ext
9374 fi
9375
9376
9377 CFLAGS="$xorg_testset_save_CFLAGS"
9378
9379 eval supported=\$$cacheid
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9381 $as_echo "$supported" >&6; }
9382 if test "$supported" = "yes" ; then
9383 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9384 found="yes"
9385 fi
9386 fi
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402 xorg_testset_save_CFLAGS="$CFLAGS"
9403
9404 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9407 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9408 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9409 $as_echo_n "(cached) " >&6
9410 else
9411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412 /* end confdefs.h. */
9413 int i;
9414 _ACEOF
9415 if ac_fn_c_try_compile "$LINENO"; then :
9416 xorg_cv_cc_flag_unknown_warning_option=yes
9417 else
9418 xorg_cv_cc_flag_unknown_warning_option=no
9419 fi
9420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9421 fi
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9423 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9424 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9425 CFLAGS="$xorg_testset_save_CFLAGS"
9426 fi
9427
9428 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9431 fi
9432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9434 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9435 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9436 $as_echo_n "(cached) " >&6
9437 else
9438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9439 /* end confdefs.h. */
9440 int i;
9441 _ACEOF
9442 if ac_fn_c_try_compile "$LINENO"; then :
9443 xorg_cv_cc_flag_unused_command_line_argument=yes
9444 else
9445 xorg_cv_cc_flag_unused_command_line_argument=no
9446 fi
9447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9448 fi
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9450 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9451 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9452 CFLAGS="$xorg_testset_save_CFLAGS"
9453 fi
9454
9455 found="no"
9456
9457 if test $found = "no" ; then
9458 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9460 fi
9461
9462 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9464 fi
9465
9466 CFLAGS="$CFLAGS -Wnonnull"
9467
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9469 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
9470 cacheid=xorg_cv_cc_flag__Wnonnull
9471 if eval \${$cacheid+:} false; then :
9472 $as_echo_n "(cached) " >&6
9473 else
9474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475 /* end confdefs.h. */
9476 int i;
9477 int
9478 main ()
9479 {
9480
9481 ;
9482 return 0;
9483 }
9484 _ACEOF
9485 if ac_fn_c_try_link "$LINENO"; then :
9486 eval $cacheid=yes
9487 else
9488 eval $cacheid=no
9489 fi
9490 rm -f core conftest.err conftest.$ac_objext \
9491 conftest$ac_exeext conftest.$ac_ext
9492 fi
9493
9494
9495 CFLAGS="$xorg_testset_save_CFLAGS"
9496
9497 eval supported=\$$cacheid
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9499 $as_echo "$supported" >&6; }
9500 if test "$supported" = "yes" ; then
9501 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9502 found="yes"
9503 fi
9504 fi
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520 xorg_testset_save_CFLAGS="$CFLAGS"
9521
9522 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9525 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9526 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9527 $as_echo_n "(cached) " >&6
9528 else
9529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530 /* end confdefs.h. */
9531 int i;
9532 _ACEOF
9533 if ac_fn_c_try_compile "$LINENO"; then :
9534 xorg_cv_cc_flag_unknown_warning_option=yes
9535 else
9536 xorg_cv_cc_flag_unknown_warning_option=no
9537 fi
9538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9539 fi
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9541 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9543 CFLAGS="$xorg_testset_save_CFLAGS"
9544 fi
9545
9546 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9549 fi
9550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9552 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9553 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9554 $as_echo_n "(cached) " >&6
9555 else
9556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9557 /* end confdefs.h. */
9558 int i;
9559 _ACEOF
9560 if ac_fn_c_try_compile "$LINENO"; then :
9561 xorg_cv_cc_flag_unused_command_line_argument=yes
9562 else
9563 xorg_cv_cc_flag_unused_command_line_argument=no
9564 fi
9565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9566 fi
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9568 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9569 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9570 CFLAGS="$xorg_testset_save_CFLAGS"
9571 fi
9572
9573 found="no"
9574
9575 if test $found = "no" ; then
9576 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9578 fi
9579
9580 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9582 fi
9583
9584 CFLAGS="$CFLAGS -Winit-self"
9585
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9587 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9588 cacheid=xorg_cv_cc_flag__Winit_self
9589 if eval \${$cacheid+:} false; then :
9590 $as_echo_n "(cached) " >&6
9591 else
9592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593 /* end confdefs.h. */
9594 int i;
9595 int
9596 main ()
9597 {
9598
9599 ;
9600 return 0;
9601 }
9602 _ACEOF
9603 if ac_fn_c_try_link "$LINENO"; then :
9604 eval $cacheid=yes
9605 else
9606 eval $cacheid=no
9607 fi
9608 rm -f core conftest.err conftest.$ac_objext \
9609 conftest$ac_exeext conftest.$ac_ext
9610 fi
9611
9612
9613 CFLAGS="$xorg_testset_save_CFLAGS"
9614
9615 eval supported=\$$cacheid
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9617 $as_echo "$supported" >&6; }
9618 if test "$supported" = "yes" ; then
9619 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9620 found="yes"
9621 fi
9622 fi
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638 xorg_testset_save_CFLAGS="$CFLAGS"
9639
9640 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9641 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9643 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9644 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9645 $as_echo_n "(cached) " >&6
9646 else
9647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9648 /* end confdefs.h. */
9649 int i;
9650 _ACEOF
9651 if ac_fn_c_try_compile "$LINENO"; then :
9652 xorg_cv_cc_flag_unknown_warning_option=yes
9653 else
9654 xorg_cv_cc_flag_unknown_warning_option=no
9655 fi
9656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9657 fi
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9659 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9660 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9661 CFLAGS="$xorg_testset_save_CFLAGS"
9662 fi
9663
9664 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9667 fi
9668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9670 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9671 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9672 $as_echo_n "(cached) " >&6
9673 else
9674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9675 /* end confdefs.h. */
9676 int i;
9677 _ACEOF
9678 if ac_fn_c_try_compile "$LINENO"; then :
9679 xorg_cv_cc_flag_unused_command_line_argument=yes
9680 else
9681 xorg_cv_cc_flag_unused_command_line_argument=no
9682 fi
9683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9684 fi
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9686 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9687 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9688 CFLAGS="$xorg_testset_save_CFLAGS"
9689 fi
9690
9691 found="no"
9692
9693 if test $found = "no" ; then
9694 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9696 fi
9697
9698 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9700 fi
9701
9702 CFLAGS="$CFLAGS -Wmain"
9703
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9705 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9706 cacheid=xorg_cv_cc_flag__Wmain
9707 if eval \${$cacheid+:} false; then :
9708 $as_echo_n "(cached) " >&6
9709 else
9710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711 /* end confdefs.h. */
9712 int i;
9713 int
9714 main ()
9715 {
9716
9717 ;
9718 return 0;
9719 }
9720 _ACEOF
9721 if ac_fn_c_try_link "$LINENO"; then :
9722 eval $cacheid=yes
9723 else
9724 eval $cacheid=no
9725 fi
9726 rm -f core conftest.err conftest.$ac_objext \
9727 conftest$ac_exeext conftest.$ac_ext
9728 fi
9729
9730
9731 CFLAGS="$xorg_testset_save_CFLAGS"
9732
9733 eval supported=\$$cacheid
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9735 $as_echo "$supported" >&6; }
9736 if test "$supported" = "yes" ; then
9737 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9738 found="yes"
9739 fi
9740 fi
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756 xorg_testset_save_CFLAGS="$CFLAGS"
9757
9758 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9759 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9761 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9762 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9763 $as_echo_n "(cached) " >&6
9764 else
9765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9766 /* end confdefs.h. */
9767 int i;
9768 _ACEOF
9769 if ac_fn_c_try_compile "$LINENO"; then :
9770 xorg_cv_cc_flag_unknown_warning_option=yes
9771 else
9772 xorg_cv_cc_flag_unknown_warning_option=no
9773 fi
9774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9775 fi
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9777 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9778 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9779 CFLAGS="$xorg_testset_save_CFLAGS"
9780 fi
9781
9782 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9785 fi
9786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9788 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9789 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9790 $as_echo_n "(cached) " >&6
9791 else
9792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9793 /* end confdefs.h. */
9794 int i;
9795 _ACEOF
9796 if ac_fn_c_try_compile "$LINENO"; then :
9797 xorg_cv_cc_flag_unused_command_line_argument=yes
9798 else
9799 xorg_cv_cc_flag_unused_command_line_argument=no
9800 fi
9801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9802 fi
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9804 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9806 CFLAGS="$xorg_testset_save_CFLAGS"
9807 fi
9808
9809 found="no"
9810
9811 if test $found = "no" ; then
9812 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9814 fi
9815
9816 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9818 fi
9819
9820 CFLAGS="$CFLAGS -Wmissing-braces"
9821
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9823 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9824 cacheid=xorg_cv_cc_flag__Wmissing_braces
9825 if eval \${$cacheid+:} false; then :
9826 $as_echo_n "(cached) " >&6
9827 else
9828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9829 /* end confdefs.h. */
9830 int i;
9831 int
9832 main ()
9833 {
9834
9835 ;
9836 return 0;
9837 }
9838 _ACEOF
9839 if ac_fn_c_try_link "$LINENO"; then :
9840 eval $cacheid=yes
9841 else
9842 eval $cacheid=no
9843 fi
9844 rm -f core conftest.err conftest.$ac_objext \
9845 conftest$ac_exeext conftest.$ac_ext
9846 fi
9847
9848
9849 CFLAGS="$xorg_testset_save_CFLAGS"
9850
9851 eval supported=\$$cacheid
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9853 $as_echo "$supported" >&6; }
9854 if test "$supported" = "yes" ; then
9855 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9856 found="yes"
9857 fi
9858 fi
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874 xorg_testset_save_CFLAGS="$CFLAGS"
9875
9876 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9879 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9880 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9881 $as_echo_n "(cached) " >&6
9882 else
9883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9884 /* end confdefs.h. */
9885 int i;
9886 _ACEOF
9887 if ac_fn_c_try_compile "$LINENO"; then :
9888 xorg_cv_cc_flag_unknown_warning_option=yes
9889 else
9890 xorg_cv_cc_flag_unknown_warning_option=no
9891 fi
9892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9893 fi
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9895 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9896 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9897 CFLAGS="$xorg_testset_save_CFLAGS"
9898 fi
9899
9900 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9903 fi
9904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9906 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9907 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9908 $as_echo_n "(cached) " >&6
9909 else
9910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9911 /* end confdefs.h. */
9912 int i;
9913 _ACEOF
9914 if ac_fn_c_try_compile "$LINENO"; then :
9915 xorg_cv_cc_flag_unused_command_line_argument=yes
9916 else
9917 xorg_cv_cc_flag_unused_command_line_argument=no
9918 fi
9919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9920 fi
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9922 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9923 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9924 CFLAGS="$xorg_testset_save_CFLAGS"
9925 fi
9926
9927 found="no"
9928
9929 if test $found = "no" ; then
9930 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9931 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9932 fi
9933
9934 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9936 fi
9937
9938 CFLAGS="$CFLAGS -Wsequence-point"
9939
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9941 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9942 cacheid=xorg_cv_cc_flag__Wsequence_point
9943 if eval \${$cacheid+:} false; then :
9944 $as_echo_n "(cached) " >&6
9945 else
9946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9947 /* end confdefs.h. */
9948 int i;
9949 int
9950 main ()
9951 {
9952
9953 ;
9954 return 0;
9955 }
9956 _ACEOF
9957 if ac_fn_c_try_link "$LINENO"; then :
9958 eval $cacheid=yes
9959 else
9960 eval $cacheid=no
9961 fi
9962 rm -f core conftest.err conftest.$ac_objext \
9963 conftest$ac_exeext conftest.$ac_ext
9964 fi
9965
9966
9967 CFLAGS="$xorg_testset_save_CFLAGS"
9968
9969 eval supported=\$$cacheid
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9971 $as_echo "$supported" >&6; }
9972 if test "$supported" = "yes" ; then
9973 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9974 found="yes"
9975 fi
9976 fi
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992 xorg_testset_save_CFLAGS="$CFLAGS"
9993
9994 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9997 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9998 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9999 $as_echo_n "(cached) " >&6
10000 else
10001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10002 /* end confdefs.h. */
10003 int i;
10004 _ACEOF
10005 if ac_fn_c_try_compile "$LINENO"; then :
10006 xorg_cv_cc_flag_unknown_warning_option=yes
10007 else
10008 xorg_cv_cc_flag_unknown_warning_option=no
10009 fi
10010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10011 fi
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10013 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10015 CFLAGS="$xorg_testset_save_CFLAGS"
10016 fi
10017
10018 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10021 fi
10022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10024 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10025 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10026 $as_echo_n "(cached) " >&6
10027 else
10028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10029 /* end confdefs.h. */
10030 int i;
10031 _ACEOF
10032 if ac_fn_c_try_compile "$LINENO"; then :
10033 xorg_cv_cc_flag_unused_command_line_argument=yes
10034 else
10035 xorg_cv_cc_flag_unused_command_line_argument=no
10036 fi
10037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10038 fi
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10040 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10041 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10042 CFLAGS="$xorg_testset_save_CFLAGS"
10043 fi
10044
10045 found="no"
10046
10047 if test $found = "no" ; then
10048 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10050 fi
10051
10052 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10054 fi
10055
10056 CFLAGS="$CFLAGS -Wreturn-type"
10057
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10059 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
10060 cacheid=xorg_cv_cc_flag__Wreturn_type
10061 if eval \${$cacheid+:} false; then :
10062 $as_echo_n "(cached) " >&6
10063 else
10064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10065 /* end confdefs.h. */
10066 int i;
10067 int
10068 main ()
10069 {
10070
10071 ;
10072 return 0;
10073 }
10074 _ACEOF
10075 if ac_fn_c_try_link "$LINENO"; then :
10076 eval $cacheid=yes
10077 else
10078 eval $cacheid=no
10079 fi
10080 rm -f core conftest.err conftest.$ac_objext \
10081 conftest$ac_exeext conftest.$ac_ext
10082 fi
10083
10084
10085 CFLAGS="$xorg_testset_save_CFLAGS"
10086
10087 eval supported=\$$cacheid
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10089 $as_echo "$supported" >&6; }
10090 if test "$supported" = "yes" ; then
10091 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10092 found="yes"
10093 fi
10094 fi
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110 xorg_testset_save_CFLAGS="$CFLAGS"
10111
10112 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10115 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10116 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10117 $as_echo_n "(cached) " >&6
10118 else
10119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10120 /* end confdefs.h. */
10121 int i;
10122 _ACEOF
10123 if ac_fn_c_try_compile "$LINENO"; then :
10124 xorg_cv_cc_flag_unknown_warning_option=yes
10125 else
10126 xorg_cv_cc_flag_unknown_warning_option=no
10127 fi
10128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10129 fi
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10131 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10132 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10133 CFLAGS="$xorg_testset_save_CFLAGS"
10134 fi
10135
10136 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10139 fi
10140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10142 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10143 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10144 $as_echo_n "(cached) " >&6
10145 else
10146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147 /* end confdefs.h. */
10148 int i;
10149 _ACEOF
10150 if ac_fn_c_try_compile "$LINENO"; then :
10151 xorg_cv_cc_flag_unused_command_line_argument=yes
10152 else
10153 xorg_cv_cc_flag_unused_command_line_argument=no
10154 fi
10155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10156 fi
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10158 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10159 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10160 CFLAGS="$xorg_testset_save_CFLAGS"
10161 fi
10162
10163 found="no"
10164
10165 if test $found = "no" ; then
10166 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10168 fi
10169
10170 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10172 fi
10173
10174 CFLAGS="$CFLAGS -Wtrigraphs"
10175
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10177 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
10178 cacheid=xorg_cv_cc_flag__Wtrigraphs
10179 if eval \${$cacheid+:} false; then :
10180 $as_echo_n "(cached) " >&6
10181 else
10182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10183 /* end confdefs.h. */
10184 int i;
10185 int
10186 main ()
10187 {
10188
10189 ;
10190 return 0;
10191 }
10192 _ACEOF
10193 if ac_fn_c_try_link "$LINENO"; then :
10194 eval $cacheid=yes
10195 else
10196 eval $cacheid=no
10197 fi
10198 rm -f core conftest.err conftest.$ac_objext \
10199 conftest$ac_exeext conftest.$ac_ext
10200 fi
10201
10202
10203 CFLAGS="$xorg_testset_save_CFLAGS"
10204
10205 eval supported=\$$cacheid
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10207 $as_echo "$supported" >&6; }
10208 if test "$supported" = "yes" ; then
10209 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10210 found="yes"
10211 fi
10212 fi
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228 xorg_testset_save_CFLAGS="$CFLAGS"
10229
10230 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10233 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10234 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10235 $as_echo_n "(cached) " >&6
10236 else
10237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238 /* end confdefs.h. */
10239 int i;
10240 _ACEOF
10241 if ac_fn_c_try_compile "$LINENO"; then :
10242 xorg_cv_cc_flag_unknown_warning_option=yes
10243 else
10244 xorg_cv_cc_flag_unknown_warning_option=no
10245 fi
10246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10247 fi
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10249 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10250 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10251 CFLAGS="$xorg_testset_save_CFLAGS"
10252 fi
10253
10254 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10257 fi
10258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10260 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10261 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10262 $as_echo_n "(cached) " >&6
10263 else
10264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10265 /* end confdefs.h. */
10266 int i;
10267 _ACEOF
10268 if ac_fn_c_try_compile "$LINENO"; then :
10269 xorg_cv_cc_flag_unused_command_line_argument=yes
10270 else
10271 xorg_cv_cc_flag_unused_command_line_argument=no
10272 fi
10273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10274 fi
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10276 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10277 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10278 CFLAGS="$xorg_testset_save_CFLAGS"
10279 fi
10280
10281 found="no"
10282
10283 if test $found = "no" ; then
10284 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10286 fi
10287
10288 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10290 fi
10291
10292 CFLAGS="$CFLAGS -Warray-bounds"
10293
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10295 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
10296 cacheid=xorg_cv_cc_flag__Warray_bounds
10297 if eval \${$cacheid+:} false; then :
10298 $as_echo_n "(cached) " >&6
10299 else
10300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10301 /* end confdefs.h. */
10302 int i;
10303 int
10304 main ()
10305 {
10306
10307 ;
10308 return 0;
10309 }
10310 _ACEOF
10311 if ac_fn_c_try_link "$LINENO"; then :
10312 eval $cacheid=yes
10313 else
10314 eval $cacheid=no
10315 fi
10316 rm -f core conftest.err conftest.$ac_objext \
10317 conftest$ac_exeext conftest.$ac_ext
10318 fi
10319
10320
10321 CFLAGS="$xorg_testset_save_CFLAGS"
10322
10323 eval supported=\$$cacheid
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10325 $as_echo "$supported" >&6; }
10326 if test "$supported" = "yes" ; then
10327 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10328 found="yes"
10329 fi
10330 fi
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346 xorg_testset_save_CFLAGS="$CFLAGS"
10347
10348 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10351 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10352 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10353 $as_echo_n "(cached) " >&6
10354 else
10355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10356 /* end confdefs.h. */
10357 int i;
10358 _ACEOF
10359 if ac_fn_c_try_compile "$LINENO"; then :
10360 xorg_cv_cc_flag_unknown_warning_option=yes
10361 else
10362 xorg_cv_cc_flag_unknown_warning_option=no
10363 fi
10364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10365 fi
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10367 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10368 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10369 CFLAGS="$xorg_testset_save_CFLAGS"
10370 fi
10371
10372 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10375 fi
10376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10378 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10379 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10380 $as_echo_n "(cached) " >&6
10381 else
10382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10383 /* end confdefs.h. */
10384 int i;
10385 _ACEOF
10386 if ac_fn_c_try_compile "$LINENO"; then :
10387 xorg_cv_cc_flag_unused_command_line_argument=yes
10388 else
10389 xorg_cv_cc_flag_unused_command_line_argument=no
10390 fi
10391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10392 fi
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10394 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10395 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10396 CFLAGS="$xorg_testset_save_CFLAGS"
10397 fi
10398
10399 found="no"
10400
10401 if test $found = "no" ; then
10402 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10404 fi
10405
10406 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10408 fi
10409
10410 CFLAGS="$CFLAGS -Wwrite-strings"
10411
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10413 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
10414 cacheid=xorg_cv_cc_flag__Wwrite_strings
10415 if eval \${$cacheid+:} false; then :
10416 $as_echo_n "(cached) " >&6
10417 else
10418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10419 /* end confdefs.h. */
10420 int i;
10421 int
10422 main ()
10423 {
10424
10425 ;
10426 return 0;
10427 }
10428 _ACEOF
10429 if ac_fn_c_try_link "$LINENO"; then :
10430 eval $cacheid=yes
10431 else
10432 eval $cacheid=no
10433 fi
10434 rm -f core conftest.err conftest.$ac_objext \
10435 conftest$ac_exeext conftest.$ac_ext
10436 fi
10437
10438
10439 CFLAGS="$xorg_testset_save_CFLAGS"
10440
10441 eval supported=\$$cacheid
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10443 $as_echo "$supported" >&6; }
10444 if test "$supported" = "yes" ; then
10445 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10446 found="yes"
10447 fi
10448 fi
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464 xorg_testset_save_CFLAGS="$CFLAGS"
10465
10466 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10469 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10470 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10471 $as_echo_n "(cached) " >&6
10472 else
10473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10474 /* end confdefs.h. */
10475 int i;
10476 _ACEOF
10477 if ac_fn_c_try_compile "$LINENO"; then :
10478 xorg_cv_cc_flag_unknown_warning_option=yes
10479 else
10480 xorg_cv_cc_flag_unknown_warning_option=no
10481 fi
10482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10483 fi
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10485 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10486 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10487 CFLAGS="$xorg_testset_save_CFLAGS"
10488 fi
10489
10490 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10493 fi
10494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10496 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10497 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10498 $as_echo_n "(cached) " >&6
10499 else
10500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10501 /* end confdefs.h. */
10502 int i;
10503 _ACEOF
10504 if ac_fn_c_try_compile "$LINENO"; then :
10505 xorg_cv_cc_flag_unused_command_line_argument=yes
10506 else
10507 xorg_cv_cc_flag_unused_command_line_argument=no
10508 fi
10509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10510 fi
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10512 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10513 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10514 CFLAGS="$xorg_testset_save_CFLAGS"
10515 fi
10516
10517 found="no"
10518
10519 if test $found = "no" ; then
10520 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10522 fi
10523
10524 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10526 fi
10527
10528 CFLAGS="$CFLAGS -Waddress"
10529
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10531 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
10532 cacheid=xorg_cv_cc_flag__Waddress
10533 if eval \${$cacheid+:} false; then :
10534 $as_echo_n "(cached) " >&6
10535 else
10536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10537 /* end confdefs.h. */
10538 int i;
10539 int
10540 main ()
10541 {
10542
10543 ;
10544 return 0;
10545 }
10546 _ACEOF
10547 if ac_fn_c_try_link "$LINENO"; then :
10548 eval $cacheid=yes
10549 else
10550 eval $cacheid=no
10551 fi
10552 rm -f core conftest.err conftest.$ac_objext \
10553 conftest$ac_exeext conftest.$ac_ext
10554 fi
10555
10556
10557 CFLAGS="$xorg_testset_save_CFLAGS"
10558
10559 eval supported=\$$cacheid
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10561 $as_echo "$supported" >&6; }
10562 if test "$supported" = "yes" ; then
10563 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10564 found="yes"
10565 fi
10566 fi
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582 xorg_testset_save_CFLAGS="$CFLAGS"
10583
10584 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10587 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10588 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10589 $as_echo_n "(cached) " >&6
10590 else
10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10592 /* end confdefs.h. */
10593 int i;
10594 _ACEOF
10595 if ac_fn_c_try_compile "$LINENO"; then :
10596 xorg_cv_cc_flag_unknown_warning_option=yes
10597 else
10598 xorg_cv_cc_flag_unknown_warning_option=no
10599 fi
10600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10601 fi
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10603 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10604 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10605 CFLAGS="$xorg_testset_save_CFLAGS"
10606 fi
10607
10608 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10611 fi
10612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10614 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10615 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10616 $as_echo_n "(cached) " >&6
10617 else
10618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10619 /* end confdefs.h. */
10620 int i;
10621 _ACEOF
10622 if ac_fn_c_try_compile "$LINENO"; then :
10623 xorg_cv_cc_flag_unused_command_line_argument=yes
10624 else
10625 xorg_cv_cc_flag_unused_command_line_argument=no
10626 fi
10627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10628 fi
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10630 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10631 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10632 CFLAGS="$xorg_testset_save_CFLAGS"
10633 fi
10634
10635 found="no"
10636
10637 if test $found = "no" ; then
10638 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10640 fi
10641
10642 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10644 fi
10645
10646 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10647
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10649 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10650 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10651 if eval \${$cacheid+:} false; then :
10652 $as_echo_n "(cached) " >&6
10653 else
10654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10655 /* end confdefs.h. */
10656 int i;
10657 int
10658 main ()
10659 {
10660
10661 ;
10662 return 0;
10663 }
10664 _ACEOF
10665 if ac_fn_c_try_link "$LINENO"; then :
10666 eval $cacheid=yes
10667 else
10668 eval $cacheid=no
10669 fi
10670 rm -f core conftest.err conftest.$ac_objext \
10671 conftest$ac_exeext conftest.$ac_ext
10672 fi
10673
10674
10675 CFLAGS="$xorg_testset_save_CFLAGS"
10676
10677 eval supported=\$$cacheid
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10679 $as_echo "$supported" >&6; }
10680 if test "$supported" = "yes" ; then
10681 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10682 found="yes"
10683 fi
10684 fi
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700 xorg_testset_save_CFLAGS="$CFLAGS"
10701
10702 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10705 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10706 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10707 $as_echo_n "(cached) " >&6
10708 else
10709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10710 /* end confdefs.h. */
10711 int i;
10712 _ACEOF
10713 if ac_fn_c_try_compile "$LINENO"; then :
10714 xorg_cv_cc_flag_unknown_warning_option=yes
10715 else
10716 xorg_cv_cc_flag_unknown_warning_option=no
10717 fi
10718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10719 fi
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10721 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10722 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10723 CFLAGS="$xorg_testset_save_CFLAGS"
10724 fi
10725
10726 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10729 fi
10730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10732 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10733 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10734 $as_echo_n "(cached) " >&6
10735 else
10736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10737 /* end confdefs.h. */
10738 int i;
10739 _ACEOF
10740 if ac_fn_c_try_compile "$LINENO"; then :
10741 xorg_cv_cc_flag_unused_command_line_argument=yes
10742 else
10743 xorg_cv_cc_flag_unused_command_line_argument=no
10744 fi
10745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10746 fi
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10748 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10749 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10750 CFLAGS="$xorg_testset_save_CFLAGS"
10751 fi
10752
10753 found="no"
10754
10755 if test $found = "no" ; then
10756 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10758 fi
10759
10760 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10762 fi
10763
10764 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10765
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10767 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10768 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10769 if eval \${$cacheid+:} false; then :
10770 $as_echo_n "(cached) " >&6
10771 else
10772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10773 /* end confdefs.h. */
10774 int i;
10775 int
10776 main ()
10777 {
10778
10779 ;
10780 return 0;
10781 }
10782 _ACEOF
10783 if ac_fn_c_try_link "$LINENO"; then :
10784 eval $cacheid=yes
10785 else
10786 eval $cacheid=no
10787 fi
10788 rm -f core conftest.err conftest.$ac_objext \
10789 conftest$ac_exeext conftest.$ac_ext
10790 fi
10791
10792
10793 CFLAGS="$xorg_testset_save_CFLAGS"
10794
10795 eval supported=\$$cacheid
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10797 $as_echo "$supported" >&6; }
10798 if test "$supported" = "yes" ; then
10799 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10800 found="yes"
10801 fi
10802 fi
10803
10804
10805 fi
10806
10807
10808
10809
10810
10811
10812
10813 CWARNFLAGS="$BASE_CFLAGS"
10814 if test "x$GCC" = xyes ; then
10815 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10816 fi
10817
10818
10819
10820
10821
10822
10823
10824
10825 # Check whether --enable-strict-compilation was given.
10826 if test "${enable_strict_compilation+set}" = set; then :
10827 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10828 else
10829 STRICT_COMPILE=no
10830 fi
10831
10832
10833
10834
10835
10836
10837 STRICT_CFLAGS=""
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851 xorg_testset_save_CFLAGS="$CFLAGS"
10852
10853 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10856 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10857 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10858 $as_echo_n "(cached) " >&6
10859 else
10860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10861 /* end confdefs.h. */
10862 int i;
10863 _ACEOF
10864 if ac_fn_c_try_compile "$LINENO"; then :
10865 xorg_cv_cc_flag_unknown_warning_option=yes
10866 else
10867 xorg_cv_cc_flag_unknown_warning_option=no
10868 fi
10869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10870 fi
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10872 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10873 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10874 CFLAGS="$xorg_testset_save_CFLAGS"
10875 fi
10876
10877 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10879 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10880 fi
10881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10883 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10884 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10885 $as_echo_n "(cached) " >&6
10886 else
10887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10888 /* end confdefs.h. */
10889 int i;
10890 _ACEOF
10891 if ac_fn_c_try_compile "$LINENO"; then :
10892 xorg_cv_cc_flag_unused_command_line_argument=yes
10893 else
10894 xorg_cv_cc_flag_unused_command_line_argument=no
10895 fi
10896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10897 fi
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10899 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10900 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10901 CFLAGS="$xorg_testset_save_CFLAGS"
10902 fi
10903
10904 found="no"
10905
10906 if test $found = "no" ; then
10907 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10909 fi
10910
10911 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10913 fi
10914
10915 CFLAGS="$CFLAGS -pedantic"
10916
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10918 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10919 cacheid=xorg_cv_cc_flag__pedantic
10920 if eval \${$cacheid+:} false; then :
10921 $as_echo_n "(cached) " >&6
10922 else
10923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10924 /* end confdefs.h. */
10925 int i;
10926 int
10927 main ()
10928 {
10929
10930 ;
10931 return 0;
10932 }
10933 _ACEOF
10934 if ac_fn_c_try_link "$LINENO"; then :
10935 eval $cacheid=yes
10936 else
10937 eval $cacheid=no
10938 fi
10939 rm -f core conftest.err conftest.$ac_objext \
10940 conftest$ac_exeext conftest.$ac_ext
10941 fi
10942
10943
10944 CFLAGS="$xorg_testset_save_CFLAGS"
10945
10946 eval supported=\$$cacheid
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10948 $as_echo "$supported" >&6; }
10949 if test "$supported" = "yes" ; then
10950 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10951 found="yes"
10952 fi
10953 fi
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969 xorg_testset_save_CFLAGS="$CFLAGS"
10970
10971 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10974 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10975 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10976 $as_echo_n "(cached) " >&6
10977 else
10978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10979 /* end confdefs.h. */
10980 int i;
10981 _ACEOF
10982 if ac_fn_c_try_compile "$LINENO"; then :
10983 xorg_cv_cc_flag_unknown_warning_option=yes
10984 else
10985 xorg_cv_cc_flag_unknown_warning_option=no
10986 fi
10987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10988 fi
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10990 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10991 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10992 CFLAGS="$xorg_testset_save_CFLAGS"
10993 fi
10994
10995 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10998 fi
10999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11001 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11002 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11003 $as_echo_n "(cached) " >&6
11004 else
11005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11006 /* end confdefs.h. */
11007 int i;
11008 _ACEOF
11009 if ac_fn_c_try_compile "$LINENO"; then :
11010 xorg_cv_cc_flag_unused_command_line_argument=yes
11011 else
11012 xorg_cv_cc_flag_unused_command_line_argument=no
11013 fi
11014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11015 fi
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11017 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11018 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11019 CFLAGS="$xorg_testset_save_CFLAGS"
11020 fi
11021
11022 found="no"
11023
11024 if test $found = "no" ; then
11025 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11027 fi
11028
11029 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11031 fi
11032
11033 CFLAGS="$CFLAGS -Werror"
11034
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11036 $as_echo_n "checking if $CC supports -Werror... " >&6; }
11037 cacheid=xorg_cv_cc_flag__Werror
11038 if eval \${$cacheid+:} false; then :
11039 $as_echo_n "(cached) " >&6
11040 else
11041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11042 /* end confdefs.h. */
11043 int i;
11044 int
11045 main ()
11046 {
11047
11048 ;
11049 return 0;
11050 }
11051 _ACEOF
11052 if ac_fn_c_try_link "$LINENO"; then :
11053 eval $cacheid=yes
11054 else
11055 eval $cacheid=no
11056 fi
11057 rm -f core conftest.err conftest.$ac_objext \
11058 conftest$ac_exeext conftest.$ac_ext
11059 fi
11060
11061
11062 CFLAGS="$xorg_testset_save_CFLAGS"
11063
11064 eval supported=\$$cacheid
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11066 $as_echo "$supported" >&6; }
11067 if test "$supported" = "yes" ; then
11068 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11069 found="yes"
11070 fi
11071 fi
11072
11073 if test $found = "no" ; then
11074 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11076 fi
11077
11078 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11080 fi
11081
11082 CFLAGS="$CFLAGS -errwarn"
11083
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11085 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
11086 cacheid=xorg_cv_cc_flag__errwarn
11087 if eval \${$cacheid+:} false; then :
11088 $as_echo_n "(cached) " >&6
11089 else
11090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11091 /* end confdefs.h. */
11092 int i;
11093 int
11094 main ()
11095 {
11096
11097 ;
11098 return 0;
11099 }
11100 _ACEOF
11101 if ac_fn_c_try_link "$LINENO"; then :
11102 eval $cacheid=yes
11103 else
11104 eval $cacheid=no
11105 fi
11106 rm -f core conftest.err conftest.$ac_objext \
11107 conftest$ac_exeext conftest.$ac_ext
11108 fi
11109
11110
11111 CFLAGS="$xorg_testset_save_CFLAGS"
11112
11113 eval supported=\$$cacheid
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11115 $as_echo "$supported" >&6; }
11116 if test "$supported" = "yes" ; then
11117 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11118 found="yes"
11119 fi
11120 fi
11121
11122
11123
11124 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11125 # activate it with -Werror, so we add it here explicitly.
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139 xorg_testset_save_CFLAGS="$CFLAGS"
11140
11141 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11144 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11145 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11146 $as_echo_n "(cached) " >&6
11147 else
11148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149 /* end confdefs.h. */
11150 int i;
11151 _ACEOF
11152 if ac_fn_c_try_compile "$LINENO"; then :
11153 xorg_cv_cc_flag_unknown_warning_option=yes
11154 else
11155 xorg_cv_cc_flag_unknown_warning_option=no
11156 fi
11157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11158 fi
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11160 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11161 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11162 CFLAGS="$xorg_testset_save_CFLAGS"
11163 fi
11164
11165 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11168 fi
11169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11171 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11172 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11173 $as_echo_n "(cached) " >&6
11174 else
11175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11176 /* end confdefs.h. */
11177 int i;
11178 _ACEOF
11179 if ac_fn_c_try_compile "$LINENO"; then :
11180 xorg_cv_cc_flag_unused_command_line_argument=yes
11181 else
11182 xorg_cv_cc_flag_unused_command_line_argument=no
11183 fi
11184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11185 fi
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11187 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11188 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11189 CFLAGS="$xorg_testset_save_CFLAGS"
11190 fi
11191
11192 found="no"
11193
11194 if test $found = "no" ; then
11195 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11197 fi
11198
11199 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11201 fi
11202
11203 CFLAGS="$CFLAGS -Werror=attributes"
11204
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11206 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
11207 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
11208 if eval \${$cacheid+:} false; then :
11209 $as_echo_n "(cached) " >&6
11210 else
11211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11212 /* end confdefs.h. */
11213 int i;
11214 int
11215 main ()
11216 {
11217
11218 ;
11219 return 0;
11220 }
11221 _ACEOF
11222 if ac_fn_c_try_link "$LINENO"; then :
11223 eval $cacheid=yes
11224 else
11225 eval $cacheid=no
11226 fi
11227 rm -f core conftest.err conftest.$ac_objext \
11228 conftest$ac_exeext conftest.$ac_ext
11229 fi
11230
11231
11232 CFLAGS="$xorg_testset_save_CFLAGS"
11233
11234 eval supported=\$$cacheid
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11236 $as_echo "$supported" >&6; }
11237 if test "$supported" = "yes" ; then
11238 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11239 found="yes"
11240 fi
11241 fi
11242
11243
11244
11245 if test "x$STRICT_COMPILE" = "xyes"; then
11246 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11247 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11248 fi
11249
11250
11251
11252
11253
11254
11255 cat >>confdefs.h <<_ACEOF
11256 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11257 _ACEOF
11258
11259 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11260 if test "x$PVM" = "x"; then
11261 PVM="0"
11262 fi
11263
11264 cat >>confdefs.h <<_ACEOF
11265 #define PACKAGE_VERSION_MINOR $PVM
11266 _ACEOF
11267
11268 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11269 if test "x$PVP" = "x"; then
11270 PVP="0"
11271 fi
11272
11273 cat >>confdefs.h <<_ACEOF
11274 #define PACKAGE_VERSION_PATCHLEVEL $PVP
11275 _ACEOF
11276
11277
11278
11279 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
11280 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11281 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
11282 echo 'git directory not found: installing possibly empty changelog.' >&2)"
11283
11284
11285
11286
11287 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11288 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11289 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11290 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
11291 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
11292
11293
11294
11295
11296
11297
11298 if test x$APP_MAN_SUFFIX = x ; then
11299 APP_MAN_SUFFIX=1
11300 fi
11301 if test x$APP_MAN_DIR = x ; then
11302 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11303 fi
11304
11305 if test x$LIB_MAN_SUFFIX = x ; then
11306 LIB_MAN_SUFFIX=3
11307 fi
11308 if test x$LIB_MAN_DIR = x ; then
11309 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11310 fi
11311
11312 if test x$FILE_MAN_SUFFIX = x ; then
11313 case $host_os in
11314 solaris*) FILE_MAN_SUFFIX=4 ;;
11315 *) FILE_MAN_SUFFIX=5 ;;
11316 esac
11317 fi
11318 if test x$FILE_MAN_DIR = x ; then
11319 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11320 fi
11321
11322 if test x$MISC_MAN_SUFFIX = x ; then
11323 case $host_os in
11324 solaris*) MISC_MAN_SUFFIX=5 ;;
11325 *) MISC_MAN_SUFFIX=7 ;;
11326 esac
11327 fi
11328 if test x$MISC_MAN_DIR = x ; then
11329 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11330 fi
11331
11332 if test x$DRIVER_MAN_SUFFIX = x ; then
11333 case $host_os in
11334 solaris*) DRIVER_MAN_SUFFIX=7 ;;
11335 *) DRIVER_MAN_SUFFIX=4 ;;
11336 esac
11337 fi
11338 if test x$DRIVER_MAN_DIR = x ; then
11339 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11340 fi
11341
11342 if test x$ADMIN_MAN_SUFFIX = x ; then
11343 case $host_os in
11344 solaris*) ADMIN_MAN_SUFFIX=1m ;;
11345 *) ADMIN_MAN_SUFFIX=8 ;;
11346 esac
11347 fi
11348 if test x$ADMIN_MAN_DIR = x ; then
11349 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11350 fi
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366 XORG_MAN_PAGE="X Version 11"
11367
11368 MAN_SUBSTS="\
11369 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11370 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11371 -e 's|__xservername__|Xorg|g' \
11372 -e 's|__xconfigfile__|xorg.conf|g' \
11373 -e 's|__projectroot__|\$(prefix)|g' \
11374 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11375 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11376 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11377 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11378 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11379 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11380 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11381
11382
11383
11384 # Check whether --enable-silent-rules was given.
11385 if test "${enable_silent_rules+set}" = set; then :
11386 enableval=$enable_silent_rules;
11387 fi
11388
11389 case $enable_silent_rules in # (((
11390 yes) AM_DEFAULT_VERBOSITY=0;;
11391 no) AM_DEFAULT_VERBOSITY=1;;
11392 *) AM_DEFAULT_VERBOSITY=0;;
11393 esac
11394 am_make=${MAKE-make}
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11396 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
11397 if ${am_cv_make_support_nested_variables+:} false; then :
11398 $as_echo_n "(cached) " >&6
11399 else
11400 if $as_echo 'TRUE=$(BAR$(V))
11401 BAR0=false
11402 BAR1=true
11403 V=1
11404 am__doit:
11405 @$(TRUE)
11406 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11407 am_cv_make_support_nested_variables=yes
11408 else
11409 am_cv_make_support_nested_variables=no
11410 fi
11411 fi
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11413 $as_echo "$am_cv_make_support_nested_variables" >&6; }
11414 if test $am_cv_make_support_nested_variables = yes; then
11415 AM_V='$(V)'
11416 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11417 else
11418 AM_V=$AM_DEFAULT_VERBOSITY
11419 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11420 fi
11421 AM_BACKSLASH='\'
11422
11423
11424
11425 # Checks for library functions
11426 for ac_func in strlcat
11427 do :
11428 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
11429 if test "x$ac_cv_func_strlcat" = xyes; then :
11430 cat >>confdefs.h <<_ACEOF
11431 #define HAVE_STRLCAT 1
11432 _ACEOF
11433
11434 fi
11435 done
11436
11437
11438 # Use POSIX strnlen or the implementation supplied in this module
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
11440 $as_echo_n "checking for working strnlen... " >&6; }
11441 if ${ac_cv_func_strnlen_working+:} false; then :
11442 $as_echo_n "(cached) " >&6
11443 else
11444 if test "$cross_compiling" = yes; then :
11445 # Guess no on AIX systems, yes otherwise.
11446 case "$host_os" in
11447 aix*) ac_cv_func_strnlen_working=no;;
11448 *) ac_cv_func_strnlen_working=yes;;
11449 esac
11450 else
11451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11452 /* end confdefs.h. */
11453 $ac_includes_default
11454 int
11455 main ()
11456 {
11457
11458 #define S "foobar"
11459 #define S_LEN (sizeof S - 1)
11460
11461 /* At least one implementation is buggy: that of AIX 4.3 would
11462 give strnlen (S, 1) == 3. */
11463
11464 int i;
11465 for (i = 0; i < S_LEN + 1; ++i)
11466 {
11467 int expected = i <= S_LEN ? i : S_LEN;
11468 if (strnlen (S, i) != expected)
11469 return 1;
11470 }
11471 return 0;
11472
11473 ;
11474 return 0;
11475 }
11476 _ACEOF
11477 if ac_fn_c_try_run "$LINENO"; then :
11478 ac_cv_func_strnlen_working=yes
11479 else
11480 ac_cv_func_strnlen_working=no
11481 fi
11482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11483 conftest.$ac_objext conftest.beam conftest.$ac_ext
11484 fi
11485
11486 fi
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
11488 $as_echo "$ac_cv_func_strnlen_working" >&6; }
11489 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
11490 *" strnlen.$ac_objext "* ) ;;
11491 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
11492 ;;
11493 esac
11494
11495
11496 if test "x$ac_cv_func_strnlen_working" = xyes; then
11497
11498 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
11499
11500 fi
11501
11502 # Define a configure option for using the XCB ICCCM helper functions
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xcb-icccm library" >&5
11504 $as_echo_n "checking whether to use xcb-icccm library... " >&6; }
11505
11506 # Check whether --with-xcb-icccm was given.
11507 if test "${with_xcb_icccm+set}" = set; then :
11508 withval=$with_xcb_icccm;
11509 else
11510 with_xcb_icccm=no
11511 fi
11512
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xcb_icccm" >&5
11514 $as_echo "$with_xcb_icccm" >&6; }
11515 if test "x$with_xcb_icccm" != xno ; then
11516
11517 $as_echo "#define USE_XCB_ICCCM 1" >>confdefs.h
11518
11519 xcb_icccm_pc='xcb-icccm >= 0.3.8'
11520 fi
11521
11522 # Obtain compiler/linker options for xwininfo dependencies
11523
11524 pkg_failed=no
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XWININFO" >&5
11526 $as_echo_n "checking for XWININFO... " >&6; }
11527
11528 if test -n "$XWININFO_CFLAGS"; then
11529 pkg_cv_XWININFO_CFLAGS="$XWININFO_CFLAGS"
11530 elif test -n "$PKG_CONFIG"; then
11531 if test -n "$PKG_CONFIG" && \
11532 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.6 xcb-shape \${xcb_icccm_pc}\""; } >&5
11533 ($PKG_CONFIG --exists --print-errors "xcb >= 1.6 xcb-shape ${xcb_icccm_pc}") 2>&5
11534 ac_status=$?
11535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11536 test $ac_status = 0; }; then
11537 pkg_cv_XWININFO_CFLAGS=`$PKG_CONFIG --cflags "xcb >= 1.6 xcb-shape ${xcb_icccm_pc}" 2>/dev/null`
11538 else
11539 pkg_failed=yes
11540 fi
11541 else
11542 pkg_failed=untried
11543 fi
11544 if test -n "$XWININFO_LIBS"; then
11545 pkg_cv_XWININFO_LIBS="$XWININFO_LIBS"
11546 elif test -n "$PKG_CONFIG"; then
11547 if test -n "$PKG_CONFIG" && \
11548 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.6 xcb-shape \${xcb_icccm_pc}\""; } >&5
11549 ($PKG_CONFIG --exists --print-errors "xcb >= 1.6 xcb-shape ${xcb_icccm_pc}") 2>&5
11550 ac_status=$?
11551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11552 test $ac_status = 0; }; then
11553 pkg_cv_XWININFO_LIBS=`$PKG_CONFIG --libs "xcb >= 1.6 xcb-shape ${xcb_icccm_pc}" 2>/dev/null`
11554 else
11555 pkg_failed=yes
11556 fi
11557 else
11558 pkg_failed=untried
11559 fi
11560
11561
11562
11563 if test $pkg_failed = yes; then
11564
11565 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11566 _pkg_short_errors_supported=yes
11567 else
11568 _pkg_short_errors_supported=no
11569 fi
11570 if test $_pkg_short_errors_supported = yes; then
11571 XWININFO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb >= 1.6 xcb-shape ${xcb_icccm_pc}" 2>&1`
11572 else
11573 XWININFO_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb >= 1.6 xcb-shape ${xcb_icccm_pc}" 2>&1`
11574 fi
11575 # Put the nasty error message in config.log where it belongs
11576 echo "$XWININFO_PKG_ERRORS" >&5
11577
11578 as_fn_error $? "Package requirements (xcb >= 1.6 xcb-shape ${xcb_icccm_pc}) were not met:
11579
11580 $XWININFO_PKG_ERRORS
11581
11582 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11583 installed software in a non-standard prefix.
11584
11585 Alternatively, you may set the environment variables XWININFO_CFLAGS
11586 and XWININFO_LIBS to avoid the need to call pkg-config.
11587 See the pkg-config man page for more details.
11588 " "$LINENO" 5
11589 elif test $pkg_failed = untried; then
11590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11592 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11593 is in your PATH or set the PKG_CONFIG environment variable to the full
11594 path to pkg-config.
11595
11596 Alternatively, you may set the environment variables XWININFO_CFLAGS
11597 and XWININFO_LIBS to avoid the need to call pkg-config.
11598 See the pkg-config man page for more details.
11599
11600 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11601 See \`config.log' for more details" "$LINENO" 5; }
11602 else
11603 XWININFO_CFLAGS=$pkg_cv_XWININFO_CFLAGS
11604 XWININFO_LIBS=$pkg_cv_XWININFO_LIBS
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11606 $as_echo "yes" >&6; }
11607 :
11608 fi
11609
11610 # Even when using xcb, xproto is still required for Xfuncproto.h
11611 # and libX11 headers for cursorfont.h
11612
11613 pkg_failed=no
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB" >&5
11615 $as_echo_n "checking for XLIB... " >&6; }
11616
11617 if test -n "$XLIB_CFLAGS"; then
11618 pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS"
11619 elif test -n "$PKG_CONFIG"; then
11620 if test -n "$PKG_CONFIG" && \
11621 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
11622 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
11623 ac_status=$?
11624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11625 test $ac_status = 0; }; then
11626 pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.17" 2>/dev/null`
11627 else
11628 pkg_failed=yes
11629 fi
11630 else
11631 pkg_failed=untried
11632 fi
11633 if test -n "$XLIB_LIBS"; then
11634 pkg_cv_XLIB_LIBS="$XLIB_LIBS"
11635 elif test -n "$PKG_CONFIG"; then
11636 if test -n "$PKG_CONFIG" && \
11637 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
11638 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
11639 ac_status=$?
11640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11641 test $ac_status = 0; }; then
11642 pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.17" 2>/dev/null`
11643 else
11644 pkg_failed=yes
11645 fi
11646 else
11647 pkg_failed=untried
11648 fi
11649
11650
11651
11652 if test $pkg_failed = yes; then
11653
11654 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11655 _pkg_short_errors_supported=yes
11656 else
11657 _pkg_short_errors_supported=no
11658 fi
11659 if test $_pkg_short_errors_supported = yes; then
11660 XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xproto >= 7.0.17" 2>&1`
11661 else
11662 XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xproto >= 7.0.17" 2>&1`
11663 fi
11664 # Put the nasty error message in config.log where it belongs
11665 echo "$XLIB_PKG_ERRORS" >&5
11666
11667 as_fn_error $? "Package requirements (x11 xproto >= 7.0.17) were not met:
11668
11669 $XLIB_PKG_ERRORS
11670
11671 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11672 installed software in a non-standard prefix.
11673
11674 Alternatively, you may set the environment variables XLIB_CFLAGS
11675 and XLIB_LIBS to avoid the need to call pkg-config.
11676 See the pkg-config man page for more details.
11677 " "$LINENO" 5
11678 elif test $pkg_failed = untried; then
11679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11681 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11682 is in your PATH or set the PKG_CONFIG environment variable to the full
11683 path to pkg-config.
11684
11685 Alternatively, you may set the environment variables XLIB_CFLAGS
11686 and XLIB_LIBS to avoid the need to call pkg-config.
11687 See the pkg-config man page for more details.
11688
11689 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11690 See \`config.log' for more details" "$LINENO" 5; }
11691 else
11692 XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS
11693 XLIB_LIBS=$pkg_cv_XLIB_LIBS
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11695 $as_echo "yes" >&6; }
11696 :
11697 fi
11698 XWININFO_CFLAGS="${XWININFO_CFLAGS} ${XLIB_CFLAGS}"
11699 XWININFO_LIBS="${XWININFO_LIBS} ${LIBICONV}"
11700
11701 ac_config_files="$ac_config_files Makefile man/Makefile"
11702
11703 cat >confcache <<\_ACEOF
11704 # This file is a shell script that caches the results of configure
11705 # tests run on this system so they can be shared between configure
11706 # scripts and configure runs, see configure's option --config-cache.
11707 # It is not useful on other systems. If it contains results you don't
11708 # want to keep, you may remove or edit it.
11709 #
11710 # config.status only pays attention to the cache file if you give it
11711 # the --recheck option to rerun configure.
11712 #
11713 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11714 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11715 # following values.
11716
11717 _ACEOF
11718
11719 # The following way of writing the cache mishandles newlines in values,
11720 # but we know of no workaround that is simple, portable, and efficient.
11721 # So, we kill variables containing newlines.
11722 # Ultrix sh set writes to stderr and can't be redirected directly,
11723 # and sets the high bit in the cache file unless we assign to the vars.
11724 (
11725 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11726 eval ac_val=\$$ac_var
11727 case $ac_val in #(
11728 *${as_nl}*)
11729 case $ac_var in #(
11730 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11731 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11732 esac
11733 case $ac_var in #(
11734 _ | IFS | as_nl) ;; #(
11735 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11736 *) { eval $ac_var=; unset $ac_var;} ;;
11737 esac ;;
11738 esac
11739 done
11740
11741 (set) 2>&1 |
11742 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11743 *${as_nl}ac_space=\ *)
11744 # `set' does not quote correctly, so add quotes: double-quote
11745 # substitution turns \\\\ into \\, and sed turns \\ into \.
11746 sed -n \
11747 "s/'/'\\\\''/g;
11748 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11749 ;; #(
11750 *)
11751 # `set' quotes correctly as required by POSIX, so do not add quotes.
11752 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11753 ;;
11754 esac |
11755 sort
11756 ) |
11757 sed '
11758 /^ac_cv_env_/b end
11759 t clear
11760 :clear
11761 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11762 t end
11763 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11764 :end' >>confcache
11765 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11766 if test -w "$cache_file"; then
11767 if test "x$cache_file" != "x/dev/null"; then
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11769 $as_echo "$as_me: updating cache $cache_file" >&6;}
11770 if test ! -f "$cache_file" || test -h "$cache_file"; then
11771 cat confcache >"$cache_file"
11772 else
11773 case $cache_file in #(
11774 */* | ?:*)
11775 mv -f confcache "$cache_file"$$ &&
11776 mv -f "$cache_file"$$ "$cache_file" ;; #(
11777 *)
11778 mv -f confcache "$cache_file" ;;
11779 esac
11780 fi
11781 fi
11782 else
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11784 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11785 fi
11786 fi
11787 rm -f confcache
11788
11789 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11790 # Let make expand exec_prefix.
11791 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11792
11793 DEFS=-DHAVE_CONFIG_H
11794
11795 ac_libobjs=
11796 ac_ltlibobjs=
11797 U=
11798 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11799 # 1. Remove the extension, and $U if already installed.
11800 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11801 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11802 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11803 # will be set to the directory where LIBOBJS objects are built.
11804 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11805 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11806 done
11807 LIBOBJS=$ac_libobjs
11808
11809 LTLIBOBJS=$ac_ltlibobjs
11810
11811
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11813 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11814 if test -n "$am_sleep_pid"; then
11815 # Hide warnings about reused PIDs.
11816 wait $am_sleep_pid 2>/dev/null
11817 fi
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11819 $as_echo "done" >&6; }
11820 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11821 as_fn_error $? "conditional \"AMDEP\" was never defined.
11822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11823 fi
11824 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11825 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11827 fi
11828 if test -n "$EXEEXT"; then
11829 am__EXEEXT_TRUE=
11830 am__EXEEXT_FALSE='#'
11831 else
11832 am__EXEEXT_TRUE='#'
11833 am__EXEEXT_FALSE=
11834 fi
11835
11836 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11837 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11839 fi
11840
11841 : "${CONFIG_STATUS=./config.status}"
11842 ac_write_fail=0
11843 ac_clean_files_save=$ac_clean_files
11844 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11846 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11847 as_write_fail=0
11848 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11849 #! $SHELL
11850 # Generated by $as_me.
11851 # Run this file to recreate the current configuration.
11852 # Compiler output produced by configure, useful for debugging
11853 # configure, is in config.log if it exists.
11854
11855 debug=false
11856 ac_cs_recheck=false
11857 ac_cs_silent=false
11858
11859 SHELL=\${CONFIG_SHELL-$SHELL}
11860 export SHELL
11861 _ASEOF
11862 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11863 ## -------------------- ##
11864 ## M4sh Initialization. ##
11865 ## -------------------- ##
11866
11867 # Be more Bourne compatible
11868 DUALCASE=1; export DUALCASE # for MKS sh
11869 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11870 emulate sh
11871 NULLCMD=:
11872 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11873 # is contrary to our usage. Disable this feature.
11874 alias -g '${1+"$@"}'='"$@"'
11875 setopt NO_GLOB_SUBST
11876 else
11877 case `(set -o) 2>/dev/null` in #(
11878 *posix*) :
11879 set -o posix ;; #(
11880 *) :
11881 ;;
11882 esac
11883 fi
11884
11885
11886 as_nl='
11887 '
11888 export as_nl
11889 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11890 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11891 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11892 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11893 # Prefer a ksh shell builtin over an external printf program on Solaris,
11894 # but without wasting forks for bash or zsh.
11895 if test -z "$BASH_VERSION$ZSH_VERSION" \
11896 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11897 as_echo='print -r --'
11898 as_echo_n='print -rn --'
11899 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11900 as_echo='printf %s\n'
11901 as_echo_n='printf %s'
11902 else
11903 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11904 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11905 as_echo_n='/usr/ucb/echo -n'
11906 else
11907 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11908 as_echo_n_body='eval
11909 arg=$1;
11910 case $arg in #(
11911 *"$as_nl"*)
11912 expr "X$arg" : "X\\(.*\\)$as_nl";
11913 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11914 esac;
11915 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11916 '
11917 export as_echo_n_body
11918 as_echo_n='sh -c $as_echo_n_body as_echo'
11919 fi
11920 export as_echo_body
11921 as_echo='sh -c $as_echo_body as_echo'
11922 fi
11923
11924 # The user is always right.
11925 if test "${PATH_SEPARATOR+set}" != set; then
11926 PATH_SEPARATOR=:
11927 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11928 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11929 PATH_SEPARATOR=';'
11930 }
11931 fi
11932
11933
11934 # IFS
11935 # We need space, tab and new line, in precisely that order. Quoting is
11936 # there to prevent editors from complaining about space-tab.
11937 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11938 # splitting by setting IFS to empty value.)
11939 IFS=" "" $as_nl"
11940
11941 # Find who we are. Look in the path if we contain no directory separator.
11942 as_myself=
11943 case $0 in #((
11944 *[\\/]* ) as_myself=$0 ;;
11945 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11946 for as_dir in $PATH
11947 do
11948 IFS=$as_save_IFS
11949 test -z "$as_dir" && as_dir=.
11950 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11951 done
11952 IFS=$as_save_IFS
11953
11954 ;;
11955 esac
11956 # We did not find ourselves, most probably we were run as `sh COMMAND'
11957 # in which case we are not to be found in the path.
11958 if test "x$as_myself" = x; then
11959 as_myself=$0
11960 fi
11961 if test ! -f "$as_myself"; then
11962 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11963 exit 1
11964 fi
11965
11966 # Unset variables that we do not need and which cause bugs (e.g. in
11967 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11968 # suppresses any "Segmentation fault" message there. '((' could
11969 # trigger a bug in pdksh 5.2.14.
11970 for as_var in BASH_ENV ENV MAIL MAILPATH
11971 do eval test x\${$as_var+set} = xset \
11972 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11973 done
11974 PS1='$ '
11975 PS2='> '
11976 PS4='+ '
11977
11978 # NLS nuisances.
11979 LC_ALL=C
11980 export LC_ALL
11981 LANGUAGE=C
11982 export LANGUAGE
11983
11984 # CDPATH.
11985 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11986
11987
11988 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11989 # ----------------------------------------
11990 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11991 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11992 # script with STATUS, using 1 if that was 0.
11993 as_fn_error ()
11994 {
11995 as_status=$1; test $as_status -eq 0 && as_status=1
11996 if test "$4"; then
11997 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11998 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11999 fi
12000 $as_echo "$as_me: error: $2" >&2
12001 as_fn_exit $as_status
12002 } # as_fn_error
12003
12004
12005 # as_fn_set_status STATUS
12006 # -----------------------
12007 # Set $? to STATUS, without forking.
12008 as_fn_set_status ()
12009 {
12010 return $1
12011 } # as_fn_set_status
12012
12013 # as_fn_exit STATUS
12014 # -----------------
12015 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12016 as_fn_exit ()
12017 {
12018 set +e
12019 as_fn_set_status $1
12020 exit $1
12021 } # as_fn_exit
12022
12023 # as_fn_unset VAR
12024 # ---------------
12025 # Portably unset VAR.
12026 as_fn_unset ()
12027 {
12028 { eval $1=; unset $1;}
12029 }
12030 as_unset=as_fn_unset
12031 # as_fn_append VAR VALUE
12032 # ----------------------
12033 # Append the text in VALUE to the end of the definition contained in VAR. Take
12034 # advantage of any shell optimizations that allow amortized linear growth over
12035 # repeated appends, instead of the typical quadratic growth present in naive
12036 # implementations.
12037 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12038 eval 'as_fn_append ()
12039 {
12040 eval $1+=\$2
12041 }'
12042 else
12043 as_fn_append ()
12044 {
12045 eval $1=\$$1\$2
12046 }
12047 fi # as_fn_append
12048
12049 # as_fn_arith ARG...
12050 # ------------------
12051 # Perform arithmetic evaluation on the ARGs, and store the result in the
12052 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12053 # must be portable across $(()) and expr.
12054 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12055 eval 'as_fn_arith ()
12056 {
12057 as_val=$(( $* ))
12058 }'
12059 else
12060 as_fn_arith ()
12061 {
12062 as_val=`expr "$@" || test $? -eq 1`
12063 }
12064 fi # as_fn_arith
12065
12066
12067 if expr a : '\(a\)' >/dev/null 2>&1 &&
12068 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12069 as_expr=expr
12070 else
12071 as_expr=false
12072 fi
12073
12074 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12075 as_basename=basename
12076 else
12077 as_basename=false
12078 fi
12079
12080 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12081 as_dirname=dirname
12082 else
12083 as_dirname=false
12084 fi
12085
12086 as_me=`$as_basename -- "$0" ||
12087 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12088 X"$0" : 'X\(//\)$' \| \
12089 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12090 $as_echo X/"$0" |
12091 sed '/^.*\/\([^/][^/]*\)\/*$/{
12092 s//\1/
12093 q
12094 }
12095 /^X\/\(\/\/\)$/{
12096 s//\1/
12097 q
12098 }
12099 /^X\/\(\/\).*/{
12100 s//\1/
12101 q
12102 }
12103 s/.*/./; q'`
12104
12105 # Avoid depending upon Character Ranges.
12106 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12107 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12108 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12109 as_cr_digits='0123456789'
12110 as_cr_alnum=$as_cr_Letters$as_cr_digits
12111
12112 ECHO_C= ECHO_N= ECHO_T=
12113 case `echo -n x` in #(((((
12114 -n*)
12115 case `echo 'xy\c'` in
12116 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12117 xy) ECHO_C='\c';;
12118 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12119 ECHO_T=' ';;
12120 esac;;
12121 *)
12122 ECHO_N='-n';;
12123 esac
12124
12125 rm -f conf$$ conf$$.exe conf$$.file
12126 if test -d conf$$.dir; then
12127 rm -f conf$$.dir/conf$$.file
12128 else
12129 rm -f conf$$.dir
12130 mkdir conf$$.dir 2>/dev/null
12131 fi
12132 if (echo >conf$$.file) 2>/dev/null; then
12133 if ln -s conf$$.file conf$$ 2>/dev/null; then
12134 as_ln_s='ln -s'
12135 # ... but there are two gotchas:
12136 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12137 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12138 # In both cases, we have to default to `cp -p'.
12139 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12140 as_ln_s='cp -p'
12141 elif ln conf$$.file conf$$ 2>/dev/null; then
12142 as_ln_s=ln
12143 else
12144 as_ln_s='cp -p'
12145 fi
12146 else
12147 as_ln_s='cp -p'
12148 fi
12149 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12150 rmdir conf$$.dir 2>/dev/null
12151
12152
12153 # as_fn_mkdir_p
12154 # -------------
12155 # Create "$as_dir" as a directory, including parents if necessary.
12156 as_fn_mkdir_p ()
12157 {
12158
12159 case $as_dir in #(
12160 -*) as_dir=./$as_dir;;
12161 esac
12162 test -d "$as_dir" || eval $as_mkdir_p || {
12163 as_dirs=
12164 while :; do
12165 case $as_dir in #(
12166 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12167 *) as_qdir=$as_dir;;
12168 esac
12169 as_dirs="'$as_qdir' $as_dirs"
12170 as_dir=`$as_dirname -- "$as_dir" ||
12171 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12172 X"$as_dir" : 'X\(//\)[^/]' \| \
12173 X"$as_dir" : 'X\(//\)$' \| \
12174 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12175 $as_echo X"$as_dir" |
12176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12177 s//\1/
12178 q
12179 }
12180 /^X\(\/\/\)[^/].*/{
12181 s//\1/
12182 q
12183 }
12184 /^X\(\/\/\)$/{
12185 s//\1/
12186 q
12187 }
12188 /^X\(\/\).*/{
12189 s//\1/
12190 q
12191 }
12192 s/.*/./; q'`
12193 test -d "$as_dir" && break
12194 done
12195 test -z "$as_dirs" || eval "mkdir $as_dirs"
12196 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12197
12198
12199 } # as_fn_mkdir_p
12200 if mkdir -p . 2>/dev/null; then
12201 as_mkdir_p='mkdir -p "$as_dir"'
12202 else
12203 test -d ./-p && rmdir ./-p
12204 as_mkdir_p=false
12205 fi
12206
12207 if test -x / >/dev/null 2>&1; then
12208 as_test_x='test -x'
12209 else
12210 if ls -dL / >/dev/null 2>&1; then
12211 as_ls_L_option=L
12212 else
12213 as_ls_L_option=
12214 fi
12215 as_test_x='
12216 eval sh -c '\''
12217 if test -d "$1"; then
12218 test -d "$1/.";
12219 else
12220 case $1 in #(
12221 -*)set "./$1";;
12222 esac;
12223 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12224 ???[sx]*):;;*)false;;esac;fi
12225 '\'' sh
12226 '
12227 fi
12228 as_executable_p=$as_test_x
12229
12230 # Sed expression to map a string onto a valid CPP name.
12231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12232
12233 # Sed expression to map a string onto a valid variable name.
12234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12235
12236
12237 exec 6>&1
12238 ## ----------------------------------- ##
12239 ## Main body of $CONFIG_STATUS script. ##
12240 ## ----------------------------------- ##
12241 _ASEOF
12242 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12243
12244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12245 # Save the log message, to keep $0 and so on meaningful, and to
12246 # report actual input values of CONFIG_FILES etc. instead of their
12247 # values after options handling.
12248 ac_log="
12249 This file was extended by xwininfo $as_me 1.1.3, which was
12250 generated by GNU Autoconf 2.68. Invocation command line was
12251
12252 CONFIG_FILES = $CONFIG_FILES
12253 CONFIG_HEADERS = $CONFIG_HEADERS
12254 CONFIG_LINKS = $CONFIG_LINKS
12255 CONFIG_COMMANDS = $CONFIG_COMMANDS
12256 $ $0 $@
12257
12258 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12259 "
12260
12261 _ACEOF
12262
12263 case $ac_config_files in *"
12264 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12265 esac
12266
12267 case $ac_config_headers in *"
12268 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12269 esac
12270
12271
12272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12273 # Files that config.status was made for.
12274 config_files="$ac_config_files"
12275 config_headers="$ac_config_headers"
12276 config_commands="$ac_config_commands"
12277
12278 _ACEOF
12279
12280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12281 ac_cs_usage="\
12282 \`$as_me' instantiates files and other configuration actions
12283 from templates according to the current configuration. Unless the files
12284 and actions are specified as TAGs, all are instantiated by default.
12285
12286 Usage: $0 [OPTION]... [TAG]...
12287
12288 -h, --help print this help, then exit
12289 -V, --version print version number and configuration settings, then exit
12290 --config print configuration, then exit
12291 -q, --quiet, --silent
12292 do not print progress messages
12293 -d, --debug don't remove temporary files
12294 --recheck update $as_me by reconfiguring in the same conditions
12295 --file=FILE[:TEMPLATE]
12296 instantiate the configuration file FILE
12297 --header=FILE[:TEMPLATE]
12298 instantiate the configuration header FILE
12299
12300 Configuration files:
12301 $config_files
12302
12303 Configuration headers:
12304 $config_headers
12305
12306 Configuration commands:
12307 $config_commands
12308
12309 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12310
12311 _ACEOF
12312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12313 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12314 ac_cs_version="\\
12315 xwininfo config.status 1.1.3
12316 configured by $0, generated by GNU Autoconf 2.68,
12317 with options \\"\$ac_cs_config\\"
12318
12319 Copyright (C) 2010 Free Software Foundation, Inc.
12320 This config.status script is free software; the Free Software Foundation
12321 gives unlimited permission to copy, distribute and modify it."
12322
12323 ac_pwd='$ac_pwd'
12324 srcdir='$srcdir'
12325 INSTALL='$INSTALL'
12326 MKDIR_P='$MKDIR_P'
12327 AWK='$AWK'
12328 test -n "\$AWK" || AWK=awk
12329 _ACEOF
12330
12331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12332 # The default lists apply if the user does not specify any file.
12333 ac_need_defaults=:
12334 while test $# != 0
12335 do
12336 case $1 in
12337 --*=?*)
12338 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12339 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12340 ac_shift=:
12341 ;;
12342 --*=)
12343 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12344 ac_optarg=
12345 ac_shift=:
12346 ;;
12347 *)
12348 ac_option=$1
12349 ac_optarg=$2
12350 ac_shift=shift
12351 ;;
12352 esac
12353
12354 case $ac_option in
12355 # Handling of the options.
12356 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12357 ac_cs_recheck=: ;;
12358 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12359 $as_echo "$ac_cs_version"; exit ;;
12360 --config | --confi | --conf | --con | --co | --c )
12361 $as_echo "$ac_cs_config"; exit ;;
12362 --debug | --debu | --deb | --de | --d | -d )
12363 debug=: ;;
12364 --file | --fil | --fi | --f )
12365 $ac_shift
12366 case $ac_optarg in
12367 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12368 '') as_fn_error $? "missing file argument" ;;
12369 esac
12370 as_fn_append CONFIG_FILES " '$ac_optarg'"
12371 ac_need_defaults=false;;
12372 --header | --heade | --head | --hea )
12373 $ac_shift
12374 case $ac_optarg in
12375 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12376 esac
12377 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12378 ac_need_defaults=false;;
12379 --he | --h)
12380 # Conflict between --help and --header
12381 as_fn_error $? "ambiguous option: \`$1'
12382 Try \`$0 --help' for more information.";;
12383 --help | --hel | -h )
12384 $as_echo "$ac_cs_usage"; exit ;;
12385 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12386 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12387 ac_cs_silent=: ;;
12388
12389 # This is an error.
12390 -*) as_fn_error $? "unrecognized option: \`$1'
12391 Try \`$0 --help' for more information." ;;
12392
12393 *) as_fn_append ac_config_targets " $1"
12394 ac_need_defaults=false ;;
12395
12396 esac
12397 shift
12398 done
12399
12400 ac_configure_extra_args=
12401
12402 if $ac_cs_silent; then
12403 exec 6>/dev/null
12404 ac_configure_extra_args="$ac_configure_extra_args --silent"
12405 fi
12406
12407 _ACEOF
12408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12409 if \$ac_cs_recheck; then
12410 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12411 shift
12412 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12413 CONFIG_SHELL='$SHELL'
12414 export CONFIG_SHELL
12415 exec "\$@"
12416 fi
12417
12418 _ACEOF
12419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12420 exec 5>>config.log
12421 {
12422 echo
12423 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12424 ## Running $as_me. ##
12425 _ASBOX
12426 $as_echo "$ac_log"
12427 } >&5
12428
12429 _ACEOF
12430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12431 #
12432 # INIT-COMMANDS
12433 #
12434 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12435
12436 _ACEOF
12437
12438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12439
12440 # Handling of arguments.
12441 for ac_config_target in $ac_config_targets
12442 do
12443 case $ac_config_target in
12444 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12445 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12446 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12447 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12448
12449 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12450 esac
12451 done
12452
12453
12454 # If the user did not use the arguments to specify the items to instantiate,
12455 # then the envvar interface is used. Set only those that are not.
12456 # We use the long form for the default assignment because of an extremely
12457 # bizarre bug on SunOS 4.1.3.
12458 if $ac_need_defaults; then
12459 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12460 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12461 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12462 fi
12463
12464 # Have a temporary directory for convenience. Make it in the build tree
12465 # simply because there is no reason against having it here, and in addition,
12466 # creating and moving files from /tmp can sometimes cause problems.
12467 # Hook for its removal unless debugging.
12468 # Note that there is a small window in which the directory will not be cleaned:
12469 # after its creation but before its name has been assigned to `$tmp'.
12470 $debug ||
12471 {
12472 tmp= ac_tmp=
12473 trap 'exit_status=$?
12474 : "${ac_tmp:=$tmp}"
12475 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12476 ' 0
12477 trap 'as_fn_exit 1' 1 2 13 15
12478 }
12479 # Create a (secure) tmp directory for tmp files.
12480
12481 {
12482 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12483 test -d "$tmp"
12484 } ||
12485 {
12486 tmp=./conf$$-$RANDOM
12487 (umask 077 && mkdir "$tmp")
12488 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12489 ac_tmp=$tmp
12490
12491 # Set up the scripts for CONFIG_FILES section.
12492 # No need to generate them if there are no CONFIG_FILES.
12493 # This happens for instance with `./config.status config.h'.
12494 if test -n "$CONFIG_FILES"; then
12495
12496
12497 ac_cr=`echo X | tr X '\015'`
12498 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12499 # But we know of no other shell where ac_cr would be empty at this
12500 # point, so we can use a bashism as a fallback.
12501 if test "x$ac_cr" = x; then
12502 eval ac_cr=\$\'\\r\'
12503 fi
12504 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12505 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12506 ac_cs_awk_cr='\\r'
12507 else
12508 ac_cs_awk_cr=$ac_cr
12509 fi
12510
12511 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12512 _ACEOF
12513
12514
12515 {
12516 echo "cat >conf$$subs.awk <<_ACEOF" &&
12517 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12518 echo "_ACEOF"
12519 } >conf$$subs.sh ||
12520 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12521 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12522 ac_delim='%!_!# '
12523 for ac_last_try in false false false false false :; do
12524 . ./conf$$subs.sh ||
12525 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12526
12527 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12528 if test $ac_delim_n = $ac_delim_num; then
12529 break
12530 elif $ac_last_try; then
12531 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12532 else
12533 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12534 fi
12535 done
12536 rm -f conf$$subs.sh
12537
12538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12539 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12540 _ACEOF
12541 sed -n '
12542 h
12543 s/^/S["/; s/!.*/"]=/
12544 p
12545 g
12546 s/^[^!]*!//
12547 :repl
12548 t repl
12549 s/'"$ac_delim"'$//
12550 t delim
12551 :nl
12552 h
12553 s/\(.\{148\}\)..*/\1/
12554 t more1
12555 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12556 p
12557 n
12558 b repl
12559 :more1
12560 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12561 p
12562 g
12563 s/.\{148\}//
12564 t nl
12565 :delim
12566 h
12567 s/\(.\{148\}\)..*/\1/
12568 t more2
12569 s/["\\]/\\&/g; s/^/"/; s/$/"/
12570 p
12571 b
12572 :more2
12573 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12574 p
12575 g
12576 s/.\{148\}//
12577 t delim
12578 ' <conf$$subs.awk | sed '
12579 /^[^""]/{
12580 N
12581 s/\n//
12582 }
12583 ' >>$CONFIG_STATUS || ac_write_fail=1
12584 rm -f conf$$subs.awk
12585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12586 _ACAWK
12587 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12588 for (key in S) S_is_set[key] = 1
12589 FS = ""
12590
12591 }
12592 {
12593 line = $ 0
12594 nfields = split(line, field, "@")
12595 substed = 0
12596 len = length(field[1])
12597 for (i = 2; i < nfields; i++) {
12598 key = field[i]
12599 keylen = length(key)
12600 if (S_is_set[key]) {
12601 value = S[key]
12602 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12603 len += length(value) + length(field[++i])
12604 substed = 1
12605 } else
12606 len += 1 + keylen
12607 }
12608
12609 print line
12610 }
12611
12612 _ACAWK
12613 _ACEOF
12614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12615 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12616 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12617 else
12618 cat
12619 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12620 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12621 _ACEOF
12622
12623 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12624 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12625 # trailing colons and then remove the whole line if VPATH becomes empty
12626 # (actually we leave an empty line to preserve line numbers).
12627 if test "x$srcdir" = x.; then
12628 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12629 h
12630 s///
12631 s/^/:/
12632 s/[ ]*$/:/
12633 s/:\$(srcdir):/:/g
12634 s/:\${srcdir}:/:/g
12635 s/:@srcdir@:/:/g
12636 s/^:*//
12637 s/:*$//
12638 x
12639 s/\(=[ ]*\).*/\1/
12640 G
12641 s/\n//
12642 s/^[^=]*=[ ]*$//
12643 }'
12644 fi
12645
12646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12647 fi # test -n "$CONFIG_FILES"
12648
12649 # Set up the scripts for CONFIG_HEADERS section.
12650 # No need to generate them if there are no CONFIG_HEADERS.
12651 # This happens for instance with `./config.status Makefile'.
12652 if test -n "$CONFIG_HEADERS"; then
12653 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12654 BEGIN {
12655 _ACEOF
12656
12657 # Transform confdefs.h into an awk script `defines.awk', embedded as
12658 # here-document in config.status, that substitutes the proper values into
12659 # config.h.in to produce config.h.
12660
12661 # Create a delimiter string that does not exist in confdefs.h, to ease
12662 # handling of long lines.
12663 ac_delim='%!_!# '
12664 for ac_last_try in false false :; do
12665 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12666 if test -z "$ac_tt"; then
12667 break
12668 elif $ac_last_try; then
12669 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12670 else
12671 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12672 fi
12673 done
12674
12675 # For the awk script, D is an array of macro values keyed by name,
12676 # likewise P contains macro parameters if any. Preserve backslash
12677 # newline sequences.
12678
12679 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12680 sed -n '
12681 s/.\{148\}/&'"$ac_delim"'/g
12682 t rset
12683 :rset
12684 s/^[ ]*#[ ]*define[ ][ ]*/ /
12685 t def
12686 d
12687 :def
12688 s/\\$//
12689 t bsnl
12690 s/["\\]/\\&/g
12691 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12692 D["\1"]=" \3"/p
12693 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12694 d
12695 :bsnl
12696 s/["\\]/\\&/g
12697 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12698 D["\1"]=" \3\\\\\\n"\\/p
12699 t cont
12700 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12701 t cont
12702 d
12703 :cont
12704 n
12705 s/.\{148\}/&'"$ac_delim"'/g
12706 t clear
12707 :clear
12708 s/\\$//
12709 t bsnlc
12710 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12711 d
12712 :bsnlc
12713 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12714 b cont
12715 ' <confdefs.h | sed '
12716 s/'"$ac_delim"'/"\\\
12717 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12718
12719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12720 for (key in D) D_is_set[key] = 1
12721 FS = ""
12722 }
12723 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12724 line = \$ 0
12725 split(line, arg, " ")
12726 if (arg[1] == "#") {
12727 defundef = arg[2]
12728 mac1 = arg[3]
12729 } else {
12730 defundef = substr(arg[1], 2)
12731 mac1 = arg[2]
12732 }
12733 split(mac1, mac2, "(") #)
12734 macro = mac2[1]
12735 prefix = substr(line, 1, index(line, defundef) - 1)
12736 if (D_is_set[macro]) {
12737 # Preserve the white space surrounding the "#".
12738 print prefix "define", macro P[macro] D[macro]
12739 next
12740 } else {
12741 # Replace #undef with comments. This is necessary, for example,
12742 # in the case of _POSIX_SOURCE, which is predefined and required
12743 # on some systems where configure will not decide to define it.
12744 if (defundef == "undef") {
12745 print "/*", prefix defundef, macro, "*/"
12746 next
12747 }
12748 }
12749 }
12750 { print }
12751 _ACAWK
12752 _ACEOF
12753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12754 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12755 fi # test -n "$CONFIG_HEADERS"
12756
12757
12758 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12759 shift
12760 for ac_tag
12761 do
12762 case $ac_tag in
12763 :[FHLC]) ac_mode=$ac_tag; continue;;
12764 esac
12765 case $ac_mode$ac_tag in
12766 :[FHL]*:*);;
12767 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12768 :[FH]-) ac_tag=-:-;;
12769 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12770 esac
12771 ac_save_IFS=$IFS
12772 IFS=:
12773 set x $ac_tag
12774 IFS=$ac_save_IFS
12775 shift
12776 ac_file=$1
12777 shift
12778
12779 case $ac_mode in
12780 :L) ac_source=$1;;
12781 :[FH])
12782 ac_file_inputs=
12783 for ac_f
12784 do
12785 case $ac_f in
12786 -) ac_f="$ac_tmp/stdin";;
12787 *) # Look for the file first in the build tree, then in the source tree
12788 # (if the path is not absolute). The absolute path cannot be DOS-style,
12789 # because $ac_f cannot contain `:'.
12790 test -f "$ac_f" ||
12791 case $ac_f in
12792 [\\/$]*) false;;
12793 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12794 esac ||
12795 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12796 esac
12797 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12798 as_fn_append ac_file_inputs " '$ac_f'"
12799 done
12800
12801 # Let's still pretend it is `configure' which instantiates (i.e., don't
12802 # use $as_me), people would be surprised to read:
12803 # /* config.h. Generated by config.status. */
12804 configure_input='Generated from '`
12805 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12806 `' by configure.'
12807 if test x"$ac_file" != x-; then
12808 configure_input="$ac_file. $configure_input"
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12810 $as_echo "$as_me: creating $ac_file" >&6;}
12811 fi
12812 # Neutralize special characters interpreted by sed in replacement strings.
12813 case $configure_input in #(
12814 *\&* | *\|* | *\\* )
12815 ac_sed_conf_input=`$as_echo "$configure_input" |
12816 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12817 *) ac_sed_conf_input=$configure_input;;
12818 esac
12819
12820 case $ac_tag in
12821 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12822 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12823 esac
12824 ;;
12825 esac
12826
12827 ac_dir=`$as_dirname -- "$ac_file" ||
12828 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12829 X"$ac_file" : 'X\(//\)[^/]' \| \
12830 X"$ac_file" : 'X\(//\)$' \| \
12831 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12832 $as_echo X"$ac_file" |
12833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12834 s//\1/
12835 q
12836 }
12837 /^X\(\/\/\)[^/].*/{
12838 s//\1/
12839 q
12840 }
12841 /^X\(\/\/\)$/{
12842 s//\1/
12843 q
12844 }
12845 /^X\(\/\).*/{
12846 s//\1/
12847 q
12848 }
12849 s/.*/./; q'`
12850 as_dir="$ac_dir"; as_fn_mkdir_p
12851 ac_builddir=.
12852
12853 case "$ac_dir" in
12854 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12855 *)
12856 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12857 # A ".." for each directory in $ac_dir_suffix.
12858 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12859 case $ac_top_builddir_sub in
12860 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12861 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12862 esac ;;
12863 esac
12864 ac_abs_top_builddir=$ac_pwd
12865 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12866 # for backward compatibility:
12867 ac_top_builddir=$ac_top_build_prefix
12868
12869 case $srcdir in
12870 .) # We are building in place.
12871 ac_srcdir=.
12872 ac_top_srcdir=$ac_top_builddir_sub
12873 ac_abs_top_srcdir=$ac_pwd ;;
12874 [\\/]* | ?:[\\/]* ) # Absolute name.
12875 ac_srcdir=$srcdir$ac_dir_suffix;
12876 ac_top_srcdir=$srcdir
12877 ac_abs_top_srcdir=$srcdir ;;
12878 *) # Relative name.
12879 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12880 ac_top_srcdir=$ac_top_build_prefix$srcdir
12881 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12882 esac
12883 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12884
12885
12886 case $ac_mode in
12887 :F)
12888 #
12889 # CONFIG_FILE
12890 #
12891
12892 case $INSTALL in
12893 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12894 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12895 esac
12896 ac_MKDIR_P=$MKDIR_P
12897 case $MKDIR_P in
12898 [\\/$]* | ?:[\\/]* ) ;;
12899 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12900 esac
12901 _ACEOF
12902
12903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12904 # If the template does not know about datarootdir, expand it.
12905 # FIXME: This hack should be removed a few years after 2.60.
12906 ac_datarootdir_hack=; ac_datarootdir_seen=
12907 ac_sed_dataroot='
12908 /datarootdir/ {
12909 p
12910 q
12911 }
12912 /@datadir@/p
12913 /@docdir@/p
12914 /@infodir@/p
12915 /@localedir@/p
12916 /@mandir@/p'
12917 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12918 *datarootdir*) ac_datarootdir_seen=yes;;
12919 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12921 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12922 _ACEOF
12923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12924 ac_datarootdir_hack='
12925 s&@datadir@&$datadir&g
12926 s&@docdir@&$docdir&g
12927 s&@infodir@&$infodir&g
12928 s&@localedir@&$localedir&g
12929 s&@mandir@&$mandir&g
12930 s&\\\${datarootdir}&$datarootdir&g' ;;
12931 esac
12932 _ACEOF
12933
12934 # Neutralize VPATH when `$srcdir' = `.'.
12935 # Shell code in configure.ac might set extrasub.
12936 # FIXME: do we really want to maintain this feature?
12937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12938 ac_sed_extra="$ac_vpsub
12939 $extrasub
12940 _ACEOF
12941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12942 :t
12943 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12944 s|@configure_input@|$ac_sed_conf_input|;t t
12945 s&@top_builddir@&$ac_top_builddir_sub&;t t
12946 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12947 s&@srcdir@&$ac_srcdir&;t t
12948 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12949 s&@top_srcdir@&$ac_top_srcdir&;t t
12950 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12951 s&@builddir@&$ac_builddir&;t t
12952 s&@abs_builddir@&$ac_abs_builddir&;t t
12953 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12954 s&@INSTALL@&$ac_INSTALL&;t t
12955 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12956 $ac_datarootdir_hack
12957 "
12958 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12959 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12960
12961 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12962 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12963 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12964 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12966 which seems to be undefined. Please make sure it is defined" >&5
12967 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12968 which seems to be undefined. Please make sure it is defined" >&2;}
12969
12970 rm -f "$ac_tmp/stdin"
12971 case $ac_file in
12972 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12973 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12974 esac \
12975 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12976 ;;
12977 :H)
12978 #
12979 # CONFIG_HEADER
12980 #
12981 if test x"$ac_file" != x-; then
12982 {
12983 $as_echo "/* $configure_input */" \
12984 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12985 } >"$ac_tmp/config.h" \
12986 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12987 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12989 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12990 else
12991 rm -f "$ac_file"
12992 mv "$ac_tmp/config.h" "$ac_file" \
12993 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12994 fi
12995 else
12996 $as_echo "/* $configure_input */" \
12997 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12998 || as_fn_error $? "could not create -" "$LINENO" 5
12999 fi
13000 # Compute "$ac_file"'s index in $config_headers.
13001 _am_arg="$ac_file"
13002 _am_stamp_count=1
13003 for _am_header in $config_headers :; do
13004 case $_am_header in
13005 $_am_arg | $_am_arg:* )
13006 break ;;
13007 * )
13008 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13009 esac
13010 done
13011 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13012 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13013 X"$_am_arg" : 'X\(//\)[^/]' \| \
13014 X"$_am_arg" : 'X\(//\)$' \| \
13015 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13016 $as_echo X"$_am_arg" |
13017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13018 s//\1/
13019 q
13020 }
13021 /^X\(\/\/\)[^/].*/{
13022 s//\1/
13023 q
13024 }
13025 /^X\(\/\/\)$/{
13026 s//\1/
13027 q
13028 }
13029 /^X\(\/\).*/{
13030 s//\1/
13031 q
13032 }
13033 s/.*/./; q'`/stamp-h$_am_stamp_count
13034 ;;
13035
13036 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13037 $as_echo "$as_me: executing $ac_file commands" >&6;}
13038 ;;
13039 esac
13040
13041
13042 case $ac_file$ac_mode in
13043 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13044 # Older Autoconf quotes --file arguments for eval, but not when files
13045 # are listed without --file. Let's play safe and only enable the eval
13046 # if we detect the quoting.
13047 case $CONFIG_FILES in
13048 *\'*) eval set x "$CONFIG_FILES" ;;
13049 *) set x $CONFIG_FILES ;;
13050 esac
13051 shift
13052 for mf
13053 do
13054 # Strip MF so we end up with the name of the file.
13055 mf=`echo "$mf" | sed -e 's/:.*$//'`
13056 # Check whether this is an Automake generated Makefile or not.
13057 # We used to match only the files named 'Makefile.in', but
13058 # some people rename them; so instead we look at the file content.
13059 # Grep'ing the first line is not enough: some people post-process
13060 # each Makefile.in and add a new line on top of each file to say so.
13061 # Grep'ing the whole file is not good either: AIX grep has a line
13062 # limit of 2048, but all sed's we know have understand at least 4000.
13063 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13064 dirpart=`$as_dirname -- "$mf" ||
13065 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13066 X"$mf" : 'X\(//\)[^/]' \| \
13067 X"$mf" : 'X\(//\)$' \| \
13068 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13069 $as_echo X"$mf" |
13070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13071 s//\1/
13072 q
13073 }
13074 /^X\(\/\/\)[^/].*/{
13075 s//\1/
13076 q
13077 }
13078 /^X\(\/\/\)$/{
13079 s//\1/
13080 q
13081 }
13082 /^X\(\/\).*/{
13083 s//\1/
13084 q
13085 }
13086 s/.*/./; q'`
13087 else
13088 continue
13089 fi
13090 # Extract the definition of DEPDIR, am__include, and am__quote
13091 # from the Makefile without running 'make'.
13092 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13093 test -z "$DEPDIR" && continue
13094 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13095 test -z "$am__include" && continue
13096 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13097 # Find all dependency output files, they are included files with
13098 # $(DEPDIR) in their names. We invoke sed twice because it is the
13099 # simplest approach to changing $(DEPDIR) to its actual value in the
13100 # expansion.
13101 for file in `sed -n "
13102 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13103 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13104 # Make sure the directory exists.
13105 test -f "$dirpart/$file" && continue
13106 fdir=`$as_dirname -- "$file" ||
13107 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13108 X"$file" : 'X\(//\)[^/]' \| \
13109 X"$file" : 'X\(//\)$' \| \
13110 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13111 $as_echo X"$file" |
13112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13113 s//\1/
13114 q
13115 }
13116 /^X\(\/\/\)[^/].*/{
13117 s//\1/
13118 q
13119 }
13120 /^X\(\/\/\)$/{
13121 s//\1/
13122 q
13123 }
13124 /^X\(\/\).*/{
13125 s//\1/
13126 q
13127 }
13128 s/.*/./; q'`
13129 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13130 # echo "creating $dirpart/$file"
13131 echo '# dummy' > "$dirpart/$file"
13132 done
13133 done
13134 }
13135 ;;
13136
13137 esac
13138 done # for ac_tag
13139
13140
13141 as_fn_exit 0
13142 _ACEOF
13143 ac_clean_files=$ac_clean_files_save
13144
13145 test $ac_write_fail = 0 ||
13146 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13147
13148
13149 # configure is writing to config.log, and then calls config.status.
13150 # config.status does its own redirection, appending to config.log.
13151 # Unfortunately, on DOS this fails, as config.log is still kept open
13152 # by configure, so config.status won't be able to write to it; its
13153 # output is simply discarded. So we exec the FD to /dev/null,
13154 # effectively closing config.log, so it can be properly (re)opened and
13155 # appended to by config.status. When coming back to configure, we
13156 # need to make the FD available again.
13157 if test "$no_create" != yes; then
13158 ac_cs_success=:
13159 ac_config_status_args=
13160 test "$silent" = yes &&
13161 ac_config_status_args="$ac_config_status_args --quiet"
13162 exec 5>/dev/null
13163 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13164 exec 5>>config.log
13165 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13166 # would make configure fail if this is the last instruction.
13167 $ac_cs_success || as_fn_exit 1
13168 fi
13169 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13171 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13172 fi
13173
13174