configure revision 1.1.1.4 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for luit 1.1.1.
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='luit'
563 PACKAGE_TARNAME='luit'
564 PACKAGE_VERSION='1.1.1'
565 PACKAGE_STRING='luit 1.1.1'
566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567 PACKAGE_URL=''
568
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 # include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 # include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='am__EXEEXT_FALSE
606 am__EXEEXT_TRUE
607 LTLIBOBJS
608 LIBOBJS
609 OS_CFLAGS
610 LUIT_LIBS
611 LUIT_CFLAGS
612 LOCALEALIASFILE
613 AM_BACKSLASH
614 AM_DEFAULT_VERBOSITY
615 MAN_SUBSTS
616 XORG_MAN_PAGE
617 ADMIN_MAN_DIR
618 DRIVER_MAN_DIR
619 MISC_MAN_DIR
620 FILE_MAN_DIR
621 LIB_MAN_DIR
622 APP_MAN_DIR
623 ADMIN_MAN_SUFFIX
624 DRIVER_MAN_SUFFIX
625 MISC_MAN_SUFFIX
626 FILE_MAN_SUFFIX
627 LIB_MAN_SUFFIX
628 APP_MAN_SUFFIX
629 SED
630 host_os
631 host_vendor
632 host_cpu
633 host
634 build_os
635 build_vendor
636 build_cpu
637 build
638 INSTALL_CMD
639 PKG_CONFIG
640 CHANGELOG_CMD
641 STRICT_CFLAGS
642 CWARNFLAGS
643 BASE_CFLAGS
644 EGREP
645 GREP
646 CPP
647 am__fastdepCC_FALSE
648 am__fastdepCC_TRUE
649 CCDEPMODE
650 AMDEPBACKSLASH
651 AMDEP_FALSE
652 AMDEP_TRUE
653 am__quote
654 am__include
655 DEPDIR
656 OBJEXT
657 EXEEXT
658 ac_ct_CC
659 CPPFLAGS
660 LDFLAGS
661 CFLAGS
662 CC
663 MAINT
664 MAINTAINER_MODE_FALSE
665 MAINTAINER_MODE_TRUE
666 am__untar
667 am__tar
668 AMTAR
669 am__leading_dot
670 SET_MAKE
671 AWK
672 mkdir_p
673 MKDIR_P
674 INSTALL_STRIP_PROGRAM
675 STRIP
676 install_sh
677 MAKEINFO
678 AUTOHEADER
679 AUTOMAKE
680 AUTOCONF
681 ACLOCAL
682 VERSION
683 PACKAGE
684 CYGPATH_W
685 am__isrc
686 INSTALL_DATA
687 INSTALL_SCRIPT
688 INSTALL_PROGRAM
689 target_alias
690 host_alias
691 build_alias
692 LIBS
693 ECHO_T
694 ECHO_N
695 ECHO_C
696 DEFS
697 mandir
698 localedir
699 libdir
700 psdir
701 pdfdir
702 dvidir
703 htmldir
704 infodir
705 docdir
706 oldincludedir
707 includedir
708 localstatedir
709 sharedstatedir
710 sysconfdir
711 datadir
712 datarootdir
713 libexecdir
714 sbindir
715 bindir
716 program_transform_name
717 prefix
718 exec_prefix
719 PACKAGE_URL
720 PACKAGE_BUGREPORT
721 PACKAGE_STRING
722 PACKAGE_VERSION
723 PACKAGE_TARNAME
724 PACKAGE_NAME
725 PATH_SEPARATOR
726 SHELL'
727 ac_subst_files=''
728 ac_user_opts='
729 enable_option_checking
730 enable_maintainer_mode
731 enable_dependency_tracking
732 enable_selective_werror
733 enable_strict_compilation
734 enable_silent_rules
735 with_localealiasfile
736 '
737 ac_precious_vars='build_alias
738 host_alias
739 target_alias
740 CC
741 CFLAGS
742 LDFLAGS
743 LIBS
744 CPPFLAGS
745 CPP
746 PKG_CONFIG
747 LUIT_CFLAGS
748 LUIT_LIBS'
749
750
751 # Initialize some variables set by options.
752 ac_init_help=
753 ac_init_version=false
754 ac_unrecognized_opts=
755 ac_unrecognized_sep=
756 # The variables have the same names as the options, with
757 # dashes changed to underlines.
758 cache_file=/dev/null
759 exec_prefix=NONE
760 no_create=
761 no_recursion=
762 prefix=NONE
763 program_prefix=NONE
764 program_suffix=NONE
765 program_transform_name=s,x,x,
766 silent=
767 site=
768 srcdir=
769 verbose=
770 x_includes=NONE
771 x_libraries=NONE
772
773 # Installation directory options.
774 # These are left unexpanded so users can "make install exec_prefix=/foo"
775 # and all the variables that are supposed to be based on exec_prefix
776 # by default will actually change.
777 # Use braces instead of parens because sh, perl, etc. also accept them.
778 # (The list follows the same order as the GNU Coding Standards.)
779 bindir='${exec_prefix}/bin'
780 sbindir='${exec_prefix}/sbin'
781 libexecdir='${exec_prefix}/libexec'
782 datarootdir='${prefix}/share'
783 datadir='${datarootdir}'
784 sysconfdir='${prefix}/etc'
785 sharedstatedir='${prefix}/com'
786 localstatedir='${prefix}/var'
787 includedir='${prefix}/include'
788 oldincludedir='/usr/include'
789 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
790 infodir='${datarootdir}/info'
791 htmldir='${docdir}'
792 dvidir='${docdir}'
793 pdfdir='${docdir}'
794 psdir='${docdir}'
795 libdir='${exec_prefix}/lib'
796 localedir='${datarootdir}/locale'
797 mandir='${datarootdir}/man'
798
799 ac_prev=
800 ac_dashdash=
801 for ac_option
802 do
803 # If the previous option needs an argument, assign it.
804 if test -n "$ac_prev"; then
805 eval $ac_prev=\$ac_option
806 ac_prev=
807 continue
808 fi
809
810 case $ac_option in
811 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
812 *=) ac_optarg= ;;
813 *) ac_optarg=yes ;;
814 esac
815
816 # Accept the important Cygnus configure options, so we can diagnose typos.
817
818 case $ac_dashdash$ac_option in
819 --)
820 ac_dashdash=yes ;;
821
822 -bindir | --bindir | --bindi | --bind | --bin | --bi)
823 ac_prev=bindir ;;
824 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
825 bindir=$ac_optarg ;;
826
827 -build | --build | --buil | --bui | --bu)
828 ac_prev=build_alias ;;
829 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
830 build_alias=$ac_optarg ;;
831
832 -cache-file | --cache-file | --cache-fil | --cache-fi \
833 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
834 ac_prev=cache_file ;;
835 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
836 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
837 cache_file=$ac_optarg ;;
838
839 --config-cache | -C)
840 cache_file=config.cache ;;
841
842 -datadir | --datadir | --datadi | --datad)
843 ac_prev=datadir ;;
844 -datadir=* | --datadir=* | --datadi=* | --datad=*)
845 datadir=$ac_optarg ;;
846
847 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
848 | --dataroo | --dataro | --datar)
849 ac_prev=datarootdir ;;
850 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
851 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
852 datarootdir=$ac_optarg ;;
853
854 -disable-* | --disable-*)
855 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
856 # Reject names that are not valid shell variable names.
857 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
858 as_fn_error $? "invalid feature name: $ac_useropt"
859 ac_useropt_orig=$ac_useropt
860 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
861 case $ac_user_opts in
862 *"
863 "enable_$ac_useropt"
864 "*) ;;
865 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
866 ac_unrecognized_sep=', ';;
867 esac
868 eval enable_$ac_useropt=no ;;
869
870 -docdir | --docdir | --docdi | --doc | --do)
871 ac_prev=docdir ;;
872 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
873 docdir=$ac_optarg ;;
874
875 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
876 ac_prev=dvidir ;;
877 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
878 dvidir=$ac_optarg ;;
879
880 -enable-* | --enable-*)
881 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884 as_fn_error $? "invalid feature name: $ac_useropt"
885 ac_useropt_orig=$ac_useropt
886 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
888 *"
889 "enable_$ac_useropt"
890 "*) ;;
891 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
892 ac_unrecognized_sep=', ';;
893 esac
894 eval enable_$ac_useropt=\$ac_optarg ;;
895
896 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
897 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
898 | --exec | --exe | --ex)
899 ac_prev=exec_prefix ;;
900 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
901 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
902 | --exec=* | --exe=* | --ex=*)
903 exec_prefix=$ac_optarg ;;
904
905 -gas | --gas | --ga | --g)
906 # Obsolete; use --with-gas.
907 with_gas=yes ;;
908
909 -help | --help | --hel | --he | -h)
910 ac_init_help=long ;;
911 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
912 ac_init_help=recursive ;;
913 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
914 ac_init_help=short ;;
915
916 -host | --host | --hos | --ho)
917 ac_prev=host_alias ;;
918 -host=* | --host=* | --hos=* | --ho=*)
919 host_alias=$ac_optarg ;;
920
921 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
922 ac_prev=htmldir ;;
923 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
924 | --ht=*)
925 htmldir=$ac_optarg ;;
926
927 -includedir | --includedir | --includedi | --included | --include \
928 | --includ | --inclu | --incl | --inc)
929 ac_prev=includedir ;;
930 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
931 | --includ=* | --inclu=* | --incl=* | --inc=*)
932 includedir=$ac_optarg ;;
933
934 -infodir | --infodir | --infodi | --infod | --info | --inf)
935 ac_prev=infodir ;;
936 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
937 infodir=$ac_optarg ;;
938
939 -libdir | --libdir | --libdi | --libd)
940 ac_prev=libdir ;;
941 -libdir=* | --libdir=* | --libdi=* | --libd=*)
942 libdir=$ac_optarg ;;
943
944 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
945 | --libexe | --libex | --libe)
946 ac_prev=libexecdir ;;
947 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
948 | --libexe=* | --libex=* | --libe=*)
949 libexecdir=$ac_optarg ;;
950
951 -localedir | --localedir | --localedi | --localed | --locale)
952 ac_prev=localedir ;;
953 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
954 localedir=$ac_optarg ;;
955
956 -localstatedir | --localstatedir | --localstatedi | --localstated \
957 | --localstate | --localstat | --localsta | --localst | --locals)
958 ac_prev=localstatedir ;;
959 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
960 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
961 localstatedir=$ac_optarg ;;
962
963 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
964 ac_prev=mandir ;;
965 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
966 mandir=$ac_optarg ;;
967
968 -nfp | --nfp | --nf)
969 # Obsolete; use --without-fp.
970 with_fp=no ;;
971
972 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
973 | --no-cr | --no-c | -n)
974 no_create=yes ;;
975
976 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
977 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
978 no_recursion=yes ;;
979
980 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
981 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
982 | --oldin | --oldi | --old | --ol | --o)
983 ac_prev=oldincludedir ;;
984 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
985 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
986 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
987 oldincludedir=$ac_optarg ;;
988
989 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
990 ac_prev=prefix ;;
991 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
992 prefix=$ac_optarg ;;
993
994 -program-prefix | --program-prefix | --program-prefi | --program-pref \
995 | --program-pre | --program-pr | --program-p)
996 ac_prev=program_prefix ;;
997 -program-prefix=* | --program-prefix=* | --program-prefi=* \
998 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
999 program_prefix=$ac_optarg ;;
1000
1001 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1002 | --program-suf | --program-su | --program-s)
1003 ac_prev=program_suffix ;;
1004 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1005 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1006 program_suffix=$ac_optarg ;;
1007
1008 -program-transform-name | --program-transform-name \
1009 | --program-transform-nam | --program-transform-na \
1010 | --program-transform-n | --program-transform- \
1011 | --program-transform | --program-transfor \
1012 | --program-transfo | --program-transf \
1013 | --program-trans | --program-tran \
1014 | --progr-tra | --program-tr | --program-t)
1015 ac_prev=program_transform_name ;;
1016 -program-transform-name=* | --program-transform-name=* \
1017 | --program-transform-nam=* | --program-transform-na=* \
1018 | --program-transform-n=* | --program-transform-=* \
1019 | --program-transform=* | --program-transfor=* \
1020 | --program-transfo=* | --program-transf=* \
1021 | --program-trans=* | --program-tran=* \
1022 | --progr-tra=* | --program-tr=* | --program-t=*)
1023 program_transform_name=$ac_optarg ;;
1024
1025 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1026 ac_prev=pdfdir ;;
1027 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1028 pdfdir=$ac_optarg ;;
1029
1030 -psdir | --psdir | --psdi | --psd | --ps)
1031 ac_prev=psdir ;;
1032 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1033 psdir=$ac_optarg ;;
1034
1035 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1036 | -silent | --silent | --silen | --sile | --sil)
1037 silent=yes ;;
1038
1039 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1040 ac_prev=sbindir ;;
1041 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1042 | --sbi=* | --sb=*)
1043 sbindir=$ac_optarg ;;
1044
1045 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1046 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1047 | --sharedst | --shareds | --shared | --share | --shar \
1048 | --sha | --sh)
1049 ac_prev=sharedstatedir ;;
1050 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1051 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1052 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1053 | --sha=* | --sh=*)
1054 sharedstatedir=$ac_optarg ;;
1055
1056 -site | --site | --sit)
1057 ac_prev=site ;;
1058 -site=* | --site=* | --sit=*)
1059 site=$ac_optarg ;;
1060
1061 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1062 ac_prev=srcdir ;;
1063 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1064 srcdir=$ac_optarg ;;
1065
1066 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1067 | --syscon | --sysco | --sysc | --sys | --sy)
1068 ac_prev=sysconfdir ;;
1069 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1070 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1071 sysconfdir=$ac_optarg ;;
1072
1073 -target | --target | --targe | --targ | --tar | --ta | --t)
1074 ac_prev=target_alias ;;
1075 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1076 target_alias=$ac_optarg ;;
1077
1078 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1079 verbose=yes ;;
1080
1081 -version | --version | --versio | --versi | --vers | -V)
1082 ac_init_version=: ;;
1083
1084 -with-* | --with-*)
1085 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088 as_fn_error $? "invalid package name: $ac_useropt"
1089 ac_useropt_orig=$ac_useropt
1090 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091 case $ac_user_opts in
1092 *"
1093 "with_$ac_useropt"
1094 "*) ;;
1095 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1096 ac_unrecognized_sep=', ';;
1097 esac
1098 eval with_$ac_useropt=\$ac_optarg ;;
1099
1100 -without-* | --without-*)
1101 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104 as_fn_error $? "invalid package name: $ac_useropt"
1105 ac_useropt_orig=$ac_useropt
1106 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107 case $ac_user_opts in
1108 *"
1109 "with_$ac_useropt"
1110 "*) ;;
1111 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1112 ac_unrecognized_sep=', ';;
1113 esac
1114 eval with_$ac_useropt=no ;;
1115
1116 --x)
1117 # Obsolete; use --with-x.
1118 with_x=yes ;;
1119
1120 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1121 | --x-incl | --x-inc | --x-in | --x-i)
1122 ac_prev=x_includes ;;
1123 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1124 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1125 x_includes=$ac_optarg ;;
1126
1127 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1128 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1129 ac_prev=x_libraries ;;
1130 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1131 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1132 x_libraries=$ac_optarg ;;
1133
1134 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1135 Try \`$0 --help' for more information"
1136 ;;
1137
1138 *=*)
1139 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1140 # Reject names that are not valid shell variable names.
1141 case $ac_envvar in #(
1142 '' | [0-9]* | *[!_$as_cr_alnum]* )
1143 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1144 esac
1145 eval $ac_envvar=\$ac_optarg
1146 export $ac_envvar ;;
1147
1148 *)
1149 # FIXME: should be removed in autoconf 3.0.
1150 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1151 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1152 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1153 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1154 ;;
1155
1156 esac
1157 done
1158
1159 if test -n "$ac_prev"; then
1160 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1161 as_fn_error $? "missing argument to $ac_option"
1162 fi
1163
1164 if test -n "$ac_unrecognized_opts"; then
1165 case $enable_option_checking in
1166 no) ;;
1167 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1168 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1169 esac
1170 fi
1171
1172 # Check all directory arguments for consistency.
1173 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1174 datadir sysconfdir sharedstatedir localstatedir includedir \
1175 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1176 libdir localedir mandir
1177 do
1178 eval ac_val=\$$ac_var
1179 # Remove trailing slashes.
1180 case $ac_val in
1181 */ )
1182 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1183 eval $ac_var=\$ac_val;;
1184 esac
1185 # Be sure to have absolute directory names.
1186 case $ac_val in
1187 [\\/$]* | ?:[\\/]* ) continue;;
1188 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1189 esac
1190 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1191 done
1192
1193 # There might be people who depend on the old broken behavior: `$host'
1194 # used to hold the argument of --host etc.
1195 # FIXME: To remove some day.
1196 build=$build_alias
1197 host=$host_alias
1198 target=$target_alias
1199
1200 # FIXME: To remove some day.
1201 if test "x$host_alias" != x; then
1202 if test "x$build_alias" = x; then
1203 cross_compiling=maybe
1204 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1205 If a cross compiler is detected then cross compile mode will be used" >&2
1206 elif test "x$build_alias" != "x$host_alias"; then
1207 cross_compiling=yes
1208 fi
1209 fi
1210
1211 ac_tool_prefix=
1212 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1213
1214 test "$silent" = yes && exec 6>/dev/null
1215
1216
1217 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218 ac_ls_di=`ls -di .` &&
1219 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220 as_fn_error $? "working directory cannot be determined"
1221 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1222 as_fn_error $? "pwd does not report name of working directory"
1223
1224
1225 # Find the source files, if location was not specified.
1226 if test -z "$srcdir"; then
1227 ac_srcdir_defaulted=yes
1228 # Try the directory containing this script, then the parent directory.
1229 ac_confdir=`$as_dirname -- "$as_myself" ||
1230 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1231 X"$as_myself" : 'X\(//\)[^/]' \| \
1232 X"$as_myself" : 'X\(//\)$' \| \
1233 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1234 $as_echo X"$as_myself" |
1235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1236 s//\1/
1237 q
1238 }
1239 /^X\(\/\/\)[^/].*/{
1240 s//\1/
1241 q
1242 }
1243 /^X\(\/\/\)$/{
1244 s//\1/
1245 q
1246 }
1247 /^X\(\/\).*/{
1248 s//\1/
1249 q
1250 }
1251 s/.*/./; q'`
1252 srcdir=$ac_confdir
1253 if test ! -r "$srcdir/$ac_unique_file"; then
1254 srcdir=..
1255 fi
1256 else
1257 ac_srcdir_defaulted=no
1258 fi
1259 if test ! -r "$srcdir/$ac_unique_file"; then
1260 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1261 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1262 fi
1263 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1264 ac_abs_confdir=`(
1265 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1266 pwd)`
1267 # When building in place, set srcdir=.
1268 if test "$ac_abs_confdir" = "$ac_pwd"; then
1269 srcdir=.
1270 fi
1271 # Remove unnecessary trailing slashes from srcdir.
1272 # Double slashes in file names in object file debugging info
1273 # mess up M-x gdb in Emacs.
1274 case $srcdir in
1275 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1276 esac
1277 for ac_var in $ac_precious_vars; do
1278 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1279 eval ac_env_${ac_var}_value=\$${ac_var}
1280 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1281 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1282 done
1283
1284 #
1285 # Report the --help message.
1286 #
1287 if test "$ac_init_help" = "long"; then
1288 # Omit some internal or obsolete options to make the list less imposing.
1289 # This message is too long to be a string in the A/UX 3.1 sh.
1290 cat <<_ACEOF
1291 \`configure' configures luit 1.1.1 to adapt to many kinds of systems.
1292
1293 Usage: $0 [OPTION]... [VAR=VALUE]...
1294
1295 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1296 VAR=VALUE. See below for descriptions of some of the useful variables.
1297
1298 Defaults for the options are specified in brackets.
1299
1300 Configuration:
1301 -h, --help display this help and exit
1302 --help=short display options specific to this package
1303 --help=recursive display the short help of all the included packages
1304 -V, --version display version information and exit
1305 -q, --quiet, --silent do not print \`checking ...' messages
1306 --cache-file=FILE cache test results in FILE [disabled]
1307 -C, --config-cache alias for \`--cache-file=config.cache'
1308 -n, --no-create do not create output files
1309 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1310
1311 Installation directories:
1312 --prefix=PREFIX install architecture-independent files in PREFIX
1313 [$ac_default_prefix]
1314 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1315 [PREFIX]
1316
1317 By default, \`make install' will install all the files in
1318 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1319 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1320 for instance \`--prefix=\$HOME'.
1321
1322 For better control, use the options below.
1323
1324 Fine tuning of the installation directories:
1325 --bindir=DIR user executables [EPREFIX/bin]
1326 --sbindir=DIR system admin executables [EPREFIX/sbin]
1327 --libexecdir=DIR program executables [EPREFIX/libexec]
1328 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1329 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1330 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1331 --libdir=DIR object code libraries [EPREFIX/lib]
1332 --includedir=DIR C header files [PREFIX/include]
1333 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1334 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1335 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1336 --infodir=DIR info documentation [DATAROOTDIR/info]
1337 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1338 --mandir=DIR man documentation [DATAROOTDIR/man]
1339 --docdir=DIR documentation root [DATAROOTDIR/doc/luit]
1340 --htmldir=DIR html documentation [DOCDIR]
1341 --dvidir=DIR dvi documentation [DOCDIR]
1342 --pdfdir=DIR pdf documentation [DOCDIR]
1343 --psdir=DIR ps documentation [DOCDIR]
1344 _ACEOF
1345
1346 cat <<\_ACEOF
1347
1348 Program names:
1349 --program-prefix=PREFIX prepend PREFIX to installed program names
1350 --program-suffix=SUFFIX append SUFFIX to installed program names
1351 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1352
1353 System types:
1354 --build=BUILD configure for building on BUILD [guessed]
1355 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1356 _ACEOF
1357 fi
1358
1359 if test -n "$ac_init_help"; then
1360 case $ac_init_help in
1361 short | recursive ) echo "Configuration of luit 1.1.1:";;
1362 esac
1363 cat <<\_ACEOF
1364
1365 Optional Features:
1366 --disable-option-checking ignore unrecognized --enable/--with options
1367 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1368 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1369 --enable-maintainer-mode enable make rules and dependencies not useful
1370 (and sometimes confusing) to the casual installer
1371 --disable-dependency-tracking speeds up one-time build
1372 --enable-dependency-tracking do not reject slow dependency extractors
1373 --disable-selective-werror
1374 Turn off selective compiler errors. (default:
1375 enabled)
1376 --enable-strict-compilation
1377 Enable all warnings from compiler and make them
1378 errors (default: disabled)
1379 --enable-silent-rules less verbose build output (undo: `make V=1')
1380 --disable-silent-rules verbose build output (undo: `make V=0')
1381
1382 Optional Packages:
1383 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1384 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1385 --with-localealiasfile=<path>
1386 The locale alias file (default:
1387 ${datadir}/X11/locale/locale.alias)
1388
1389 Some influential environment variables:
1390 CC C compiler command
1391 CFLAGS C compiler flags
1392 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1393 nonstandard directory <lib dir>
1394 LIBS libraries to pass to the linker, e.g. -l<library>
1395 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1396 you have headers in a nonstandard directory <include dir>
1397 CPP C preprocessor
1398 PKG_CONFIG path to pkg-config utility
1399 LUIT_CFLAGS C compiler flags for LUIT, overriding pkg-config
1400 LUIT_LIBS linker flags for LUIT, overriding pkg-config
1401
1402 Use these variables to override the choices made by `configure' or to help
1403 it to find libraries and programs with nonstandard names/locations.
1404
1405 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1406 _ACEOF
1407 ac_status=$?
1408 fi
1409
1410 if test "$ac_init_help" = "recursive"; then
1411 # If there are subdirs, report their specific --help.
1412 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1413 test -d "$ac_dir" ||
1414 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1415 continue
1416 ac_builddir=.
1417
1418 case "$ac_dir" in
1419 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1420 *)
1421 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1422 # A ".." for each directory in $ac_dir_suffix.
1423 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1424 case $ac_top_builddir_sub in
1425 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1426 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1427 esac ;;
1428 esac
1429 ac_abs_top_builddir=$ac_pwd
1430 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1431 # for backward compatibility:
1432 ac_top_builddir=$ac_top_build_prefix
1433
1434 case $srcdir in
1435 .) # We are building in place.
1436 ac_srcdir=.
1437 ac_top_srcdir=$ac_top_builddir_sub
1438 ac_abs_top_srcdir=$ac_pwd ;;
1439 [\\/]* | ?:[\\/]* ) # Absolute name.
1440 ac_srcdir=$srcdir$ac_dir_suffix;
1441 ac_top_srcdir=$srcdir
1442 ac_abs_top_srcdir=$srcdir ;;
1443 *) # Relative name.
1444 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1445 ac_top_srcdir=$ac_top_build_prefix$srcdir
1446 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1447 esac
1448 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1449
1450 cd "$ac_dir" || { ac_status=$?; continue; }
1451 # Check for guested configure.
1452 if test -f "$ac_srcdir/configure.gnu"; then
1453 echo &&
1454 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1455 elif test -f "$ac_srcdir/configure"; then
1456 echo &&
1457 $SHELL "$ac_srcdir/configure" --help=recursive
1458 else
1459 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1460 fi || ac_status=$?
1461 cd "$ac_pwd" || { ac_status=$?; break; }
1462 done
1463 fi
1464
1465 test -n "$ac_init_help" && exit $ac_status
1466 if $ac_init_version; then
1467 cat <<\_ACEOF
1468 luit configure 1.1.1
1469 generated by GNU Autoconf 2.68
1470
1471 Copyright (C) 2010 Free Software Foundation, Inc.
1472 This configure script is free software; the Free Software Foundation
1473 gives unlimited permission to copy, distribute and modify it.
1474 _ACEOF
1475 exit
1476 fi
1477
1478 ## ------------------------ ##
1479 ## Autoconf initialization. ##
1480 ## ------------------------ ##
1481
1482 # ac_fn_c_try_compile LINENO
1483 # --------------------------
1484 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1485 ac_fn_c_try_compile ()
1486 {
1487 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1488 rm -f conftest.$ac_objext
1489 if { { ac_try="$ac_compile"
1490 case "(($ac_try" in
1491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1492 *) ac_try_echo=$ac_try;;
1493 esac
1494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1495 $as_echo "$ac_try_echo"; } >&5
1496 (eval "$ac_compile") 2>conftest.err
1497 ac_status=$?
1498 if test -s conftest.err; then
1499 grep -v '^ *+' conftest.err >conftest.er1
1500 cat conftest.er1 >&5
1501 mv -f conftest.er1 conftest.err
1502 fi
1503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1504 test $ac_status = 0; } && {
1505 test -z "$ac_c_werror_flag" ||
1506 test ! -s conftest.err
1507 } && test -s conftest.$ac_objext; then :
1508 ac_retval=0
1509 else
1510 $as_echo "$as_me: failed program was:" >&5
1511 sed 's/^/| /' conftest.$ac_ext >&5
1512
1513 ac_retval=1
1514 fi
1515 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1516 as_fn_set_status $ac_retval
1517
1518 } # ac_fn_c_try_compile
1519
1520 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1521 # ---------------------------------------------
1522 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1523 # accordingly.
1524 ac_fn_c_check_decl ()
1525 {
1526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527 as_decl_name=`echo $2|sed 's/ *(.*//'`
1528 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1530 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1531 if eval \${$3+:} false; then :
1532 $as_echo_n "(cached) " >&6
1533 else
1534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1535 /* end confdefs.h. */
1536 $4
1537 int
1538 main ()
1539 {
1540 #ifndef $as_decl_name
1541 #ifdef __cplusplus
1542 (void) $as_decl_use;
1543 #else
1544 (void) $as_decl_name;
1545 #endif
1546 #endif
1547
1548 ;
1549 return 0;
1550 }
1551 _ACEOF
1552 if ac_fn_c_try_compile "$LINENO"; then :
1553 eval "$3=yes"
1554 else
1555 eval "$3=no"
1556 fi
1557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1558 fi
1559 eval ac_res=\$$3
1560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1561 $as_echo "$ac_res" >&6; }
1562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1563
1564 } # ac_fn_c_check_decl
1565
1566 # ac_fn_c_try_cpp LINENO
1567 # ----------------------
1568 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1569 ac_fn_c_try_cpp ()
1570 {
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 if { { ac_try="$ac_cpp conftest.$ac_ext"
1573 case "(($ac_try" in
1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575 *) ac_try_echo=$ac_try;;
1576 esac
1577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578 $as_echo "$ac_try_echo"; } >&5
1579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1580 ac_status=$?
1581 if test -s conftest.err; then
1582 grep -v '^ *+' conftest.err >conftest.er1
1583 cat conftest.er1 >&5
1584 mv -f conftest.er1 conftest.err
1585 fi
1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587 test $ac_status = 0; } > conftest.i && {
1588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1589 test ! -s conftest.err
1590 }; then :
1591 ac_retval=0
1592 else
1593 $as_echo "$as_me: failed program was:" >&5
1594 sed 's/^/| /' conftest.$ac_ext >&5
1595
1596 ac_retval=1
1597 fi
1598 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1599 as_fn_set_status $ac_retval
1600
1601 } # ac_fn_c_try_cpp
1602
1603 # ac_fn_c_try_run LINENO
1604 # ----------------------
1605 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1606 # that executables *can* be run.
1607 ac_fn_c_try_run ()
1608 {
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 if { { ac_try="$ac_link"
1611 case "(($ac_try" in
1612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613 *) ac_try_echo=$ac_try;;
1614 esac
1615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616 $as_echo "$ac_try_echo"; } >&5
1617 (eval "$ac_link") 2>&5
1618 ac_status=$?
1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1621 { { case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_try") 2>&5
1628 ac_status=$?
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; }; }; then :
1631 ac_retval=0
1632 else
1633 $as_echo "$as_me: program exited with status $ac_status" >&5
1634 $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1636
1637 ac_retval=$ac_status
1638 fi
1639 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641 as_fn_set_status $ac_retval
1642
1643 } # ac_fn_c_try_run
1644
1645 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1646 # -------------------------------------------------------
1647 # Tests whether HEADER exists and can be compiled using the include files in
1648 # INCLUDES, setting the cache variable VAR accordingly.
1649 ac_fn_c_check_header_compile ()
1650 {
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1653 $as_echo_n "checking for $2... " >&6; }
1654 if eval \${$3+:} false; then :
1655 $as_echo_n "(cached) " >&6
1656 else
1657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658 /* end confdefs.h. */
1659 $4
1660 #include <$2>
1661 _ACEOF
1662 if ac_fn_c_try_compile "$LINENO"; then :
1663 eval "$3=yes"
1664 else
1665 eval "$3=no"
1666 fi
1667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1668 fi
1669 eval ac_res=\$$3
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1671 $as_echo "$ac_res" >&6; }
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673
1674 } # ac_fn_c_check_header_compile
1675
1676 # ac_fn_c_try_link LINENO
1677 # -----------------------
1678 # Try to link conftest.$ac_ext, and return whether this succeeded.
1679 ac_fn_c_try_link ()
1680 {
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 rm -f conftest.$ac_objext conftest$ac_exeext
1683 if { { ac_try="$ac_link"
1684 case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_link") 2>conftest.err
1691 ac_status=$?
1692 if test -s conftest.err; then
1693 grep -v '^ *+' conftest.err >conftest.er1
1694 cat conftest.er1 >&5
1695 mv -f conftest.er1 conftest.err
1696 fi
1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; } && {
1699 test -z "$ac_c_werror_flag" ||
1700 test ! -s conftest.err
1701 } && test -s conftest$ac_exeext && {
1702 test "$cross_compiling" = yes ||
1703 $as_test_x conftest$ac_exeext
1704 }; then :
1705 ac_retval=0
1706 else
1707 $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1709
1710 ac_retval=1
1711 fi
1712 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1713 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1714 # interfere with the next link command; also delete a directory that is
1715 # left behind by Apple's compiler. We do this before executing the actions.
1716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718 as_fn_set_status $ac_retval
1719
1720 } # ac_fn_c_try_link
1721
1722 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1723 # -------------------------------------------------------
1724 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1725 # the include files in INCLUDES and setting the cache variable VAR
1726 # accordingly.
1727 ac_fn_c_check_header_mongrel ()
1728 {
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 if eval \${$3+:} false; then :
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732 $as_echo_n "checking for $2... " >&6; }
1733 if eval \${$3+:} false; then :
1734 $as_echo_n "(cached) " >&6
1735 fi
1736 eval ac_res=\$$3
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738 $as_echo "$ac_res" >&6; }
1739 else
1740 # Is the header compilable?
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1742 $as_echo_n "checking $2 usability... " >&6; }
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1745 $4
1746 #include <$2>
1747 _ACEOF
1748 if ac_fn_c_try_compile "$LINENO"; then :
1749 ac_header_compiler=yes
1750 else
1751 ac_header_compiler=no
1752 fi
1753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1755 $as_echo "$ac_header_compiler" >&6; }
1756
1757 # Is the header present?
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1759 $as_echo_n "checking $2 presence... " >&6; }
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1762 #include <$2>
1763 _ACEOF
1764 if ac_fn_c_try_cpp "$LINENO"; then :
1765 ac_header_preproc=yes
1766 else
1767 ac_header_preproc=no
1768 fi
1769 rm -f conftest.err conftest.i conftest.$ac_ext
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1771 $as_echo "$ac_header_preproc" >&6; }
1772
1773 # So? What about this header?
1774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1775 yes:no: )
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1777 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1779 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1780 ;;
1781 no:yes:* )
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1783 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1785 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1787 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1789 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1791 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1792 ( $as_echo "## ---------------------------------------------------------------------- ##
1793 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1794 ## ---------------------------------------------------------------------- ##"
1795 ) | sed "s/^/$as_me: WARNING: /" >&2
1796 ;;
1797 esac
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799 $as_echo_n "checking for $2... " >&6; }
1800 if eval \${$3+:} false; then :
1801 $as_echo_n "(cached) " >&6
1802 else
1803 eval "$3=\$ac_header_compiler"
1804 fi
1805 eval ac_res=\$$3
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807 $as_echo "$ac_res" >&6; }
1808 fi
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810
1811 } # ac_fn_c_check_header_mongrel
1812
1813 # ac_fn_c_check_func LINENO FUNC VAR
1814 # ----------------------------------
1815 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1816 ac_fn_c_check_func ()
1817 {
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822 $as_echo_n "(cached) " >&6
1823 else
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1826 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1828 #define $2 innocuous_$2
1829
1830 /* System header to define __stub macros and hopefully few prototypes,
1831 which can conflict with char $2 (); below.
1832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833 <limits.h> exists even on freestanding compilers. */
1834
1835 #ifdef __STDC__
1836 # include <limits.h>
1837 #else
1838 # include <assert.h>
1839 #endif
1840
1841 #undef $2
1842
1843 /* Override any GCC internal prototype to avoid an error.
1844 Use char because int might match the return type of a GCC
1845 builtin and then its argument prototype would still apply. */
1846 #ifdef __cplusplus
1847 extern "C"
1848 #endif
1849 char $2 ();
1850 /* The GNU C library defines this for functions which it implements
1851 to always fail with ENOSYS. Some functions are actually named
1852 something starting with __ and the normal name is an alias. */
1853 #if defined __stub_$2 || defined __stub___$2
1854 choke me
1855 #endif
1856
1857 int
1858 main ()
1859 {
1860 return $2 ();
1861 ;
1862 return 0;
1863 }
1864 _ACEOF
1865 if ac_fn_c_try_link "$LINENO"; then :
1866 eval "$3=yes"
1867 else
1868 eval "$3=no"
1869 fi
1870 rm -f core conftest.err conftest.$ac_objext \
1871 conftest$ac_exeext conftest.$ac_ext
1872 fi
1873 eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877
1878 } # ac_fn_c_check_func
1879 cat >config.log <<_ACEOF
1880 This file contains any messages produced by compilers while
1881 running configure, to aid debugging if configure makes a mistake.
1882
1883 It was created by luit $as_me 1.1.1, which was
1884 generated by GNU Autoconf 2.68. Invocation command line was
1885
1886 $ $0 $@
1887
1888 _ACEOF
1889 exec 5>>config.log
1890 {
1891 cat <<_ASUNAME
1892 ## --------- ##
1893 ## Platform. ##
1894 ## --------- ##
1895
1896 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1897 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1898 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1899 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1900 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1901
1902 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1903 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1904
1905 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1906 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1907 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1908 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1909 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1910 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1911 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1912
1913 _ASUNAME
1914
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 for as_dir in $PATH
1917 do
1918 IFS=$as_save_IFS
1919 test -z "$as_dir" && as_dir=.
1920 $as_echo "PATH: $as_dir"
1921 done
1922 IFS=$as_save_IFS
1923
1924 } >&5
1925
1926 cat >&5 <<_ACEOF
1927
1928
1929 ## ----------- ##
1930 ## Core tests. ##
1931 ## ----------- ##
1932
1933 _ACEOF
1934
1935
1936 # Keep a trace of the command line.
1937 # Strip out --no-create and --no-recursion so they do not pile up.
1938 # Strip out --silent because we don't want to record it for future runs.
1939 # Also quote any args containing shell meta-characters.
1940 # Make two passes to allow for proper duplicate-argument suppression.
1941 ac_configure_args=
1942 ac_configure_args0=
1943 ac_configure_args1=
1944 ac_must_keep_next=false
1945 for ac_pass in 1 2
1946 do
1947 for ac_arg
1948 do
1949 case $ac_arg in
1950 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1952 | -silent | --silent | --silen | --sile | --sil)
1953 continue ;;
1954 *\'*)
1955 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1956 esac
1957 case $ac_pass in
1958 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1959 2)
1960 as_fn_append ac_configure_args1 " '$ac_arg'"
1961 if test $ac_must_keep_next = true; then
1962 ac_must_keep_next=false # Got value, back to normal.
1963 else
1964 case $ac_arg in
1965 *=* | --config-cache | -C | -disable-* | --disable-* \
1966 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1967 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1968 | -with-* | --with-* | -without-* | --without-* | --x)
1969 case "$ac_configure_args0 " in
1970 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1971 esac
1972 ;;
1973 -* ) ac_must_keep_next=true ;;
1974 esac
1975 fi
1976 as_fn_append ac_configure_args " '$ac_arg'"
1977 ;;
1978 esac
1979 done
1980 done
1981 { ac_configure_args0=; unset ac_configure_args0;}
1982 { ac_configure_args1=; unset ac_configure_args1;}
1983
1984 # When interrupted or exit'd, cleanup temporary files, and complete
1985 # config.log. We remove comments because anyway the quotes in there
1986 # would cause problems or look ugly.
1987 # WARNING: Use '\'' to represent an apostrophe within the trap.
1988 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1989 trap 'exit_status=$?
1990 # Save into config.log some information that might help in debugging.
1991 {
1992 echo
1993
1994 $as_echo "## ---------------- ##
1995 ## Cache variables. ##
1996 ## ---------------- ##"
1997 echo
1998 # The following way of writing the cache mishandles newlines in values,
1999 (
2000 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2001 eval ac_val=\$$ac_var
2002 case $ac_val in #(
2003 *${as_nl}*)
2004 case $ac_var in #(
2005 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2006 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2007 esac
2008 case $ac_var in #(
2009 _ | IFS | as_nl) ;; #(
2010 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2011 *) { eval $ac_var=; unset $ac_var;} ;;
2012 esac ;;
2013 esac
2014 done
2015 (set) 2>&1 |
2016 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2017 *${as_nl}ac_space=\ *)
2018 sed -n \
2019 "s/'\''/'\''\\\\'\'''\''/g;
2020 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2021 ;; #(
2022 *)
2023 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2024 ;;
2025 esac |
2026 sort
2027 )
2028 echo
2029
2030 $as_echo "## ----------------- ##
2031 ## Output variables. ##
2032 ## ----------------- ##"
2033 echo
2034 for ac_var in $ac_subst_vars
2035 do
2036 eval ac_val=\$$ac_var
2037 case $ac_val in
2038 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2039 esac
2040 $as_echo "$ac_var='\''$ac_val'\''"
2041 done | sort
2042 echo
2043
2044 if test -n "$ac_subst_files"; then
2045 $as_echo "## ------------------- ##
2046 ## File substitutions. ##
2047 ## ------------------- ##"
2048 echo
2049 for ac_var in $ac_subst_files
2050 do
2051 eval ac_val=\$$ac_var
2052 case $ac_val in
2053 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2054 esac
2055 $as_echo "$ac_var='\''$ac_val'\''"
2056 done | sort
2057 echo
2058 fi
2059
2060 if test -s confdefs.h; then
2061 $as_echo "## ----------- ##
2062 ## confdefs.h. ##
2063 ## ----------- ##"
2064 echo
2065 cat confdefs.h
2066 echo
2067 fi
2068 test "$ac_signal" != 0 &&
2069 $as_echo "$as_me: caught signal $ac_signal"
2070 $as_echo "$as_me: exit $exit_status"
2071 } >&5
2072 rm -f core *.core core.conftest.* &&
2073 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2074 exit $exit_status
2075 ' 0
2076 for ac_signal in 1 2 13 15; do
2077 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2078 done
2079 ac_signal=0
2080
2081 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2082 rm -f -r conftest* confdefs.h
2083
2084 $as_echo "/* confdefs.h */" > confdefs.h
2085
2086 # Predefined preprocessor variables.
2087
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_NAME "$PACKAGE_NAME"
2090 _ACEOF
2091
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2094 _ACEOF
2095
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2098 _ACEOF
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_STRING "$PACKAGE_STRING"
2102 _ACEOF
2103
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2106 _ACEOF
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_URL "$PACKAGE_URL"
2110 _ACEOF
2111
2112
2113 # Let the site file select an alternate cache file if it wants to.
2114 # Prefer an explicitly selected file to automatically selected ones.
2115 ac_site_file1=NONE
2116 ac_site_file2=NONE
2117 if test -n "$CONFIG_SITE"; then
2118 # We do not want a PATH search for config.site.
2119 case $CONFIG_SITE in #((
2120 -*) ac_site_file1=./$CONFIG_SITE;;
2121 */*) ac_site_file1=$CONFIG_SITE;;
2122 *) ac_site_file1=./$CONFIG_SITE;;
2123 esac
2124 elif test "x$prefix" != xNONE; then
2125 ac_site_file1=$prefix/share/config.site
2126 ac_site_file2=$prefix/etc/config.site
2127 else
2128 ac_site_file1=$ac_default_prefix/share/config.site
2129 ac_site_file2=$ac_default_prefix/etc/config.site
2130 fi
2131 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2132 do
2133 test "x$ac_site_file" = xNONE && continue
2134 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2136 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2137 sed 's/^/| /' "$ac_site_file" >&5
2138 . "$ac_site_file" \
2139 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2141 as_fn_error $? "failed to load site script $ac_site_file
2142 See \`config.log' for more details" "$LINENO" 5; }
2143 fi
2144 done
2145
2146 if test -r "$cache_file"; then
2147 # Some versions of bash will fail to source /dev/null (special files
2148 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2149 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2151 $as_echo "$as_me: loading cache $cache_file" >&6;}
2152 case $cache_file in
2153 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2154 *) . "./$cache_file";;
2155 esac
2156 fi
2157 else
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2159 $as_echo "$as_me: creating cache $cache_file" >&6;}
2160 >$cache_file
2161 fi
2162
2163 # Check that the precious variables saved in the cache have kept the same
2164 # value.
2165 ac_cache_corrupted=false
2166 for ac_var in $ac_precious_vars; do
2167 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2168 eval ac_new_set=\$ac_env_${ac_var}_set
2169 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2170 eval ac_new_val=\$ac_env_${ac_var}_value
2171 case $ac_old_set,$ac_new_set in
2172 set,)
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2174 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2175 ac_cache_corrupted=: ;;
2176 ,set)
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2178 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2179 ac_cache_corrupted=: ;;
2180 ,);;
2181 *)
2182 if test "x$ac_old_val" != "x$ac_new_val"; then
2183 # differences in whitespace do not lead to failure.
2184 ac_old_val_w=`echo x $ac_old_val`
2185 ac_new_val_w=`echo x $ac_new_val`
2186 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2188 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2189 ac_cache_corrupted=:
2190 else
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2192 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2193 eval $ac_var=\$ac_old_val
2194 fi
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2196 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2198 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2199 fi;;
2200 esac
2201 # Pass precious variables to config.status.
2202 if test "$ac_new_set" = set; then
2203 case $ac_new_val in
2204 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2205 *) ac_arg=$ac_var=$ac_new_val ;;
2206 esac
2207 case " $ac_configure_args " in
2208 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2209 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2210 esac
2211 fi
2212 done
2213 if $ac_cache_corrupted; then
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2217 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2218 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2219 fi
2220 ## -------------------- ##
2221 ## Main body of script. ##
2222 ## -------------------- ##
2223
2224 ac_ext=c
2225 ac_cpp='$CPP $CPPFLAGS'
2226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2229
2230
2231 am__api_version='1.11'
2232
2233 ac_aux_dir=
2234 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2235 if test -f "$ac_dir/install-sh"; then
2236 ac_aux_dir=$ac_dir
2237 ac_install_sh="$ac_aux_dir/install-sh -c"
2238 break
2239 elif test -f "$ac_dir/install.sh"; then
2240 ac_aux_dir=$ac_dir
2241 ac_install_sh="$ac_aux_dir/install.sh -c"
2242 break
2243 elif test -f "$ac_dir/shtool"; then
2244 ac_aux_dir=$ac_dir
2245 ac_install_sh="$ac_aux_dir/shtool install -c"
2246 break
2247 fi
2248 done
2249 if test -z "$ac_aux_dir"; then
2250 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2251 fi
2252
2253 # These three variables are undocumented and unsupported,
2254 # and are intended to be withdrawn in a future Autoconf release.
2255 # They can cause serious problems if a builder's source tree is in a directory
2256 # whose full name contains unusual characters.
2257 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2258 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2259 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2260
2261
2262 # Find a good install program. We prefer a C program (faster),
2263 # so one script is as good as another. But avoid the broken or
2264 # incompatible versions:
2265 # SysV /etc/install, /usr/sbin/install
2266 # SunOS /usr/etc/install
2267 # IRIX /sbin/install
2268 # AIX /bin/install
2269 # AmigaOS /C/install, which installs bootblocks on floppy discs
2270 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2271 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2272 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2273 # OS/2's system install, which has a completely different semantic
2274 # ./install, which can be erroneously created by make from ./install.sh.
2275 # Reject install programs that cannot install multiple files.
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2277 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2278 if test -z "$INSTALL"; then
2279 if ${ac_cv_path_install+:} false; then :
2280 $as_echo_n "(cached) " >&6
2281 else
2282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283 for as_dir in $PATH
2284 do
2285 IFS=$as_save_IFS
2286 test -z "$as_dir" && as_dir=.
2287 # Account for people who put trailing slashes in PATH elements.
2288 case $as_dir/ in #((
2289 ./ | .// | /[cC]/* | \
2290 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2291 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2292 /usr/ucb/* ) ;;
2293 *)
2294 # OSF1 and SCO ODT 3.0 have their own names for install.
2295 # Don't use installbsd from OSF since it installs stuff as root
2296 # by default.
2297 for ac_prog in ginstall scoinst install; do
2298 for ac_exec_ext in '' $ac_executable_extensions; do
2299 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2300 if test $ac_prog = install &&
2301 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2302 # AIX install. It has an incompatible calling convention.
2303 :
2304 elif test $ac_prog = install &&
2305 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2306 # program-specific install script used by HP pwplus--don't use.
2307 :
2308 else
2309 rm -rf conftest.one conftest.two conftest.dir
2310 echo one > conftest.one
2311 echo two > conftest.two
2312 mkdir conftest.dir
2313 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2314 test -s conftest.one && test -s conftest.two &&
2315 test -s conftest.dir/conftest.one &&
2316 test -s conftest.dir/conftest.two
2317 then
2318 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2319 break 3
2320 fi
2321 fi
2322 fi
2323 done
2324 done
2325 ;;
2326 esac
2327
2328 done
2329 IFS=$as_save_IFS
2330
2331 rm -rf conftest.one conftest.two conftest.dir
2332
2333 fi
2334 if test "${ac_cv_path_install+set}" = set; then
2335 INSTALL=$ac_cv_path_install
2336 else
2337 # As a last resort, use the slow shell script. Don't cache a
2338 # value for INSTALL within a source directory, because that will
2339 # break other packages using the cache if that directory is
2340 # removed, or if the value is a relative name.
2341 INSTALL=$ac_install_sh
2342 fi
2343 fi
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2345 $as_echo "$INSTALL" >&6; }
2346
2347 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2348 # It thinks the first close brace ends the variable substitution.
2349 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2350
2351 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2352
2353 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2354
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2356 $as_echo_n "checking whether build environment is sane... " >&6; }
2357 # Just in case
2358 sleep 1
2359 echo timestamp > conftest.file
2360 # Reject unsafe characters in $srcdir or the absolute working directory
2361 # name. Accept space and tab only in the latter.
2362 am_lf='
2363 '
2364 case `pwd` in
2365 *[\\\"\#\$\&\'\`$am_lf]*)
2366 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2367 esac
2368 case $srcdir in
2369 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2370 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2371 esac
2372
2373 # Do `set' in a subshell so we don't clobber the current shell's
2374 # arguments. Must try -L first in case configure is actually a
2375 # symlink; some systems play weird games with the mod time of symlinks
2376 # (eg FreeBSD returns the mod time of the symlink's containing
2377 # directory).
2378 if (
2379 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2380 if test "$*" = "X"; then
2381 # -L didn't work.
2382 set X `ls -t "$srcdir/configure" conftest.file`
2383 fi
2384 rm -f conftest.file
2385 if test "$*" != "X $srcdir/configure conftest.file" \
2386 && test "$*" != "X conftest.file $srcdir/configure"; then
2387
2388 # If neither matched, then we have a broken ls. This can happen
2389 # if, for instance, CONFIG_SHELL is bash and it inherits a
2390 # broken ls alias from the environment. This has actually
2391 # happened. Such a system could not be considered "sane".
2392 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2393 alias in your environment" "$LINENO" 5
2394 fi
2395
2396 test "$2" = conftest.file
2397 )
2398 then
2399 # Ok.
2400 :
2401 else
2402 as_fn_error $? "newly created file is older than distributed files!
2403 Check your system clock" "$LINENO" 5
2404 fi
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2406 $as_echo "yes" >&6; }
2407 test "$program_prefix" != NONE &&
2408 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2409 # Use a double $ so make ignores it.
2410 test "$program_suffix" != NONE &&
2411 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2412 # Double any \ or $.
2413 # By default was `s,x,x', remove it if useless.
2414 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2415 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2416
2417 # expand $ac_aux_dir to an absolute path
2418 am_aux_dir=`cd $ac_aux_dir && pwd`
2419
2420 if test x"${MISSING+set}" != xset; then
2421 case $am_aux_dir in
2422 *\ * | *\ *)
2423 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2424 *)
2425 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2426 esac
2427 fi
2428 # Use eval to expand $SHELL
2429 if eval "$MISSING --run true"; then
2430 am_missing_run="$MISSING --run "
2431 else
2432 am_missing_run=
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2434 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2435 fi
2436
2437 if test x"${install_sh}" != xset; then
2438 case $am_aux_dir in
2439 *\ * | *\ *)
2440 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2441 *)
2442 install_sh="\${SHELL} $am_aux_dir/install-sh"
2443 esac
2444 fi
2445
2446 # Installed binaries are usually stripped using `strip' when the user
2447 # run `make install-strip'. However `strip' might not be the right
2448 # tool to use in cross-compilation environments, therefore Automake
2449 # will honor the `STRIP' environment variable to overrule this program.
2450 if test "$cross_compiling" != no; then
2451 if test -n "$ac_tool_prefix"; then
2452 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2453 set dummy ${ac_tool_prefix}strip; 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_STRIP+:} false; then :
2457 $as_echo_n "(cached) " >&6
2458 else
2459 if test -n "$STRIP"; then
2460 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
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 STRIP=$ac_cv_prog_STRIP
2480 if test -n "$STRIP"; then
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2482 $as_echo "$STRIP" >&6; }
2483 else
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2485 $as_echo "no" >&6; }
2486 fi
2487
2488
2489 fi
2490 if test -z "$ac_cv_prog_STRIP"; then
2491 ac_ct_STRIP=$STRIP
2492 # Extract the first word of "strip", so it can be a program name with args.
2493 set dummy strip; ac_word=$2
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2495 $as_echo_n "checking for $ac_word... " >&6; }
2496 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2497 $as_echo_n "(cached) " >&6
2498 else
2499 if test -n "$ac_ct_STRIP"; then
2500 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2501 else
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 for as_dir in $PATH
2504 do
2505 IFS=$as_save_IFS
2506 test -z "$as_dir" && as_dir=.
2507 for ac_exec_ext in '' $ac_executable_extensions; do
2508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2509 ac_cv_prog_ac_ct_STRIP="strip"
2510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2511 break 2
2512 fi
2513 done
2514 done
2515 IFS=$as_save_IFS
2516
2517 fi
2518 fi
2519 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2520 if test -n "$ac_ct_STRIP"; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2522 $as_echo "$ac_ct_STRIP" >&6; }
2523 else
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2525 $as_echo "no" >&6; }
2526 fi
2527
2528 if test "x$ac_ct_STRIP" = x; then
2529 STRIP=":"
2530 else
2531 case $cross_compiling:$ac_tool_warned in
2532 yes:)
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2535 ac_tool_warned=yes ;;
2536 esac
2537 STRIP=$ac_ct_STRIP
2538 fi
2539 else
2540 STRIP="$ac_cv_prog_STRIP"
2541 fi
2542
2543 fi
2544 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2545
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2547 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2548 if test -z "$MKDIR_P"; then
2549 if ${ac_cv_path_mkdir+:} false; then :
2550 $as_echo_n "(cached) " >&6
2551 else
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2554 do
2555 IFS=$as_save_IFS
2556 test -z "$as_dir" && as_dir=.
2557 for ac_prog in mkdir gmkdir; do
2558 for ac_exec_ext in '' $ac_executable_extensions; do
2559 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2560 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2561 'mkdir (GNU coreutils) '* | \
2562 'mkdir (coreutils) '* | \
2563 'mkdir (fileutils) '4.1*)
2564 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2565 break 3;;
2566 esac
2567 done
2568 done
2569 done
2570 IFS=$as_save_IFS
2571
2572 fi
2573
2574 test -d ./--version && rmdir ./--version
2575 if test "${ac_cv_path_mkdir+set}" = set; then
2576 MKDIR_P="$ac_cv_path_mkdir -p"
2577 else
2578 # As a last resort, use the slow shell script. Don't cache a
2579 # value for MKDIR_P within a source directory, because that will
2580 # break other packages using the cache if that directory is
2581 # removed, or if the value is a relative name.
2582 MKDIR_P="$ac_install_sh -d"
2583 fi
2584 fi
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2586 $as_echo "$MKDIR_P" >&6; }
2587
2588 mkdir_p="$MKDIR_P"
2589 case $mkdir_p in
2590 [\\/$]* | ?:[\\/]*) ;;
2591 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2592 esac
2593
2594 for ac_prog in gawk mawk nawk awk
2595 do
2596 # Extract the first word of "$ac_prog", so it can be a program name with args.
2597 set dummy $ac_prog; ac_word=$2
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2599 $as_echo_n "checking for $ac_word... " >&6; }
2600 if ${ac_cv_prog_AWK+:} false; then :
2601 $as_echo_n "(cached) " >&6
2602 else
2603 if test -n "$AWK"; then
2604 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2605 else
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH
2608 do
2609 IFS=$as_save_IFS
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2613 ac_cv_prog_AWK="$ac_prog"
2614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 break 2
2616 fi
2617 done
2618 done
2619 IFS=$as_save_IFS
2620
2621 fi
2622 fi
2623 AWK=$ac_cv_prog_AWK
2624 if test -n "$AWK"; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2626 $as_echo "$AWK" >&6; }
2627 else
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2629 $as_echo "no" >&6; }
2630 fi
2631
2632
2633 test -n "$AWK" && break
2634 done
2635
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2637 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2638 set x ${MAKE-make}
2639 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2640 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2641 $as_echo_n "(cached) " >&6
2642 else
2643 cat >conftest.make <<\_ACEOF
2644 SHELL = /bin/sh
2645 all:
2646 @echo '@@@%%%=$(MAKE)=@@@%%%'
2647 _ACEOF
2648 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2649 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2650 *@@@%%%=?*=@@@%%%*)
2651 eval ac_cv_prog_make_${ac_make}_set=yes;;
2652 *)
2653 eval ac_cv_prog_make_${ac_make}_set=no;;
2654 esac
2655 rm -f conftest.make
2656 fi
2657 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2659 $as_echo "yes" >&6; }
2660 SET_MAKE=
2661 else
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663 $as_echo "no" >&6; }
2664 SET_MAKE="MAKE=${MAKE-make}"
2665 fi
2666
2667 rm -rf .tst 2>/dev/null
2668 mkdir .tst 2>/dev/null
2669 if test -d .tst; then
2670 am__leading_dot=.
2671 else
2672 am__leading_dot=_
2673 fi
2674 rmdir .tst 2>/dev/null
2675
2676 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2677 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2678 # is not polluted with repeated "-I."
2679 am__isrc=' -I$(srcdir)'
2680 # test to see if srcdir already configured
2681 if test -f $srcdir/config.status; then
2682 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2683 fi
2684 fi
2685
2686 # test whether we have cygpath
2687 if test -z "$CYGPATH_W"; then
2688 if (cygpath --version) >/dev/null 2>/dev/null; then
2689 CYGPATH_W='cygpath -w'
2690 else
2691 CYGPATH_W=echo
2692 fi
2693 fi
2694
2695
2696 # Define the identity of the package.
2697 PACKAGE='luit'
2698 VERSION='1.1.1'
2699
2700
2701 cat >>confdefs.h <<_ACEOF
2702 #define PACKAGE "$PACKAGE"
2703 _ACEOF
2704
2705
2706 cat >>confdefs.h <<_ACEOF
2707 #define VERSION "$VERSION"
2708 _ACEOF
2709
2710 # Some tools Automake needs.
2711
2712 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2713
2714
2715 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2716
2717
2718 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2719
2720
2721 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2722
2723
2724 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2725
2726 # We need awk for the "check" target. The system "awk" is bad on
2727 # some platforms.
2728 # Always define AMTAR for backward compatibility.
2729
2730 AMTAR=${AMTAR-"${am_missing_run}tar"}
2731
2732 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2733
2734
2735
2736
2737
2738
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2740 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2741 # Check whether --enable-maintainer-mode was given.
2742 if test "${enable_maintainer_mode+set}" = set; then :
2743 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2744 else
2745 USE_MAINTAINER_MODE=no
2746 fi
2747
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2749 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2750 if test $USE_MAINTAINER_MODE = yes; then
2751 MAINTAINER_MODE_TRUE=
2752 MAINTAINER_MODE_FALSE='#'
2753 else
2754 MAINTAINER_MODE_TRUE='#'
2755 MAINTAINER_MODE_FALSE=
2756 fi
2757
2758 MAINT=$MAINTAINER_MODE_TRUE
2759
2760
2761
2762 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774 DEPDIR="${am__leading_dot}deps"
2775
2776 ac_config_commands="$ac_config_commands depfiles"
2777
2778
2779 am_make=${MAKE-make}
2780 cat > confinc << 'END'
2781 am__doit:
2782 @echo this is the am__doit target
2783 .PHONY: am__doit
2784 END
2785 # If we don't find an include directive, just comment out the code.
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2787 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2788 am__include="#"
2789 am__quote=
2790 _am_result=none
2791 # First try GNU make style include.
2792 echo "include confinc" > confmf
2793 # Ignore all kinds of additional output from `make'.
2794 case `$am_make -s -f confmf 2> /dev/null` in #(
2795 *the\ am__doit\ target*)
2796 am__include=include
2797 am__quote=
2798 _am_result=GNU
2799 ;;
2800 esac
2801 # Now try BSD make style include.
2802 if test "$am__include" = "#"; then
2803 echo '.include "confinc"' > confmf
2804 case `$am_make -s -f confmf 2> /dev/null` in #(
2805 *the\ am__doit\ target*)
2806 am__include=.include
2807 am__quote="\""
2808 _am_result=BSD
2809 ;;
2810 esac
2811 fi
2812
2813
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2815 $as_echo "$_am_result" >&6; }
2816 rm -f confinc confmf
2817
2818 # Check whether --enable-dependency-tracking was given.
2819 if test "${enable_dependency_tracking+set}" = set; then :
2820 enableval=$enable_dependency_tracking;
2821 fi
2822
2823 if test "x$enable_dependency_tracking" != xno; then
2824 am_depcomp="$ac_aux_dir/depcomp"
2825 AMDEPBACKSLASH='\'
2826 fi
2827 if test "x$enable_dependency_tracking" != xno; then
2828 AMDEP_TRUE=
2829 AMDEP_FALSE='#'
2830 else
2831 AMDEP_TRUE='#'
2832 AMDEP_FALSE=
2833 fi
2834
2835
2836 ac_ext=c
2837 ac_cpp='$CPP $CPPFLAGS'
2838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2841 if test -n "$ac_tool_prefix"; then
2842 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2843 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845 $as_echo_n "checking for $ac_word... " >&6; }
2846 if ${ac_cv_prog_CC+:} false; then :
2847 $as_echo_n "(cached) " >&6
2848 else
2849 if test -n "$CC"; then
2850 ac_cv_prog_CC="$CC" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2859 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 break 2
2862 fi
2863 done
2864 done
2865 IFS=$as_save_IFS
2866
2867 fi
2868 fi
2869 CC=$ac_cv_prog_CC
2870 if test -n "$CC"; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2872 $as_echo "$CC" >&6; }
2873 else
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875 $as_echo "no" >&6; }
2876 fi
2877
2878
2879 fi
2880 if test -z "$ac_cv_prog_CC"; then
2881 ac_ct_CC=$CC
2882 # Extract the first word of "gcc", so it can be a program name with args.
2883 set dummy gcc; ac_word=$2
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885 $as_echo_n "checking for $ac_word... " >&6; }
2886 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2887 $as_echo_n "(cached) " >&6
2888 else
2889 if test -n "$ac_ct_CC"; then
2890 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2891 else
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 for as_dir in $PATH
2894 do
2895 IFS=$as_save_IFS
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899 ac_cv_prog_ac_ct_CC="gcc"
2900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 break 2
2902 fi
2903 done
2904 done
2905 IFS=$as_save_IFS
2906
2907 fi
2908 fi
2909 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2910 if test -n "$ac_ct_CC"; then
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2912 $as_echo "$ac_ct_CC" >&6; }
2913 else
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915 $as_echo "no" >&6; }
2916 fi
2917
2918 if test "x$ac_ct_CC" = x; then
2919 CC=""
2920 else
2921 case $cross_compiling:$ac_tool_warned in
2922 yes:)
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2925 ac_tool_warned=yes ;;
2926 esac
2927 CC=$ac_ct_CC
2928 fi
2929 else
2930 CC="$ac_cv_prog_CC"
2931 fi
2932
2933 if test -z "$CC"; then
2934 if test -n "$ac_tool_prefix"; then
2935 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2936 set dummy ${ac_tool_prefix}cc; ac_word=$2
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938 $as_echo_n "checking for $ac_word... " >&6; }
2939 if ${ac_cv_prog_CC+:} false; then :
2940 $as_echo_n "(cached) " >&6
2941 else
2942 if test -n "$CC"; then
2943 ac_cv_prog_CC="$CC" # Let the user override the test.
2944 else
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2947 do
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952 ac_cv_prog_CC="${ac_tool_prefix}cc"
2953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954 break 2
2955 fi
2956 done
2957 done
2958 IFS=$as_save_IFS
2959
2960 fi
2961 fi
2962 CC=$ac_cv_prog_CC
2963 if test -n "$CC"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2965 $as_echo "$CC" >&6; }
2966 else
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968 $as_echo "no" >&6; }
2969 fi
2970
2971
2972 fi
2973 fi
2974 if test -z "$CC"; then
2975 # Extract the first word of "cc", so it can be a program name with args.
2976 set dummy cc; ac_word=$2
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978 $as_echo_n "checking for $ac_word... " >&6; }
2979 if ${ac_cv_prog_CC+:} false; then :
2980 $as_echo_n "(cached) " >&6
2981 else
2982 if test -n "$CC"; then
2983 ac_cv_prog_CC="$CC" # Let the user override the test.
2984 else
2985 ac_prog_rejected=no
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 for as_dir in $PATH
2988 do
2989 IFS=$as_save_IFS
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2993 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2994 ac_prog_rejected=yes
2995 continue
2996 fi
2997 ac_cv_prog_CC="cc"
2998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 break 2
3000 fi
3001 done
3002 done
3003 IFS=$as_save_IFS
3004
3005 if test $ac_prog_rejected = yes; then
3006 # We found a bogon in the path, so make sure we never use it.
3007 set dummy $ac_cv_prog_CC
3008 shift
3009 if test $# != 0; then
3010 # We chose a different compiler from the bogus one.
3011 # However, it has the same basename, so the bogon will be chosen
3012 # first if we set CC to just the basename; use the full file name.
3013 shift
3014 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3015 fi
3016 fi
3017 fi
3018 fi
3019 CC=$ac_cv_prog_CC
3020 if test -n "$CC"; then
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3022 $as_echo "$CC" >&6; }
3023 else
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025 $as_echo "no" >&6; }
3026 fi
3027
3028
3029 fi
3030 if test -z "$CC"; then
3031 if test -n "$ac_tool_prefix"; then
3032 for ac_prog in cl.exe
3033 do
3034 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3035 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037 $as_echo_n "checking for $ac_word... " >&6; }
3038 if ${ac_cv_prog_CC+:} false; then :
3039 $as_echo_n "(cached) " >&6
3040 else
3041 if test -n "$CC"; then
3042 ac_cv_prog_CC="$CC" # Let the user override the test.
3043 else
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 for as_dir in $PATH
3046 do
3047 IFS=$as_save_IFS
3048 test -z "$as_dir" && as_dir=.
3049 for ac_exec_ext in '' $ac_executable_extensions; do
3050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3051 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053 break 2
3054 fi
3055 done
3056 done
3057 IFS=$as_save_IFS
3058
3059 fi
3060 fi
3061 CC=$ac_cv_prog_CC
3062 if test -n "$CC"; then
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3064 $as_echo "$CC" >&6; }
3065 else
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067 $as_echo "no" >&6; }
3068 fi
3069
3070
3071 test -n "$CC" && break
3072 done
3073 fi
3074 if test -z "$CC"; then
3075 ac_ct_CC=$CC
3076 for ac_prog in cl.exe
3077 do
3078 # Extract the first word of "$ac_prog", so it can be a program name with args.
3079 set dummy $ac_prog; ac_word=$2
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081 $as_echo_n "checking for $ac_word... " >&6; }
3082 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3083 $as_echo_n "(cached) " >&6
3084 else
3085 if test -n "$ac_ct_CC"; then
3086 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3087 else
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 for as_dir in $PATH
3090 do
3091 IFS=$as_save_IFS
3092 test -z "$as_dir" && as_dir=.
3093 for ac_exec_ext in '' $ac_executable_extensions; do
3094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095 ac_cv_prog_ac_ct_CC="$ac_prog"
3096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097 break 2
3098 fi
3099 done
3100 done
3101 IFS=$as_save_IFS
3102
3103 fi
3104 fi
3105 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3106 if test -n "$ac_ct_CC"; then
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3108 $as_echo "$ac_ct_CC" >&6; }
3109 else
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3112 fi
3113
3114
3115 test -n "$ac_ct_CC" && break
3116 done
3117
3118 if test "x$ac_ct_CC" = x; then
3119 CC=""
3120 else
3121 case $cross_compiling:$ac_tool_warned in
3122 yes:)
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3125 ac_tool_warned=yes ;;
3126 esac
3127 CC=$ac_ct_CC
3128 fi
3129 fi
3130
3131 fi
3132
3133
3134 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3136 as_fn_error $? "no acceptable C compiler found in \$PATH
3137 See \`config.log' for more details" "$LINENO" 5; }
3138
3139 # Provide some information about the compiler.
3140 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3141 set X $ac_compile
3142 ac_compiler=$2
3143 for ac_option in --version -v -V -qversion; do
3144 { { ac_try="$ac_compiler $ac_option >&5"
3145 case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3148 esac
3149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3150 $as_echo "$ac_try_echo"; } >&5
3151 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3152 ac_status=$?
3153 if test -s conftest.err; then
3154 sed '10a\
3155 ... rest of stderr output deleted ...
3156 10q' conftest.err >conftest.er1
3157 cat conftest.er1 >&5
3158 fi
3159 rm -f conftest.er1 conftest.err
3160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3161 test $ac_status = 0; }
3162 done
3163
3164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3165 /* end confdefs.h. */
3166
3167 int
3168 main ()
3169 {
3170
3171 ;
3172 return 0;
3173 }
3174 _ACEOF
3175 ac_clean_files_save=$ac_clean_files
3176 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3177 # Try to create an executable without -o first, disregard a.out.
3178 # It will help us diagnose broken compilers, and finding out an intuition
3179 # of exeext.
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3181 $as_echo_n "checking whether the C compiler works... " >&6; }
3182 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3183
3184 # The possible output files:
3185 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3186
3187 ac_rmfiles=
3188 for ac_file in $ac_files
3189 do
3190 case $ac_file in
3191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3192 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3193 esac
3194 done
3195 rm -f $ac_rmfiles
3196
3197 if { { ac_try="$ac_link_default"
3198 case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3201 esac
3202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3203 $as_echo "$ac_try_echo"; } >&5
3204 (eval "$ac_link_default") 2>&5
3205 ac_status=$?
3206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3207 test $ac_status = 0; }; then :
3208 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3209 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3210 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3211 # so that the user can short-circuit this test for compilers unknown to
3212 # Autoconf.
3213 for ac_file in $ac_files ''
3214 do
3215 test -f "$ac_file" || continue
3216 case $ac_file in
3217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3218 ;;
3219 [ab].out )
3220 # We found the default executable, but exeext='' is most
3221 # certainly right.
3222 break;;
3223 *.* )
3224 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3225 then :; else
3226 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3227 fi
3228 # We set ac_cv_exeext here because the later test for it is not
3229 # safe: cross compilers may not add the suffix if given an `-o'
3230 # argument, so we may need to know it at that point already.
3231 # Even if this section looks crufty: it has the advantage of
3232 # actually working.
3233 break;;
3234 * )
3235 break;;
3236 esac
3237 done
3238 test "$ac_cv_exeext" = no && ac_cv_exeext=
3239
3240 else
3241 ac_file=''
3242 fi
3243 if test -z "$ac_file"; then :
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245 $as_echo "no" >&6; }
3246 $as_echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3248
3249 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3251 as_fn_error 77 "C compiler cannot create executables
3252 See \`config.log' for more details" "$LINENO" 5; }
3253 else
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3255 $as_echo "yes" >&6; }
3256 fi
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3258 $as_echo_n "checking for C compiler default output file name... " >&6; }
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3260 $as_echo "$ac_file" >&6; }
3261 ac_exeext=$ac_cv_exeext
3262
3263 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3264 ac_clean_files=$ac_clean_files_save
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3266 $as_echo_n "checking for suffix of executables... " >&6; }
3267 if { { ac_try="$ac_link"
3268 case "(($ac_try" in
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3271 esac
3272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3273 $as_echo "$ac_try_echo"; } >&5
3274 (eval "$ac_link") 2>&5
3275 ac_status=$?
3276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3277 test $ac_status = 0; }; then :
3278 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3279 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3280 # work properly (i.e., refer to `conftest.exe'), while it won't with
3281 # `rm'.
3282 for ac_file in conftest.exe conftest conftest.*; do
3283 test -f "$ac_file" || continue
3284 case $ac_file in
3285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3286 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3287 break;;
3288 * ) break;;
3289 esac
3290 done
3291 else
3292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3295 See \`config.log' for more details" "$LINENO" 5; }
3296 fi
3297 rm -f conftest conftest$ac_cv_exeext
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3299 $as_echo "$ac_cv_exeext" >&6; }
3300
3301 rm -f conftest.$ac_ext
3302 EXEEXT=$ac_cv_exeext
3303 ac_exeext=$EXEEXT
3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305 /* end confdefs.h. */
3306 #include <stdio.h>
3307 int
3308 main ()
3309 {
3310 FILE *f = fopen ("conftest.out", "w");
3311 return ferror (f) || fclose (f) != 0;
3312
3313 ;
3314 return 0;
3315 }
3316 _ACEOF
3317 ac_clean_files="$ac_clean_files conftest.out"
3318 # Check that the compiler produces executables we can run. If not, either
3319 # the compiler is broken, or we cross compile.
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3321 $as_echo_n "checking whether we are cross compiling... " >&6; }
3322 if test "$cross_compiling" != yes; then
3323 { { ac_try="$ac_link"
3324 case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327 esac
3328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329 $as_echo "$ac_try_echo"; } >&5
3330 (eval "$ac_link") 2>&5
3331 ac_status=$?
3332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333 test $ac_status = 0; }
3334 if { ac_try='./conftest$ac_cv_exeext'
3335 { { case "(($ac_try" in
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3338 esac
3339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3340 $as_echo "$ac_try_echo"; } >&5
3341 (eval "$ac_try") 2>&5
3342 ac_status=$?
3343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344 test $ac_status = 0; }; }; then
3345 cross_compiling=no
3346 else
3347 if test "$cross_compiling" = maybe; then
3348 cross_compiling=yes
3349 else
3350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3352 as_fn_error $? "cannot run C compiled programs.
3353 If you meant to cross compile, use \`--host'.
3354 See \`config.log' for more details" "$LINENO" 5; }
3355 fi
3356 fi
3357 fi
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3359 $as_echo "$cross_compiling" >&6; }
3360
3361 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3362 ac_clean_files=$ac_clean_files_save
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3364 $as_echo_n "checking for suffix of object files... " >&6; }
3365 if ${ac_cv_objext+:} false; then :
3366 $as_echo_n "(cached) " >&6
3367 else
3368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369 /* end confdefs.h. */
3370
3371 int
3372 main ()
3373 {
3374
3375 ;
3376 return 0;
3377 }
3378 _ACEOF
3379 rm -f conftest.o conftest.obj
3380 if { { ac_try="$ac_compile"
3381 case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3384 esac
3385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386 $as_echo "$ac_try_echo"; } >&5
3387 (eval "$ac_compile") 2>&5
3388 ac_status=$?
3389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390 test $ac_status = 0; }; then :
3391 for ac_file in conftest.o conftest.obj conftest.*; do
3392 test -f "$ac_file" || continue;
3393 case $ac_file in
3394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3395 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3396 break;;
3397 esac
3398 done
3399 else
3400 $as_echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3402
3403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3405 as_fn_error $? "cannot compute suffix of object files: cannot compile
3406 See \`config.log' for more details" "$LINENO" 5; }
3407 fi
3408 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3409 fi
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3411 $as_echo "$ac_cv_objext" >&6; }
3412 OBJEXT=$ac_cv_objext
3413 ac_objext=$OBJEXT
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3415 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3416 if ${ac_cv_c_compiler_gnu+:} false; then :
3417 $as_echo_n "(cached) " >&6
3418 else
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3421
3422 int
3423 main ()
3424 {
3425 #ifndef __GNUC__
3426 choke me
3427 #endif
3428
3429 ;
3430 return 0;
3431 }
3432 _ACEOF
3433 if ac_fn_c_try_compile "$LINENO"; then :
3434 ac_compiler_gnu=yes
3435 else
3436 ac_compiler_gnu=no
3437 fi
3438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3439 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3440
3441 fi
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3443 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3444 if test $ac_compiler_gnu = yes; then
3445 GCC=yes
3446 else
3447 GCC=
3448 fi
3449 ac_test_CFLAGS=${CFLAGS+set}
3450 ac_save_CFLAGS=$CFLAGS
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3452 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3453 if ${ac_cv_prog_cc_g+:} false; then :
3454 $as_echo_n "(cached) " >&6
3455 else
3456 ac_save_c_werror_flag=$ac_c_werror_flag
3457 ac_c_werror_flag=yes
3458 ac_cv_prog_cc_g=no
3459 CFLAGS="-g"
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h. */
3462
3463 int
3464 main ()
3465 {
3466
3467 ;
3468 return 0;
3469 }
3470 _ACEOF
3471 if ac_fn_c_try_compile "$LINENO"; then :
3472 ac_cv_prog_cc_g=yes
3473 else
3474 CFLAGS=""
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h. */
3477
3478 int
3479 main ()
3480 {
3481
3482 ;
3483 return 0;
3484 }
3485 _ACEOF
3486 if ac_fn_c_try_compile "$LINENO"; then :
3487
3488 else
3489 ac_c_werror_flag=$ac_save_c_werror_flag
3490 CFLAGS="-g"
3491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492 /* end confdefs.h. */
3493
3494 int
3495 main ()
3496 {
3497
3498 ;
3499 return 0;
3500 }
3501 _ACEOF
3502 if ac_fn_c_try_compile "$LINENO"; then :
3503 ac_cv_prog_cc_g=yes
3504 fi
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506 fi
3507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3508 fi
3509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3510 ac_c_werror_flag=$ac_save_c_werror_flag
3511 fi
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3513 $as_echo "$ac_cv_prog_cc_g" >&6; }
3514 if test "$ac_test_CFLAGS" = set; then
3515 CFLAGS=$ac_save_CFLAGS
3516 elif test $ac_cv_prog_cc_g = yes; then
3517 if test "$GCC" = yes; then
3518 CFLAGS="-g -O2"
3519 else
3520 CFLAGS="-g"
3521 fi
3522 else
3523 if test "$GCC" = yes; then
3524 CFLAGS="-O2"
3525 else
3526 CFLAGS=
3527 fi
3528 fi
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3530 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3531 if ${ac_cv_prog_cc_c89+:} false; then :
3532 $as_echo_n "(cached) " >&6
3533 else
3534 ac_cv_prog_cc_c89=no
3535 ac_save_CC=$CC
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3538 #include <stdarg.h>
3539 #include <stdio.h>
3540 #include <sys/types.h>
3541 #include <sys/stat.h>
3542 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3543 struct buf { int x; };
3544 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3545 static char *e (p, i)
3546 char **p;
3547 int i;
3548 {
3549 return p[i];
3550 }
3551 static char *f (char * (*g) (char **, int), char **p, ...)
3552 {
3553 char *s;
3554 va_list v;
3555 va_start (v,p);
3556 s = g (p, va_arg (v,int));
3557 va_end (v);
3558 return s;
3559 }
3560
3561 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3562 function prototypes and stuff, but not '\xHH' hex character constants.
3563 These don't provoke an error unfortunately, instead are silently treated
3564 as 'x'. The following induces an error, until -std is added to get
3565 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3566 array size at least. It's necessary to write '\x00'==0 to get something
3567 that's true only with -std. */
3568 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3569
3570 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3571 inside strings and character constants. */
3572 #define FOO(x) 'x'
3573 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3574
3575 int test (int i, double x);
3576 struct s1 {int (*f) (int a);};
3577 struct s2 {int (*f) (double a);};
3578 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3579 int argc;
3580 char **argv;
3581 int
3582 main ()
3583 {
3584 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3585 ;
3586 return 0;
3587 }
3588 _ACEOF
3589 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3590 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3591 do
3592 CC="$ac_save_CC $ac_arg"
3593 if ac_fn_c_try_compile "$LINENO"; then :
3594 ac_cv_prog_cc_c89=$ac_arg
3595 fi
3596 rm -f core conftest.err conftest.$ac_objext
3597 test "x$ac_cv_prog_cc_c89" != "xno" && break
3598 done
3599 rm -f conftest.$ac_ext
3600 CC=$ac_save_CC
3601
3602 fi
3603 # AC_CACHE_VAL
3604 case "x$ac_cv_prog_cc_c89" in
3605 x)
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3607 $as_echo "none needed" >&6; } ;;
3608 xno)
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3610 $as_echo "unsupported" >&6; } ;;
3611 *)
3612 CC="$CC $ac_cv_prog_cc_c89"
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3614 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3615 esac
3616 if test "x$ac_cv_prog_cc_c89" != xno; then :
3617
3618 fi
3619
3620 ac_ext=c
3621 ac_cpp='$CPP $CPPFLAGS'
3622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3625
3626 depcc="$CC" am_compiler_list=
3627
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3629 $as_echo_n "checking dependency style of $depcc... " >&6; }
3630 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3631 $as_echo_n "(cached) " >&6
3632 else
3633 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3634 # We make a subdir and do the tests there. Otherwise we can end up
3635 # making bogus files that we don't know about and never remove. For
3636 # instance it was reported that on HP-UX the gcc test will end up
3637 # making a dummy file named `D' -- because `-MD' means `put the output
3638 # in D'.
3639 mkdir conftest.dir
3640 # Copy depcomp to subdir because otherwise we won't find it if we're
3641 # using a relative directory.
3642 cp "$am_depcomp" conftest.dir
3643 cd conftest.dir
3644 # We will build objects and dependencies in a subdirectory because
3645 # it helps to detect inapplicable dependency modes. For instance
3646 # both Tru64's cc and ICC support -MD to output dependencies as a
3647 # side effect of compilation, but ICC will put the dependencies in
3648 # the current directory while Tru64 will put them in the object
3649 # directory.
3650 mkdir sub
3651
3652 am_cv_CC_dependencies_compiler_type=none
3653 if test "$am_compiler_list" = ""; then
3654 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3655 fi
3656 am__universal=false
3657 case " $depcc " in #(
3658 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3659 esac
3660
3661 for depmode in $am_compiler_list; do
3662 # Setup a source with many dependencies, because some compilers
3663 # like to wrap large dependency lists on column 80 (with \), and
3664 # we should not choose a depcomp mode which is confused by this.
3665 #
3666 # We need to recreate these files for each test, as the compiler may
3667 # overwrite some of them when testing with obscure command lines.
3668 # This happens at least with the AIX C compiler.
3669 : > sub/conftest.c
3670 for i in 1 2 3 4 5 6; do
3671 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3672 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3673 # Solaris 8's {/usr,}/bin/sh.
3674 touch sub/conftst$i.h
3675 done
3676 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3677
3678 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3679 # mode. It turns out that the SunPro C++ compiler does not properly
3680 # handle `-M -o', and we need to detect this. Also, some Intel
3681 # versions had trouble with output in subdirs
3682 am__obj=sub/conftest.${OBJEXT-o}
3683 am__minus_obj="-o $am__obj"
3684 case $depmode in
3685 gcc)
3686 # This depmode causes a compiler race in universal mode.
3687 test "$am__universal" = false || continue
3688 ;;
3689 nosideeffect)
3690 # after this tag, mechanisms are not by side-effect, so they'll
3691 # only be used when explicitly requested
3692 if test "x$enable_dependency_tracking" = xyes; then
3693 continue
3694 else
3695 break
3696 fi
3697 ;;
3698 msvisualcpp | msvcmsys)
3699 # This compiler won't grok `-c -o', but also, the minuso test has
3700 # not run yet. These depmodes are late enough in the game, and
3701 # so weak that their functioning should not be impacted.
3702 am__obj=conftest.${OBJEXT-o}
3703 am__minus_obj=
3704 ;;
3705 none) break ;;
3706 esac
3707 if depmode=$depmode \
3708 source=sub/conftest.c object=$am__obj \
3709 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3710 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3711 >/dev/null 2>conftest.err &&
3712 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3713 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3714 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3715 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3716 # icc doesn't choke on unknown options, it will just issue warnings
3717 # or remarks (even with -Werror). So we grep stderr for any message
3718 # that says an option was ignored or not supported.
3719 # When given -MP, icc 7.0 and 7.1 complain thusly:
3720 # icc: Command line warning: ignoring option '-M'; no argument required
3721 # The diagnosis changed in icc 8.0:
3722 # icc: Command line remark: option '-MP' not supported
3723 if (grep 'ignoring option' conftest.err ||
3724 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3725 am_cv_CC_dependencies_compiler_type=$depmode
3726 break
3727 fi
3728 fi
3729 done
3730
3731 cd ..
3732 rm -rf conftest.dir
3733 else
3734 am_cv_CC_dependencies_compiler_type=none
3735 fi
3736
3737 fi
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3739 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3740 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3741
3742 if
3743 test "x$enable_dependency_tracking" != xno \
3744 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3745 am__fastdepCC_TRUE=
3746 am__fastdepCC_FALSE='#'
3747 else
3748 am__fastdepCC_TRUE='#'
3749 am__fastdepCC_FALSE=
3750 fi
3751
3752
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3754 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3755 if ${ac_cv_prog_cc_c99+:} false; then :
3756 $as_echo_n "(cached) " >&6
3757 else
3758 ac_cv_prog_cc_c99=no
3759 ac_save_CC=$CC
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h. */
3762 #include <stdarg.h>
3763 #include <stdbool.h>
3764 #include <stdlib.h>
3765 #include <wchar.h>
3766 #include <stdio.h>
3767
3768 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3769 #define debug(...) fprintf (stderr, __VA_ARGS__)
3770 #define showlist(...) puts (#__VA_ARGS__)
3771 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3772 static void
3773 test_varargs_macros (void)
3774 {
3775 int x = 1234;
3776 int y = 5678;
3777 debug ("Flag");
3778 debug ("X = %d\n", x);
3779 showlist (The first, second, and third items.);
3780 report (x>y, "x is %d but y is %d", x, y);
3781 }
3782
3783 // Check long long types.
3784 #define BIG64 18446744073709551615ull
3785 #define BIG32 4294967295ul
3786 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3787 #if !BIG_OK
3788 your preprocessor is broken;
3789 #endif
3790 #if BIG_OK
3791 #else
3792 your preprocessor is broken;
3793 #endif
3794 static long long int bignum = -9223372036854775807LL;
3795 static unsigned long long int ubignum = BIG64;
3796
3797 struct incomplete_array
3798 {
3799 int datasize;
3800 double data[];
3801 };
3802
3803 struct named_init {
3804 int number;
3805 const wchar_t *name;
3806 double average;
3807 };
3808
3809 typedef const char *ccp;
3810
3811 static inline int
3812 test_restrict (ccp restrict text)
3813 {
3814 // See if C++-style comments work.
3815 // Iterate through items via the restricted pointer.
3816 // Also check for declarations in for loops.
3817 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3818 continue;
3819 return 0;
3820 }
3821
3822 // Check varargs and va_copy.
3823 static void
3824 test_varargs (const char *format, ...)
3825 {
3826 va_list args;
3827 va_start (args, format);
3828 va_list args_copy;
3829 va_copy (args_copy, args);
3830
3831 const char *str;
3832 int number;
3833 float fnumber;
3834
3835 while (*format)
3836 {
3837 switch (*format++)
3838 {
3839 case 's': // string
3840 str = va_arg (args_copy, const char *);
3841 break;
3842 case 'd': // int
3843 number = va_arg (args_copy, int);
3844 break;
3845 case 'f': // float
3846 fnumber = va_arg (args_copy, double);
3847 break;
3848 default:
3849 break;
3850 }
3851 }
3852 va_end (args_copy);
3853 va_end (args);
3854 }
3855
3856 int
3857 main ()
3858 {
3859
3860 // Check bool.
3861 _Bool success = false;
3862
3863 // Check restrict.
3864 if (test_restrict ("String literal") == 0)
3865 success = true;
3866 char *restrict newvar = "Another string";
3867
3868 // Check varargs.
3869 test_varargs ("s, d' f .", "string", 65, 34.234);
3870 test_varargs_macros ();
3871
3872 // Check flexible array members.
3873 struct incomplete_array *ia =
3874 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3875 ia->datasize = 10;
3876 for (int i = 0; i < ia->datasize; ++i)
3877 ia->data[i] = i * 1.234;
3878
3879 // Check named initializers.
3880 struct named_init ni = {
3881 .number = 34,
3882 .name = L"Test wide string",
3883 .average = 543.34343,
3884 };
3885
3886 ni.number = 58;
3887
3888 int dynamic_array[ni.number];
3889 dynamic_array[ni.number - 1] = 543;
3890
3891 // work around unused variable warnings
3892 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3893 || dynamic_array[ni.number - 1] != 543);
3894
3895 ;
3896 return 0;
3897 }
3898 _ACEOF
3899 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3900 do
3901 CC="$ac_save_CC $ac_arg"
3902 if ac_fn_c_try_compile "$LINENO"; then :
3903 ac_cv_prog_cc_c99=$ac_arg
3904 fi
3905 rm -f core conftest.err conftest.$ac_objext
3906 test "x$ac_cv_prog_cc_c99" != "xno" && break
3907 done
3908 rm -f conftest.$ac_ext
3909 CC=$ac_save_CC
3910
3911 fi
3912 # AC_CACHE_VAL
3913 case "x$ac_cv_prog_cc_c99" in
3914 x)
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3916 $as_echo "none needed" >&6; } ;;
3917 xno)
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3919 $as_echo "unsupported" >&6; } ;;
3920 *)
3921 CC="$CC $ac_cv_prog_cc_c99"
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3923 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3924 esac
3925 if test "x$ac_cv_prog_cc_c99" != xno; then :
3926
3927 fi
3928
3929
3930
3931 ac_ext=c
3932 ac_cpp='$CPP $CPPFLAGS'
3933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3937 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3938 # On Suns, sometimes $CPP names a directory.
3939 if test -n "$CPP" && test -d "$CPP"; then
3940 CPP=
3941 fi
3942 if test -z "$CPP"; then
3943 if ${ac_cv_prog_CPP+:} false; then :
3944 $as_echo_n "(cached) " >&6
3945 else
3946 # Double quotes because CPP needs to be expanded
3947 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3948 do
3949 ac_preproc_ok=false
3950 for ac_c_preproc_warn_flag in '' yes
3951 do
3952 # Use a header file that comes with gcc, so configuring glibc
3953 # with a fresh cross-compiler works.
3954 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3955 # <limits.h> exists even on freestanding compilers.
3956 # On the NeXT, cc -E runs the code through the compiler's parser,
3957 # not just through cpp. "Syntax error" is here to catch this case.
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3960 #ifdef __STDC__
3961 # include <limits.h>
3962 #else
3963 # include <assert.h>
3964 #endif
3965 Syntax error
3966 _ACEOF
3967 if ac_fn_c_try_cpp "$LINENO"; then :
3968
3969 else
3970 # Broken: fails on valid input.
3971 continue
3972 fi
3973 rm -f conftest.err conftest.i conftest.$ac_ext
3974
3975 # OK, works on sane cases. Now check whether nonexistent headers
3976 # can be detected and how.
3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978 /* end confdefs.h. */
3979 #include <ac_nonexistent.h>
3980 _ACEOF
3981 if ac_fn_c_try_cpp "$LINENO"; then :
3982 # Broken: success on invalid input.
3983 continue
3984 else
3985 # Passes both tests.
3986 ac_preproc_ok=:
3987 break
3988 fi
3989 rm -f conftest.err conftest.i conftest.$ac_ext
3990
3991 done
3992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3993 rm -f conftest.i conftest.err conftest.$ac_ext
3994 if $ac_preproc_ok; then :
3995 break
3996 fi
3997
3998 done
3999 ac_cv_prog_CPP=$CPP
4000
4001 fi
4002 CPP=$ac_cv_prog_CPP
4003 else
4004 ac_cv_prog_CPP=$CPP
4005 fi
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4007 $as_echo "$CPP" >&6; }
4008 ac_preproc_ok=false
4009 for ac_c_preproc_warn_flag in '' yes
4010 do
4011 # Use a header file that comes with gcc, so configuring glibc
4012 # with a fresh cross-compiler works.
4013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4014 # <limits.h> exists even on freestanding compilers.
4015 # On the NeXT, cc -E runs the code through the compiler's parser,
4016 # not just through cpp. "Syntax error" is here to catch this case.
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4019 #ifdef __STDC__
4020 # include <limits.h>
4021 #else
4022 # include <assert.h>
4023 #endif
4024 Syntax error
4025 _ACEOF
4026 if ac_fn_c_try_cpp "$LINENO"; then :
4027
4028 else
4029 # Broken: fails on valid input.
4030 continue
4031 fi
4032 rm -f conftest.err conftest.i conftest.$ac_ext
4033
4034 # OK, works on sane cases. Now check whether nonexistent headers
4035 # can be detected and how.
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4038 #include <ac_nonexistent.h>
4039 _ACEOF
4040 if ac_fn_c_try_cpp "$LINENO"; then :
4041 # Broken: success on invalid input.
4042 continue
4043 else
4044 # Passes both tests.
4045 ac_preproc_ok=:
4046 break
4047 fi
4048 rm -f conftest.err conftest.i conftest.$ac_ext
4049
4050 done
4051 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4052 rm -f conftest.i conftest.err conftest.$ac_ext
4053 if $ac_preproc_ok; then :
4054
4055 else
4056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4058 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4059 See \`config.log' for more details" "$LINENO" 5; }
4060 fi
4061
4062 ac_ext=c
4063 ac_cpp='$CPP $CPPFLAGS'
4064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4067
4068
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4070 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4071 if ${ac_cv_path_GREP+:} false; then :
4072 $as_echo_n "(cached) " >&6
4073 else
4074 if test -z "$GREP"; then
4075 ac_path_GREP_found=false
4076 # Loop through the user's path and test for each of PROGNAME-LIST
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4079 do
4080 IFS=$as_save_IFS
4081 test -z "$as_dir" && as_dir=.
4082 for ac_prog in grep ggrep; do
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4085 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4086 # Check for GNU ac_path_GREP and select it if it is found.
4087 # Check for GNU $ac_path_GREP
4088 case `"$ac_path_GREP" --version 2>&1` in
4089 *GNU*)
4090 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4091 *)
4092 ac_count=0
4093 $as_echo_n 0123456789 >"conftest.in"
4094 while :
4095 do
4096 cat "conftest.in" "conftest.in" >"conftest.tmp"
4097 mv "conftest.tmp" "conftest.in"
4098 cp "conftest.in" "conftest.nl"
4099 $as_echo 'GREP' >> "conftest.nl"
4100 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4101 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4102 as_fn_arith $ac_count + 1 && ac_count=$as_val
4103 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4104 # Best one so far, save it but keep looking for a better one
4105 ac_cv_path_GREP="$ac_path_GREP"
4106 ac_path_GREP_max=$ac_count
4107 fi
4108 # 10*(2^10) chars as input seems more than enough
4109 test $ac_count -gt 10 && break
4110 done
4111 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4112 esac
4113
4114 $ac_path_GREP_found && break 3
4115 done
4116 done
4117 done
4118 IFS=$as_save_IFS
4119 if test -z "$ac_cv_path_GREP"; then
4120 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4121 fi
4122 else
4123 ac_cv_path_GREP=$GREP
4124 fi
4125
4126 fi
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4128 $as_echo "$ac_cv_path_GREP" >&6; }
4129 GREP="$ac_cv_path_GREP"
4130
4131
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4133 $as_echo_n "checking for egrep... " >&6; }
4134 if ${ac_cv_path_EGREP+:} false; then :
4135 $as_echo_n "(cached) " >&6
4136 else
4137 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4138 then ac_cv_path_EGREP="$GREP -E"
4139 else
4140 if test -z "$EGREP"; then
4141 ac_path_EGREP_found=false
4142 # Loop through the user's path and test for each of PROGNAME-LIST
4143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4145 do
4146 IFS=$as_save_IFS
4147 test -z "$as_dir" && as_dir=.
4148 for ac_prog in egrep; do
4149 for ac_exec_ext in '' $ac_executable_extensions; do
4150 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4151 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4152 # Check for GNU ac_path_EGREP and select it if it is found.
4153 # Check for GNU $ac_path_EGREP
4154 case `"$ac_path_EGREP" --version 2>&1` in
4155 *GNU*)
4156 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4157 *)
4158 ac_count=0
4159 $as_echo_n 0123456789 >"conftest.in"
4160 while :
4161 do
4162 cat "conftest.in" "conftest.in" >"conftest.tmp"
4163 mv "conftest.tmp" "conftest.in"
4164 cp "conftest.in" "conftest.nl"
4165 $as_echo 'EGREP' >> "conftest.nl"
4166 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4167 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4168 as_fn_arith $ac_count + 1 && ac_count=$as_val
4169 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4170 # Best one so far, save it but keep looking for a better one
4171 ac_cv_path_EGREP="$ac_path_EGREP"
4172 ac_path_EGREP_max=$ac_count
4173 fi
4174 # 10*(2^10) chars as input seems more than enough
4175 test $ac_count -gt 10 && break
4176 done
4177 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4178 esac
4179
4180 $ac_path_EGREP_found && break 3
4181 done
4182 done
4183 done
4184 IFS=$as_save_IFS
4185 if test -z "$ac_cv_path_EGREP"; then
4186 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4187 fi
4188 else
4189 ac_cv_path_EGREP=$EGREP
4190 fi
4191
4192 fi
4193 fi
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4195 $as_echo "$ac_cv_path_EGREP" >&6; }
4196 EGREP="$ac_cv_path_EGREP"
4197
4198
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4200 $as_echo_n "checking for ANSI C header files... " >&6; }
4201 if ${ac_cv_header_stdc+:} false; then :
4202 $as_echo_n "(cached) " >&6
4203 else
4204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205 /* end confdefs.h. */
4206 #include <stdlib.h>
4207 #include <stdarg.h>
4208 #include <string.h>
4209 #include <float.h>
4210
4211 int
4212 main ()
4213 {
4214
4215 ;
4216 return 0;
4217 }
4218 _ACEOF
4219 if ac_fn_c_try_compile "$LINENO"; then :
4220 ac_cv_header_stdc=yes
4221 else
4222 ac_cv_header_stdc=no
4223 fi
4224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4225
4226 if test $ac_cv_header_stdc = yes; then
4227 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h. */
4230 #include <string.h>
4231
4232 _ACEOF
4233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4234 $EGREP "memchr" >/dev/null 2>&1; then :
4235
4236 else
4237 ac_cv_header_stdc=no
4238 fi
4239 rm -f conftest*
4240
4241 fi
4242
4243 if test $ac_cv_header_stdc = yes; then
4244 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4247 #include <stdlib.h>
4248
4249 _ACEOF
4250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4251 $EGREP "free" >/dev/null 2>&1; then :
4252
4253 else
4254 ac_cv_header_stdc=no
4255 fi
4256 rm -f conftest*
4257
4258 fi
4259
4260 if test $ac_cv_header_stdc = yes; then
4261 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4262 if test "$cross_compiling" = yes; then :
4263 :
4264 else
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4267 #include <ctype.h>
4268 #include <stdlib.h>
4269 #if ((' ' & 0x0FF) == 0x020)
4270 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4271 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4272 #else
4273 # define ISLOWER(c) \
4274 (('a' <= (c) && (c) <= 'i') \
4275 || ('j' <= (c) && (c) <= 'r') \
4276 || ('s' <= (c) && (c) <= 'z'))
4277 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4278 #endif
4279
4280 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4281 int
4282 main ()
4283 {
4284 int i;
4285 for (i = 0; i < 256; i++)
4286 if (XOR (islower (i), ISLOWER (i))
4287 || toupper (i) != TOUPPER (i))
4288 return 2;
4289 return 0;
4290 }
4291 _ACEOF
4292 if ac_fn_c_try_run "$LINENO"; then :
4293
4294 else
4295 ac_cv_header_stdc=no
4296 fi
4297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4298 conftest.$ac_objext conftest.beam conftest.$ac_ext
4299 fi
4300
4301 fi
4302 fi
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4304 $as_echo "$ac_cv_header_stdc" >&6; }
4305 if test $ac_cv_header_stdc = yes; then
4306
4307 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4308
4309 fi
4310
4311 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4312 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4313 inttypes.h stdint.h unistd.h
4314 do :
4315 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4316 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4317 "
4318 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4319 cat >>confdefs.h <<_ACEOF
4320 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4321 _ACEOF
4322
4323 fi
4324
4325 done
4326
4327
4328
4329
4330
4331
4332 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4333 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4334 CLANGCC="yes"
4335 else
4336 CLANGCC="no"
4337 fi
4338
4339 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4340 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4341 INTELCC="yes"
4342 else
4343 INTELCC="no"
4344 fi
4345
4346 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4347 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4348 SUNCC="yes"
4349 else
4350 SUNCC="no"
4351 fi
4352
4353
4354
4355
4356 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4357 if test -n "$ac_tool_prefix"; then
4358 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4359 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361 $as_echo_n "checking for $ac_word... " >&6; }
4362 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4363 $as_echo_n "(cached) " >&6
4364 else
4365 case $PKG_CONFIG in
4366 [\\/]* | ?:[\\/]*)
4367 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4368 ;;
4369 *)
4370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371 for as_dir in $PATH
4372 do
4373 IFS=$as_save_IFS
4374 test -z "$as_dir" && as_dir=.
4375 for ac_exec_ext in '' $ac_executable_extensions; do
4376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4377 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4379 break 2
4380 fi
4381 done
4382 done
4383 IFS=$as_save_IFS
4384
4385 ;;
4386 esac
4387 fi
4388 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4389 if test -n "$PKG_CONFIG"; then
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4391 $as_echo "$PKG_CONFIG" >&6; }
4392 else
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4394 $as_echo "no" >&6; }
4395 fi
4396
4397
4398 fi
4399 if test -z "$ac_cv_path_PKG_CONFIG"; then
4400 ac_pt_PKG_CONFIG=$PKG_CONFIG
4401 # Extract the first word of "pkg-config", so it can be a program name with args.
4402 set dummy pkg-config; ac_word=$2
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404 $as_echo_n "checking for $ac_word... " >&6; }
4405 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4406 $as_echo_n "(cached) " >&6
4407 else
4408 case $ac_pt_PKG_CONFIG in
4409 [\\/]* | ?:[\\/]*)
4410 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4411 ;;
4412 *)
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 for as_dir in $PATH
4415 do
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 break 2
4423 fi
4424 done
4425 done
4426 IFS=$as_save_IFS
4427
4428 ;;
4429 esac
4430 fi
4431 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4432 if test -n "$ac_pt_PKG_CONFIG"; then
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4434 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4435 else
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4437 $as_echo "no" >&6; }
4438 fi
4439
4440 if test "x$ac_pt_PKG_CONFIG" = x; then
4441 PKG_CONFIG=""
4442 else
4443 case $cross_compiling:$ac_tool_warned in
4444 yes:)
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4447 ac_tool_warned=yes ;;
4448 esac
4449 PKG_CONFIG=$ac_pt_PKG_CONFIG
4450 fi
4451 else
4452 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4453 fi
4454
4455 fi
4456 if test -n "$PKG_CONFIG"; then
4457 _pkg_min_version=0.9.0
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4459 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4460 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4462 $as_echo "yes" >&6; }
4463 else
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4465 $as_echo "no" >&6; }
4466 PKG_CONFIG=""
4467 fi
4468
4469 fi
4470 # Make sure we can run config.sub.
4471 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4472 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4473
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4475 $as_echo_n "checking build system type... " >&6; }
4476 if ${ac_cv_build+:} false; then :
4477 $as_echo_n "(cached) " >&6
4478 else
4479 ac_build_alias=$build_alias
4480 test "x$ac_build_alias" = x &&
4481 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4482 test "x$ac_build_alias" = x &&
4483 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4484 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4485 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4486
4487 fi
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4489 $as_echo "$ac_cv_build" >&6; }
4490 case $ac_cv_build in
4491 *-*-*) ;;
4492 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4493 esac
4494 build=$ac_cv_build
4495 ac_save_IFS=$IFS; IFS='-'
4496 set x $ac_cv_build
4497 shift
4498 build_cpu=$1
4499 build_vendor=$2
4500 shift; shift
4501 # Remember, the first character of IFS is used to create $*,
4502 # except with old shells:
4503 build_os=$*
4504 IFS=$ac_save_IFS
4505 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4506
4507
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4509 $as_echo_n "checking host system type... " >&6; }
4510 if ${ac_cv_host+:} false; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 if test "x$host_alias" = x; then
4514 ac_cv_host=$ac_cv_build
4515 else
4516 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4517 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4518 fi
4519
4520 fi
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4522 $as_echo "$ac_cv_host" >&6; }
4523 case $ac_cv_host in
4524 *-*-*) ;;
4525 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4526 esac
4527 host=$ac_cv_host
4528 ac_save_IFS=$IFS; IFS='-'
4529 set x $ac_cv_host
4530 shift
4531 host_cpu=$1
4532 host_vendor=$2
4533 shift; shift
4534 # Remember, the first character of IFS is used to create $*,
4535 # except with old shells:
4536 host_os=$*
4537 IFS=$ac_save_IFS
4538 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4539
4540
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4542 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4543 if ${ac_cv_path_SED+:} false; then :
4544 $as_echo_n "(cached) " >&6
4545 else
4546 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4547 for ac_i in 1 2 3 4 5 6 7; do
4548 ac_script="$ac_script$as_nl$ac_script"
4549 done
4550 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4551 { ac_script=; unset ac_script;}
4552 if test -z "$SED"; then
4553 ac_path_SED_found=false
4554 # Loop through the user's path and test for each of PROGNAME-LIST
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH
4557 do
4558 IFS=$as_save_IFS
4559 test -z "$as_dir" && as_dir=.
4560 for ac_prog in sed gsed; do
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4563 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4564 # Check for GNU ac_path_SED and select it if it is found.
4565 # Check for GNU $ac_path_SED
4566 case `"$ac_path_SED" --version 2>&1` in
4567 *GNU*)
4568 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4569 *)
4570 ac_count=0
4571 $as_echo_n 0123456789 >"conftest.in"
4572 while :
4573 do
4574 cat "conftest.in" "conftest.in" >"conftest.tmp"
4575 mv "conftest.tmp" "conftest.in"
4576 cp "conftest.in" "conftest.nl"
4577 $as_echo '' >> "conftest.nl"
4578 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4579 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4580 as_fn_arith $ac_count + 1 && ac_count=$as_val
4581 if test $ac_count -gt ${ac_path_SED_max-0}; then
4582 # Best one so far, save it but keep looking for a better one
4583 ac_cv_path_SED="$ac_path_SED"
4584 ac_path_SED_max=$ac_count
4585 fi
4586 # 10*(2^10) chars as input seems more than enough
4587 test $ac_count -gt 10 && break
4588 done
4589 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4590 esac
4591
4592 $ac_path_SED_found && break 3
4593 done
4594 done
4595 done
4596 IFS=$as_save_IFS
4597 if test -z "$ac_cv_path_SED"; then
4598 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4599 fi
4600 else
4601 ac_cv_path_SED=$SED
4602 fi
4603
4604 fi
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4606 $as_echo "$ac_cv_path_SED" >&6; }
4607 SED="$ac_cv_path_SED"
4608 rm -f conftest.sed
4609
4610
4611
4612
4613
4614
4615 # Check whether --enable-selective-werror was given.
4616 if test "${enable_selective_werror+set}" = set; then :
4617 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4618 else
4619 SELECTIVE_WERROR=yes
4620 fi
4621
4622
4623
4624
4625
4626 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4627 if test "x$SUNCC" = "xyes"; then
4628 BASE_CFLAGS="-v"
4629 else
4630 BASE_CFLAGS=""
4631 fi
4632
4633 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647 xorg_testset_save_CFLAGS="$CFLAGS"
4648
4649 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4652 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4653 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4654 $as_echo_n "(cached) " >&6
4655 else
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4658 int i;
4659 _ACEOF
4660 if ac_fn_c_try_compile "$LINENO"; then :
4661 xorg_cv_cc_flag_unknown_warning_option=yes
4662 else
4663 xorg_cv_cc_flag_unknown_warning_option=no
4664 fi
4665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4666 fi
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4668 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4670 CFLAGS="$xorg_testset_save_CFLAGS"
4671 fi
4672
4673 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4676 fi
4677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4679 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4680 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4681 $as_echo_n "(cached) " >&6
4682 else
4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684 /* end confdefs.h. */
4685 int i;
4686 _ACEOF
4687 if ac_fn_c_try_compile "$LINENO"; then :
4688 xorg_cv_cc_flag_unused_command_line_argument=yes
4689 else
4690 xorg_cv_cc_flag_unused_command_line_argument=no
4691 fi
4692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4693 fi
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4695 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4697 CFLAGS="$xorg_testset_save_CFLAGS"
4698 fi
4699
4700 found="no"
4701
4702 if test $found = "no" ; then
4703 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4705 fi
4706
4707 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4709 fi
4710
4711 CFLAGS="$CFLAGS -Wall"
4712
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4714 $as_echo_n "checking if $CC supports-Wall... " >&6; }
4715 cacheid=xorg_cv_cc_flag__Wall
4716 if eval \${$cacheid+:} false; then :
4717 $as_echo_n "(cached) " >&6
4718 else
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4721 int i;
4722 int
4723 main ()
4724 {
4725
4726 ;
4727 return 0;
4728 }
4729 _ACEOF
4730 if ac_fn_c_try_link "$LINENO"; then :
4731 eval $cacheid=yes
4732 else
4733 eval $cacheid=no
4734 fi
4735 rm -f core conftest.err conftest.$ac_objext \
4736 conftest$ac_exeext conftest.$ac_ext
4737 fi
4738
4739
4740 CFLAGS="$xorg_testset_save_CFLAGS"
4741
4742 eval supported=\$$cacheid
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4744 $as_echo "$supported" >&6; }
4745 if test "$supported" = "yes" ; then
4746 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4747 found="yes"
4748 fi
4749 fi
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765 xorg_testset_save_CFLAGS="$CFLAGS"
4766
4767 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4770 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4771 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4772 $as_echo_n "(cached) " >&6
4773 else
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4776 int i;
4777 _ACEOF
4778 if ac_fn_c_try_compile "$LINENO"; then :
4779 xorg_cv_cc_flag_unknown_warning_option=yes
4780 else
4781 xorg_cv_cc_flag_unknown_warning_option=no
4782 fi
4783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784 fi
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4786 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4787 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4788 CFLAGS="$xorg_testset_save_CFLAGS"
4789 fi
4790
4791 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4794 fi
4795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4797 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4798 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4799 $as_echo_n "(cached) " >&6
4800 else
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4803 int i;
4804 _ACEOF
4805 if ac_fn_c_try_compile "$LINENO"; then :
4806 xorg_cv_cc_flag_unused_command_line_argument=yes
4807 else
4808 xorg_cv_cc_flag_unused_command_line_argument=no
4809 fi
4810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4811 fi
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4813 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4814 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4815 CFLAGS="$xorg_testset_save_CFLAGS"
4816 fi
4817
4818 found="no"
4819
4820 if test $found = "no" ; then
4821 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4823 fi
4824
4825 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4827 fi
4828
4829 CFLAGS="$CFLAGS -Wpointer-arith"
4830
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
4832 $as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
4833 cacheid=xorg_cv_cc_flag__Wpointer_arith
4834 if eval \${$cacheid+:} false; then :
4835 $as_echo_n "(cached) " >&6
4836 else
4837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4838 /* end confdefs.h. */
4839 int i;
4840 int
4841 main ()
4842 {
4843
4844 ;
4845 return 0;
4846 }
4847 _ACEOF
4848 if ac_fn_c_try_link "$LINENO"; then :
4849 eval $cacheid=yes
4850 else
4851 eval $cacheid=no
4852 fi
4853 rm -f core conftest.err conftest.$ac_objext \
4854 conftest$ac_exeext conftest.$ac_ext
4855 fi
4856
4857
4858 CFLAGS="$xorg_testset_save_CFLAGS"
4859
4860 eval supported=\$$cacheid
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4862 $as_echo "$supported" >&6; }
4863 if test "$supported" = "yes" ; then
4864 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4865 found="yes"
4866 fi
4867 fi
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883 xorg_testset_save_CFLAGS="$CFLAGS"
4884
4885 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4888 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4889 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4890 $as_echo_n "(cached) " >&6
4891 else
4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893 /* end confdefs.h. */
4894 int i;
4895 _ACEOF
4896 if ac_fn_c_try_compile "$LINENO"; then :
4897 xorg_cv_cc_flag_unknown_warning_option=yes
4898 else
4899 xorg_cv_cc_flag_unknown_warning_option=no
4900 fi
4901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902 fi
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4904 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4905 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4906 CFLAGS="$xorg_testset_save_CFLAGS"
4907 fi
4908
4909 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4912 fi
4913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4915 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4916 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920 /* end confdefs.h. */
4921 int i;
4922 _ACEOF
4923 if ac_fn_c_try_compile "$LINENO"; then :
4924 xorg_cv_cc_flag_unused_command_line_argument=yes
4925 else
4926 xorg_cv_cc_flag_unused_command_line_argument=no
4927 fi
4928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929 fi
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4931 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4932 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4933 CFLAGS="$xorg_testset_save_CFLAGS"
4934 fi
4935
4936 found="no"
4937
4938 if test $found = "no" ; then
4939 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4941 fi
4942
4943 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4945 fi
4946
4947 CFLAGS="$CFLAGS -Wmissing-declarations"
4948
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
4950 $as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
4951 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4952 if eval \${$cacheid+:} false; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956 /* end confdefs.h. */
4957 int i;
4958 int
4959 main ()
4960 {
4961
4962 ;
4963 return 0;
4964 }
4965 _ACEOF
4966 if ac_fn_c_try_link "$LINENO"; then :
4967 eval $cacheid=yes
4968 else
4969 eval $cacheid=no
4970 fi
4971 rm -f core conftest.err conftest.$ac_objext \
4972 conftest$ac_exeext conftest.$ac_ext
4973 fi
4974
4975
4976 CFLAGS="$xorg_testset_save_CFLAGS"
4977
4978 eval supported=\$$cacheid
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4980 $as_echo "$supported" >&6; }
4981 if test "$supported" = "yes" ; then
4982 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4983 found="yes"
4984 fi
4985 fi
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001 xorg_testset_save_CFLAGS="$CFLAGS"
5002
5003 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5006 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5007 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5008 $as_echo_n "(cached) " >&6
5009 else
5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011 /* end confdefs.h. */
5012 int i;
5013 _ACEOF
5014 if ac_fn_c_try_compile "$LINENO"; then :
5015 xorg_cv_cc_flag_unknown_warning_option=yes
5016 else
5017 xorg_cv_cc_flag_unknown_warning_option=no
5018 fi
5019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5020 fi
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5022 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5023 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5024 CFLAGS="$xorg_testset_save_CFLAGS"
5025 fi
5026
5027 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5030 fi
5031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5033 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5034 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5035 $as_echo_n "(cached) " >&6
5036 else
5037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038 /* end confdefs.h. */
5039 int i;
5040 _ACEOF
5041 if ac_fn_c_try_compile "$LINENO"; then :
5042 xorg_cv_cc_flag_unused_command_line_argument=yes
5043 else
5044 xorg_cv_cc_flag_unused_command_line_argument=no
5045 fi
5046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047 fi
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5049 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5050 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5051 CFLAGS="$xorg_testset_save_CFLAGS"
5052 fi
5053
5054 found="no"
5055
5056 if test $found = "no" ; then
5057 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5059 fi
5060
5061 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5063 fi
5064
5065 CFLAGS="$CFLAGS -Wformat=2"
5066
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
5068 $as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
5069 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5070 if eval \${$cacheid+:} false; then :
5071 $as_echo_n "(cached) " >&6
5072 else
5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074 /* end confdefs.h. */
5075 int i;
5076 int
5077 main ()
5078 {
5079
5080 ;
5081 return 0;
5082 }
5083 _ACEOF
5084 if ac_fn_c_try_link "$LINENO"; then :
5085 eval $cacheid=yes
5086 else
5087 eval $cacheid=no
5088 fi
5089 rm -f core conftest.err conftest.$ac_objext \
5090 conftest$ac_exeext conftest.$ac_ext
5091 fi
5092
5093
5094 CFLAGS="$xorg_testset_save_CFLAGS"
5095
5096 eval supported=\$$cacheid
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5098 $as_echo "$supported" >&6; }
5099 if test "$supported" = "yes" ; then
5100 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5101 found="yes"
5102 fi
5103 fi
5104
5105 if test $found = "no" ; then
5106 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5108 fi
5109
5110 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5112 fi
5113
5114 CFLAGS="$CFLAGS -Wformat"
5115
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
5117 $as_echo_n "checking if $CC supports-Wformat... " >&6; }
5118 cacheid=xorg_cv_cc_flag__Wformat
5119 if eval \${$cacheid+:} false; then :
5120 $as_echo_n "(cached) " >&6
5121 else
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h. */
5124 int i;
5125 int
5126 main ()
5127 {
5128
5129 ;
5130 return 0;
5131 }
5132 _ACEOF
5133 if ac_fn_c_try_link "$LINENO"; then :
5134 eval $cacheid=yes
5135 else
5136 eval $cacheid=no
5137 fi
5138 rm -f core conftest.err conftest.$ac_objext \
5139 conftest$ac_exeext conftest.$ac_ext
5140 fi
5141
5142
5143 CFLAGS="$xorg_testset_save_CFLAGS"
5144
5145 eval supported=\$$cacheid
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5147 $as_echo "$supported" >&6; }
5148 if test "$supported" = "yes" ; then
5149 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5150 found="yes"
5151 fi
5152 fi
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170 xorg_testset_save_CFLAGS="$CFLAGS"
5171
5172 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5175 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5176 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5177 $as_echo_n "(cached) " >&6
5178 else
5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h. */
5181 int i;
5182 _ACEOF
5183 if ac_fn_c_try_compile "$LINENO"; then :
5184 xorg_cv_cc_flag_unknown_warning_option=yes
5185 else
5186 xorg_cv_cc_flag_unknown_warning_option=no
5187 fi
5188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5189 fi
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5191 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5192 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5193 CFLAGS="$xorg_testset_save_CFLAGS"
5194 fi
5195
5196 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5199 fi
5200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5202 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5203 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5204 $as_echo_n "(cached) " >&6
5205 else
5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207 /* end confdefs.h. */
5208 int i;
5209 _ACEOF
5210 if ac_fn_c_try_compile "$LINENO"; then :
5211 xorg_cv_cc_flag_unused_command_line_argument=yes
5212 else
5213 xorg_cv_cc_flag_unused_command_line_argument=no
5214 fi
5215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5216 fi
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5218 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5219 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5220 CFLAGS="$xorg_testset_save_CFLAGS"
5221 fi
5222
5223 found="no"
5224
5225 if test $found = "no" ; then
5226 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5227 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5228 fi
5229
5230 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5232 fi
5233
5234 CFLAGS="$CFLAGS -Wstrict-prototypes"
5235
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5237 $as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5238 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5239 if eval \${$cacheid+:} false; then :
5240 $as_echo_n "(cached) " >&6
5241 else
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5244 int i;
5245 int
5246 main ()
5247 {
5248
5249 ;
5250 return 0;
5251 }
5252 _ACEOF
5253 if ac_fn_c_try_link "$LINENO"; then :
5254 eval $cacheid=yes
5255 else
5256 eval $cacheid=no
5257 fi
5258 rm -f core conftest.err conftest.$ac_objext \
5259 conftest$ac_exeext conftest.$ac_ext
5260 fi
5261
5262
5263 CFLAGS="$xorg_testset_save_CFLAGS"
5264
5265 eval supported=\$$cacheid
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5267 $as_echo "$supported" >&6; }
5268 if test "$supported" = "yes" ; then
5269 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5270 found="yes"
5271 fi
5272 fi
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288 xorg_testset_save_CFLAGS="$CFLAGS"
5289
5290 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5293 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5294 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5295 $as_echo_n "(cached) " >&6
5296 else
5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h. */
5299 int i;
5300 _ACEOF
5301 if ac_fn_c_try_compile "$LINENO"; then :
5302 xorg_cv_cc_flag_unknown_warning_option=yes
5303 else
5304 xorg_cv_cc_flag_unknown_warning_option=no
5305 fi
5306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5307 fi
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5309 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5310 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5311 CFLAGS="$xorg_testset_save_CFLAGS"
5312 fi
5313
5314 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5317 fi
5318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5320 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5321 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5322 $as_echo_n "(cached) " >&6
5323 else
5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325 /* end confdefs.h. */
5326 int i;
5327 _ACEOF
5328 if ac_fn_c_try_compile "$LINENO"; then :
5329 xorg_cv_cc_flag_unused_command_line_argument=yes
5330 else
5331 xorg_cv_cc_flag_unused_command_line_argument=no
5332 fi
5333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5334 fi
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5336 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5337 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5338 CFLAGS="$xorg_testset_save_CFLAGS"
5339 fi
5340
5341 found="no"
5342
5343 if test $found = "no" ; then
5344 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5346 fi
5347
5348 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5350 fi
5351
5352 CFLAGS="$CFLAGS -Wmissing-prototypes"
5353
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5355 $as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5356 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5357 if eval \${$cacheid+:} false; then :
5358 $as_echo_n "(cached) " >&6
5359 else
5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h. */
5362 int i;
5363 int
5364 main ()
5365 {
5366
5367 ;
5368 return 0;
5369 }
5370 _ACEOF
5371 if ac_fn_c_try_link "$LINENO"; then :
5372 eval $cacheid=yes
5373 else
5374 eval $cacheid=no
5375 fi
5376 rm -f core conftest.err conftest.$ac_objext \
5377 conftest$ac_exeext conftest.$ac_ext
5378 fi
5379
5380
5381 CFLAGS="$xorg_testset_save_CFLAGS"
5382
5383 eval supported=\$$cacheid
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5385 $as_echo "$supported" >&6; }
5386 if test "$supported" = "yes" ; then
5387 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5388 found="yes"
5389 fi
5390 fi
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406 xorg_testset_save_CFLAGS="$CFLAGS"
5407
5408 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5411 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5412 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5413 $as_echo_n "(cached) " >&6
5414 else
5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5417 int i;
5418 _ACEOF
5419 if ac_fn_c_try_compile "$LINENO"; then :
5420 xorg_cv_cc_flag_unknown_warning_option=yes
5421 else
5422 xorg_cv_cc_flag_unknown_warning_option=no
5423 fi
5424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5425 fi
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5427 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5428 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5429 CFLAGS="$xorg_testset_save_CFLAGS"
5430 fi
5431
5432 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5435 fi
5436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5438 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5439 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5440 $as_echo_n "(cached) " >&6
5441 else
5442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443 /* end confdefs.h. */
5444 int i;
5445 _ACEOF
5446 if ac_fn_c_try_compile "$LINENO"; then :
5447 xorg_cv_cc_flag_unused_command_line_argument=yes
5448 else
5449 xorg_cv_cc_flag_unused_command_line_argument=no
5450 fi
5451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452 fi
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5454 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5455 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5456 CFLAGS="$xorg_testset_save_CFLAGS"
5457 fi
5458
5459 found="no"
5460
5461 if test $found = "no" ; then
5462 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5464 fi
5465
5466 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5468 fi
5469
5470 CFLAGS="$CFLAGS -Wnested-externs"
5471
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5473 $as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5474 cacheid=xorg_cv_cc_flag__Wnested_externs
5475 if eval \${$cacheid+:} false; then :
5476 $as_echo_n "(cached) " >&6
5477 else
5478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479 /* end confdefs.h. */
5480 int i;
5481 int
5482 main ()
5483 {
5484
5485 ;
5486 return 0;
5487 }
5488 _ACEOF
5489 if ac_fn_c_try_link "$LINENO"; then :
5490 eval $cacheid=yes
5491 else
5492 eval $cacheid=no
5493 fi
5494 rm -f core conftest.err conftest.$ac_objext \
5495 conftest$ac_exeext conftest.$ac_ext
5496 fi
5497
5498
5499 CFLAGS="$xorg_testset_save_CFLAGS"
5500
5501 eval supported=\$$cacheid
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5503 $as_echo "$supported" >&6; }
5504 if test "$supported" = "yes" ; then
5505 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5506 found="yes"
5507 fi
5508 fi
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524 xorg_testset_save_CFLAGS="$CFLAGS"
5525
5526 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5529 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5530 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5531 $as_echo_n "(cached) " >&6
5532 else
5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h. */
5535 int i;
5536 _ACEOF
5537 if ac_fn_c_try_compile "$LINENO"; then :
5538 xorg_cv_cc_flag_unknown_warning_option=yes
5539 else
5540 xorg_cv_cc_flag_unknown_warning_option=no
5541 fi
5542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5543 fi
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5545 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5546 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5547 CFLAGS="$xorg_testset_save_CFLAGS"
5548 fi
5549
5550 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5553 fi
5554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5556 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5557 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5558 $as_echo_n "(cached) " >&6
5559 else
5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5562 int i;
5563 _ACEOF
5564 if ac_fn_c_try_compile "$LINENO"; then :
5565 xorg_cv_cc_flag_unused_command_line_argument=yes
5566 else
5567 xorg_cv_cc_flag_unused_command_line_argument=no
5568 fi
5569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 fi
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5572 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5573 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5574 CFLAGS="$xorg_testset_save_CFLAGS"
5575 fi
5576
5577 found="no"
5578
5579 if test $found = "no" ; then
5580 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5582 fi
5583
5584 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5586 fi
5587
5588 CFLAGS="$CFLAGS -Wbad-function-cast"
5589
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5591 $as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5592 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5593 if eval \${$cacheid+:} false; then :
5594 $as_echo_n "(cached) " >&6
5595 else
5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597 /* end confdefs.h. */
5598 int i;
5599 int
5600 main ()
5601 {
5602
5603 ;
5604 return 0;
5605 }
5606 _ACEOF
5607 if ac_fn_c_try_link "$LINENO"; then :
5608 eval $cacheid=yes
5609 else
5610 eval $cacheid=no
5611 fi
5612 rm -f core conftest.err conftest.$ac_objext \
5613 conftest$ac_exeext conftest.$ac_ext
5614 fi
5615
5616
5617 CFLAGS="$xorg_testset_save_CFLAGS"
5618
5619 eval supported=\$$cacheid
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5621 $as_echo "$supported" >&6; }
5622 if test "$supported" = "yes" ; then
5623 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5624 found="yes"
5625 fi
5626 fi
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642 xorg_testset_save_CFLAGS="$CFLAGS"
5643
5644 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5647 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5648 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5649 $as_echo_n "(cached) " >&6
5650 else
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5653 int i;
5654 _ACEOF
5655 if ac_fn_c_try_compile "$LINENO"; then :
5656 xorg_cv_cc_flag_unknown_warning_option=yes
5657 else
5658 xorg_cv_cc_flag_unknown_warning_option=no
5659 fi
5660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5661 fi
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5663 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5664 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5665 CFLAGS="$xorg_testset_save_CFLAGS"
5666 fi
5667
5668 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5671 fi
5672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5674 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5675 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5676 $as_echo_n "(cached) " >&6
5677 else
5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679 /* end confdefs.h. */
5680 int i;
5681 _ACEOF
5682 if ac_fn_c_try_compile "$LINENO"; then :
5683 xorg_cv_cc_flag_unused_command_line_argument=yes
5684 else
5685 xorg_cv_cc_flag_unused_command_line_argument=no
5686 fi
5687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688 fi
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5690 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5691 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5692 CFLAGS="$xorg_testset_save_CFLAGS"
5693 fi
5694
5695 found="no"
5696
5697 if test $found = "no" ; then
5698 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5700 fi
5701
5702 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5704 fi
5705
5706 CFLAGS="$CFLAGS -Wold-style-definition"
5707
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5709 $as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5710 cacheid=xorg_cv_cc_flag__Wold_style_definition
5711 if eval \${$cacheid+:} false; then :
5712 $as_echo_n "(cached) " >&6
5713 else
5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5715 /* end confdefs.h. */
5716 int i;
5717 int
5718 main ()
5719 {
5720
5721 ;
5722 return 0;
5723 }
5724 _ACEOF
5725 if ac_fn_c_try_link "$LINENO"; then :
5726 eval $cacheid=yes
5727 else
5728 eval $cacheid=no
5729 fi
5730 rm -f core conftest.err conftest.$ac_objext \
5731 conftest$ac_exeext conftest.$ac_ext
5732 fi
5733
5734
5735 CFLAGS="$xorg_testset_save_CFLAGS"
5736
5737 eval supported=\$$cacheid
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5739 $as_echo "$supported" >&6; }
5740 if test "$supported" = "yes" ; then
5741 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5742 found="yes"
5743 fi
5744 fi
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760 xorg_testset_save_CFLAGS="$CFLAGS"
5761
5762 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5765 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5766 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5767 $as_echo_n "(cached) " >&6
5768 else
5769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770 /* end confdefs.h. */
5771 int i;
5772 _ACEOF
5773 if ac_fn_c_try_compile "$LINENO"; then :
5774 xorg_cv_cc_flag_unknown_warning_option=yes
5775 else
5776 xorg_cv_cc_flag_unknown_warning_option=no
5777 fi
5778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5779 fi
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5781 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5782 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5783 CFLAGS="$xorg_testset_save_CFLAGS"
5784 fi
5785
5786 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5788 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5789 fi
5790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5792 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5793 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5794 $as_echo_n "(cached) " >&6
5795 else
5796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797 /* end confdefs.h. */
5798 int i;
5799 _ACEOF
5800 if ac_fn_c_try_compile "$LINENO"; then :
5801 xorg_cv_cc_flag_unused_command_line_argument=yes
5802 else
5803 xorg_cv_cc_flag_unused_command_line_argument=no
5804 fi
5805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5806 fi
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5808 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5809 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5810 CFLAGS="$xorg_testset_save_CFLAGS"
5811 fi
5812
5813 found="no"
5814
5815 if test $found = "no" ; then
5816 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5818 fi
5819
5820 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5822 fi
5823
5824 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5825
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
5827 $as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
5828 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5829 if eval \${$cacheid+:} false; then :
5830 $as_echo_n "(cached) " >&6
5831 else
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h. */
5834 int i;
5835 int
5836 main ()
5837 {
5838
5839 ;
5840 return 0;
5841 }
5842 _ACEOF
5843 if ac_fn_c_try_link "$LINENO"; then :
5844 eval $cacheid=yes
5845 else
5846 eval $cacheid=no
5847 fi
5848 rm -f core conftest.err conftest.$ac_objext \
5849 conftest$ac_exeext conftest.$ac_ext
5850 fi
5851
5852
5853 CFLAGS="$xorg_testset_save_CFLAGS"
5854
5855 eval supported=\$$cacheid
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5857 $as_echo "$supported" >&6; }
5858 if test "$supported" = "yes" ; then
5859 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5860 found="yes"
5861 fi
5862 fi
5863
5864
5865
5866
5867
5868 # This chunk adds additional warnings that could catch undesired effects.
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882 xorg_testset_save_CFLAGS="$CFLAGS"
5883
5884 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5887 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5888 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5889 $as_echo_n "(cached) " >&6
5890 else
5891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892 /* end confdefs.h. */
5893 int i;
5894 _ACEOF
5895 if ac_fn_c_try_compile "$LINENO"; then :
5896 xorg_cv_cc_flag_unknown_warning_option=yes
5897 else
5898 xorg_cv_cc_flag_unknown_warning_option=no
5899 fi
5900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5901 fi
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5903 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5905 CFLAGS="$xorg_testset_save_CFLAGS"
5906 fi
5907
5908 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5911 fi
5912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5914 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5915 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5916 $as_echo_n "(cached) " >&6
5917 else
5918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919 /* end confdefs.h. */
5920 int i;
5921 _ACEOF
5922 if ac_fn_c_try_compile "$LINENO"; then :
5923 xorg_cv_cc_flag_unused_command_line_argument=yes
5924 else
5925 xorg_cv_cc_flag_unused_command_line_argument=no
5926 fi
5927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5928 fi
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5930 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5931 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5932 CFLAGS="$xorg_testset_save_CFLAGS"
5933 fi
5934
5935 found="no"
5936
5937 if test $found = "no" ; then
5938 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5940 fi
5941
5942 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5944 fi
5945
5946 CFLAGS="$CFLAGS -Wunused"
5947
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
5949 $as_echo_n "checking if $CC supports-Wunused... " >&6; }
5950 cacheid=xorg_cv_cc_flag__Wunused
5951 if eval \${$cacheid+:} false; then :
5952 $as_echo_n "(cached) " >&6
5953 else
5954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955 /* end confdefs.h. */
5956 int i;
5957 int
5958 main ()
5959 {
5960
5961 ;
5962 return 0;
5963 }
5964 _ACEOF
5965 if ac_fn_c_try_link "$LINENO"; then :
5966 eval $cacheid=yes
5967 else
5968 eval $cacheid=no
5969 fi
5970 rm -f core conftest.err conftest.$ac_objext \
5971 conftest$ac_exeext conftest.$ac_ext
5972 fi
5973
5974
5975 CFLAGS="$xorg_testset_save_CFLAGS"
5976
5977 eval supported=\$$cacheid
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5979 $as_echo "$supported" >&6; }
5980 if test "$supported" = "yes" ; then
5981 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5982 found="yes"
5983 fi
5984 fi
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000 xorg_testset_save_CFLAGS="$CFLAGS"
6001
6002 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6005 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6006 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6007 $as_echo_n "(cached) " >&6
6008 else
6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6011 int i;
6012 _ACEOF
6013 if ac_fn_c_try_compile "$LINENO"; then :
6014 xorg_cv_cc_flag_unknown_warning_option=yes
6015 else
6016 xorg_cv_cc_flag_unknown_warning_option=no
6017 fi
6018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019 fi
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6021 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6022 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6023 CFLAGS="$xorg_testset_save_CFLAGS"
6024 fi
6025
6026 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6029 fi
6030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6032 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6033 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6034 $as_echo_n "(cached) " >&6
6035 else
6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6038 int i;
6039 _ACEOF
6040 if ac_fn_c_try_compile "$LINENO"; then :
6041 xorg_cv_cc_flag_unused_command_line_argument=yes
6042 else
6043 xorg_cv_cc_flag_unused_command_line_argument=no
6044 fi
6045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046 fi
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6048 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6049 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6050 CFLAGS="$xorg_testset_save_CFLAGS"
6051 fi
6052
6053 found="no"
6054
6055 if test $found = "no" ; then
6056 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6058 fi
6059
6060 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6062 fi
6063
6064 CFLAGS="$CFLAGS -Wuninitialized"
6065
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
6067 $as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
6068 cacheid=xorg_cv_cc_flag__Wuninitialized
6069 if eval \${$cacheid+:} false; then :
6070 $as_echo_n "(cached) " >&6
6071 else
6072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6073 /* end confdefs.h. */
6074 int i;
6075 int
6076 main ()
6077 {
6078
6079 ;
6080 return 0;
6081 }
6082 _ACEOF
6083 if ac_fn_c_try_link "$LINENO"; then :
6084 eval $cacheid=yes
6085 else
6086 eval $cacheid=no
6087 fi
6088 rm -f core conftest.err conftest.$ac_objext \
6089 conftest$ac_exeext conftest.$ac_ext
6090 fi
6091
6092
6093 CFLAGS="$xorg_testset_save_CFLAGS"
6094
6095 eval supported=\$$cacheid
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6097 $as_echo "$supported" >&6; }
6098 if test "$supported" = "yes" ; then
6099 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6100 found="yes"
6101 fi
6102 fi
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118 xorg_testset_save_CFLAGS="$CFLAGS"
6119
6120 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6123 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6124 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6125 $as_echo_n "(cached) " >&6
6126 else
6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128 /* end confdefs.h. */
6129 int i;
6130 _ACEOF
6131 if ac_fn_c_try_compile "$LINENO"; then :
6132 xorg_cv_cc_flag_unknown_warning_option=yes
6133 else
6134 xorg_cv_cc_flag_unknown_warning_option=no
6135 fi
6136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6137 fi
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6139 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6140 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6141 CFLAGS="$xorg_testset_save_CFLAGS"
6142 fi
6143
6144 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6147 fi
6148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6150 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6151 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6152 $as_echo_n "(cached) " >&6
6153 else
6154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6156 int i;
6157 _ACEOF
6158 if ac_fn_c_try_compile "$LINENO"; then :
6159 xorg_cv_cc_flag_unused_command_line_argument=yes
6160 else
6161 xorg_cv_cc_flag_unused_command_line_argument=no
6162 fi
6163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6164 fi
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6166 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6167 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6168 CFLAGS="$xorg_testset_save_CFLAGS"
6169 fi
6170
6171 found="no"
6172
6173 if test $found = "no" ; then
6174 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6176 fi
6177
6178 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6180 fi
6181
6182 CFLAGS="$CFLAGS -Wshadow"
6183
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6185 $as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6186 cacheid=xorg_cv_cc_flag__Wshadow
6187 if eval \${$cacheid+:} false; then :
6188 $as_echo_n "(cached) " >&6
6189 else
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6192 int i;
6193 int
6194 main ()
6195 {
6196
6197 ;
6198 return 0;
6199 }
6200 _ACEOF
6201 if ac_fn_c_try_link "$LINENO"; then :
6202 eval $cacheid=yes
6203 else
6204 eval $cacheid=no
6205 fi
6206 rm -f core conftest.err conftest.$ac_objext \
6207 conftest$ac_exeext conftest.$ac_ext
6208 fi
6209
6210
6211 CFLAGS="$xorg_testset_save_CFLAGS"
6212
6213 eval supported=\$$cacheid
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6215 $as_echo "$supported" >&6; }
6216 if test "$supported" = "yes" ; then
6217 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6218 found="yes"
6219 fi
6220 fi
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236 xorg_testset_save_CFLAGS="$CFLAGS"
6237
6238 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6241 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6242 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6243 $as_echo_n "(cached) " >&6
6244 else
6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246 /* end confdefs.h. */
6247 int i;
6248 _ACEOF
6249 if ac_fn_c_try_compile "$LINENO"; then :
6250 xorg_cv_cc_flag_unknown_warning_option=yes
6251 else
6252 xorg_cv_cc_flag_unknown_warning_option=no
6253 fi
6254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6255 fi
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6257 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6258 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6259 CFLAGS="$xorg_testset_save_CFLAGS"
6260 fi
6261
6262 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6265 fi
6266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6268 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6269 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6270 $as_echo_n "(cached) " >&6
6271 else
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6274 int i;
6275 _ACEOF
6276 if ac_fn_c_try_compile "$LINENO"; then :
6277 xorg_cv_cc_flag_unused_command_line_argument=yes
6278 else
6279 xorg_cv_cc_flag_unused_command_line_argument=no
6280 fi
6281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6282 fi
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6284 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6285 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6286 CFLAGS="$xorg_testset_save_CFLAGS"
6287 fi
6288
6289 found="no"
6290
6291 if test $found = "no" ; then
6292 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6294 fi
6295
6296 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6298 fi
6299
6300 CFLAGS="$CFLAGS -Wcast-qual"
6301
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6303 $as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6304 cacheid=xorg_cv_cc_flag__Wcast_qual
6305 if eval \${$cacheid+:} false; then :
6306 $as_echo_n "(cached) " >&6
6307 else
6308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309 /* end confdefs.h. */
6310 int i;
6311 int
6312 main ()
6313 {
6314
6315 ;
6316 return 0;
6317 }
6318 _ACEOF
6319 if ac_fn_c_try_link "$LINENO"; then :
6320 eval $cacheid=yes
6321 else
6322 eval $cacheid=no
6323 fi
6324 rm -f core conftest.err conftest.$ac_objext \
6325 conftest$ac_exeext conftest.$ac_ext
6326 fi
6327
6328
6329 CFLAGS="$xorg_testset_save_CFLAGS"
6330
6331 eval supported=\$$cacheid
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6333 $as_echo "$supported" >&6; }
6334 if test "$supported" = "yes" ; then
6335 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6336 found="yes"
6337 fi
6338 fi
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354 xorg_testset_save_CFLAGS="$CFLAGS"
6355
6356 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6359 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6360 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6361 $as_echo_n "(cached) " >&6
6362 else
6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h. */
6365 int i;
6366 _ACEOF
6367 if ac_fn_c_try_compile "$LINENO"; then :
6368 xorg_cv_cc_flag_unknown_warning_option=yes
6369 else
6370 xorg_cv_cc_flag_unknown_warning_option=no
6371 fi
6372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6373 fi
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6375 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6376 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6377 CFLAGS="$xorg_testset_save_CFLAGS"
6378 fi
6379
6380 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6383 fi
6384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6386 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6387 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6388 $as_echo_n "(cached) " >&6
6389 else
6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391 /* end confdefs.h. */
6392 int i;
6393 _ACEOF
6394 if ac_fn_c_try_compile "$LINENO"; then :
6395 xorg_cv_cc_flag_unused_command_line_argument=yes
6396 else
6397 xorg_cv_cc_flag_unused_command_line_argument=no
6398 fi
6399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400 fi
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6402 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6403 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6404 CFLAGS="$xorg_testset_save_CFLAGS"
6405 fi
6406
6407 found="no"
6408
6409 if test $found = "no" ; then
6410 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6412 fi
6413
6414 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6416 fi
6417
6418 CFLAGS="$CFLAGS -Wmissing-noreturn"
6419
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6421 $as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6422 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6423 if eval \${$cacheid+:} false; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6427 /* end confdefs.h. */
6428 int i;
6429 int
6430 main ()
6431 {
6432
6433 ;
6434 return 0;
6435 }
6436 _ACEOF
6437 if ac_fn_c_try_link "$LINENO"; then :
6438 eval $cacheid=yes
6439 else
6440 eval $cacheid=no
6441 fi
6442 rm -f core conftest.err conftest.$ac_objext \
6443 conftest$ac_exeext conftest.$ac_ext
6444 fi
6445
6446
6447 CFLAGS="$xorg_testset_save_CFLAGS"
6448
6449 eval supported=\$$cacheid
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6451 $as_echo "$supported" >&6; }
6452 if test "$supported" = "yes" ; then
6453 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6454 found="yes"
6455 fi
6456 fi
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472 xorg_testset_save_CFLAGS="$CFLAGS"
6473
6474 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6477 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6478 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6479 $as_echo_n "(cached) " >&6
6480 else
6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482 /* end confdefs.h. */
6483 int i;
6484 _ACEOF
6485 if ac_fn_c_try_compile "$LINENO"; then :
6486 xorg_cv_cc_flag_unknown_warning_option=yes
6487 else
6488 xorg_cv_cc_flag_unknown_warning_option=no
6489 fi
6490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6491 fi
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6493 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6494 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6495 CFLAGS="$xorg_testset_save_CFLAGS"
6496 fi
6497
6498 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6501 fi
6502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6504 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6505 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6506 $as_echo_n "(cached) " >&6
6507 else
6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h. */
6510 int i;
6511 _ACEOF
6512 if ac_fn_c_try_compile "$LINENO"; then :
6513 xorg_cv_cc_flag_unused_command_line_argument=yes
6514 else
6515 xorg_cv_cc_flag_unused_command_line_argument=no
6516 fi
6517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6518 fi
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6520 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6521 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6522 CFLAGS="$xorg_testset_save_CFLAGS"
6523 fi
6524
6525 found="no"
6526
6527 if test $found = "no" ; then
6528 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6530 fi
6531
6532 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6534 fi
6535
6536 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6537
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6539 $as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6540 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6541 if eval \${$cacheid+:} false; then :
6542 $as_echo_n "(cached) " >&6
6543 else
6544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6545 /* end confdefs.h. */
6546 int i;
6547 int
6548 main ()
6549 {
6550
6551 ;
6552 return 0;
6553 }
6554 _ACEOF
6555 if ac_fn_c_try_link "$LINENO"; then :
6556 eval $cacheid=yes
6557 else
6558 eval $cacheid=no
6559 fi
6560 rm -f core conftest.err conftest.$ac_objext \
6561 conftest$ac_exeext conftest.$ac_ext
6562 fi
6563
6564
6565 CFLAGS="$xorg_testset_save_CFLAGS"
6566
6567 eval supported=\$$cacheid
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6569 $as_echo "$supported" >&6; }
6570 if test "$supported" = "yes" ; then
6571 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6572 found="yes"
6573 fi
6574 fi
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590 xorg_testset_save_CFLAGS="$CFLAGS"
6591
6592 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6595 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6596 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6597 $as_echo_n "(cached) " >&6
6598 else
6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h. */
6601 int i;
6602 _ACEOF
6603 if ac_fn_c_try_compile "$LINENO"; then :
6604 xorg_cv_cc_flag_unknown_warning_option=yes
6605 else
6606 xorg_cv_cc_flag_unknown_warning_option=no
6607 fi
6608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609 fi
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6611 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6612 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6613 CFLAGS="$xorg_testset_save_CFLAGS"
6614 fi
6615
6616 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6619 fi
6620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6622 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6623 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6624 $as_echo_n "(cached) " >&6
6625 else
6626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627 /* end confdefs.h. */
6628 int i;
6629 _ACEOF
6630 if ac_fn_c_try_compile "$LINENO"; then :
6631 xorg_cv_cc_flag_unused_command_line_argument=yes
6632 else
6633 xorg_cv_cc_flag_unused_command_line_argument=no
6634 fi
6635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6636 fi
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6638 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6639 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6640 CFLAGS="$xorg_testset_save_CFLAGS"
6641 fi
6642
6643 found="no"
6644
6645 if test $found = "no" ; then
6646 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6648 fi
6649
6650 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6652 fi
6653
6654 CFLAGS="$CFLAGS -Wredundant-decls"
6655
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6657 $as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6658 cacheid=xorg_cv_cc_flag__Wredundant_decls
6659 if eval \${$cacheid+:} false; then :
6660 $as_echo_n "(cached) " >&6
6661 else
6662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663 /* end confdefs.h. */
6664 int i;
6665 int
6666 main ()
6667 {
6668
6669 ;
6670 return 0;
6671 }
6672 _ACEOF
6673 if ac_fn_c_try_link "$LINENO"; then :
6674 eval $cacheid=yes
6675 else
6676 eval $cacheid=no
6677 fi
6678 rm -f core conftest.err conftest.$ac_objext \
6679 conftest$ac_exeext conftest.$ac_ext
6680 fi
6681
6682
6683 CFLAGS="$xorg_testset_save_CFLAGS"
6684
6685 eval supported=\$$cacheid
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6687 $as_echo "$supported" >&6; }
6688 if test "$supported" = "yes" ; then
6689 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6690 found="yes"
6691 fi
6692 fi
6693
6694
6695
6696 # These are currently disabled because they are noisy. They will be enabled
6697 # in the future once the codebase is sufficiently modernized to silence
6698 # them. For now, I don't want them to drown out the other warnings.
6699 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6700 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6701 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6702
6703 # Turn some warnings into errors, so we don't accidently get successful builds
6704 # when there are problems that should be fixed.
6705
6706 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720 xorg_testset_save_CFLAGS="$CFLAGS"
6721
6722 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6725 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6726 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6727 $as_echo_n "(cached) " >&6
6728 else
6729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6730 /* end confdefs.h. */
6731 int i;
6732 _ACEOF
6733 if ac_fn_c_try_compile "$LINENO"; then :
6734 xorg_cv_cc_flag_unknown_warning_option=yes
6735 else
6736 xorg_cv_cc_flag_unknown_warning_option=no
6737 fi
6738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6739 fi
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6741 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6743 CFLAGS="$xorg_testset_save_CFLAGS"
6744 fi
6745
6746 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6749 fi
6750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6752 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6753 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6754 $as_echo_n "(cached) " >&6
6755 else
6756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757 /* end confdefs.h. */
6758 int i;
6759 _ACEOF
6760 if ac_fn_c_try_compile "$LINENO"; then :
6761 xorg_cv_cc_flag_unused_command_line_argument=yes
6762 else
6763 xorg_cv_cc_flag_unused_command_line_argument=no
6764 fi
6765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6766 fi
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6768 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6770 CFLAGS="$xorg_testset_save_CFLAGS"
6771 fi
6772
6773 found="no"
6774
6775 if test $found = "no" ; then
6776 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6778 fi
6779
6780 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6782 fi
6783
6784 CFLAGS="$CFLAGS -Werror=implicit"
6785
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
6787 $as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
6788 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6789 if eval \${$cacheid+:} false; then :
6790 $as_echo_n "(cached) " >&6
6791 else
6792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6793 /* end confdefs.h. */
6794 int i;
6795 int
6796 main ()
6797 {
6798
6799 ;
6800 return 0;
6801 }
6802 _ACEOF
6803 if ac_fn_c_try_link "$LINENO"; then :
6804 eval $cacheid=yes
6805 else
6806 eval $cacheid=no
6807 fi
6808 rm -f core conftest.err conftest.$ac_objext \
6809 conftest$ac_exeext conftest.$ac_ext
6810 fi
6811
6812
6813 CFLAGS="$xorg_testset_save_CFLAGS"
6814
6815 eval supported=\$$cacheid
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6817 $as_echo "$supported" >&6; }
6818 if test "$supported" = "yes" ; then
6819 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6820 found="yes"
6821 fi
6822 fi
6823
6824 if test $found = "no" ; then
6825 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6827 fi
6828
6829 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6831 fi
6832
6833 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6834
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6836 $as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6837 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6838 if eval \${$cacheid+:} false; then :
6839 $as_echo_n "(cached) " >&6
6840 else
6841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6842 /* end confdefs.h. */
6843 int i;
6844 int
6845 main ()
6846 {
6847
6848 ;
6849 return 0;
6850 }
6851 _ACEOF
6852 if ac_fn_c_try_link "$LINENO"; then :
6853 eval $cacheid=yes
6854 else
6855 eval $cacheid=no
6856 fi
6857 rm -f core conftest.err conftest.$ac_objext \
6858 conftest$ac_exeext conftest.$ac_ext
6859 fi
6860
6861
6862 CFLAGS="$xorg_testset_save_CFLAGS"
6863
6864 eval supported=\$$cacheid
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6866 $as_echo "$supported" >&6; }
6867 if test "$supported" = "yes" ; then
6868 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6869 found="yes"
6870 fi
6871 fi
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887 xorg_testset_save_CFLAGS="$CFLAGS"
6888
6889 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6892 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6893 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6894 $as_echo_n "(cached) " >&6
6895 else
6896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6897 /* end confdefs.h. */
6898 int i;
6899 _ACEOF
6900 if ac_fn_c_try_compile "$LINENO"; then :
6901 xorg_cv_cc_flag_unknown_warning_option=yes
6902 else
6903 xorg_cv_cc_flag_unknown_warning_option=no
6904 fi
6905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6906 fi
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6908 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6909 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6910 CFLAGS="$xorg_testset_save_CFLAGS"
6911 fi
6912
6913 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6916 fi
6917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6919 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6920 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6921 $as_echo_n "(cached) " >&6
6922 else
6923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924 /* end confdefs.h. */
6925 int i;
6926 _ACEOF
6927 if ac_fn_c_try_compile "$LINENO"; then :
6928 xorg_cv_cc_flag_unused_command_line_argument=yes
6929 else
6930 xorg_cv_cc_flag_unused_command_line_argument=no
6931 fi
6932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6933 fi
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6935 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6936 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6937 CFLAGS="$xorg_testset_save_CFLAGS"
6938 fi
6939
6940 found="no"
6941
6942 if test $found = "no" ; then
6943 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6945 fi
6946
6947 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6949 fi
6950
6951 CFLAGS="$CFLAGS -Werror=nonnull"
6952
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
6954 $as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
6955 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6956 if eval \${$cacheid+:} false; then :
6957 $as_echo_n "(cached) " >&6
6958 else
6959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6960 /* end confdefs.h. */
6961 int i;
6962 int
6963 main ()
6964 {
6965
6966 ;
6967 return 0;
6968 }
6969 _ACEOF
6970 if ac_fn_c_try_link "$LINENO"; then :
6971 eval $cacheid=yes
6972 else
6973 eval $cacheid=no
6974 fi
6975 rm -f core conftest.err conftest.$ac_objext \
6976 conftest$ac_exeext conftest.$ac_ext
6977 fi
6978
6979
6980 CFLAGS="$xorg_testset_save_CFLAGS"
6981
6982 eval supported=\$$cacheid
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6984 $as_echo "$supported" >&6; }
6985 if test "$supported" = "yes" ; then
6986 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6987 found="yes"
6988 fi
6989 fi
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005 xorg_testset_save_CFLAGS="$CFLAGS"
7006
7007 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7010 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7011 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7012 $as_echo_n "(cached) " >&6
7013 else
7014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7015 /* end confdefs.h. */
7016 int i;
7017 _ACEOF
7018 if ac_fn_c_try_compile "$LINENO"; then :
7019 xorg_cv_cc_flag_unknown_warning_option=yes
7020 else
7021 xorg_cv_cc_flag_unknown_warning_option=no
7022 fi
7023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7024 fi
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7026 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7027 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7028 CFLAGS="$xorg_testset_save_CFLAGS"
7029 fi
7030
7031 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7033 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7034 fi
7035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7037 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7038 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7039 $as_echo_n "(cached) " >&6
7040 else
7041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7042 /* end confdefs.h. */
7043 int i;
7044 _ACEOF
7045 if ac_fn_c_try_compile "$LINENO"; then :
7046 xorg_cv_cc_flag_unused_command_line_argument=yes
7047 else
7048 xorg_cv_cc_flag_unused_command_line_argument=no
7049 fi
7050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7051 fi
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7053 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7054 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7055 CFLAGS="$xorg_testset_save_CFLAGS"
7056 fi
7057
7058 found="no"
7059
7060 if test $found = "no" ; then
7061 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7063 fi
7064
7065 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7067 fi
7068
7069 CFLAGS="$CFLAGS -Werror=init-self"
7070
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
7072 $as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
7073 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7074 if eval \${$cacheid+:} false; then :
7075 $as_echo_n "(cached) " >&6
7076 else
7077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7078 /* end confdefs.h. */
7079 int i;
7080 int
7081 main ()
7082 {
7083
7084 ;
7085 return 0;
7086 }
7087 _ACEOF
7088 if ac_fn_c_try_link "$LINENO"; then :
7089 eval $cacheid=yes
7090 else
7091 eval $cacheid=no
7092 fi
7093 rm -f core conftest.err conftest.$ac_objext \
7094 conftest$ac_exeext conftest.$ac_ext
7095 fi
7096
7097
7098 CFLAGS="$xorg_testset_save_CFLAGS"
7099
7100 eval supported=\$$cacheid
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7102 $as_echo "$supported" >&6; }
7103 if test "$supported" = "yes" ; then
7104 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7105 found="yes"
7106 fi
7107 fi
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123 xorg_testset_save_CFLAGS="$CFLAGS"
7124
7125 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7128 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7129 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7130 $as_echo_n "(cached) " >&6
7131 else
7132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133 /* end confdefs.h. */
7134 int i;
7135 _ACEOF
7136 if ac_fn_c_try_compile "$LINENO"; then :
7137 xorg_cv_cc_flag_unknown_warning_option=yes
7138 else
7139 xorg_cv_cc_flag_unknown_warning_option=no
7140 fi
7141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7142 fi
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7144 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7145 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7146 CFLAGS="$xorg_testset_save_CFLAGS"
7147 fi
7148
7149 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7152 fi
7153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7155 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7156 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7157 $as_echo_n "(cached) " >&6
7158 else
7159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160 /* end confdefs.h. */
7161 int i;
7162 _ACEOF
7163 if ac_fn_c_try_compile "$LINENO"; then :
7164 xorg_cv_cc_flag_unused_command_line_argument=yes
7165 else
7166 xorg_cv_cc_flag_unused_command_line_argument=no
7167 fi
7168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7169 fi
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7171 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7172 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7173 CFLAGS="$xorg_testset_save_CFLAGS"
7174 fi
7175
7176 found="no"
7177
7178 if test $found = "no" ; then
7179 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7181 fi
7182
7183 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7185 fi
7186
7187 CFLAGS="$CFLAGS -Werror=main"
7188
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7190 $as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7191 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7192 if eval \${$cacheid+:} false; then :
7193 $as_echo_n "(cached) " >&6
7194 else
7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196 /* end confdefs.h. */
7197 int i;
7198 int
7199 main ()
7200 {
7201
7202 ;
7203 return 0;
7204 }
7205 _ACEOF
7206 if ac_fn_c_try_link "$LINENO"; then :
7207 eval $cacheid=yes
7208 else
7209 eval $cacheid=no
7210 fi
7211 rm -f core conftest.err conftest.$ac_objext \
7212 conftest$ac_exeext conftest.$ac_ext
7213 fi
7214
7215
7216 CFLAGS="$xorg_testset_save_CFLAGS"
7217
7218 eval supported=\$$cacheid
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7220 $as_echo "$supported" >&6; }
7221 if test "$supported" = "yes" ; then
7222 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7223 found="yes"
7224 fi
7225 fi
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241 xorg_testset_save_CFLAGS="$CFLAGS"
7242
7243 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7246 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7247 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7248 $as_echo_n "(cached) " >&6
7249 else
7250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251 /* end confdefs.h. */
7252 int i;
7253 _ACEOF
7254 if ac_fn_c_try_compile "$LINENO"; then :
7255 xorg_cv_cc_flag_unknown_warning_option=yes
7256 else
7257 xorg_cv_cc_flag_unknown_warning_option=no
7258 fi
7259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7260 fi
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7262 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7263 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7264 CFLAGS="$xorg_testset_save_CFLAGS"
7265 fi
7266
7267 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7270 fi
7271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7273 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7274 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7275 $as_echo_n "(cached) " >&6
7276 else
7277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278 /* end confdefs.h. */
7279 int i;
7280 _ACEOF
7281 if ac_fn_c_try_compile "$LINENO"; then :
7282 xorg_cv_cc_flag_unused_command_line_argument=yes
7283 else
7284 xorg_cv_cc_flag_unused_command_line_argument=no
7285 fi
7286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7287 fi
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7289 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7290 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7291 CFLAGS="$xorg_testset_save_CFLAGS"
7292 fi
7293
7294 found="no"
7295
7296 if test $found = "no" ; then
7297 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7298 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7299 fi
7300
7301 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7303 fi
7304
7305 CFLAGS="$CFLAGS -Werror=missing-braces"
7306
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7308 $as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7309 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7310 if eval \${$cacheid+:} false; then :
7311 $as_echo_n "(cached) " >&6
7312 else
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7315 int i;
7316 int
7317 main ()
7318 {
7319
7320 ;
7321 return 0;
7322 }
7323 _ACEOF
7324 if ac_fn_c_try_link "$LINENO"; then :
7325 eval $cacheid=yes
7326 else
7327 eval $cacheid=no
7328 fi
7329 rm -f core conftest.err conftest.$ac_objext \
7330 conftest$ac_exeext conftest.$ac_ext
7331 fi
7332
7333
7334 CFLAGS="$xorg_testset_save_CFLAGS"
7335
7336 eval supported=\$$cacheid
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7338 $as_echo "$supported" >&6; }
7339 if test "$supported" = "yes" ; then
7340 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7341 found="yes"
7342 fi
7343 fi
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359 xorg_testset_save_CFLAGS="$CFLAGS"
7360
7361 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7364 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7365 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7366 $as_echo_n "(cached) " >&6
7367 else
7368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7369 /* end confdefs.h. */
7370 int i;
7371 _ACEOF
7372 if ac_fn_c_try_compile "$LINENO"; then :
7373 xorg_cv_cc_flag_unknown_warning_option=yes
7374 else
7375 xorg_cv_cc_flag_unknown_warning_option=no
7376 fi
7377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7378 fi
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7380 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7382 CFLAGS="$xorg_testset_save_CFLAGS"
7383 fi
7384
7385 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7388 fi
7389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7391 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7392 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7393 $as_echo_n "(cached) " >&6
7394 else
7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7396 /* end confdefs.h. */
7397 int i;
7398 _ACEOF
7399 if ac_fn_c_try_compile "$LINENO"; then :
7400 xorg_cv_cc_flag_unused_command_line_argument=yes
7401 else
7402 xorg_cv_cc_flag_unused_command_line_argument=no
7403 fi
7404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7405 fi
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7407 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7409 CFLAGS="$xorg_testset_save_CFLAGS"
7410 fi
7411
7412 found="no"
7413
7414 if test $found = "no" ; then
7415 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7417 fi
7418
7419 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7421 fi
7422
7423 CFLAGS="$CFLAGS -Werror=sequence-point"
7424
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7426 $as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7427 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7428 if eval \${$cacheid+:} false; then :
7429 $as_echo_n "(cached) " >&6
7430 else
7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h. */
7433 int i;
7434 int
7435 main ()
7436 {
7437
7438 ;
7439 return 0;
7440 }
7441 _ACEOF
7442 if ac_fn_c_try_link "$LINENO"; then :
7443 eval $cacheid=yes
7444 else
7445 eval $cacheid=no
7446 fi
7447 rm -f core conftest.err conftest.$ac_objext \
7448 conftest$ac_exeext conftest.$ac_ext
7449 fi
7450
7451
7452 CFLAGS="$xorg_testset_save_CFLAGS"
7453
7454 eval supported=\$$cacheid
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7456 $as_echo "$supported" >&6; }
7457 if test "$supported" = "yes" ; then
7458 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7459 found="yes"
7460 fi
7461 fi
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477 xorg_testset_save_CFLAGS="$CFLAGS"
7478
7479 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7482 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7483 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7484 $as_echo_n "(cached) " >&6
7485 else
7486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487 /* end confdefs.h. */
7488 int i;
7489 _ACEOF
7490 if ac_fn_c_try_compile "$LINENO"; then :
7491 xorg_cv_cc_flag_unknown_warning_option=yes
7492 else
7493 xorg_cv_cc_flag_unknown_warning_option=no
7494 fi
7495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7496 fi
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7498 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7500 CFLAGS="$xorg_testset_save_CFLAGS"
7501 fi
7502
7503 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7506 fi
7507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7509 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7510 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7511 $as_echo_n "(cached) " >&6
7512 else
7513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7514 /* end confdefs.h. */
7515 int i;
7516 _ACEOF
7517 if ac_fn_c_try_compile "$LINENO"; then :
7518 xorg_cv_cc_flag_unused_command_line_argument=yes
7519 else
7520 xorg_cv_cc_flag_unused_command_line_argument=no
7521 fi
7522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7523 fi
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7525 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7526 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7527 CFLAGS="$xorg_testset_save_CFLAGS"
7528 fi
7529
7530 found="no"
7531
7532 if test $found = "no" ; then
7533 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7535 fi
7536
7537 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7539 fi
7540
7541 CFLAGS="$CFLAGS -Werror=return-type"
7542
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7544 $as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7545 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7546 if eval \${$cacheid+:} false; then :
7547 $as_echo_n "(cached) " >&6
7548 else
7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550 /* end confdefs.h. */
7551 int i;
7552 int
7553 main ()
7554 {
7555
7556 ;
7557 return 0;
7558 }
7559 _ACEOF
7560 if ac_fn_c_try_link "$LINENO"; then :
7561 eval $cacheid=yes
7562 else
7563 eval $cacheid=no
7564 fi
7565 rm -f core conftest.err conftest.$ac_objext \
7566 conftest$ac_exeext conftest.$ac_ext
7567 fi
7568
7569
7570 CFLAGS="$xorg_testset_save_CFLAGS"
7571
7572 eval supported=\$$cacheid
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7574 $as_echo "$supported" >&6; }
7575 if test "$supported" = "yes" ; then
7576 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7577 found="yes"
7578 fi
7579 fi
7580
7581 if test $found = "no" ; then
7582 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7584 fi
7585
7586 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7588 fi
7589
7590 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7591
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7593 $as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7594 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7595 if eval \${$cacheid+:} false; then :
7596 $as_echo_n "(cached) " >&6
7597 else
7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599 /* end confdefs.h. */
7600 int i;
7601 int
7602 main ()
7603 {
7604
7605 ;
7606 return 0;
7607 }
7608 _ACEOF
7609 if ac_fn_c_try_link "$LINENO"; then :
7610 eval $cacheid=yes
7611 else
7612 eval $cacheid=no
7613 fi
7614 rm -f core conftest.err conftest.$ac_objext \
7615 conftest$ac_exeext conftest.$ac_ext
7616 fi
7617
7618
7619 CFLAGS="$xorg_testset_save_CFLAGS"
7620
7621 eval supported=\$$cacheid
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7623 $as_echo "$supported" >&6; }
7624 if test "$supported" = "yes" ; then
7625 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7626 found="yes"
7627 fi
7628 fi
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644 xorg_testset_save_CFLAGS="$CFLAGS"
7645
7646 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7649 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7650 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7651 $as_echo_n "(cached) " >&6
7652 else
7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h. */
7655 int i;
7656 _ACEOF
7657 if ac_fn_c_try_compile "$LINENO"; then :
7658 xorg_cv_cc_flag_unknown_warning_option=yes
7659 else
7660 xorg_cv_cc_flag_unknown_warning_option=no
7661 fi
7662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7663 fi
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7665 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7666 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7667 CFLAGS="$xorg_testset_save_CFLAGS"
7668 fi
7669
7670 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7673 fi
7674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7676 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7677 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7678 $as_echo_n "(cached) " >&6
7679 else
7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681 /* end confdefs.h. */
7682 int i;
7683 _ACEOF
7684 if ac_fn_c_try_compile "$LINENO"; then :
7685 xorg_cv_cc_flag_unused_command_line_argument=yes
7686 else
7687 xorg_cv_cc_flag_unused_command_line_argument=no
7688 fi
7689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7690 fi
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7692 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7693 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7694 CFLAGS="$xorg_testset_save_CFLAGS"
7695 fi
7696
7697 found="no"
7698
7699 if test $found = "no" ; then
7700 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7702 fi
7703
7704 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7706 fi
7707
7708 CFLAGS="$CFLAGS -Werror=trigraphs"
7709
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7711 $as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7712 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7713 if eval \${$cacheid+:} false; then :
7714 $as_echo_n "(cached) " >&6
7715 else
7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h. */
7718 int i;
7719 int
7720 main ()
7721 {
7722
7723 ;
7724 return 0;
7725 }
7726 _ACEOF
7727 if ac_fn_c_try_link "$LINENO"; then :
7728 eval $cacheid=yes
7729 else
7730 eval $cacheid=no
7731 fi
7732 rm -f core conftest.err conftest.$ac_objext \
7733 conftest$ac_exeext conftest.$ac_ext
7734 fi
7735
7736
7737 CFLAGS="$xorg_testset_save_CFLAGS"
7738
7739 eval supported=\$$cacheid
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7741 $as_echo "$supported" >&6; }
7742 if test "$supported" = "yes" ; then
7743 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7744 found="yes"
7745 fi
7746 fi
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762 xorg_testset_save_CFLAGS="$CFLAGS"
7763
7764 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7767 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7768 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7769 $as_echo_n "(cached) " >&6
7770 else
7771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7772 /* end confdefs.h. */
7773 int i;
7774 _ACEOF
7775 if ac_fn_c_try_compile "$LINENO"; then :
7776 xorg_cv_cc_flag_unknown_warning_option=yes
7777 else
7778 xorg_cv_cc_flag_unknown_warning_option=no
7779 fi
7780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7781 fi
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7783 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7784 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7785 CFLAGS="$xorg_testset_save_CFLAGS"
7786 fi
7787
7788 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7791 fi
7792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7794 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7795 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7796 $as_echo_n "(cached) " >&6
7797 else
7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799 /* end confdefs.h. */
7800 int i;
7801 _ACEOF
7802 if ac_fn_c_try_compile "$LINENO"; then :
7803 xorg_cv_cc_flag_unused_command_line_argument=yes
7804 else
7805 xorg_cv_cc_flag_unused_command_line_argument=no
7806 fi
7807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7808 fi
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7810 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7811 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7812 CFLAGS="$xorg_testset_save_CFLAGS"
7813 fi
7814
7815 found="no"
7816
7817 if test $found = "no" ; then
7818 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7819 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7820 fi
7821
7822 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7824 fi
7825
7826 CFLAGS="$CFLAGS -Werror=array-bounds"
7827
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
7829 $as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
7830 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7831 if eval \${$cacheid+:} false; then :
7832 $as_echo_n "(cached) " >&6
7833 else
7834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835 /* end confdefs.h. */
7836 int i;
7837 int
7838 main ()
7839 {
7840
7841 ;
7842 return 0;
7843 }
7844 _ACEOF
7845 if ac_fn_c_try_link "$LINENO"; then :
7846 eval $cacheid=yes
7847 else
7848 eval $cacheid=no
7849 fi
7850 rm -f core conftest.err conftest.$ac_objext \
7851 conftest$ac_exeext conftest.$ac_ext
7852 fi
7853
7854
7855 CFLAGS="$xorg_testset_save_CFLAGS"
7856
7857 eval supported=\$$cacheid
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7859 $as_echo "$supported" >&6; }
7860 if test "$supported" = "yes" ; then
7861 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7862 found="yes"
7863 fi
7864 fi
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880 xorg_testset_save_CFLAGS="$CFLAGS"
7881
7882 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7885 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7886 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7887 $as_echo_n "(cached) " >&6
7888 else
7889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890 /* end confdefs.h. */
7891 int i;
7892 _ACEOF
7893 if ac_fn_c_try_compile "$LINENO"; then :
7894 xorg_cv_cc_flag_unknown_warning_option=yes
7895 else
7896 xorg_cv_cc_flag_unknown_warning_option=no
7897 fi
7898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7899 fi
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7901 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7902 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7903 CFLAGS="$xorg_testset_save_CFLAGS"
7904 fi
7905
7906 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7909 fi
7910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7912 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7913 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917 /* end confdefs.h. */
7918 int i;
7919 _ACEOF
7920 if ac_fn_c_try_compile "$LINENO"; then :
7921 xorg_cv_cc_flag_unused_command_line_argument=yes
7922 else
7923 xorg_cv_cc_flag_unused_command_line_argument=no
7924 fi
7925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7926 fi
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7928 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7929 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7930 CFLAGS="$xorg_testset_save_CFLAGS"
7931 fi
7932
7933 found="no"
7934
7935 if test $found = "no" ; then
7936 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7937 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7938 fi
7939
7940 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7942 fi
7943
7944 CFLAGS="$CFLAGS -Werror=write-strings"
7945
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
7947 $as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
7948 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7949 if eval \${$cacheid+:} false; then :
7950 $as_echo_n "(cached) " >&6
7951 else
7952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953 /* end confdefs.h. */
7954 int i;
7955 int
7956 main ()
7957 {
7958
7959 ;
7960 return 0;
7961 }
7962 _ACEOF
7963 if ac_fn_c_try_link "$LINENO"; then :
7964 eval $cacheid=yes
7965 else
7966 eval $cacheid=no
7967 fi
7968 rm -f core conftest.err conftest.$ac_objext \
7969 conftest$ac_exeext conftest.$ac_ext
7970 fi
7971
7972
7973 CFLAGS="$xorg_testset_save_CFLAGS"
7974
7975 eval supported=\$$cacheid
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7977 $as_echo "$supported" >&6; }
7978 if test "$supported" = "yes" ; then
7979 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7980 found="yes"
7981 fi
7982 fi
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998 xorg_testset_save_CFLAGS="$CFLAGS"
7999
8000 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8003 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8004 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8005 $as_echo_n "(cached) " >&6
8006 else
8007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008 /* end confdefs.h. */
8009 int i;
8010 _ACEOF
8011 if ac_fn_c_try_compile "$LINENO"; then :
8012 xorg_cv_cc_flag_unknown_warning_option=yes
8013 else
8014 xorg_cv_cc_flag_unknown_warning_option=no
8015 fi
8016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8017 fi
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8019 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8020 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8021 CFLAGS="$xorg_testset_save_CFLAGS"
8022 fi
8023
8024 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8027 fi
8028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8030 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8031 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8032 $as_echo_n "(cached) " >&6
8033 else
8034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035 /* end confdefs.h. */
8036 int i;
8037 _ACEOF
8038 if ac_fn_c_try_compile "$LINENO"; then :
8039 xorg_cv_cc_flag_unused_command_line_argument=yes
8040 else
8041 xorg_cv_cc_flag_unused_command_line_argument=no
8042 fi
8043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8044 fi
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8046 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8047 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8048 CFLAGS="$xorg_testset_save_CFLAGS"
8049 fi
8050
8051 found="no"
8052
8053 if test $found = "no" ; then
8054 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8056 fi
8057
8058 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8060 fi
8061
8062 CFLAGS="$CFLAGS -Werror=address"
8063
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
8065 $as_echo_n "checking if $CC supports-Werror=address... " >&6; }
8066 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8067 if eval \${$cacheid+:} false; then :
8068 $as_echo_n "(cached) " >&6
8069 else
8070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8071 /* end confdefs.h. */
8072 int i;
8073 int
8074 main ()
8075 {
8076
8077 ;
8078 return 0;
8079 }
8080 _ACEOF
8081 if ac_fn_c_try_link "$LINENO"; then :
8082 eval $cacheid=yes
8083 else
8084 eval $cacheid=no
8085 fi
8086 rm -f core conftest.err conftest.$ac_objext \
8087 conftest$ac_exeext conftest.$ac_ext
8088 fi
8089
8090
8091 CFLAGS="$xorg_testset_save_CFLAGS"
8092
8093 eval supported=\$$cacheid
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8095 $as_echo "$supported" >&6; }
8096 if test "$supported" = "yes" ; then
8097 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8098 found="yes"
8099 fi
8100 fi
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116 xorg_testset_save_CFLAGS="$CFLAGS"
8117
8118 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8121 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8122 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8123 $as_echo_n "(cached) " >&6
8124 else
8125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8126 /* end confdefs.h. */
8127 int i;
8128 _ACEOF
8129 if ac_fn_c_try_compile "$LINENO"; then :
8130 xorg_cv_cc_flag_unknown_warning_option=yes
8131 else
8132 xorg_cv_cc_flag_unknown_warning_option=no
8133 fi
8134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8135 fi
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8137 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8138 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8139 CFLAGS="$xorg_testset_save_CFLAGS"
8140 fi
8141
8142 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8145 fi
8146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8148 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8149 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8150 $as_echo_n "(cached) " >&6
8151 else
8152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153 /* end confdefs.h. */
8154 int i;
8155 _ACEOF
8156 if ac_fn_c_try_compile "$LINENO"; then :
8157 xorg_cv_cc_flag_unused_command_line_argument=yes
8158 else
8159 xorg_cv_cc_flag_unused_command_line_argument=no
8160 fi
8161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8162 fi
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8164 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8165 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8166 CFLAGS="$xorg_testset_save_CFLAGS"
8167 fi
8168
8169 found="no"
8170
8171 if test $found = "no" ; then
8172 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8174 fi
8175
8176 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8178 fi
8179
8180 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8181
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8183 $as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8184 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8185 if eval \${$cacheid+:} false; then :
8186 $as_echo_n "(cached) " >&6
8187 else
8188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8189 /* end confdefs.h. */
8190 int i;
8191 int
8192 main ()
8193 {
8194
8195 ;
8196 return 0;
8197 }
8198 _ACEOF
8199 if ac_fn_c_try_link "$LINENO"; then :
8200 eval $cacheid=yes
8201 else
8202 eval $cacheid=no
8203 fi
8204 rm -f core conftest.err conftest.$ac_objext \
8205 conftest$ac_exeext conftest.$ac_ext
8206 fi
8207
8208
8209 CFLAGS="$xorg_testset_save_CFLAGS"
8210
8211 eval supported=\$$cacheid
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8213 $as_echo "$supported" >&6; }
8214 if test "$supported" = "yes" ; then
8215 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8216 found="yes"
8217 fi
8218 fi
8219
8220 if test $found = "no" ; then
8221 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8223 fi
8224
8225 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8227 fi
8228
8229 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8230
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8232 $as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8233 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8234 if eval \${$cacheid+:} false; then :
8235 $as_echo_n "(cached) " >&6
8236 else
8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238 /* end confdefs.h. */
8239 int i;
8240 int
8241 main ()
8242 {
8243
8244 ;
8245 return 0;
8246 }
8247 _ACEOF
8248 if ac_fn_c_try_link "$LINENO"; then :
8249 eval $cacheid=yes
8250 else
8251 eval $cacheid=no
8252 fi
8253 rm -f core conftest.err conftest.$ac_objext \
8254 conftest$ac_exeext conftest.$ac_ext
8255 fi
8256
8257
8258 CFLAGS="$xorg_testset_save_CFLAGS"
8259
8260 eval supported=\$$cacheid
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8262 $as_echo "$supported" >&6; }
8263 if test "$supported" = "yes" ; then
8264 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8265 found="yes"
8266 fi
8267 fi
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283 xorg_testset_save_CFLAGS="$CFLAGS"
8284
8285 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8288 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8289 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8290 $as_echo_n "(cached) " >&6
8291 else
8292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8293 /* end confdefs.h. */
8294 int i;
8295 _ACEOF
8296 if ac_fn_c_try_compile "$LINENO"; then :
8297 xorg_cv_cc_flag_unknown_warning_option=yes
8298 else
8299 xorg_cv_cc_flag_unknown_warning_option=no
8300 fi
8301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8302 fi
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8304 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8305 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8306 CFLAGS="$xorg_testset_save_CFLAGS"
8307 fi
8308
8309 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8312 fi
8313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8315 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8316 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8317 $as_echo_n "(cached) " >&6
8318 else
8319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320 /* end confdefs.h. */
8321 int i;
8322 _ACEOF
8323 if ac_fn_c_try_compile "$LINENO"; then :
8324 xorg_cv_cc_flag_unused_command_line_argument=yes
8325 else
8326 xorg_cv_cc_flag_unused_command_line_argument=no
8327 fi
8328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8329 fi
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8331 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8332 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8333 CFLAGS="$xorg_testset_save_CFLAGS"
8334 fi
8335
8336 found="no"
8337
8338 if test $found = "no" ; then
8339 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8341 fi
8342
8343 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8345 fi
8346
8347 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8348
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8350 $as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8351 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8352 if eval \${$cacheid+:} false; then :
8353 $as_echo_n "(cached) " >&6
8354 else
8355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356 /* end confdefs.h. */
8357 int i;
8358 int
8359 main ()
8360 {
8361
8362 ;
8363 return 0;
8364 }
8365 _ACEOF
8366 if ac_fn_c_try_link "$LINENO"; then :
8367 eval $cacheid=yes
8368 else
8369 eval $cacheid=no
8370 fi
8371 rm -f core conftest.err conftest.$ac_objext \
8372 conftest$ac_exeext conftest.$ac_ext
8373 fi
8374
8375
8376 CFLAGS="$xorg_testset_save_CFLAGS"
8377
8378 eval supported=\$$cacheid
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8380 $as_echo "$supported" >&6; }
8381 if test "$supported" = "yes" ; then
8382 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8383 found="yes"
8384 fi
8385 fi
8386
8387 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8388 else
8389 { $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
8390 $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;}
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404 xorg_testset_save_CFLAGS="$CFLAGS"
8405
8406 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8409 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8410 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8411 $as_echo_n "(cached) " >&6
8412 else
8413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414 /* end confdefs.h. */
8415 int i;
8416 _ACEOF
8417 if ac_fn_c_try_compile "$LINENO"; then :
8418 xorg_cv_cc_flag_unknown_warning_option=yes
8419 else
8420 xorg_cv_cc_flag_unknown_warning_option=no
8421 fi
8422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8423 fi
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8425 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8427 CFLAGS="$xorg_testset_save_CFLAGS"
8428 fi
8429
8430 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8433 fi
8434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8436 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8437 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8438 $as_echo_n "(cached) " >&6
8439 else
8440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8441 /* end confdefs.h. */
8442 int i;
8443 _ACEOF
8444 if ac_fn_c_try_compile "$LINENO"; then :
8445 xorg_cv_cc_flag_unused_command_line_argument=yes
8446 else
8447 xorg_cv_cc_flag_unused_command_line_argument=no
8448 fi
8449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8450 fi
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8452 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8453 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8454 CFLAGS="$xorg_testset_save_CFLAGS"
8455 fi
8456
8457 found="no"
8458
8459 if test $found = "no" ; then
8460 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8462 fi
8463
8464 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8466 fi
8467
8468 CFLAGS="$CFLAGS -Wimplicit"
8469
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8471 $as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8472 cacheid=xorg_cv_cc_flag__Wimplicit
8473 if eval \${$cacheid+:} false; then :
8474 $as_echo_n "(cached) " >&6
8475 else
8476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8477 /* end confdefs.h. */
8478 int i;
8479 int
8480 main ()
8481 {
8482
8483 ;
8484 return 0;
8485 }
8486 _ACEOF
8487 if ac_fn_c_try_link "$LINENO"; then :
8488 eval $cacheid=yes
8489 else
8490 eval $cacheid=no
8491 fi
8492 rm -f core conftest.err conftest.$ac_objext \
8493 conftest$ac_exeext conftest.$ac_ext
8494 fi
8495
8496
8497 CFLAGS="$xorg_testset_save_CFLAGS"
8498
8499 eval supported=\$$cacheid
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8501 $as_echo "$supported" >&6; }
8502 if test "$supported" = "yes" ; then
8503 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8504 found="yes"
8505 fi
8506 fi
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522 xorg_testset_save_CFLAGS="$CFLAGS"
8523
8524 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8525 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8527 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8528 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8529 $as_echo_n "(cached) " >&6
8530 else
8531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8532 /* end confdefs.h. */
8533 int i;
8534 _ACEOF
8535 if ac_fn_c_try_compile "$LINENO"; then :
8536 xorg_cv_cc_flag_unknown_warning_option=yes
8537 else
8538 xorg_cv_cc_flag_unknown_warning_option=no
8539 fi
8540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8541 fi
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8543 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8544 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8545 CFLAGS="$xorg_testset_save_CFLAGS"
8546 fi
8547
8548 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8551 fi
8552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8554 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8555 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8556 $as_echo_n "(cached) " >&6
8557 else
8558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559 /* end confdefs.h. */
8560 int i;
8561 _ACEOF
8562 if ac_fn_c_try_compile "$LINENO"; then :
8563 xorg_cv_cc_flag_unused_command_line_argument=yes
8564 else
8565 xorg_cv_cc_flag_unused_command_line_argument=no
8566 fi
8567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8568 fi
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8570 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8571 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8572 CFLAGS="$xorg_testset_save_CFLAGS"
8573 fi
8574
8575 found="no"
8576
8577 if test $found = "no" ; then
8578 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8580 fi
8581
8582 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8584 fi
8585
8586 CFLAGS="$CFLAGS -Wnonnull"
8587
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8589 $as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8590 cacheid=xorg_cv_cc_flag__Wnonnull
8591 if eval \${$cacheid+:} false; then :
8592 $as_echo_n "(cached) " >&6
8593 else
8594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595 /* end confdefs.h. */
8596 int i;
8597 int
8598 main ()
8599 {
8600
8601 ;
8602 return 0;
8603 }
8604 _ACEOF
8605 if ac_fn_c_try_link "$LINENO"; then :
8606 eval $cacheid=yes
8607 else
8608 eval $cacheid=no
8609 fi
8610 rm -f core conftest.err conftest.$ac_objext \
8611 conftest$ac_exeext conftest.$ac_ext
8612 fi
8613
8614
8615 CFLAGS="$xorg_testset_save_CFLAGS"
8616
8617 eval supported=\$$cacheid
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8619 $as_echo "$supported" >&6; }
8620 if test "$supported" = "yes" ; then
8621 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8622 found="yes"
8623 fi
8624 fi
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640 xorg_testset_save_CFLAGS="$CFLAGS"
8641
8642 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8645 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8646 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8647 $as_echo_n "(cached) " >&6
8648 else
8649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8650 /* end confdefs.h. */
8651 int i;
8652 _ACEOF
8653 if ac_fn_c_try_compile "$LINENO"; then :
8654 xorg_cv_cc_flag_unknown_warning_option=yes
8655 else
8656 xorg_cv_cc_flag_unknown_warning_option=no
8657 fi
8658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8659 fi
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8661 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8662 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8663 CFLAGS="$xorg_testset_save_CFLAGS"
8664 fi
8665
8666 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8669 fi
8670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8672 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8673 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8674 $as_echo_n "(cached) " >&6
8675 else
8676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8677 /* end confdefs.h. */
8678 int i;
8679 _ACEOF
8680 if ac_fn_c_try_compile "$LINENO"; then :
8681 xorg_cv_cc_flag_unused_command_line_argument=yes
8682 else
8683 xorg_cv_cc_flag_unused_command_line_argument=no
8684 fi
8685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8686 fi
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8688 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8689 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8690 CFLAGS="$xorg_testset_save_CFLAGS"
8691 fi
8692
8693 found="no"
8694
8695 if test $found = "no" ; then
8696 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8698 fi
8699
8700 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8702 fi
8703
8704 CFLAGS="$CFLAGS -Winit-self"
8705
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8707 $as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8708 cacheid=xorg_cv_cc_flag__Winit_self
8709 if eval \${$cacheid+:} false; then :
8710 $as_echo_n "(cached) " >&6
8711 else
8712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h. */
8714 int i;
8715 int
8716 main ()
8717 {
8718
8719 ;
8720 return 0;
8721 }
8722 _ACEOF
8723 if ac_fn_c_try_link "$LINENO"; then :
8724 eval $cacheid=yes
8725 else
8726 eval $cacheid=no
8727 fi
8728 rm -f core conftest.err conftest.$ac_objext \
8729 conftest$ac_exeext conftest.$ac_ext
8730 fi
8731
8732
8733 CFLAGS="$xorg_testset_save_CFLAGS"
8734
8735 eval supported=\$$cacheid
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8737 $as_echo "$supported" >&6; }
8738 if test "$supported" = "yes" ; then
8739 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8740 found="yes"
8741 fi
8742 fi
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758 xorg_testset_save_CFLAGS="$CFLAGS"
8759
8760 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8763 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8764 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8765 $as_echo_n "(cached) " >&6
8766 else
8767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8768 /* end confdefs.h. */
8769 int i;
8770 _ACEOF
8771 if ac_fn_c_try_compile "$LINENO"; then :
8772 xorg_cv_cc_flag_unknown_warning_option=yes
8773 else
8774 xorg_cv_cc_flag_unknown_warning_option=no
8775 fi
8776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8777 fi
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8779 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8780 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8781 CFLAGS="$xorg_testset_save_CFLAGS"
8782 fi
8783
8784 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8787 fi
8788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8790 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8791 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8792 $as_echo_n "(cached) " >&6
8793 else
8794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795 /* end confdefs.h. */
8796 int i;
8797 _ACEOF
8798 if ac_fn_c_try_compile "$LINENO"; then :
8799 xorg_cv_cc_flag_unused_command_line_argument=yes
8800 else
8801 xorg_cv_cc_flag_unused_command_line_argument=no
8802 fi
8803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8804 fi
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8806 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8807 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8808 CFLAGS="$xorg_testset_save_CFLAGS"
8809 fi
8810
8811 found="no"
8812
8813 if test $found = "no" ; then
8814 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8816 fi
8817
8818 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8820 fi
8821
8822 CFLAGS="$CFLAGS -Wmain"
8823
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
8825 $as_echo_n "checking if $CC supports-Wmain... " >&6; }
8826 cacheid=xorg_cv_cc_flag__Wmain
8827 if eval \${$cacheid+:} false; then :
8828 $as_echo_n "(cached) " >&6
8829 else
8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8832 int i;
8833 int
8834 main ()
8835 {
8836
8837 ;
8838 return 0;
8839 }
8840 _ACEOF
8841 if ac_fn_c_try_link "$LINENO"; then :
8842 eval $cacheid=yes
8843 else
8844 eval $cacheid=no
8845 fi
8846 rm -f core conftest.err conftest.$ac_objext \
8847 conftest$ac_exeext conftest.$ac_ext
8848 fi
8849
8850
8851 CFLAGS="$xorg_testset_save_CFLAGS"
8852
8853 eval supported=\$$cacheid
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8855 $as_echo "$supported" >&6; }
8856 if test "$supported" = "yes" ; then
8857 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8858 found="yes"
8859 fi
8860 fi
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876 xorg_testset_save_CFLAGS="$CFLAGS"
8877
8878 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8879 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8881 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8882 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8883 $as_echo_n "(cached) " >&6
8884 else
8885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8886 /* end confdefs.h. */
8887 int i;
8888 _ACEOF
8889 if ac_fn_c_try_compile "$LINENO"; then :
8890 xorg_cv_cc_flag_unknown_warning_option=yes
8891 else
8892 xorg_cv_cc_flag_unknown_warning_option=no
8893 fi
8894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8895 fi
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8897 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8898 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8899 CFLAGS="$xorg_testset_save_CFLAGS"
8900 fi
8901
8902 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8905 fi
8906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8908 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8909 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8910 $as_echo_n "(cached) " >&6
8911 else
8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h. */
8914 int i;
8915 _ACEOF
8916 if ac_fn_c_try_compile "$LINENO"; then :
8917 xorg_cv_cc_flag_unused_command_line_argument=yes
8918 else
8919 xorg_cv_cc_flag_unused_command_line_argument=no
8920 fi
8921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8922 fi
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8924 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8925 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8926 CFLAGS="$xorg_testset_save_CFLAGS"
8927 fi
8928
8929 found="no"
8930
8931 if test $found = "no" ; then
8932 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8934 fi
8935
8936 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8938 fi
8939
8940 CFLAGS="$CFLAGS -Wmissing-braces"
8941
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
8943 $as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
8944 cacheid=xorg_cv_cc_flag__Wmissing_braces
8945 if eval \${$cacheid+:} false; then :
8946 $as_echo_n "(cached) " >&6
8947 else
8948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8949 /* end confdefs.h. */
8950 int i;
8951 int
8952 main ()
8953 {
8954
8955 ;
8956 return 0;
8957 }
8958 _ACEOF
8959 if ac_fn_c_try_link "$LINENO"; then :
8960 eval $cacheid=yes
8961 else
8962 eval $cacheid=no
8963 fi
8964 rm -f core conftest.err conftest.$ac_objext \
8965 conftest$ac_exeext conftest.$ac_ext
8966 fi
8967
8968
8969 CFLAGS="$xorg_testset_save_CFLAGS"
8970
8971 eval supported=\$$cacheid
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8973 $as_echo "$supported" >&6; }
8974 if test "$supported" = "yes" ; then
8975 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8976 found="yes"
8977 fi
8978 fi
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994 xorg_testset_save_CFLAGS="$CFLAGS"
8995
8996 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8999 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9000 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9001 $as_echo_n "(cached) " >&6
9002 else
9003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004 /* end confdefs.h. */
9005 int i;
9006 _ACEOF
9007 if ac_fn_c_try_compile "$LINENO"; then :
9008 xorg_cv_cc_flag_unknown_warning_option=yes
9009 else
9010 xorg_cv_cc_flag_unknown_warning_option=no
9011 fi
9012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9013 fi
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9015 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9016 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9017 CFLAGS="$xorg_testset_save_CFLAGS"
9018 fi
9019
9020 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9023 fi
9024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9026 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9027 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9028 $as_echo_n "(cached) " >&6
9029 else
9030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h. */
9032 int i;
9033 _ACEOF
9034 if ac_fn_c_try_compile "$LINENO"; then :
9035 xorg_cv_cc_flag_unused_command_line_argument=yes
9036 else
9037 xorg_cv_cc_flag_unused_command_line_argument=no
9038 fi
9039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9040 fi
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9042 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9043 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9044 CFLAGS="$xorg_testset_save_CFLAGS"
9045 fi
9046
9047 found="no"
9048
9049 if test $found = "no" ; then
9050 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9052 fi
9053
9054 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9056 fi
9057
9058 CFLAGS="$CFLAGS -Wsequence-point"
9059
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
9061 $as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
9062 cacheid=xorg_cv_cc_flag__Wsequence_point
9063 if eval \${$cacheid+:} false; then :
9064 $as_echo_n "(cached) " >&6
9065 else
9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9068 int i;
9069 int
9070 main ()
9071 {
9072
9073 ;
9074 return 0;
9075 }
9076 _ACEOF
9077 if ac_fn_c_try_link "$LINENO"; then :
9078 eval $cacheid=yes
9079 else
9080 eval $cacheid=no
9081 fi
9082 rm -f core conftest.err conftest.$ac_objext \
9083 conftest$ac_exeext conftest.$ac_ext
9084 fi
9085
9086
9087 CFLAGS="$xorg_testset_save_CFLAGS"
9088
9089 eval supported=\$$cacheid
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9091 $as_echo "$supported" >&6; }
9092 if test "$supported" = "yes" ; then
9093 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9094 found="yes"
9095 fi
9096 fi
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112 xorg_testset_save_CFLAGS="$CFLAGS"
9113
9114 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9117 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9118 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9119 $as_echo_n "(cached) " >&6
9120 else
9121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9122 /* end confdefs.h. */
9123 int i;
9124 _ACEOF
9125 if ac_fn_c_try_compile "$LINENO"; then :
9126 xorg_cv_cc_flag_unknown_warning_option=yes
9127 else
9128 xorg_cv_cc_flag_unknown_warning_option=no
9129 fi
9130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9131 fi
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9133 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9134 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9135 CFLAGS="$xorg_testset_save_CFLAGS"
9136 fi
9137
9138 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9141 fi
9142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9144 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9145 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9146 $as_echo_n "(cached) " >&6
9147 else
9148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9149 /* end confdefs.h. */
9150 int i;
9151 _ACEOF
9152 if ac_fn_c_try_compile "$LINENO"; then :
9153 xorg_cv_cc_flag_unused_command_line_argument=yes
9154 else
9155 xorg_cv_cc_flag_unused_command_line_argument=no
9156 fi
9157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9158 fi
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9160 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9161 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9162 CFLAGS="$xorg_testset_save_CFLAGS"
9163 fi
9164
9165 found="no"
9166
9167 if test $found = "no" ; then
9168 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9170 fi
9171
9172 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9174 fi
9175
9176 CFLAGS="$CFLAGS -Wreturn-type"
9177
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9179 $as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9180 cacheid=xorg_cv_cc_flag__Wreturn_type
9181 if eval \${$cacheid+:} false; then :
9182 $as_echo_n "(cached) " >&6
9183 else
9184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9185 /* end confdefs.h. */
9186 int i;
9187 int
9188 main ()
9189 {
9190
9191 ;
9192 return 0;
9193 }
9194 _ACEOF
9195 if ac_fn_c_try_link "$LINENO"; then :
9196 eval $cacheid=yes
9197 else
9198 eval $cacheid=no
9199 fi
9200 rm -f core conftest.err conftest.$ac_objext \
9201 conftest$ac_exeext conftest.$ac_ext
9202 fi
9203
9204
9205 CFLAGS="$xorg_testset_save_CFLAGS"
9206
9207 eval supported=\$$cacheid
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9209 $as_echo "$supported" >&6; }
9210 if test "$supported" = "yes" ; then
9211 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9212 found="yes"
9213 fi
9214 fi
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230 xorg_testset_save_CFLAGS="$CFLAGS"
9231
9232 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9235 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9236 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9237 $as_echo_n "(cached) " >&6
9238 else
9239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9240 /* end confdefs.h. */
9241 int i;
9242 _ACEOF
9243 if ac_fn_c_try_compile "$LINENO"; then :
9244 xorg_cv_cc_flag_unknown_warning_option=yes
9245 else
9246 xorg_cv_cc_flag_unknown_warning_option=no
9247 fi
9248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9249 fi
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9251 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9252 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9253 CFLAGS="$xorg_testset_save_CFLAGS"
9254 fi
9255
9256 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9259 fi
9260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9262 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9263 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9264 $as_echo_n "(cached) " >&6
9265 else
9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9267 /* end confdefs.h. */
9268 int i;
9269 _ACEOF
9270 if ac_fn_c_try_compile "$LINENO"; then :
9271 xorg_cv_cc_flag_unused_command_line_argument=yes
9272 else
9273 xorg_cv_cc_flag_unused_command_line_argument=no
9274 fi
9275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9276 fi
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9278 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9279 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9280 CFLAGS="$xorg_testset_save_CFLAGS"
9281 fi
9282
9283 found="no"
9284
9285 if test $found = "no" ; then
9286 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9288 fi
9289
9290 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9292 fi
9293
9294 CFLAGS="$CFLAGS -Wtrigraphs"
9295
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9297 $as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9298 cacheid=xorg_cv_cc_flag__Wtrigraphs
9299 if eval \${$cacheid+:} false; then :
9300 $as_echo_n "(cached) " >&6
9301 else
9302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303 /* end confdefs.h. */
9304 int i;
9305 int
9306 main ()
9307 {
9308
9309 ;
9310 return 0;
9311 }
9312 _ACEOF
9313 if ac_fn_c_try_link "$LINENO"; then :
9314 eval $cacheid=yes
9315 else
9316 eval $cacheid=no
9317 fi
9318 rm -f core conftest.err conftest.$ac_objext \
9319 conftest$ac_exeext conftest.$ac_ext
9320 fi
9321
9322
9323 CFLAGS="$xorg_testset_save_CFLAGS"
9324
9325 eval supported=\$$cacheid
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9327 $as_echo "$supported" >&6; }
9328 if test "$supported" = "yes" ; then
9329 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9330 found="yes"
9331 fi
9332 fi
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348 xorg_testset_save_CFLAGS="$CFLAGS"
9349
9350 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9353 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9354 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9355 $as_echo_n "(cached) " >&6
9356 else
9357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358 /* end confdefs.h. */
9359 int i;
9360 _ACEOF
9361 if ac_fn_c_try_compile "$LINENO"; then :
9362 xorg_cv_cc_flag_unknown_warning_option=yes
9363 else
9364 xorg_cv_cc_flag_unknown_warning_option=no
9365 fi
9366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9367 fi
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9369 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9371 CFLAGS="$xorg_testset_save_CFLAGS"
9372 fi
9373
9374 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9377 fi
9378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9380 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9381 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9382 $as_echo_n "(cached) " >&6
9383 else
9384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9385 /* end confdefs.h. */
9386 int i;
9387 _ACEOF
9388 if ac_fn_c_try_compile "$LINENO"; then :
9389 xorg_cv_cc_flag_unused_command_line_argument=yes
9390 else
9391 xorg_cv_cc_flag_unused_command_line_argument=no
9392 fi
9393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9394 fi
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9396 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9397 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9398 CFLAGS="$xorg_testset_save_CFLAGS"
9399 fi
9400
9401 found="no"
9402
9403 if test $found = "no" ; then
9404 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9406 fi
9407
9408 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9410 fi
9411
9412 CFLAGS="$CFLAGS -Warray-bounds"
9413
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9415 $as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9416 cacheid=xorg_cv_cc_flag__Warray_bounds
9417 if eval \${$cacheid+:} false; then :
9418 $as_echo_n "(cached) " >&6
9419 else
9420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421 /* end confdefs.h. */
9422 int i;
9423 int
9424 main ()
9425 {
9426
9427 ;
9428 return 0;
9429 }
9430 _ACEOF
9431 if ac_fn_c_try_link "$LINENO"; then :
9432 eval $cacheid=yes
9433 else
9434 eval $cacheid=no
9435 fi
9436 rm -f core conftest.err conftest.$ac_objext \
9437 conftest$ac_exeext conftest.$ac_ext
9438 fi
9439
9440
9441 CFLAGS="$xorg_testset_save_CFLAGS"
9442
9443 eval supported=\$$cacheid
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9445 $as_echo "$supported" >&6; }
9446 if test "$supported" = "yes" ; then
9447 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9448 found="yes"
9449 fi
9450 fi
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466 xorg_testset_save_CFLAGS="$CFLAGS"
9467
9468 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9471 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9472 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9473 $as_echo_n "(cached) " >&6
9474 else
9475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476 /* end confdefs.h. */
9477 int i;
9478 _ACEOF
9479 if ac_fn_c_try_compile "$LINENO"; then :
9480 xorg_cv_cc_flag_unknown_warning_option=yes
9481 else
9482 xorg_cv_cc_flag_unknown_warning_option=no
9483 fi
9484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9485 fi
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9487 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9488 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9489 CFLAGS="$xorg_testset_save_CFLAGS"
9490 fi
9491
9492 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9495 fi
9496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9498 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9499 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9500 $as_echo_n "(cached) " >&6
9501 else
9502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503 /* end confdefs.h. */
9504 int i;
9505 _ACEOF
9506 if ac_fn_c_try_compile "$LINENO"; then :
9507 xorg_cv_cc_flag_unused_command_line_argument=yes
9508 else
9509 xorg_cv_cc_flag_unused_command_line_argument=no
9510 fi
9511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9512 fi
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9514 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9515 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9516 CFLAGS="$xorg_testset_save_CFLAGS"
9517 fi
9518
9519 found="no"
9520
9521 if test $found = "no" ; then
9522 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9524 fi
9525
9526 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9528 fi
9529
9530 CFLAGS="$CFLAGS -Wwrite-strings"
9531
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9533 $as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9534 cacheid=xorg_cv_cc_flag__Wwrite_strings
9535 if eval \${$cacheid+:} false; then :
9536 $as_echo_n "(cached) " >&6
9537 else
9538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9539 /* end confdefs.h. */
9540 int i;
9541 int
9542 main ()
9543 {
9544
9545 ;
9546 return 0;
9547 }
9548 _ACEOF
9549 if ac_fn_c_try_link "$LINENO"; then :
9550 eval $cacheid=yes
9551 else
9552 eval $cacheid=no
9553 fi
9554 rm -f core conftest.err conftest.$ac_objext \
9555 conftest$ac_exeext conftest.$ac_ext
9556 fi
9557
9558
9559 CFLAGS="$xorg_testset_save_CFLAGS"
9560
9561 eval supported=\$$cacheid
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9563 $as_echo "$supported" >&6; }
9564 if test "$supported" = "yes" ; then
9565 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9566 found="yes"
9567 fi
9568 fi
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584 xorg_testset_save_CFLAGS="$CFLAGS"
9585
9586 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9589 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9590 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9591 $as_echo_n "(cached) " >&6
9592 else
9593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594 /* end confdefs.h. */
9595 int i;
9596 _ACEOF
9597 if ac_fn_c_try_compile "$LINENO"; then :
9598 xorg_cv_cc_flag_unknown_warning_option=yes
9599 else
9600 xorg_cv_cc_flag_unknown_warning_option=no
9601 fi
9602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9603 fi
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9605 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9606 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9607 CFLAGS="$xorg_testset_save_CFLAGS"
9608 fi
9609
9610 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9613 fi
9614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9616 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9617 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9618 $as_echo_n "(cached) " >&6
9619 else
9620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621 /* end confdefs.h. */
9622 int i;
9623 _ACEOF
9624 if ac_fn_c_try_compile "$LINENO"; then :
9625 xorg_cv_cc_flag_unused_command_line_argument=yes
9626 else
9627 xorg_cv_cc_flag_unused_command_line_argument=no
9628 fi
9629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9630 fi
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9632 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9633 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9634 CFLAGS="$xorg_testset_save_CFLAGS"
9635 fi
9636
9637 found="no"
9638
9639 if test $found = "no" ; then
9640 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9641 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9642 fi
9643
9644 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9646 fi
9647
9648 CFLAGS="$CFLAGS -Waddress"
9649
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9651 $as_echo_n "checking if $CC supports-Waddress... " >&6; }
9652 cacheid=xorg_cv_cc_flag__Waddress
9653 if eval \${$cacheid+:} false; then :
9654 $as_echo_n "(cached) " >&6
9655 else
9656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9657 /* end confdefs.h. */
9658 int i;
9659 int
9660 main ()
9661 {
9662
9663 ;
9664 return 0;
9665 }
9666 _ACEOF
9667 if ac_fn_c_try_link "$LINENO"; then :
9668 eval $cacheid=yes
9669 else
9670 eval $cacheid=no
9671 fi
9672 rm -f core conftest.err conftest.$ac_objext \
9673 conftest$ac_exeext conftest.$ac_ext
9674 fi
9675
9676
9677 CFLAGS="$xorg_testset_save_CFLAGS"
9678
9679 eval supported=\$$cacheid
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9681 $as_echo "$supported" >&6; }
9682 if test "$supported" = "yes" ; then
9683 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9684 found="yes"
9685 fi
9686 fi
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702 xorg_testset_save_CFLAGS="$CFLAGS"
9703
9704 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9707 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9708 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9709 $as_echo_n "(cached) " >&6
9710 else
9711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9712 /* end confdefs.h. */
9713 int i;
9714 _ACEOF
9715 if ac_fn_c_try_compile "$LINENO"; then :
9716 xorg_cv_cc_flag_unknown_warning_option=yes
9717 else
9718 xorg_cv_cc_flag_unknown_warning_option=no
9719 fi
9720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9721 fi
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9723 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9724 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9725 CFLAGS="$xorg_testset_save_CFLAGS"
9726 fi
9727
9728 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9731 fi
9732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9734 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9735 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9736 $as_echo_n "(cached) " >&6
9737 else
9738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9739 /* end confdefs.h. */
9740 int i;
9741 _ACEOF
9742 if ac_fn_c_try_compile "$LINENO"; then :
9743 xorg_cv_cc_flag_unused_command_line_argument=yes
9744 else
9745 xorg_cv_cc_flag_unused_command_line_argument=no
9746 fi
9747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9748 fi
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9750 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9751 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9752 CFLAGS="$xorg_testset_save_CFLAGS"
9753 fi
9754
9755 found="no"
9756
9757 if test $found = "no" ; then
9758 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9759 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9760 fi
9761
9762 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9764 fi
9765
9766 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9767
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9769 $as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
9770 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9771 if eval \${$cacheid+:} false; then :
9772 $as_echo_n "(cached) " >&6
9773 else
9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h. */
9776 int i;
9777 int
9778 main ()
9779 {
9780
9781 ;
9782 return 0;
9783 }
9784 _ACEOF
9785 if ac_fn_c_try_link "$LINENO"; then :
9786 eval $cacheid=yes
9787 else
9788 eval $cacheid=no
9789 fi
9790 rm -f core conftest.err conftest.$ac_objext \
9791 conftest$ac_exeext conftest.$ac_ext
9792 fi
9793
9794
9795 CFLAGS="$xorg_testset_save_CFLAGS"
9796
9797 eval supported=\$$cacheid
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9799 $as_echo "$supported" >&6; }
9800 if test "$supported" = "yes" ; then
9801 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9802 found="yes"
9803 fi
9804 fi
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820 xorg_testset_save_CFLAGS="$CFLAGS"
9821
9822 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9825 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9826 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9827 $as_echo_n "(cached) " >&6
9828 else
9829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9830 /* end confdefs.h. */
9831 int i;
9832 _ACEOF
9833 if ac_fn_c_try_compile "$LINENO"; then :
9834 xorg_cv_cc_flag_unknown_warning_option=yes
9835 else
9836 xorg_cv_cc_flag_unknown_warning_option=no
9837 fi
9838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9839 fi
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9841 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9842 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9843 CFLAGS="$xorg_testset_save_CFLAGS"
9844 fi
9845
9846 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9848 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9849 fi
9850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9852 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9853 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9854 $as_echo_n "(cached) " >&6
9855 else
9856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9857 /* end confdefs.h. */
9858 int i;
9859 _ACEOF
9860 if ac_fn_c_try_compile "$LINENO"; then :
9861 xorg_cv_cc_flag_unused_command_line_argument=yes
9862 else
9863 xorg_cv_cc_flag_unused_command_line_argument=no
9864 fi
9865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9866 fi
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9868 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9870 CFLAGS="$xorg_testset_save_CFLAGS"
9871 fi
9872
9873 found="no"
9874
9875 if test $found = "no" ; then
9876 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9878 fi
9879
9880 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9882 fi
9883
9884 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9885
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
9887 $as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
9888 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9889 if eval \${$cacheid+:} false; then :
9890 $as_echo_n "(cached) " >&6
9891 else
9892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9893 /* end confdefs.h. */
9894 int i;
9895 int
9896 main ()
9897 {
9898
9899 ;
9900 return 0;
9901 }
9902 _ACEOF
9903 if ac_fn_c_try_link "$LINENO"; then :
9904 eval $cacheid=yes
9905 else
9906 eval $cacheid=no
9907 fi
9908 rm -f core conftest.err conftest.$ac_objext \
9909 conftest$ac_exeext conftest.$ac_ext
9910 fi
9911
9912
9913 CFLAGS="$xorg_testset_save_CFLAGS"
9914
9915 eval supported=\$$cacheid
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9917 $as_echo "$supported" >&6; }
9918 if test "$supported" = "yes" ; then
9919 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9920 found="yes"
9921 fi
9922 fi
9923
9924
9925 fi
9926
9927
9928
9929
9930
9931
9932
9933 CWARNFLAGS="$BASE_CFLAGS"
9934 if test "x$GCC" = xyes ; then
9935 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9936 fi
9937
9938
9939
9940
9941
9942
9943
9944
9945 # Check whether --enable-strict-compilation was given.
9946 if test "${enable_strict_compilation+set}" = set; then :
9947 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9948 else
9949 STRICT_COMPILE=no
9950 fi
9951
9952
9953
9954
9955
9956
9957 STRICT_CFLAGS=""
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971 xorg_testset_save_CFLAGS="$CFLAGS"
9972
9973 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9974 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9976 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9977 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9978 $as_echo_n "(cached) " >&6
9979 else
9980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9981 /* end confdefs.h. */
9982 int i;
9983 _ACEOF
9984 if ac_fn_c_try_compile "$LINENO"; then :
9985 xorg_cv_cc_flag_unknown_warning_option=yes
9986 else
9987 xorg_cv_cc_flag_unknown_warning_option=no
9988 fi
9989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9990 fi
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9992 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9993 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9994 CFLAGS="$xorg_testset_save_CFLAGS"
9995 fi
9996
9997 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9999 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10000 fi
10001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10003 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10004 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10005 $as_echo_n "(cached) " >&6
10006 else
10007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10008 /* end confdefs.h. */
10009 int i;
10010 _ACEOF
10011 if ac_fn_c_try_compile "$LINENO"; then :
10012 xorg_cv_cc_flag_unused_command_line_argument=yes
10013 else
10014 xorg_cv_cc_flag_unused_command_line_argument=no
10015 fi
10016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10017 fi
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10019 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10020 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10021 CFLAGS="$xorg_testset_save_CFLAGS"
10022 fi
10023
10024 found="no"
10025
10026 if test $found = "no" ; then
10027 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10029 fi
10030
10031 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10033 fi
10034
10035 CFLAGS="$CFLAGS -pedantic"
10036
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
10038 $as_echo_n "checking if $CC supports-pedantic... " >&6; }
10039 cacheid=xorg_cv_cc_flag__pedantic
10040 if eval \${$cacheid+:} false; then :
10041 $as_echo_n "(cached) " >&6
10042 else
10043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10044 /* end confdefs.h. */
10045 int i;
10046 int
10047 main ()
10048 {
10049
10050 ;
10051 return 0;
10052 }
10053 _ACEOF
10054 if ac_fn_c_try_link "$LINENO"; then :
10055 eval $cacheid=yes
10056 else
10057 eval $cacheid=no
10058 fi
10059 rm -f core conftest.err conftest.$ac_objext \
10060 conftest$ac_exeext conftest.$ac_ext
10061 fi
10062
10063
10064 CFLAGS="$xorg_testset_save_CFLAGS"
10065
10066 eval supported=\$$cacheid
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10068 $as_echo "$supported" >&6; }
10069 if test "$supported" = "yes" ; then
10070 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10071 found="yes"
10072 fi
10073 fi
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089 xorg_testset_save_CFLAGS="$CFLAGS"
10090
10091 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10094 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10095 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10096 $as_echo_n "(cached) " >&6
10097 else
10098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10099 /* end confdefs.h. */
10100 int i;
10101 _ACEOF
10102 if ac_fn_c_try_compile "$LINENO"; then :
10103 xorg_cv_cc_flag_unknown_warning_option=yes
10104 else
10105 xorg_cv_cc_flag_unknown_warning_option=no
10106 fi
10107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10108 fi
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10110 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10112 CFLAGS="$xorg_testset_save_CFLAGS"
10113 fi
10114
10115 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10118 fi
10119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10121 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10122 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10123 $as_echo_n "(cached) " >&6
10124 else
10125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10126 /* end confdefs.h. */
10127 int i;
10128 _ACEOF
10129 if ac_fn_c_try_compile "$LINENO"; then :
10130 xorg_cv_cc_flag_unused_command_line_argument=yes
10131 else
10132 xorg_cv_cc_flag_unused_command_line_argument=no
10133 fi
10134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10135 fi
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10137 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10138 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10139 CFLAGS="$xorg_testset_save_CFLAGS"
10140 fi
10141
10142 found="no"
10143
10144 if test $found = "no" ; then
10145 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10147 fi
10148
10149 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10151 fi
10152
10153 CFLAGS="$CFLAGS -Werror"
10154
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
10156 $as_echo_n "checking if $CC supports-Werror... " >&6; }
10157 cacheid=xorg_cv_cc_flag__Werror
10158 if eval \${$cacheid+:} false; then :
10159 $as_echo_n "(cached) " >&6
10160 else
10161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10162 /* end confdefs.h. */
10163 int i;
10164 int
10165 main ()
10166 {
10167
10168 ;
10169 return 0;
10170 }
10171 _ACEOF
10172 if ac_fn_c_try_link "$LINENO"; then :
10173 eval $cacheid=yes
10174 else
10175 eval $cacheid=no
10176 fi
10177 rm -f core conftest.err conftest.$ac_objext \
10178 conftest$ac_exeext conftest.$ac_ext
10179 fi
10180
10181
10182 CFLAGS="$xorg_testset_save_CFLAGS"
10183
10184 eval supported=\$$cacheid
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10186 $as_echo "$supported" >&6; }
10187 if test "$supported" = "yes" ; then
10188 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10189 found="yes"
10190 fi
10191 fi
10192
10193 if test $found = "no" ; then
10194 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10196 fi
10197
10198 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10200 fi
10201
10202 CFLAGS="$CFLAGS -errwarn"
10203
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10205 $as_echo_n "checking if $CC supports-errwarn... " >&6; }
10206 cacheid=xorg_cv_cc_flag__errwarn
10207 if eval \${$cacheid+:} false; then :
10208 $as_echo_n "(cached) " >&6
10209 else
10210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10211 /* end confdefs.h. */
10212 int i;
10213 int
10214 main ()
10215 {
10216
10217 ;
10218 return 0;
10219 }
10220 _ACEOF
10221 if ac_fn_c_try_link "$LINENO"; then :
10222 eval $cacheid=yes
10223 else
10224 eval $cacheid=no
10225 fi
10226 rm -f core conftest.err conftest.$ac_objext \
10227 conftest$ac_exeext conftest.$ac_ext
10228 fi
10229
10230
10231 CFLAGS="$xorg_testset_save_CFLAGS"
10232
10233 eval supported=\$$cacheid
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10235 $as_echo "$supported" >&6; }
10236 if test "$supported" = "yes" ; then
10237 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10238 found="yes"
10239 fi
10240 fi
10241
10242
10243
10244 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10245 # activate it with -Werror, so we add it here explicitly.
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259 xorg_testset_save_CFLAGS="$CFLAGS"
10260
10261 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10264 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10265 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10266 $as_echo_n "(cached) " >&6
10267 else
10268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10269 /* end confdefs.h. */
10270 int i;
10271 _ACEOF
10272 if ac_fn_c_try_compile "$LINENO"; then :
10273 xorg_cv_cc_flag_unknown_warning_option=yes
10274 else
10275 xorg_cv_cc_flag_unknown_warning_option=no
10276 fi
10277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10278 fi
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10280 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10281 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10282 CFLAGS="$xorg_testset_save_CFLAGS"
10283 fi
10284
10285 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10288 fi
10289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10291 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10292 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10293 $as_echo_n "(cached) " >&6
10294 else
10295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10296 /* end confdefs.h. */
10297 int i;
10298 _ACEOF
10299 if ac_fn_c_try_compile "$LINENO"; then :
10300 xorg_cv_cc_flag_unused_command_line_argument=yes
10301 else
10302 xorg_cv_cc_flag_unused_command_line_argument=no
10303 fi
10304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10305 fi
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10307 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10308 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10309 CFLAGS="$xorg_testset_save_CFLAGS"
10310 fi
10311
10312 found="no"
10313
10314 if test $found = "no" ; then
10315 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10317 fi
10318
10319 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10321 fi
10322
10323 CFLAGS="$CFLAGS -Werror=attributes"
10324
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10326 $as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10327 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10328 if eval \${$cacheid+:} false; then :
10329 $as_echo_n "(cached) " >&6
10330 else
10331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10332 /* end confdefs.h. */
10333 int i;
10334 int
10335 main ()
10336 {
10337
10338 ;
10339 return 0;
10340 }
10341 _ACEOF
10342 if ac_fn_c_try_link "$LINENO"; then :
10343 eval $cacheid=yes
10344 else
10345 eval $cacheid=no
10346 fi
10347 rm -f core conftest.err conftest.$ac_objext \
10348 conftest$ac_exeext conftest.$ac_ext
10349 fi
10350
10351
10352 CFLAGS="$xorg_testset_save_CFLAGS"
10353
10354 eval supported=\$$cacheid
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10356 $as_echo "$supported" >&6; }
10357 if test "$supported" = "yes" ; then
10358 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10359 found="yes"
10360 fi
10361 fi
10362
10363
10364
10365 if test "x$STRICT_COMPILE" = "xyes"; then
10366 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10367 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10368 fi
10369
10370
10371
10372
10373
10374
10375 cat >>confdefs.h <<_ACEOF
10376 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10377 _ACEOF
10378
10379 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10380 if test "x$PVM" = "x"; then
10381 PVM="0"
10382 fi
10383
10384 cat >>confdefs.h <<_ACEOF
10385 #define PACKAGE_VERSION_MINOR $PVM
10386 _ACEOF
10387
10388 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10389 if test "x$PVP" = "x"; then
10390 PVP="0"
10391 fi
10392
10393 cat >>confdefs.h <<_ACEOF
10394 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10395 _ACEOF
10396
10397
10398
10399 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10400 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10401 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10402 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10403
10404
10405
10406
10407 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10408 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10409 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10410 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10411 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10412
10413
10414
10415
10416
10417
10418 if test x$APP_MAN_SUFFIX = x ; then
10419 APP_MAN_SUFFIX=1
10420 fi
10421 if test x$APP_MAN_DIR = x ; then
10422 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10423 fi
10424
10425 if test x$LIB_MAN_SUFFIX = x ; then
10426 LIB_MAN_SUFFIX=3
10427 fi
10428 if test x$LIB_MAN_DIR = x ; then
10429 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10430 fi
10431
10432 if test x$FILE_MAN_SUFFIX = x ; then
10433 case $host_os in
10434 solaris*) FILE_MAN_SUFFIX=4 ;;
10435 *) FILE_MAN_SUFFIX=5 ;;
10436 esac
10437 fi
10438 if test x$FILE_MAN_DIR = x ; then
10439 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10440 fi
10441
10442 if test x$MISC_MAN_SUFFIX = x ; then
10443 case $host_os in
10444 solaris*) MISC_MAN_SUFFIX=5 ;;
10445 *) MISC_MAN_SUFFIX=7 ;;
10446 esac
10447 fi
10448 if test x$MISC_MAN_DIR = x ; then
10449 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10450 fi
10451
10452 if test x$DRIVER_MAN_SUFFIX = x ; then
10453 case $host_os in
10454 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10455 *) DRIVER_MAN_SUFFIX=4 ;;
10456 esac
10457 fi
10458 if test x$DRIVER_MAN_DIR = x ; then
10459 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10460 fi
10461
10462 if test x$ADMIN_MAN_SUFFIX = x ; then
10463 case $host_os in
10464 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10465 *) ADMIN_MAN_SUFFIX=8 ;;
10466 esac
10467 fi
10468 if test x$ADMIN_MAN_DIR = x ; then
10469 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10470 fi
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486 XORG_MAN_PAGE="X Version 11"
10487
10488 MAN_SUBSTS="\
10489 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10490 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10491 -e 's|__xservername__|Xorg|g' \
10492 -e 's|__xconfigfile__|xorg.conf|g' \
10493 -e 's|__projectroot__|\$(prefix)|g' \
10494 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10495 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10496 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10497 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10498 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10499 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10500 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10501
10502
10503
10504 # Check whether --enable-silent-rules was given.
10505 if test "${enable_silent_rules+set}" = set; then :
10506 enableval=$enable_silent_rules;
10507 fi
10508
10509 case $enable_silent_rules in
10510 yes) AM_DEFAULT_VERBOSITY=0;;
10511 no) AM_DEFAULT_VERBOSITY=1;;
10512 *) AM_DEFAULT_VERBOSITY=0;;
10513 esac
10514 AM_BACKSLASH='\'
10515
10516
10517
10518 ac_config_headers="$ac_config_headers config.h"
10519
10520
10521
10522
10523
10524 for ac_header in pty.h stropts.h sys/param.h sys/select.h
10525 do :
10526 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10527 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10528 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10529 cat >>confdefs.h <<_ACEOF
10530 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10531 _ACEOF
10532
10533 fi
10534
10535 done
10536
10537 for ac_func in select grantpt posix_openpt
10538 do :
10539 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10540 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10541 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10542 cat >>confdefs.h <<_ACEOF
10543 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10544 _ACEOF
10545
10546 fi
10547 done
10548
10549
10550
10551 # Check whether --with-localealiasfile was given.
10552 if test "${with_localealiasfile+set}" = set; then :
10553 withval=$with_localealiasfile; LOCALEALIASFILE="$withval"
10554 else
10555 LOCALEALIASFILE=${datadir}/X11/locale/locale.alias
10556 fi
10557
10558
10559
10560 # Checks for pkg-config packages
10561
10562 pkg_failed=no
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUIT" >&5
10564 $as_echo_n "checking for LUIT... " >&6; }
10565
10566 if test -n "$LUIT_CFLAGS"; then
10567 pkg_cv_LUIT_CFLAGS="$LUIT_CFLAGS"
10568 elif test -n "$PKG_CONFIG"; then
10569 if test -n "$PKG_CONFIG" && \
10570 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontenc\""; } >&5
10571 ($PKG_CONFIG --exists --print-errors "fontenc") 2>&5
10572 ac_status=$?
10573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10574 test $ac_status = 0; }; then
10575 pkg_cv_LUIT_CFLAGS=`$PKG_CONFIG --cflags "fontenc" 2>/dev/null`
10576 else
10577 pkg_failed=yes
10578 fi
10579 else
10580 pkg_failed=untried
10581 fi
10582 if test -n "$LUIT_LIBS"; then
10583 pkg_cv_LUIT_LIBS="$LUIT_LIBS"
10584 elif test -n "$PKG_CONFIG"; then
10585 if test -n "$PKG_CONFIG" && \
10586 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontenc\""; } >&5
10587 ($PKG_CONFIG --exists --print-errors "fontenc") 2>&5
10588 ac_status=$?
10589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10590 test $ac_status = 0; }; then
10591 pkg_cv_LUIT_LIBS=`$PKG_CONFIG --libs "fontenc" 2>/dev/null`
10592 else
10593 pkg_failed=yes
10594 fi
10595 else
10596 pkg_failed=untried
10597 fi
10598
10599
10600
10601 if test $pkg_failed = yes; then
10602
10603 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10604 _pkg_short_errors_supported=yes
10605 else
10606 _pkg_short_errors_supported=no
10607 fi
10608 if test $_pkg_short_errors_supported = yes; then
10609 LUIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontenc" 2>&1`
10610 else
10611 LUIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontenc" 2>&1`
10612 fi
10613 # Put the nasty error message in config.log where it belongs
10614 echo "$LUIT_PKG_ERRORS" >&5
10615
10616 as_fn_error $? "Package requirements (fontenc) were not met:
10617
10618 $LUIT_PKG_ERRORS
10619
10620 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10621 installed software in a non-standard prefix.
10622
10623 Alternatively, you may set the environment variables LUIT_CFLAGS
10624 and LUIT_LIBS to avoid the need to call pkg-config.
10625 See the pkg-config man page for more details.
10626 " "$LINENO" 5
10627 elif test $pkg_failed = untried; then
10628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10630 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10631 is in your PATH or set the PKG_CONFIG environment variable to the full
10632 path to pkg-config.
10633
10634 Alternatively, you may set the environment variables LUIT_CFLAGS
10635 and LUIT_LIBS to avoid the need to call pkg-config.
10636 See the pkg-config man page for more details.
10637
10638 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10639 See \`config.log' for more details" "$LINENO" 5; }
10640 else
10641 LUIT_CFLAGS=$pkg_cv_LUIT_CFLAGS
10642 LUIT_LIBS=$pkg_cv_LUIT_LIBS
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10644 $as_echo "yes" >&6; }
10645 :
10646 fi
10647
10648 # We don't link against libX11, just use its locale.alias data file
10649 if test -n "$PKG_CONFIG" && \
10650 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
10651 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
10652 ac_status=$?
10653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10654 test $ac_status = 0; }; then
10655 :
10656 else
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libX11 not found. luit may not be able to find locale aliases without it." >&5
10658 $as_echo "$as_me: WARNING: libX11 not found. luit may not be able to find locale aliases without it." >&2;}
10659 fi
10660
10661 case $host_os in
10662 # darwin has poll() but can't be used to poll character devices (atleast through SnowLeopard)
10663 darwin*)
10664 OS_CFLAGS=
10665 ;;
10666 linux*)
10667 for ac_header in poll.h
10668 do :
10669 ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
10670 if test "x$ac_cv_header_poll_h" = xyes; then :
10671 cat >>confdefs.h <<_ACEOF
10672 #define HAVE_POLL_H 1
10673 _ACEOF
10674
10675 fi
10676
10677 done
10678
10679 for ac_func in poll
10680 do :
10681 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
10682 if test "x$ac_cv_func_poll" = xyes; then :
10683 cat >>confdefs.h <<_ACEOF
10684 #define HAVE_POLL 1
10685 _ACEOF
10686
10687 fi
10688 done
10689
10690 OS_CFLAGS="-D_XOPEN_SOURCE=500"
10691 ;;
10692 *)
10693 for ac_header in poll.h
10694 do :
10695 ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
10696 if test "x$ac_cv_header_poll_h" = xyes; then :
10697 cat >>confdefs.h <<_ACEOF
10698 #define HAVE_POLL_H 1
10699 _ACEOF
10700
10701 fi
10702
10703 done
10704
10705 for ac_func in poll
10706 do :
10707 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
10708 if test "x$ac_cv_func_poll" = xyes; then :
10709 cat >>confdefs.h <<_ACEOF
10710 #define HAVE_POLL 1
10711 _ACEOF
10712
10713 fi
10714 done
10715
10716 OS_CFLAGS=
10717 ;;
10718 esac
10719
10720
10721 for ac_header in pty.h stropts.h sys/ioctl.h sys/param.h sys/poll.h sys/select.h sys/time.h termios.h
10722 do :
10723 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10724 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10725 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10726 cat >>confdefs.h <<_ACEOF
10727 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10728 _ACEOF
10729
10730 fi
10731
10732 done
10733
10734 for ac_func in grantpt putenv select strdup
10735 do :
10736 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10737 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10738 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10739 cat >>confdefs.h <<_ACEOF
10740 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10741 _ACEOF
10742
10743 fi
10744 done
10745
10746
10747 if test "x$ac_cv_func_grantpt" != "xyes" ; then
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
10749 $as_echo_n "checking for openpty in -lutil... " >&6; }
10750 if ${ac_cv_lib_util_openpty+:} false; then :
10751 $as_echo_n "(cached) " >&6
10752 else
10753 ac_check_lib_save_LIBS=$LIBS
10754 LIBS="-lutil $LIBS"
10755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10756 /* end confdefs.h. */
10757
10758 /* Override any GCC internal prototype to avoid an error.
10759 Use char because int might match the return type of a GCC
10760 builtin and then its argument prototype would still apply. */
10761 #ifdef __cplusplus
10762 extern "C"
10763 #endif
10764 char openpty ();
10765 int
10766 main ()
10767 {
10768 return openpty ();
10769 ;
10770 return 0;
10771 }
10772 _ACEOF
10773 if ac_fn_c_try_link "$LINENO"; then :
10774 ac_cv_lib_util_openpty=yes
10775 else
10776 ac_cv_lib_util_openpty=no
10777 fi
10778 rm -f core conftest.err conftest.$ac_objext \
10779 conftest$ac_exeext conftest.$ac_ext
10780 LIBS=$ac_check_lib_save_LIBS
10781 fi
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
10783 $as_echo "$ac_cv_lib_util_openpty" >&6; }
10784 if test "x$ac_cv_lib_util_openpty" = xyes; then :
10785 cf_have_openpty=yes
10786 else
10787 cf_have_openpty=no
10788 fi
10789
10790 if test "$cf_have_openpty" = yes ; then
10791 LIBS="-lutil $LIBS"
10792
10793 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
10794
10795 for ac_header in \
10796 util.h \
10797 libutil.h \
10798 pty.h \
10799
10800 do :
10801 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10802 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10803 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10804 cat >>confdefs.h <<_ACEOF
10805 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10806 _ACEOF
10807
10808 fi
10809
10810 done
10811
10812 fi
10813 fi
10814
10815
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll really works" >&5
10817 $as_echo_n "checking if poll really works... " >&6; }
10818 if ${cf_cv_working_poll+:} false; then :
10819 $as_echo_n "(cached) " >&6
10820 else
10821
10822 if test "$cross_compiling" = yes; then :
10823 cf_cv_working_poll=unknown
10824 else
10825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10826 /* end confdefs.h. */
10827
10828 #include <stdio.h>
10829 #ifdef HAVE_POLL_H
10830 #include <poll.h>
10831 #else
10832 #include <sys/poll.h>
10833 #endif
10834 int main() {
10835 struct pollfd myfds;
10836 int ret;
10837
10838 myfds.fd = 0;
10839 myfds.events = POLLIN;
10840
10841 ret = poll(&myfds, 1, 100);
10842 ${cf_cv_main_return:-return}(ret != 0);
10843 }
10844 _ACEOF
10845 if ac_fn_c_try_run "$LINENO"; then :
10846 cf_cv_working_poll=yes
10847 else
10848 cf_cv_working_poll=no
10849 fi
10850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10851 conftest.$ac_objext conftest.beam conftest.$ac_ext
10852 fi
10853
10854 fi
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_working_poll" >&5
10856 $as_echo "$cf_cv_working_poll" >&6; }
10857 test "$cf_cv_working_poll" = "yes" &&
10858 $as_echo "#define HAVE_WORKING_POLL 1" >>confdefs.h
10859
10860
10861
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIGWINCH is defined" >&5
10863 $as_echo_n "checking if SIGWINCH is defined... " >&6; }
10864 if ${cf_cv_define_sigwinch+:} false; then :
10865 $as_echo_n "(cached) " >&6
10866 else
10867
10868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10869 /* end confdefs.h. */
10870
10871 #include <sys/types.h>
10872 #include <sys/signal.h>
10873
10874 int
10875 main ()
10876 {
10877 int x = SIGWINCH
10878 ;
10879 return 0;
10880 }
10881 _ACEOF
10882 if ac_fn_c_try_compile "$LINENO"; then :
10883 cf_cv_define_sigwinch=yes
10884 else
10885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886 /* end confdefs.h. */
10887
10888 #undef _XOPEN_SOURCE
10889 #undef _POSIX_SOURCE
10890 #undef _POSIX_C_SOURCE
10891 #include <sys/types.h>
10892 #include <sys/signal.h>
10893
10894 int
10895 main ()
10896 {
10897 int x = SIGWINCH
10898 ;
10899 return 0;
10900 }
10901 _ACEOF
10902 if ac_fn_c_try_compile "$LINENO"; then :
10903 cf_cv_define_sigwinch=maybe
10904 else
10905 cf_cv_define_sigwinch=no
10906 fi
10907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10908
10909 fi
10910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10911
10912 fi
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_define_sigwinch" >&5
10914 $as_echo "$cf_cv_define_sigwinch" >&6; }
10915
10916 if test "$cf_cv_define_sigwinch" = maybe ; then
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for actual SIGWINCH definition" >&5
10918 $as_echo_n "checking for actual SIGWINCH definition... " >&6; }
10919 if ${cf_cv_fixup_sigwinch+:} false; then :
10920 $as_echo_n "(cached) " >&6
10921 else
10922
10923 cf_cv_fixup_sigwinch=unknown
10924 cf_sigwinch=32
10925 while test $cf_sigwinch != 1
10926 do
10927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10928 /* end confdefs.h. */
10929
10930 #undef _XOPEN_SOURCE
10931 #undef _POSIX_SOURCE
10932 #undef _POSIX_C_SOURCE
10933 #include <sys/types.h>
10934 #include <sys/signal.h>
10935
10936 int
10937 main ()
10938 {
10939
10940 #if SIGWINCH != $cf_sigwinch
10941 make an error
10942 #endif
10943 int x = SIGWINCH
10944 ;
10945 return 0;
10946 }
10947 _ACEOF
10948 if ac_fn_c_try_compile "$LINENO"; then :
10949 cf_cv_fixup_sigwinch=$cf_sigwinch
10950 break
10951 fi
10952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10953
10954 cf_sigwinch=`expr $cf_sigwinch - 1`
10955 done
10956
10957 fi
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_fixup_sigwinch" >&5
10959 $as_echo "$cf_cv_fixup_sigwinch" >&6; }
10960
10961 if test "$cf_cv_fixup_sigwinch" != unknown ; then
10962 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
10963 fi
10964 fi
10965
10966
10967 ac_config_files="$ac_config_files Makefile man/Makefile"
10968
10969
10970 cat >confcache <<\_ACEOF
10971 # This file is a shell script that caches the results of configure
10972 # tests run on this system so they can be shared between configure
10973 # scripts and configure runs, see configure's option --config-cache.
10974 # It is not useful on other systems. If it contains results you don't
10975 # want to keep, you may remove or edit it.
10976 #
10977 # config.status only pays attention to the cache file if you give it
10978 # the --recheck option to rerun configure.
10979 #
10980 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10981 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10982 # following values.
10983
10984 _ACEOF
10985
10986 # The following way of writing the cache mishandles newlines in values,
10987 # but we know of no workaround that is simple, portable, and efficient.
10988 # So, we kill variables containing newlines.
10989 # Ultrix sh set writes to stderr and can't be redirected directly,
10990 # and sets the high bit in the cache file unless we assign to the vars.
10991 (
10992 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10993 eval ac_val=\$$ac_var
10994 case $ac_val in #(
10995 *${as_nl}*)
10996 case $ac_var in #(
10997 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10998 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10999 esac
11000 case $ac_var in #(
11001 _ | IFS | as_nl) ;; #(
11002 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11003 *) { eval $ac_var=; unset $ac_var;} ;;
11004 esac ;;
11005 esac
11006 done
11007
11008 (set) 2>&1 |
11009 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11010 *${as_nl}ac_space=\ *)
11011 # `set' does not quote correctly, so add quotes: double-quote
11012 # substitution turns \\\\ into \\, and sed turns \\ into \.
11013 sed -n \
11014 "s/'/'\\\\''/g;
11015 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11016 ;; #(
11017 *)
11018 # `set' quotes correctly as required by POSIX, so do not add quotes.
11019 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11020 ;;
11021 esac |
11022 sort
11023 ) |
11024 sed '
11025 /^ac_cv_env_/b end
11026 t clear
11027 :clear
11028 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11029 t end
11030 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11031 :end' >>confcache
11032 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11033 if test -w "$cache_file"; then
11034 if test "x$cache_file" != "x/dev/null"; then
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11036 $as_echo "$as_me: updating cache $cache_file" >&6;}
11037 if test ! -f "$cache_file" || test -h "$cache_file"; then
11038 cat confcache >"$cache_file"
11039 else
11040 case $cache_file in #(
11041 */* | ?:*)
11042 mv -f confcache "$cache_file"$$ &&
11043 mv -f "$cache_file"$$ "$cache_file" ;; #(
11044 *)
11045 mv -f confcache "$cache_file" ;;
11046 esac
11047 fi
11048 fi
11049 else
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11051 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11052 fi
11053 fi
11054 rm -f confcache
11055
11056 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11057 # Let make expand exec_prefix.
11058 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11059
11060 DEFS=-DHAVE_CONFIG_H
11061
11062 ac_libobjs=
11063 ac_ltlibobjs=
11064 U=
11065 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11066 # 1. Remove the extension, and $U if already installed.
11067 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11068 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11069 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11070 # will be set to the directory where LIBOBJS objects are built.
11071 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11072 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11073 done
11074 LIBOBJS=$ac_libobjs
11075
11076 LTLIBOBJS=$ac_ltlibobjs
11077
11078
11079 if test -n "$EXEEXT"; then
11080 am__EXEEXT_TRUE=
11081 am__EXEEXT_FALSE='#'
11082 else
11083 am__EXEEXT_TRUE='#'
11084 am__EXEEXT_FALSE=
11085 fi
11086
11087 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11088 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11090 fi
11091 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11092 as_fn_error $? "conditional \"AMDEP\" was never defined.
11093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11094 fi
11095 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11096 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11098 fi
11099
11100 : "${CONFIG_STATUS=./config.status}"
11101 ac_write_fail=0
11102 ac_clean_files_save=$ac_clean_files
11103 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11105 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11106 as_write_fail=0
11107 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11108 #! $SHELL
11109 # Generated by $as_me.
11110 # Run this file to recreate the current configuration.
11111 # Compiler output produced by configure, useful for debugging
11112 # configure, is in config.log if it exists.
11113
11114 debug=false
11115 ac_cs_recheck=false
11116 ac_cs_silent=false
11117
11118 SHELL=\${CONFIG_SHELL-$SHELL}
11119 export SHELL
11120 _ASEOF
11121 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11122 ## -------------------- ##
11123 ## M4sh Initialization. ##
11124 ## -------------------- ##
11125
11126 # Be more Bourne compatible
11127 DUALCASE=1; export DUALCASE # for MKS sh
11128 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11129 emulate sh
11130 NULLCMD=:
11131 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11132 # is contrary to our usage. Disable this feature.
11133 alias -g '${1+"$@"}'='"$@"'
11134 setopt NO_GLOB_SUBST
11135 else
11136 case `(set -o) 2>/dev/null` in #(
11137 *posix*) :
11138 set -o posix ;; #(
11139 *) :
11140 ;;
11141 esac
11142 fi
11143
11144
11145 as_nl='
11146 '
11147 export as_nl
11148 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11149 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11150 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11151 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11152 # Prefer a ksh shell builtin over an external printf program on Solaris,
11153 # but without wasting forks for bash or zsh.
11154 if test -z "$BASH_VERSION$ZSH_VERSION" \
11155 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11156 as_echo='print -r --'
11157 as_echo_n='print -rn --'
11158 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11159 as_echo='printf %s\n'
11160 as_echo_n='printf %s'
11161 else
11162 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11163 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11164 as_echo_n='/usr/ucb/echo -n'
11165 else
11166 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11167 as_echo_n_body='eval
11168 arg=$1;
11169 case $arg in #(
11170 *"$as_nl"*)
11171 expr "X$arg" : "X\\(.*\\)$as_nl";
11172 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11173 esac;
11174 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11175 '
11176 export as_echo_n_body
11177 as_echo_n='sh -c $as_echo_n_body as_echo'
11178 fi
11179 export as_echo_body
11180 as_echo='sh -c $as_echo_body as_echo'
11181 fi
11182
11183 # The user is always right.
11184 if test "${PATH_SEPARATOR+set}" != set; then
11185 PATH_SEPARATOR=:
11186 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11187 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11188 PATH_SEPARATOR=';'
11189 }
11190 fi
11191
11192
11193 # IFS
11194 # We need space, tab and new line, in precisely that order. Quoting is
11195 # there to prevent editors from complaining about space-tab.
11196 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11197 # splitting by setting IFS to empty value.)
11198 IFS=" "" $as_nl"
11199
11200 # Find who we are. Look in the path if we contain no directory separator.
11201 as_myself=
11202 case $0 in #((
11203 *[\\/]* ) as_myself=$0 ;;
11204 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11205 for as_dir in $PATH
11206 do
11207 IFS=$as_save_IFS
11208 test -z "$as_dir" && as_dir=.
11209 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11210 done
11211 IFS=$as_save_IFS
11212
11213 ;;
11214 esac
11215 # We did not find ourselves, most probably we were run as `sh COMMAND'
11216 # in which case we are not to be found in the path.
11217 if test "x$as_myself" = x; then
11218 as_myself=$0
11219 fi
11220 if test ! -f "$as_myself"; then
11221 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11222 exit 1
11223 fi
11224
11225 # Unset variables that we do not need and which cause bugs (e.g. in
11226 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11227 # suppresses any "Segmentation fault" message there. '((' could
11228 # trigger a bug in pdksh 5.2.14.
11229 for as_var in BASH_ENV ENV MAIL MAILPATH
11230 do eval test x\${$as_var+set} = xset \
11231 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11232 done
11233 PS1='$ '
11234 PS2='> '
11235 PS4='+ '
11236
11237 # NLS nuisances.
11238 LC_ALL=C
11239 export LC_ALL
11240 LANGUAGE=C
11241 export LANGUAGE
11242
11243 # CDPATH.
11244 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11245
11246
11247 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11248 # ----------------------------------------
11249 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11250 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11251 # script with STATUS, using 1 if that was 0.
11252 as_fn_error ()
11253 {
11254 as_status=$1; test $as_status -eq 0 && as_status=1
11255 if test "$4"; then
11256 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11257 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11258 fi
11259 $as_echo "$as_me: error: $2" >&2
11260 as_fn_exit $as_status
11261 } # as_fn_error
11262
11263
11264 # as_fn_set_status STATUS
11265 # -----------------------
11266 # Set $? to STATUS, without forking.
11267 as_fn_set_status ()
11268 {
11269 return $1
11270 } # as_fn_set_status
11271
11272 # as_fn_exit STATUS
11273 # -----------------
11274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11275 as_fn_exit ()
11276 {
11277 set +e
11278 as_fn_set_status $1
11279 exit $1
11280 } # as_fn_exit
11281
11282 # as_fn_unset VAR
11283 # ---------------
11284 # Portably unset VAR.
11285 as_fn_unset ()
11286 {
11287 { eval $1=; unset $1;}
11288 }
11289 as_unset=as_fn_unset
11290 # as_fn_append VAR VALUE
11291 # ----------------------
11292 # Append the text in VALUE to the end of the definition contained in VAR. Take
11293 # advantage of any shell optimizations that allow amortized linear growth over
11294 # repeated appends, instead of the typical quadratic growth present in naive
11295 # implementations.
11296 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11297 eval 'as_fn_append ()
11298 {
11299 eval $1+=\$2
11300 }'
11301 else
11302 as_fn_append ()
11303 {
11304 eval $1=\$$1\$2
11305 }
11306 fi # as_fn_append
11307
11308 # as_fn_arith ARG...
11309 # ------------------
11310 # Perform arithmetic evaluation on the ARGs, and store the result in the
11311 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11312 # must be portable across $(()) and expr.
11313 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11314 eval 'as_fn_arith ()
11315 {
11316 as_val=$(( $* ))
11317 }'
11318 else
11319 as_fn_arith ()
11320 {
11321 as_val=`expr "$@" || test $? -eq 1`
11322 }
11323 fi # as_fn_arith
11324
11325
11326 if expr a : '\(a\)' >/dev/null 2>&1 &&
11327 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11328 as_expr=expr
11329 else
11330 as_expr=false
11331 fi
11332
11333 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11334 as_basename=basename
11335 else
11336 as_basename=false
11337 fi
11338
11339 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11340 as_dirname=dirname
11341 else
11342 as_dirname=false
11343 fi
11344
11345 as_me=`$as_basename -- "$0" ||
11346 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11347 X"$0" : 'X\(//\)$' \| \
11348 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11349 $as_echo X/"$0" |
11350 sed '/^.*\/\([^/][^/]*\)\/*$/{
11351 s//\1/
11352 q
11353 }
11354 /^X\/\(\/\/\)$/{
11355 s//\1/
11356 q
11357 }
11358 /^X\/\(\/\).*/{
11359 s//\1/
11360 q
11361 }
11362 s/.*/./; q'`
11363
11364 # Avoid depending upon Character Ranges.
11365 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11366 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11367 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11368 as_cr_digits='0123456789'
11369 as_cr_alnum=$as_cr_Letters$as_cr_digits
11370
11371 ECHO_C= ECHO_N= ECHO_T=
11372 case `echo -n x` in #(((((
11373 -n*)
11374 case `echo 'xy\c'` in
11375 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11376 xy) ECHO_C='\c';;
11377 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11378 ECHO_T=' ';;
11379 esac;;
11380 *)
11381 ECHO_N='-n';;
11382 esac
11383
11384 rm -f conf$$ conf$$.exe conf$$.file
11385 if test -d conf$$.dir; then
11386 rm -f conf$$.dir/conf$$.file
11387 else
11388 rm -f conf$$.dir
11389 mkdir conf$$.dir 2>/dev/null
11390 fi
11391 if (echo >conf$$.file) 2>/dev/null; then
11392 if ln -s conf$$.file conf$$ 2>/dev/null; then
11393 as_ln_s='ln -s'
11394 # ... but there are two gotchas:
11395 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11396 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11397 # In both cases, we have to default to `cp -p'.
11398 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11399 as_ln_s='cp -p'
11400 elif ln conf$$.file conf$$ 2>/dev/null; then
11401 as_ln_s=ln
11402 else
11403 as_ln_s='cp -p'
11404 fi
11405 else
11406 as_ln_s='cp -p'
11407 fi
11408 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11409 rmdir conf$$.dir 2>/dev/null
11410
11411
11412 # as_fn_mkdir_p
11413 # -------------
11414 # Create "$as_dir" as a directory, including parents if necessary.
11415 as_fn_mkdir_p ()
11416 {
11417
11418 case $as_dir in #(
11419 -*) as_dir=./$as_dir;;
11420 esac
11421 test -d "$as_dir" || eval $as_mkdir_p || {
11422 as_dirs=
11423 while :; do
11424 case $as_dir in #(
11425 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11426 *) as_qdir=$as_dir;;
11427 esac
11428 as_dirs="'$as_qdir' $as_dirs"
11429 as_dir=`$as_dirname -- "$as_dir" ||
11430 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11431 X"$as_dir" : 'X\(//\)[^/]' \| \
11432 X"$as_dir" : 'X\(//\)$' \| \
11433 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11434 $as_echo X"$as_dir" |
11435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11436 s//\1/
11437 q
11438 }
11439 /^X\(\/\/\)[^/].*/{
11440 s//\1/
11441 q
11442 }
11443 /^X\(\/\/\)$/{
11444 s//\1/
11445 q
11446 }
11447 /^X\(\/\).*/{
11448 s//\1/
11449 q
11450 }
11451 s/.*/./; q'`
11452 test -d "$as_dir" && break
11453 done
11454 test -z "$as_dirs" || eval "mkdir $as_dirs"
11455 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11456
11457
11458 } # as_fn_mkdir_p
11459 if mkdir -p . 2>/dev/null; then
11460 as_mkdir_p='mkdir -p "$as_dir"'
11461 else
11462 test -d ./-p && rmdir ./-p
11463 as_mkdir_p=false
11464 fi
11465
11466 if test -x / >/dev/null 2>&1; then
11467 as_test_x='test -x'
11468 else
11469 if ls -dL / >/dev/null 2>&1; then
11470 as_ls_L_option=L
11471 else
11472 as_ls_L_option=
11473 fi
11474 as_test_x='
11475 eval sh -c '\''
11476 if test -d "$1"; then
11477 test -d "$1/.";
11478 else
11479 case $1 in #(
11480 -*)set "./$1";;
11481 esac;
11482 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11483 ???[sx]*):;;*)false;;esac;fi
11484 '\'' sh
11485 '
11486 fi
11487 as_executable_p=$as_test_x
11488
11489 # Sed expression to map a string onto a valid CPP name.
11490 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11491
11492 # Sed expression to map a string onto a valid variable name.
11493 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11494
11495
11496 exec 6>&1
11497 ## ----------------------------------- ##
11498 ## Main body of $CONFIG_STATUS script. ##
11499 ## ----------------------------------- ##
11500 _ASEOF
11501 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11502
11503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11504 # Save the log message, to keep $0 and so on meaningful, and to
11505 # report actual input values of CONFIG_FILES etc. instead of their
11506 # values after options handling.
11507 ac_log="
11508 This file was extended by luit $as_me 1.1.1, which was
11509 generated by GNU Autoconf 2.68. Invocation command line was
11510
11511 CONFIG_FILES = $CONFIG_FILES
11512 CONFIG_HEADERS = $CONFIG_HEADERS
11513 CONFIG_LINKS = $CONFIG_LINKS
11514 CONFIG_COMMANDS = $CONFIG_COMMANDS
11515 $ $0 $@
11516
11517 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11518 "
11519
11520 _ACEOF
11521
11522 case $ac_config_files in *"
11523 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11524 esac
11525
11526 case $ac_config_headers in *"
11527 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11528 esac
11529
11530
11531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11532 # Files that config.status was made for.
11533 config_files="$ac_config_files"
11534 config_headers="$ac_config_headers"
11535 config_commands="$ac_config_commands"
11536
11537 _ACEOF
11538
11539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11540 ac_cs_usage="\
11541 \`$as_me' instantiates files and other configuration actions
11542 from templates according to the current configuration. Unless the files
11543 and actions are specified as TAGs, all are instantiated by default.
11544
11545 Usage: $0 [OPTION]... [TAG]...
11546
11547 -h, --help print this help, then exit
11548 -V, --version print version number and configuration settings, then exit
11549 --config print configuration, then exit
11550 -q, --quiet, --silent
11551 do not print progress messages
11552 -d, --debug don't remove temporary files
11553 --recheck update $as_me by reconfiguring in the same conditions
11554 --file=FILE[:TEMPLATE]
11555 instantiate the configuration file FILE
11556 --header=FILE[:TEMPLATE]
11557 instantiate the configuration header FILE
11558
11559 Configuration files:
11560 $config_files
11561
11562 Configuration headers:
11563 $config_headers
11564
11565 Configuration commands:
11566 $config_commands
11567
11568 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11569
11570 _ACEOF
11571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11572 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11573 ac_cs_version="\\
11574 luit config.status 1.1.1
11575 configured by $0, generated by GNU Autoconf 2.68,
11576 with options \\"\$ac_cs_config\\"
11577
11578 Copyright (C) 2010 Free Software Foundation, Inc.
11579 This config.status script is free software; the Free Software Foundation
11580 gives unlimited permission to copy, distribute and modify it."
11581
11582 ac_pwd='$ac_pwd'
11583 srcdir='$srcdir'
11584 INSTALL='$INSTALL'
11585 MKDIR_P='$MKDIR_P'
11586 AWK='$AWK'
11587 test -n "\$AWK" || AWK=awk
11588 _ACEOF
11589
11590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11591 # The default lists apply if the user does not specify any file.
11592 ac_need_defaults=:
11593 while test $# != 0
11594 do
11595 case $1 in
11596 --*=?*)
11597 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11598 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11599 ac_shift=:
11600 ;;
11601 --*=)
11602 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11603 ac_optarg=
11604 ac_shift=:
11605 ;;
11606 *)
11607 ac_option=$1
11608 ac_optarg=$2
11609 ac_shift=shift
11610 ;;
11611 esac
11612
11613 case $ac_option in
11614 # Handling of the options.
11615 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11616 ac_cs_recheck=: ;;
11617 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11618 $as_echo "$ac_cs_version"; exit ;;
11619 --config | --confi | --conf | --con | --co | --c )
11620 $as_echo "$ac_cs_config"; exit ;;
11621 --debug | --debu | --deb | --de | --d | -d )
11622 debug=: ;;
11623 --file | --fil | --fi | --f )
11624 $ac_shift
11625 case $ac_optarg in
11626 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11627 '') as_fn_error $? "missing file argument" ;;
11628 esac
11629 as_fn_append CONFIG_FILES " '$ac_optarg'"
11630 ac_need_defaults=false;;
11631 --header | --heade | --head | --hea )
11632 $ac_shift
11633 case $ac_optarg in
11634 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11635 esac
11636 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11637 ac_need_defaults=false;;
11638 --he | --h)
11639 # Conflict between --help and --header
11640 as_fn_error $? "ambiguous option: \`$1'
11641 Try \`$0 --help' for more information.";;
11642 --help | --hel | -h )
11643 $as_echo "$ac_cs_usage"; exit ;;
11644 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11645 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11646 ac_cs_silent=: ;;
11647
11648 # This is an error.
11649 -*) as_fn_error $? "unrecognized option: \`$1'
11650 Try \`$0 --help' for more information." ;;
11651
11652 *) as_fn_append ac_config_targets " $1"
11653 ac_need_defaults=false ;;
11654
11655 esac
11656 shift
11657 done
11658
11659 ac_configure_extra_args=
11660
11661 if $ac_cs_silent; then
11662 exec 6>/dev/null
11663 ac_configure_extra_args="$ac_configure_extra_args --silent"
11664 fi
11665
11666 _ACEOF
11667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11668 if \$ac_cs_recheck; then
11669 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11670 shift
11671 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11672 CONFIG_SHELL='$SHELL'
11673 export CONFIG_SHELL
11674 exec "\$@"
11675 fi
11676
11677 _ACEOF
11678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11679 exec 5>>config.log
11680 {
11681 echo
11682 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11683 ## Running $as_me. ##
11684 _ASBOX
11685 $as_echo "$ac_log"
11686 } >&5
11687
11688 _ACEOF
11689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11690 #
11691 # INIT-COMMANDS
11692 #
11693 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11694
11695 _ACEOF
11696
11697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11698
11699 # Handling of arguments.
11700 for ac_config_target in $ac_config_targets
11701 do
11702 case $ac_config_target in
11703 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11704 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11705 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11706 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11707
11708 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11709 esac
11710 done
11711
11712
11713 # If the user did not use the arguments to specify the items to instantiate,
11714 # then the envvar interface is used. Set only those that are not.
11715 # We use the long form for the default assignment because of an extremely
11716 # bizarre bug on SunOS 4.1.3.
11717 if $ac_need_defaults; then
11718 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11719 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11720 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11721 fi
11722
11723 # Have a temporary directory for convenience. Make it in the build tree
11724 # simply because there is no reason against having it here, and in addition,
11725 # creating and moving files from /tmp can sometimes cause problems.
11726 # Hook for its removal unless debugging.
11727 # Note that there is a small window in which the directory will not be cleaned:
11728 # after its creation but before its name has been assigned to `$tmp'.
11729 $debug ||
11730 {
11731 tmp= ac_tmp=
11732 trap 'exit_status=$?
11733 : "${ac_tmp:=$tmp}"
11734 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11735 ' 0
11736 trap 'as_fn_exit 1' 1 2 13 15
11737 }
11738 # Create a (secure) tmp directory for tmp files.
11739
11740 {
11741 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11742 test -d "$tmp"
11743 } ||
11744 {
11745 tmp=./conf$$-$RANDOM
11746 (umask 077 && mkdir "$tmp")
11747 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11748 ac_tmp=$tmp
11749
11750 # Set up the scripts for CONFIG_FILES section.
11751 # No need to generate them if there are no CONFIG_FILES.
11752 # This happens for instance with `./config.status config.h'.
11753 if test -n "$CONFIG_FILES"; then
11754
11755
11756 ac_cr=`echo X | tr X '\015'`
11757 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11758 # But we know of no other shell where ac_cr would be empty at this
11759 # point, so we can use a bashism as a fallback.
11760 if test "x$ac_cr" = x; then
11761 eval ac_cr=\$\'\\r\'
11762 fi
11763 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11764 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11765 ac_cs_awk_cr='\\r'
11766 else
11767 ac_cs_awk_cr=$ac_cr
11768 fi
11769
11770 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11771 _ACEOF
11772
11773
11774 {
11775 echo "cat >conf$$subs.awk <<_ACEOF" &&
11776 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11777 echo "_ACEOF"
11778 } >conf$$subs.sh ||
11779 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11780 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11781 ac_delim='%!_!# '
11782 for ac_last_try in false false false false false :; do
11783 . ./conf$$subs.sh ||
11784 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11785
11786 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11787 if test $ac_delim_n = $ac_delim_num; then
11788 break
11789 elif $ac_last_try; then
11790 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11791 else
11792 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11793 fi
11794 done
11795 rm -f conf$$subs.sh
11796
11797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11798 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11799 _ACEOF
11800 sed -n '
11801 h
11802 s/^/S["/; s/!.*/"]=/
11803 p
11804 g
11805 s/^[^!]*!//
11806 :repl
11807 t repl
11808 s/'"$ac_delim"'$//
11809 t delim
11810 :nl
11811 h
11812 s/\(.\{148\}\)..*/\1/
11813 t more1
11814 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11815 p
11816 n
11817 b repl
11818 :more1
11819 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11820 p
11821 g
11822 s/.\{148\}//
11823 t nl
11824 :delim
11825 h
11826 s/\(.\{148\}\)..*/\1/
11827 t more2
11828 s/["\\]/\\&/g; s/^/"/; s/$/"/
11829 p
11830 b
11831 :more2
11832 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11833 p
11834 g
11835 s/.\{148\}//
11836 t delim
11837 ' <conf$$subs.awk | sed '
11838 /^[^""]/{
11839 N
11840 s/\n//
11841 }
11842 ' >>$CONFIG_STATUS || ac_write_fail=1
11843 rm -f conf$$subs.awk
11844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11845 _ACAWK
11846 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11847 for (key in S) S_is_set[key] = 1
11848 FS = ""
11849
11850 }
11851 {
11852 line = $ 0
11853 nfields = split(line, field, "@")
11854 substed = 0
11855 len = length(field[1])
11856 for (i = 2; i < nfields; i++) {
11857 key = field[i]
11858 keylen = length(key)
11859 if (S_is_set[key]) {
11860 value = S[key]
11861 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11862 len += length(value) + length(field[++i])
11863 substed = 1
11864 } else
11865 len += 1 + keylen
11866 }
11867
11868 print line
11869 }
11870
11871 _ACAWK
11872 _ACEOF
11873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11874 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11875 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11876 else
11877 cat
11878 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11879 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11880 _ACEOF
11881
11882 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11883 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11884 # trailing colons and then remove the whole line if VPATH becomes empty
11885 # (actually we leave an empty line to preserve line numbers).
11886 if test "x$srcdir" = x.; then
11887 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11888 h
11889 s///
11890 s/^/:/
11891 s/[ ]*$/:/
11892 s/:\$(srcdir):/:/g
11893 s/:\${srcdir}:/:/g
11894 s/:@srcdir@:/:/g
11895 s/^:*//
11896 s/:*$//
11897 x
11898 s/\(=[ ]*\).*/\1/
11899 G
11900 s/\n//
11901 s/^[^=]*=[ ]*$//
11902 }'
11903 fi
11904
11905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11906 fi # test -n "$CONFIG_FILES"
11907
11908 # Set up the scripts for CONFIG_HEADERS section.
11909 # No need to generate them if there are no CONFIG_HEADERS.
11910 # This happens for instance with `./config.status Makefile'.
11911 if test -n "$CONFIG_HEADERS"; then
11912 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11913 BEGIN {
11914 _ACEOF
11915
11916 # Transform confdefs.h into an awk script `defines.awk', embedded as
11917 # here-document in config.status, that substitutes the proper values into
11918 # config.h.in to produce config.h.
11919
11920 # Create a delimiter string that does not exist in confdefs.h, to ease
11921 # handling of long lines.
11922 ac_delim='%!_!# '
11923 for ac_last_try in false false :; do
11924 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11925 if test -z "$ac_tt"; then
11926 break
11927 elif $ac_last_try; then
11928 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11929 else
11930 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11931 fi
11932 done
11933
11934 # For the awk script, D is an array of macro values keyed by name,
11935 # likewise P contains macro parameters if any. Preserve backslash
11936 # newline sequences.
11937
11938 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11939 sed -n '
11940 s/.\{148\}/&'"$ac_delim"'/g
11941 t rset
11942 :rset
11943 s/^[ ]*#[ ]*define[ ][ ]*/ /
11944 t def
11945 d
11946 :def
11947 s/\\$//
11948 t bsnl
11949 s/["\\]/\\&/g
11950 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11951 D["\1"]=" \3"/p
11952 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11953 d
11954 :bsnl
11955 s/["\\]/\\&/g
11956 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11957 D["\1"]=" \3\\\\\\n"\\/p
11958 t cont
11959 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11960 t cont
11961 d
11962 :cont
11963 n
11964 s/.\{148\}/&'"$ac_delim"'/g
11965 t clear
11966 :clear
11967 s/\\$//
11968 t bsnlc
11969 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11970 d
11971 :bsnlc
11972 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11973 b cont
11974 ' <confdefs.h | sed '
11975 s/'"$ac_delim"'/"\\\
11976 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11977
11978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11979 for (key in D) D_is_set[key] = 1
11980 FS = ""
11981 }
11982 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11983 line = \$ 0
11984 split(line, arg, " ")
11985 if (arg[1] == "#") {
11986 defundef = arg[2]
11987 mac1 = arg[3]
11988 } else {
11989 defundef = substr(arg[1], 2)
11990 mac1 = arg[2]
11991 }
11992 split(mac1, mac2, "(") #)
11993 macro = mac2[1]
11994 prefix = substr(line, 1, index(line, defundef) - 1)
11995 if (D_is_set[macro]) {
11996 # Preserve the white space surrounding the "#".
11997 print prefix "define", macro P[macro] D[macro]
11998 next
11999 } else {
12000 # Replace #undef with comments. This is necessary, for example,
12001 # in the case of _POSIX_SOURCE, which is predefined and required
12002 # on some systems where configure will not decide to define it.
12003 if (defundef == "undef") {
12004 print "/*", prefix defundef, macro, "*/"
12005 next
12006 }
12007 }
12008 }
12009 { print }
12010 _ACAWK
12011 _ACEOF
12012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12013 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12014 fi # test -n "$CONFIG_HEADERS"
12015
12016
12017 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12018 shift
12019 for ac_tag
12020 do
12021 case $ac_tag in
12022 :[FHLC]) ac_mode=$ac_tag; continue;;
12023 esac
12024 case $ac_mode$ac_tag in
12025 :[FHL]*:*);;
12026 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12027 :[FH]-) ac_tag=-:-;;
12028 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12029 esac
12030 ac_save_IFS=$IFS
12031 IFS=:
12032 set x $ac_tag
12033 IFS=$ac_save_IFS
12034 shift
12035 ac_file=$1
12036 shift
12037
12038 case $ac_mode in
12039 :L) ac_source=$1;;
12040 :[FH])
12041 ac_file_inputs=
12042 for ac_f
12043 do
12044 case $ac_f in
12045 -) ac_f="$ac_tmp/stdin";;
12046 *) # Look for the file first in the build tree, then in the source tree
12047 # (if the path is not absolute). The absolute path cannot be DOS-style,
12048 # because $ac_f cannot contain `:'.
12049 test -f "$ac_f" ||
12050 case $ac_f in
12051 [\\/$]*) false;;
12052 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12053 esac ||
12054 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12055 esac
12056 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12057 as_fn_append ac_file_inputs " '$ac_f'"
12058 done
12059
12060 # Let's still pretend it is `configure' which instantiates (i.e., don't
12061 # use $as_me), people would be surprised to read:
12062 # /* config.h. Generated by config.status. */
12063 configure_input='Generated from '`
12064 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12065 `' by configure.'
12066 if test x"$ac_file" != x-; then
12067 configure_input="$ac_file. $configure_input"
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12069 $as_echo "$as_me: creating $ac_file" >&6;}
12070 fi
12071 # Neutralize special characters interpreted by sed in replacement strings.
12072 case $configure_input in #(
12073 *\&* | *\|* | *\\* )
12074 ac_sed_conf_input=`$as_echo "$configure_input" |
12075 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12076 *) ac_sed_conf_input=$configure_input;;
12077 esac
12078
12079 case $ac_tag in
12080 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12081 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12082 esac
12083 ;;
12084 esac
12085
12086 ac_dir=`$as_dirname -- "$ac_file" ||
12087 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12088 X"$ac_file" : 'X\(//\)[^/]' \| \
12089 X"$ac_file" : 'X\(//\)$' \| \
12090 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12091 $as_echo X"$ac_file" |
12092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12093 s//\1/
12094 q
12095 }
12096 /^X\(\/\/\)[^/].*/{
12097 s//\1/
12098 q
12099 }
12100 /^X\(\/\/\)$/{
12101 s//\1/
12102 q
12103 }
12104 /^X\(\/\).*/{
12105 s//\1/
12106 q
12107 }
12108 s/.*/./; q'`
12109 as_dir="$ac_dir"; as_fn_mkdir_p
12110 ac_builddir=.
12111
12112 case "$ac_dir" in
12113 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12114 *)
12115 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12116 # A ".." for each directory in $ac_dir_suffix.
12117 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12118 case $ac_top_builddir_sub in
12119 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12120 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12121 esac ;;
12122 esac
12123 ac_abs_top_builddir=$ac_pwd
12124 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12125 # for backward compatibility:
12126 ac_top_builddir=$ac_top_build_prefix
12127
12128 case $srcdir in
12129 .) # We are building in place.
12130 ac_srcdir=.
12131 ac_top_srcdir=$ac_top_builddir_sub
12132 ac_abs_top_srcdir=$ac_pwd ;;
12133 [\\/]* | ?:[\\/]* ) # Absolute name.
12134 ac_srcdir=$srcdir$ac_dir_suffix;
12135 ac_top_srcdir=$srcdir
12136 ac_abs_top_srcdir=$srcdir ;;
12137 *) # Relative name.
12138 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12139 ac_top_srcdir=$ac_top_build_prefix$srcdir
12140 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12141 esac
12142 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12143
12144
12145 case $ac_mode in
12146 :F)
12147 #
12148 # CONFIG_FILE
12149 #
12150
12151 case $INSTALL in
12152 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12153 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12154 esac
12155 ac_MKDIR_P=$MKDIR_P
12156 case $MKDIR_P in
12157 [\\/$]* | ?:[\\/]* ) ;;
12158 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12159 esac
12160 _ACEOF
12161
12162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12163 # If the template does not know about datarootdir, expand it.
12164 # FIXME: This hack should be removed a few years after 2.60.
12165 ac_datarootdir_hack=; ac_datarootdir_seen=
12166 ac_sed_dataroot='
12167 /datarootdir/ {
12168 p
12169 q
12170 }
12171 /@datadir@/p
12172 /@docdir@/p
12173 /@infodir@/p
12174 /@localedir@/p
12175 /@mandir@/p'
12176 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12177 *datarootdir*) ac_datarootdir_seen=yes;;
12178 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12180 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12181 _ACEOF
12182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12183 ac_datarootdir_hack='
12184 s&@datadir@&$datadir&g
12185 s&@docdir@&$docdir&g
12186 s&@infodir@&$infodir&g
12187 s&@localedir@&$localedir&g
12188 s&@mandir@&$mandir&g
12189 s&\\\${datarootdir}&$datarootdir&g' ;;
12190 esac
12191 _ACEOF
12192
12193 # Neutralize VPATH when `$srcdir' = `.'.
12194 # Shell code in configure.ac might set extrasub.
12195 # FIXME: do we really want to maintain this feature?
12196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12197 ac_sed_extra="$ac_vpsub
12198 $extrasub
12199 _ACEOF
12200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12201 :t
12202 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12203 s|@configure_input@|$ac_sed_conf_input|;t t
12204 s&@top_builddir@&$ac_top_builddir_sub&;t t
12205 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12206 s&@srcdir@&$ac_srcdir&;t t
12207 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12208 s&@top_srcdir@&$ac_top_srcdir&;t t
12209 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12210 s&@builddir@&$ac_builddir&;t t
12211 s&@abs_builddir@&$ac_abs_builddir&;t t
12212 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12213 s&@INSTALL@&$ac_INSTALL&;t t
12214 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12215 $ac_datarootdir_hack
12216 "
12217 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12218 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12219
12220 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12221 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12222 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12223 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12225 which seems to be undefined. Please make sure it is defined" >&5
12226 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12227 which seems to be undefined. Please make sure it is defined" >&2;}
12228
12229 rm -f "$ac_tmp/stdin"
12230 case $ac_file in
12231 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12232 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12233 esac \
12234 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12235 ;;
12236 :H)
12237 #
12238 # CONFIG_HEADER
12239 #
12240 if test x"$ac_file" != x-; then
12241 {
12242 $as_echo "/* $configure_input */" \
12243 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12244 } >"$ac_tmp/config.h" \
12245 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12246 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12248 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12249 else
12250 rm -f "$ac_file"
12251 mv "$ac_tmp/config.h" "$ac_file" \
12252 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12253 fi
12254 else
12255 $as_echo "/* $configure_input */" \
12256 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12257 || as_fn_error $? "could not create -" "$LINENO" 5
12258 fi
12259 # Compute "$ac_file"'s index in $config_headers.
12260 _am_arg="$ac_file"
12261 _am_stamp_count=1
12262 for _am_header in $config_headers :; do
12263 case $_am_header in
12264 $_am_arg | $_am_arg:* )
12265 break ;;
12266 * )
12267 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12268 esac
12269 done
12270 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12271 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12272 X"$_am_arg" : 'X\(//\)[^/]' \| \
12273 X"$_am_arg" : 'X\(//\)$' \| \
12274 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12275 $as_echo X"$_am_arg" |
12276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12277 s//\1/
12278 q
12279 }
12280 /^X\(\/\/\)[^/].*/{
12281 s//\1/
12282 q
12283 }
12284 /^X\(\/\/\)$/{
12285 s//\1/
12286 q
12287 }
12288 /^X\(\/\).*/{
12289 s//\1/
12290 q
12291 }
12292 s/.*/./; q'`/stamp-h$_am_stamp_count
12293 ;;
12294
12295 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12296 $as_echo "$as_me: executing $ac_file commands" >&6;}
12297 ;;
12298 esac
12299
12300
12301 case $ac_file$ac_mode in
12302 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12303 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12304 # are listed without --file. Let's play safe and only enable the eval
12305 # if we detect the quoting.
12306 case $CONFIG_FILES in
12307 *\'*) eval set x "$CONFIG_FILES" ;;
12308 *) set x $CONFIG_FILES ;;
12309 esac
12310 shift
12311 for mf
12312 do
12313 # Strip MF so we end up with the name of the file.
12314 mf=`echo "$mf" | sed -e 's/:.*$//'`
12315 # Check whether this is an Automake generated Makefile or not.
12316 # We used to match only the files named `Makefile.in', but
12317 # some people rename them; so instead we look at the file content.
12318 # Grep'ing the first line is not enough: some people post-process
12319 # each Makefile.in and add a new line on top of each file to say so.
12320 # Grep'ing the whole file is not good either: AIX grep has a line
12321 # limit of 2048, but all sed's we know have understand at least 4000.
12322 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12323 dirpart=`$as_dirname -- "$mf" ||
12324 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12325 X"$mf" : 'X\(//\)[^/]' \| \
12326 X"$mf" : 'X\(//\)$' \| \
12327 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12328 $as_echo X"$mf" |
12329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12330 s//\1/
12331 q
12332 }
12333 /^X\(\/\/\)[^/].*/{
12334 s//\1/
12335 q
12336 }
12337 /^X\(\/\/\)$/{
12338 s//\1/
12339 q
12340 }
12341 /^X\(\/\).*/{
12342 s//\1/
12343 q
12344 }
12345 s/.*/./; q'`
12346 else
12347 continue
12348 fi
12349 # Extract the definition of DEPDIR, am__include, and am__quote
12350 # from the Makefile without running `make'.
12351 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12352 test -z "$DEPDIR" && continue
12353 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12354 test -z "am__include" && continue
12355 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12356 # When using ansi2knr, U may be empty or an underscore; expand it
12357 U=`sed -n 's/^U = //p' < "$mf"`
12358 # Find all dependency output files, they are included files with
12359 # $(DEPDIR) in their names. We invoke sed twice because it is the
12360 # simplest approach to changing $(DEPDIR) to its actual value in the
12361 # expansion.
12362 for file in `sed -n "
12363 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12364 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12365 # Make sure the directory exists.
12366 test -f "$dirpart/$file" && continue
12367 fdir=`$as_dirname -- "$file" ||
12368 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12369 X"$file" : 'X\(//\)[^/]' \| \
12370 X"$file" : 'X\(//\)$' \| \
12371 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12372 $as_echo X"$file" |
12373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12374 s//\1/
12375 q
12376 }
12377 /^X\(\/\/\)[^/].*/{
12378 s//\1/
12379 q
12380 }
12381 /^X\(\/\/\)$/{
12382 s//\1/
12383 q
12384 }
12385 /^X\(\/\).*/{
12386 s//\1/
12387 q
12388 }
12389 s/.*/./; q'`
12390 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12391 # echo "creating $dirpart/$file"
12392 echo '# dummy' > "$dirpart/$file"
12393 done
12394 done
12395 }
12396 ;;
12397
12398 esac
12399 done # for ac_tag
12400
12401
12402 as_fn_exit 0
12403 _ACEOF
12404 ac_clean_files=$ac_clean_files_save
12405
12406 test $ac_write_fail = 0 ||
12407 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12408
12409
12410 # configure is writing to config.log, and then calls config.status.
12411 # config.status does its own redirection, appending to config.log.
12412 # Unfortunately, on DOS this fails, as config.log is still kept open
12413 # by configure, so config.status won't be able to write to it; its
12414 # output is simply discarded. So we exec the FD to /dev/null,
12415 # effectively closing config.log, so it can be properly (re)opened and
12416 # appended to by config.status. When coming back to configure, we
12417 # need to make the FD available again.
12418 if test "$no_create" != yes; then
12419 ac_cs_success=:
12420 ac_config_status_args=
12421 test "$silent" = yes &&
12422 ac_config_status_args="$ac_config_status_args --quiet"
12423 exec 5>/dev/null
12424 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12425 exec 5>>config.log
12426 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12427 # would make configure fail if this is the last instruction.
12428 $ac_cs_success || as_fn_exit 1
12429 fi
12430 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12432 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12433 fi
12434
12435