configure revision 1.1.1.3 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xsm 1.0.3.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
182 fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203 fi
204 fi
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
242 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243 $0: about your system, including any error possibly output
244 $0: before this message. Then install a modern shell, or
245 $0: manually run the script under such a shell if you do
246 $0: have one."
247 fi
248 exit 1
249 fi
250 fi
251 fi
252 SHELL=${CONFIG_SHELL-/bin/sh}
253 export SHELL
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
257
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
261 # as_fn_unset VAR
262 # ---------------
263 # Portably unset VAR.
264 as_fn_unset ()
265 {
266 { eval $1=; unset $1;}
267 }
268 as_unset=as_fn_unset
269
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
273 as_fn_set_status ()
274 {
275 return $1
276 } # as_fn_set_status
277
278 # as_fn_exit STATUS
279 # -----------------
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 as_fn_exit ()
282 {
283 set +e
284 as_fn_set_status $1
285 exit $1
286 } # as_fn_exit
287
288 # as_fn_mkdir_p
289 # -------------
290 # Create "$as_dir" as a directory, including parents if necessary.
291 as_fn_mkdir_p ()
292 {
293
294 case $as_dir in #(
295 -*) as_dir=./$as_dir;;
296 esac
297 test -d "$as_dir" || eval $as_mkdir_p || {
298 as_dirs=
299 while :; do
300 case $as_dir in #(
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 *) as_qdir=$as_dir;;
303 esac
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)[^/].*/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\).*/{
324 s//\1/
325 q
326 }
327 s/.*/./; q'`
328 test -d "$as_dir" && break
329 done
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334 } # as_fn_mkdir_p
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
340 # implementations.
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
343 {
344 eval $1+=\$2
345 }'
346 else
347 as_fn_append ()
348 {
349 eval $1=\$$1\$2
350 }
351 fi # as_fn_append
352
353 # as_fn_arith ARG...
354 # ------------------
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 eval 'as_fn_arith ()
360 {
361 as_val=$(( $* ))
362 }'
363 else
364 as_fn_arith ()
365 {
366 as_val=`expr "$@" || test $? -eq 1`
367 }
368 fi # as_fn_arith
369
370
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
376 as_fn_error ()
377 {
378 as_status=$1; test $as_status -eq 0 && as_status=1
379 if test "$4"; then
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 fi
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
385 } # as_fn_error
386
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
389 as_expr=expr
390 else
391 as_expr=false
392 fi
393
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395 as_basename=basename
396 else
397 as_basename=false
398 fi
399
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401 as_dirname=dirname
402 else
403 as_dirname=false
404 fi
405
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 $as_echo X/"$0" |
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\/\)$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\).*/{
420 s//\1/
421 q
422 }
423 s/.*/./; q'`
424
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
462 }
463
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
466 -n*)
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 xy) ECHO_C='\c';;
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 ECHO_T=' ';;
472 esac;;
473 *)
474 ECHO_N='-n';;
475 esac
476
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
480 else
481 rm -f conf$$.dir
482 mkdir conf$$.dir 2>/dev/null
483 fi
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s='ln -s'
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 as_ln_s='cp -p'
493 elif ln conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s=ln
495 else
496 as_ln_s='cp -p'
497 fi
498 else
499 as_ln_s='cp -p'
500 fi
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
503
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
506 else
507 test -d ./-p && rmdir ./-p
508 as_mkdir_p=false
509 fi
510
511 if test -x / >/dev/null 2>&1; then
512 as_test_x='test -x'
513 else
514 if ls -dL / >/dev/null 2>&1; then
515 as_ls_L_option=L
516 else
517 as_ls_L_option=
518 fi
519 as_test_x='
520 eval sh -c '\''
521 if test -d "$1"; then
522 test -d "$1/.";
523 else
524 case $1 in #(
525 -*)set "./$1";;
526 esac;
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
529 '\'' sh
530 '
531 fi
532 as_executable_p=$as_test_x
533
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541 test -n "$DJDIR" || exec 7<&0 </dev/null
542 exec 6>&1
543
544 # Name of the host.
545 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546 # so uname gets run too.
547 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549 #
550 # Initializations.
551 #
552 ac_default_prefix=/usr/local
553 ac_clean_files=
554 ac_config_libobj_dir=.
555 LIBOBJS=
556 cross_compiling=no
557 subdirs=
558 MFLAGS=
559 MAKEFLAGS=
560
561 # Identity of this package.
562 PACKAGE_NAME='xsm'
563 PACKAGE_TARNAME='xsm'
564 PACKAGE_VERSION='1.0.3'
565 PACKAGE_STRING='xsm 1.0.3'
566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567 PACKAGE_URL=''
568
569 ac_unique_file="Makefile.am"
570 # Factoring default headers for most tests.
571 ac_includes_default="\
572 #include <stdio.h>
573 #ifdef HAVE_SYS_TYPES_H
574 # include <sys/types.h>
575 #endif
576 #ifdef HAVE_SYS_STAT_H
577 # include <sys/stat.h>
578 #endif
579 #ifdef STDC_HEADERS
580 # include <stdlib.h>
581 # include <stddef.h>
582 #else
583 # ifdef HAVE_STDLIB_H
584 # include <stdlib.h>
585 # endif
586 #endif
587 #ifdef HAVE_STRING_H
588 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 # include <memory.h>
590 # endif
591 # include <string.h>
592 #endif
593 #ifdef HAVE_STRINGS_H
594 # include <strings.h>
595 #endif
596 #ifdef HAVE_INTTYPES_H
597 # include <inttypes.h>
598 #endif
599 #ifdef HAVE_STDINT_H
600 # include <stdint.h>
601 #endif
602 #ifdef HAVE_UNISTD_H
603 # include <unistd.h>
604 #endif"
605
606 ac_subst_vars='am__EXEEXT_FALSE
607 am__EXEEXT_TRUE
608 LTLIBOBJS
609 LIBOBJS
610 appdefaultdir
611 XSM_LIBS
612 XSM_CFLAGS
613 RSH
614 AM_BACKSLASH
615 AM_DEFAULT_VERBOSITY
616 MAN_SUBSTS
617 XORG_MAN_PAGE
618 ADMIN_MAN_DIR
619 DRIVER_MAN_DIR
620 MISC_MAN_DIR
621 FILE_MAN_DIR
622 LIB_MAN_DIR
623 APP_MAN_DIR
624 ADMIN_MAN_SUFFIX
625 DRIVER_MAN_SUFFIX
626 MISC_MAN_SUFFIX
627 FILE_MAN_SUFFIX
628 LIB_MAN_SUFFIX
629 APP_MAN_SUFFIX
630 SED
631 host_os
632 host_vendor
633 host_cpu
634 host
635 build_os
636 build_vendor
637 build_cpu
638 build
639 INSTALL_CMD
640 PKG_CONFIG
641 CHANGELOG_CMD
642 STRICT_CFLAGS
643 CWARNFLAGS
644 BASE_CFLAGS
645 EGREP
646 GREP
647 CPP
648 am__fastdepCC_FALSE
649 am__fastdepCC_TRUE
650 CCDEPMODE
651 am__nodep
652 AMDEPBACKSLASH
653 AMDEP_FALSE
654 AMDEP_TRUE
655 am__quote
656 am__include
657 DEPDIR
658 OBJEXT
659 EXEEXT
660 ac_ct_CC
661 CPPFLAGS
662 LDFLAGS
663 CFLAGS
664 CC
665 MAINT
666 MAINTAINER_MODE_FALSE
667 MAINTAINER_MODE_TRUE
668 am__untar
669 am__tar
670 AMTAR
671 am__leading_dot
672 SET_MAKE
673 AWK
674 mkdir_p
675 MKDIR_P
676 INSTALL_STRIP_PROGRAM
677 STRIP
678 install_sh
679 MAKEINFO
680 AUTOHEADER
681 AUTOMAKE
682 AUTOCONF
683 ACLOCAL
684 VERSION
685 PACKAGE
686 CYGPATH_W
687 am__isrc
688 INSTALL_DATA
689 INSTALL_SCRIPT
690 INSTALL_PROGRAM
691 target_alias
692 host_alias
693 build_alias
694 LIBS
695 ECHO_T
696 ECHO_N
697 ECHO_C
698 DEFS
699 mandir
700 localedir
701 libdir
702 psdir
703 pdfdir
704 dvidir
705 htmldir
706 infodir
707 docdir
708 oldincludedir
709 includedir
710 localstatedir
711 sharedstatedir
712 sysconfdir
713 datadir
714 datarootdir
715 libexecdir
716 sbindir
717 bindir
718 program_transform_name
719 prefix
720 exec_prefix
721 PACKAGE_URL
722 PACKAGE_BUGREPORT
723 PACKAGE_STRING
724 PACKAGE_VERSION
725 PACKAGE_TARNAME
726 PACKAGE_NAME
727 PATH_SEPARATOR
728 SHELL'
729 ac_subst_files=''
730 ac_user_opts='
731 enable_option_checking
732 enable_maintainer_mode
733 enable_dependency_tracking
734 enable_selective_werror
735 enable_strict_compilation
736 enable_silent_rules
737 with_rsh
738 with_appdefaultdir
739 '
740 ac_precious_vars='build_alias
741 host_alias
742 target_alias
743 CC
744 CFLAGS
745 LDFLAGS
746 LIBS
747 CPPFLAGS
748 CPP
749 PKG_CONFIG
750 XSM_CFLAGS
751 XSM_LIBS'
752
753
754 # Initialize some variables set by options.
755 ac_init_help=
756 ac_init_version=false
757 ac_unrecognized_opts=
758 ac_unrecognized_sep=
759 # The variables have the same names as the options, with
760 # dashes changed to underlines.
761 cache_file=/dev/null
762 exec_prefix=NONE
763 no_create=
764 no_recursion=
765 prefix=NONE
766 program_prefix=NONE
767 program_suffix=NONE
768 program_transform_name=s,x,x,
769 silent=
770 site=
771 srcdir=
772 verbose=
773 x_includes=NONE
774 x_libraries=NONE
775
776 # Installation directory options.
777 # These are left unexpanded so users can "make install exec_prefix=/foo"
778 # and all the variables that are supposed to be based on exec_prefix
779 # by default will actually change.
780 # Use braces instead of parens because sh, perl, etc. also accept them.
781 # (The list follows the same order as the GNU Coding Standards.)
782 bindir='${exec_prefix}/bin'
783 sbindir='${exec_prefix}/sbin'
784 libexecdir='${exec_prefix}/libexec'
785 datarootdir='${prefix}/share'
786 datadir='${datarootdir}'
787 sysconfdir='${prefix}/etc'
788 sharedstatedir='${prefix}/com'
789 localstatedir='${prefix}/var'
790 includedir='${prefix}/include'
791 oldincludedir='/usr/include'
792 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
793 infodir='${datarootdir}/info'
794 htmldir='${docdir}'
795 dvidir='${docdir}'
796 pdfdir='${docdir}'
797 psdir='${docdir}'
798 libdir='${exec_prefix}/lib'
799 localedir='${datarootdir}/locale'
800 mandir='${datarootdir}/man'
801
802 ac_prev=
803 ac_dashdash=
804 for ac_option
805 do
806 # If the previous option needs an argument, assign it.
807 if test -n "$ac_prev"; then
808 eval $ac_prev=\$ac_option
809 ac_prev=
810 continue
811 fi
812
813 case $ac_option in
814 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
815 *=) ac_optarg= ;;
816 *) ac_optarg=yes ;;
817 esac
818
819 # Accept the important Cygnus configure options, so we can diagnose typos.
820
821 case $ac_dashdash$ac_option in
822 --)
823 ac_dashdash=yes ;;
824
825 -bindir | --bindir | --bindi | --bind | --bin | --bi)
826 ac_prev=bindir ;;
827 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
828 bindir=$ac_optarg ;;
829
830 -build | --build | --buil | --bui | --bu)
831 ac_prev=build_alias ;;
832 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
833 build_alias=$ac_optarg ;;
834
835 -cache-file | --cache-file | --cache-fil | --cache-fi \
836 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
837 ac_prev=cache_file ;;
838 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
839 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
840 cache_file=$ac_optarg ;;
841
842 --config-cache | -C)
843 cache_file=config.cache ;;
844
845 -datadir | --datadir | --datadi | --datad)
846 ac_prev=datadir ;;
847 -datadir=* | --datadir=* | --datadi=* | --datad=*)
848 datadir=$ac_optarg ;;
849
850 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
851 | --dataroo | --dataro | --datar)
852 ac_prev=datarootdir ;;
853 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
854 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
855 datarootdir=$ac_optarg ;;
856
857 -disable-* | --disable-*)
858 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
859 # Reject names that are not valid shell variable names.
860 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
861 as_fn_error $? "invalid feature name: $ac_useropt"
862 ac_useropt_orig=$ac_useropt
863 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
864 case $ac_user_opts in
865 *"
866 "enable_$ac_useropt"
867 "*) ;;
868 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
869 ac_unrecognized_sep=', ';;
870 esac
871 eval enable_$ac_useropt=no ;;
872
873 -docdir | --docdir | --docdi | --doc | --do)
874 ac_prev=docdir ;;
875 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
876 docdir=$ac_optarg ;;
877
878 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
879 ac_prev=dvidir ;;
880 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
881 dvidir=$ac_optarg ;;
882
883 -enable-* | --enable-*)
884 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
887 as_fn_error $? "invalid feature name: $ac_useropt"
888 ac_useropt_orig=$ac_useropt
889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
891 *"
892 "enable_$ac_useropt"
893 "*) ;;
894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
895 ac_unrecognized_sep=', ';;
896 esac
897 eval enable_$ac_useropt=\$ac_optarg ;;
898
899 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
900 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
901 | --exec | --exe | --ex)
902 ac_prev=exec_prefix ;;
903 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
904 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
905 | --exec=* | --exe=* | --ex=*)
906 exec_prefix=$ac_optarg ;;
907
908 -gas | --gas | --ga | --g)
909 # Obsolete; use --with-gas.
910 with_gas=yes ;;
911
912 -help | --help | --hel | --he | -h)
913 ac_init_help=long ;;
914 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
915 ac_init_help=recursive ;;
916 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
917 ac_init_help=short ;;
918
919 -host | --host | --hos | --ho)
920 ac_prev=host_alias ;;
921 -host=* | --host=* | --hos=* | --ho=*)
922 host_alias=$ac_optarg ;;
923
924 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
925 ac_prev=htmldir ;;
926 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
927 | --ht=*)
928 htmldir=$ac_optarg ;;
929
930 -includedir | --includedir | --includedi | --included | --include \
931 | --includ | --inclu | --incl | --inc)
932 ac_prev=includedir ;;
933 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
934 | --includ=* | --inclu=* | --incl=* | --inc=*)
935 includedir=$ac_optarg ;;
936
937 -infodir | --infodir | --infodi | --infod | --info | --inf)
938 ac_prev=infodir ;;
939 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
940 infodir=$ac_optarg ;;
941
942 -libdir | --libdir | --libdi | --libd)
943 ac_prev=libdir ;;
944 -libdir=* | --libdir=* | --libdi=* | --libd=*)
945 libdir=$ac_optarg ;;
946
947 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
948 | --libexe | --libex | --libe)
949 ac_prev=libexecdir ;;
950 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
951 | --libexe=* | --libex=* | --libe=*)
952 libexecdir=$ac_optarg ;;
953
954 -localedir | --localedir | --localedi | --localed | --locale)
955 ac_prev=localedir ;;
956 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
957 localedir=$ac_optarg ;;
958
959 -localstatedir | --localstatedir | --localstatedi | --localstated \
960 | --localstate | --localstat | --localsta | --localst | --locals)
961 ac_prev=localstatedir ;;
962 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
963 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
964 localstatedir=$ac_optarg ;;
965
966 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
967 ac_prev=mandir ;;
968 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
969 mandir=$ac_optarg ;;
970
971 -nfp | --nfp | --nf)
972 # Obsolete; use --without-fp.
973 with_fp=no ;;
974
975 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
976 | --no-cr | --no-c | -n)
977 no_create=yes ;;
978
979 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
980 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
981 no_recursion=yes ;;
982
983 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
984 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
985 | --oldin | --oldi | --old | --ol | --o)
986 ac_prev=oldincludedir ;;
987 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
988 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
989 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
990 oldincludedir=$ac_optarg ;;
991
992 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
993 ac_prev=prefix ;;
994 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
995 prefix=$ac_optarg ;;
996
997 -program-prefix | --program-prefix | --program-prefi | --program-pref \
998 | --program-pre | --program-pr | --program-p)
999 ac_prev=program_prefix ;;
1000 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1001 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1002 program_prefix=$ac_optarg ;;
1003
1004 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1005 | --program-suf | --program-su | --program-s)
1006 ac_prev=program_suffix ;;
1007 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1008 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1009 program_suffix=$ac_optarg ;;
1010
1011 -program-transform-name | --program-transform-name \
1012 | --program-transform-nam | --program-transform-na \
1013 | --program-transform-n | --program-transform- \
1014 | --program-transform | --program-transfor \
1015 | --program-transfo | --program-transf \
1016 | --program-trans | --program-tran \
1017 | --progr-tra | --program-tr | --program-t)
1018 ac_prev=program_transform_name ;;
1019 -program-transform-name=* | --program-transform-name=* \
1020 | --program-transform-nam=* | --program-transform-na=* \
1021 | --program-transform-n=* | --program-transform-=* \
1022 | --program-transform=* | --program-transfor=* \
1023 | --program-transfo=* | --program-transf=* \
1024 | --program-trans=* | --program-tran=* \
1025 | --progr-tra=* | --program-tr=* | --program-t=*)
1026 program_transform_name=$ac_optarg ;;
1027
1028 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1029 ac_prev=pdfdir ;;
1030 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1031 pdfdir=$ac_optarg ;;
1032
1033 -psdir | --psdir | --psdi | --psd | --ps)
1034 ac_prev=psdir ;;
1035 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1036 psdir=$ac_optarg ;;
1037
1038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1039 | -silent | --silent | --silen | --sile | --sil)
1040 silent=yes ;;
1041
1042 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1043 ac_prev=sbindir ;;
1044 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1045 | --sbi=* | --sb=*)
1046 sbindir=$ac_optarg ;;
1047
1048 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1049 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1050 | --sharedst | --shareds | --shared | --share | --shar \
1051 | --sha | --sh)
1052 ac_prev=sharedstatedir ;;
1053 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1054 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1055 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1056 | --sha=* | --sh=*)
1057 sharedstatedir=$ac_optarg ;;
1058
1059 -site | --site | --sit)
1060 ac_prev=site ;;
1061 -site=* | --site=* | --sit=*)
1062 site=$ac_optarg ;;
1063
1064 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1065 ac_prev=srcdir ;;
1066 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1067 srcdir=$ac_optarg ;;
1068
1069 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1070 | --syscon | --sysco | --sysc | --sys | --sy)
1071 ac_prev=sysconfdir ;;
1072 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1073 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1074 sysconfdir=$ac_optarg ;;
1075
1076 -target | --target | --targe | --targ | --tar | --ta | --t)
1077 ac_prev=target_alias ;;
1078 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1079 target_alias=$ac_optarg ;;
1080
1081 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1082 verbose=yes ;;
1083
1084 -version | --version | --versio | --versi | --vers | -V)
1085 ac_init_version=: ;;
1086
1087 -with-* | --with-*)
1088 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091 as_fn_error $? "invalid package name: $ac_useropt"
1092 ac_useropt_orig=$ac_useropt
1093 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1095 *"
1096 "with_$ac_useropt"
1097 "*) ;;
1098 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1099 ac_unrecognized_sep=', ';;
1100 esac
1101 eval with_$ac_useropt=\$ac_optarg ;;
1102
1103 -without-* | --without-*)
1104 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107 as_fn_error $? "invalid package name: $ac_useropt"
1108 ac_useropt_orig=$ac_useropt
1109 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1111 *"
1112 "with_$ac_useropt"
1113 "*) ;;
1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1115 ac_unrecognized_sep=', ';;
1116 esac
1117 eval with_$ac_useropt=no ;;
1118
1119 --x)
1120 # Obsolete; use --with-x.
1121 with_x=yes ;;
1122
1123 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1124 | --x-incl | --x-inc | --x-in | --x-i)
1125 ac_prev=x_includes ;;
1126 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1127 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1128 x_includes=$ac_optarg ;;
1129
1130 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1131 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1132 ac_prev=x_libraries ;;
1133 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1134 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1135 x_libraries=$ac_optarg ;;
1136
1137 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1138 Try \`$0 --help' for more information"
1139 ;;
1140
1141 *=*)
1142 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1143 # Reject names that are not valid shell variable names.
1144 case $ac_envvar in #(
1145 '' | [0-9]* | *[!_$as_cr_alnum]* )
1146 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1147 esac
1148 eval $ac_envvar=\$ac_optarg
1149 export $ac_envvar ;;
1150
1151 *)
1152 # FIXME: should be removed in autoconf 3.0.
1153 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1154 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1155 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1156 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1157 ;;
1158
1159 esac
1160 done
1161
1162 if test -n "$ac_prev"; then
1163 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1164 as_fn_error $? "missing argument to $ac_option"
1165 fi
1166
1167 if test -n "$ac_unrecognized_opts"; then
1168 case $enable_option_checking in
1169 no) ;;
1170 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1171 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1172 esac
1173 fi
1174
1175 # Check all directory arguments for consistency.
1176 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1177 datadir sysconfdir sharedstatedir localstatedir includedir \
1178 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1179 libdir localedir mandir
1180 do
1181 eval ac_val=\$$ac_var
1182 # Remove trailing slashes.
1183 case $ac_val in
1184 */ )
1185 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1186 eval $ac_var=\$ac_val;;
1187 esac
1188 # Be sure to have absolute directory names.
1189 case $ac_val in
1190 [\\/$]* | ?:[\\/]* ) continue;;
1191 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1192 esac
1193 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1194 done
1195
1196 # There might be people who depend on the old broken behavior: `$host'
1197 # used to hold the argument of --host etc.
1198 # FIXME: To remove some day.
1199 build=$build_alias
1200 host=$host_alias
1201 target=$target_alias
1202
1203 # FIXME: To remove some day.
1204 if test "x$host_alias" != x; then
1205 if test "x$build_alias" = x; then
1206 cross_compiling=maybe
1207 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1208 If a cross compiler is detected then cross compile mode will be used" >&2
1209 elif test "x$build_alias" != "x$host_alias"; then
1210 cross_compiling=yes
1211 fi
1212 fi
1213
1214 ac_tool_prefix=
1215 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1216
1217 test "$silent" = yes && exec 6>/dev/null
1218
1219
1220 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1221 ac_ls_di=`ls -di .` &&
1222 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1223 as_fn_error $? "working directory cannot be determined"
1224 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1225 as_fn_error $? "pwd does not report name of working directory"
1226
1227
1228 # Find the source files, if location was not specified.
1229 if test -z "$srcdir"; then
1230 ac_srcdir_defaulted=yes
1231 # Try the directory containing this script, then the parent directory.
1232 ac_confdir=`$as_dirname -- "$as_myself" ||
1233 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1234 X"$as_myself" : 'X\(//\)[^/]' \| \
1235 X"$as_myself" : 'X\(//\)$' \| \
1236 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1237 $as_echo X"$as_myself" |
1238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1239 s//\1/
1240 q
1241 }
1242 /^X\(\/\/\)[^/].*/{
1243 s//\1/
1244 q
1245 }
1246 /^X\(\/\/\)$/{
1247 s//\1/
1248 q
1249 }
1250 /^X\(\/\).*/{
1251 s//\1/
1252 q
1253 }
1254 s/.*/./; q'`
1255 srcdir=$ac_confdir
1256 if test ! -r "$srcdir/$ac_unique_file"; then
1257 srcdir=..
1258 fi
1259 else
1260 ac_srcdir_defaulted=no
1261 fi
1262 if test ! -r "$srcdir/$ac_unique_file"; then
1263 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1264 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1265 fi
1266 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1267 ac_abs_confdir=`(
1268 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1269 pwd)`
1270 # When building in place, set srcdir=.
1271 if test "$ac_abs_confdir" = "$ac_pwd"; then
1272 srcdir=.
1273 fi
1274 # Remove unnecessary trailing slashes from srcdir.
1275 # Double slashes in file names in object file debugging info
1276 # mess up M-x gdb in Emacs.
1277 case $srcdir in
1278 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1279 esac
1280 for ac_var in $ac_precious_vars; do
1281 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1282 eval ac_env_${ac_var}_value=\$${ac_var}
1283 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1284 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1285 done
1286
1287 #
1288 # Report the --help message.
1289 #
1290 if test "$ac_init_help" = "long"; then
1291 # Omit some internal or obsolete options to make the list less imposing.
1292 # This message is too long to be a string in the A/UX 3.1 sh.
1293 cat <<_ACEOF
1294 \`configure' configures xsm 1.0.3 to adapt to many kinds of systems.
1295
1296 Usage: $0 [OPTION]... [VAR=VALUE]...
1297
1298 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1299 VAR=VALUE. See below for descriptions of some of the useful variables.
1300
1301 Defaults for the options are specified in brackets.
1302
1303 Configuration:
1304 -h, --help display this help and exit
1305 --help=short display options specific to this package
1306 --help=recursive display the short help of all the included packages
1307 -V, --version display version information and exit
1308 -q, --quiet, --silent do not print \`checking ...' messages
1309 --cache-file=FILE cache test results in FILE [disabled]
1310 -C, --config-cache alias for \`--cache-file=config.cache'
1311 -n, --no-create do not create output files
1312 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1313
1314 Installation directories:
1315 --prefix=PREFIX install architecture-independent files in PREFIX
1316 [$ac_default_prefix]
1317 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1318 [PREFIX]
1319
1320 By default, \`make install' will install all the files in
1321 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1322 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1323 for instance \`--prefix=\$HOME'.
1324
1325 For better control, use the options below.
1326
1327 Fine tuning of the installation directories:
1328 --bindir=DIR user executables [EPREFIX/bin]
1329 --sbindir=DIR system admin executables [EPREFIX/sbin]
1330 --libexecdir=DIR program executables [EPREFIX/libexec]
1331 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1332 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1333 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1334 --libdir=DIR object code libraries [EPREFIX/lib]
1335 --includedir=DIR C header files [PREFIX/include]
1336 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1337 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1338 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1339 --infodir=DIR info documentation [DATAROOTDIR/info]
1340 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1341 --mandir=DIR man documentation [DATAROOTDIR/man]
1342 --docdir=DIR documentation root [DATAROOTDIR/doc/xsm]
1343 --htmldir=DIR html documentation [DOCDIR]
1344 --dvidir=DIR dvi documentation [DOCDIR]
1345 --pdfdir=DIR pdf documentation [DOCDIR]
1346 --psdir=DIR ps documentation [DOCDIR]
1347 _ACEOF
1348
1349 cat <<\_ACEOF
1350
1351 Program names:
1352 --program-prefix=PREFIX prepend PREFIX to installed program names
1353 --program-suffix=SUFFIX append SUFFIX to installed program names
1354 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1355
1356 System types:
1357 --build=BUILD configure for building on BUILD [guessed]
1358 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1359 _ACEOF
1360 fi
1361
1362 if test -n "$ac_init_help"; then
1363 case $ac_init_help in
1364 short | recursive ) echo "Configuration of xsm 1.0.3:";;
1365 esac
1366 cat <<\_ACEOF
1367
1368 Optional Features:
1369 --disable-option-checking ignore unrecognized --enable/--with options
1370 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1371 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1372 --enable-maintainer-mode enable make rules and dependencies not useful
1373 (and sometimes confusing) to the casual installer
1374 --disable-dependency-tracking speeds up one-time build
1375 --enable-dependency-tracking do not reject slow dependency extractors
1376 --disable-selective-werror
1377 Turn off selective compiler errors. (default:
1378 enabled)
1379 --enable-strict-compilation
1380 Enable all warnings from compiler and make them
1381 errors (default: disabled)
1382 --enable-silent-rules less verbose build output (undo: `make V=1')
1383 --disable-silent-rules verbose build output (undo: `make V=0')
1384
1385 Optional Packages:
1386 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1387 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1388 --with-rsh=PATH Rsh command to use (default: $bindir/ssh)
1389 --with-appdefaultdir=<pathname>
1390 specify directory for app-defaults files (default is
1391 autodetected)
1392
1393 Some influential environment variables:
1394 CC C compiler command
1395 CFLAGS C compiler flags
1396 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1397 nonstandard directory <lib dir>
1398 LIBS libraries to pass to the linker, e.g. -l<library>
1399 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1400 you have headers in a nonstandard directory <include dir>
1401 CPP C preprocessor
1402 PKG_CONFIG path to pkg-config utility
1403 XSM_CFLAGS C compiler flags for XSM, overriding pkg-config
1404 XSM_LIBS linker flags for XSM, overriding pkg-config
1405
1406 Use these variables to override the choices made by `configure' or to help
1407 it to find libraries and programs with nonstandard names/locations.
1408
1409 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1410 _ACEOF
1411 ac_status=$?
1412 fi
1413
1414 if test "$ac_init_help" = "recursive"; then
1415 # If there are subdirs, report their specific --help.
1416 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1417 test -d "$ac_dir" ||
1418 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1419 continue
1420 ac_builddir=.
1421
1422 case "$ac_dir" in
1423 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1424 *)
1425 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1426 # A ".." for each directory in $ac_dir_suffix.
1427 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1428 case $ac_top_builddir_sub in
1429 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1431 esac ;;
1432 esac
1433 ac_abs_top_builddir=$ac_pwd
1434 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1435 # for backward compatibility:
1436 ac_top_builddir=$ac_top_build_prefix
1437
1438 case $srcdir in
1439 .) # We are building in place.
1440 ac_srcdir=.
1441 ac_top_srcdir=$ac_top_builddir_sub
1442 ac_abs_top_srcdir=$ac_pwd ;;
1443 [\\/]* | ?:[\\/]* ) # Absolute name.
1444 ac_srcdir=$srcdir$ac_dir_suffix;
1445 ac_top_srcdir=$srcdir
1446 ac_abs_top_srcdir=$srcdir ;;
1447 *) # Relative name.
1448 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1449 ac_top_srcdir=$ac_top_build_prefix$srcdir
1450 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1451 esac
1452 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1453
1454 cd "$ac_dir" || { ac_status=$?; continue; }
1455 # Check for guested configure.
1456 if test -f "$ac_srcdir/configure.gnu"; then
1457 echo &&
1458 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1459 elif test -f "$ac_srcdir/configure"; then
1460 echo &&
1461 $SHELL "$ac_srcdir/configure" --help=recursive
1462 else
1463 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1464 fi || ac_status=$?
1465 cd "$ac_pwd" || { ac_status=$?; break; }
1466 done
1467 fi
1468
1469 test -n "$ac_init_help" && exit $ac_status
1470 if $ac_init_version; then
1471 cat <<\_ACEOF
1472 xsm configure 1.0.3
1473 generated by GNU Autoconf 2.68
1474
1475 Copyright (C) 2010 Free Software Foundation, Inc.
1476 This configure script is free software; the Free Software Foundation
1477 gives unlimited permission to copy, distribute and modify it.
1478 _ACEOF
1479 exit
1480 fi
1481
1482 ## ------------------------ ##
1483 ## Autoconf initialization. ##
1484 ## ------------------------ ##
1485
1486 # ac_fn_c_try_compile LINENO
1487 # --------------------------
1488 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1489 ac_fn_c_try_compile ()
1490 {
1491 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1492 rm -f conftest.$ac_objext
1493 if { { ac_try="$ac_compile"
1494 case "(($ac_try" in
1495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1496 *) ac_try_echo=$ac_try;;
1497 esac
1498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1499 $as_echo "$ac_try_echo"; } >&5
1500 (eval "$ac_compile") 2>conftest.err
1501 ac_status=$?
1502 if test -s conftest.err; then
1503 grep -v '^ *+' conftest.err >conftest.er1
1504 cat conftest.er1 >&5
1505 mv -f conftest.er1 conftest.err
1506 fi
1507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1508 test $ac_status = 0; } && {
1509 test -z "$ac_c_werror_flag" ||
1510 test ! -s conftest.err
1511 } && test -s conftest.$ac_objext; then :
1512 ac_retval=0
1513 else
1514 $as_echo "$as_me: failed program was:" >&5
1515 sed 's/^/| /' conftest.$ac_ext >&5
1516
1517 ac_retval=1
1518 fi
1519 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1520 as_fn_set_status $ac_retval
1521
1522 } # ac_fn_c_try_compile
1523
1524 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1525 # ---------------------------------------------
1526 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1527 # accordingly.
1528 ac_fn_c_check_decl ()
1529 {
1530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531 as_decl_name=`echo $2|sed 's/ *(.*//'`
1532 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1534 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1535 if eval \${$3+:} false; then :
1536 $as_echo_n "(cached) " >&6
1537 else
1538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1539 /* end confdefs.h. */
1540 $4
1541 int
1542 main ()
1543 {
1544 #ifndef $as_decl_name
1545 #ifdef __cplusplus
1546 (void) $as_decl_use;
1547 #else
1548 (void) $as_decl_name;
1549 #endif
1550 #endif
1551
1552 ;
1553 return 0;
1554 }
1555 _ACEOF
1556 if ac_fn_c_try_compile "$LINENO"; then :
1557 eval "$3=yes"
1558 else
1559 eval "$3=no"
1560 fi
1561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1562 fi
1563 eval ac_res=\$$3
1564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1565 $as_echo "$ac_res" >&6; }
1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567
1568 } # ac_fn_c_check_decl
1569
1570 # ac_fn_c_try_cpp LINENO
1571 # ----------------------
1572 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_c_try_cpp ()
1574 {
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 if { { ac_try="$ac_cpp conftest.$ac_ext"
1577 case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580 esac
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1584 ac_status=$?
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1589 fi
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } > conftest.i && {
1592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1593 test ! -s conftest.err
1594 }; then :
1595 ac_retval=0
1596 else
1597 $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1599
1600 ac_retval=1
1601 fi
1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603 as_fn_set_status $ac_retval
1604
1605 } # ac_fn_c_try_cpp
1606
1607 # ac_fn_c_try_run LINENO
1608 # ----------------------
1609 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1610 # that executables *can* be run.
1611 ac_fn_c_try_run ()
1612 {
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 if { { ac_try="$ac_link"
1615 case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618 esac
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_link") 2>&5
1622 ac_status=$?
1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1625 { { case "(($ac_try" in
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1628 esac
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631 (eval "$ac_try") 2>&5
1632 ac_status=$?
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; }; }; then :
1635 ac_retval=0
1636 else
1637 $as_echo "$as_me: program exited with status $ac_status" >&5
1638 $as_echo "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1640
1641 ac_retval=$ac_status
1642 fi
1643 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
1646
1647 } # ac_fn_c_try_run
1648
1649 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1650 # -------------------------------------------------------
1651 # Tests whether HEADER exists and can be compiled using the include files in
1652 # INCLUDES, setting the cache variable VAR accordingly.
1653 ac_fn_c_check_header_compile ()
1654 {
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1657 $as_echo_n "checking for $2... " >&6; }
1658 if eval \${$3+:} false; then :
1659 $as_echo_n "(cached) " >&6
1660 else
1661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1662 /* end confdefs.h. */
1663 $4
1664 #include <$2>
1665 _ACEOF
1666 if ac_fn_c_try_compile "$LINENO"; then :
1667 eval "$3=yes"
1668 else
1669 eval "$3=no"
1670 fi
1671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1672 fi
1673 eval ac_res=\$$3
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1675 $as_echo "$ac_res" >&6; }
1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677
1678 } # ac_fn_c_check_header_compile
1679
1680 # ac_fn_c_try_link LINENO
1681 # -----------------------
1682 # Try to link conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_link ()
1684 {
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 rm -f conftest.$ac_objext conftest$ac_exeext
1687 if { { ac_try="$ac_link"
1688 case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_link") 2>conftest.err
1695 ac_status=$?
1696 if test -s conftest.err; then
1697 grep -v '^ *+' conftest.err >conftest.er1
1698 cat conftest.er1 >&5
1699 mv -f conftest.er1 conftest.err
1700 fi
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && {
1703 test -z "$ac_c_werror_flag" ||
1704 test ! -s conftest.err
1705 } && test -s conftest$ac_exeext && {
1706 test "$cross_compiling" = yes ||
1707 $as_test_x conftest$ac_exeext
1708 }; then :
1709 ac_retval=0
1710 else
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1713
1714 ac_retval=1
1715 fi
1716 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1717 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1718 # interfere with the next link command; also delete a directory that is
1719 # left behind by Apple's compiler. We do this before executing the actions.
1720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
1723
1724 } # ac_fn_c_try_link
1725
1726 # ac_fn_c_check_func LINENO FUNC VAR
1727 # ----------------------------------
1728 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1729 ac_fn_c_check_func ()
1730 {
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733 $as_echo_n "checking for $2... " >&6; }
1734 if eval \${$3+:} false; then :
1735 $as_echo_n "(cached) " >&6
1736 else
1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738 /* end confdefs.h. */
1739 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1741 #define $2 innocuous_$2
1742
1743 /* System header to define __stub macros and hopefully few prototypes,
1744 which can conflict with char $2 (); below.
1745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1746 <limits.h> exists even on freestanding compilers. */
1747
1748 #ifdef __STDC__
1749 # include <limits.h>
1750 #else
1751 # include <assert.h>
1752 #endif
1753
1754 #undef $2
1755
1756 /* Override any GCC internal prototype to avoid an error.
1757 Use char because int might match the return type of a GCC
1758 builtin and then its argument prototype would still apply. */
1759 #ifdef __cplusplus
1760 extern "C"
1761 #endif
1762 char $2 ();
1763 /* The GNU C library defines this for functions which it implements
1764 to always fail with ENOSYS. Some functions are actually named
1765 something starting with __ and the normal name is an alias. */
1766 #if defined __stub_$2 || defined __stub___$2
1767 choke me
1768 #endif
1769
1770 int
1771 main ()
1772 {
1773 return $2 ();
1774 ;
1775 return 0;
1776 }
1777 _ACEOF
1778 if ac_fn_c_try_link "$LINENO"; then :
1779 eval "$3=yes"
1780 else
1781 eval "$3=no"
1782 fi
1783 rm -f core conftest.err conftest.$ac_objext \
1784 conftest$ac_exeext conftest.$ac_ext
1785 fi
1786 eval ac_res=\$$3
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 $as_echo "$ac_res" >&6; }
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790
1791 } # ac_fn_c_check_func
1792 cat >config.log <<_ACEOF
1793 This file contains any messages produced by compilers while
1794 running configure, to aid debugging if configure makes a mistake.
1795
1796 It was created by xsm $as_me 1.0.3, which was
1797 generated by GNU Autoconf 2.68. Invocation command line was
1798
1799 $ $0 $@
1800
1801 _ACEOF
1802 exec 5>>config.log
1803 {
1804 cat <<_ASUNAME
1805 ## --------- ##
1806 ## Platform. ##
1807 ## --------- ##
1808
1809 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1810 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1811 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1812 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1813 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1814
1815 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1816 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1817
1818 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1819 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1820 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1821 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1822 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1823 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1824 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1825
1826 _ASUNAME
1827
1828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1829 for as_dir in $PATH
1830 do
1831 IFS=$as_save_IFS
1832 test -z "$as_dir" && as_dir=.
1833 $as_echo "PATH: $as_dir"
1834 done
1835 IFS=$as_save_IFS
1836
1837 } >&5
1838
1839 cat >&5 <<_ACEOF
1840
1841
1842 ## ----------- ##
1843 ## Core tests. ##
1844 ## ----------- ##
1845
1846 _ACEOF
1847
1848
1849 # Keep a trace of the command line.
1850 # Strip out --no-create and --no-recursion so they do not pile up.
1851 # Strip out --silent because we don't want to record it for future runs.
1852 # Also quote any args containing shell meta-characters.
1853 # Make two passes to allow for proper duplicate-argument suppression.
1854 ac_configure_args=
1855 ac_configure_args0=
1856 ac_configure_args1=
1857 ac_must_keep_next=false
1858 for ac_pass in 1 2
1859 do
1860 for ac_arg
1861 do
1862 case $ac_arg in
1863 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1864 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1865 | -silent | --silent | --silen | --sile | --sil)
1866 continue ;;
1867 *\'*)
1868 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1869 esac
1870 case $ac_pass in
1871 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1872 2)
1873 as_fn_append ac_configure_args1 " '$ac_arg'"
1874 if test $ac_must_keep_next = true; then
1875 ac_must_keep_next=false # Got value, back to normal.
1876 else
1877 case $ac_arg in
1878 *=* | --config-cache | -C | -disable-* | --disable-* \
1879 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1880 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1881 | -with-* | --with-* | -without-* | --without-* | --x)
1882 case "$ac_configure_args0 " in
1883 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1884 esac
1885 ;;
1886 -* ) ac_must_keep_next=true ;;
1887 esac
1888 fi
1889 as_fn_append ac_configure_args " '$ac_arg'"
1890 ;;
1891 esac
1892 done
1893 done
1894 { ac_configure_args0=; unset ac_configure_args0;}
1895 { ac_configure_args1=; unset ac_configure_args1;}
1896
1897 # When interrupted or exit'd, cleanup temporary files, and complete
1898 # config.log. We remove comments because anyway the quotes in there
1899 # would cause problems or look ugly.
1900 # WARNING: Use '\'' to represent an apostrophe within the trap.
1901 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1902 trap 'exit_status=$?
1903 # Save into config.log some information that might help in debugging.
1904 {
1905 echo
1906
1907 $as_echo "## ---------------- ##
1908 ## Cache variables. ##
1909 ## ---------------- ##"
1910 echo
1911 # The following way of writing the cache mishandles newlines in values,
1912 (
1913 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1914 eval ac_val=\$$ac_var
1915 case $ac_val in #(
1916 *${as_nl}*)
1917 case $ac_var in #(
1918 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1919 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1920 esac
1921 case $ac_var in #(
1922 _ | IFS | as_nl) ;; #(
1923 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1924 *) { eval $ac_var=; unset $ac_var;} ;;
1925 esac ;;
1926 esac
1927 done
1928 (set) 2>&1 |
1929 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1930 *${as_nl}ac_space=\ *)
1931 sed -n \
1932 "s/'\''/'\''\\\\'\'''\''/g;
1933 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1934 ;; #(
1935 *)
1936 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1937 ;;
1938 esac |
1939 sort
1940 )
1941 echo
1942
1943 $as_echo "## ----------------- ##
1944 ## Output variables. ##
1945 ## ----------------- ##"
1946 echo
1947 for ac_var in $ac_subst_vars
1948 do
1949 eval ac_val=\$$ac_var
1950 case $ac_val in
1951 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1952 esac
1953 $as_echo "$ac_var='\''$ac_val'\''"
1954 done | sort
1955 echo
1956
1957 if test -n "$ac_subst_files"; then
1958 $as_echo "## ------------------- ##
1959 ## File substitutions. ##
1960 ## ------------------- ##"
1961 echo
1962 for ac_var in $ac_subst_files
1963 do
1964 eval ac_val=\$$ac_var
1965 case $ac_val in
1966 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1967 esac
1968 $as_echo "$ac_var='\''$ac_val'\''"
1969 done | sort
1970 echo
1971 fi
1972
1973 if test -s confdefs.h; then
1974 $as_echo "## ----------- ##
1975 ## confdefs.h. ##
1976 ## ----------- ##"
1977 echo
1978 cat confdefs.h
1979 echo
1980 fi
1981 test "$ac_signal" != 0 &&
1982 $as_echo "$as_me: caught signal $ac_signal"
1983 $as_echo "$as_me: exit $exit_status"
1984 } >&5
1985 rm -f core *.core core.conftest.* &&
1986 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1987 exit $exit_status
1988 ' 0
1989 for ac_signal in 1 2 13 15; do
1990 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1991 done
1992 ac_signal=0
1993
1994 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1995 rm -f -r conftest* confdefs.h
1996
1997 $as_echo "/* confdefs.h */" > confdefs.h
1998
1999 # Predefined preprocessor variables.
2000
2001 cat >>confdefs.h <<_ACEOF
2002 #define PACKAGE_NAME "$PACKAGE_NAME"
2003 _ACEOF
2004
2005 cat >>confdefs.h <<_ACEOF
2006 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2007 _ACEOF
2008
2009 cat >>confdefs.h <<_ACEOF
2010 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2011 _ACEOF
2012
2013 cat >>confdefs.h <<_ACEOF
2014 #define PACKAGE_STRING "$PACKAGE_STRING"
2015 _ACEOF
2016
2017 cat >>confdefs.h <<_ACEOF
2018 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2019 _ACEOF
2020
2021 cat >>confdefs.h <<_ACEOF
2022 #define PACKAGE_URL "$PACKAGE_URL"
2023 _ACEOF
2024
2025
2026 # Let the site file select an alternate cache file if it wants to.
2027 # Prefer an explicitly selected file to automatically selected ones.
2028 ac_site_file1=NONE
2029 ac_site_file2=NONE
2030 if test -n "$CONFIG_SITE"; then
2031 # We do not want a PATH search for config.site.
2032 case $CONFIG_SITE in #((
2033 -*) ac_site_file1=./$CONFIG_SITE;;
2034 */*) ac_site_file1=$CONFIG_SITE;;
2035 *) ac_site_file1=./$CONFIG_SITE;;
2036 esac
2037 elif test "x$prefix" != xNONE; then
2038 ac_site_file1=$prefix/share/config.site
2039 ac_site_file2=$prefix/etc/config.site
2040 else
2041 ac_site_file1=$ac_default_prefix/share/config.site
2042 ac_site_file2=$ac_default_prefix/etc/config.site
2043 fi
2044 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2045 do
2046 test "x$ac_site_file" = xNONE && continue
2047 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2049 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2050 sed 's/^/| /' "$ac_site_file" >&5
2051 . "$ac_site_file" \
2052 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2054 as_fn_error $? "failed to load site script $ac_site_file
2055 See \`config.log' for more details" "$LINENO" 5; }
2056 fi
2057 done
2058
2059 if test -r "$cache_file"; then
2060 # Some versions of bash will fail to source /dev/null (special files
2061 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2062 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2064 $as_echo "$as_me: loading cache $cache_file" >&6;}
2065 case $cache_file in
2066 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2067 *) . "./$cache_file";;
2068 esac
2069 fi
2070 else
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2072 $as_echo "$as_me: creating cache $cache_file" >&6;}
2073 >$cache_file
2074 fi
2075
2076 # Check that the precious variables saved in the cache have kept the same
2077 # value.
2078 ac_cache_corrupted=false
2079 for ac_var in $ac_precious_vars; do
2080 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2081 eval ac_new_set=\$ac_env_${ac_var}_set
2082 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2083 eval ac_new_val=\$ac_env_${ac_var}_value
2084 case $ac_old_set,$ac_new_set in
2085 set,)
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2087 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2088 ac_cache_corrupted=: ;;
2089 ,set)
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2091 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2092 ac_cache_corrupted=: ;;
2093 ,);;
2094 *)
2095 if test "x$ac_old_val" != "x$ac_new_val"; then
2096 # differences in whitespace do not lead to failure.
2097 ac_old_val_w=`echo x $ac_old_val`
2098 ac_new_val_w=`echo x $ac_new_val`
2099 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2101 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2102 ac_cache_corrupted=:
2103 else
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2105 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2106 eval $ac_var=\$ac_old_val
2107 fi
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2109 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2111 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2112 fi;;
2113 esac
2114 # Pass precious variables to config.status.
2115 if test "$ac_new_set" = set; then
2116 case $ac_new_val in
2117 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2118 *) ac_arg=$ac_var=$ac_new_val ;;
2119 esac
2120 case " $ac_configure_args " in
2121 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2122 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2123 esac
2124 fi
2125 done
2126 if $ac_cache_corrupted; then
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2130 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2131 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2132 fi
2133 ## -------------------- ##
2134 ## Main body of script. ##
2135 ## -------------------- ##
2136
2137 ac_ext=c
2138 ac_cpp='$CPP $CPPFLAGS'
2139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2142
2143
2144
2145 ac_config_headers="$ac_config_headers config.h"
2146
2147
2148 # Initialize Automake
2149 am__api_version='1.11'
2150
2151 ac_aux_dir=
2152 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2153 if test -f "$ac_dir/install-sh"; then
2154 ac_aux_dir=$ac_dir
2155 ac_install_sh="$ac_aux_dir/install-sh -c"
2156 break
2157 elif test -f "$ac_dir/install.sh"; then
2158 ac_aux_dir=$ac_dir
2159 ac_install_sh="$ac_aux_dir/install.sh -c"
2160 break
2161 elif test -f "$ac_dir/shtool"; then
2162 ac_aux_dir=$ac_dir
2163 ac_install_sh="$ac_aux_dir/shtool install -c"
2164 break
2165 fi
2166 done
2167 if test -z "$ac_aux_dir"; then
2168 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2169 fi
2170
2171 # These three variables are undocumented and unsupported,
2172 # and are intended to be withdrawn in a future Autoconf release.
2173 # They can cause serious problems if a builder's source tree is in a directory
2174 # whose full name contains unusual characters.
2175 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2176 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2177 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2178
2179
2180 # Find a good install program. We prefer a C program (faster),
2181 # so one script is as good as another. But avoid the broken or
2182 # incompatible versions:
2183 # SysV /etc/install, /usr/sbin/install
2184 # SunOS /usr/etc/install
2185 # IRIX /sbin/install
2186 # AIX /bin/install
2187 # AmigaOS /C/install, which installs bootblocks on floppy discs
2188 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2189 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2190 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2191 # OS/2's system install, which has a completely different semantic
2192 # ./install, which can be erroneously created by make from ./install.sh.
2193 # Reject install programs that cannot install multiple files.
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2195 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2196 if test -z "$INSTALL"; then
2197 if ${ac_cv_path_install+:} false; then :
2198 $as_echo_n "(cached) " >&6
2199 else
2200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201 for as_dir in $PATH
2202 do
2203 IFS=$as_save_IFS
2204 test -z "$as_dir" && as_dir=.
2205 # Account for people who put trailing slashes in PATH elements.
2206 case $as_dir/ in #((
2207 ./ | .// | /[cC]/* | \
2208 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2209 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2210 /usr/ucb/* ) ;;
2211 *)
2212 # OSF1 and SCO ODT 3.0 have their own names for install.
2213 # Don't use installbsd from OSF since it installs stuff as root
2214 # by default.
2215 for ac_prog in ginstall scoinst install; do
2216 for ac_exec_ext in '' $ac_executable_extensions; do
2217 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2218 if test $ac_prog = install &&
2219 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2220 # AIX install. It has an incompatible calling convention.
2221 :
2222 elif test $ac_prog = install &&
2223 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2224 # program-specific install script used by HP pwplus--don't use.
2225 :
2226 else
2227 rm -rf conftest.one conftest.two conftest.dir
2228 echo one > conftest.one
2229 echo two > conftest.two
2230 mkdir conftest.dir
2231 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2232 test -s conftest.one && test -s conftest.two &&
2233 test -s conftest.dir/conftest.one &&
2234 test -s conftest.dir/conftest.two
2235 then
2236 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2237 break 3
2238 fi
2239 fi
2240 fi
2241 done
2242 done
2243 ;;
2244 esac
2245
2246 done
2247 IFS=$as_save_IFS
2248
2249 rm -rf conftest.one conftest.two conftest.dir
2250
2251 fi
2252 if test "${ac_cv_path_install+set}" = set; then
2253 INSTALL=$ac_cv_path_install
2254 else
2255 # As a last resort, use the slow shell script. Don't cache a
2256 # value for INSTALL within a source directory, because that will
2257 # break other packages using the cache if that directory is
2258 # removed, or if the value is a relative name.
2259 INSTALL=$ac_install_sh
2260 fi
2261 fi
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2263 $as_echo "$INSTALL" >&6; }
2264
2265 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2266 # It thinks the first close brace ends the variable substitution.
2267 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2268
2269 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2270
2271 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2272
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2274 $as_echo_n "checking whether build environment is sane... " >&6; }
2275 # Just in case
2276 sleep 1
2277 echo timestamp > conftest.file
2278 # Reject unsafe characters in $srcdir or the absolute working directory
2279 # name. Accept space and tab only in the latter.
2280 am_lf='
2281 '
2282 case `pwd` in
2283 *[\\\"\#\$\&\'\`$am_lf]*)
2284 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2285 esac
2286 case $srcdir in
2287 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2288 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2289 esac
2290
2291 # Do `set' in a subshell so we don't clobber the current shell's
2292 # arguments. Must try -L first in case configure is actually a
2293 # symlink; some systems play weird games with the mod time of symlinks
2294 # (eg FreeBSD returns the mod time of the symlink's containing
2295 # directory).
2296 if (
2297 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2298 if test "$*" = "X"; then
2299 # -L didn't work.
2300 set X `ls -t "$srcdir/configure" conftest.file`
2301 fi
2302 rm -f conftest.file
2303 if test "$*" != "X $srcdir/configure conftest.file" \
2304 && test "$*" != "X conftest.file $srcdir/configure"; then
2305
2306 # If neither matched, then we have a broken ls. This can happen
2307 # if, for instance, CONFIG_SHELL is bash and it inherits a
2308 # broken ls alias from the environment. This has actually
2309 # happened. Such a system could not be considered "sane".
2310 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2311 alias in your environment" "$LINENO" 5
2312 fi
2313
2314 test "$2" = conftest.file
2315 )
2316 then
2317 # Ok.
2318 :
2319 else
2320 as_fn_error $? "newly created file is older than distributed files!
2321 Check your system clock" "$LINENO" 5
2322 fi
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2324 $as_echo "yes" >&6; }
2325 test "$program_prefix" != NONE &&
2326 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2327 # Use a double $ so make ignores it.
2328 test "$program_suffix" != NONE &&
2329 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2330 # Double any \ or $.
2331 # By default was `s,x,x', remove it if useless.
2332 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2333 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2334
2335 # expand $ac_aux_dir to an absolute path
2336 am_aux_dir=`cd $ac_aux_dir && pwd`
2337
2338 if test x"${MISSING+set}" != xset; then
2339 case $am_aux_dir in
2340 *\ * | *\ *)
2341 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2342 *)
2343 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2344 esac
2345 fi
2346 # Use eval to expand $SHELL
2347 if eval "$MISSING --run true"; then
2348 am_missing_run="$MISSING --run "
2349 else
2350 am_missing_run=
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2352 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2353 fi
2354
2355 if test x"${install_sh}" != xset; then
2356 case $am_aux_dir in
2357 *\ * | *\ *)
2358 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2359 *)
2360 install_sh="\${SHELL} $am_aux_dir/install-sh"
2361 esac
2362 fi
2363
2364 # Installed binaries are usually stripped using `strip' when the user
2365 # run `make install-strip'. However `strip' might not be the right
2366 # tool to use in cross-compilation environments, therefore Automake
2367 # will honor the `STRIP' environment variable to overrule this program.
2368 if test "$cross_compiling" != no; then
2369 if test -n "$ac_tool_prefix"; then
2370 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2371 set dummy ${ac_tool_prefix}strip; ac_word=$2
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2373 $as_echo_n "checking for $ac_word... " >&6; }
2374 if ${ac_cv_prog_STRIP+:} false; then :
2375 $as_echo_n "(cached) " >&6
2376 else
2377 if test -n "$STRIP"; then
2378 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2379 else
2380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381 for as_dir in $PATH
2382 do
2383 IFS=$as_save_IFS
2384 test -z "$as_dir" && as_dir=.
2385 for ac_exec_ext in '' $ac_executable_extensions; do
2386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2387 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2389 break 2
2390 fi
2391 done
2392 done
2393 IFS=$as_save_IFS
2394
2395 fi
2396 fi
2397 STRIP=$ac_cv_prog_STRIP
2398 if test -n "$STRIP"; then
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2400 $as_echo "$STRIP" >&6; }
2401 else
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2403 $as_echo "no" >&6; }
2404 fi
2405
2406
2407 fi
2408 if test -z "$ac_cv_prog_STRIP"; then
2409 ac_ct_STRIP=$STRIP
2410 # Extract the first word of "strip", so it can be a program name with args.
2411 set dummy strip; ac_word=$2
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2413 $as_echo_n "checking for $ac_word... " >&6; }
2414 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2415 $as_echo_n "(cached) " >&6
2416 else
2417 if test -n "$ac_ct_STRIP"; then
2418 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2419 else
2420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 for as_dir in $PATH
2422 do
2423 IFS=$as_save_IFS
2424 test -z "$as_dir" && as_dir=.
2425 for ac_exec_ext in '' $ac_executable_extensions; do
2426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2427 ac_cv_prog_ac_ct_STRIP="strip"
2428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2429 break 2
2430 fi
2431 done
2432 done
2433 IFS=$as_save_IFS
2434
2435 fi
2436 fi
2437 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2438 if test -n "$ac_ct_STRIP"; then
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2440 $as_echo "$ac_ct_STRIP" >&6; }
2441 else
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2443 $as_echo "no" >&6; }
2444 fi
2445
2446 if test "x$ac_ct_STRIP" = x; then
2447 STRIP=":"
2448 else
2449 case $cross_compiling:$ac_tool_warned in
2450 yes:)
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2453 ac_tool_warned=yes ;;
2454 esac
2455 STRIP=$ac_ct_STRIP
2456 fi
2457 else
2458 STRIP="$ac_cv_prog_STRIP"
2459 fi
2460
2461 fi
2462 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2463
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2465 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2466 if test -z "$MKDIR_P"; then
2467 if ${ac_cv_path_mkdir+:} false; then :
2468 $as_echo_n "(cached) " >&6
2469 else
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2472 do
2473 IFS=$as_save_IFS
2474 test -z "$as_dir" && as_dir=.
2475 for ac_prog in mkdir gmkdir; do
2476 for ac_exec_ext in '' $ac_executable_extensions; do
2477 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2478 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2479 'mkdir (GNU coreutils) '* | \
2480 'mkdir (coreutils) '* | \
2481 'mkdir (fileutils) '4.1*)
2482 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2483 break 3;;
2484 esac
2485 done
2486 done
2487 done
2488 IFS=$as_save_IFS
2489
2490 fi
2491
2492 test -d ./--version && rmdir ./--version
2493 if test "${ac_cv_path_mkdir+set}" = set; then
2494 MKDIR_P="$ac_cv_path_mkdir -p"
2495 else
2496 # As a last resort, use the slow shell script. Don't cache a
2497 # value for MKDIR_P within a source directory, because that will
2498 # break other packages using the cache if that directory is
2499 # removed, or if the value is a relative name.
2500 MKDIR_P="$ac_install_sh -d"
2501 fi
2502 fi
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2504 $as_echo "$MKDIR_P" >&6; }
2505
2506 mkdir_p="$MKDIR_P"
2507 case $mkdir_p in
2508 [\\/$]* | ?:[\\/]*) ;;
2509 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2510 esac
2511
2512 for ac_prog in gawk mawk nawk awk
2513 do
2514 # Extract the first word of "$ac_prog", so it can be a program name with args.
2515 set dummy $ac_prog; ac_word=$2
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2517 $as_echo_n "checking for $ac_word... " >&6; }
2518 if ${ac_cv_prog_AWK+:} false; then :
2519 $as_echo_n "(cached) " >&6
2520 else
2521 if test -n "$AWK"; then
2522 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2523 else
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH
2526 do
2527 IFS=$as_save_IFS
2528 test -z "$as_dir" && as_dir=.
2529 for ac_exec_ext in '' $ac_executable_extensions; do
2530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2531 ac_cv_prog_AWK="$ac_prog"
2532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2533 break 2
2534 fi
2535 done
2536 done
2537 IFS=$as_save_IFS
2538
2539 fi
2540 fi
2541 AWK=$ac_cv_prog_AWK
2542 if test -n "$AWK"; then
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2544 $as_echo "$AWK" >&6; }
2545 else
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2547 $as_echo "no" >&6; }
2548 fi
2549
2550
2551 test -n "$AWK" && break
2552 done
2553
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2555 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2556 set x ${MAKE-make}
2557 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2558 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2559 $as_echo_n "(cached) " >&6
2560 else
2561 cat >conftest.make <<\_ACEOF
2562 SHELL = /bin/sh
2563 all:
2564 @echo '@@@%%%=$(MAKE)=@@@%%%'
2565 _ACEOF
2566 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2567 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2568 *@@@%%%=?*=@@@%%%*)
2569 eval ac_cv_prog_make_${ac_make}_set=yes;;
2570 *)
2571 eval ac_cv_prog_make_${ac_make}_set=no;;
2572 esac
2573 rm -f conftest.make
2574 fi
2575 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2577 $as_echo "yes" >&6; }
2578 SET_MAKE=
2579 else
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2581 $as_echo "no" >&6; }
2582 SET_MAKE="MAKE=${MAKE-make}"
2583 fi
2584
2585 rm -rf .tst 2>/dev/null
2586 mkdir .tst 2>/dev/null
2587 if test -d .tst; then
2588 am__leading_dot=.
2589 else
2590 am__leading_dot=_
2591 fi
2592 rmdir .tst 2>/dev/null
2593
2594 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2595 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2596 # is not polluted with repeated "-I."
2597 am__isrc=' -I$(srcdir)'
2598 # test to see if srcdir already configured
2599 if test -f $srcdir/config.status; then
2600 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2601 fi
2602 fi
2603
2604 # test whether we have cygpath
2605 if test -z "$CYGPATH_W"; then
2606 if (cygpath --version) >/dev/null 2>/dev/null; then
2607 CYGPATH_W='cygpath -w'
2608 else
2609 CYGPATH_W=echo
2610 fi
2611 fi
2612
2613
2614 # Define the identity of the package.
2615 PACKAGE='xsm'
2616 VERSION='1.0.3'
2617
2618
2619 cat >>confdefs.h <<_ACEOF
2620 #define PACKAGE "$PACKAGE"
2621 _ACEOF
2622
2623
2624 cat >>confdefs.h <<_ACEOF
2625 #define VERSION "$VERSION"
2626 _ACEOF
2627
2628 # Some tools Automake needs.
2629
2630 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2631
2632
2633 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2634
2635
2636 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2637
2638
2639 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2640
2641
2642 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2643
2644 # We need awk for the "check" target. The system "awk" is bad on
2645 # some platforms.
2646 # Always define AMTAR for backward compatibility.
2647
2648 AMTAR=${AMTAR-"${am_missing_run}tar"}
2649
2650 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2651
2652
2653
2654
2655
2656
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2658 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2659 # Check whether --enable-maintainer-mode was given.
2660 if test "${enable_maintainer_mode+set}" = set; then :
2661 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2662 else
2663 USE_MAINTAINER_MODE=no
2664 fi
2665
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2667 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2668 if test $USE_MAINTAINER_MODE = yes; then
2669 MAINTAINER_MODE_TRUE=
2670 MAINTAINER_MODE_FALSE='#'
2671 else
2672 MAINTAINER_MODE_TRUE='#'
2673 MAINTAINER_MODE_FALSE=
2674 fi
2675
2676 MAINT=$MAINTAINER_MODE_TRUE
2677
2678
2679
2680 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692 DEPDIR="${am__leading_dot}deps"
2693
2694 ac_config_commands="$ac_config_commands depfiles"
2695
2696
2697 am_make=${MAKE-make}
2698 cat > confinc << 'END'
2699 am__doit:
2700 @echo this is the am__doit target
2701 .PHONY: am__doit
2702 END
2703 # If we don't find an include directive, just comment out the code.
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2705 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2706 am__include="#"
2707 am__quote=
2708 _am_result=none
2709 # First try GNU make style include.
2710 echo "include confinc" > confmf
2711 # Ignore all kinds of additional output from `make'.
2712 case `$am_make -s -f confmf 2> /dev/null` in #(
2713 *the\ am__doit\ target*)
2714 am__include=include
2715 am__quote=
2716 _am_result=GNU
2717 ;;
2718 esac
2719 # Now try BSD make style include.
2720 if test "$am__include" = "#"; then
2721 echo '.include "confinc"' > confmf
2722 case `$am_make -s -f confmf 2> /dev/null` in #(
2723 *the\ am__doit\ target*)
2724 am__include=.include
2725 am__quote="\""
2726 _am_result=BSD
2727 ;;
2728 esac
2729 fi
2730
2731
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2733 $as_echo "$_am_result" >&6; }
2734 rm -f confinc confmf
2735
2736 # Check whether --enable-dependency-tracking was given.
2737 if test "${enable_dependency_tracking+set}" = set; then :
2738 enableval=$enable_dependency_tracking;
2739 fi
2740
2741 if test "x$enable_dependency_tracking" != xno; then
2742 am_depcomp="$ac_aux_dir/depcomp"
2743 AMDEPBACKSLASH='\'
2744 am__nodep='_no'
2745 fi
2746 if test "x$enable_dependency_tracking" != xno; then
2747 AMDEP_TRUE=
2748 AMDEP_FALSE='#'
2749 else
2750 AMDEP_TRUE='#'
2751 AMDEP_FALSE=
2752 fi
2753
2754
2755 ac_ext=c
2756 ac_cpp='$CPP $CPPFLAGS'
2757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2760 if test -n "$ac_tool_prefix"; then
2761 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2762 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2764 $as_echo_n "checking for $ac_word... " >&6; }
2765 if ${ac_cv_prog_CC+:} false; then :
2766 $as_echo_n "(cached) " >&6
2767 else
2768 if test -n "$CC"; then
2769 ac_cv_prog_CC="$CC" # Let the user override the test.
2770 else
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 for as_dir in $PATH
2773 do
2774 IFS=$as_save_IFS
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2778 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 break 2
2781 fi
2782 done
2783 done
2784 IFS=$as_save_IFS
2785
2786 fi
2787 fi
2788 CC=$ac_cv_prog_CC
2789 if test -n "$CC"; then
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2791 $as_echo "$CC" >&6; }
2792 else
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794 $as_echo "no" >&6; }
2795 fi
2796
2797
2798 fi
2799 if test -z "$ac_cv_prog_CC"; then
2800 ac_ct_CC=$CC
2801 # Extract the first word of "gcc", so it can be a program name with args.
2802 set dummy gcc; ac_word=$2
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804 $as_echo_n "checking for $ac_word... " >&6; }
2805 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2806 $as_echo_n "(cached) " >&6
2807 else
2808 if test -n "$ac_ct_CC"; then
2809 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2810 else
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 for as_dir in $PATH
2813 do
2814 IFS=$as_save_IFS
2815 test -z "$as_dir" && as_dir=.
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818 ac_cv_prog_ac_ct_CC="gcc"
2819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 break 2
2821 fi
2822 done
2823 done
2824 IFS=$as_save_IFS
2825
2826 fi
2827 fi
2828 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2829 if test -n "$ac_ct_CC"; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2831 $as_echo "$ac_ct_CC" >&6; }
2832 else
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834 $as_echo "no" >&6; }
2835 fi
2836
2837 if test "x$ac_ct_CC" = x; then
2838 CC=""
2839 else
2840 case $cross_compiling:$ac_tool_warned in
2841 yes:)
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2844 ac_tool_warned=yes ;;
2845 esac
2846 CC=$ac_ct_CC
2847 fi
2848 else
2849 CC="$ac_cv_prog_CC"
2850 fi
2851
2852 if test -z "$CC"; then
2853 if test -n "$ac_tool_prefix"; then
2854 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2855 set dummy ${ac_tool_prefix}cc; ac_word=$2
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2857 $as_echo_n "checking for $ac_word... " >&6; }
2858 if ${ac_cv_prog_CC+:} false; then :
2859 $as_echo_n "(cached) " >&6
2860 else
2861 if test -n "$CC"; then
2862 ac_cv_prog_CC="$CC" # Let the user override the test.
2863 else
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 for as_dir in $PATH
2866 do
2867 IFS=$as_save_IFS
2868 test -z "$as_dir" && as_dir=.
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2871 ac_cv_prog_CC="${ac_tool_prefix}cc"
2872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 break 2
2874 fi
2875 done
2876 done
2877 IFS=$as_save_IFS
2878
2879 fi
2880 fi
2881 CC=$ac_cv_prog_CC
2882 if test -n "$CC"; then
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2884 $as_echo "$CC" >&6; }
2885 else
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2887 $as_echo "no" >&6; }
2888 fi
2889
2890
2891 fi
2892 fi
2893 if test -z "$CC"; then
2894 # Extract the first word of "cc", so it can be a program name with args.
2895 set dummy cc; ac_word=$2
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897 $as_echo_n "checking for $ac_word... " >&6; }
2898 if ${ac_cv_prog_CC+:} false; then :
2899 $as_echo_n "(cached) " >&6
2900 else
2901 if test -n "$CC"; then
2902 ac_cv_prog_CC="$CC" # Let the user override the test.
2903 else
2904 ac_prog_rejected=no
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2907 do
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2912 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2913 ac_prog_rejected=yes
2914 continue
2915 fi
2916 ac_cv_prog_CC="cc"
2917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2918 break 2
2919 fi
2920 done
2921 done
2922 IFS=$as_save_IFS
2923
2924 if test $ac_prog_rejected = yes; then
2925 # We found a bogon in the path, so make sure we never use it.
2926 set dummy $ac_cv_prog_CC
2927 shift
2928 if test $# != 0; then
2929 # We chose a different compiler from the bogus one.
2930 # However, it has the same basename, so the bogon will be chosen
2931 # first if we set CC to just the basename; use the full file name.
2932 shift
2933 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2934 fi
2935 fi
2936 fi
2937 fi
2938 CC=$ac_cv_prog_CC
2939 if test -n "$CC"; then
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2941 $as_echo "$CC" >&6; }
2942 else
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944 $as_echo "no" >&6; }
2945 fi
2946
2947
2948 fi
2949 if test -z "$CC"; then
2950 if test -n "$ac_tool_prefix"; then
2951 for ac_prog in cl.exe
2952 do
2953 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2954 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2956 $as_echo_n "checking for $ac_word... " >&6; }
2957 if ${ac_cv_prog_CC+:} false; then :
2958 $as_echo_n "(cached) " >&6
2959 else
2960 if test -n "$CC"; then
2961 ac_cv_prog_CC="$CC" # Let the user override the test.
2962 else
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 for as_dir in $PATH
2965 do
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2970 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 break 2
2973 fi
2974 done
2975 done
2976 IFS=$as_save_IFS
2977
2978 fi
2979 fi
2980 CC=$ac_cv_prog_CC
2981 if test -n "$CC"; then
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2983 $as_echo "$CC" >&6; }
2984 else
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2986 $as_echo "no" >&6; }
2987 fi
2988
2989
2990 test -n "$CC" && break
2991 done
2992 fi
2993 if test -z "$CC"; then
2994 ac_ct_CC=$CC
2995 for ac_prog in cl.exe
2996 do
2997 # Extract the first word of "$ac_prog", so it can be a program name with args.
2998 set dummy $ac_prog; ac_word=$2
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3000 $as_echo_n "checking for $ac_word... " >&6; }
3001 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3002 $as_echo_n "(cached) " >&6
3003 else
3004 if test -n "$ac_ct_CC"; then
3005 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3006 else
3007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008 for as_dir in $PATH
3009 do
3010 IFS=$as_save_IFS
3011 test -z "$as_dir" && as_dir=.
3012 for ac_exec_ext in '' $ac_executable_extensions; do
3013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3014 ac_cv_prog_ac_ct_CC="$ac_prog"
3015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3016 break 2
3017 fi
3018 done
3019 done
3020 IFS=$as_save_IFS
3021
3022 fi
3023 fi
3024 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3025 if test -n "$ac_ct_CC"; then
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3027 $as_echo "$ac_ct_CC" >&6; }
3028 else
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3030 $as_echo "no" >&6; }
3031 fi
3032
3033
3034 test -n "$ac_ct_CC" && break
3035 done
3036
3037 if test "x$ac_ct_CC" = x; then
3038 CC=""
3039 else
3040 case $cross_compiling:$ac_tool_warned in
3041 yes:)
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3044 ac_tool_warned=yes ;;
3045 esac
3046 CC=$ac_ct_CC
3047 fi
3048 fi
3049
3050 fi
3051
3052
3053 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3055 as_fn_error $? "no acceptable C compiler found in \$PATH
3056 See \`config.log' for more details" "$LINENO" 5; }
3057
3058 # Provide some information about the compiler.
3059 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3060 set X $ac_compile
3061 ac_compiler=$2
3062 for ac_option in --version -v -V -qversion; do
3063 { { ac_try="$ac_compiler $ac_option >&5"
3064 case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3067 esac
3068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3069 $as_echo "$ac_try_echo"; } >&5
3070 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3071 ac_status=$?
3072 if test -s conftest.err; then
3073 sed '10a\
3074 ... rest of stderr output deleted ...
3075 10q' conftest.err >conftest.er1
3076 cat conftest.er1 >&5
3077 fi
3078 rm -f conftest.er1 conftest.err
3079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3080 test $ac_status = 0; }
3081 done
3082
3083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3084 /* end confdefs.h. */
3085
3086 int
3087 main ()
3088 {
3089
3090 ;
3091 return 0;
3092 }
3093 _ACEOF
3094 ac_clean_files_save=$ac_clean_files
3095 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3096 # Try to create an executable without -o first, disregard a.out.
3097 # It will help us diagnose broken compilers, and finding out an intuition
3098 # of exeext.
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3100 $as_echo_n "checking whether the C compiler works... " >&6; }
3101 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3102
3103 # The possible output files:
3104 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3105
3106 ac_rmfiles=
3107 for ac_file in $ac_files
3108 do
3109 case $ac_file in
3110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3111 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3112 esac
3113 done
3114 rm -f $ac_rmfiles
3115
3116 if { { ac_try="$ac_link_default"
3117 case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3120 esac
3121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3122 $as_echo "$ac_try_echo"; } >&5
3123 (eval "$ac_link_default") 2>&5
3124 ac_status=$?
3125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3126 test $ac_status = 0; }; then :
3127 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3128 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3129 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3130 # so that the user can short-circuit this test for compilers unknown to
3131 # Autoconf.
3132 for ac_file in $ac_files ''
3133 do
3134 test -f "$ac_file" || continue
3135 case $ac_file in
3136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3137 ;;
3138 [ab].out )
3139 # We found the default executable, but exeext='' is most
3140 # certainly right.
3141 break;;
3142 *.* )
3143 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3144 then :; else
3145 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3146 fi
3147 # We set ac_cv_exeext here because the later test for it is not
3148 # safe: cross compilers may not add the suffix if given an `-o'
3149 # argument, so we may need to know it at that point already.
3150 # Even if this section looks crufty: it has the advantage of
3151 # actually working.
3152 break;;
3153 * )
3154 break;;
3155 esac
3156 done
3157 test "$ac_cv_exeext" = no && ac_cv_exeext=
3158
3159 else
3160 ac_file=''
3161 fi
3162 if test -z "$ac_file"; then :
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3165 $as_echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3167
3168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3170 as_fn_error 77 "C compiler cannot create executables
3171 See \`config.log' for more details" "$LINENO" 5; }
3172 else
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3174 $as_echo "yes" >&6; }
3175 fi
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3177 $as_echo_n "checking for C compiler default output file name... " >&6; }
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3179 $as_echo "$ac_file" >&6; }
3180 ac_exeext=$ac_cv_exeext
3181
3182 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3183 ac_clean_files=$ac_clean_files_save
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3185 $as_echo_n "checking for suffix of executables... " >&6; }
3186 if { { ac_try="$ac_link"
3187 case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190 esac
3191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3192 $as_echo "$ac_try_echo"; } >&5
3193 (eval "$ac_link") 2>&5
3194 ac_status=$?
3195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3196 test $ac_status = 0; }; then :
3197 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3198 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3199 # work properly (i.e., refer to `conftest.exe'), while it won't with
3200 # `rm'.
3201 for ac_file in conftest.exe conftest conftest.*; do
3202 test -f "$ac_file" || continue
3203 case $ac_file in
3204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3205 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3206 break;;
3207 * ) break;;
3208 esac
3209 done
3210 else
3211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3213 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3214 See \`config.log' for more details" "$LINENO" 5; }
3215 fi
3216 rm -f conftest conftest$ac_cv_exeext
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3218 $as_echo "$ac_cv_exeext" >&6; }
3219
3220 rm -f conftest.$ac_ext
3221 EXEEXT=$ac_cv_exeext
3222 ac_exeext=$EXEEXT
3223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3224 /* end confdefs.h. */
3225 #include <stdio.h>
3226 int
3227 main ()
3228 {
3229 FILE *f = fopen ("conftest.out", "w");
3230 return ferror (f) || fclose (f) != 0;
3231
3232 ;
3233 return 0;
3234 }
3235 _ACEOF
3236 ac_clean_files="$ac_clean_files conftest.out"
3237 # Check that the compiler produces executables we can run. If not, either
3238 # the compiler is broken, or we cross compile.
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3240 $as_echo_n "checking whether we are cross compiling... " >&6; }
3241 if test "$cross_compiling" != yes; then
3242 { { ac_try="$ac_link"
3243 case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246 esac
3247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248 $as_echo "$ac_try_echo"; } >&5
3249 (eval "$ac_link") 2>&5
3250 ac_status=$?
3251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3252 test $ac_status = 0; }
3253 if { ac_try='./conftest$ac_cv_exeext'
3254 { { case "(($ac_try" in
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3257 esac
3258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3259 $as_echo "$ac_try_echo"; } >&5
3260 (eval "$ac_try") 2>&5
3261 ac_status=$?
3262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3263 test $ac_status = 0; }; }; then
3264 cross_compiling=no
3265 else
3266 if test "$cross_compiling" = maybe; then
3267 cross_compiling=yes
3268 else
3269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3271 as_fn_error $? "cannot run C compiled programs.
3272 If you meant to cross compile, use \`--host'.
3273 See \`config.log' for more details" "$LINENO" 5; }
3274 fi
3275 fi
3276 fi
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3278 $as_echo "$cross_compiling" >&6; }
3279
3280 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3281 ac_clean_files=$ac_clean_files_save
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3283 $as_echo_n "checking for suffix of object files... " >&6; }
3284 if ${ac_cv_objext+:} false; then :
3285 $as_echo_n "(cached) " >&6
3286 else
3287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3288 /* end confdefs.h. */
3289
3290 int
3291 main ()
3292 {
3293
3294 ;
3295 return 0;
3296 }
3297 _ACEOF
3298 rm -f conftest.o conftest.obj
3299 if { { ac_try="$ac_compile"
3300 case "(($ac_try" in
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3303 esac
3304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3305 $as_echo "$ac_try_echo"; } >&5
3306 (eval "$ac_compile") 2>&5
3307 ac_status=$?
3308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3309 test $ac_status = 0; }; then :
3310 for ac_file in conftest.o conftest.obj conftest.*; do
3311 test -f "$ac_file" || continue;
3312 case $ac_file in
3313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3314 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3315 break;;
3316 esac
3317 done
3318 else
3319 $as_echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3321
3322 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3324 as_fn_error $? "cannot compute suffix of object files: cannot compile
3325 See \`config.log' for more details" "$LINENO" 5; }
3326 fi
3327 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3328 fi
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3330 $as_echo "$ac_cv_objext" >&6; }
3331 OBJEXT=$ac_cv_objext
3332 ac_objext=$OBJEXT
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3334 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3335 if ${ac_cv_c_compiler_gnu+:} false; then :
3336 $as_echo_n "(cached) " >&6
3337 else
3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339 /* end confdefs.h. */
3340
3341 int
3342 main ()
3343 {
3344 #ifndef __GNUC__
3345 choke me
3346 #endif
3347
3348 ;
3349 return 0;
3350 }
3351 _ACEOF
3352 if ac_fn_c_try_compile "$LINENO"; then :
3353 ac_compiler_gnu=yes
3354 else
3355 ac_compiler_gnu=no
3356 fi
3357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3358 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3359
3360 fi
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3362 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3363 if test $ac_compiler_gnu = yes; then
3364 GCC=yes
3365 else
3366 GCC=
3367 fi
3368 ac_test_CFLAGS=${CFLAGS+set}
3369 ac_save_CFLAGS=$CFLAGS
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3371 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3372 if ${ac_cv_prog_cc_g+:} false; then :
3373 $as_echo_n "(cached) " >&6
3374 else
3375 ac_save_c_werror_flag=$ac_c_werror_flag
3376 ac_c_werror_flag=yes
3377 ac_cv_prog_cc_g=no
3378 CFLAGS="-g"
3379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380 /* end confdefs.h. */
3381
3382 int
3383 main ()
3384 {
3385
3386 ;
3387 return 0;
3388 }
3389 _ACEOF
3390 if ac_fn_c_try_compile "$LINENO"; then :
3391 ac_cv_prog_cc_g=yes
3392 else
3393 CFLAGS=""
3394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395 /* end confdefs.h. */
3396
3397 int
3398 main ()
3399 {
3400
3401 ;
3402 return 0;
3403 }
3404 _ACEOF
3405 if ac_fn_c_try_compile "$LINENO"; then :
3406
3407 else
3408 ac_c_werror_flag=$ac_save_c_werror_flag
3409 CFLAGS="-g"
3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411 /* end confdefs.h. */
3412
3413 int
3414 main ()
3415 {
3416
3417 ;
3418 return 0;
3419 }
3420 _ACEOF
3421 if ac_fn_c_try_compile "$LINENO"; then :
3422 ac_cv_prog_cc_g=yes
3423 fi
3424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3425 fi
3426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3427 fi
3428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3429 ac_c_werror_flag=$ac_save_c_werror_flag
3430 fi
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3432 $as_echo "$ac_cv_prog_cc_g" >&6; }
3433 if test "$ac_test_CFLAGS" = set; then
3434 CFLAGS=$ac_save_CFLAGS
3435 elif test $ac_cv_prog_cc_g = yes; then
3436 if test "$GCC" = yes; then
3437 CFLAGS="-g -O2"
3438 else
3439 CFLAGS="-g"
3440 fi
3441 else
3442 if test "$GCC" = yes; then
3443 CFLAGS="-O2"
3444 else
3445 CFLAGS=
3446 fi
3447 fi
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3449 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3450 if ${ac_cv_prog_cc_c89+:} false; then :
3451 $as_echo_n "(cached) " >&6
3452 else
3453 ac_cv_prog_cc_c89=no
3454 ac_save_CC=$CC
3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456 /* end confdefs.h. */
3457 #include <stdarg.h>
3458 #include <stdio.h>
3459 #include <sys/types.h>
3460 #include <sys/stat.h>
3461 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3462 struct buf { int x; };
3463 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3464 static char *e (p, i)
3465 char **p;
3466 int i;
3467 {
3468 return p[i];
3469 }
3470 static char *f (char * (*g) (char **, int), char **p, ...)
3471 {
3472 char *s;
3473 va_list v;
3474 va_start (v,p);
3475 s = g (p, va_arg (v,int));
3476 va_end (v);
3477 return s;
3478 }
3479
3480 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3481 function prototypes and stuff, but not '\xHH' hex character constants.
3482 These don't provoke an error unfortunately, instead are silently treated
3483 as 'x'. The following induces an error, until -std is added to get
3484 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3485 array size at least. It's necessary to write '\x00'==0 to get something
3486 that's true only with -std. */
3487 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3488
3489 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3490 inside strings and character constants. */
3491 #define FOO(x) 'x'
3492 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3493
3494 int test (int i, double x);
3495 struct s1 {int (*f) (int a);};
3496 struct s2 {int (*f) (double a);};
3497 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3498 int argc;
3499 char **argv;
3500 int
3501 main ()
3502 {
3503 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3504 ;
3505 return 0;
3506 }
3507 _ACEOF
3508 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3509 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3510 do
3511 CC="$ac_save_CC $ac_arg"
3512 if ac_fn_c_try_compile "$LINENO"; then :
3513 ac_cv_prog_cc_c89=$ac_arg
3514 fi
3515 rm -f core conftest.err conftest.$ac_objext
3516 test "x$ac_cv_prog_cc_c89" != "xno" && break
3517 done
3518 rm -f conftest.$ac_ext
3519 CC=$ac_save_CC
3520
3521 fi
3522 # AC_CACHE_VAL
3523 case "x$ac_cv_prog_cc_c89" in
3524 x)
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3526 $as_echo "none needed" >&6; } ;;
3527 xno)
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3529 $as_echo "unsupported" >&6; } ;;
3530 *)
3531 CC="$CC $ac_cv_prog_cc_c89"
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3533 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3534 esac
3535 if test "x$ac_cv_prog_cc_c89" != xno; then :
3536
3537 fi
3538
3539 ac_ext=c
3540 ac_cpp='$CPP $CPPFLAGS'
3541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3544
3545 depcc="$CC" am_compiler_list=
3546
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3548 $as_echo_n "checking dependency style of $depcc... " >&6; }
3549 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3550 $as_echo_n "(cached) " >&6
3551 else
3552 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3553 # We make a subdir and do the tests there. Otherwise we can end up
3554 # making bogus files that we don't know about and never remove. For
3555 # instance it was reported that on HP-UX the gcc test will end up
3556 # making a dummy file named `D' -- because `-MD' means `put the output
3557 # in D'.
3558 rm -rf conftest.dir
3559 mkdir conftest.dir
3560 # Copy depcomp to subdir because otherwise we won't find it if we're
3561 # using a relative directory.
3562 cp "$am_depcomp" conftest.dir
3563 cd conftest.dir
3564 # We will build objects and dependencies in a subdirectory because
3565 # it helps to detect inapplicable dependency modes. For instance
3566 # both Tru64's cc and ICC support -MD to output dependencies as a
3567 # side effect of compilation, but ICC will put the dependencies in
3568 # the current directory while Tru64 will put them in the object
3569 # directory.
3570 mkdir sub
3571
3572 am_cv_CC_dependencies_compiler_type=none
3573 if test "$am_compiler_list" = ""; then
3574 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3575 fi
3576 am__universal=false
3577 case " $depcc " in #(
3578 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3579 esac
3580
3581 for depmode in $am_compiler_list; do
3582 # Setup a source with many dependencies, because some compilers
3583 # like to wrap large dependency lists on column 80 (with \), and
3584 # we should not choose a depcomp mode which is confused by this.
3585 #
3586 # We need to recreate these files for each test, as the compiler may
3587 # overwrite some of them when testing with obscure command lines.
3588 # This happens at least with the AIX C compiler.
3589 : > sub/conftest.c
3590 for i in 1 2 3 4 5 6; do
3591 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3592 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3593 # Solaris 8's {/usr,}/bin/sh.
3594 touch sub/conftst$i.h
3595 done
3596 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3597
3598 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3599 # mode. It turns out that the SunPro C++ compiler does not properly
3600 # handle `-M -o', and we need to detect this. Also, some Intel
3601 # versions had trouble with output in subdirs
3602 am__obj=sub/conftest.${OBJEXT-o}
3603 am__minus_obj="-o $am__obj"
3604 case $depmode in
3605 gcc)
3606 # This depmode causes a compiler race in universal mode.
3607 test "$am__universal" = false || continue
3608 ;;
3609 nosideeffect)
3610 # after this tag, mechanisms are not by side-effect, so they'll
3611 # only be used when explicitly requested
3612 if test "x$enable_dependency_tracking" = xyes; then
3613 continue
3614 else
3615 break
3616 fi
3617 ;;
3618 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3619 # This compiler won't grok `-c -o', but also, the minuso test has
3620 # not run yet. These depmodes are late enough in the game, and
3621 # so weak that their functioning should not be impacted.
3622 am__obj=conftest.${OBJEXT-o}
3623 am__minus_obj=
3624 ;;
3625 none) break ;;
3626 esac
3627 if depmode=$depmode \
3628 source=sub/conftest.c object=$am__obj \
3629 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3630 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3631 >/dev/null 2>conftest.err &&
3632 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3633 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3634 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3635 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3636 # icc doesn't choke on unknown options, it will just issue warnings
3637 # or remarks (even with -Werror). So we grep stderr for any message
3638 # that says an option was ignored or not supported.
3639 # When given -MP, icc 7.0 and 7.1 complain thusly:
3640 # icc: Command line warning: ignoring option '-M'; no argument required
3641 # The diagnosis changed in icc 8.0:
3642 # icc: Command line remark: option '-MP' not supported
3643 if (grep 'ignoring option' conftest.err ||
3644 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3645 am_cv_CC_dependencies_compiler_type=$depmode
3646 break
3647 fi
3648 fi
3649 done
3650
3651 cd ..
3652 rm -rf conftest.dir
3653 else
3654 am_cv_CC_dependencies_compiler_type=none
3655 fi
3656
3657 fi
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3659 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3660 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3661
3662 if
3663 test "x$enable_dependency_tracking" != xno \
3664 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3665 am__fastdepCC_TRUE=
3666 am__fastdepCC_FALSE='#'
3667 else
3668 am__fastdepCC_TRUE='#'
3669 am__fastdepCC_FALSE=
3670 fi
3671
3672
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3674 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3675 if ${ac_cv_prog_cc_c99+:} false; then :
3676 $as_echo_n "(cached) " >&6
3677 else
3678 ac_cv_prog_cc_c99=no
3679 ac_save_CC=$CC
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h. */
3682 #include <stdarg.h>
3683 #include <stdbool.h>
3684 #include <stdlib.h>
3685 #include <wchar.h>
3686 #include <stdio.h>
3687
3688 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3689 #define debug(...) fprintf (stderr, __VA_ARGS__)
3690 #define showlist(...) puts (#__VA_ARGS__)
3691 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3692 static void
3693 test_varargs_macros (void)
3694 {
3695 int x = 1234;
3696 int y = 5678;
3697 debug ("Flag");
3698 debug ("X = %d\n", x);
3699 showlist (The first, second, and third items.);
3700 report (x>y, "x is %d but y is %d", x, y);
3701 }
3702
3703 // Check long long types.
3704 #define BIG64 18446744073709551615ull
3705 #define BIG32 4294967295ul
3706 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3707 #if !BIG_OK
3708 your preprocessor is broken;
3709 #endif
3710 #if BIG_OK
3711 #else
3712 your preprocessor is broken;
3713 #endif
3714 static long long int bignum = -9223372036854775807LL;
3715 static unsigned long long int ubignum = BIG64;
3716
3717 struct incomplete_array
3718 {
3719 int datasize;
3720 double data[];
3721 };
3722
3723 struct named_init {
3724 int number;
3725 const wchar_t *name;
3726 double average;
3727 };
3728
3729 typedef const char *ccp;
3730
3731 static inline int
3732 test_restrict (ccp restrict text)
3733 {
3734 // See if C++-style comments work.
3735 // Iterate through items via the restricted pointer.
3736 // Also check for declarations in for loops.
3737 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3738 continue;
3739 return 0;
3740 }
3741
3742 // Check varargs and va_copy.
3743 static void
3744 test_varargs (const char *format, ...)
3745 {
3746 va_list args;
3747 va_start (args, format);
3748 va_list args_copy;
3749 va_copy (args_copy, args);
3750
3751 const char *str;
3752 int number;
3753 float fnumber;
3754
3755 while (*format)
3756 {
3757 switch (*format++)
3758 {
3759 case 's': // string
3760 str = va_arg (args_copy, const char *);
3761 break;
3762 case 'd': // int
3763 number = va_arg (args_copy, int);
3764 break;
3765 case 'f': // float
3766 fnumber = va_arg (args_copy, double);
3767 break;
3768 default:
3769 break;
3770 }
3771 }
3772 va_end (args_copy);
3773 va_end (args);
3774 }
3775
3776 int
3777 main ()
3778 {
3779
3780 // Check bool.
3781 _Bool success = false;
3782
3783 // Check restrict.
3784 if (test_restrict ("String literal") == 0)
3785 success = true;
3786 char *restrict newvar = "Another string";
3787
3788 // Check varargs.
3789 test_varargs ("s, d' f .", "string", 65, 34.234);
3790 test_varargs_macros ();
3791
3792 // Check flexible array members.
3793 struct incomplete_array *ia =
3794 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3795 ia->datasize = 10;
3796 for (int i = 0; i < ia->datasize; ++i)
3797 ia->data[i] = i * 1.234;
3798
3799 // Check named initializers.
3800 struct named_init ni = {
3801 .number = 34,
3802 .name = L"Test wide string",
3803 .average = 543.34343,
3804 };
3805
3806 ni.number = 58;
3807
3808 int dynamic_array[ni.number];
3809 dynamic_array[ni.number - 1] = 543;
3810
3811 // work around unused variable warnings
3812 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3813 || dynamic_array[ni.number - 1] != 543);
3814
3815 ;
3816 return 0;
3817 }
3818 _ACEOF
3819 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3820 do
3821 CC="$ac_save_CC $ac_arg"
3822 if ac_fn_c_try_compile "$LINENO"; then :
3823 ac_cv_prog_cc_c99=$ac_arg
3824 fi
3825 rm -f core conftest.err conftest.$ac_objext
3826 test "x$ac_cv_prog_cc_c99" != "xno" && break
3827 done
3828 rm -f conftest.$ac_ext
3829 CC=$ac_save_CC
3830
3831 fi
3832 # AC_CACHE_VAL
3833 case "x$ac_cv_prog_cc_c99" in
3834 x)
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3836 $as_echo "none needed" >&6; } ;;
3837 xno)
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3839 $as_echo "unsupported" >&6; } ;;
3840 *)
3841 CC="$CC $ac_cv_prog_cc_c99"
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3843 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3844 esac
3845 if test "x$ac_cv_prog_cc_c99" != xno; then :
3846
3847 fi
3848
3849
3850
3851 ac_ext=c
3852 ac_cpp='$CPP $CPPFLAGS'
3853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3857 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3858 # On Suns, sometimes $CPP names a directory.
3859 if test -n "$CPP" && test -d "$CPP"; then
3860 CPP=
3861 fi
3862 if test -z "$CPP"; then
3863 if ${ac_cv_prog_CPP+:} false; then :
3864 $as_echo_n "(cached) " >&6
3865 else
3866 # Double quotes because CPP needs to be expanded
3867 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3868 do
3869 ac_preproc_ok=false
3870 for ac_c_preproc_warn_flag in '' yes
3871 do
3872 # Use a header file that comes with gcc, so configuring glibc
3873 # with a fresh cross-compiler works.
3874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3875 # <limits.h> exists even on freestanding compilers.
3876 # On the NeXT, cc -E runs the code through the compiler's parser,
3877 # not just through cpp. "Syntax error" is here to catch this case.
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3880 #ifdef __STDC__
3881 # include <limits.h>
3882 #else
3883 # include <assert.h>
3884 #endif
3885 Syntax error
3886 _ACEOF
3887 if ac_fn_c_try_cpp "$LINENO"; then :
3888
3889 else
3890 # Broken: fails on valid input.
3891 continue
3892 fi
3893 rm -f conftest.err conftest.i conftest.$ac_ext
3894
3895 # OK, works on sane cases. Now check whether nonexistent headers
3896 # can be detected and how.
3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3899 #include <ac_nonexistent.h>
3900 _ACEOF
3901 if ac_fn_c_try_cpp "$LINENO"; then :
3902 # Broken: success on invalid input.
3903 continue
3904 else
3905 # Passes both tests.
3906 ac_preproc_ok=:
3907 break
3908 fi
3909 rm -f conftest.err conftest.i conftest.$ac_ext
3910
3911 done
3912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3913 rm -f conftest.i conftest.err conftest.$ac_ext
3914 if $ac_preproc_ok; then :
3915 break
3916 fi
3917
3918 done
3919 ac_cv_prog_CPP=$CPP
3920
3921 fi
3922 CPP=$ac_cv_prog_CPP
3923 else
3924 ac_cv_prog_CPP=$CPP
3925 fi
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3927 $as_echo "$CPP" >&6; }
3928 ac_preproc_ok=false
3929 for ac_c_preproc_warn_flag in '' yes
3930 do
3931 # Use a header file that comes with gcc, so configuring glibc
3932 # with a fresh cross-compiler works.
3933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3934 # <limits.h> exists even on freestanding compilers.
3935 # On the NeXT, cc -E runs the code through the compiler's parser,
3936 # not just through cpp. "Syntax error" is here to catch this case.
3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938 /* end confdefs.h. */
3939 #ifdef __STDC__
3940 # include <limits.h>
3941 #else
3942 # include <assert.h>
3943 #endif
3944 Syntax error
3945 _ACEOF
3946 if ac_fn_c_try_cpp "$LINENO"; then :
3947
3948 else
3949 # Broken: fails on valid input.
3950 continue
3951 fi
3952 rm -f conftest.err conftest.i conftest.$ac_ext
3953
3954 # OK, works on sane cases. Now check whether nonexistent headers
3955 # can be detected and how.
3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h. */
3958 #include <ac_nonexistent.h>
3959 _ACEOF
3960 if ac_fn_c_try_cpp "$LINENO"; then :
3961 # Broken: success on invalid input.
3962 continue
3963 else
3964 # Passes both tests.
3965 ac_preproc_ok=:
3966 break
3967 fi
3968 rm -f conftest.err conftest.i conftest.$ac_ext
3969
3970 done
3971 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3972 rm -f conftest.i conftest.err conftest.$ac_ext
3973 if $ac_preproc_ok; then :
3974
3975 else
3976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3978 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3979 See \`config.log' for more details" "$LINENO" 5; }
3980 fi
3981
3982 ac_ext=c
3983 ac_cpp='$CPP $CPPFLAGS'
3984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3987
3988
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3990 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3991 if ${ac_cv_path_GREP+:} false; then :
3992 $as_echo_n "(cached) " >&6
3993 else
3994 if test -z "$GREP"; then
3995 ac_path_GREP_found=false
3996 # Loop through the user's path and test for each of PROGNAME-LIST
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3999 do
4000 IFS=$as_save_IFS
4001 test -z "$as_dir" && as_dir=.
4002 for ac_prog in grep ggrep; do
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4005 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4006 # Check for GNU ac_path_GREP and select it if it is found.
4007 # Check for GNU $ac_path_GREP
4008 case `"$ac_path_GREP" --version 2>&1` in
4009 *GNU*)
4010 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4011 *)
4012 ac_count=0
4013 $as_echo_n 0123456789 >"conftest.in"
4014 while :
4015 do
4016 cat "conftest.in" "conftest.in" >"conftest.tmp"
4017 mv "conftest.tmp" "conftest.in"
4018 cp "conftest.in" "conftest.nl"
4019 $as_echo 'GREP' >> "conftest.nl"
4020 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4021 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4022 as_fn_arith $ac_count + 1 && ac_count=$as_val
4023 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4024 # Best one so far, save it but keep looking for a better one
4025 ac_cv_path_GREP="$ac_path_GREP"
4026 ac_path_GREP_max=$ac_count
4027 fi
4028 # 10*(2^10) chars as input seems more than enough
4029 test $ac_count -gt 10 && break
4030 done
4031 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4032 esac
4033
4034 $ac_path_GREP_found && break 3
4035 done
4036 done
4037 done
4038 IFS=$as_save_IFS
4039 if test -z "$ac_cv_path_GREP"; then
4040 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4041 fi
4042 else
4043 ac_cv_path_GREP=$GREP
4044 fi
4045
4046 fi
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4048 $as_echo "$ac_cv_path_GREP" >&6; }
4049 GREP="$ac_cv_path_GREP"
4050
4051
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4053 $as_echo_n "checking for egrep... " >&6; }
4054 if ${ac_cv_path_EGREP+:} false; then :
4055 $as_echo_n "(cached) " >&6
4056 else
4057 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4058 then ac_cv_path_EGREP="$GREP -E"
4059 else
4060 if test -z "$EGREP"; then
4061 ac_path_EGREP_found=false
4062 # Loop through the user's path and test for each of PROGNAME-LIST
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4065 do
4066 IFS=$as_save_IFS
4067 test -z "$as_dir" && as_dir=.
4068 for ac_prog in egrep; do
4069 for ac_exec_ext in '' $ac_executable_extensions; do
4070 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4071 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4072 # Check for GNU ac_path_EGREP and select it if it is found.
4073 # Check for GNU $ac_path_EGREP
4074 case `"$ac_path_EGREP" --version 2>&1` in
4075 *GNU*)
4076 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4077 *)
4078 ac_count=0
4079 $as_echo_n 0123456789 >"conftest.in"
4080 while :
4081 do
4082 cat "conftest.in" "conftest.in" >"conftest.tmp"
4083 mv "conftest.tmp" "conftest.in"
4084 cp "conftest.in" "conftest.nl"
4085 $as_echo 'EGREP' >> "conftest.nl"
4086 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4087 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4088 as_fn_arith $ac_count + 1 && ac_count=$as_val
4089 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4090 # Best one so far, save it but keep looking for a better one
4091 ac_cv_path_EGREP="$ac_path_EGREP"
4092 ac_path_EGREP_max=$ac_count
4093 fi
4094 # 10*(2^10) chars as input seems more than enough
4095 test $ac_count -gt 10 && break
4096 done
4097 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4098 esac
4099
4100 $ac_path_EGREP_found && break 3
4101 done
4102 done
4103 done
4104 IFS=$as_save_IFS
4105 if test -z "$ac_cv_path_EGREP"; then
4106 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4107 fi
4108 else
4109 ac_cv_path_EGREP=$EGREP
4110 fi
4111
4112 fi
4113 fi
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4115 $as_echo "$ac_cv_path_EGREP" >&6; }
4116 EGREP="$ac_cv_path_EGREP"
4117
4118
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4120 $as_echo_n "checking for ANSI C header files... " >&6; }
4121 if ${ac_cv_header_stdc+:} false; then :
4122 $as_echo_n "(cached) " >&6
4123 else
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4126 #include <stdlib.h>
4127 #include <stdarg.h>
4128 #include <string.h>
4129 #include <float.h>
4130
4131 int
4132 main ()
4133 {
4134
4135 ;
4136 return 0;
4137 }
4138 _ACEOF
4139 if ac_fn_c_try_compile "$LINENO"; then :
4140 ac_cv_header_stdc=yes
4141 else
4142 ac_cv_header_stdc=no
4143 fi
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145
4146 if test $ac_cv_header_stdc = yes; then
4147 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h. */
4150 #include <string.h>
4151
4152 _ACEOF
4153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4154 $EGREP "memchr" >/dev/null 2>&1; then :
4155
4156 else
4157 ac_cv_header_stdc=no
4158 fi
4159 rm -f conftest*
4160
4161 fi
4162
4163 if test $ac_cv_header_stdc = yes; then
4164 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4167 #include <stdlib.h>
4168
4169 _ACEOF
4170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4171 $EGREP "free" >/dev/null 2>&1; then :
4172
4173 else
4174 ac_cv_header_stdc=no
4175 fi
4176 rm -f conftest*
4177
4178 fi
4179
4180 if test $ac_cv_header_stdc = yes; then
4181 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4182 if test "$cross_compiling" = yes; then :
4183 :
4184 else
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h. */
4187 #include <ctype.h>
4188 #include <stdlib.h>
4189 #if ((' ' & 0x0FF) == 0x020)
4190 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4191 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4192 #else
4193 # define ISLOWER(c) \
4194 (('a' <= (c) && (c) <= 'i') \
4195 || ('j' <= (c) && (c) <= 'r') \
4196 || ('s' <= (c) && (c) <= 'z'))
4197 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4198 #endif
4199
4200 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4201 int
4202 main ()
4203 {
4204 int i;
4205 for (i = 0; i < 256; i++)
4206 if (XOR (islower (i), ISLOWER (i))
4207 || toupper (i) != TOUPPER (i))
4208 return 2;
4209 return 0;
4210 }
4211 _ACEOF
4212 if ac_fn_c_try_run "$LINENO"; then :
4213
4214 else
4215 ac_cv_header_stdc=no
4216 fi
4217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4218 conftest.$ac_objext conftest.beam conftest.$ac_ext
4219 fi
4220
4221 fi
4222 fi
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4224 $as_echo "$ac_cv_header_stdc" >&6; }
4225 if test $ac_cv_header_stdc = yes; then
4226
4227 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4228
4229 fi
4230
4231 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4232 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4233 inttypes.h stdint.h unistd.h
4234 do :
4235 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4236 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4237 "
4238 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4239 cat >>confdefs.h <<_ACEOF
4240 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4241 _ACEOF
4242
4243 fi
4244
4245 done
4246
4247
4248
4249
4250
4251
4252 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4253 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4254 CLANGCC="yes"
4255 else
4256 CLANGCC="no"
4257 fi
4258
4259 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4260 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4261 INTELCC="yes"
4262 else
4263 INTELCC="no"
4264 fi
4265
4266 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4267 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4268 SUNCC="yes"
4269 else
4270 SUNCC="no"
4271 fi
4272
4273
4274
4275
4276 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4277 if test -n "$ac_tool_prefix"; then
4278 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4279 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4281 $as_echo_n "checking for $ac_word... " >&6; }
4282 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4283 $as_echo_n "(cached) " >&6
4284 else
4285 case $PKG_CONFIG in
4286 [\\/]* | ?:[\\/]*)
4287 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4288 ;;
4289 *)
4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 for as_dir in $PATH
4292 do
4293 IFS=$as_save_IFS
4294 test -z "$as_dir" && as_dir=.
4295 for ac_exec_ext in '' $ac_executable_extensions; do
4296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4297 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 break 2
4300 fi
4301 done
4302 done
4303 IFS=$as_save_IFS
4304
4305 ;;
4306 esac
4307 fi
4308 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4309 if test -n "$PKG_CONFIG"; then
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4311 $as_echo "$PKG_CONFIG" >&6; }
4312 else
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314 $as_echo "no" >&6; }
4315 fi
4316
4317
4318 fi
4319 if test -z "$ac_cv_path_PKG_CONFIG"; then
4320 ac_pt_PKG_CONFIG=$PKG_CONFIG
4321 # Extract the first word of "pkg-config", so it can be a program name with args.
4322 set dummy pkg-config; ac_word=$2
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4324 $as_echo_n "checking for $ac_word... " >&6; }
4325 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4326 $as_echo_n "(cached) " >&6
4327 else
4328 case $ac_pt_PKG_CONFIG in
4329 [\\/]* | ?:[\\/]*)
4330 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4331 ;;
4332 *)
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 for as_dir in $PATH
4335 do
4336 IFS=$as_save_IFS
4337 test -z "$as_dir" && as_dir=.
4338 for ac_exec_ext in '' $ac_executable_extensions; do
4339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4340 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4342 break 2
4343 fi
4344 done
4345 done
4346 IFS=$as_save_IFS
4347
4348 ;;
4349 esac
4350 fi
4351 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4352 if test -n "$ac_pt_PKG_CONFIG"; then
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4354 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4355 else
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357 $as_echo "no" >&6; }
4358 fi
4359
4360 if test "x$ac_pt_PKG_CONFIG" = x; then
4361 PKG_CONFIG=""
4362 else
4363 case $cross_compiling:$ac_tool_warned in
4364 yes:)
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4367 ac_tool_warned=yes ;;
4368 esac
4369 PKG_CONFIG=$ac_pt_PKG_CONFIG
4370 fi
4371 else
4372 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4373 fi
4374
4375 fi
4376 if test -n "$PKG_CONFIG"; then
4377 _pkg_min_version=0.9.0
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4379 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4380 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4382 $as_echo "yes" >&6; }
4383 else
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385 $as_echo "no" >&6; }
4386 PKG_CONFIG=""
4387 fi
4388
4389 fi
4390 # Make sure we can run config.sub.
4391 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4392 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4393
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4395 $as_echo_n "checking build system type... " >&6; }
4396 if ${ac_cv_build+:} false; then :
4397 $as_echo_n "(cached) " >&6
4398 else
4399 ac_build_alias=$build_alias
4400 test "x$ac_build_alias" = x &&
4401 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4402 test "x$ac_build_alias" = x &&
4403 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4404 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4405 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4406
4407 fi
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4409 $as_echo "$ac_cv_build" >&6; }
4410 case $ac_cv_build in
4411 *-*-*) ;;
4412 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4413 esac
4414 build=$ac_cv_build
4415 ac_save_IFS=$IFS; IFS='-'
4416 set x $ac_cv_build
4417 shift
4418 build_cpu=$1
4419 build_vendor=$2
4420 shift; shift
4421 # Remember, the first character of IFS is used to create $*,
4422 # except with old shells:
4423 build_os=$*
4424 IFS=$ac_save_IFS
4425 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4426
4427
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4429 $as_echo_n "checking host system type... " >&6; }
4430 if ${ac_cv_host+:} false; then :
4431 $as_echo_n "(cached) " >&6
4432 else
4433 if test "x$host_alias" = x; then
4434 ac_cv_host=$ac_cv_build
4435 else
4436 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4437 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4438 fi
4439
4440 fi
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4442 $as_echo "$ac_cv_host" >&6; }
4443 case $ac_cv_host in
4444 *-*-*) ;;
4445 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4446 esac
4447 host=$ac_cv_host
4448 ac_save_IFS=$IFS; IFS='-'
4449 set x $ac_cv_host
4450 shift
4451 host_cpu=$1
4452 host_vendor=$2
4453 shift; shift
4454 # Remember, the first character of IFS is used to create $*,
4455 # except with old shells:
4456 host_os=$*
4457 IFS=$ac_save_IFS
4458 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4459
4460
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4462 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4463 if ${ac_cv_path_SED+:} false; then :
4464 $as_echo_n "(cached) " >&6
4465 else
4466 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4467 for ac_i in 1 2 3 4 5 6 7; do
4468 ac_script="$ac_script$as_nl$ac_script"
4469 done
4470 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4471 { ac_script=; unset ac_script;}
4472 if test -z "$SED"; then
4473 ac_path_SED_found=false
4474 # Loop through the user's path and test for each of PROGNAME-LIST
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH
4477 do
4478 IFS=$as_save_IFS
4479 test -z "$as_dir" && as_dir=.
4480 for ac_prog in sed gsed; do
4481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4483 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4484 # Check for GNU ac_path_SED and select it if it is found.
4485 # Check for GNU $ac_path_SED
4486 case `"$ac_path_SED" --version 2>&1` in
4487 *GNU*)
4488 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4489 *)
4490 ac_count=0
4491 $as_echo_n 0123456789 >"conftest.in"
4492 while :
4493 do
4494 cat "conftest.in" "conftest.in" >"conftest.tmp"
4495 mv "conftest.tmp" "conftest.in"
4496 cp "conftest.in" "conftest.nl"
4497 $as_echo '' >> "conftest.nl"
4498 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4499 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4500 as_fn_arith $ac_count + 1 && ac_count=$as_val
4501 if test $ac_count -gt ${ac_path_SED_max-0}; then
4502 # Best one so far, save it but keep looking for a better one
4503 ac_cv_path_SED="$ac_path_SED"
4504 ac_path_SED_max=$ac_count
4505 fi
4506 # 10*(2^10) chars as input seems more than enough
4507 test $ac_count -gt 10 && break
4508 done
4509 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4510 esac
4511
4512 $ac_path_SED_found && break 3
4513 done
4514 done
4515 done
4516 IFS=$as_save_IFS
4517 if test -z "$ac_cv_path_SED"; then
4518 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4519 fi
4520 else
4521 ac_cv_path_SED=$SED
4522 fi
4523
4524 fi
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4526 $as_echo "$ac_cv_path_SED" >&6; }
4527 SED="$ac_cv_path_SED"
4528 rm -f conftest.sed
4529
4530
4531
4532
4533
4534
4535 # Check whether --enable-selective-werror was given.
4536 if test "${enable_selective_werror+set}" = set; then :
4537 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4538 else
4539 SELECTIVE_WERROR=yes
4540 fi
4541
4542
4543
4544
4545
4546 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4547 if test "x$SUNCC" = "xyes"; then
4548 BASE_CFLAGS="-v"
4549 else
4550 BASE_CFLAGS=""
4551 fi
4552
4553 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567 xorg_testset_save_CFLAGS="$CFLAGS"
4568
4569 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4572 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4573 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4574 $as_echo_n "(cached) " >&6
4575 else
4576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4577 /* end confdefs.h. */
4578 int i;
4579 _ACEOF
4580 if ac_fn_c_try_compile "$LINENO"; then :
4581 xorg_cv_cc_flag_unknown_warning_option=yes
4582 else
4583 xorg_cv_cc_flag_unknown_warning_option=no
4584 fi
4585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4586 fi
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4588 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4589 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4590 CFLAGS="$xorg_testset_save_CFLAGS"
4591 fi
4592
4593 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4595 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4596 fi
4597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4599 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4600 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4601 $as_echo_n "(cached) " >&6
4602 else
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4605 int i;
4606 _ACEOF
4607 if ac_fn_c_try_compile "$LINENO"; then :
4608 xorg_cv_cc_flag_unused_command_line_argument=yes
4609 else
4610 xorg_cv_cc_flag_unused_command_line_argument=no
4611 fi
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 fi
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4615 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4616 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4617 CFLAGS="$xorg_testset_save_CFLAGS"
4618 fi
4619
4620 found="no"
4621
4622 if test $found = "no" ; then
4623 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4625 fi
4626
4627 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4629 fi
4630
4631 CFLAGS="$CFLAGS -Wall"
4632
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4634 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4635 cacheid=xorg_cv_cc_flag__Wall
4636 if eval \${$cacheid+:} false; then :
4637 $as_echo_n "(cached) " >&6
4638 else
4639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640 /* end confdefs.h. */
4641 int i;
4642 int
4643 main ()
4644 {
4645
4646 ;
4647 return 0;
4648 }
4649 _ACEOF
4650 if ac_fn_c_try_link "$LINENO"; then :
4651 eval $cacheid=yes
4652 else
4653 eval $cacheid=no
4654 fi
4655 rm -f core conftest.err conftest.$ac_objext \
4656 conftest$ac_exeext conftest.$ac_ext
4657 fi
4658
4659
4660 CFLAGS="$xorg_testset_save_CFLAGS"
4661
4662 eval supported=\$$cacheid
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4664 $as_echo "$supported" >&6; }
4665 if test "$supported" = "yes" ; then
4666 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4667 found="yes"
4668 fi
4669 fi
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685 xorg_testset_save_CFLAGS="$CFLAGS"
4686
4687 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4688 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4690 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4691 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695 /* end confdefs.h. */
4696 int i;
4697 _ACEOF
4698 if ac_fn_c_try_compile "$LINENO"; then :
4699 xorg_cv_cc_flag_unknown_warning_option=yes
4700 else
4701 xorg_cv_cc_flag_unknown_warning_option=no
4702 fi
4703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4704 fi
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4706 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4707 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4708 CFLAGS="$xorg_testset_save_CFLAGS"
4709 fi
4710
4711 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4713 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4714 fi
4715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4717 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4718 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4719 $as_echo_n "(cached) " >&6
4720 else
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h. */
4723 int i;
4724 _ACEOF
4725 if ac_fn_c_try_compile "$LINENO"; then :
4726 xorg_cv_cc_flag_unused_command_line_argument=yes
4727 else
4728 xorg_cv_cc_flag_unused_command_line_argument=no
4729 fi
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 fi
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4733 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4734 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4735 CFLAGS="$xorg_testset_save_CFLAGS"
4736 fi
4737
4738 found="no"
4739
4740 if test $found = "no" ; then
4741 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4742 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4743 fi
4744
4745 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4747 fi
4748
4749 CFLAGS="$CFLAGS -Wpointer-arith"
4750
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4752 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4753 cacheid=xorg_cv_cc_flag__Wpointer_arith
4754 if eval \${$cacheid+:} false; then :
4755 $as_echo_n "(cached) " >&6
4756 else
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4759 int i;
4760 int
4761 main ()
4762 {
4763
4764 ;
4765 return 0;
4766 }
4767 _ACEOF
4768 if ac_fn_c_try_link "$LINENO"; then :
4769 eval $cacheid=yes
4770 else
4771 eval $cacheid=no
4772 fi
4773 rm -f core conftest.err conftest.$ac_objext \
4774 conftest$ac_exeext conftest.$ac_ext
4775 fi
4776
4777
4778 CFLAGS="$xorg_testset_save_CFLAGS"
4779
4780 eval supported=\$$cacheid
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4782 $as_echo "$supported" >&6; }
4783 if test "$supported" = "yes" ; then
4784 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4785 found="yes"
4786 fi
4787 fi
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803 xorg_testset_save_CFLAGS="$CFLAGS"
4804
4805 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4806 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4808 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4809 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4810 $as_echo_n "(cached) " >&6
4811 else
4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813 /* end confdefs.h. */
4814 int i;
4815 _ACEOF
4816 if ac_fn_c_try_compile "$LINENO"; then :
4817 xorg_cv_cc_flag_unknown_warning_option=yes
4818 else
4819 xorg_cv_cc_flag_unknown_warning_option=no
4820 fi
4821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4822 fi
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4824 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4825 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4826 CFLAGS="$xorg_testset_save_CFLAGS"
4827 fi
4828
4829 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4831 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4832 fi
4833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4835 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4836 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4837 $as_echo_n "(cached) " >&6
4838 else
4839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4840 /* end confdefs.h. */
4841 int i;
4842 _ACEOF
4843 if ac_fn_c_try_compile "$LINENO"; then :
4844 xorg_cv_cc_flag_unused_command_line_argument=yes
4845 else
4846 xorg_cv_cc_flag_unused_command_line_argument=no
4847 fi
4848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4849 fi
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4851 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4852 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4853 CFLAGS="$xorg_testset_save_CFLAGS"
4854 fi
4855
4856 found="no"
4857
4858 if test $found = "no" ; then
4859 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4861 fi
4862
4863 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4865 fi
4866
4867 CFLAGS="$CFLAGS -Wmissing-declarations"
4868
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4870 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4871 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4872 if eval \${$cacheid+:} false; then :
4873 $as_echo_n "(cached) " >&6
4874 else
4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876 /* end confdefs.h. */
4877 int i;
4878 int
4879 main ()
4880 {
4881
4882 ;
4883 return 0;
4884 }
4885 _ACEOF
4886 if ac_fn_c_try_link "$LINENO"; then :
4887 eval $cacheid=yes
4888 else
4889 eval $cacheid=no
4890 fi
4891 rm -f core conftest.err conftest.$ac_objext \
4892 conftest$ac_exeext conftest.$ac_ext
4893 fi
4894
4895
4896 CFLAGS="$xorg_testset_save_CFLAGS"
4897
4898 eval supported=\$$cacheid
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4900 $as_echo "$supported" >&6; }
4901 if test "$supported" = "yes" ; then
4902 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4903 found="yes"
4904 fi
4905 fi
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921 xorg_testset_save_CFLAGS="$CFLAGS"
4922
4923 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4924 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4926 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4927 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4928 $as_echo_n "(cached) " >&6
4929 else
4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4932 int i;
4933 _ACEOF
4934 if ac_fn_c_try_compile "$LINENO"; then :
4935 xorg_cv_cc_flag_unknown_warning_option=yes
4936 else
4937 xorg_cv_cc_flag_unknown_warning_option=no
4938 fi
4939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4940 fi
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4942 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4943 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4944 CFLAGS="$xorg_testset_save_CFLAGS"
4945 fi
4946
4947 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4950 fi
4951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4953 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4954 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4955 $as_echo_n "(cached) " >&6
4956 else
4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958 /* end confdefs.h. */
4959 int i;
4960 _ACEOF
4961 if ac_fn_c_try_compile "$LINENO"; then :
4962 xorg_cv_cc_flag_unused_command_line_argument=yes
4963 else
4964 xorg_cv_cc_flag_unused_command_line_argument=no
4965 fi
4966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4967 fi
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4969 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4970 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4971 CFLAGS="$xorg_testset_save_CFLAGS"
4972 fi
4973
4974 found="no"
4975
4976 if test $found = "no" ; then
4977 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4979 fi
4980
4981 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4983 fi
4984
4985 CFLAGS="$CFLAGS -Wformat=2"
4986
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
4988 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
4989 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
4990 if eval \${$cacheid+:} false; then :
4991 $as_echo_n "(cached) " >&6
4992 else
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4995 int i;
4996 int
4997 main ()
4998 {
4999
5000 ;
5001 return 0;
5002 }
5003 _ACEOF
5004 if ac_fn_c_try_link "$LINENO"; then :
5005 eval $cacheid=yes
5006 else
5007 eval $cacheid=no
5008 fi
5009 rm -f core conftest.err conftest.$ac_objext \
5010 conftest$ac_exeext conftest.$ac_ext
5011 fi
5012
5013
5014 CFLAGS="$xorg_testset_save_CFLAGS"
5015
5016 eval supported=\$$cacheid
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5018 $as_echo "$supported" >&6; }
5019 if test "$supported" = "yes" ; then
5020 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5021 found="yes"
5022 fi
5023 fi
5024
5025 if test $found = "no" ; then
5026 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5028 fi
5029
5030 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5032 fi
5033
5034 CFLAGS="$CFLAGS -Wformat"
5035
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5037 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5038 cacheid=xorg_cv_cc_flag__Wformat
5039 if eval \${$cacheid+:} false; then :
5040 $as_echo_n "(cached) " >&6
5041 else
5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043 /* end confdefs.h. */
5044 int i;
5045 int
5046 main ()
5047 {
5048
5049 ;
5050 return 0;
5051 }
5052 _ACEOF
5053 if ac_fn_c_try_link "$LINENO"; then :
5054 eval $cacheid=yes
5055 else
5056 eval $cacheid=no
5057 fi
5058 rm -f core conftest.err conftest.$ac_objext \
5059 conftest$ac_exeext conftest.$ac_ext
5060 fi
5061
5062
5063 CFLAGS="$xorg_testset_save_CFLAGS"
5064
5065 eval supported=\$$cacheid
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5067 $as_echo "$supported" >&6; }
5068 if test "$supported" = "yes" ; then
5069 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5070 found="yes"
5071 fi
5072 fi
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090 xorg_testset_save_CFLAGS="$CFLAGS"
5091
5092 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5095 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5096 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5097 $as_echo_n "(cached) " >&6
5098 else
5099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5100 /* end confdefs.h. */
5101 int i;
5102 _ACEOF
5103 if ac_fn_c_try_compile "$LINENO"; then :
5104 xorg_cv_cc_flag_unknown_warning_option=yes
5105 else
5106 xorg_cv_cc_flag_unknown_warning_option=no
5107 fi
5108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5109 fi
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5111 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5112 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5113 CFLAGS="$xorg_testset_save_CFLAGS"
5114 fi
5115
5116 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5118 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5119 fi
5120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5122 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5123 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5124 $as_echo_n "(cached) " >&6
5125 else
5126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127 /* end confdefs.h. */
5128 int i;
5129 _ACEOF
5130 if ac_fn_c_try_compile "$LINENO"; then :
5131 xorg_cv_cc_flag_unused_command_line_argument=yes
5132 else
5133 xorg_cv_cc_flag_unused_command_line_argument=no
5134 fi
5135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5136 fi
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5138 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5140 CFLAGS="$xorg_testset_save_CFLAGS"
5141 fi
5142
5143 found="no"
5144
5145 if test $found = "no" ; then
5146 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5148 fi
5149
5150 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5152 fi
5153
5154 CFLAGS="$CFLAGS -Wstrict-prototypes"
5155
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5157 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5158 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5159 if eval \${$cacheid+:} false; then :
5160 $as_echo_n "(cached) " >&6
5161 else
5162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163 /* end confdefs.h. */
5164 int i;
5165 int
5166 main ()
5167 {
5168
5169 ;
5170 return 0;
5171 }
5172 _ACEOF
5173 if ac_fn_c_try_link "$LINENO"; then :
5174 eval $cacheid=yes
5175 else
5176 eval $cacheid=no
5177 fi
5178 rm -f core conftest.err conftest.$ac_objext \
5179 conftest$ac_exeext conftest.$ac_ext
5180 fi
5181
5182
5183 CFLAGS="$xorg_testset_save_CFLAGS"
5184
5185 eval supported=\$$cacheid
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5187 $as_echo "$supported" >&6; }
5188 if test "$supported" = "yes" ; then
5189 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5190 found="yes"
5191 fi
5192 fi
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208 xorg_testset_save_CFLAGS="$CFLAGS"
5209
5210 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5213 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5214 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5215 $as_echo_n "(cached) " >&6
5216 else
5217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218 /* end confdefs.h. */
5219 int i;
5220 _ACEOF
5221 if ac_fn_c_try_compile "$LINENO"; then :
5222 xorg_cv_cc_flag_unknown_warning_option=yes
5223 else
5224 xorg_cv_cc_flag_unknown_warning_option=no
5225 fi
5226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5227 fi
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5229 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5230 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5231 CFLAGS="$xorg_testset_save_CFLAGS"
5232 fi
5233
5234 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5236 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5237 fi
5238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5240 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5241 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5242 $as_echo_n "(cached) " >&6
5243 else
5244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5245 /* end confdefs.h. */
5246 int i;
5247 _ACEOF
5248 if ac_fn_c_try_compile "$LINENO"; then :
5249 xorg_cv_cc_flag_unused_command_line_argument=yes
5250 else
5251 xorg_cv_cc_flag_unused_command_line_argument=no
5252 fi
5253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5254 fi
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5256 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5257 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5258 CFLAGS="$xorg_testset_save_CFLAGS"
5259 fi
5260
5261 found="no"
5262
5263 if test $found = "no" ; then
5264 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5266 fi
5267
5268 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5270 fi
5271
5272 CFLAGS="$CFLAGS -Wmissing-prototypes"
5273
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5275 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5276 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5277 if eval \${$cacheid+:} false; then :
5278 $as_echo_n "(cached) " >&6
5279 else
5280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281 /* end confdefs.h. */
5282 int i;
5283 int
5284 main ()
5285 {
5286
5287 ;
5288 return 0;
5289 }
5290 _ACEOF
5291 if ac_fn_c_try_link "$LINENO"; then :
5292 eval $cacheid=yes
5293 else
5294 eval $cacheid=no
5295 fi
5296 rm -f core conftest.err conftest.$ac_objext \
5297 conftest$ac_exeext conftest.$ac_ext
5298 fi
5299
5300
5301 CFLAGS="$xorg_testset_save_CFLAGS"
5302
5303 eval supported=\$$cacheid
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5305 $as_echo "$supported" >&6; }
5306 if test "$supported" = "yes" ; then
5307 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5308 found="yes"
5309 fi
5310 fi
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326 xorg_testset_save_CFLAGS="$CFLAGS"
5327
5328 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5331 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5332 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5333 $as_echo_n "(cached) " >&6
5334 else
5335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336 /* end confdefs.h. */
5337 int i;
5338 _ACEOF
5339 if ac_fn_c_try_compile "$LINENO"; then :
5340 xorg_cv_cc_flag_unknown_warning_option=yes
5341 else
5342 xorg_cv_cc_flag_unknown_warning_option=no
5343 fi
5344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5345 fi
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5347 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5348 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5349 CFLAGS="$xorg_testset_save_CFLAGS"
5350 fi
5351
5352 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5354 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5355 fi
5356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5358 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5359 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5360 $as_echo_n "(cached) " >&6
5361 else
5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h. */
5364 int i;
5365 _ACEOF
5366 if ac_fn_c_try_compile "$LINENO"; then :
5367 xorg_cv_cc_flag_unused_command_line_argument=yes
5368 else
5369 xorg_cv_cc_flag_unused_command_line_argument=no
5370 fi
5371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5372 fi
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5374 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5376 CFLAGS="$xorg_testset_save_CFLAGS"
5377 fi
5378
5379 found="no"
5380
5381 if test $found = "no" ; then
5382 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5384 fi
5385
5386 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5388 fi
5389
5390 CFLAGS="$CFLAGS -Wnested-externs"
5391
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5393 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5394 cacheid=xorg_cv_cc_flag__Wnested_externs
5395 if eval \${$cacheid+:} false; then :
5396 $as_echo_n "(cached) " >&6
5397 else
5398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5399 /* end confdefs.h. */
5400 int i;
5401 int
5402 main ()
5403 {
5404
5405 ;
5406 return 0;
5407 }
5408 _ACEOF
5409 if ac_fn_c_try_link "$LINENO"; then :
5410 eval $cacheid=yes
5411 else
5412 eval $cacheid=no
5413 fi
5414 rm -f core conftest.err conftest.$ac_objext \
5415 conftest$ac_exeext conftest.$ac_ext
5416 fi
5417
5418
5419 CFLAGS="$xorg_testset_save_CFLAGS"
5420
5421 eval supported=\$$cacheid
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5423 $as_echo "$supported" >&6; }
5424 if test "$supported" = "yes" ; then
5425 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5426 found="yes"
5427 fi
5428 fi
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444 xorg_testset_save_CFLAGS="$CFLAGS"
5445
5446 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5449 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5450 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5451 $as_echo_n "(cached) " >&6
5452 else
5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454 /* end confdefs.h. */
5455 int i;
5456 _ACEOF
5457 if ac_fn_c_try_compile "$LINENO"; then :
5458 xorg_cv_cc_flag_unknown_warning_option=yes
5459 else
5460 xorg_cv_cc_flag_unknown_warning_option=no
5461 fi
5462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463 fi
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5465 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5467 CFLAGS="$xorg_testset_save_CFLAGS"
5468 fi
5469
5470 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5473 fi
5474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5476 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5477 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5478 $as_echo_n "(cached) " >&6
5479 else
5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481 /* end confdefs.h. */
5482 int i;
5483 _ACEOF
5484 if ac_fn_c_try_compile "$LINENO"; then :
5485 xorg_cv_cc_flag_unused_command_line_argument=yes
5486 else
5487 xorg_cv_cc_flag_unused_command_line_argument=no
5488 fi
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490 fi
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5492 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5494 CFLAGS="$xorg_testset_save_CFLAGS"
5495 fi
5496
5497 found="no"
5498
5499 if test $found = "no" ; then
5500 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5502 fi
5503
5504 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5506 fi
5507
5508 CFLAGS="$CFLAGS -Wbad-function-cast"
5509
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5511 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5512 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5513 if eval \${$cacheid+:} false; then :
5514 $as_echo_n "(cached) " >&6
5515 else
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5518 int i;
5519 int
5520 main ()
5521 {
5522
5523 ;
5524 return 0;
5525 }
5526 _ACEOF
5527 if ac_fn_c_try_link "$LINENO"; then :
5528 eval $cacheid=yes
5529 else
5530 eval $cacheid=no
5531 fi
5532 rm -f core conftest.err conftest.$ac_objext \
5533 conftest$ac_exeext conftest.$ac_ext
5534 fi
5535
5536
5537 CFLAGS="$xorg_testset_save_CFLAGS"
5538
5539 eval supported=\$$cacheid
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5541 $as_echo "$supported" >&6; }
5542 if test "$supported" = "yes" ; then
5543 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5544 found="yes"
5545 fi
5546 fi
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562 xorg_testset_save_CFLAGS="$CFLAGS"
5563
5564 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5567 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5568 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5569 $as_echo_n "(cached) " >&6
5570 else
5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h. */
5573 int i;
5574 _ACEOF
5575 if ac_fn_c_try_compile "$LINENO"; then :
5576 xorg_cv_cc_flag_unknown_warning_option=yes
5577 else
5578 xorg_cv_cc_flag_unknown_warning_option=no
5579 fi
5580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581 fi
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5583 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5584 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5585 CFLAGS="$xorg_testset_save_CFLAGS"
5586 fi
5587
5588 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5591 fi
5592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5594 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5595 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5596 $as_echo_n "(cached) " >&6
5597 else
5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599 /* end confdefs.h. */
5600 int i;
5601 _ACEOF
5602 if ac_fn_c_try_compile "$LINENO"; then :
5603 xorg_cv_cc_flag_unused_command_line_argument=yes
5604 else
5605 xorg_cv_cc_flag_unused_command_line_argument=no
5606 fi
5607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5608 fi
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5610 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5611 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5612 CFLAGS="$xorg_testset_save_CFLAGS"
5613 fi
5614
5615 found="no"
5616
5617 if test $found = "no" ; then
5618 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5620 fi
5621
5622 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5624 fi
5625
5626 CFLAGS="$CFLAGS -Wold-style-definition"
5627
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5629 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5630 cacheid=xorg_cv_cc_flag__Wold_style_definition
5631 if eval \${$cacheid+:} false; then :
5632 $as_echo_n "(cached) " >&6
5633 else
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
5636 int i;
5637 int
5638 main ()
5639 {
5640
5641 ;
5642 return 0;
5643 }
5644 _ACEOF
5645 if ac_fn_c_try_link "$LINENO"; then :
5646 eval $cacheid=yes
5647 else
5648 eval $cacheid=no
5649 fi
5650 rm -f core conftest.err conftest.$ac_objext \
5651 conftest$ac_exeext conftest.$ac_ext
5652 fi
5653
5654
5655 CFLAGS="$xorg_testset_save_CFLAGS"
5656
5657 eval supported=\$$cacheid
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5659 $as_echo "$supported" >&6; }
5660 if test "$supported" = "yes" ; then
5661 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5662 found="yes"
5663 fi
5664 fi
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680 xorg_testset_save_CFLAGS="$CFLAGS"
5681
5682 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5685 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5686 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5687 $as_echo_n "(cached) " >&6
5688 else
5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h. */
5691 int i;
5692 _ACEOF
5693 if ac_fn_c_try_compile "$LINENO"; then :
5694 xorg_cv_cc_flag_unknown_warning_option=yes
5695 else
5696 xorg_cv_cc_flag_unknown_warning_option=no
5697 fi
5698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5699 fi
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5701 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5703 CFLAGS="$xorg_testset_save_CFLAGS"
5704 fi
5705
5706 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5709 fi
5710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5712 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5713 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5714 $as_echo_n "(cached) " >&6
5715 else
5716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5717 /* end confdefs.h. */
5718 int i;
5719 _ACEOF
5720 if ac_fn_c_try_compile "$LINENO"; then :
5721 xorg_cv_cc_flag_unused_command_line_argument=yes
5722 else
5723 xorg_cv_cc_flag_unused_command_line_argument=no
5724 fi
5725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5726 fi
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5728 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5730 CFLAGS="$xorg_testset_save_CFLAGS"
5731 fi
5732
5733 found="no"
5734
5735 if test $found = "no" ; then
5736 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5738 fi
5739
5740 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5742 fi
5743
5744 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5745
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5747 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5748 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5749 if eval \${$cacheid+:} false; then :
5750 $as_echo_n "(cached) " >&6
5751 else
5752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5753 /* end confdefs.h. */
5754 int i;
5755 int
5756 main ()
5757 {
5758
5759 ;
5760 return 0;
5761 }
5762 _ACEOF
5763 if ac_fn_c_try_link "$LINENO"; then :
5764 eval $cacheid=yes
5765 else
5766 eval $cacheid=no
5767 fi
5768 rm -f core conftest.err conftest.$ac_objext \
5769 conftest$ac_exeext conftest.$ac_ext
5770 fi
5771
5772
5773 CFLAGS="$xorg_testset_save_CFLAGS"
5774
5775 eval supported=\$$cacheid
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5777 $as_echo "$supported" >&6; }
5778 if test "$supported" = "yes" ; then
5779 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5780 found="yes"
5781 fi
5782 fi
5783
5784
5785
5786
5787
5788 # This chunk adds additional warnings that could catch undesired effects.
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802 xorg_testset_save_CFLAGS="$CFLAGS"
5803
5804 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5807 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5808 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5809 $as_echo_n "(cached) " >&6
5810 else
5811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812 /* end confdefs.h. */
5813 int i;
5814 _ACEOF
5815 if ac_fn_c_try_compile "$LINENO"; then :
5816 xorg_cv_cc_flag_unknown_warning_option=yes
5817 else
5818 xorg_cv_cc_flag_unknown_warning_option=no
5819 fi
5820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5821 fi
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5823 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5824 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5825 CFLAGS="$xorg_testset_save_CFLAGS"
5826 fi
5827
5828 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5831 fi
5832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5834 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5835 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5836 $as_echo_n "(cached) " >&6
5837 else
5838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839 /* end confdefs.h. */
5840 int i;
5841 _ACEOF
5842 if ac_fn_c_try_compile "$LINENO"; then :
5843 xorg_cv_cc_flag_unused_command_line_argument=yes
5844 else
5845 xorg_cv_cc_flag_unused_command_line_argument=no
5846 fi
5847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5848 fi
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5850 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5851 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5852 CFLAGS="$xorg_testset_save_CFLAGS"
5853 fi
5854
5855 found="no"
5856
5857 if test $found = "no" ; then
5858 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5860 fi
5861
5862 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5864 fi
5865
5866 CFLAGS="$CFLAGS -Wunused"
5867
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5869 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
5870 cacheid=xorg_cv_cc_flag__Wunused
5871 if eval \${$cacheid+:} false; then :
5872 $as_echo_n "(cached) " >&6
5873 else
5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h. */
5876 int i;
5877 int
5878 main ()
5879 {
5880
5881 ;
5882 return 0;
5883 }
5884 _ACEOF
5885 if ac_fn_c_try_link "$LINENO"; then :
5886 eval $cacheid=yes
5887 else
5888 eval $cacheid=no
5889 fi
5890 rm -f core conftest.err conftest.$ac_objext \
5891 conftest$ac_exeext conftest.$ac_ext
5892 fi
5893
5894
5895 CFLAGS="$xorg_testset_save_CFLAGS"
5896
5897 eval supported=\$$cacheid
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5899 $as_echo "$supported" >&6; }
5900 if test "$supported" = "yes" ; then
5901 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5902 found="yes"
5903 fi
5904 fi
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920 xorg_testset_save_CFLAGS="$CFLAGS"
5921
5922 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5925 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5926 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5927 $as_echo_n "(cached) " >&6
5928 else
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930 /* end confdefs.h. */
5931 int i;
5932 _ACEOF
5933 if ac_fn_c_try_compile "$LINENO"; then :
5934 xorg_cv_cc_flag_unknown_warning_option=yes
5935 else
5936 xorg_cv_cc_flag_unknown_warning_option=no
5937 fi
5938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5939 fi
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5941 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5942 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5943 CFLAGS="$xorg_testset_save_CFLAGS"
5944 fi
5945
5946 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5949 fi
5950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5952 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5953 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5954 $as_echo_n "(cached) " >&6
5955 else
5956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5957 /* end confdefs.h. */
5958 int i;
5959 _ACEOF
5960 if ac_fn_c_try_compile "$LINENO"; then :
5961 xorg_cv_cc_flag_unused_command_line_argument=yes
5962 else
5963 xorg_cv_cc_flag_unused_command_line_argument=no
5964 fi
5965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966 fi
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5968 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5969 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5970 CFLAGS="$xorg_testset_save_CFLAGS"
5971 fi
5972
5973 found="no"
5974
5975 if test $found = "no" ; then
5976 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5978 fi
5979
5980 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5982 fi
5983
5984 CFLAGS="$CFLAGS -Wuninitialized"
5985
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5987 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5988 cacheid=xorg_cv_cc_flag__Wuninitialized
5989 if eval \${$cacheid+:} false; then :
5990 $as_echo_n "(cached) " >&6
5991 else
5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h. */
5994 int i;
5995 int
5996 main ()
5997 {
5998
5999 ;
6000 return 0;
6001 }
6002 _ACEOF
6003 if ac_fn_c_try_link "$LINENO"; then :
6004 eval $cacheid=yes
6005 else
6006 eval $cacheid=no
6007 fi
6008 rm -f core conftest.err conftest.$ac_objext \
6009 conftest$ac_exeext conftest.$ac_ext
6010 fi
6011
6012
6013 CFLAGS="$xorg_testset_save_CFLAGS"
6014
6015 eval supported=\$$cacheid
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6017 $as_echo "$supported" >&6; }
6018 if test "$supported" = "yes" ; then
6019 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6020 found="yes"
6021 fi
6022 fi
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038 xorg_testset_save_CFLAGS="$CFLAGS"
6039
6040 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6043 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6044 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6045 $as_echo_n "(cached) " >&6
6046 else
6047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6048 /* end confdefs.h. */
6049 int i;
6050 _ACEOF
6051 if ac_fn_c_try_compile "$LINENO"; then :
6052 xorg_cv_cc_flag_unknown_warning_option=yes
6053 else
6054 xorg_cv_cc_flag_unknown_warning_option=no
6055 fi
6056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057 fi
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6059 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6060 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6061 CFLAGS="$xorg_testset_save_CFLAGS"
6062 fi
6063
6064 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6067 fi
6068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6070 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6071 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6072 $as_echo_n "(cached) " >&6
6073 else
6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h. */
6076 int i;
6077 _ACEOF
6078 if ac_fn_c_try_compile "$LINENO"; then :
6079 xorg_cv_cc_flag_unused_command_line_argument=yes
6080 else
6081 xorg_cv_cc_flag_unused_command_line_argument=no
6082 fi
6083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084 fi
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6086 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6087 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6088 CFLAGS="$xorg_testset_save_CFLAGS"
6089 fi
6090
6091 found="no"
6092
6093 if test $found = "no" ; then
6094 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6095 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6096 fi
6097
6098 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6100 fi
6101
6102 CFLAGS="$CFLAGS -Wshadow"
6103
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6105 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6106 cacheid=xorg_cv_cc_flag__Wshadow
6107 if eval \${$cacheid+:} false; then :
6108 $as_echo_n "(cached) " >&6
6109 else
6110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h. */
6112 int i;
6113 int
6114 main ()
6115 {
6116
6117 ;
6118 return 0;
6119 }
6120 _ACEOF
6121 if ac_fn_c_try_link "$LINENO"; then :
6122 eval $cacheid=yes
6123 else
6124 eval $cacheid=no
6125 fi
6126 rm -f core conftest.err conftest.$ac_objext \
6127 conftest$ac_exeext conftest.$ac_ext
6128 fi
6129
6130
6131 CFLAGS="$xorg_testset_save_CFLAGS"
6132
6133 eval supported=\$$cacheid
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6135 $as_echo "$supported" >&6; }
6136 if test "$supported" = "yes" ; then
6137 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6138 found="yes"
6139 fi
6140 fi
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156 xorg_testset_save_CFLAGS="$CFLAGS"
6157
6158 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6161 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6162 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6163 $as_echo_n "(cached) " >&6
6164 else
6165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6166 /* end confdefs.h. */
6167 int i;
6168 _ACEOF
6169 if ac_fn_c_try_compile "$LINENO"; then :
6170 xorg_cv_cc_flag_unknown_warning_option=yes
6171 else
6172 xorg_cv_cc_flag_unknown_warning_option=no
6173 fi
6174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175 fi
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6177 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6178 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6179 CFLAGS="$xorg_testset_save_CFLAGS"
6180 fi
6181
6182 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6185 fi
6186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6188 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6189 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6190 $as_echo_n "(cached) " >&6
6191 else
6192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h. */
6194 int i;
6195 _ACEOF
6196 if ac_fn_c_try_compile "$LINENO"; then :
6197 xorg_cv_cc_flag_unused_command_line_argument=yes
6198 else
6199 xorg_cv_cc_flag_unused_command_line_argument=no
6200 fi
6201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6202 fi
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6204 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6205 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6206 CFLAGS="$xorg_testset_save_CFLAGS"
6207 fi
6208
6209 found="no"
6210
6211 if test $found = "no" ; then
6212 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6214 fi
6215
6216 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6218 fi
6219
6220 CFLAGS="$CFLAGS -Wcast-qual"
6221
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6223 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6224 cacheid=xorg_cv_cc_flag__Wcast_qual
6225 if eval \${$cacheid+:} false; then :
6226 $as_echo_n "(cached) " >&6
6227 else
6228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229 /* end confdefs.h. */
6230 int i;
6231 int
6232 main ()
6233 {
6234
6235 ;
6236 return 0;
6237 }
6238 _ACEOF
6239 if ac_fn_c_try_link "$LINENO"; then :
6240 eval $cacheid=yes
6241 else
6242 eval $cacheid=no
6243 fi
6244 rm -f core conftest.err conftest.$ac_objext \
6245 conftest$ac_exeext conftest.$ac_ext
6246 fi
6247
6248
6249 CFLAGS="$xorg_testset_save_CFLAGS"
6250
6251 eval supported=\$$cacheid
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6253 $as_echo "$supported" >&6; }
6254 if test "$supported" = "yes" ; then
6255 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6256 found="yes"
6257 fi
6258 fi
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274 xorg_testset_save_CFLAGS="$CFLAGS"
6275
6276 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6279 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6280 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6281 $as_echo_n "(cached) " >&6
6282 else
6283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284 /* end confdefs.h. */
6285 int i;
6286 _ACEOF
6287 if ac_fn_c_try_compile "$LINENO"; then :
6288 xorg_cv_cc_flag_unknown_warning_option=yes
6289 else
6290 xorg_cv_cc_flag_unknown_warning_option=no
6291 fi
6292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6293 fi
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6295 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6296 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6297 CFLAGS="$xorg_testset_save_CFLAGS"
6298 fi
6299
6300 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6303 fi
6304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6306 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6307 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6308 $as_echo_n "(cached) " >&6
6309 else
6310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6311 /* end confdefs.h. */
6312 int i;
6313 _ACEOF
6314 if ac_fn_c_try_compile "$LINENO"; then :
6315 xorg_cv_cc_flag_unused_command_line_argument=yes
6316 else
6317 xorg_cv_cc_flag_unused_command_line_argument=no
6318 fi
6319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6320 fi
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6322 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6323 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6324 CFLAGS="$xorg_testset_save_CFLAGS"
6325 fi
6326
6327 found="no"
6328
6329 if test $found = "no" ; then
6330 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6332 fi
6333
6334 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6336 fi
6337
6338 CFLAGS="$CFLAGS -Wmissing-noreturn"
6339
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6341 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6342 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6343 if eval \${$cacheid+:} false; then :
6344 $as_echo_n "(cached) " >&6
6345 else
6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h. */
6348 int i;
6349 int
6350 main ()
6351 {
6352
6353 ;
6354 return 0;
6355 }
6356 _ACEOF
6357 if ac_fn_c_try_link "$LINENO"; then :
6358 eval $cacheid=yes
6359 else
6360 eval $cacheid=no
6361 fi
6362 rm -f core conftest.err conftest.$ac_objext \
6363 conftest$ac_exeext conftest.$ac_ext
6364 fi
6365
6366
6367 CFLAGS="$xorg_testset_save_CFLAGS"
6368
6369 eval supported=\$$cacheid
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6371 $as_echo "$supported" >&6; }
6372 if test "$supported" = "yes" ; then
6373 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6374 found="yes"
6375 fi
6376 fi
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392 xorg_testset_save_CFLAGS="$CFLAGS"
6393
6394 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6397 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6398 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6399 $as_echo_n "(cached) " >&6
6400 else
6401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6402 /* end confdefs.h. */
6403 int i;
6404 _ACEOF
6405 if ac_fn_c_try_compile "$LINENO"; then :
6406 xorg_cv_cc_flag_unknown_warning_option=yes
6407 else
6408 xorg_cv_cc_flag_unknown_warning_option=no
6409 fi
6410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6411 fi
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6413 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6414 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6415 CFLAGS="$xorg_testset_save_CFLAGS"
6416 fi
6417
6418 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6421 fi
6422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6424 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6425 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6426 $as_echo_n "(cached) " >&6
6427 else
6428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429 /* end confdefs.h. */
6430 int i;
6431 _ACEOF
6432 if ac_fn_c_try_compile "$LINENO"; then :
6433 xorg_cv_cc_flag_unused_command_line_argument=yes
6434 else
6435 xorg_cv_cc_flag_unused_command_line_argument=no
6436 fi
6437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6438 fi
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6440 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6441 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6442 CFLAGS="$xorg_testset_save_CFLAGS"
6443 fi
6444
6445 found="no"
6446
6447 if test $found = "no" ; then
6448 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6450 fi
6451
6452 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6454 fi
6455
6456 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6457
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6459 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6460 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6461 if eval \${$cacheid+:} false; then :
6462 $as_echo_n "(cached) " >&6
6463 else
6464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6465 /* end confdefs.h. */
6466 int i;
6467 int
6468 main ()
6469 {
6470
6471 ;
6472 return 0;
6473 }
6474 _ACEOF
6475 if ac_fn_c_try_link "$LINENO"; then :
6476 eval $cacheid=yes
6477 else
6478 eval $cacheid=no
6479 fi
6480 rm -f core conftest.err conftest.$ac_objext \
6481 conftest$ac_exeext conftest.$ac_ext
6482 fi
6483
6484
6485 CFLAGS="$xorg_testset_save_CFLAGS"
6486
6487 eval supported=\$$cacheid
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6489 $as_echo "$supported" >&6; }
6490 if test "$supported" = "yes" ; then
6491 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6492 found="yes"
6493 fi
6494 fi
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510 xorg_testset_save_CFLAGS="$CFLAGS"
6511
6512 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6515 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6516 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6517 $as_echo_n "(cached) " >&6
6518 else
6519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520 /* end confdefs.h. */
6521 int i;
6522 _ACEOF
6523 if ac_fn_c_try_compile "$LINENO"; then :
6524 xorg_cv_cc_flag_unknown_warning_option=yes
6525 else
6526 xorg_cv_cc_flag_unknown_warning_option=no
6527 fi
6528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6529 fi
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6531 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6532 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6533 CFLAGS="$xorg_testset_save_CFLAGS"
6534 fi
6535
6536 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6539 fi
6540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6542 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6543 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6544 $as_echo_n "(cached) " >&6
6545 else
6546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547 /* end confdefs.h. */
6548 int i;
6549 _ACEOF
6550 if ac_fn_c_try_compile "$LINENO"; then :
6551 xorg_cv_cc_flag_unused_command_line_argument=yes
6552 else
6553 xorg_cv_cc_flag_unused_command_line_argument=no
6554 fi
6555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6556 fi
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6558 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6559 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6560 CFLAGS="$xorg_testset_save_CFLAGS"
6561 fi
6562
6563 found="no"
6564
6565 if test $found = "no" ; then
6566 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6568 fi
6569
6570 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6572 fi
6573
6574 CFLAGS="$CFLAGS -Wredundant-decls"
6575
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6577 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6578 cacheid=xorg_cv_cc_flag__Wredundant_decls
6579 if eval \${$cacheid+:} false; then :
6580 $as_echo_n "(cached) " >&6
6581 else
6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h. */
6584 int i;
6585 int
6586 main ()
6587 {
6588
6589 ;
6590 return 0;
6591 }
6592 _ACEOF
6593 if ac_fn_c_try_link "$LINENO"; then :
6594 eval $cacheid=yes
6595 else
6596 eval $cacheid=no
6597 fi
6598 rm -f core conftest.err conftest.$ac_objext \
6599 conftest$ac_exeext conftest.$ac_ext
6600 fi
6601
6602
6603 CFLAGS="$xorg_testset_save_CFLAGS"
6604
6605 eval supported=\$$cacheid
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6607 $as_echo "$supported" >&6; }
6608 if test "$supported" = "yes" ; then
6609 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6610 found="yes"
6611 fi
6612 fi
6613
6614
6615
6616 # These are currently disabled because they are noisy. They will be enabled
6617 # in the future once the codebase is sufficiently modernized to silence
6618 # them. For now, I don't want them to drown out the other warnings.
6619 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6620 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6621 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6622
6623 # Turn some warnings into errors, so we don't accidently get successful builds
6624 # when there are problems that should be fixed.
6625
6626 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640 xorg_testset_save_CFLAGS="$CFLAGS"
6641
6642 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6645 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6646 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6647 $as_echo_n "(cached) " >&6
6648 else
6649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6650 /* end confdefs.h. */
6651 int i;
6652 _ACEOF
6653 if ac_fn_c_try_compile "$LINENO"; then :
6654 xorg_cv_cc_flag_unknown_warning_option=yes
6655 else
6656 xorg_cv_cc_flag_unknown_warning_option=no
6657 fi
6658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6659 fi
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6661 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6662 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6663 CFLAGS="$xorg_testset_save_CFLAGS"
6664 fi
6665
6666 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6669 fi
6670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6672 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6673 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6674 $as_echo_n "(cached) " >&6
6675 else
6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677 /* end confdefs.h. */
6678 int i;
6679 _ACEOF
6680 if ac_fn_c_try_compile "$LINENO"; then :
6681 xorg_cv_cc_flag_unused_command_line_argument=yes
6682 else
6683 xorg_cv_cc_flag_unused_command_line_argument=no
6684 fi
6685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6686 fi
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6688 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6689 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6690 CFLAGS="$xorg_testset_save_CFLAGS"
6691 fi
6692
6693 found="no"
6694
6695 if test $found = "no" ; then
6696 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6698 fi
6699
6700 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6702 fi
6703
6704 CFLAGS="$CFLAGS -Werror=implicit"
6705
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6707 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6708 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6709 if eval \${$cacheid+:} false; then :
6710 $as_echo_n "(cached) " >&6
6711 else
6712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6713 /* end confdefs.h. */
6714 int i;
6715 int
6716 main ()
6717 {
6718
6719 ;
6720 return 0;
6721 }
6722 _ACEOF
6723 if ac_fn_c_try_link "$LINENO"; then :
6724 eval $cacheid=yes
6725 else
6726 eval $cacheid=no
6727 fi
6728 rm -f core conftest.err conftest.$ac_objext \
6729 conftest$ac_exeext conftest.$ac_ext
6730 fi
6731
6732
6733 CFLAGS="$xorg_testset_save_CFLAGS"
6734
6735 eval supported=\$$cacheid
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6737 $as_echo "$supported" >&6; }
6738 if test "$supported" = "yes" ; then
6739 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6740 found="yes"
6741 fi
6742 fi
6743
6744 if test $found = "no" ; then
6745 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6747 fi
6748
6749 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6751 fi
6752
6753 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6754
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6756 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6757 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6758 if eval \${$cacheid+:} false; then :
6759 $as_echo_n "(cached) " >&6
6760 else
6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h. */
6763 int i;
6764 int
6765 main ()
6766 {
6767
6768 ;
6769 return 0;
6770 }
6771 _ACEOF
6772 if ac_fn_c_try_link "$LINENO"; then :
6773 eval $cacheid=yes
6774 else
6775 eval $cacheid=no
6776 fi
6777 rm -f core conftest.err conftest.$ac_objext \
6778 conftest$ac_exeext conftest.$ac_ext
6779 fi
6780
6781
6782 CFLAGS="$xorg_testset_save_CFLAGS"
6783
6784 eval supported=\$$cacheid
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6786 $as_echo "$supported" >&6; }
6787 if test "$supported" = "yes" ; then
6788 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6789 found="yes"
6790 fi
6791 fi
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807 xorg_testset_save_CFLAGS="$CFLAGS"
6808
6809 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6812 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6813 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817 /* end confdefs.h. */
6818 int i;
6819 _ACEOF
6820 if ac_fn_c_try_compile "$LINENO"; then :
6821 xorg_cv_cc_flag_unknown_warning_option=yes
6822 else
6823 xorg_cv_cc_flag_unknown_warning_option=no
6824 fi
6825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6826 fi
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6828 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6829 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6830 CFLAGS="$xorg_testset_save_CFLAGS"
6831 fi
6832
6833 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6836 fi
6837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6839 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6840 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6841 $as_echo_n "(cached) " >&6
6842 else
6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844 /* end confdefs.h. */
6845 int i;
6846 _ACEOF
6847 if ac_fn_c_try_compile "$LINENO"; then :
6848 xorg_cv_cc_flag_unused_command_line_argument=yes
6849 else
6850 xorg_cv_cc_flag_unused_command_line_argument=no
6851 fi
6852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6853 fi
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6855 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6856 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6857 CFLAGS="$xorg_testset_save_CFLAGS"
6858 fi
6859
6860 found="no"
6861
6862 if test $found = "no" ; then
6863 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6864 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6865 fi
6866
6867 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6869 fi
6870
6871 CFLAGS="$CFLAGS -Werror=nonnull"
6872
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6874 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6875 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6876 if eval \${$cacheid+:} false; then :
6877 $as_echo_n "(cached) " >&6
6878 else
6879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6880 /* end confdefs.h. */
6881 int i;
6882 int
6883 main ()
6884 {
6885
6886 ;
6887 return 0;
6888 }
6889 _ACEOF
6890 if ac_fn_c_try_link "$LINENO"; then :
6891 eval $cacheid=yes
6892 else
6893 eval $cacheid=no
6894 fi
6895 rm -f core conftest.err conftest.$ac_objext \
6896 conftest$ac_exeext conftest.$ac_ext
6897 fi
6898
6899
6900 CFLAGS="$xorg_testset_save_CFLAGS"
6901
6902 eval supported=\$$cacheid
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6904 $as_echo "$supported" >&6; }
6905 if test "$supported" = "yes" ; then
6906 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6907 found="yes"
6908 fi
6909 fi
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925 xorg_testset_save_CFLAGS="$CFLAGS"
6926
6927 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6930 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6931 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6932 $as_echo_n "(cached) " >&6
6933 else
6934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6935 /* end confdefs.h. */
6936 int i;
6937 _ACEOF
6938 if ac_fn_c_try_compile "$LINENO"; then :
6939 xorg_cv_cc_flag_unknown_warning_option=yes
6940 else
6941 xorg_cv_cc_flag_unknown_warning_option=no
6942 fi
6943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6944 fi
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6946 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6947 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6948 CFLAGS="$xorg_testset_save_CFLAGS"
6949 fi
6950
6951 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6953 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6954 fi
6955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6957 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6958 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6959 $as_echo_n "(cached) " >&6
6960 else
6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962 /* end confdefs.h. */
6963 int i;
6964 _ACEOF
6965 if ac_fn_c_try_compile "$LINENO"; then :
6966 xorg_cv_cc_flag_unused_command_line_argument=yes
6967 else
6968 xorg_cv_cc_flag_unused_command_line_argument=no
6969 fi
6970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6971 fi
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6973 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6974 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6975 CFLAGS="$xorg_testset_save_CFLAGS"
6976 fi
6977
6978 found="no"
6979
6980 if test $found = "no" ; then
6981 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6983 fi
6984
6985 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6987 fi
6988
6989 CFLAGS="$CFLAGS -Werror=init-self"
6990
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6992 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6993 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
6994 if eval \${$cacheid+:} false; then :
6995 $as_echo_n "(cached) " >&6
6996 else
6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h. */
6999 int i;
7000 int
7001 main ()
7002 {
7003
7004 ;
7005 return 0;
7006 }
7007 _ACEOF
7008 if ac_fn_c_try_link "$LINENO"; then :
7009 eval $cacheid=yes
7010 else
7011 eval $cacheid=no
7012 fi
7013 rm -f core conftest.err conftest.$ac_objext \
7014 conftest$ac_exeext conftest.$ac_ext
7015 fi
7016
7017
7018 CFLAGS="$xorg_testset_save_CFLAGS"
7019
7020 eval supported=\$$cacheid
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7022 $as_echo "$supported" >&6; }
7023 if test "$supported" = "yes" ; then
7024 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7025 found="yes"
7026 fi
7027 fi
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043 xorg_testset_save_CFLAGS="$CFLAGS"
7044
7045 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7048 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7049 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7050 $as_echo_n "(cached) " >&6
7051 else
7052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053 /* end confdefs.h. */
7054 int i;
7055 _ACEOF
7056 if ac_fn_c_try_compile "$LINENO"; then :
7057 xorg_cv_cc_flag_unknown_warning_option=yes
7058 else
7059 xorg_cv_cc_flag_unknown_warning_option=no
7060 fi
7061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7062 fi
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7064 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7065 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7066 CFLAGS="$xorg_testset_save_CFLAGS"
7067 fi
7068
7069 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7072 fi
7073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7075 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7076 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7077 $as_echo_n "(cached) " >&6
7078 else
7079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7080 /* end confdefs.h. */
7081 int i;
7082 _ACEOF
7083 if ac_fn_c_try_compile "$LINENO"; then :
7084 xorg_cv_cc_flag_unused_command_line_argument=yes
7085 else
7086 xorg_cv_cc_flag_unused_command_line_argument=no
7087 fi
7088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7089 fi
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7091 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7092 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7093 CFLAGS="$xorg_testset_save_CFLAGS"
7094 fi
7095
7096 found="no"
7097
7098 if test $found = "no" ; then
7099 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7101 fi
7102
7103 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7105 fi
7106
7107 CFLAGS="$CFLAGS -Werror=main"
7108
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7110 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7111 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7112 if eval \${$cacheid+:} false; then :
7113 $as_echo_n "(cached) " >&6
7114 else
7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h. */
7117 int i;
7118 int
7119 main ()
7120 {
7121
7122 ;
7123 return 0;
7124 }
7125 _ACEOF
7126 if ac_fn_c_try_link "$LINENO"; then :
7127 eval $cacheid=yes
7128 else
7129 eval $cacheid=no
7130 fi
7131 rm -f core conftest.err conftest.$ac_objext \
7132 conftest$ac_exeext conftest.$ac_ext
7133 fi
7134
7135
7136 CFLAGS="$xorg_testset_save_CFLAGS"
7137
7138 eval supported=\$$cacheid
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7140 $as_echo "$supported" >&6; }
7141 if test "$supported" = "yes" ; then
7142 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7143 found="yes"
7144 fi
7145 fi
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161 xorg_testset_save_CFLAGS="$CFLAGS"
7162
7163 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7166 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7167 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7168 $as_echo_n "(cached) " >&6
7169 else
7170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h. */
7172 int i;
7173 _ACEOF
7174 if ac_fn_c_try_compile "$LINENO"; then :
7175 xorg_cv_cc_flag_unknown_warning_option=yes
7176 else
7177 xorg_cv_cc_flag_unknown_warning_option=no
7178 fi
7179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7180 fi
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7182 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7183 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7184 CFLAGS="$xorg_testset_save_CFLAGS"
7185 fi
7186
7187 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7190 fi
7191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7193 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7194 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7195 $as_echo_n "(cached) " >&6
7196 else
7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h. */
7199 int i;
7200 _ACEOF
7201 if ac_fn_c_try_compile "$LINENO"; then :
7202 xorg_cv_cc_flag_unused_command_line_argument=yes
7203 else
7204 xorg_cv_cc_flag_unused_command_line_argument=no
7205 fi
7206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7207 fi
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7209 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7210 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7211 CFLAGS="$xorg_testset_save_CFLAGS"
7212 fi
7213
7214 found="no"
7215
7216 if test $found = "no" ; then
7217 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7219 fi
7220
7221 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7223 fi
7224
7225 CFLAGS="$CFLAGS -Werror=missing-braces"
7226
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7228 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7229 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7230 if eval \${$cacheid+:} false; then :
7231 $as_echo_n "(cached) " >&6
7232 else
7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234 /* end confdefs.h. */
7235 int i;
7236 int
7237 main ()
7238 {
7239
7240 ;
7241 return 0;
7242 }
7243 _ACEOF
7244 if ac_fn_c_try_link "$LINENO"; then :
7245 eval $cacheid=yes
7246 else
7247 eval $cacheid=no
7248 fi
7249 rm -f core conftest.err conftest.$ac_objext \
7250 conftest$ac_exeext conftest.$ac_ext
7251 fi
7252
7253
7254 CFLAGS="$xorg_testset_save_CFLAGS"
7255
7256 eval supported=\$$cacheid
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7258 $as_echo "$supported" >&6; }
7259 if test "$supported" = "yes" ; then
7260 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7261 found="yes"
7262 fi
7263 fi
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279 xorg_testset_save_CFLAGS="$CFLAGS"
7280
7281 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7282 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7284 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7285 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7286 $as_echo_n "(cached) " >&6
7287 else
7288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289 /* end confdefs.h. */
7290 int i;
7291 _ACEOF
7292 if ac_fn_c_try_compile "$LINENO"; then :
7293 xorg_cv_cc_flag_unknown_warning_option=yes
7294 else
7295 xorg_cv_cc_flag_unknown_warning_option=no
7296 fi
7297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7298 fi
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7300 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7301 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7302 CFLAGS="$xorg_testset_save_CFLAGS"
7303 fi
7304
7305 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7307 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7308 fi
7309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7311 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7312 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7313 $as_echo_n "(cached) " >&6
7314 else
7315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316 /* end confdefs.h. */
7317 int i;
7318 _ACEOF
7319 if ac_fn_c_try_compile "$LINENO"; then :
7320 xorg_cv_cc_flag_unused_command_line_argument=yes
7321 else
7322 xorg_cv_cc_flag_unused_command_line_argument=no
7323 fi
7324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7325 fi
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7327 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7328 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7329 CFLAGS="$xorg_testset_save_CFLAGS"
7330 fi
7331
7332 found="no"
7333
7334 if test $found = "no" ; then
7335 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7337 fi
7338
7339 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7341 fi
7342
7343 CFLAGS="$CFLAGS -Werror=sequence-point"
7344
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7346 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7347 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7348 if eval \${$cacheid+:} false; then :
7349 $as_echo_n "(cached) " >&6
7350 else
7351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7352 /* end confdefs.h. */
7353 int i;
7354 int
7355 main ()
7356 {
7357
7358 ;
7359 return 0;
7360 }
7361 _ACEOF
7362 if ac_fn_c_try_link "$LINENO"; then :
7363 eval $cacheid=yes
7364 else
7365 eval $cacheid=no
7366 fi
7367 rm -f core conftest.err conftest.$ac_objext \
7368 conftest$ac_exeext conftest.$ac_ext
7369 fi
7370
7371
7372 CFLAGS="$xorg_testset_save_CFLAGS"
7373
7374 eval supported=\$$cacheid
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7376 $as_echo "$supported" >&6; }
7377 if test "$supported" = "yes" ; then
7378 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7379 found="yes"
7380 fi
7381 fi
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397 xorg_testset_save_CFLAGS="$CFLAGS"
7398
7399 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7402 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7403 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7404 $as_echo_n "(cached) " >&6
7405 else
7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407 /* end confdefs.h. */
7408 int i;
7409 _ACEOF
7410 if ac_fn_c_try_compile "$LINENO"; then :
7411 xorg_cv_cc_flag_unknown_warning_option=yes
7412 else
7413 xorg_cv_cc_flag_unknown_warning_option=no
7414 fi
7415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7416 fi
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7418 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7419 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7420 CFLAGS="$xorg_testset_save_CFLAGS"
7421 fi
7422
7423 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7424 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7426 fi
7427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7429 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7430 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7431 $as_echo_n "(cached) " >&6
7432 else
7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434 /* end confdefs.h. */
7435 int i;
7436 _ACEOF
7437 if ac_fn_c_try_compile "$LINENO"; then :
7438 xorg_cv_cc_flag_unused_command_line_argument=yes
7439 else
7440 xorg_cv_cc_flag_unused_command_line_argument=no
7441 fi
7442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7443 fi
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7445 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7446 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7447 CFLAGS="$xorg_testset_save_CFLAGS"
7448 fi
7449
7450 found="no"
7451
7452 if test $found = "no" ; then
7453 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7455 fi
7456
7457 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7459 fi
7460
7461 CFLAGS="$CFLAGS -Werror=return-type"
7462
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7464 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7465 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7466 if eval \${$cacheid+:} false; then :
7467 $as_echo_n "(cached) " >&6
7468 else
7469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470 /* end confdefs.h. */
7471 int i;
7472 int
7473 main ()
7474 {
7475
7476 ;
7477 return 0;
7478 }
7479 _ACEOF
7480 if ac_fn_c_try_link "$LINENO"; then :
7481 eval $cacheid=yes
7482 else
7483 eval $cacheid=no
7484 fi
7485 rm -f core conftest.err conftest.$ac_objext \
7486 conftest$ac_exeext conftest.$ac_ext
7487 fi
7488
7489
7490 CFLAGS="$xorg_testset_save_CFLAGS"
7491
7492 eval supported=\$$cacheid
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7494 $as_echo "$supported" >&6; }
7495 if test "$supported" = "yes" ; then
7496 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7497 found="yes"
7498 fi
7499 fi
7500
7501 if test $found = "no" ; then
7502 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7504 fi
7505
7506 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7508 fi
7509
7510 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7511
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7513 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7514 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7515 if eval \${$cacheid+:} false; then :
7516 $as_echo_n "(cached) " >&6
7517 else
7518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h. */
7520 int i;
7521 int
7522 main ()
7523 {
7524
7525 ;
7526 return 0;
7527 }
7528 _ACEOF
7529 if ac_fn_c_try_link "$LINENO"; then :
7530 eval $cacheid=yes
7531 else
7532 eval $cacheid=no
7533 fi
7534 rm -f core conftest.err conftest.$ac_objext \
7535 conftest$ac_exeext conftest.$ac_ext
7536 fi
7537
7538
7539 CFLAGS="$xorg_testset_save_CFLAGS"
7540
7541 eval supported=\$$cacheid
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7543 $as_echo "$supported" >&6; }
7544 if test "$supported" = "yes" ; then
7545 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7546 found="yes"
7547 fi
7548 fi
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564 xorg_testset_save_CFLAGS="$CFLAGS"
7565
7566 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7569 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7570 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7571 $as_echo_n "(cached) " >&6
7572 else
7573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574 /* end confdefs.h. */
7575 int i;
7576 _ACEOF
7577 if ac_fn_c_try_compile "$LINENO"; then :
7578 xorg_cv_cc_flag_unknown_warning_option=yes
7579 else
7580 xorg_cv_cc_flag_unknown_warning_option=no
7581 fi
7582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7583 fi
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7585 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7586 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7587 CFLAGS="$xorg_testset_save_CFLAGS"
7588 fi
7589
7590 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7593 fi
7594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7596 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7597 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7598 $as_echo_n "(cached) " >&6
7599 else
7600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601 /* end confdefs.h. */
7602 int i;
7603 _ACEOF
7604 if ac_fn_c_try_compile "$LINENO"; then :
7605 xorg_cv_cc_flag_unused_command_line_argument=yes
7606 else
7607 xorg_cv_cc_flag_unused_command_line_argument=no
7608 fi
7609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7610 fi
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7612 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7613 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7614 CFLAGS="$xorg_testset_save_CFLAGS"
7615 fi
7616
7617 found="no"
7618
7619 if test $found = "no" ; then
7620 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7622 fi
7623
7624 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7626 fi
7627
7628 CFLAGS="$CFLAGS -Werror=trigraphs"
7629
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7631 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7632 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7633 if eval \${$cacheid+:} false; then :
7634 $as_echo_n "(cached) " >&6
7635 else
7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637 /* end confdefs.h. */
7638 int i;
7639 int
7640 main ()
7641 {
7642
7643 ;
7644 return 0;
7645 }
7646 _ACEOF
7647 if ac_fn_c_try_link "$LINENO"; then :
7648 eval $cacheid=yes
7649 else
7650 eval $cacheid=no
7651 fi
7652 rm -f core conftest.err conftest.$ac_objext \
7653 conftest$ac_exeext conftest.$ac_ext
7654 fi
7655
7656
7657 CFLAGS="$xorg_testset_save_CFLAGS"
7658
7659 eval supported=\$$cacheid
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7661 $as_echo "$supported" >&6; }
7662 if test "$supported" = "yes" ; then
7663 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7664 found="yes"
7665 fi
7666 fi
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682 xorg_testset_save_CFLAGS="$CFLAGS"
7683
7684 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7687 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7688 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7689 $as_echo_n "(cached) " >&6
7690 else
7691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692 /* end confdefs.h. */
7693 int i;
7694 _ACEOF
7695 if ac_fn_c_try_compile "$LINENO"; then :
7696 xorg_cv_cc_flag_unknown_warning_option=yes
7697 else
7698 xorg_cv_cc_flag_unknown_warning_option=no
7699 fi
7700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7701 fi
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7703 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7704 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7705 CFLAGS="$xorg_testset_save_CFLAGS"
7706 fi
7707
7708 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7711 fi
7712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7714 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7715 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7716 $as_echo_n "(cached) " >&6
7717 else
7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719 /* end confdefs.h. */
7720 int i;
7721 _ACEOF
7722 if ac_fn_c_try_compile "$LINENO"; then :
7723 xorg_cv_cc_flag_unused_command_line_argument=yes
7724 else
7725 xorg_cv_cc_flag_unused_command_line_argument=no
7726 fi
7727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7728 fi
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7730 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7731 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7732 CFLAGS="$xorg_testset_save_CFLAGS"
7733 fi
7734
7735 found="no"
7736
7737 if test $found = "no" ; then
7738 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7740 fi
7741
7742 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7744 fi
7745
7746 CFLAGS="$CFLAGS -Werror=array-bounds"
7747
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7749 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7750 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7751 if eval \${$cacheid+:} false; then :
7752 $as_echo_n "(cached) " >&6
7753 else
7754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755 /* end confdefs.h. */
7756 int i;
7757 int
7758 main ()
7759 {
7760
7761 ;
7762 return 0;
7763 }
7764 _ACEOF
7765 if ac_fn_c_try_link "$LINENO"; then :
7766 eval $cacheid=yes
7767 else
7768 eval $cacheid=no
7769 fi
7770 rm -f core conftest.err conftest.$ac_objext \
7771 conftest$ac_exeext conftest.$ac_ext
7772 fi
7773
7774
7775 CFLAGS="$xorg_testset_save_CFLAGS"
7776
7777 eval supported=\$$cacheid
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7779 $as_echo "$supported" >&6; }
7780 if test "$supported" = "yes" ; then
7781 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7782 found="yes"
7783 fi
7784 fi
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800 xorg_testset_save_CFLAGS="$CFLAGS"
7801
7802 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7805 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7806 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7807 $as_echo_n "(cached) " >&6
7808 else
7809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810 /* end confdefs.h. */
7811 int i;
7812 _ACEOF
7813 if ac_fn_c_try_compile "$LINENO"; then :
7814 xorg_cv_cc_flag_unknown_warning_option=yes
7815 else
7816 xorg_cv_cc_flag_unknown_warning_option=no
7817 fi
7818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7819 fi
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7821 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7822 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7823 CFLAGS="$xorg_testset_save_CFLAGS"
7824 fi
7825
7826 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7829 fi
7830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7832 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7833 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7834 $as_echo_n "(cached) " >&6
7835 else
7836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7837 /* end confdefs.h. */
7838 int i;
7839 _ACEOF
7840 if ac_fn_c_try_compile "$LINENO"; then :
7841 xorg_cv_cc_flag_unused_command_line_argument=yes
7842 else
7843 xorg_cv_cc_flag_unused_command_line_argument=no
7844 fi
7845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7846 fi
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7848 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7849 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7850 CFLAGS="$xorg_testset_save_CFLAGS"
7851 fi
7852
7853 found="no"
7854
7855 if test $found = "no" ; then
7856 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7858 fi
7859
7860 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7862 fi
7863
7864 CFLAGS="$CFLAGS -Werror=write-strings"
7865
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7867 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7868 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7869 if eval \${$cacheid+:} false; then :
7870 $as_echo_n "(cached) " >&6
7871 else
7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h. */
7874 int i;
7875 int
7876 main ()
7877 {
7878
7879 ;
7880 return 0;
7881 }
7882 _ACEOF
7883 if ac_fn_c_try_link "$LINENO"; then :
7884 eval $cacheid=yes
7885 else
7886 eval $cacheid=no
7887 fi
7888 rm -f core conftest.err conftest.$ac_objext \
7889 conftest$ac_exeext conftest.$ac_ext
7890 fi
7891
7892
7893 CFLAGS="$xorg_testset_save_CFLAGS"
7894
7895 eval supported=\$$cacheid
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7897 $as_echo "$supported" >&6; }
7898 if test "$supported" = "yes" ; then
7899 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7900 found="yes"
7901 fi
7902 fi
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918 xorg_testset_save_CFLAGS="$CFLAGS"
7919
7920 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7923 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7924 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7925 $as_echo_n "(cached) " >&6
7926 else
7927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928 /* end confdefs.h. */
7929 int i;
7930 _ACEOF
7931 if ac_fn_c_try_compile "$LINENO"; then :
7932 xorg_cv_cc_flag_unknown_warning_option=yes
7933 else
7934 xorg_cv_cc_flag_unknown_warning_option=no
7935 fi
7936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7937 fi
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7939 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7940 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7941 CFLAGS="$xorg_testset_save_CFLAGS"
7942 fi
7943
7944 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7947 fi
7948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7950 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7951 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7952 $as_echo_n "(cached) " >&6
7953 else
7954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7955 /* end confdefs.h. */
7956 int i;
7957 _ACEOF
7958 if ac_fn_c_try_compile "$LINENO"; then :
7959 xorg_cv_cc_flag_unused_command_line_argument=yes
7960 else
7961 xorg_cv_cc_flag_unused_command_line_argument=no
7962 fi
7963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7964 fi
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7966 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7967 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7968 CFLAGS="$xorg_testset_save_CFLAGS"
7969 fi
7970
7971 found="no"
7972
7973 if test $found = "no" ; then
7974 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7976 fi
7977
7978 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7980 fi
7981
7982 CFLAGS="$CFLAGS -Werror=address"
7983
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7985 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7986 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
7987 if eval \${$cacheid+:} false; then :
7988 $as_echo_n "(cached) " >&6
7989 else
7990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7991 /* end confdefs.h. */
7992 int i;
7993 int
7994 main ()
7995 {
7996
7997 ;
7998 return 0;
7999 }
8000 _ACEOF
8001 if ac_fn_c_try_link "$LINENO"; then :
8002 eval $cacheid=yes
8003 else
8004 eval $cacheid=no
8005 fi
8006 rm -f core conftest.err conftest.$ac_objext \
8007 conftest$ac_exeext conftest.$ac_ext
8008 fi
8009
8010
8011 CFLAGS="$xorg_testset_save_CFLAGS"
8012
8013 eval supported=\$$cacheid
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8015 $as_echo "$supported" >&6; }
8016 if test "$supported" = "yes" ; then
8017 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8018 found="yes"
8019 fi
8020 fi
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036 xorg_testset_save_CFLAGS="$CFLAGS"
8037
8038 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8041 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8042 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8043 $as_echo_n "(cached) " >&6
8044 else
8045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046 /* end confdefs.h. */
8047 int i;
8048 _ACEOF
8049 if ac_fn_c_try_compile "$LINENO"; then :
8050 xorg_cv_cc_flag_unknown_warning_option=yes
8051 else
8052 xorg_cv_cc_flag_unknown_warning_option=no
8053 fi
8054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8055 fi
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8057 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8058 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8059 CFLAGS="$xorg_testset_save_CFLAGS"
8060 fi
8061
8062 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8065 fi
8066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8068 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8069 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8070 $as_echo_n "(cached) " >&6
8071 else
8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073 /* end confdefs.h. */
8074 int i;
8075 _ACEOF
8076 if ac_fn_c_try_compile "$LINENO"; then :
8077 xorg_cv_cc_flag_unused_command_line_argument=yes
8078 else
8079 xorg_cv_cc_flag_unused_command_line_argument=no
8080 fi
8081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8082 fi
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8084 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8085 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8086 CFLAGS="$xorg_testset_save_CFLAGS"
8087 fi
8088
8089 found="no"
8090
8091 if test $found = "no" ; then
8092 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8094 fi
8095
8096 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8098 fi
8099
8100 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8101
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8103 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8104 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8105 if eval \${$cacheid+:} false; then :
8106 $as_echo_n "(cached) " >&6
8107 else
8108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109 /* end confdefs.h. */
8110 int i;
8111 int
8112 main ()
8113 {
8114
8115 ;
8116 return 0;
8117 }
8118 _ACEOF
8119 if ac_fn_c_try_link "$LINENO"; then :
8120 eval $cacheid=yes
8121 else
8122 eval $cacheid=no
8123 fi
8124 rm -f core conftest.err conftest.$ac_objext \
8125 conftest$ac_exeext conftest.$ac_ext
8126 fi
8127
8128
8129 CFLAGS="$xorg_testset_save_CFLAGS"
8130
8131 eval supported=\$$cacheid
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8133 $as_echo "$supported" >&6; }
8134 if test "$supported" = "yes" ; then
8135 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8136 found="yes"
8137 fi
8138 fi
8139
8140 if test $found = "no" ; then
8141 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8143 fi
8144
8145 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8147 fi
8148
8149 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8150
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8152 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8153 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8154 if eval \${$cacheid+:} false; then :
8155 $as_echo_n "(cached) " >&6
8156 else
8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158 /* end confdefs.h. */
8159 int i;
8160 int
8161 main ()
8162 {
8163
8164 ;
8165 return 0;
8166 }
8167 _ACEOF
8168 if ac_fn_c_try_link "$LINENO"; then :
8169 eval $cacheid=yes
8170 else
8171 eval $cacheid=no
8172 fi
8173 rm -f core conftest.err conftest.$ac_objext \
8174 conftest$ac_exeext conftest.$ac_ext
8175 fi
8176
8177
8178 CFLAGS="$xorg_testset_save_CFLAGS"
8179
8180 eval supported=\$$cacheid
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8182 $as_echo "$supported" >&6; }
8183 if test "$supported" = "yes" ; then
8184 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8185 found="yes"
8186 fi
8187 fi
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203 xorg_testset_save_CFLAGS="$CFLAGS"
8204
8205 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8208 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8209 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8210 $as_echo_n "(cached) " >&6
8211 else
8212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8213 /* end confdefs.h. */
8214 int i;
8215 _ACEOF
8216 if ac_fn_c_try_compile "$LINENO"; then :
8217 xorg_cv_cc_flag_unknown_warning_option=yes
8218 else
8219 xorg_cv_cc_flag_unknown_warning_option=no
8220 fi
8221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8222 fi
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8224 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8225 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8226 CFLAGS="$xorg_testset_save_CFLAGS"
8227 fi
8228
8229 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8232 fi
8233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8235 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8236 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8237 $as_echo_n "(cached) " >&6
8238 else
8239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8240 /* end confdefs.h. */
8241 int i;
8242 _ACEOF
8243 if ac_fn_c_try_compile "$LINENO"; then :
8244 xorg_cv_cc_flag_unused_command_line_argument=yes
8245 else
8246 xorg_cv_cc_flag_unused_command_line_argument=no
8247 fi
8248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8249 fi
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8251 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8252 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8253 CFLAGS="$xorg_testset_save_CFLAGS"
8254 fi
8255
8256 found="no"
8257
8258 if test $found = "no" ; then
8259 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8261 fi
8262
8263 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8265 fi
8266
8267 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8268
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8270 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8271 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8272 if eval \${$cacheid+:} false; then :
8273 $as_echo_n "(cached) " >&6
8274 else
8275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8276 /* end confdefs.h. */
8277 int i;
8278 int
8279 main ()
8280 {
8281
8282 ;
8283 return 0;
8284 }
8285 _ACEOF
8286 if ac_fn_c_try_link "$LINENO"; then :
8287 eval $cacheid=yes
8288 else
8289 eval $cacheid=no
8290 fi
8291 rm -f core conftest.err conftest.$ac_objext \
8292 conftest$ac_exeext conftest.$ac_ext
8293 fi
8294
8295
8296 CFLAGS="$xorg_testset_save_CFLAGS"
8297
8298 eval supported=\$$cacheid
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8300 $as_echo "$supported" >&6; }
8301 if test "$supported" = "yes" ; then
8302 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8303 found="yes"
8304 fi
8305 fi
8306
8307 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8308 else
8309 { $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
8310 $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;}
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324 xorg_testset_save_CFLAGS="$CFLAGS"
8325
8326 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8329 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8330 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8331 $as_echo_n "(cached) " >&6
8332 else
8333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8334 /* end confdefs.h. */
8335 int i;
8336 _ACEOF
8337 if ac_fn_c_try_compile "$LINENO"; then :
8338 xorg_cv_cc_flag_unknown_warning_option=yes
8339 else
8340 xorg_cv_cc_flag_unknown_warning_option=no
8341 fi
8342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8343 fi
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8345 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8346 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8347 CFLAGS="$xorg_testset_save_CFLAGS"
8348 fi
8349
8350 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8353 fi
8354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8356 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8357 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8358 $as_echo_n "(cached) " >&6
8359 else
8360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361 /* end confdefs.h. */
8362 int i;
8363 _ACEOF
8364 if ac_fn_c_try_compile "$LINENO"; then :
8365 xorg_cv_cc_flag_unused_command_line_argument=yes
8366 else
8367 xorg_cv_cc_flag_unused_command_line_argument=no
8368 fi
8369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8370 fi
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8372 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8374 CFLAGS="$xorg_testset_save_CFLAGS"
8375 fi
8376
8377 found="no"
8378
8379 if test $found = "no" ; then
8380 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8382 fi
8383
8384 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8386 fi
8387
8388 CFLAGS="$CFLAGS -Wimplicit"
8389
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8391 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8392 cacheid=xorg_cv_cc_flag__Wimplicit
8393 if eval \${$cacheid+:} false; then :
8394 $as_echo_n "(cached) " >&6
8395 else
8396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8397 /* end confdefs.h. */
8398 int i;
8399 int
8400 main ()
8401 {
8402
8403 ;
8404 return 0;
8405 }
8406 _ACEOF
8407 if ac_fn_c_try_link "$LINENO"; then :
8408 eval $cacheid=yes
8409 else
8410 eval $cacheid=no
8411 fi
8412 rm -f core conftest.err conftest.$ac_objext \
8413 conftest$ac_exeext conftest.$ac_ext
8414 fi
8415
8416
8417 CFLAGS="$xorg_testset_save_CFLAGS"
8418
8419 eval supported=\$$cacheid
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8421 $as_echo "$supported" >&6; }
8422 if test "$supported" = "yes" ; then
8423 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8424 found="yes"
8425 fi
8426 fi
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442 xorg_testset_save_CFLAGS="$CFLAGS"
8443
8444 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8447 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8448 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8449 $as_echo_n "(cached) " >&6
8450 else
8451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452 /* end confdefs.h. */
8453 int i;
8454 _ACEOF
8455 if ac_fn_c_try_compile "$LINENO"; then :
8456 xorg_cv_cc_flag_unknown_warning_option=yes
8457 else
8458 xorg_cv_cc_flag_unknown_warning_option=no
8459 fi
8460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8461 fi
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8463 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8465 CFLAGS="$xorg_testset_save_CFLAGS"
8466 fi
8467
8468 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8471 fi
8472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8474 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8475 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8476 $as_echo_n "(cached) " >&6
8477 else
8478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479 /* end confdefs.h. */
8480 int i;
8481 _ACEOF
8482 if ac_fn_c_try_compile "$LINENO"; then :
8483 xorg_cv_cc_flag_unused_command_line_argument=yes
8484 else
8485 xorg_cv_cc_flag_unused_command_line_argument=no
8486 fi
8487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8488 fi
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8490 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8491 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8492 CFLAGS="$xorg_testset_save_CFLAGS"
8493 fi
8494
8495 found="no"
8496
8497 if test $found = "no" ; then
8498 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8500 fi
8501
8502 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8504 fi
8505
8506 CFLAGS="$CFLAGS -Wnonnull"
8507
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8509 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8510 cacheid=xorg_cv_cc_flag__Wnonnull
8511 if eval \${$cacheid+:} false; then :
8512 $as_echo_n "(cached) " >&6
8513 else
8514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h. */
8516 int i;
8517 int
8518 main ()
8519 {
8520
8521 ;
8522 return 0;
8523 }
8524 _ACEOF
8525 if ac_fn_c_try_link "$LINENO"; then :
8526 eval $cacheid=yes
8527 else
8528 eval $cacheid=no
8529 fi
8530 rm -f core conftest.err conftest.$ac_objext \
8531 conftest$ac_exeext conftest.$ac_ext
8532 fi
8533
8534
8535 CFLAGS="$xorg_testset_save_CFLAGS"
8536
8537 eval supported=\$$cacheid
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8539 $as_echo "$supported" >&6; }
8540 if test "$supported" = "yes" ; then
8541 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8542 found="yes"
8543 fi
8544 fi
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560 xorg_testset_save_CFLAGS="$CFLAGS"
8561
8562 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8565 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8566 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8567 $as_echo_n "(cached) " >&6
8568 else
8569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570 /* end confdefs.h. */
8571 int i;
8572 _ACEOF
8573 if ac_fn_c_try_compile "$LINENO"; then :
8574 xorg_cv_cc_flag_unknown_warning_option=yes
8575 else
8576 xorg_cv_cc_flag_unknown_warning_option=no
8577 fi
8578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8579 fi
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8581 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8582 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8583 CFLAGS="$xorg_testset_save_CFLAGS"
8584 fi
8585
8586 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8589 fi
8590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8592 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8593 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8594 $as_echo_n "(cached) " >&6
8595 else
8596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8597 /* end confdefs.h. */
8598 int i;
8599 _ACEOF
8600 if ac_fn_c_try_compile "$LINENO"; then :
8601 xorg_cv_cc_flag_unused_command_line_argument=yes
8602 else
8603 xorg_cv_cc_flag_unused_command_line_argument=no
8604 fi
8605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8606 fi
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8608 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8610 CFLAGS="$xorg_testset_save_CFLAGS"
8611 fi
8612
8613 found="no"
8614
8615 if test $found = "no" ; then
8616 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8618 fi
8619
8620 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8622 fi
8623
8624 CFLAGS="$CFLAGS -Winit-self"
8625
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8627 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8628 cacheid=xorg_cv_cc_flag__Winit_self
8629 if eval \${$cacheid+:} false; then :
8630 $as_echo_n "(cached) " >&6
8631 else
8632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8633 /* end confdefs.h. */
8634 int i;
8635 int
8636 main ()
8637 {
8638
8639 ;
8640 return 0;
8641 }
8642 _ACEOF
8643 if ac_fn_c_try_link "$LINENO"; then :
8644 eval $cacheid=yes
8645 else
8646 eval $cacheid=no
8647 fi
8648 rm -f core conftest.err conftest.$ac_objext \
8649 conftest$ac_exeext conftest.$ac_ext
8650 fi
8651
8652
8653 CFLAGS="$xorg_testset_save_CFLAGS"
8654
8655 eval supported=\$$cacheid
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8657 $as_echo "$supported" >&6; }
8658 if test "$supported" = "yes" ; then
8659 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8660 found="yes"
8661 fi
8662 fi
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678 xorg_testset_save_CFLAGS="$CFLAGS"
8679
8680 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8683 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8684 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8685 $as_echo_n "(cached) " >&6
8686 else
8687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8689 int i;
8690 _ACEOF
8691 if ac_fn_c_try_compile "$LINENO"; then :
8692 xorg_cv_cc_flag_unknown_warning_option=yes
8693 else
8694 xorg_cv_cc_flag_unknown_warning_option=no
8695 fi
8696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8697 fi
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8699 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8701 CFLAGS="$xorg_testset_save_CFLAGS"
8702 fi
8703
8704 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8707 fi
8708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8710 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8711 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8712 $as_echo_n "(cached) " >&6
8713 else
8714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8715 /* end confdefs.h. */
8716 int i;
8717 _ACEOF
8718 if ac_fn_c_try_compile "$LINENO"; then :
8719 xorg_cv_cc_flag_unused_command_line_argument=yes
8720 else
8721 xorg_cv_cc_flag_unused_command_line_argument=no
8722 fi
8723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8724 fi
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8726 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8727 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8728 CFLAGS="$xorg_testset_save_CFLAGS"
8729 fi
8730
8731 found="no"
8732
8733 if test $found = "no" ; then
8734 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8736 fi
8737
8738 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8740 fi
8741
8742 CFLAGS="$CFLAGS -Wmain"
8743
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8745 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8746 cacheid=xorg_cv_cc_flag__Wmain
8747 if eval \${$cacheid+:} false; then :
8748 $as_echo_n "(cached) " >&6
8749 else
8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751 /* end confdefs.h. */
8752 int i;
8753 int
8754 main ()
8755 {
8756
8757 ;
8758 return 0;
8759 }
8760 _ACEOF
8761 if ac_fn_c_try_link "$LINENO"; then :
8762 eval $cacheid=yes
8763 else
8764 eval $cacheid=no
8765 fi
8766 rm -f core conftest.err conftest.$ac_objext \
8767 conftest$ac_exeext conftest.$ac_ext
8768 fi
8769
8770
8771 CFLAGS="$xorg_testset_save_CFLAGS"
8772
8773 eval supported=\$$cacheid
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8775 $as_echo "$supported" >&6; }
8776 if test "$supported" = "yes" ; then
8777 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8778 found="yes"
8779 fi
8780 fi
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796 xorg_testset_save_CFLAGS="$CFLAGS"
8797
8798 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8801 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8802 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8803 $as_echo_n "(cached) " >&6
8804 else
8805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8806 /* end confdefs.h. */
8807 int i;
8808 _ACEOF
8809 if ac_fn_c_try_compile "$LINENO"; then :
8810 xorg_cv_cc_flag_unknown_warning_option=yes
8811 else
8812 xorg_cv_cc_flag_unknown_warning_option=no
8813 fi
8814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8815 fi
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8817 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8818 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8819 CFLAGS="$xorg_testset_save_CFLAGS"
8820 fi
8821
8822 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8825 fi
8826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8828 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8829 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8830 $as_echo_n "(cached) " >&6
8831 else
8832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833 /* end confdefs.h. */
8834 int i;
8835 _ACEOF
8836 if ac_fn_c_try_compile "$LINENO"; then :
8837 xorg_cv_cc_flag_unused_command_line_argument=yes
8838 else
8839 xorg_cv_cc_flag_unused_command_line_argument=no
8840 fi
8841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8842 fi
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8844 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8845 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8846 CFLAGS="$xorg_testset_save_CFLAGS"
8847 fi
8848
8849 found="no"
8850
8851 if test $found = "no" ; then
8852 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8854 fi
8855
8856 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8858 fi
8859
8860 CFLAGS="$CFLAGS -Wmissing-braces"
8861
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8863 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8864 cacheid=xorg_cv_cc_flag__Wmissing_braces
8865 if eval \${$cacheid+:} false; then :
8866 $as_echo_n "(cached) " >&6
8867 else
8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h. */
8870 int i;
8871 int
8872 main ()
8873 {
8874
8875 ;
8876 return 0;
8877 }
8878 _ACEOF
8879 if ac_fn_c_try_link "$LINENO"; then :
8880 eval $cacheid=yes
8881 else
8882 eval $cacheid=no
8883 fi
8884 rm -f core conftest.err conftest.$ac_objext \
8885 conftest$ac_exeext conftest.$ac_ext
8886 fi
8887
8888
8889 CFLAGS="$xorg_testset_save_CFLAGS"
8890
8891 eval supported=\$$cacheid
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8893 $as_echo "$supported" >&6; }
8894 if test "$supported" = "yes" ; then
8895 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8896 found="yes"
8897 fi
8898 fi
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914 xorg_testset_save_CFLAGS="$CFLAGS"
8915
8916 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8919 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8920 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8921 $as_echo_n "(cached) " >&6
8922 else
8923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h. */
8925 int i;
8926 _ACEOF
8927 if ac_fn_c_try_compile "$LINENO"; then :
8928 xorg_cv_cc_flag_unknown_warning_option=yes
8929 else
8930 xorg_cv_cc_flag_unknown_warning_option=no
8931 fi
8932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8933 fi
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8935 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8936 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8937 CFLAGS="$xorg_testset_save_CFLAGS"
8938 fi
8939
8940 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8943 fi
8944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8946 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8947 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8948 $as_echo_n "(cached) " >&6
8949 else
8950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8951 /* end confdefs.h. */
8952 int i;
8953 _ACEOF
8954 if ac_fn_c_try_compile "$LINENO"; then :
8955 xorg_cv_cc_flag_unused_command_line_argument=yes
8956 else
8957 xorg_cv_cc_flag_unused_command_line_argument=no
8958 fi
8959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8960 fi
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8962 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8964 CFLAGS="$xorg_testset_save_CFLAGS"
8965 fi
8966
8967 found="no"
8968
8969 if test $found = "no" ; then
8970 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8972 fi
8973
8974 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8976 fi
8977
8978 CFLAGS="$CFLAGS -Wsequence-point"
8979
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8981 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8982 cacheid=xorg_cv_cc_flag__Wsequence_point
8983 if eval \${$cacheid+:} false; then :
8984 $as_echo_n "(cached) " >&6
8985 else
8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987 /* end confdefs.h. */
8988 int i;
8989 int
8990 main ()
8991 {
8992
8993 ;
8994 return 0;
8995 }
8996 _ACEOF
8997 if ac_fn_c_try_link "$LINENO"; then :
8998 eval $cacheid=yes
8999 else
9000 eval $cacheid=no
9001 fi
9002 rm -f core conftest.err conftest.$ac_objext \
9003 conftest$ac_exeext conftest.$ac_ext
9004 fi
9005
9006
9007 CFLAGS="$xorg_testset_save_CFLAGS"
9008
9009 eval supported=\$$cacheid
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9011 $as_echo "$supported" >&6; }
9012 if test "$supported" = "yes" ; then
9013 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9014 found="yes"
9015 fi
9016 fi
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032 xorg_testset_save_CFLAGS="$CFLAGS"
9033
9034 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9037 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9038 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9039 $as_echo_n "(cached) " >&6
9040 else
9041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9042 /* end confdefs.h. */
9043 int i;
9044 _ACEOF
9045 if ac_fn_c_try_compile "$LINENO"; then :
9046 xorg_cv_cc_flag_unknown_warning_option=yes
9047 else
9048 xorg_cv_cc_flag_unknown_warning_option=no
9049 fi
9050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9051 fi
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9053 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9054 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9055 CFLAGS="$xorg_testset_save_CFLAGS"
9056 fi
9057
9058 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9061 fi
9062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9064 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9065 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9066 $as_echo_n "(cached) " >&6
9067 else
9068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9069 /* end confdefs.h. */
9070 int i;
9071 _ACEOF
9072 if ac_fn_c_try_compile "$LINENO"; then :
9073 xorg_cv_cc_flag_unused_command_line_argument=yes
9074 else
9075 xorg_cv_cc_flag_unused_command_line_argument=no
9076 fi
9077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9078 fi
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9080 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9082 CFLAGS="$xorg_testset_save_CFLAGS"
9083 fi
9084
9085 found="no"
9086
9087 if test $found = "no" ; then
9088 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9090 fi
9091
9092 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9094 fi
9095
9096 CFLAGS="$CFLAGS -Wreturn-type"
9097
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9099 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9100 cacheid=xorg_cv_cc_flag__Wreturn_type
9101 if eval \${$cacheid+:} false; then :
9102 $as_echo_n "(cached) " >&6
9103 else
9104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9105 /* end confdefs.h. */
9106 int i;
9107 int
9108 main ()
9109 {
9110
9111 ;
9112 return 0;
9113 }
9114 _ACEOF
9115 if ac_fn_c_try_link "$LINENO"; then :
9116 eval $cacheid=yes
9117 else
9118 eval $cacheid=no
9119 fi
9120 rm -f core conftest.err conftest.$ac_objext \
9121 conftest$ac_exeext conftest.$ac_ext
9122 fi
9123
9124
9125 CFLAGS="$xorg_testset_save_CFLAGS"
9126
9127 eval supported=\$$cacheid
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9129 $as_echo "$supported" >&6; }
9130 if test "$supported" = "yes" ; then
9131 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9132 found="yes"
9133 fi
9134 fi
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150 xorg_testset_save_CFLAGS="$CFLAGS"
9151
9152 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9155 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9156 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9157 $as_echo_n "(cached) " >&6
9158 else
9159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9160 /* end confdefs.h. */
9161 int i;
9162 _ACEOF
9163 if ac_fn_c_try_compile "$LINENO"; then :
9164 xorg_cv_cc_flag_unknown_warning_option=yes
9165 else
9166 xorg_cv_cc_flag_unknown_warning_option=no
9167 fi
9168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9169 fi
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9171 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9172 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9173 CFLAGS="$xorg_testset_save_CFLAGS"
9174 fi
9175
9176 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9179 fi
9180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9182 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9183 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9184 $as_echo_n "(cached) " >&6
9185 else
9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9188 int i;
9189 _ACEOF
9190 if ac_fn_c_try_compile "$LINENO"; then :
9191 xorg_cv_cc_flag_unused_command_line_argument=yes
9192 else
9193 xorg_cv_cc_flag_unused_command_line_argument=no
9194 fi
9195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9196 fi
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9198 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9200 CFLAGS="$xorg_testset_save_CFLAGS"
9201 fi
9202
9203 found="no"
9204
9205 if test $found = "no" ; then
9206 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9207 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9208 fi
9209
9210 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9212 fi
9213
9214 CFLAGS="$CFLAGS -Wtrigraphs"
9215
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9217 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9218 cacheid=xorg_cv_cc_flag__Wtrigraphs
9219 if eval \${$cacheid+:} false; then :
9220 $as_echo_n "(cached) " >&6
9221 else
9222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9223 /* end confdefs.h. */
9224 int i;
9225 int
9226 main ()
9227 {
9228
9229 ;
9230 return 0;
9231 }
9232 _ACEOF
9233 if ac_fn_c_try_link "$LINENO"; then :
9234 eval $cacheid=yes
9235 else
9236 eval $cacheid=no
9237 fi
9238 rm -f core conftest.err conftest.$ac_objext \
9239 conftest$ac_exeext conftest.$ac_ext
9240 fi
9241
9242
9243 CFLAGS="$xorg_testset_save_CFLAGS"
9244
9245 eval supported=\$$cacheid
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9247 $as_echo "$supported" >&6; }
9248 if test "$supported" = "yes" ; then
9249 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9250 found="yes"
9251 fi
9252 fi
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268 xorg_testset_save_CFLAGS="$CFLAGS"
9269
9270 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9273 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9274 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9275 $as_echo_n "(cached) " >&6
9276 else
9277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9278 /* end confdefs.h. */
9279 int i;
9280 _ACEOF
9281 if ac_fn_c_try_compile "$LINENO"; then :
9282 xorg_cv_cc_flag_unknown_warning_option=yes
9283 else
9284 xorg_cv_cc_flag_unknown_warning_option=no
9285 fi
9286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9287 fi
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9289 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9290 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9291 CFLAGS="$xorg_testset_save_CFLAGS"
9292 fi
9293
9294 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9297 fi
9298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9300 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9301 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9302 $as_echo_n "(cached) " >&6
9303 else
9304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9305 /* end confdefs.h. */
9306 int i;
9307 _ACEOF
9308 if ac_fn_c_try_compile "$LINENO"; then :
9309 xorg_cv_cc_flag_unused_command_line_argument=yes
9310 else
9311 xorg_cv_cc_flag_unused_command_line_argument=no
9312 fi
9313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9314 fi
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9316 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9317 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9318 CFLAGS="$xorg_testset_save_CFLAGS"
9319 fi
9320
9321 found="no"
9322
9323 if test $found = "no" ; then
9324 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9325 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9326 fi
9327
9328 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9330 fi
9331
9332 CFLAGS="$CFLAGS -Warray-bounds"
9333
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9335 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9336 cacheid=xorg_cv_cc_flag__Warray_bounds
9337 if eval \${$cacheid+:} false; then :
9338 $as_echo_n "(cached) " >&6
9339 else
9340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9341 /* end confdefs.h. */
9342 int i;
9343 int
9344 main ()
9345 {
9346
9347 ;
9348 return 0;
9349 }
9350 _ACEOF
9351 if ac_fn_c_try_link "$LINENO"; then :
9352 eval $cacheid=yes
9353 else
9354 eval $cacheid=no
9355 fi
9356 rm -f core conftest.err conftest.$ac_objext \
9357 conftest$ac_exeext conftest.$ac_ext
9358 fi
9359
9360
9361 CFLAGS="$xorg_testset_save_CFLAGS"
9362
9363 eval supported=\$$cacheid
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9365 $as_echo "$supported" >&6; }
9366 if test "$supported" = "yes" ; then
9367 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9368 found="yes"
9369 fi
9370 fi
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386 xorg_testset_save_CFLAGS="$CFLAGS"
9387
9388 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9391 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9392 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9393 $as_echo_n "(cached) " >&6
9394 else
9395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9396 /* end confdefs.h. */
9397 int i;
9398 _ACEOF
9399 if ac_fn_c_try_compile "$LINENO"; then :
9400 xorg_cv_cc_flag_unknown_warning_option=yes
9401 else
9402 xorg_cv_cc_flag_unknown_warning_option=no
9403 fi
9404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9405 fi
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9407 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9408 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9409 CFLAGS="$xorg_testset_save_CFLAGS"
9410 fi
9411
9412 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9415 fi
9416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9418 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9419 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9420 $as_echo_n "(cached) " >&6
9421 else
9422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9423 /* end confdefs.h. */
9424 int i;
9425 _ACEOF
9426 if ac_fn_c_try_compile "$LINENO"; then :
9427 xorg_cv_cc_flag_unused_command_line_argument=yes
9428 else
9429 xorg_cv_cc_flag_unused_command_line_argument=no
9430 fi
9431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9432 fi
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9434 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9435 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9436 CFLAGS="$xorg_testset_save_CFLAGS"
9437 fi
9438
9439 found="no"
9440
9441 if test $found = "no" ; then
9442 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9444 fi
9445
9446 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9448 fi
9449
9450 CFLAGS="$CFLAGS -Wwrite-strings"
9451
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9453 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9454 cacheid=xorg_cv_cc_flag__Wwrite_strings
9455 if eval \${$cacheid+:} false; then :
9456 $as_echo_n "(cached) " >&6
9457 else
9458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9459 /* end confdefs.h. */
9460 int i;
9461 int
9462 main ()
9463 {
9464
9465 ;
9466 return 0;
9467 }
9468 _ACEOF
9469 if ac_fn_c_try_link "$LINENO"; then :
9470 eval $cacheid=yes
9471 else
9472 eval $cacheid=no
9473 fi
9474 rm -f core conftest.err conftest.$ac_objext \
9475 conftest$ac_exeext conftest.$ac_ext
9476 fi
9477
9478
9479 CFLAGS="$xorg_testset_save_CFLAGS"
9480
9481 eval supported=\$$cacheid
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9483 $as_echo "$supported" >&6; }
9484 if test "$supported" = "yes" ; then
9485 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9486 found="yes"
9487 fi
9488 fi
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504 xorg_testset_save_CFLAGS="$CFLAGS"
9505
9506 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9509 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9510 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9511 $as_echo_n "(cached) " >&6
9512 else
9513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9514 /* end confdefs.h. */
9515 int i;
9516 _ACEOF
9517 if ac_fn_c_try_compile "$LINENO"; then :
9518 xorg_cv_cc_flag_unknown_warning_option=yes
9519 else
9520 xorg_cv_cc_flag_unknown_warning_option=no
9521 fi
9522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9523 fi
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9525 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9526 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9527 CFLAGS="$xorg_testset_save_CFLAGS"
9528 fi
9529
9530 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9533 fi
9534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9536 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9537 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9538 $as_echo_n "(cached) " >&6
9539 else
9540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9541 /* end confdefs.h. */
9542 int i;
9543 _ACEOF
9544 if ac_fn_c_try_compile "$LINENO"; then :
9545 xorg_cv_cc_flag_unused_command_line_argument=yes
9546 else
9547 xorg_cv_cc_flag_unused_command_line_argument=no
9548 fi
9549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9550 fi
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9552 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9553 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9554 CFLAGS="$xorg_testset_save_CFLAGS"
9555 fi
9556
9557 found="no"
9558
9559 if test $found = "no" ; then
9560 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9561 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9562 fi
9563
9564 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9566 fi
9567
9568 CFLAGS="$CFLAGS -Waddress"
9569
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9571 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9572 cacheid=xorg_cv_cc_flag__Waddress
9573 if eval \${$cacheid+:} false; then :
9574 $as_echo_n "(cached) " >&6
9575 else
9576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9577 /* end confdefs.h. */
9578 int i;
9579 int
9580 main ()
9581 {
9582
9583 ;
9584 return 0;
9585 }
9586 _ACEOF
9587 if ac_fn_c_try_link "$LINENO"; then :
9588 eval $cacheid=yes
9589 else
9590 eval $cacheid=no
9591 fi
9592 rm -f core conftest.err conftest.$ac_objext \
9593 conftest$ac_exeext conftest.$ac_ext
9594 fi
9595
9596
9597 CFLAGS="$xorg_testset_save_CFLAGS"
9598
9599 eval supported=\$$cacheid
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9601 $as_echo "$supported" >&6; }
9602 if test "$supported" = "yes" ; then
9603 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9604 found="yes"
9605 fi
9606 fi
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622 xorg_testset_save_CFLAGS="$CFLAGS"
9623
9624 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9627 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9628 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9629 $as_echo_n "(cached) " >&6
9630 else
9631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9632 /* end confdefs.h. */
9633 int i;
9634 _ACEOF
9635 if ac_fn_c_try_compile "$LINENO"; then :
9636 xorg_cv_cc_flag_unknown_warning_option=yes
9637 else
9638 xorg_cv_cc_flag_unknown_warning_option=no
9639 fi
9640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9641 fi
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9643 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9644 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9645 CFLAGS="$xorg_testset_save_CFLAGS"
9646 fi
9647
9648 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9651 fi
9652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9654 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9655 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9656 $as_echo_n "(cached) " >&6
9657 else
9658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9659 /* end confdefs.h. */
9660 int i;
9661 _ACEOF
9662 if ac_fn_c_try_compile "$LINENO"; then :
9663 xorg_cv_cc_flag_unused_command_line_argument=yes
9664 else
9665 xorg_cv_cc_flag_unused_command_line_argument=no
9666 fi
9667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9668 fi
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9670 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9671 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9672 CFLAGS="$xorg_testset_save_CFLAGS"
9673 fi
9674
9675 found="no"
9676
9677 if test $found = "no" ; then
9678 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9680 fi
9681
9682 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9684 fi
9685
9686 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9687
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9689 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9690 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9691 if eval \${$cacheid+:} false; then :
9692 $as_echo_n "(cached) " >&6
9693 else
9694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9695 /* end confdefs.h. */
9696 int i;
9697 int
9698 main ()
9699 {
9700
9701 ;
9702 return 0;
9703 }
9704 _ACEOF
9705 if ac_fn_c_try_link "$LINENO"; then :
9706 eval $cacheid=yes
9707 else
9708 eval $cacheid=no
9709 fi
9710 rm -f core conftest.err conftest.$ac_objext \
9711 conftest$ac_exeext conftest.$ac_ext
9712 fi
9713
9714
9715 CFLAGS="$xorg_testset_save_CFLAGS"
9716
9717 eval supported=\$$cacheid
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9719 $as_echo "$supported" >&6; }
9720 if test "$supported" = "yes" ; then
9721 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9722 found="yes"
9723 fi
9724 fi
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740 xorg_testset_save_CFLAGS="$CFLAGS"
9741
9742 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9745 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9746 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9747 $as_echo_n "(cached) " >&6
9748 else
9749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9750 /* end confdefs.h. */
9751 int i;
9752 _ACEOF
9753 if ac_fn_c_try_compile "$LINENO"; then :
9754 xorg_cv_cc_flag_unknown_warning_option=yes
9755 else
9756 xorg_cv_cc_flag_unknown_warning_option=no
9757 fi
9758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9759 fi
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9761 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9762 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9763 CFLAGS="$xorg_testset_save_CFLAGS"
9764 fi
9765
9766 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9769 fi
9770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9772 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9773 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9774 $as_echo_n "(cached) " >&6
9775 else
9776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777 /* end confdefs.h. */
9778 int i;
9779 _ACEOF
9780 if ac_fn_c_try_compile "$LINENO"; then :
9781 xorg_cv_cc_flag_unused_command_line_argument=yes
9782 else
9783 xorg_cv_cc_flag_unused_command_line_argument=no
9784 fi
9785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9786 fi
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9788 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9789 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9790 CFLAGS="$xorg_testset_save_CFLAGS"
9791 fi
9792
9793 found="no"
9794
9795 if test $found = "no" ; then
9796 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9797 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9798 fi
9799
9800 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9802 fi
9803
9804 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9805
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9807 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9808 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9809 if eval \${$cacheid+:} false; then :
9810 $as_echo_n "(cached) " >&6
9811 else
9812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9813 /* end confdefs.h. */
9814 int i;
9815 int
9816 main ()
9817 {
9818
9819 ;
9820 return 0;
9821 }
9822 _ACEOF
9823 if ac_fn_c_try_link "$LINENO"; then :
9824 eval $cacheid=yes
9825 else
9826 eval $cacheid=no
9827 fi
9828 rm -f core conftest.err conftest.$ac_objext \
9829 conftest$ac_exeext conftest.$ac_ext
9830 fi
9831
9832
9833 CFLAGS="$xorg_testset_save_CFLAGS"
9834
9835 eval supported=\$$cacheid
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9837 $as_echo "$supported" >&6; }
9838 if test "$supported" = "yes" ; then
9839 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9840 found="yes"
9841 fi
9842 fi
9843
9844
9845 fi
9846
9847
9848
9849
9850
9851
9852
9853 CWARNFLAGS="$BASE_CFLAGS"
9854 if test "x$GCC" = xyes ; then
9855 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9856 fi
9857
9858
9859
9860
9861
9862
9863
9864
9865 # Check whether --enable-strict-compilation was given.
9866 if test "${enable_strict_compilation+set}" = set; then :
9867 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9868 else
9869 STRICT_COMPILE=no
9870 fi
9871
9872
9873
9874
9875
9876
9877 STRICT_CFLAGS=""
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891 xorg_testset_save_CFLAGS="$CFLAGS"
9892
9893 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9896 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9897 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9898 $as_echo_n "(cached) " >&6
9899 else
9900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9901 /* end confdefs.h. */
9902 int i;
9903 _ACEOF
9904 if ac_fn_c_try_compile "$LINENO"; then :
9905 xorg_cv_cc_flag_unknown_warning_option=yes
9906 else
9907 xorg_cv_cc_flag_unknown_warning_option=no
9908 fi
9909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9910 fi
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9912 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9913 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9914 CFLAGS="$xorg_testset_save_CFLAGS"
9915 fi
9916
9917 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9920 fi
9921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9923 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9924 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9925 $as_echo_n "(cached) " >&6
9926 else
9927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9928 /* end confdefs.h. */
9929 int i;
9930 _ACEOF
9931 if ac_fn_c_try_compile "$LINENO"; then :
9932 xorg_cv_cc_flag_unused_command_line_argument=yes
9933 else
9934 xorg_cv_cc_flag_unused_command_line_argument=no
9935 fi
9936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9937 fi
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9939 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9941 CFLAGS="$xorg_testset_save_CFLAGS"
9942 fi
9943
9944 found="no"
9945
9946 if test $found = "no" ; then
9947 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9949 fi
9950
9951 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9953 fi
9954
9955 CFLAGS="$CFLAGS -pedantic"
9956
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9958 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
9959 cacheid=xorg_cv_cc_flag__pedantic
9960 if eval \${$cacheid+:} false; then :
9961 $as_echo_n "(cached) " >&6
9962 else
9963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964 /* end confdefs.h. */
9965 int i;
9966 int
9967 main ()
9968 {
9969
9970 ;
9971 return 0;
9972 }
9973 _ACEOF
9974 if ac_fn_c_try_link "$LINENO"; then :
9975 eval $cacheid=yes
9976 else
9977 eval $cacheid=no
9978 fi
9979 rm -f core conftest.err conftest.$ac_objext \
9980 conftest$ac_exeext conftest.$ac_ext
9981 fi
9982
9983
9984 CFLAGS="$xorg_testset_save_CFLAGS"
9985
9986 eval supported=\$$cacheid
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9988 $as_echo "$supported" >&6; }
9989 if test "$supported" = "yes" ; then
9990 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9991 found="yes"
9992 fi
9993 fi
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009 xorg_testset_save_CFLAGS="$CFLAGS"
10010
10011 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10014 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10015 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10016 $as_echo_n "(cached) " >&6
10017 else
10018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10019 /* end confdefs.h. */
10020 int i;
10021 _ACEOF
10022 if ac_fn_c_try_compile "$LINENO"; then :
10023 xorg_cv_cc_flag_unknown_warning_option=yes
10024 else
10025 xorg_cv_cc_flag_unknown_warning_option=no
10026 fi
10027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10028 fi
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10030 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10031 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10032 CFLAGS="$xorg_testset_save_CFLAGS"
10033 fi
10034
10035 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10038 fi
10039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10041 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10042 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10043 $as_echo_n "(cached) " >&6
10044 else
10045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10046 /* end confdefs.h. */
10047 int i;
10048 _ACEOF
10049 if ac_fn_c_try_compile "$LINENO"; then :
10050 xorg_cv_cc_flag_unused_command_line_argument=yes
10051 else
10052 xorg_cv_cc_flag_unused_command_line_argument=no
10053 fi
10054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10055 fi
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10057 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10059 CFLAGS="$xorg_testset_save_CFLAGS"
10060 fi
10061
10062 found="no"
10063
10064 if test $found = "no" ; then
10065 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10067 fi
10068
10069 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10071 fi
10072
10073 CFLAGS="$CFLAGS -Werror"
10074
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10076 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10077 cacheid=xorg_cv_cc_flag__Werror
10078 if eval \${$cacheid+:} false; then :
10079 $as_echo_n "(cached) " >&6
10080 else
10081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10082 /* end confdefs.h. */
10083 int i;
10084 int
10085 main ()
10086 {
10087
10088 ;
10089 return 0;
10090 }
10091 _ACEOF
10092 if ac_fn_c_try_link "$LINENO"; then :
10093 eval $cacheid=yes
10094 else
10095 eval $cacheid=no
10096 fi
10097 rm -f core conftest.err conftest.$ac_objext \
10098 conftest$ac_exeext conftest.$ac_ext
10099 fi
10100
10101
10102 CFLAGS="$xorg_testset_save_CFLAGS"
10103
10104 eval supported=\$$cacheid
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10106 $as_echo "$supported" >&6; }
10107 if test "$supported" = "yes" ; then
10108 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10109 found="yes"
10110 fi
10111 fi
10112
10113 if test $found = "no" ; then
10114 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10116 fi
10117
10118 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10120 fi
10121
10122 CFLAGS="$CFLAGS -errwarn"
10123
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10125 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10126 cacheid=xorg_cv_cc_flag__errwarn
10127 if eval \${$cacheid+:} false; then :
10128 $as_echo_n "(cached) " >&6
10129 else
10130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10131 /* end confdefs.h. */
10132 int i;
10133 int
10134 main ()
10135 {
10136
10137 ;
10138 return 0;
10139 }
10140 _ACEOF
10141 if ac_fn_c_try_link "$LINENO"; then :
10142 eval $cacheid=yes
10143 else
10144 eval $cacheid=no
10145 fi
10146 rm -f core conftest.err conftest.$ac_objext \
10147 conftest$ac_exeext conftest.$ac_ext
10148 fi
10149
10150
10151 CFLAGS="$xorg_testset_save_CFLAGS"
10152
10153 eval supported=\$$cacheid
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10155 $as_echo "$supported" >&6; }
10156 if test "$supported" = "yes" ; then
10157 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10158 found="yes"
10159 fi
10160 fi
10161
10162
10163
10164 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10165 # activate it with -Werror, so we add it here explicitly.
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179 xorg_testset_save_CFLAGS="$CFLAGS"
10180
10181 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10184 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10185 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10186 $as_echo_n "(cached) " >&6
10187 else
10188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10189 /* end confdefs.h. */
10190 int i;
10191 _ACEOF
10192 if ac_fn_c_try_compile "$LINENO"; then :
10193 xorg_cv_cc_flag_unknown_warning_option=yes
10194 else
10195 xorg_cv_cc_flag_unknown_warning_option=no
10196 fi
10197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10198 fi
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10200 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10201 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10202 CFLAGS="$xorg_testset_save_CFLAGS"
10203 fi
10204
10205 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10207 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10208 fi
10209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10211 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10212 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10213 $as_echo_n "(cached) " >&6
10214 else
10215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10216 /* end confdefs.h. */
10217 int i;
10218 _ACEOF
10219 if ac_fn_c_try_compile "$LINENO"; then :
10220 xorg_cv_cc_flag_unused_command_line_argument=yes
10221 else
10222 xorg_cv_cc_flag_unused_command_line_argument=no
10223 fi
10224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10225 fi
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10227 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10228 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10229 CFLAGS="$xorg_testset_save_CFLAGS"
10230 fi
10231
10232 found="no"
10233
10234 if test $found = "no" ; then
10235 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10236 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10237 fi
10238
10239 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10241 fi
10242
10243 CFLAGS="$CFLAGS -Werror=attributes"
10244
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10246 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10247 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10248 if eval \${$cacheid+:} false; then :
10249 $as_echo_n "(cached) " >&6
10250 else
10251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10252 /* end confdefs.h. */
10253 int i;
10254 int
10255 main ()
10256 {
10257
10258 ;
10259 return 0;
10260 }
10261 _ACEOF
10262 if ac_fn_c_try_link "$LINENO"; then :
10263 eval $cacheid=yes
10264 else
10265 eval $cacheid=no
10266 fi
10267 rm -f core conftest.err conftest.$ac_objext \
10268 conftest$ac_exeext conftest.$ac_ext
10269 fi
10270
10271
10272 CFLAGS="$xorg_testset_save_CFLAGS"
10273
10274 eval supported=\$$cacheid
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10276 $as_echo "$supported" >&6; }
10277 if test "$supported" = "yes" ; then
10278 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10279 found="yes"
10280 fi
10281 fi
10282
10283
10284
10285 if test "x$STRICT_COMPILE" = "xyes"; then
10286 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10287 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10288 fi
10289
10290
10291
10292
10293
10294
10295 cat >>confdefs.h <<_ACEOF
10296 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10297 _ACEOF
10298
10299 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10300 if test "x$PVM" = "x"; then
10301 PVM="0"
10302 fi
10303
10304 cat >>confdefs.h <<_ACEOF
10305 #define PACKAGE_VERSION_MINOR $PVM
10306 _ACEOF
10307
10308 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10309 if test "x$PVP" = "x"; then
10310 PVP="0"
10311 fi
10312
10313 cat >>confdefs.h <<_ACEOF
10314 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10315 _ACEOF
10316
10317
10318
10319 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10320 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10321 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10322 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10323
10324
10325
10326
10327 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10328 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10329 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10330 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10331 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10332
10333
10334
10335
10336
10337
10338 if test x$APP_MAN_SUFFIX = x ; then
10339 APP_MAN_SUFFIX=1
10340 fi
10341 if test x$APP_MAN_DIR = x ; then
10342 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10343 fi
10344
10345 if test x$LIB_MAN_SUFFIX = x ; then
10346 LIB_MAN_SUFFIX=3
10347 fi
10348 if test x$LIB_MAN_DIR = x ; then
10349 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10350 fi
10351
10352 if test x$FILE_MAN_SUFFIX = x ; then
10353 case $host_os in
10354 solaris*) FILE_MAN_SUFFIX=4 ;;
10355 *) FILE_MAN_SUFFIX=5 ;;
10356 esac
10357 fi
10358 if test x$FILE_MAN_DIR = x ; then
10359 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10360 fi
10361
10362 if test x$MISC_MAN_SUFFIX = x ; then
10363 case $host_os in
10364 solaris*) MISC_MAN_SUFFIX=5 ;;
10365 *) MISC_MAN_SUFFIX=7 ;;
10366 esac
10367 fi
10368 if test x$MISC_MAN_DIR = x ; then
10369 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10370 fi
10371
10372 if test x$DRIVER_MAN_SUFFIX = x ; then
10373 case $host_os in
10374 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10375 *) DRIVER_MAN_SUFFIX=4 ;;
10376 esac
10377 fi
10378 if test x$DRIVER_MAN_DIR = x ; then
10379 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10380 fi
10381
10382 if test x$ADMIN_MAN_SUFFIX = x ; then
10383 case $host_os in
10384 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10385 *) ADMIN_MAN_SUFFIX=8 ;;
10386 esac
10387 fi
10388 if test x$ADMIN_MAN_DIR = x ; then
10389 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10390 fi
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406 XORG_MAN_PAGE="X Version 11"
10407
10408 MAN_SUBSTS="\
10409 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10410 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10411 -e 's|__xservername__|Xorg|g' \
10412 -e 's|__xconfigfile__|xorg.conf|g' \
10413 -e 's|__projectroot__|\$(prefix)|g' \
10414 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10415 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10416 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10417 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10418 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10419 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10420 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10421
10422
10423
10424 # Check whether --enable-silent-rules was given.
10425 if test "${enable_silent_rules+set}" = set; then :
10426 enableval=$enable_silent_rules;
10427 fi
10428
10429 case $enable_silent_rules in
10430 yes) AM_DEFAULT_VERBOSITY=0;;
10431 no) AM_DEFAULT_VERBOSITY=1;;
10432 *) AM_DEFAULT_VERBOSITY=0;;
10433 esac
10434 AM_BACKSLASH='\'
10435
10436
10437
10438
10439 # Check whether --with-rsh was given.
10440 if test "${with_rsh+set}" = set; then :
10441 withval=$with_rsh; rsh="$withval"
10442 else
10443 rsh=${bindir}/ssh
10444 fi
10445
10446 RSH=$rsh
10447
10448
10449 for ac_func in mkstemp putenv
10450 do :
10451 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10452 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10453 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10454 cat >>confdefs.h <<_ACEOF
10455 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10456 _ACEOF
10457
10458 fi
10459 done
10460
10461
10462 # Checks for pkg-config packages
10463
10464 pkg_failed=no
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSM" >&5
10466 $as_echo_n "checking for XSM... " >&6; }
10467
10468 if test -n "$XSM_CFLAGS"; then
10469 pkg_cv_XSM_CFLAGS="$XSM_CFLAGS"
10470 elif test -n "$PKG_CONFIG"; then
10471 if test -n "$PKG_CONFIG" && \
10472 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt > 1.0.99 ice sm xaw7\""; } >&5
10473 ($PKG_CONFIG --exists --print-errors "x11 xt > 1.0.99 ice sm xaw7") 2>&5
10474 ac_status=$?
10475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10476 test $ac_status = 0; }; then
10477 pkg_cv_XSM_CFLAGS=`$PKG_CONFIG --cflags "x11 xt > 1.0.99 ice sm xaw7" 2>/dev/null`
10478 else
10479 pkg_failed=yes
10480 fi
10481 else
10482 pkg_failed=untried
10483 fi
10484 if test -n "$XSM_LIBS"; then
10485 pkg_cv_XSM_LIBS="$XSM_LIBS"
10486 elif test -n "$PKG_CONFIG"; then
10487 if test -n "$PKG_CONFIG" && \
10488 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt > 1.0.99 ice sm xaw7\""; } >&5
10489 ($PKG_CONFIG --exists --print-errors "x11 xt > 1.0.99 ice sm xaw7") 2>&5
10490 ac_status=$?
10491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10492 test $ac_status = 0; }; then
10493 pkg_cv_XSM_LIBS=`$PKG_CONFIG --libs "x11 xt > 1.0.99 ice sm xaw7" 2>/dev/null`
10494 else
10495 pkg_failed=yes
10496 fi
10497 else
10498 pkg_failed=untried
10499 fi
10500
10501
10502
10503 if test $pkg_failed = yes; then
10504
10505 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10506 _pkg_short_errors_supported=yes
10507 else
10508 _pkg_short_errors_supported=no
10509 fi
10510 if test $_pkg_short_errors_supported = yes; then
10511 XSM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xt > 1.0.99 ice sm xaw7" 2>&1`
10512 else
10513 XSM_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xt > 1.0.99 ice sm xaw7" 2>&1`
10514 fi
10515 # Put the nasty error message in config.log where it belongs
10516 echo "$XSM_PKG_ERRORS" >&5
10517
10518 as_fn_error $? "Package requirements (x11 xt > 1.0.99 ice sm xaw7) were not met:
10519
10520 $XSM_PKG_ERRORS
10521
10522 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10523 installed software in a non-standard prefix.
10524
10525 Alternatively, you may set the environment variables XSM_CFLAGS
10526 and XSM_LIBS to avoid the need to call pkg-config.
10527 See the pkg-config man page for more details.
10528 " "$LINENO" 5
10529 elif test $pkg_failed = untried; then
10530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10532 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10533 is in your PATH or set the PKG_CONFIG environment variable to the full
10534 path to pkg-config.
10535
10536 Alternatively, you may set the environment variables XSM_CFLAGS
10537 and XSM_LIBS to avoid the need to call pkg-config.
10538 See the pkg-config man page for more details.
10539
10540 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10541 See \`config.log' for more details" "$LINENO" 5; }
10542 else
10543 XSM_CFLAGS=$pkg_cv_XSM_CFLAGS
10544 XSM_LIBS=$pkg_cv_XSM_LIBS
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10546 $as_echo "yes" >&6; }
10547 :
10548 fi
10549
10550 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
10551
10552 # Check whether --with-appdefaultdir was given.
10553 if test "${with_appdefaultdir+set}" = set; then :
10554 withval=$with_appdefaultdir; appdefaultdir="$withval"
10555 else
10556 appdefaultdir="${xt_appdefaultdir}"
10557 fi
10558
10559
10560
10561
10562 ac_config_files="$ac_config_files Makefile man/Makefile"
10563
10564 cat >confcache <<\_ACEOF
10565 # This file is a shell script that caches the results of configure
10566 # tests run on this system so they can be shared between configure
10567 # scripts and configure runs, see configure's option --config-cache.
10568 # It is not useful on other systems. If it contains results you don't
10569 # want to keep, you may remove or edit it.
10570 #
10571 # config.status only pays attention to the cache file if you give it
10572 # the --recheck option to rerun configure.
10573 #
10574 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10575 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10576 # following values.
10577
10578 _ACEOF
10579
10580 # The following way of writing the cache mishandles newlines in values,
10581 # but we know of no workaround that is simple, portable, and efficient.
10582 # So, we kill variables containing newlines.
10583 # Ultrix sh set writes to stderr and can't be redirected directly,
10584 # and sets the high bit in the cache file unless we assign to the vars.
10585 (
10586 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10587 eval ac_val=\$$ac_var
10588 case $ac_val in #(
10589 *${as_nl}*)
10590 case $ac_var in #(
10591 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10592 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10593 esac
10594 case $ac_var in #(
10595 _ | IFS | as_nl) ;; #(
10596 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10597 *) { eval $ac_var=; unset $ac_var;} ;;
10598 esac ;;
10599 esac
10600 done
10601
10602 (set) 2>&1 |
10603 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10604 *${as_nl}ac_space=\ *)
10605 # `set' does not quote correctly, so add quotes: double-quote
10606 # substitution turns \\\\ into \\, and sed turns \\ into \.
10607 sed -n \
10608 "s/'/'\\\\''/g;
10609 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10610 ;; #(
10611 *)
10612 # `set' quotes correctly as required by POSIX, so do not add quotes.
10613 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10614 ;;
10615 esac |
10616 sort
10617 ) |
10618 sed '
10619 /^ac_cv_env_/b end
10620 t clear
10621 :clear
10622 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10623 t end
10624 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10625 :end' >>confcache
10626 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10627 if test -w "$cache_file"; then
10628 if test "x$cache_file" != "x/dev/null"; then
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10630 $as_echo "$as_me: updating cache $cache_file" >&6;}
10631 if test ! -f "$cache_file" || test -h "$cache_file"; then
10632 cat confcache >"$cache_file"
10633 else
10634 case $cache_file in #(
10635 */* | ?:*)
10636 mv -f confcache "$cache_file"$$ &&
10637 mv -f "$cache_file"$$ "$cache_file" ;; #(
10638 *)
10639 mv -f confcache "$cache_file" ;;
10640 esac
10641 fi
10642 fi
10643 else
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10645 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10646 fi
10647 fi
10648 rm -f confcache
10649
10650 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10651 # Let make expand exec_prefix.
10652 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10653
10654 DEFS=-DHAVE_CONFIG_H
10655
10656 ac_libobjs=
10657 ac_ltlibobjs=
10658 U=
10659 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10660 # 1. Remove the extension, and $U if already installed.
10661 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10662 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10663 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10664 # will be set to the directory where LIBOBJS objects are built.
10665 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10666 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10667 done
10668 LIBOBJS=$ac_libobjs
10669
10670 LTLIBOBJS=$ac_ltlibobjs
10671
10672
10673 if test -n "$EXEEXT"; then
10674 am__EXEEXT_TRUE=
10675 am__EXEEXT_FALSE='#'
10676 else
10677 am__EXEEXT_TRUE='#'
10678 am__EXEEXT_FALSE=
10679 fi
10680
10681 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10682 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10684 fi
10685 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10686 as_fn_error $? "conditional \"AMDEP\" was never defined.
10687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10688 fi
10689 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10690 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10692 fi
10693
10694 : "${CONFIG_STATUS=./config.status}"
10695 ac_write_fail=0
10696 ac_clean_files_save=$ac_clean_files
10697 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10699 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10700 as_write_fail=0
10701 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10702 #! $SHELL
10703 # Generated by $as_me.
10704 # Run this file to recreate the current configuration.
10705 # Compiler output produced by configure, useful for debugging
10706 # configure, is in config.log if it exists.
10707
10708 debug=false
10709 ac_cs_recheck=false
10710 ac_cs_silent=false
10711
10712 SHELL=\${CONFIG_SHELL-$SHELL}
10713 export SHELL
10714 _ASEOF
10715 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10716 ## -------------------- ##
10717 ## M4sh Initialization. ##
10718 ## -------------------- ##
10719
10720 # Be more Bourne compatible
10721 DUALCASE=1; export DUALCASE # for MKS sh
10722 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10723 emulate sh
10724 NULLCMD=:
10725 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10726 # is contrary to our usage. Disable this feature.
10727 alias -g '${1+"$@"}'='"$@"'
10728 setopt NO_GLOB_SUBST
10729 else
10730 case `(set -o) 2>/dev/null` in #(
10731 *posix*) :
10732 set -o posix ;; #(
10733 *) :
10734 ;;
10735 esac
10736 fi
10737
10738
10739 as_nl='
10740 '
10741 export as_nl
10742 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10743 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10744 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10745 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10746 # Prefer a ksh shell builtin over an external printf program on Solaris,
10747 # but without wasting forks for bash or zsh.
10748 if test -z "$BASH_VERSION$ZSH_VERSION" \
10749 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10750 as_echo='print -r --'
10751 as_echo_n='print -rn --'
10752 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10753 as_echo='printf %s\n'
10754 as_echo_n='printf %s'
10755 else
10756 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10757 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10758 as_echo_n='/usr/ucb/echo -n'
10759 else
10760 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10761 as_echo_n_body='eval
10762 arg=$1;
10763 case $arg in #(
10764 *"$as_nl"*)
10765 expr "X$arg" : "X\\(.*\\)$as_nl";
10766 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10767 esac;
10768 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10769 '
10770 export as_echo_n_body
10771 as_echo_n='sh -c $as_echo_n_body as_echo'
10772 fi
10773 export as_echo_body
10774 as_echo='sh -c $as_echo_body as_echo'
10775 fi
10776
10777 # The user is always right.
10778 if test "${PATH_SEPARATOR+set}" != set; then
10779 PATH_SEPARATOR=:
10780 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10781 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10782 PATH_SEPARATOR=';'
10783 }
10784 fi
10785
10786
10787 # IFS
10788 # We need space, tab and new line, in precisely that order. Quoting is
10789 # there to prevent editors from complaining about space-tab.
10790 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10791 # splitting by setting IFS to empty value.)
10792 IFS=" "" $as_nl"
10793
10794 # Find who we are. Look in the path if we contain no directory separator.
10795 as_myself=
10796 case $0 in #((
10797 *[\\/]* ) as_myself=$0 ;;
10798 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10799 for as_dir in $PATH
10800 do
10801 IFS=$as_save_IFS
10802 test -z "$as_dir" && as_dir=.
10803 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10804 done
10805 IFS=$as_save_IFS
10806
10807 ;;
10808 esac
10809 # We did not find ourselves, most probably we were run as `sh COMMAND'
10810 # in which case we are not to be found in the path.
10811 if test "x$as_myself" = x; then
10812 as_myself=$0
10813 fi
10814 if test ! -f "$as_myself"; then
10815 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10816 exit 1
10817 fi
10818
10819 # Unset variables that we do not need and which cause bugs (e.g. in
10820 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10821 # suppresses any "Segmentation fault" message there. '((' could
10822 # trigger a bug in pdksh 5.2.14.
10823 for as_var in BASH_ENV ENV MAIL MAILPATH
10824 do eval test x\${$as_var+set} = xset \
10825 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10826 done
10827 PS1='$ '
10828 PS2='> '
10829 PS4='+ '
10830
10831 # NLS nuisances.
10832 LC_ALL=C
10833 export LC_ALL
10834 LANGUAGE=C
10835 export LANGUAGE
10836
10837 # CDPATH.
10838 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10839
10840
10841 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10842 # ----------------------------------------
10843 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10844 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10845 # script with STATUS, using 1 if that was 0.
10846 as_fn_error ()
10847 {
10848 as_status=$1; test $as_status -eq 0 && as_status=1
10849 if test "$4"; then
10850 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10851 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10852 fi
10853 $as_echo "$as_me: error: $2" >&2
10854 as_fn_exit $as_status
10855 } # as_fn_error
10856
10857
10858 # as_fn_set_status STATUS
10859 # -----------------------
10860 # Set $? to STATUS, without forking.
10861 as_fn_set_status ()
10862 {
10863 return $1
10864 } # as_fn_set_status
10865
10866 # as_fn_exit STATUS
10867 # -----------------
10868 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10869 as_fn_exit ()
10870 {
10871 set +e
10872 as_fn_set_status $1
10873 exit $1
10874 } # as_fn_exit
10875
10876 # as_fn_unset VAR
10877 # ---------------
10878 # Portably unset VAR.
10879 as_fn_unset ()
10880 {
10881 { eval $1=; unset $1;}
10882 }
10883 as_unset=as_fn_unset
10884 # as_fn_append VAR VALUE
10885 # ----------------------
10886 # Append the text in VALUE to the end of the definition contained in VAR. Take
10887 # advantage of any shell optimizations that allow amortized linear growth over
10888 # repeated appends, instead of the typical quadratic growth present in naive
10889 # implementations.
10890 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10891 eval 'as_fn_append ()
10892 {
10893 eval $1+=\$2
10894 }'
10895 else
10896 as_fn_append ()
10897 {
10898 eval $1=\$$1\$2
10899 }
10900 fi # as_fn_append
10901
10902 # as_fn_arith ARG...
10903 # ------------------
10904 # Perform arithmetic evaluation on the ARGs, and store the result in the
10905 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10906 # must be portable across $(()) and expr.
10907 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10908 eval 'as_fn_arith ()
10909 {
10910 as_val=$(( $* ))
10911 }'
10912 else
10913 as_fn_arith ()
10914 {
10915 as_val=`expr "$@" || test $? -eq 1`
10916 }
10917 fi # as_fn_arith
10918
10919
10920 if expr a : '\(a\)' >/dev/null 2>&1 &&
10921 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10922 as_expr=expr
10923 else
10924 as_expr=false
10925 fi
10926
10927 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10928 as_basename=basename
10929 else
10930 as_basename=false
10931 fi
10932
10933 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10934 as_dirname=dirname
10935 else
10936 as_dirname=false
10937 fi
10938
10939 as_me=`$as_basename -- "$0" ||
10940 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10941 X"$0" : 'X\(//\)$' \| \
10942 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10943 $as_echo X/"$0" |
10944 sed '/^.*\/\([^/][^/]*\)\/*$/{
10945 s//\1/
10946 q
10947 }
10948 /^X\/\(\/\/\)$/{
10949 s//\1/
10950 q
10951 }
10952 /^X\/\(\/\).*/{
10953 s//\1/
10954 q
10955 }
10956 s/.*/./; q'`
10957
10958 # Avoid depending upon Character Ranges.
10959 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10960 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10961 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10962 as_cr_digits='0123456789'
10963 as_cr_alnum=$as_cr_Letters$as_cr_digits
10964
10965 ECHO_C= ECHO_N= ECHO_T=
10966 case `echo -n x` in #(((((
10967 -n*)
10968 case `echo 'xy\c'` in
10969 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10970 xy) ECHO_C='\c';;
10971 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10972 ECHO_T=' ';;
10973 esac;;
10974 *)
10975 ECHO_N='-n';;
10976 esac
10977
10978 rm -f conf$$ conf$$.exe conf$$.file
10979 if test -d conf$$.dir; then
10980 rm -f conf$$.dir/conf$$.file
10981 else
10982 rm -f conf$$.dir
10983 mkdir conf$$.dir 2>/dev/null
10984 fi
10985 if (echo >conf$$.file) 2>/dev/null; then
10986 if ln -s conf$$.file conf$$ 2>/dev/null; then
10987 as_ln_s='ln -s'
10988 # ... but there are two gotchas:
10989 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10990 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10991 # In both cases, we have to default to `cp -p'.
10992 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10993 as_ln_s='cp -p'
10994 elif ln conf$$.file conf$$ 2>/dev/null; then
10995 as_ln_s=ln
10996 else
10997 as_ln_s='cp -p'
10998 fi
10999 else
11000 as_ln_s='cp -p'
11001 fi
11002 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11003 rmdir conf$$.dir 2>/dev/null
11004
11005
11006 # as_fn_mkdir_p
11007 # -------------
11008 # Create "$as_dir" as a directory, including parents if necessary.
11009 as_fn_mkdir_p ()
11010 {
11011
11012 case $as_dir in #(
11013 -*) as_dir=./$as_dir;;
11014 esac
11015 test -d "$as_dir" || eval $as_mkdir_p || {
11016 as_dirs=
11017 while :; do
11018 case $as_dir in #(
11019 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11020 *) as_qdir=$as_dir;;
11021 esac
11022 as_dirs="'$as_qdir' $as_dirs"
11023 as_dir=`$as_dirname -- "$as_dir" ||
11024 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11025 X"$as_dir" : 'X\(//\)[^/]' \| \
11026 X"$as_dir" : 'X\(//\)$' \| \
11027 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11028 $as_echo X"$as_dir" |
11029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11030 s//\1/
11031 q
11032 }
11033 /^X\(\/\/\)[^/].*/{
11034 s//\1/
11035 q
11036 }
11037 /^X\(\/\/\)$/{
11038 s//\1/
11039 q
11040 }
11041 /^X\(\/\).*/{
11042 s//\1/
11043 q
11044 }
11045 s/.*/./; q'`
11046 test -d "$as_dir" && break
11047 done
11048 test -z "$as_dirs" || eval "mkdir $as_dirs"
11049 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11050
11051
11052 } # as_fn_mkdir_p
11053 if mkdir -p . 2>/dev/null; then
11054 as_mkdir_p='mkdir -p "$as_dir"'
11055 else
11056 test -d ./-p && rmdir ./-p
11057 as_mkdir_p=false
11058 fi
11059
11060 if test -x / >/dev/null 2>&1; then
11061 as_test_x='test -x'
11062 else
11063 if ls -dL / >/dev/null 2>&1; then
11064 as_ls_L_option=L
11065 else
11066 as_ls_L_option=
11067 fi
11068 as_test_x='
11069 eval sh -c '\''
11070 if test -d "$1"; then
11071 test -d "$1/.";
11072 else
11073 case $1 in #(
11074 -*)set "./$1";;
11075 esac;
11076 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11077 ???[sx]*):;;*)false;;esac;fi
11078 '\'' sh
11079 '
11080 fi
11081 as_executable_p=$as_test_x
11082
11083 # Sed expression to map a string onto a valid CPP name.
11084 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11085
11086 # Sed expression to map a string onto a valid variable name.
11087 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11088
11089
11090 exec 6>&1
11091 ## ----------------------------------- ##
11092 ## Main body of $CONFIG_STATUS script. ##
11093 ## ----------------------------------- ##
11094 _ASEOF
11095 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11096
11097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11098 # Save the log message, to keep $0 and so on meaningful, and to
11099 # report actual input values of CONFIG_FILES etc. instead of their
11100 # values after options handling.
11101 ac_log="
11102 This file was extended by xsm $as_me 1.0.3, which was
11103 generated by GNU Autoconf 2.68. Invocation command line was
11104
11105 CONFIG_FILES = $CONFIG_FILES
11106 CONFIG_HEADERS = $CONFIG_HEADERS
11107 CONFIG_LINKS = $CONFIG_LINKS
11108 CONFIG_COMMANDS = $CONFIG_COMMANDS
11109 $ $0 $@
11110
11111 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11112 "
11113
11114 _ACEOF
11115
11116 case $ac_config_files in *"
11117 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11118 esac
11119
11120 case $ac_config_headers in *"
11121 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11122 esac
11123
11124
11125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11126 # Files that config.status was made for.
11127 config_files="$ac_config_files"
11128 config_headers="$ac_config_headers"
11129 config_commands="$ac_config_commands"
11130
11131 _ACEOF
11132
11133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11134 ac_cs_usage="\
11135 \`$as_me' instantiates files and other configuration actions
11136 from templates according to the current configuration. Unless the files
11137 and actions are specified as TAGs, all are instantiated by default.
11138
11139 Usage: $0 [OPTION]... [TAG]...
11140
11141 -h, --help print this help, then exit
11142 -V, --version print version number and configuration settings, then exit
11143 --config print configuration, then exit
11144 -q, --quiet, --silent
11145 do not print progress messages
11146 -d, --debug don't remove temporary files
11147 --recheck update $as_me by reconfiguring in the same conditions
11148 --file=FILE[:TEMPLATE]
11149 instantiate the configuration file FILE
11150 --header=FILE[:TEMPLATE]
11151 instantiate the configuration header FILE
11152
11153 Configuration files:
11154 $config_files
11155
11156 Configuration headers:
11157 $config_headers
11158
11159 Configuration commands:
11160 $config_commands
11161
11162 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11163
11164 _ACEOF
11165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11166 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11167 ac_cs_version="\\
11168 xsm config.status 1.0.3
11169 configured by $0, generated by GNU Autoconf 2.68,
11170 with options \\"\$ac_cs_config\\"
11171
11172 Copyright (C) 2010 Free Software Foundation, Inc.
11173 This config.status script is free software; the Free Software Foundation
11174 gives unlimited permission to copy, distribute and modify it."
11175
11176 ac_pwd='$ac_pwd'
11177 srcdir='$srcdir'
11178 INSTALL='$INSTALL'
11179 MKDIR_P='$MKDIR_P'
11180 AWK='$AWK'
11181 test -n "\$AWK" || AWK=awk
11182 _ACEOF
11183
11184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11185 # The default lists apply if the user does not specify any file.
11186 ac_need_defaults=:
11187 while test $# != 0
11188 do
11189 case $1 in
11190 --*=?*)
11191 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11192 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11193 ac_shift=:
11194 ;;
11195 --*=)
11196 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11197 ac_optarg=
11198 ac_shift=:
11199 ;;
11200 *)
11201 ac_option=$1
11202 ac_optarg=$2
11203 ac_shift=shift
11204 ;;
11205 esac
11206
11207 case $ac_option in
11208 # Handling of the options.
11209 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11210 ac_cs_recheck=: ;;
11211 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11212 $as_echo "$ac_cs_version"; exit ;;
11213 --config | --confi | --conf | --con | --co | --c )
11214 $as_echo "$ac_cs_config"; exit ;;
11215 --debug | --debu | --deb | --de | --d | -d )
11216 debug=: ;;
11217 --file | --fil | --fi | --f )
11218 $ac_shift
11219 case $ac_optarg in
11220 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11221 '') as_fn_error $? "missing file argument" ;;
11222 esac
11223 as_fn_append CONFIG_FILES " '$ac_optarg'"
11224 ac_need_defaults=false;;
11225 --header | --heade | --head | --hea )
11226 $ac_shift
11227 case $ac_optarg in
11228 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11229 esac
11230 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11231 ac_need_defaults=false;;
11232 --he | --h)
11233 # Conflict between --help and --header
11234 as_fn_error $? "ambiguous option: \`$1'
11235 Try \`$0 --help' for more information.";;
11236 --help | --hel | -h )
11237 $as_echo "$ac_cs_usage"; exit ;;
11238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11239 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11240 ac_cs_silent=: ;;
11241
11242 # This is an error.
11243 -*) as_fn_error $? "unrecognized option: \`$1'
11244 Try \`$0 --help' for more information." ;;
11245
11246 *) as_fn_append ac_config_targets " $1"
11247 ac_need_defaults=false ;;
11248
11249 esac
11250 shift
11251 done
11252
11253 ac_configure_extra_args=
11254
11255 if $ac_cs_silent; then
11256 exec 6>/dev/null
11257 ac_configure_extra_args="$ac_configure_extra_args --silent"
11258 fi
11259
11260 _ACEOF
11261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11262 if \$ac_cs_recheck; then
11263 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11264 shift
11265 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11266 CONFIG_SHELL='$SHELL'
11267 export CONFIG_SHELL
11268 exec "\$@"
11269 fi
11270
11271 _ACEOF
11272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11273 exec 5>>config.log
11274 {
11275 echo
11276 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11277 ## Running $as_me. ##
11278 _ASBOX
11279 $as_echo "$ac_log"
11280 } >&5
11281
11282 _ACEOF
11283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11284 #
11285 # INIT-COMMANDS
11286 #
11287 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11288
11289 _ACEOF
11290
11291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11292
11293 # Handling of arguments.
11294 for ac_config_target in $ac_config_targets
11295 do
11296 case $ac_config_target in
11297 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11298 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11299 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11300 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11301
11302 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11303 esac
11304 done
11305
11306
11307 # If the user did not use the arguments to specify the items to instantiate,
11308 # then the envvar interface is used. Set only those that are not.
11309 # We use the long form for the default assignment because of an extremely
11310 # bizarre bug on SunOS 4.1.3.
11311 if $ac_need_defaults; then
11312 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11313 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11314 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11315 fi
11316
11317 # Have a temporary directory for convenience. Make it in the build tree
11318 # simply because there is no reason against having it here, and in addition,
11319 # creating and moving files from /tmp can sometimes cause problems.
11320 # Hook for its removal unless debugging.
11321 # Note that there is a small window in which the directory will not be cleaned:
11322 # after its creation but before its name has been assigned to `$tmp'.
11323 $debug ||
11324 {
11325 tmp= ac_tmp=
11326 trap 'exit_status=$?
11327 : "${ac_tmp:=$tmp}"
11328 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11329 ' 0
11330 trap 'as_fn_exit 1' 1 2 13 15
11331 }
11332 # Create a (secure) tmp directory for tmp files.
11333
11334 {
11335 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11336 test -d "$tmp"
11337 } ||
11338 {
11339 tmp=./conf$$-$RANDOM
11340 (umask 077 && mkdir "$tmp")
11341 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11342 ac_tmp=$tmp
11343
11344 # Set up the scripts for CONFIG_FILES section.
11345 # No need to generate them if there are no CONFIG_FILES.
11346 # This happens for instance with `./config.status config.h'.
11347 if test -n "$CONFIG_FILES"; then
11348
11349
11350 ac_cr=`echo X | tr X '\015'`
11351 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11352 # But we know of no other shell where ac_cr would be empty at this
11353 # point, so we can use a bashism as a fallback.
11354 if test "x$ac_cr" = x; then
11355 eval ac_cr=\$\'\\r\'
11356 fi
11357 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11358 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11359 ac_cs_awk_cr='\\r'
11360 else
11361 ac_cs_awk_cr=$ac_cr
11362 fi
11363
11364 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11365 _ACEOF
11366
11367
11368 {
11369 echo "cat >conf$$subs.awk <<_ACEOF" &&
11370 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11371 echo "_ACEOF"
11372 } >conf$$subs.sh ||
11373 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11374 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11375 ac_delim='%!_!# '
11376 for ac_last_try in false false false false false :; do
11377 . ./conf$$subs.sh ||
11378 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11379
11380 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11381 if test $ac_delim_n = $ac_delim_num; then
11382 break
11383 elif $ac_last_try; then
11384 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11385 else
11386 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11387 fi
11388 done
11389 rm -f conf$$subs.sh
11390
11391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11392 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11393 _ACEOF
11394 sed -n '
11395 h
11396 s/^/S["/; s/!.*/"]=/
11397 p
11398 g
11399 s/^[^!]*!//
11400 :repl
11401 t repl
11402 s/'"$ac_delim"'$//
11403 t delim
11404 :nl
11405 h
11406 s/\(.\{148\}\)..*/\1/
11407 t more1
11408 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11409 p
11410 n
11411 b repl
11412 :more1
11413 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11414 p
11415 g
11416 s/.\{148\}//
11417 t nl
11418 :delim
11419 h
11420 s/\(.\{148\}\)..*/\1/
11421 t more2
11422 s/["\\]/\\&/g; s/^/"/; s/$/"/
11423 p
11424 b
11425 :more2
11426 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11427 p
11428 g
11429 s/.\{148\}//
11430 t delim
11431 ' <conf$$subs.awk | sed '
11432 /^[^""]/{
11433 N
11434 s/\n//
11435 }
11436 ' >>$CONFIG_STATUS || ac_write_fail=1
11437 rm -f conf$$subs.awk
11438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11439 _ACAWK
11440 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11441 for (key in S) S_is_set[key] = 1
11442 FS = ""
11443
11444 }
11445 {
11446 line = $ 0
11447 nfields = split(line, field, "@")
11448 substed = 0
11449 len = length(field[1])
11450 for (i = 2; i < nfields; i++) {
11451 key = field[i]
11452 keylen = length(key)
11453 if (S_is_set[key]) {
11454 value = S[key]
11455 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11456 len += length(value) + length(field[++i])
11457 substed = 1
11458 } else
11459 len += 1 + keylen
11460 }
11461
11462 print line
11463 }
11464
11465 _ACAWK
11466 _ACEOF
11467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11468 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11469 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11470 else
11471 cat
11472 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11473 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11474 _ACEOF
11475
11476 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11477 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11478 # trailing colons and then remove the whole line if VPATH becomes empty
11479 # (actually we leave an empty line to preserve line numbers).
11480 if test "x$srcdir" = x.; then
11481 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11482 h
11483 s///
11484 s/^/:/
11485 s/[ ]*$/:/
11486 s/:\$(srcdir):/:/g
11487 s/:\${srcdir}:/:/g
11488 s/:@srcdir@:/:/g
11489 s/^:*//
11490 s/:*$//
11491 x
11492 s/\(=[ ]*\).*/\1/
11493 G
11494 s/\n//
11495 s/^[^=]*=[ ]*$//
11496 }'
11497 fi
11498
11499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11500 fi # test -n "$CONFIG_FILES"
11501
11502 # Set up the scripts for CONFIG_HEADERS section.
11503 # No need to generate them if there are no CONFIG_HEADERS.
11504 # This happens for instance with `./config.status Makefile'.
11505 if test -n "$CONFIG_HEADERS"; then
11506 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11507 BEGIN {
11508 _ACEOF
11509
11510 # Transform confdefs.h into an awk script `defines.awk', embedded as
11511 # here-document in config.status, that substitutes the proper values into
11512 # config.h.in to produce config.h.
11513
11514 # Create a delimiter string that does not exist in confdefs.h, to ease
11515 # handling of long lines.
11516 ac_delim='%!_!# '
11517 for ac_last_try in false false :; do
11518 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11519 if test -z "$ac_tt"; then
11520 break
11521 elif $ac_last_try; then
11522 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11523 else
11524 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11525 fi
11526 done
11527
11528 # For the awk script, D is an array of macro values keyed by name,
11529 # likewise P contains macro parameters if any. Preserve backslash
11530 # newline sequences.
11531
11532 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11533 sed -n '
11534 s/.\{148\}/&'"$ac_delim"'/g
11535 t rset
11536 :rset
11537 s/^[ ]*#[ ]*define[ ][ ]*/ /
11538 t def
11539 d
11540 :def
11541 s/\\$//
11542 t bsnl
11543 s/["\\]/\\&/g
11544 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11545 D["\1"]=" \3"/p
11546 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11547 d
11548 :bsnl
11549 s/["\\]/\\&/g
11550 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11551 D["\1"]=" \3\\\\\\n"\\/p
11552 t cont
11553 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11554 t cont
11555 d
11556 :cont
11557 n
11558 s/.\{148\}/&'"$ac_delim"'/g
11559 t clear
11560 :clear
11561 s/\\$//
11562 t bsnlc
11563 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11564 d
11565 :bsnlc
11566 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11567 b cont
11568 ' <confdefs.h | sed '
11569 s/'"$ac_delim"'/"\\\
11570 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11571
11572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11573 for (key in D) D_is_set[key] = 1
11574 FS = ""
11575 }
11576 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11577 line = \$ 0
11578 split(line, arg, " ")
11579 if (arg[1] == "#") {
11580 defundef = arg[2]
11581 mac1 = arg[3]
11582 } else {
11583 defundef = substr(arg[1], 2)
11584 mac1 = arg[2]
11585 }
11586 split(mac1, mac2, "(") #)
11587 macro = mac2[1]
11588 prefix = substr(line, 1, index(line, defundef) - 1)
11589 if (D_is_set[macro]) {
11590 # Preserve the white space surrounding the "#".
11591 print prefix "define", macro P[macro] D[macro]
11592 next
11593 } else {
11594 # Replace #undef with comments. This is necessary, for example,
11595 # in the case of _POSIX_SOURCE, which is predefined and required
11596 # on some systems where configure will not decide to define it.
11597 if (defundef == "undef") {
11598 print "/*", prefix defundef, macro, "*/"
11599 next
11600 }
11601 }
11602 }
11603 { print }
11604 _ACAWK
11605 _ACEOF
11606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11607 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11608 fi # test -n "$CONFIG_HEADERS"
11609
11610
11611 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11612 shift
11613 for ac_tag
11614 do
11615 case $ac_tag in
11616 :[FHLC]) ac_mode=$ac_tag; continue;;
11617 esac
11618 case $ac_mode$ac_tag in
11619 :[FHL]*:*);;
11620 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11621 :[FH]-) ac_tag=-:-;;
11622 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11623 esac
11624 ac_save_IFS=$IFS
11625 IFS=:
11626 set x $ac_tag
11627 IFS=$ac_save_IFS
11628 shift
11629 ac_file=$1
11630 shift
11631
11632 case $ac_mode in
11633 :L) ac_source=$1;;
11634 :[FH])
11635 ac_file_inputs=
11636 for ac_f
11637 do
11638 case $ac_f in
11639 -) ac_f="$ac_tmp/stdin";;
11640 *) # Look for the file first in the build tree, then in the source tree
11641 # (if the path is not absolute). The absolute path cannot be DOS-style,
11642 # because $ac_f cannot contain `:'.
11643 test -f "$ac_f" ||
11644 case $ac_f in
11645 [\\/$]*) false;;
11646 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11647 esac ||
11648 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11649 esac
11650 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11651 as_fn_append ac_file_inputs " '$ac_f'"
11652 done
11653
11654 # Let's still pretend it is `configure' which instantiates (i.e., don't
11655 # use $as_me), people would be surprised to read:
11656 # /* config.h. Generated by config.status. */
11657 configure_input='Generated from '`
11658 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11659 `' by configure.'
11660 if test x"$ac_file" != x-; then
11661 configure_input="$ac_file. $configure_input"
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11663 $as_echo "$as_me: creating $ac_file" >&6;}
11664 fi
11665 # Neutralize special characters interpreted by sed in replacement strings.
11666 case $configure_input in #(
11667 *\&* | *\|* | *\\* )
11668 ac_sed_conf_input=`$as_echo "$configure_input" |
11669 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11670 *) ac_sed_conf_input=$configure_input;;
11671 esac
11672
11673 case $ac_tag in
11674 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11675 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11676 esac
11677 ;;
11678 esac
11679
11680 ac_dir=`$as_dirname -- "$ac_file" ||
11681 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11682 X"$ac_file" : 'X\(//\)[^/]' \| \
11683 X"$ac_file" : 'X\(//\)$' \| \
11684 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11685 $as_echo X"$ac_file" |
11686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11687 s//\1/
11688 q
11689 }
11690 /^X\(\/\/\)[^/].*/{
11691 s//\1/
11692 q
11693 }
11694 /^X\(\/\/\)$/{
11695 s//\1/
11696 q
11697 }
11698 /^X\(\/\).*/{
11699 s//\1/
11700 q
11701 }
11702 s/.*/./; q'`
11703 as_dir="$ac_dir"; as_fn_mkdir_p
11704 ac_builddir=.
11705
11706 case "$ac_dir" in
11707 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11708 *)
11709 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11710 # A ".." for each directory in $ac_dir_suffix.
11711 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11712 case $ac_top_builddir_sub in
11713 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11714 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11715 esac ;;
11716 esac
11717 ac_abs_top_builddir=$ac_pwd
11718 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11719 # for backward compatibility:
11720 ac_top_builddir=$ac_top_build_prefix
11721
11722 case $srcdir in
11723 .) # We are building in place.
11724 ac_srcdir=.
11725 ac_top_srcdir=$ac_top_builddir_sub
11726 ac_abs_top_srcdir=$ac_pwd ;;
11727 [\\/]* | ?:[\\/]* ) # Absolute name.
11728 ac_srcdir=$srcdir$ac_dir_suffix;
11729 ac_top_srcdir=$srcdir
11730 ac_abs_top_srcdir=$srcdir ;;
11731 *) # Relative name.
11732 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11733 ac_top_srcdir=$ac_top_build_prefix$srcdir
11734 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11735 esac
11736 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11737
11738
11739 case $ac_mode in
11740 :F)
11741 #
11742 # CONFIG_FILE
11743 #
11744
11745 case $INSTALL in
11746 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11747 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11748 esac
11749 ac_MKDIR_P=$MKDIR_P
11750 case $MKDIR_P in
11751 [\\/$]* | ?:[\\/]* ) ;;
11752 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11753 esac
11754 _ACEOF
11755
11756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11757 # If the template does not know about datarootdir, expand it.
11758 # FIXME: This hack should be removed a few years after 2.60.
11759 ac_datarootdir_hack=; ac_datarootdir_seen=
11760 ac_sed_dataroot='
11761 /datarootdir/ {
11762 p
11763 q
11764 }
11765 /@datadir@/p
11766 /@docdir@/p
11767 /@infodir@/p
11768 /@localedir@/p
11769 /@mandir@/p'
11770 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11771 *datarootdir*) ac_datarootdir_seen=yes;;
11772 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11774 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11775 _ACEOF
11776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11777 ac_datarootdir_hack='
11778 s&@datadir@&$datadir&g
11779 s&@docdir@&$docdir&g
11780 s&@infodir@&$infodir&g
11781 s&@localedir@&$localedir&g
11782 s&@mandir@&$mandir&g
11783 s&\\\${datarootdir}&$datarootdir&g' ;;
11784 esac
11785 _ACEOF
11786
11787 # Neutralize VPATH when `$srcdir' = `.'.
11788 # Shell code in configure.ac might set extrasub.
11789 # FIXME: do we really want to maintain this feature?
11790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11791 ac_sed_extra="$ac_vpsub
11792 $extrasub
11793 _ACEOF
11794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11795 :t
11796 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11797 s|@configure_input@|$ac_sed_conf_input|;t t
11798 s&@top_builddir@&$ac_top_builddir_sub&;t t
11799 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11800 s&@srcdir@&$ac_srcdir&;t t
11801 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11802 s&@top_srcdir@&$ac_top_srcdir&;t t
11803 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11804 s&@builddir@&$ac_builddir&;t t
11805 s&@abs_builddir@&$ac_abs_builddir&;t t
11806 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11807 s&@INSTALL@&$ac_INSTALL&;t t
11808 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11809 $ac_datarootdir_hack
11810 "
11811 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11812 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11813
11814 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11815 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11816 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11817 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11819 which seems to be undefined. Please make sure it is defined" >&5
11820 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11821 which seems to be undefined. Please make sure it is defined" >&2;}
11822
11823 rm -f "$ac_tmp/stdin"
11824 case $ac_file in
11825 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11826 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11827 esac \
11828 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11829 ;;
11830 :H)
11831 #
11832 # CONFIG_HEADER
11833 #
11834 if test x"$ac_file" != x-; then
11835 {
11836 $as_echo "/* $configure_input */" \
11837 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11838 } >"$ac_tmp/config.h" \
11839 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11840 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11842 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11843 else
11844 rm -f "$ac_file"
11845 mv "$ac_tmp/config.h" "$ac_file" \
11846 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11847 fi
11848 else
11849 $as_echo "/* $configure_input */" \
11850 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11851 || as_fn_error $? "could not create -" "$LINENO" 5
11852 fi
11853 # Compute "$ac_file"'s index in $config_headers.
11854 _am_arg="$ac_file"
11855 _am_stamp_count=1
11856 for _am_header in $config_headers :; do
11857 case $_am_header in
11858 $_am_arg | $_am_arg:* )
11859 break ;;
11860 * )
11861 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11862 esac
11863 done
11864 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11865 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11866 X"$_am_arg" : 'X\(//\)[^/]' \| \
11867 X"$_am_arg" : 'X\(//\)$' \| \
11868 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11869 $as_echo X"$_am_arg" |
11870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11871 s//\1/
11872 q
11873 }
11874 /^X\(\/\/\)[^/].*/{
11875 s//\1/
11876 q
11877 }
11878 /^X\(\/\/\)$/{
11879 s//\1/
11880 q
11881 }
11882 /^X\(\/\).*/{
11883 s//\1/
11884 q
11885 }
11886 s/.*/./; q'`/stamp-h$_am_stamp_count
11887 ;;
11888
11889 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11890 $as_echo "$as_me: executing $ac_file commands" >&6;}
11891 ;;
11892 esac
11893
11894
11895 case $ac_file$ac_mode in
11896 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11897 # Autoconf 2.62 quotes --file arguments for eval, but not when files
11898 # are listed without --file. Let's play safe and only enable the eval
11899 # if we detect the quoting.
11900 case $CONFIG_FILES in
11901 *\'*) eval set x "$CONFIG_FILES" ;;
11902 *) set x $CONFIG_FILES ;;
11903 esac
11904 shift
11905 for mf
11906 do
11907 # Strip MF so we end up with the name of the file.
11908 mf=`echo "$mf" | sed -e 's/:.*$//'`
11909 # Check whether this is an Automake generated Makefile or not.
11910 # We used to match only the files named `Makefile.in', but
11911 # some people rename them; so instead we look at the file content.
11912 # Grep'ing the first line is not enough: some people post-process
11913 # each Makefile.in and add a new line on top of each file to say so.
11914 # Grep'ing the whole file is not good either: AIX grep has a line
11915 # limit of 2048, but all sed's we know have understand at least 4000.
11916 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11917 dirpart=`$as_dirname -- "$mf" ||
11918 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11919 X"$mf" : 'X\(//\)[^/]' \| \
11920 X"$mf" : 'X\(//\)$' \| \
11921 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11922 $as_echo X"$mf" |
11923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11924 s//\1/
11925 q
11926 }
11927 /^X\(\/\/\)[^/].*/{
11928 s//\1/
11929 q
11930 }
11931 /^X\(\/\/\)$/{
11932 s//\1/
11933 q
11934 }
11935 /^X\(\/\).*/{
11936 s//\1/
11937 q
11938 }
11939 s/.*/./; q'`
11940 else
11941 continue
11942 fi
11943 # Extract the definition of DEPDIR, am__include, and am__quote
11944 # from the Makefile without running `make'.
11945 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11946 test -z "$DEPDIR" && continue
11947 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11948 test -z "am__include" && continue
11949 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11950 # When using ansi2knr, U may be empty or an underscore; expand it
11951 U=`sed -n 's/^U = //p' < "$mf"`
11952 # Find all dependency output files, they are included files with
11953 # $(DEPDIR) in their names. We invoke sed twice because it is the
11954 # simplest approach to changing $(DEPDIR) to its actual value in the
11955 # expansion.
11956 for file in `sed -n "
11957 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11958 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11959 # Make sure the directory exists.
11960 test -f "$dirpart/$file" && continue
11961 fdir=`$as_dirname -- "$file" ||
11962 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11963 X"$file" : 'X\(//\)[^/]' \| \
11964 X"$file" : 'X\(//\)$' \| \
11965 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11966 $as_echo X"$file" |
11967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11968 s//\1/
11969 q
11970 }
11971 /^X\(\/\/\)[^/].*/{
11972 s//\1/
11973 q
11974 }
11975 /^X\(\/\/\)$/{
11976 s//\1/
11977 q
11978 }
11979 /^X\(\/\).*/{
11980 s//\1/
11981 q
11982 }
11983 s/.*/./; q'`
11984 as_dir=$dirpart/$fdir; as_fn_mkdir_p
11985 # echo "creating $dirpart/$file"
11986 echo '# dummy' > "$dirpart/$file"
11987 done
11988 done
11989 }
11990 ;;
11991
11992 esac
11993 done # for ac_tag
11994
11995
11996 as_fn_exit 0
11997 _ACEOF
11998 ac_clean_files=$ac_clean_files_save
11999
12000 test $ac_write_fail = 0 ||
12001 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12002
12003
12004 # configure is writing to config.log, and then calls config.status.
12005 # config.status does its own redirection, appending to config.log.
12006 # Unfortunately, on DOS this fails, as config.log is still kept open
12007 # by configure, so config.status won't be able to write to it; its
12008 # output is simply discarded. So we exec the FD to /dev/null,
12009 # effectively closing config.log, so it can be properly (re)opened and
12010 # appended to by config.status. When coming back to configure, we
12011 # need to make the FD available again.
12012 if test "$no_create" != yes; then
12013 ac_cs_success=:
12014 ac_config_status_args=
12015 test "$silent" = yes &&
12016 ac_config_status_args="$ac_config_status_args --quiet"
12017 exec 5>/dev/null
12018 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12019 exec 5>>config.log
12020 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12021 # would make configure fail if this is the last instruction.
12022 $ac_cs_success || as_fn_exit 1
12023 fi
12024 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12026 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12027 fi
12028
12029