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 xload 1.1.1.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
182 fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203 fi
204 fi
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
242 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243 $0: about your system, including any error possibly output
244 $0: before this message. Then install a modern shell, or
245 $0: manually run the script under such a shell if you do
246 $0: have one."
247 fi
248 exit 1
249 fi
250 fi
251 fi
252 SHELL=${CONFIG_SHELL-/bin/sh}
253 export SHELL
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
257
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
261 # as_fn_unset VAR
262 # ---------------
263 # Portably unset VAR.
264 as_fn_unset ()
265 {
266 { eval $1=; unset $1;}
267 }
268 as_unset=as_fn_unset
269
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
273 as_fn_set_status ()
274 {
275 return $1
276 } # as_fn_set_status
277
278 # as_fn_exit STATUS
279 # -----------------
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 as_fn_exit ()
282 {
283 set +e
284 as_fn_set_status $1
285 exit $1
286 } # as_fn_exit
287
288 # as_fn_mkdir_p
289 # -------------
290 # Create "$as_dir" as a directory, including parents if necessary.
291 as_fn_mkdir_p ()
292 {
293
294 case $as_dir in #(
295 -*) as_dir=./$as_dir;;
296 esac
297 test -d "$as_dir" || eval $as_mkdir_p || {
298 as_dirs=
299 while :; do
300 case $as_dir in #(
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 *) as_qdir=$as_dir;;
303 esac
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)[^/].*/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\).*/{
324 s//\1/
325 q
326 }
327 s/.*/./; q'`
328 test -d "$as_dir" && break
329 done
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334 } # as_fn_mkdir_p
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
340 # implementations.
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
343 {
344 eval $1+=\$2
345 }'
346 else
347 as_fn_append ()
348 {
349 eval $1=\$$1\$2
350 }
351 fi # as_fn_append
352
353 # as_fn_arith ARG...
354 # ------------------
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 eval 'as_fn_arith ()
360 {
361 as_val=$(( $* ))
362 }'
363 else
364 as_fn_arith ()
365 {
366 as_val=`expr "$@" || test $? -eq 1`
367 }
368 fi # as_fn_arith
369
370
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
376 as_fn_error ()
377 {
378 as_status=$1; test $as_status -eq 0 && as_status=1
379 if test "$4"; then
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 fi
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
385 } # as_fn_error
386
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
389 as_expr=expr
390 else
391 as_expr=false
392 fi
393
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395 as_basename=basename
396 else
397 as_basename=false
398 fi
399
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401 as_dirname=dirname
402 else
403 as_dirname=false
404 fi
405
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 $as_echo X/"$0" |
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\/\)$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\).*/{
420 s//\1/
421 q
422 }
423 s/.*/./; q'`
424
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
462 }
463
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
466 -n*)
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 xy) ECHO_C='\c';;
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 ECHO_T=' ';;
472 esac;;
473 *)
474 ECHO_N='-n';;
475 esac
476
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
480 else
481 rm -f conf$$.dir
482 mkdir conf$$.dir 2>/dev/null
483 fi
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s='ln -s'
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 as_ln_s='cp -p'
493 elif ln conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s=ln
495 else
496 as_ln_s='cp -p'
497 fi
498 else
499 as_ln_s='cp -p'
500 fi
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
503
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
506 else
507 test -d ./-p && rmdir ./-p
508 as_mkdir_p=false
509 fi
510
511 if test -x / >/dev/null 2>&1; then
512 as_test_x='test -x'
513 else
514 if ls -dL / >/dev/null 2>&1; then
515 as_ls_L_option=L
516 else
517 as_ls_L_option=
518 fi
519 as_test_x='
520 eval sh -c '\''
521 if test -d "$1"; then
522 test -d "$1/.";
523 else
524 case $1 in #(
525 -*)set "./$1";;
526 esac;
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
529 '\'' sh
530 '
531 fi
532 as_executable_p=$as_test_x
533
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541 test -n "$DJDIR" || exec 7<&0 </dev/null
542 exec 6>&1
543
544 # Name of the host.
545 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546 # so uname gets run too.
547 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549 #
550 # Initializations.
551 #
552 ac_default_prefix=/usr/local
553 ac_clean_files=
554 ac_config_libobj_dir=.
555 LIBOBJS=
556 cross_compiling=no
557 subdirs=
558 MFLAGS=
559 MAKEFLAGS=
560
561 # Identity of this package.
562 PACKAGE_NAME='xload'
563 PACKAGE_TARNAME='xload'
564 PACKAGE_VERSION='1.1.1'
565 PACKAGE_STRING='xload 1.1.1'
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 APPDEFS_LIBS
612 APPDEFS_CFLAGS
613 XLOAD_LIBS
614 XLOAD_CFLAGS
615 USE_GETTEXT_FALSE
616 USE_GETTEXT_TRUE
617 LOCALEDIR
618 AM_BACKSLASH
619 AM_DEFAULT_VERBOSITY
620 MAN_SUBSTS
621 XORG_MAN_PAGE
622 ADMIN_MAN_DIR
623 DRIVER_MAN_DIR
624 MISC_MAN_DIR
625 FILE_MAN_DIR
626 LIB_MAN_DIR
627 APP_MAN_DIR
628 ADMIN_MAN_SUFFIX
629 DRIVER_MAN_SUFFIX
630 MISC_MAN_SUFFIX
631 FILE_MAN_SUFFIX
632 LIB_MAN_SUFFIX
633 APP_MAN_SUFFIX
634 SED
635 host_os
636 host_vendor
637 host_cpu
638 host
639 build_os
640 build_vendor
641 build_cpu
642 build
643 INSTALL_CMD
644 PKG_CONFIG
645 CHANGELOG_CMD
646 STRICT_CFLAGS
647 CWARNFLAGS
648 BASE_CFLAGS
649 MAINT
650 MAINTAINER_MODE_FALSE
651 MAINTAINER_MODE_TRUE
652 am__fastdepCC_FALSE
653 am__fastdepCC_TRUE
654 CCDEPMODE
655 AMDEPBACKSLASH
656 AMDEP_FALSE
657 AMDEP_TRUE
658 am__quote
659 am__include
660 DEPDIR
661 am__untar
662 am__tar
663 AMTAR
664 am__leading_dot
665 SET_MAKE
666 AWK
667 mkdir_p
668 MKDIR_P
669 INSTALL_STRIP_PROGRAM
670 STRIP
671 install_sh
672 MAKEINFO
673 AUTOHEADER
674 AUTOMAKE
675 AUTOCONF
676 ACLOCAL
677 VERSION
678 PACKAGE
679 CYGPATH_W
680 am__isrc
681 INSTALL_DATA
682 INSTALL_SCRIPT
683 INSTALL_PROGRAM
684 EGREP
685 GREP
686 CPP
687 OBJEXT
688 EXEEXT
689 ac_ct_CC
690 CPPFLAGS
691 LDFLAGS
692 CFLAGS
693 CC
694 target_alias
695 host_alias
696 build_alias
697 LIBS
698 ECHO_T
699 ECHO_N
700 ECHO_C
701 DEFS
702 mandir
703 localedir
704 libdir
705 psdir
706 pdfdir
707 dvidir
708 htmldir
709 infodir
710 docdir
711 oldincludedir
712 includedir
713 localstatedir
714 sharedstatedir
715 sysconfdir
716 datadir
717 datarootdir
718 libexecdir
719 sbindir
720 bindir
721 program_transform_name
722 prefix
723 exec_prefix
724 PACKAGE_URL
725 PACKAGE_BUGREPORT
726 PACKAGE_STRING
727 PACKAGE_VERSION
728 PACKAGE_TARNAME
729 PACKAGE_NAME
730 PATH_SEPARATOR
731 SHELL'
732 ac_subst_files=''
733 ac_user_opts='
734 enable_option_checking
735 enable_dependency_tracking
736 enable_maintainer_mode
737 enable_selective_werror
738 enable_strict_compilation
739 enable_silent_rules
740 with_localedir
741 with_appdefaultdir
742 '
743 ac_precious_vars='build_alias
744 host_alias
745 target_alias
746 CC
747 CFLAGS
748 LDFLAGS
749 LIBS
750 CPPFLAGS
751 CPP
752 PKG_CONFIG
753 XLOAD_CFLAGS
754 XLOAD_LIBS
755 APPDEFS_CFLAGS
756 APPDEFS_LIBS'
757
758
759 # Initialize some variables set by options.
760 ac_init_help=
761 ac_init_version=false
762 ac_unrecognized_opts=
763 ac_unrecognized_sep=
764 # The variables have the same names as the options, with
765 # dashes changed to underlines.
766 cache_file=/dev/null
767 exec_prefix=NONE
768 no_create=
769 no_recursion=
770 prefix=NONE
771 program_prefix=NONE
772 program_suffix=NONE
773 program_transform_name=s,x,x,
774 silent=
775 site=
776 srcdir=
777 verbose=
778 x_includes=NONE
779 x_libraries=NONE
780
781 # Installation directory options.
782 # These are left unexpanded so users can "make install exec_prefix=/foo"
783 # and all the variables that are supposed to be based on exec_prefix
784 # by default will actually change.
785 # Use braces instead of parens because sh, perl, etc. also accept them.
786 # (The list follows the same order as the GNU Coding Standards.)
787 bindir='${exec_prefix}/bin'
788 sbindir='${exec_prefix}/sbin'
789 libexecdir='${exec_prefix}/libexec'
790 datarootdir='${prefix}/share'
791 datadir='${datarootdir}'
792 sysconfdir='${prefix}/etc'
793 sharedstatedir='${prefix}/com'
794 localstatedir='${prefix}/var'
795 includedir='${prefix}/include'
796 oldincludedir='/usr/include'
797 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
798 infodir='${datarootdir}/info'
799 htmldir='${docdir}'
800 dvidir='${docdir}'
801 pdfdir='${docdir}'
802 psdir='${docdir}'
803 libdir='${exec_prefix}/lib'
804 localedir='${datarootdir}/locale'
805 mandir='${datarootdir}/man'
806
807 ac_prev=
808 ac_dashdash=
809 for ac_option
810 do
811 # If the previous option needs an argument, assign it.
812 if test -n "$ac_prev"; then
813 eval $ac_prev=\$ac_option
814 ac_prev=
815 continue
816 fi
817
818 case $ac_option in
819 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
820 *=) ac_optarg= ;;
821 *) ac_optarg=yes ;;
822 esac
823
824 # Accept the important Cygnus configure options, so we can diagnose typos.
825
826 case $ac_dashdash$ac_option in
827 --)
828 ac_dashdash=yes ;;
829
830 -bindir | --bindir | --bindi | --bind | --bin | --bi)
831 ac_prev=bindir ;;
832 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
833 bindir=$ac_optarg ;;
834
835 -build | --build | --buil | --bui | --bu)
836 ac_prev=build_alias ;;
837 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
838 build_alias=$ac_optarg ;;
839
840 -cache-file | --cache-file | --cache-fil | --cache-fi \
841 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
842 ac_prev=cache_file ;;
843 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
844 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
845 cache_file=$ac_optarg ;;
846
847 --config-cache | -C)
848 cache_file=config.cache ;;
849
850 -datadir | --datadir | --datadi | --datad)
851 ac_prev=datadir ;;
852 -datadir=* | --datadir=* | --datadi=* | --datad=*)
853 datadir=$ac_optarg ;;
854
855 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
856 | --dataroo | --dataro | --datar)
857 ac_prev=datarootdir ;;
858 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
859 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
860 datarootdir=$ac_optarg ;;
861
862 -disable-* | --disable-*)
863 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
864 # Reject names that are not valid shell variable names.
865 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
866 as_fn_error $? "invalid feature name: $ac_useropt"
867 ac_useropt_orig=$ac_useropt
868 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
869 case $ac_user_opts in
870 *"
871 "enable_$ac_useropt"
872 "*) ;;
873 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
874 ac_unrecognized_sep=', ';;
875 esac
876 eval enable_$ac_useropt=no ;;
877
878 -docdir | --docdir | --docdi | --doc | --do)
879 ac_prev=docdir ;;
880 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
881 docdir=$ac_optarg ;;
882
883 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
884 ac_prev=dvidir ;;
885 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
886 dvidir=$ac_optarg ;;
887
888 -enable-* | --enable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error $? "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
896 *"
897 "enable_$ac_useropt"
898 "*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=\$ac_optarg ;;
903
904 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
905 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
906 | --exec | --exe | --ex)
907 ac_prev=exec_prefix ;;
908 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
909 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
910 | --exec=* | --exe=* | --ex=*)
911 exec_prefix=$ac_optarg ;;
912
913 -gas | --gas | --ga | --g)
914 # Obsolete; use --with-gas.
915 with_gas=yes ;;
916
917 -help | --help | --hel | --he | -h)
918 ac_init_help=long ;;
919 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
920 ac_init_help=recursive ;;
921 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
922 ac_init_help=short ;;
923
924 -host | --host | --hos | --ho)
925 ac_prev=host_alias ;;
926 -host=* | --host=* | --hos=* | --ho=*)
927 host_alias=$ac_optarg ;;
928
929 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
930 ac_prev=htmldir ;;
931 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
932 | --ht=*)
933 htmldir=$ac_optarg ;;
934
935 -includedir | --includedir | --includedi | --included | --include \
936 | --includ | --inclu | --incl | --inc)
937 ac_prev=includedir ;;
938 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
939 | --includ=* | --inclu=* | --incl=* | --inc=*)
940 includedir=$ac_optarg ;;
941
942 -infodir | --infodir | --infodi | --infod | --info | --inf)
943 ac_prev=infodir ;;
944 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
945 infodir=$ac_optarg ;;
946
947 -libdir | --libdir | --libdi | --libd)
948 ac_prev=libdir ;;
949 -libdir=* | --libdir=* | --libdi=* | --libd=*)
950 libdir=$ac_optarg ;;
951
952 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
953 | --libexe | --libex | --libe)
954 ac_prev=libexecdir ;;
955 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
956 | --libexe=* | --libex=* | --libe=*)
957 libexecdir=$ac_optarg ;;
958
959 -localedir | --localedir | --localedi | --localed | --locale)
960 ac_prev=localedir ;;
961 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
962 localedir=$ac_optarg ;;
963
964 -localstatedir | --localstatedir | --localstatedi | --localstated \
965 | --localstate | --localstat | --localsta | --localst | --locals)
966 ac_prev=localstatedir ;;
967 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
968 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
969 localstatedir=$ac_optarg ;;
970
971 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
972 ac_prev=mandir ;;
973 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
974 mandir=$ac_optarg ;;
975
976 -nfp | --nfp | --nf)
977 # Obsolete; use --without-fp.
978 with_fp=no ;;
979
980 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
981 | --no-cr | --no-c | -n)
982 no_create=yes ;;
983
984 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
985 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
986 no_recursion=yes ;;
987
988 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
989 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
990 | --oldin | --oldi | --old | --ol | --o)
991 ac_prev=oldincludedir ;;
992 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
993 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
994 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
995 oldincludedir=$ac_optarg ;;
996
997 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
998 ac_prev=prefix ;;
999 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1000 prefix=$ac_optarg ;;
1001
1002 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1003 | --program-pre | --program-pr | --program-p)
1004 ac_prev=program_prefix ;;
1005 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1006 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1007 program_prefix=$ac_optarg ;;
1008
1009 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1010 | --program-suf | --program-su | --program-s)
1011 ac_prev=program_suffix ;;
1012 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1013 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1014 program_suffix=$ac_optarg ;;
1015
1016 -program-transform-name | --program-transform-name \
1017 | --program-transform-nam | --program-transform-na \
1018 | --program-transform-n | --program-transform- \
1019 | --program-transform | --program-transfor \
1020 | --program-transfo | --program-transf \
1021 | --program-trans | --program-tran \
1022 | --progr-tra | --program-tr | --program-t)
1023 ac_prev=program_transform_name ;;
1024 -program-transform-name=* | --program-transform-name=* \
1025 | --program-transform-nam=* | --program-transform-na=* \
1026 | --program-transform-n=* | --program-transform-=* \
1027 | --program-transform=* | --program-transfor=* \
1028 | --program-transfo=* | --program-transf=* \
1029 | --program-trans=* | --program-tran=* \
1030 | --progr-tra=* | --program-tr=* | --program-t=*)
1031 program_transform_name=$ac_optarg ;;
1032
1033 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1034 ac_prev=pdfdir ;;
1035 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1036 pdfdir=$ac_optarg ;;
1037
1038 -psdir | --psdir | --psdi | --psd | --ps)
1039 ac_prev=psdir ;;
1040 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1041 psdir=$ac_optarg ;;
1042
1043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044 | -silent | --silent | --silen | --sile | --sil)
1045 silent=yes ;;
1046
1047 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1048 ac_prev=sbindir ;;
1049 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1050 | --sbi=* | --sb=*)
1051 sbindir=$ac_optarg ;;
1052
1053 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1054 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1055 | --sharedst | --shareds | --shared | --share | --shar \
1056 | --sha | --sh)
1057 ac_prev=sharedstatedir ;;
1058 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1059 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1060 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1061 | --sha=* | --sh=*)
1062 sharedstatedir=$ac_optarg ;;
1063
1064 -site | --site | --sit)
1065 ac_prev=site ;;
1066 -site=* | --site=* | --sit=*)
1067 site=$ac_optarg ;;
1068
1069 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1070 ac_prev=srcdir ;;
1071 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1072 srcdir=$ac_optarg ;;
1073
1074 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1075 | --syscon | --sysco | --sysc | --sys | --sy)
1076 ac_prev=sysconfdir ;;
1077 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1078 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1079 sysconfdir=$ac_optarg ;;
1080
1081 -target | --target | --targe | --targ | --tar | --ta | --t)
1082 ac_prev=target_alias ;;
1083 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1084 target_alias=$ac_optarg ;;
1085
1086 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1087 verbose=yes ;;
1088
1089 -version | --version | --versio | --versi | --vers | -V)
1090 ac_init_version=: ;;
1091
1092 -with-* | --with-*)
1093 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096 as_fn_error $? "invalid package name: $ac_useropt"
1097 ac_useropt_orig=$ac_useropt
1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1100 *"
1101 "with_$ac_useropt"
1102 "*) ;;
1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1104 ac_unrecognized_sep=', ';;
1105 esac
1106 eval with_$ac_useropt=\$ac_optarg ;;
1107
1108 -without-* | --without-*)
1109 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112 as_fn_error $? "invalid package name: $ac_useropt"
1113 ac_useropt_orig=$ac_useropt
1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1116 *"
1117 "with_$ac_useropt"
1118 "*) ;;
1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1120 ac_unrecognized_sep=', ';;
1121 esac
1122 eval with_$ac_useropt=no ;;
1123
1124 --x)
1125 # Obsolete; use --with-x.
1126 with_x=yes ;;
1127
1128 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1129 | --x-incl | --x-inc | --x-in | --x-i)
1130 ac_prev=x_includes ;;
1131 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1132 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1133 x_includes=$ac_optarg ;;
1134
1135 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1136 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1137 ac_prev=x_libraries ;;
1138 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1139 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1140 x_libraries=$ac_optarg ;;
1141
1142 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1143 Try \`$0 --help' for more information"
1144 ;;
1145
1146 *=*)
1147 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1148 # Reject names that are not valid shell variable names.
1149 case $ac_envvar in #(
1150 '' | [0-9]* | *[!_$as_cr_alnum]* )
1151 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1152 esac
1153 eval $ac_envvar=\$ac_optarg
1154 export $ac_envvar ;;
1155
1156 *)
1157 # FIXME: should be removed in autoconf 3.0.
1158 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1159 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1160 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1161 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1162 ;;
1163
1164 esac
1165 done
1166
1167 if test -n "$ac_prev"; then
1168 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1169 as_fn_error $? "missing argument to $ac_option"
1170 fi
1171
1172 if test -n "$ac_unrecognized_opts"; then
1173 case $enable_option_checking in
1174 no) ;;
1175 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1176 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1177 esac
1178 fi
1179
1180 # Check all directory arguments for consistency.
1181 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1182 datadir sysconfdir sharedstatedir localstatedir includedir \
1183 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1184 libdir localedir mandir
1185 do
1186 eval ac_val=\$$ac_var
1187 # Remove trailing slashes.
1188 case $ac_val in
1189 */ )
1190 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1191 eval $ac_var=\$ac_val;;
1192 esac
1193 # Be sure to have absolute directory names.
1194 case $ac_val in
1195 [\\/$]* | ?:[\\/]* ) continue;;
1196 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1197 esac
1198 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1199 done
1200
1201 # There might be people who depend on the old broken behavior: `$host'
1202 # used to hold the argument of --host etc.
1203 # FIXME: To remove some day.
1204 build=$build_alias
1205 host=$host_alias
1206 target=$target_alias
1207
1208 # FIXME: To remove some day.
1209 if test "x$host_alias" != x; then
1210 if test "x$build_alias" = x; then
1211 cross_compiling=maybe
1212 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1213 If a cross compiler is detected then cross compile mode will be used" >&2
1214 elif test "x$build_alias" != "x$host_alias"; then
1215 cross_compiling=yes
1216 fi
1217 fi
1218
1219 ac_tool_prefix=
1220 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221
1222 test "$silent" = yes && exec 6>/dev/null
1223
1224
1225 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226 ac_ls_di=`ls -di .` &&
1227 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1228 as_fn_error $? "working directory cannot be determined"
1229 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1230 as_fn_error $? "pwd does not report name of working directory"
1231
1232
1233 # Find the source files, if location was not specified.
1234 if test -z "$srcdir"; then
1235 ac_srcdir_defaulted=yes
1236 # Try the directory containing this script, then the parent directory.
1237 ac_confdir=`$as_dirname -- "$as_myself" ||
1238 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1239 X"$as_myself" : 'X\(//\)[^/]' \| \
1240 X"$as_myself" : 'X\(//\)$' \| \
1241 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1242 $as_echo X"$as_myself" |
1243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1244 s//\1/
1245 q
1246 }
1247 /^X\(\/\/\)[^/].*/{
1248 s//\1/
1249 q
1250 }
1251 /^X\(\/\/\)$/{
1252 s//\1/
1253 q
1254 }
1255 /^X\(\/\).*/{
1256 s//\1/
1257 q
1258 }
1259 s/.*/./; q'`
1260 srcdir=$ac_confdir
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 srcdir=..
1263 fi
1264 else
1265 ac_srcdir_defaulted=no
1266 fi
1267 if test ! -r "$srcdir/$ac_unique_file"; then
1268 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1269 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1270 fi
1271 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1272 ac_abs_confdir=`(
1273 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1274 pwd)`
1275 # When building in place, set srcdir=.
1276 if test "$ac_abs_confdir" = "$ac_pwd"; then
1277 srcdir=.
1278 fi
1279 # Remove unnecessary trailing slashes from srcdir.
1280 # Double slashes in file names in object file debugging info
1281 # mess up M-x gdb in Emacs.
1282 case $srcdir in
1283 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1284 esac
1285 for ac_var in $ac_precious_vars; do
1286 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1287 eval ac_env_${ac_var}_value=\$${ac_var}
1288 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1289 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1290 done
1291
1292 #
1293 # Report the --help message.
1294 #
1295 if test "$ac_init_help" = "long"; then
1296 # Omit some internal or obsolete options to make the list less imposing.
1297 # This message is too long to be a string in the A/UX 3.1 sh.
1298 cat <<_ACEOF
1299 \`configure' configures xload 1.1.1 to adapt to many kinds of systems.
1300
1301 Usage: $0 [OPTION]... [VAR=VALUE]...
1302
1303 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1304 VAR=VALUE. See below for descriptions of some of the useful variables.
1305
1306 Defaults for the options are specified in brackets.
1307
1308 Configuration:
1309 -h, --help display this help and exit
1310 --help=short display options specific to this package
1311 --help=recursive display the short help of all the included packages
1312 -V, --version display version information and exit
1313 -q, --quiet, --silent do not print \`checking ...' messages
1314 --cache-file=FILE cache test results in FILE [disabled]
1315 -C, --config-cache alias for \`--cache-file=config.cache'
1316 -n, --no-create do not create output files
1317 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1318
1319 Installation directories:
1320 --prefix=PREFIX install architecture-independent files in PREFIX
1321 [$ac_default_prefix]
1322 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1323 [PREFIX]
1324
1325 By default, \`make install' will install all the files in
1326 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1327 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1328 for instance \`--prefix=\$HOME'.
1329
1330 For better control, use the options below.
1331
1332 Fine tuning of the installation directories:
1333 --bindir=DIR user executables [EPREFIX/bin]
1334 --sbindir=DIR system admin executables [EPREFIX/sbin]
1335 --libexecdir=DIR program executables [EPREFIX/libexec]
1336 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1337 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1338 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1339 --libdir=DIR object code libraries [EPREFIX/lib]
1340 --includedir=DIR C header files [PREFIX/include]
1341 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1342 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1343 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1344 --infodir=DIR info documentation [DATAROOTDIR/info]
1345 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1346 --mandir=DIR man documentation [DATAROOTDIR/man]
1347 --docdir=DIR documentation root [DATAROOTDIR/doc/xload]
1348 --htmldir=DIR html documentation [DOCDIR]
1349 --dvidir=DIR dvi documentation [DOCDIR]
1350 --pdfdir=DIR pdf documentation [DOCDIR]
1351 --psdir=DIR ps documentation [DOCDIR]
1352 _ACEOF
1353
1354 cat <<\_ACEOF
1355
1356 Program names:
1357 --program-prefix=PREFIX prepend PREFIX to installed program names
1358 --program-suffix=SUFFIX append SUFFIX to installed program names
1359 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1360
1361 System types:
1362 --build=BUILD configure for building on BUILD [guessed]
1363 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1364 _ACEOF
1365 fi
1366
1367 if test -n "$ac_init_help"; then
1368 case $ac_init_help in
1369 short | recursive ) echo "Configuration of xload 1.1.1:";;
1370 esac
1371 cat <<\_ACEOF
1372
1373 Optional Features:
1374 --disable-option-checking ignore unrecognized --enable/--with options
1375 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1376 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1377 --disable-dependency-tracking speeds up one-time build
1378 --enable-dependency-tracking do not reject slow dependency extractors
1379 --enable-maintainer-mode enable make rules and dependencies not useful
1380 (and sometimes confusing) to the casual installer
1381 --disable-selective-werror
1382 Turn off selective compiler errors. (default:
1383 enabled)
1384 --enable-strict-compilation
1385 Enable all warnings from compiler and make them
1386 errors (default: disabled)
1387 --enable-silent-rules less verbose build output (undo: `make V=1')
1388 --disable-silent-rules verbose build output (undo: `make V=0')
1389
1390 Optional Packages:
1391 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1392 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1393 --with-localedir=<path> Path to install message files in (default:
1394 datadir/locale)
1395 --with-appdefaultdir=<pathname>
1396 specify directory for app-defaults files (default is
1397 autodetected)
1398
1399 Some influential environment variables:
1400 CC C compiler command
1401 CFLAGS C compiler flags
1402 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1403 nonstandard directory <lib dir>
1404 LIBS libraries to pass to the linker, e.g. -l<library>
1405 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1406 you have headers in a nonstandard directory <include dir>
1407 CPP C preprocessor
1408 PKG_CONFIG path to pkg-config utility
1409 XLOAD_CFLAGS
1410 C compiler flags for XLOAD, overriding pkg-config
1411 XLOAD_LIBS linker flags for XLOAD, overriding pkg-config
1412 APPDEFS_CFLAGS
1413 C compiler flags for APPDEFS, overriding pkg-config
1414 APPDEFS_LIBS
1415 linker flags for APPDEFS, overriding pkg-config
1416
1417 Use these variables to override the choices made by `configure' or to help
1418 it to find libraries and programs with nonstandard names/locations.
1419
1420 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1421 _ACEOF
1422 ac_status=$?
1423 fi
1424
1425 if test "$ac_init_help" = "recursive"; then
1426 # If there are subdirs, report their specific --help.
1427 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1428 test -d "$ac_dir" ||
1429 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1430 continue
1431 ac_builddir=.
1432
1433 case "$ac_dir" in
1434 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435 *)
1436 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1437 # A ".." for each directory in $ac_dir_suffix.
1438 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1439 case $ac_top_builddir_sub in
1440 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1441 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1442 esac ;;
1443 esac
1444 ac_abs_top_builddir=$ac_pwd
1445 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1446 # for backward compatibility:
1447 ac_top_builddir=$ac_top_build_prefix
1448
1449 case $srcdir in
1450 .) # We are building in place.
1451 ac_srcdir=.
1452 ac_top_srcdir=$ac_top_builddir_sub
1453 ac_abs_top_srcdir=$ac_pwd ;;
1454 [\\/]* | ?:[\\/]* ) # Absolute name.
1455 ac_srcdir=$srcdir$ac_dir_suffix;
1456 ac_top_srcdir=$srcdir
1457 ac_abs_top_srcdir=$srcdir ;;
1458 *) # Relative name.
1459 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1460 ac_top_srcdir=$ac_top_build_prefix$srcdir
1461 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1462 esac
1463 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1464
1465 cd "$ac_dir" || { ac_status=$?; continue; }
1466 # Check for guested configure.
1467 if test -f "$ac_srcdir/configure.gnu"; then
1468 echo &&
1469 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1470 elif test -f "$ac_srcdir/configure"; then
1471 echo &&
1472 $SHELL "$ac_srcdir/configure" --help=recursive
1473 else
1474 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1475 fi || ac_status=$?
1476 cd "$ac_pwd" || { ac_status=$?; break; }
1477 done
1478 fi
1479
1480 test -n "$ac_init_help" && exit $ac_status
1481 if $ac_init_version; then
1482 cat <<\_ACEOF
1483 xload configure 1.1.1
1484 generated by GNU Autoconf 2.68
1485
1486 Copyright (C) 2010 Free Software Foundation, Inc.
1487 This configure script is free software; the Free Software Foundation
1488 gives unlimited permission to copy, distribute and modify it.
1489 _ACEOF
1490 exit
1491 fi
1492
1493 ## ------------------------ ##
1494 ## Autoconf initialization. ##
1495 ## ------------------------ ##
1496
1497 # ac_fn_c_try_compile LINENO
1498 # --------------------------
1499 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1500 ac_fn_c_try_compile ()
1501 {
1502 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1503 rm -f conftest.$ac_objext
1504 if { { ac_try="$ac_compile"
1505 case "(($ac_try" in
1506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1507 *) ac_try_echo=$ac_try;;
1508 esac
1509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1510 $as_echo "$ac_try_echo"; } >&5
1511 (eval "$ac_compile") 2>conftest.err
1512 ac_status=$?
1513 if test -s conftest.err; then
1514 grep -v '^ *+' conftest.err >conftest.er1
1515 cat conftest.er1 >&5
1516 mv -f conftest.er1 conftest.err
1517 fi
1518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1519 test $ac_status = 0; } && {
1520 test -z "$ac_c_werror_flag" ||
1521 test ! -s conftest.err
1522 } && test -s conftest.$ac_objext; then :
1523 ac_retval=0
1524 else
1525 $as_echo "$as_me: failed program was:" >&5
1526 sed 's/^/| /' conftest.$ac_ext >&5
1527
1528 ac_retval=1
1529 fi
1530 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1531 as_fn_set_status $ac_retval
1532
1533 } # ac_fn_c_try_compile
1534
1535 # ac_fn_c_try_cpp LINENO
1536 # ----------------------
1537 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1538 ac_fn_c_try_cpp ()
1539 {
1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541 if { { ac_try="$ac_cpp conftest.$ac_ext"
1542 case "(($ac_try" in
1543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1544 *) ac_try_echo=$ac_try;;
1545 esac
1546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1547 $as_echo "$ac_try_echo"; } >&5
1548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1549 ac_status=$?
1550 if test -s conftest.err; then
1551 grep -v '^ *+' conftest.err >conftest.er1
1552 cat conftest.er1 >&5
1553 mv -f conftest.er1 conftest.err
1554 fi
1555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1556 test $ac_status = 0; } > conftest.i && {
1557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1558 test ! -s conftest.err
1559 }; then :
1560 ac_retval=0
1561 else
1562 $as_echo "$as_me: failed program was:" >&5
1563 sed 's/^/| /' conftest.$ac_ext >&5
1564
1565 ac_retval=1
1566 fi
1567 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1568 as_fn_set_status $ac_retval
1569
1570 } # ac_fn_c_try_cpp
1571
1572 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1573 # -------------------------------------------------------
1574 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1575 # the include files in INCLUDES and setting the cache variable VAR
1576 # accordingly.
1577 ac_fn_c_check_header_mongrel ()
1578 {
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 if eval \${$3+:} false; then :
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1582 $as_echo_n "checking for $2... " >&6; }
1583 if eval \${$3+:} false; then :
1584 $as_echo_n "(cached) " >&6
1585 fi
1586 eval ac_res=\$$3
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1588 $as_echo "$ac_res" >&6; }
1589 else
1590 # Is the header compilable?
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1592 $as_echo_n "checking $2 usability... " >&6; }
1593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1594 /* end confdefs.h. */
1595 $4
1596 #include <$2>
1597 _ACEOF
1598 if ac_fn_c_try_compile "$LINENO"; then :
1599 ac_header_compiler=yes
1600 else
1601 ac_header_compiler=no
1602 fi
1603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1605 $as_echo "$ac_header_compiler" >&6; }
1606
1607 # Is the header present?
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1609 $as_echo_n "checking $2 presence... " >&6; }
1610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611 /* end confdefs.h. */
1612 #include <$2>
1613 _ACEOF
1614 if ac_fn_c_try_cpp "$LINENO"; then :
1615 ac_header_preproc=yes
1616 else
1617 ac_header_preproc=no
1618 fi
1619 rm -f conftest.err conftest.i conftest.$ac_ext
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1621 $as_echo "$ac_header_preproc" >&6; }
1622
1623 # So? What about this header?
1624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1625 yes:no: )
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1627 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1629 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1630 ;;
1631 no:yes:* )
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1633 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1635 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1637 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1639 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1641 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1642 ( $as_echo "## ---------------------------------------------------------------------- ##
1643 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1644 ## ---------------------------------------------------------------------- ##"
1645 ) | sed "s/^/$as_me: WARNING: /" >&2
1646 ;;
1647 esac
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1649 $as_echo_n "checking for $2... " >&6; }
1650 if eval \${$3+:} false; then :
1651 $as_echo_n "(cached) " >&6
1652 else
1653 eval "$3=\$ac_header_compiler"
1654 fi
1655 eval ac_res=\$$3
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1657 $as_echo "$ac_res" >&6; }
1658 fi
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660
1661 } # ac_fn_c_check_header_mongrel
1662
1663 # ac_fn_c_try_run LINENO
1664 # ----------------------
1665 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1666 # that executables *can* be run.
1667 ac_fn_c_try_run ()
1668 {
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 if { { ac_try="$ac_link"
1671 case "(($ac_try" in
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1674 esac
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_link") 2>&5
1678 ac_status=$?
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1681 { { case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_try") 2>&5
1688 ac_status=$?
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; }; }; then :
1691 ac_retval=0
1692 else
1693 $as_echo "$as_me: program exited with status $ac_status" >&5
1694 $as_echo "$as_me: failed program was:" >&5
1695 sed 's/^/| /' conftest.$ac_ext >&5
1696
1697 ac_retval=$ac_status
1698 fi
1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701 as_fn_set_status $ac_retval
1702
1703 } # ac_fn_c_try_run
1704
1705 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1706 # -------------------------------------------------------
1707 # Tests whether HEADER exists and can be compiled using the include files in
1708 # INCLUDES, setting the cache variable VAR accordingly.
1709 ac_fn_c_check_header_compile ()
1710 {
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 $as_echo_n "checking for $2... " >&6; }
1714 if eval \${$3+:} false; then :
1715 $as_echo_n "(cached) " >&6
1716 else
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h. */
1719 $4
1720 #include <$2>
1721 _ACEOF
1722 if ac_fn_c_try_compile "$LINENO"; then :
1723 eval "$3=yes"
1724 else
1725 eval "$3=no"
1726 fi
1727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1728 fi
1729 eval ac_res=\$$3
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731 $as_echo "$ac_res" >&6; }
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733
1734 } # ac_fn_c_check_header_compile
1735
1736 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1737 # ---------------------------------------------
1738 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1739 # accordingly.
1740 ac_fn_c_check_decl ()
1741 {
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 as_decl_name=`echo $2|sed 's/ *(.*//'`
1744 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1746 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1747 if eval \${$3+:} false; then :
1748 $as_echo_n "(cached) " >&6
1749 else
1750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751 /* end confdefs.h. */
1752 $4
1753 int
1754 main ()
1755 {
1756 #ifndef $as_decl_name
1757 #ifdef __cplusplus
1758 (void) $as_decl_use;
1759 #else
1760 (void) $as_decl_name;
1761 #endif
1762 #endif
1763
1764 ;
1765 return 0;
1766 }
1767 _ACEOF
1768 if ac_fn_c_try_compile "$LINENO"; then :
1769 eval "$3=yes"
1770 else
1771 eval "$3=no"
1772 fi
1773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774 fi
1775 eval ac_res=\$$3
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777 $as_echo "$ac_res" >&6; }
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779
1780 } # ac_fn_c_check_decl
1781
1782 # ac_fn_c_try_link LINENO
1783 # -----------------------
1784 # Try to link conftest.$ac_ext, and return whether this succeeded.
1785 ac_fn_c_try_link ()
1786 {
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 rm -f conftest.$ac_objext conftest$ac_exeext
1789 if { { ac_try="$ac_link"
1790 case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_link") 2>conftest.err
1797 ac_status=$?
1798 if test -s conftest.err; then
1799 grep -v '^ *+' conftest.err >conftest.er1
1800 cat conftest.er1 >&5
1801 mv -f conftest.er1 conftest.err
1802 fi
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } && {
1805 test -z "$ac_c_werror_flag" ||
1806 test ! -s conftest.err
1807 } && test -s conftest$ac_exeext && {
1808 test "$cross_compiling" = yes ||
1809 $as_test_x conftest$ac_exeext
1810 }; then :
1811 ac_retval=0
1812 else
1813 $as_echo "$as_me: failed program was:" >&5
1814 sed 's/^/| /' conftest.$ac_ext >&5
1815
1816 ac_retval=1
1817 fi
1818 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1819 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1820 # interfere with the next link command; also delete a directory that is
1821 # left behind by Apple's compiler. We do this before executing the actions.
1822 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824 as_fn_set_status $ac_retval
1825
1826 } # ac_fn_c_try_link
1827
1828 # ac_fn_c_check_func LINENO FUNC VAR
1829 # ----------------------------------
1830 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1831 ac_fn_c_check_func ()
1832 {
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if eval \${$3+:} false; then :
1837 $as_echo_n "(cached) " >&6
1838 else
1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840 /* end confdefs.h. */
1841 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1843 #define $2 innocuous_$2
1844
1845 /* System header to define __stub macros and hopefully few prototypes,
1846 which can conflict with char $2 (); below.
1847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1848 <limits.h> exists even on freestanding compilers. */
1849
1850 #ifdef __STDC__
1851 # include <limits.h>
1852 #else
1853 # include <assert.h>
1854 #endif
1855
1856 #undef $2
1857
1858 /* Override any GCC internal prototype to avoid an error.
1859 Use char because int might match the return type of a GCC
1860 builtin and then its argument prototype would still apply. */
1861 #ifdef __cplusplus
1862 extern "C"
1863 #endif
1864 char $2 ();
1865 /* The GNU C library defines this for functions which it implements
1866 to always fail with ENOSYS. Some functions are actually named
1867 something starting with __ and the normal name is an alias. */
1868 #if defined __stub_$2 || defined __stub___$2
1869 choke me
1870 #endif
1871
1872 int
1873 main ()
1874 {
1875 return $2 ();
1876 ;
1877 return 0;
1878 }
1879 _ACEOF
1880 if ac_fn_c_try_link "$LINENO"; then :
1881 eval "$3=yes"
1882 else
1883 eval "$3=no"
1884 fi
1885 rm -f core conftest.err conftest.$ac_objext \
1886 conftest$ac_exeext conftest.$ac_ext
1887 fi
1888 eval ac_res=\$$3
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890 $as_echo "$ac_res" >&6; }
1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892
1893 } # ac_fn_c_check_func
1894 cat >config.log <<_ACEOF
1895 This file contains any messages produced by compilers while
1896 running configure, to aid debugging if configure makes a mistake.
1897
1898 It was created by xload $as_me 1.1.1, which was
1899 generated by GNU Autoconf 2.68. Invocation command line was
1900
1901 $ $0 $@
1902
1903 _ACEOF
1904 exec 5>>config.log
1905 {
1906 cat <<_ASUNAME
1907 ## --------- ##
1908 ## Platform. ##
1909 ## --------- ##
1910
1911 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1912 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1913 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1914 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1915 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1916
1917 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1918 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1919
1920 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1921 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1922 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1923 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1924 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1925 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1926 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1927
1928 _ASUNAME
1929
1930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931 for as_dir in $PATH
1932 do
1933 IFS=$as_save_IFS
1934 test -z "$as_dir" && as_dir=.
1935 $as_echo "PATH: $as_dir"
1936 done
1937 IFS=$as_save_IFS
1938
1939 } >&5
1940
1941 cat >&5 <<_ACEOF
1942
1943
1944 ## ----------- ##
1945 ## Core tests. ##
1946 ## ----------- ##
1947
1948 _ACEOF
1949
1950
1951 # Keep a trace of the command line.
1952 # Strip out --no-create and --no-recursion so they do not pile up.
1953 # Strip out --silent because we don't want to record it for future runs.
1954 # Also quote any args containing shell meta-characters.
1955 # Make two passes to allow for proper duplicate-argument suppression.
1956 ac_configure_args=
1957 ac_configure_args0=
1958 ac_configure_args1=
1959 ac_must_keep_next=false
1960 for ac_pass in 1 2
1961 do
1962 for ac_arg
1963 do
1964 case $ac_arg in
1965 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1966 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1967 | -silent | --silent | --silen | --sile | --sil)
1968 continue ;;
1969 *\'*)
1970 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1971 esac
1972 case $ac_pass in
1973 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1974 2)
1975 as_fn_append ac_configure_args1 " '$ac_arg'"
1976 if test $ac_must_keep_next = true; then
1977 ac_must_keep_next=false # Got value, back to normal.
1978 else
1979 case $ac_arg in
1980 *=* | --config-cache | -C | -disable-* | --disable-* \
1981 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1982 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1983 | -with-* | --with-* | -without-* | --without-* | --x)
1984 case "$ac_configure_args0 " in
1985 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1986 esac
1987 ;;
1988 -* ) ac_must_keep_next=true ;;
1989 esac
1990 fi
1991 as_fn_append ac_configure_args " '$ac_arg'"
1992 ;;
1993 esac
1994 done
1995 done
1996 { ac_configure_args0=; unset ac_configure_args0;}
1997 { ac_configure_args1=; unset ac_configure_args1;}
1998
1999 # When interrupted or exit'd, cleanup temporary files, and complete
2000 # config.log. We remove comments because anyway the quotes in there
2001 # would cause problems or look ugly.
2002 # WARNING: Use '\'' to represent an apostrophe within the trap.
2003 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2004 trap 'exit_status=$?
2005 # Save into config.log some information that might help in debugging.
2006 {
2007 echo
2008
2009 $as_echo "## ---------------- ##
2010 ## Cache variables. ##
2011 ## ---------------- ##"
2012 echo
2013 # The following way of writing the cache mishandles newlines in values,
2014 (
2015 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2016 eval ac_val=\$$ac_var
2017 case $ac_val in #(
2018 *${as_nl}*)
2019 case $ac_var in #(
2020 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2021 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2022 esac
2023 case $ac_var in #(
2024 _ | IFS | as_nl) ;; #(
2025 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2026 *) { eval $ac_var=; unset $ac_var;} ;;
2027 esac ;;
2028 esac
2029 done
2030 (set) 2>&1 |
2031 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2032 *${as_nl}ac_space=\ *)
2033 sed -n \
2034 "s/'\''/'\''\\\\'\'''\''/g;
2035 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2036 ;; #(
2037 *)
2038 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2039 ;;
2040 esac |
2041 sort
2042 )
2043 echo
2044
2045 $as_echo "## ----------------- ##
2046 ## Output variables. ##
2047 ## ----------------- ##"
2048 echo
2049 for ac_var in $ac_subst_vars
2050 do
2051 eval ac_val=\$$ac_var
2052 case $ac_val in
2053 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2054 esac
2055 $as_echo "$ac_var='\''$ac_val'\''"
2056 done | sort
2057 echo
2058
2059 if test -n "$ac_subst_files"; then
2060 $as_echo "## ------------------- ##
2061 ## File substitutions. ##
2062 ## ------------------- ##"
2063 echo
2064 for ac_var in $ac_subst_files
2065 do
2066 eval ac_val=\$$ac_var
2067 case $ac_val in
2068 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2069 esac
2070 $as_echo "$ac_var='\''$ac_val'\''"
2071 done | sort
2072 echo
2073 fi
2074
2075 if test -s confdefs.h; then
2076 $as_echo "## ----------- ##
2077 ## confdefs.h. ##
2078 ## ----------- ##"
2079 echo
2080 cat confdefs.h
2081 echo
2082 fi
2083 test "$ac_signal" != 0 &&
2084 $as_echo "$as_me: caught signal $ac_signal"
2085 $as_echo "$as_me: exit $exit_status"
2086 } >&5
2087 rm -f core *.core core.conftest.* &&
2088 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2089 exit $exit_status
2090 ' 0
2091 for ac_signal in 1 2 13 15; do
2092 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2093 done
2094 ac_signal=0
2095
2096 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2097 rm -f -r conftest* confdefs.h
2098
2099 $as_echo "/* confdefs.h */" > confdefs.h
2100
2101 # Predefined preprocessor variables.
2102
2103 cat >>confdefs.h <<_ACEOF
2104 #define PACKAGE_NAME "$PACKAGE_NAME"
2105 _ACEOF
2106
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2109 _ACEOF
2110
2111 cat >>confdefs.h <<_ACEOF
2112 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2113 _ACEOF
2114
2115 cat >>confdefs.h <<_ACEOF
2116 #define PACKAGE_STRING "$PACKAGE_STRING"
2117 _ACEOF
2118
2119 cat >>confdefs.h <<_ACEOF
2120 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2121 _ACEOF
2122
2123 cat >>confdefs.h <<_ACEOF
2124 #define PACKAGE_URL "$PACKAGE_URL"
2125 _ACEOF
2126
2127
2128 # Let the site file select an alternate cache file if it wants to.
2129 # Prefer an explicitly selected file to automatically selected ones.
2130 ac_site_file1=NONE
2131 ac_site_file2=NONE
2132 if test -n "$CONFIG_SITE"; then
2133 # We do not want a PATH search for config.site.
2134 case $CONFIG_SITE in #((
2135 -*) ac_site_file1=./$CONFIG_SITE;;
2136 */*) ac_site_file1=$CONFIG_SITE;;
2137 *) ac_site_file1=./$CONFIG_SITE;;
2138 esac
2139 elif test "x$prefix" != xNONE; then
2140 ac_site_file1=$prefix/share/config.site
2141 ac_site_file2=$prefix/etc/config.site
2142 else
2143 ac_site_file1=$ac_default_prefix/share/config.site
2144 ac_site_file2=$ac_default_prefix/etc/config.site
2145 fi
2146 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2147 do
2148 test "x$ac_site_file" = xNONE && continue
2149 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2151 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2152 sed 's/^/| /' "$ac_site_file" >&5
2153 . "$ac_site_file" \
2154 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2156 as_fn_error $? "failed to load site script $ac_site_file
2157 See \`config.log' for more details" "$LINENO" 5; }
2158 fi
2159 done
2160
2161 if test -r "$cache_file"; then
2162 # Some versions of bash will fail to source /dev/null (special files
2163 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2164 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2166 $as_echo "$as_me: loading cache $cache_file" >&6;}
2167 case $cache_file in
2168 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2169 *) . "./$cache_file";;
2170 esac
2171 fi
2172 else
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2174 $as_echo "$as_me: creating cache $cache_file" >&6;}
2175 >$cache_file
2176 fi
2177
2178 # Check that the precious variables saved in the cache have kept the same
2179 # value.
2180 ac_cache_corrupted=false
2181 for ac_var in $ac_precious_vars; do
2182 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2183 eval ac_new_set=\$ac_env_${ac_var}_set
2184 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2185 eval ac_new_val=\$ac_env_${ac_var}_value
2186 case $ac_old_set,$ac_new_set in
2187 set,)
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2189 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2190 ac_cache_corrupted=: ;;
2191 ,set)
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2193 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2194 ac_cache_corrupted=: ;;
2195 ,);;
2196 *)
2197 if test "x$ac_old_val" != "x$ac_new_val"; then
2198 # differences in whitespace do not lead to failure.
2199 ac_old_val_w=`echo x $ac_old_val`
2200 ac_new_val_w=`echo x $ac_new_val`
2201 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2203 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2204 ac_cache_corrupted=:
2205 else
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2207 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2208 eval $ac_var=\$ac_old_val
2209 fi
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2211 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2213 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2214 fi;;
2215 esac
2216 # Pass precious variables to config.status.
2217 if test "$ac_new_set" = set; then
2218 case $ac_new_val in
2219 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2220 *) ac_arg=$ac_var=$ac_new_val ;;
2221 esac
2222 case " $ac_configure_args " in
2223 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2224 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2225 esac
2226 fi
2227 done
2228 if $ac_cache_corrupted; then
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2232 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2233 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2234 fi
2235 ## -------------------- ##
2236 ## Main body of script. ##
2237 ## -------------------- ##
2238
2239 ac_ext=c
2240 ac_cpp='$CPP $CPPFLAGS'
2241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2244
2245
2246
2247
2248 ac_config_headers="$ac_config_headers config.h"
2249
2250 ac_ext=c
2251 ac_cpp='$CPP $CPPFLAGS'
2252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2255 if test -n "$ac_tool_prefix"; then
2256 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2257 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2259 $as_echo_n "checking for $ac_word... " >&6; }
2260 if ${ac_cv_prog_CC+:} false; then :
2261 $as_echo_n "(cached) " >&6
2262 else
2263 if test -n "$CC"; then
2264 ac_cv_prog_CC="$CC" # Let the user override the test.
2265 else
2266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267 for as_dir in $PATH
2268 do
2269 IFS=$as_save_IFS
2270 test -z "$as_dir" && as_dir=.
2271 for ac_exec_ext in '' $ac_executable_extensions; do
2272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2273 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2275 break 2
2276 fi
2277 done
2278 done
2279 IFS=$as_save_IFS
2280
2281 fi
2282 fi
2283 CC=$ac_cv_prog_CC
2284 if test -n "$CC"; then
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2286 $as_echo "$CC" >&6; }
2287 else
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2289 $as_echo "no" >&6; }
2290 fi
2291
2292
2293 fi
2294 if test -z "$ac_cv_prog_CC"; then
2295 ac_ct_CC=$CC
2296 # Extract the first word of "gcc", so it can be a program name with args.
2297 set dummy gcc; ac_word=$2
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2299 $as_echo_n "checking for $ac_word... " >&6; }
2300 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2301 $as_echo_n "(cached) " >&6
2302 else
2303 if test -n "$ac_ct_CC"; then
2304 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2305 else
2306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307 for as_dir in $PATH
2308 do
2309 IFS=$as_save_IFS
2310 test -z "$as_dir" && as_dir=.
2311 for ac_exec_ext in '' $ac_executable_extensions; do
2312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2313 ac_cv_prog_ac_ct_CC="gcc"
2314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2315 break 2
2316 fi
2317 done
2318 done
2319 IFS=$as_save_IFS
2320
2321 fi
2322 fi
2323 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2324 if test -n "$ac_ct_CC"; then
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2326 $as_echo "$ac_ct_CC" >&6; }
2327 else
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2329 $as_echo "no" >&6; }
2330 fi
2331
2332 if test "x$ac_ct_CC" = x; then
2333 CC=""
2334 else
2335 case $cross_compiling:$ac_tool_warned in
2336 yes:)
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2339 ac_tool_warned=yes ;;
2340 esac
2341 CC=$ac_ct_CC
2342 fi
2343 else
2344 CC="$ac_cv_prog_CC"
2345 fi
2346
2347 if test -z "$CC"; then
2348 if test -n "$ac_tool_prefix"; then
2349 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2350 set dummy ${ac_tool_prefix}cc; ac_word=$2
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2352 $as_echo_n "checking for $ac_word... " >&6; }
2353 if ${ac_cv_prog_CC+:} false; then :
2354 $as_echo_n "(cached) " >&6
2355 else
2356 if test -n "$CC"; then
2357 ac_cv_prog_CC="$CC" # Let the user override the test.
2358 else
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 for as_dir in $PATH
2361 do
2362 IFS=$as_save_IFS
2363 test -z "$as_dir" && as_dir=.
2364 for ac_exec_ext in '' $ac_executable_extensions; do
2365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2366 ac_cv_prog_CC="${ac_tool_prefix}cc"
2367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2368 break 2
2369 fi
2370 done
2371 done
2372 IFS=$as_save_IFS
2373
2374 fi
2375 fi
2376 CC=$ac_cv_prog_CC
2377 if test -n "$CC"; then
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2379 $as_echo "$CC" >&6; }
2380 else
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2382 $as_echo "no" >&6; }
2383 fi
2384
2385
2386 fi
2387 fi
2388 if test -z "$CC"; then
2389 # Extract the first word of "cc", so it can be a program name with args.
2390 set dummy cc; ac_word=$2
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2392 $as_echo_n "checking for $ac_word... " >&6; }
2393 if ${ac_cv_prog_CC+:} false; then :
2394 $as_echo_n "(cached) " >&6
2395 else
2396 if test -n "$CC"; then
2397 ac_cv_prog_CC="$CC" # Let the user override the test.
2398 else
2399 ac_prog_rejected=no
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 for as_dir in $PATH
2402 do
2403 IFS=$as_save_IFS
2404 test -z "$as_dir" && as_dir=.
2405 for ac_exec_ext in '' $ac_executable_extensions; do
2406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2407 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2408 ac_prog_rejected=yes
2409 continue
2410 fi
2411 ac_cv_prog_CC="cc"
2412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 break 2
2414 fi
2415 done
2416 done
2417 IFS=$as_save_IFS
2418
2419 if test $ac_prog_rejected = yes; then
2420 # We found a bogon in the path, so make sure we never use it.
2421 set dummy $ac_cv_prog_CC
2422 shift
2423 if test $# != 0; then
2424 # We chose a different compiler from the bogus one.
2425 # However, it has the same basename, so the bogon will be chosen
2426 # first if we set CC to just the basename; use the full file name.
2427 shift
2428 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2429 fi
2430 fi
2431 fi
2432 fi
2433 CC=$ac_cv_prog_CC
2434 if test -n "$CC"; then
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2436 $as_echo "$CC" >&6; }
2437 else
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2439 $as_echo "no" >&6; }
2440 fi
2441
2442
2443 fi
2444 if test -z "$CC"; then
2445 if test -n "$ac_tool_prefix"; then
2446 for ac_prog in cl.exe
2447 do
2448 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2449 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2451 $as_echo_n "checking for $ac_word... " >&6; }
2452 if ${ac_cv_prog_CC+:} false; then :
2453 $as_echo_n "(cached) " >&6
2454 else
2455 if test -n "$CC"; then
2456 ac_cv_prog_CC="$CC" # Let the user override the test.
2457 else
2458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459 for as_dir in $PATH
2460 do
2461 IFS=$as_save_IFS
2462 test -z "$as_dir" && as_dir=.
2463 for ac_exec_ext in '' $ac_executable_extensions; do
2464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2465 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2467 break 2
2468 fi
2469 done
2470 done
2471 IFS=$as_save_IFS
2472
2473 fi
2474 fi
2475 CC=$ac_cv_prog_CC
2476 if test -n "$CC"; then
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2478 $as_echo "$CC" >&6; }
2479 else
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2481 $as_echo "no" >&6; }
2482 fi
2483
2484
2485 test -n "$CC" && break
2486 done
2487 fi
2488 if test -z "$CC"; then
2489 ac_ct_CC=$CC
2490 for ac_prog in cl.exe
2491 do
2492 # Extract the first word of "$ac_prog", so it can be a program name with args.
2493 set dummy $ac_prog; ac_word=$2
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2495 $as_echo_n "checking for $ac_word... " >&6; }
2496 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2497 $as_echo_n "(cached) " >&6
2498 else
2499 if test -n "$ac_ct_CC"; then
2500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2501 else
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 for as_dir in $PATH
2504 do
2505 IFS=$as_save_IFS
2506 test -z "$as_dir" && as_dir=.
2507 for ac_exec_ext in '' $ac_executable_extensions; do
2508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2509 ac_cv_prog_ac_ct_CC="$ac_prog"
2510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2511 break 2
2512 fi
2513 done
2514 done
2515 IFS=$as_save_IFS
2516
2517 fi
2518 fi
2519 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2520 if test -n "$ac_ct_CC"; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2522 $as_echo "$ac_ct_CC" >&6; }
2523 else
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2525 $as_echo "no" >&6; }
2526 fi
2527
2528
2529 test -n "$ac_ct_CC" && break
2530 done
2531
2532 if test "x$ac_ct_CC" = x; then
2533 CC=""
2534 else
2535 case $cross_compiling:$ac_tool_warned in
2536 yes:)
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2539 ac_tool_warned=yes ;;
2540 esac
2541 CC=$ac_ct_CC
2542 fi
2543 fi
2544
2545 fi
2546
2547
2548 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2550 as_fn_error $? "no acceptable C compiler found in \$PATH
2551 See \`config.log' for more details" "$LINENO" 5; }
2552
2553 # Provide some information about the compiler.
2554 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2555 set X $ac_compile
2556 ac_compiler=$2
2557 for ac_option in --version -v -V -qversion; do
2558 { { ac_try="$ac_compiler $ac_option >&5"
2559 case "(($ac_try" in
2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2562 esac
2563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2564 $as_echo "$ac_try_echo"; } >&5
2565 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2566 ac_status=$?
2567 if test -s conftest.err; then
2568 sed '10a\
2569 ... rest of stderr output deleted ...
2570 10q' conftest.err >conftest.er1
2571 cat conftest.er1 >&5
2572 fi
2573 rm -f conftest.er1 conftest.err
2574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2575 test $ac_status = 0; }
2576 done
2577
2578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2579 /* end confdefs.h. */
2580
2581 int
2582 main ()
2583 {
2584
2585 ;
2586 return 0;
2587 }
2588 _ACEOF
2589 ac_clean_files_save=$ac_clean_files
2590 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2591 # Try to create an executable without -o first, disregard a.out.
2592 # It will help us diagnose broken compilers, and finding out an intuition
2593 # of exeext.
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2595 $as_echo_n "checking whether the C compiler works... " >&6; }
2596 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2597
2598 # The possible output files:
2599 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2600
2601 ac_rmfiles=
2602 for ac_file in $ac_files
2603 do
2604 case $ac_file in
2605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2606 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2607 esac
2608 done
2609 rm -f $ac_rmfiles
2610
2611 if { { ac_try="$ac_link_default"
2612 case "(($ac_try" in
2613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614 *) ac_try_echo=$ac_try;;
2615 esac
2616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2617 $as_echo "$ac_try_echo"; } >&5
2618 (eval "$ac_link_default") 2>&5
2619 ac_status=$?
2620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2621 test $ac_status = 0; }; then :
2622 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2623 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2624 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2625 # so that the user can short-circuit this test for compilers unknown to
2626 # Autoconf.
2627 for ac_file in $ac_files ''
2628 do
2629 test -f "$ac_file" || continue
2630 case $ac_file in
2631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2632 ;;
2633 [ab].out )
2634 # We found the default executable, but exeext='' is most
2635 # certainly right.
2636 break;;
2637 *.* )
2638 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2639 then :; else
2640 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2641 fi
2642 # We set ac_cv_exeext here because the later test for it is not
2643 # safe: cross compilers may not add the suffix if given an `-o'
2644 # argument, so we may need to know it at that point already.
2645 # Even if this section looks crufty: it has the advantage of
2646 # actually working.
2647 break;;
2648 * )
2649 break;;
2650 esac
2651 done
2652 test "$ac_cv_exeext" = no && ac_cv_exeext=
2653
2654 else
2655 ac_file=''
2656 fi
2657 if test -z "$ac_file"; then :
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2659 $as_echo "no" >&6; }
2660 $as_echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2662
2663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2665 as_fn_error 77 "C compiler cannot create executables
2666 See \`config.log' for more details" "$LINENO" 5; }
2667 else
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2669 $as_echo "yes" >&6; }
2670 fi
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2672 $as_echo_n "checking for C compiler default output file name... " >&6; }
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2674 $as_echo "$ac_file" >&6; }
2675 ac_exeext=$ac_cv_exeext
2676
2677 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2678 ac_clean_files=$ac_clean_files_save
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2680 $as_echo_n "checking for suffix of executables... " >&6; }
2681 if { { ac_try="$ac_link"
2682 case "(($ac_try" in
2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2685 esac
2686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2687 $as_echo "$ac_try_echo"; } >&5
2688 (eval "$ac_link") 2>&5
2689 ac_status=$?
2690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2691 test $ac_status = 0; }; then :
2692 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2693 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2694 # work properly (i.e., refer to `conftest.exe'), while it won't with
2695 # `rm'.
2696 for ac_file in conftest.exe conftest conftest.*; do
2697 test -f "$ac_file" || continue
2698 case $ac_file in
2699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2700 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2701 break;;
2702 * ) break;;
2703 esac
2704 done
2705 else
2706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2708 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2709 See \`config.log' for more details" "$LINENO" 5; }
2710 fi
2711 rm -f conftest conftest$ac_cv_exeext
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2713 $as_echo "$ac_cv_exeext" >&6; }
2714
2715 rm -f conftest.$ac_ext
2716 EXEEXT=$ac_cv_exeext
2717 ac_exeext=$EXEEXT
2718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2719 /* end confdefs.h. */
2720 #include <stdio.h>
2721 int
2722 main ()
2723 {
2724 FILE *f = fopen ("conftest.out", "w");
2725 return ferror (f) || fclose (f) != 0;
2726
2727 ;
2728 return 0;
2729 }
2730 _ACEOF
2731 ac_clean_files="$ac_clean_files conftest.out"
2732 # Check that the compiler produces executables we can run. If not, either
2733 # the compiler is broken, or we cross compile.
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2735 $as_echo_n "checking whether we are cross compiling... " >&6; }
2736 if test "$cross_compiling" != yes; then
2737 { { ac_try="$ac_link"
2738 case "(($ac_try" in
2739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740 *) ac_try_echo=$ac_try;;
2741 esac
2742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2743 $as_echo "$ac_try_echo"; } >&5
2744 (eval "$ac_link") 2>&5
2745 ac_status=$?
2746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2747 test $ac_status = 0; }
2748 if { ac_try='./conftest$ac_cv_exeext'
2749 { { case "(($ac_try" in
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2752 esac
2753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2754 $as_echo "$ac_try_echo"; } >&5
2755 (eval "$ac_try") 2>&5
2756 ac_status=$?
2757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2758 test $ac_status = 0; }; }; then
2759 cross_compiling=no
2760 else
2761 if test "$cross_compiling" = maybe; then
2762 cross_compiling=yes
2763 else
2764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2766 as_fn_error $? "cannot run C compiled programs.
2767 If you meant to cross compile, use \`--host'.
2768 See \`config.log' for more details" "$LINENO" 5; }
2769 fi
2770 fi
2771 fi
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2773 $as_echo "$cross_compiling" >&6; }
2774
2775 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2776 ac_clean_files=$ac_clean_files_save
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2778 $as_echo_n "checking for suffix of object files... " >&6; }
2779 if ${ac_cv_objext+:} false; then :
2780 $as_echo_n "(cached) " >&6
2781 else
2782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2783 /* end confdefs.h. */
2784
2785 int
2786 main ()
2787 {
2788
2789 ;
2790 return 0;
2791 }
2792 _ACEOF
2793 rm -f conftest.o conftest.obj
2794 if { { ac_try="$ac_compile"
2795 case "(($ac_try" in
2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2798 esac
2799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2800 $as_echo "$ac_try_echo"; } >&5
2801 (eval "$ac_compile") 2>&5
2802 ac_status=$?
2803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2804 test $ac_status = 0; }; then :
2805 for ac_file in conftest.o conftest.obj conftest.*; do
2806 test -f "$ac_file" || continue;
2807 case $ac_file in
2808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2809 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2810 break;;
2811 esac
2812 done
2813 else
2814 $as_echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2816
2817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2819 as_fn_error $? "cannot compute suffix of object files: cannot compile
2820 See \`config.log' for more details" "$LINENO" 5; }
2821 fi
2822 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2823 fi
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2825 $as_echo "$ac_cv_objext" >&6; }
2826 OBJEXT=$ac_cv_objext
2827 ac_objext=$OBJEXT
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2829 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2830 if ${ac_cv_c_compiler_gnu+:} false; then :
2831 $as_echo_n "(cached) " >&6
2832 else
2833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2834 /* end confdefs.h. */
2835
2836 int
2837 main ()
2838 {
2839 #ifndef __GNUC__
2840 choke me
2841 #endif
2842
2843 ;
2844 return 0;
2845 }
2846 _ACEOF
2847 if ac_fn_c_try_compile "$LINENO"; then :
2848 ac_compiler_gnu=yes
2849 else
2850 ac_compiler_gnu=no
2851 fi
2852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2853 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2854
2855 fi
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2857 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2858 if test $ac_compiler_gnu = yes; then
2859 GCC=yes
2860 else
2861 GCC=
2862 fi
2863 ac_test_CFLAGS=${CFLAGS+set}
2864 ac_save_CFLAGS=$CFLAGS
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2866 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2867 if ${ac_cv_prog_cc_g+:} false; then :
2868 $as_echo_n "(cached) " >&6
2869 else
2870 ac_save_c_werror_flag=$ac_c_werror_flag
2871 ac_c_werror_flag=yes
2872 ac_cv_prog_cc_g=no
2873 CFLAGS="-g"
2874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2875 /* end confdefs.h. */
2876
2877 int
2878 main ()
2879 {
2880
2881 ;
2882 return 0;
2883 }
2884 _ACEOF
2885 if ac_fn_c_try_compile "$LINENO"; then :
2886 ac_cv_prog_cc_g=yes
2887 else
2888 CFLAGS=""
2889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2890 /* end confdefs.h. */
2891
2892 int
2893 main ()
2894 {
2895
2896 ;
2897 return 0;
2898 }
2899 _ACEOF
2900 if ac_fn_c_try_compile "$LINENO"; then :
2901
2902 else
2903 ac_c_werror_flag=$ac_save_c_werror_flag
2904 CFLAGS="-g"
2905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2906 /* end confdefs.h. */
2907
2908 int
2909 main ()
2910 {
2911
2912 ;
2913 return 0;
2914 }
2915 _ACEOF
2916 if ac_fn_c_try_compile "$LINENO"; then :
2917 ac_cv_prog_cc_g=yes
2918 fi
2919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2920 fi
2921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2922 fi
2923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2924 ac_c_werror_flag=$ac_save_c_werror_flag
2925 fi
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2927 $as_echo "$ac_cv_prog_cc_g" >&6; }
2928 if test "$ac_test_CFLAGS" = set; then
2929 CFLAGS=$ac_save_CFLAGS
2930 elif test $ac_cv_prog_cc_g = yes; then
2931 if test "$GCC" = yes; then
2932 CFLAGS="-g -O2"
2933 else
2934 CFLAGS="-g"
2935 fi
2936 else
2937 if test "$GCC" = yes; then
2938 CFLAGS="-O2"
2939 else
2940 CFLAGS=
2941 fi
2942 fi
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2944 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2945 if ${ac_cv_prog_cc_c89+:} false; then :
2946 $as_echo_n "(cached) " >&6
2947 else
2948 ac_cv_prog_cc_c89=no
2949 ac_save_CC=$CC
2950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2951 /* end confdefs.h. */
2952 #include <stdarg.h>
2953 #include <stdio.h>
2954 #include <sys/types.h>
2955 #include <sys/stat.h>
2956 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2957 struct buf { int x; };
2958 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2959 static char *e (p, i)
2960 char **p;
2961 int i;
2962 {
2963 return p[i];
2964 }
2965 static char *f (char * (*g) (char **, int), char **p, ...)
2966 {
2967 char *s;
2968 va_list v;
2969 va_start (v,p);
2970 s = g (p, va_arg (v,int));
2971 va_end (v);
2972 return s;
2973 }
2974
2975 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2976 function prototypes and stuff, but not '\xHH' hex character constants.
2977 These don't provoke an error unfortunately, instead are silently treated
2978 as 'x'. The following induces an error, until -std is added to get
2979 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2980 array size at least. It's necessary to write '\x00'==0 to get something
2981 that's true only with -std. */
2982 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2983
2984 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2985 inside strings and character constants. */
2986 #define FOO(x) 'x'
2987 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2988
2989 int test (int i, double x);
2990 struct s1 {int (*f) (int a);};
2991 struct s2 {int (*f) (double a);};
2992 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2993 int argc;
2994 char **argv;
2995 int
2996 main ()
2997 {
2998 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2999 ;
3000 return 0;
3001 }
3002 _ACEOF
3003 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3004 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3005 do
3006 CC="$ac_save_CC $ac_arg"
3007 if ac_fn_c_try_compile "$LINENO"; then :
3008 ac_cv_prog_cc_c89=$ac_arg
3009 fi
3010 rm -f core conftest.err conftest.$ac_objext
3011 test "x$ac_cv_prog_cc_c89" != "xno" && break
3012 done
3013 rm -f conftest.$ac_ext
3014 CC=$ac_save_CC
3015
3016 fi
3017 # AC_CACHE_VAL
3018 case "x$ac_cv_prog_cc_c89" in
3019 x)
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3021 $as_echo "none needed" >&6; } ;;
3022 xno)
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3024 $as_echo "unsupported" >&6; } ;;
3025 *)
3026 CC="$CC $ac_cv_prog_cc_c89"
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3028 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3029 esac
3030 if test "x$ac_cv_prog_cc_c89" != xno; then :
3031
3032 fi
3033
3034 ac_ext=c
3035 ac_cpp='$CPP $CPPFLAGS'
3036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3039
3040
3041 ac_ext=c
3042 ac_cpp='$CPP $CPPFLAGS'
3043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3047 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3048 # On Suns, sometimes $CPP names a directory.
3049 if test -n "$CPP" && test -d "$CPP"; then
3050 CPP=
3051 fi
3052 if test -z "$CPP"; then
3053 if ${ac_cv_prog_CPP+:} false; then :
3054 $as_echo_n "(cached) " >&6
3055 else
3056 # Double quotes because CPP needs to be expanded
3057 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3058 do
3059 ac_preproc_ok=false
3060 for ac_c_preproc_warn_flag in '' yes
3061 do
3062 # Use a header file that comes with gcc, so configuring glibc
3063 # with a fresh cross-compiler works.
3064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3065 # <limits.h> exists even on freestanding compilers.
3066 # On the NeXT, cc -E runs the code through the compiler's parser,
3067 # not just through cpp. "Syntax error" is here to catch this case.
3068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3069 /* end confdefs.h. */
3070 #ifdef __STDC__
3071 # include <limits.h>
3072 #else
3073 # include <assert.h>
3074 #endif
3075 Syntax error
3076 _ACEOF
3077 if ac_fn_c_try_cpp "$LINENO"; then :
3078
3079 else
3080 # Broken: fails on valid input.
3081 continue
3082 fi
3083 rm -f conftest.err conftest.i conftest.$ac_ext
3084
3085 # OK, works on sane cases. Now check whether nonexistent headers
3086 # can be detected and how.
3087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3088 /* end confdefs.h. */
3089 #include <ac_nonexistent.h>
3090 _ACEOF
3091 if ac_fn_c_try_cpp "$LINENO"; then :
3092 # Broken: success on invalid input.
3093 continue
3094 else
3095 # Passes both tests.
3096 ac_preproc_ok=:
3097 break
3098 fi
3099 rm -f conftest.err conftest.i conftest.$ac_ext
3100
3101 done
3102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3103 rm -f conftest.i conftest.err conftest.$ac_ext
3104 if $ac_preproc_ok; then :
3105 break
3106 fi
3107
3108 done
3109 ac_cv_prog_CPP=$CPP
3110
3111 fi
3112 CPP=$ac_cv_prog_CPP
3113 else
3114 ac_cv_prog_CPP=$CPP
3115 fi
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3117 $as_echo "$CPP" >&6; }
3118 ac_preproc_ok=false
3119 for ac_c_preproc_warn_flag in '' yes
3120 do
3121 # Use a header file that comes with gcc, so configuring glibc
3122 # with a fresh cross-compiler works.
3123 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3124 # <limits.h> exists even on freestanding compilers.
3125 # On the NeXT, cc -E runs the code through the compiler's parser,
3126 # not just through cpp. "Syntax error" is here to catch this case.
3127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3128 /* end confdefs.h. */
3129 #ifdef __STDC__
3130 # include <limits.h>
3131 #else
3132 # include <assert.h>
3133 #endif
3134 Syntax error
3135 _ACEOF
3136 if ac_fn_c_try_cpp "$LINENO"; then :
3137
3138 else
3139 # Broken: fails on valid input.
3140 continue
3141 fi
3142 rm -f conftest.err conftest.i conftest.$ac_ext
3143
3144 # OK, works on sane cases. Now check whether nonexistent headers
3145 # can be detected and how.
3146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3147 /* end confdefs.h. */
3148 #include <ac_nonexistent.h>
3149 _ACEOF
3150 if ac_fn_c_try_cpp "$LINENO"; then :
3151 # Broken: success on invalid input.
3152 continue
3153 else
3154 # Passes both tests.
3155 ac_preproc_ok=:
3156 break
3157 fi
3158 rm -f conftest.err conftest.i conftest.$ac_ext
3159
3160 done
3161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3162 rm -f conftest.i conftest.err conftest.$ac_ext
3163 if $ac_preproc_ok; then :
3164
3165 else
3166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3168 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3169 See \`config.log' for more details" "$LINENO" 5; }
3170 fi
3171
3172 ac_ext=c
3173 ac_cpp='$CPP $CPPFLAGS'
3174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3177
3178
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3180 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3181 if ${ac_cv_path_GREP+:} false; then :
3182 $as_echo_n "(cached) " >&6
3183 else
3184 if test -z "$GREP"; then
3185 ac_path_GREP_found=false
3186 # Loop through the user's path and test for each of PROGNAME-LIST
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3189 do
3190 IFS=$as_save_IFS
3191 test -z "$as_dir" && as_dir=.
3192 for ac_prog in grep ggrep; do
3193 for ac_exec_ext in '' $ac_executable_extensions; do
3194 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3195 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3196 # Check for GNU ac_path_GREP and select it if it is found.
3197 # Check for GNU $ac_path_GREP
3198 case `"$ac_path_GREP" --version 2>&1` in
3199 *GNU*)
3200 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3201 *)
3202 ac_count=0
3203 $as_echo_n 0123456789 >"conftest.in"
3204 while :
3205 do
3206 cat "conftest.in" "conftest.in" >"conftest.tmp"
3207 mv "conftest.tmp" "conftest.in"
3208 cp "conftest.in" "conftest.nl"
3209 $as_echo 'GREP' >> "conftest.nl"
3210 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3211 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3212 as_fn_arith $ac_count + 1 && ac_count=$as_val
3213 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3214 # Best one so far, save it but keep looking for a better one
3215 ac_cv_path_GREP="$ac_path_GREP"
3216 ac_path_GREP_max=$ac_count
3217 fi
3218 # 10*(2^10) chars as input seems more than enough
3219 test $ac_count -gt 10 && break
3220 done
3221 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3222 esac
3223
3224 $ac_path_GREP_found && break 3
3225 done
3226 done
3227 done
3228 IFS=$as_save_IFS
3229 if test -z "$ac_cv_path_GREP"; then
3230 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3231 fi
3232 else
3233 ac_cv_path_GREP=$GREP
3234 fi
3235
3236 fi
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3238 $as_echo "$ac_cv_path_GREP" >&6; }
3239 GREP="$ac_cv_path_GREP"
3240
3241
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3243 $as_echo_n "checking for egrep... " >&6; }
3244 if ${ac_cv_path_EGREP+:} false; then :
3245 $as_echo_n "(cached) " >&6
3246 else
3247 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3248 then ac_cv_path_EGREP="$GREP -E"
3249 else
3250 if test -z "$EGREP"; then
3251 ac_path_EGREP_found=false
3252 # Loop through the user's path and test for each of PROGNAME-LIST
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3255 do
3256 IFS=$as_save_IFS
3257 test -z "$as_dir" && as_dir=.
3258 for ac_prog in egrep; do
3259 for ac_exec_ext in '' $ac_executable_extensions; do
3260 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3261 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3262 # Check for GNU ac_path_EGREP and select it if it is found.
3263 # Check for GNU $ac_path_EGREP
3264 case `"$ac_path_EGREP" --version 2>&1` in
3265 *GNU*)
3266 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3267 *)
3268 ac_count=0
3269 $as_echo_n 0123456789 >"conftest.in"
3270 while :
3271 do
3272 cat "conftest.in" "conftest.in" >"conftest.tmp"
3273 mv "conftest.tmp" "conftest.in"
3274 cp "conftest.in" "conftest.nl"
3275 $as_echo 'EGREP' >> "conftest.nl"
3276 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3277 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3278 as_fn_arith $ac_count + 1 && ac_count=$as_val
3279 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3280 # Best one so far, save it but keep looking for a better one
3281 ac_cv_path_EGREP="$ac_path_EGREP"
3282 ac_path_EGREP_max=$ac_count
3283 fi
3284 # 10*(2^10) chars as input seems more than enough
3285 test $ac_count -gt 10 && break
3286 done
3287 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3288 esac
3289
3290 $ac_path_EGREP_found && break 3
3291 done
3292 done
3293 done
3294 IFS=$as_save_IFS
3295 if test -z "$ac_cv_path_EGREP"; then
3296 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3297 fi
3298 else
3299 ac_cv_path_EGREP=$EGREP
3300 fi
3301
3302 fi
3303 fi
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3305 $as_echo "$ac_cv_path_EGREP" >&6; }
3306 EGREP="$ac_cv_path_EGREP"
3307
3308
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3310 $as_echo_n "checking for ANSI C header files... " >&6; }
3311 if ${ac_cv_header_stdc+:} false; then :
3312 $as_echo_n "(cached) " >&6
3313 else
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h. */
3316 #include <stdlib.h>
3317 #include <stdarg.h>
3318 #include <string.h>
3319 #include <float.h>
3320
3321 int
3322 main ()
3323 {
3324
3325 ;
3326 return 0;
3327 }
3328 _ACEOF
3329 if ac_fn_c_try_compile "$LINENO"; then :
3330 ac_cv_header_stdc=yes
3331 else
3332 ac_cv_header_stdc=no
3333 fi
3334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335
3336 if test $ac_cv_header_stdc = yes; then
3337 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339 /* end confdefs.h. */
3340 #include <string.h>
3341
3342 _ACEOF
3343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3344 $EGREP "memchr" >/dev/null 2>&1; then :
3345
3346 else
3347 ac_cv_header_stdc=no
3348 fi
3349 rm -f conftest*
3350
3351 fi
3352
3353 if test $ac_cv_header_stdc = yes; then
3354 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h. */
3357 #include <stdlib.h>
3358
3359 _ACEOF
3360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3361 $EGREP "free" >/dev/null 2>&1; then :
3362
3363 else
3364 ac_cv_header_stdc=no
3365 fi
3366 rm -f conftest*
3367
3368 fi
3369
3370 if test $ac_cv_header_stdc = yes; then
3371 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3372 if test "$cross_compiling" = yes; then :
3373 :
3374 else
3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376 /* end confdefs.h. */
3377 #include <ctype.h>
3378 #include <stdlib.h>
3379 #if ((' ' & 0x0FF) == 0x020)
3380 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3381 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3382 #else
3383 # define ISLOWER(c) \
3384 (('a' <= (c) && (c) <= 'i') \
3385 || ('j' <= (c) && (c) <= 'r') \
3386 || ('s' <= (c) && (c) <= 'z'))
3387 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3388 #endif
3389
3390 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3391 int
3392 main ()
3393 {
3394 int i;
3395 for (i = 0; i < 256; i++)
3396 if (XOR (islower (i), ISLOWER (i))
3397 || toupper (i) != TOUPPER (i))
3398 return 2;
3399 return 0;
3400 }
3401 _ACEOF
3402 if ac_fn_c_try_run "$LINENO"; then :
3403
3404 else
3405 ac_cv_header_stdc=no
3406 fi
3407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3408 conftest.$ac_objext conftest.beam conftest.$ac_ext
3409 fi
3410
3411 fi
3412 fi
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3414 $as_echo "$ac_cv_header_stdc" >&6; }
3415 if test $ac_cv_header_stdc = yes; then
3416
3417 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3418
3419 fi
3420
3421 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3422 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3423 inttypes.h stdint.h unistd.h
3424 do :
3425 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3426 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3427 "
3428 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3429 cat >>confdefs.h <<_ACEOF
3430 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3431 _ACEOF
3432
3433 fi
3434
3435 done
3436
3437
3438
3439 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3440 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3441 MINIX=yes
3442 else
3443 MINIX=
3444 fi
3445
3446
3447 if test "$MINIX" = yes; then
3448
3449 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3450
3451
3452 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3453
3454
3455 $as_echo "#define _MINIX 1" >>confdefs.h
3456
3457 fi
3458
3459
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3461 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3462 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3463 $as_echo_n "(cached) " >&6
3464 else
3465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466 /* end confdefs.h. */
3467
3468 # define __EXTENSIONS__ 1
3469 $ac_includes_default
3470 int
3471 main ()
3472 {
3473
3474 ;
3475 return 0;
3476 }
3477 _ACEOF
3478 if ac_fn_c_try_compile "$LINENO"; then :
3479 ac_cv_safe_to_define___extensions__=yes
3480 else
3481 ac_cv_safe_to_define___extensions__=no
3482 fi
3483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3484 fi
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3486 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3487 test $ac_cv_safe_to_define___extensions__ = yes &&
3488 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3489
3490 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3491
3492 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3493
3494 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3495
3496 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3497
3498
3499
3500 # Initialize Automake
3501 am__api_version='1.11'
3502
3503 ac_aux_dir=
3504 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3505 if test -f "$ac_dir/install-sh"; then
3506 ac_aux_dir=$ac_dir
3507 ac_install_sh="$ac_aux_dir/install-sh -c"
3508 break
3509 elif test -f "$ac_dir/install.sh"; then
3510 ac_aux_dir=$ac_dir
3511 ac_install_sh="$ac_aux_dir/install.sh -c"
3512 break
3513 elif test -f "$ac_dir/shtool"; then
3514 ac_aux_dir=$ac_dir
3515 ac_install_sh="$ac_aux_dir/shtool install -c"
3516 break
3517 fi
3518 done
3519 if test -z "$ac_aux_dir"; then
3520 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3521 fi
3522
3523 # These three variables are undocumented and unsupported,
3524 # and are intended to be withdrawn in a future Autoconf release.
3525 # They can cause serious problems if a builder's source tree is in a directory
3526 # whose full name contains unusual characters.
3527 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3528 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3529 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3530
3531
3532 # Find a good install program. We prefer a C program (faster),
3533 # so one script is as good as another. But avoid the broken or
3534 # incompatible versions:
3535 # SysV /etc/install, /usr/sbin/install
3536 # SunOS /usr/etc/install
3537 # IRIX /sbin/install
3538 # AIX /bin/install
3539 # AmigaOS /C/install, which installs bootblocks on floppy discs
3540 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3541 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3542 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3543 # OS/2's system install, which has a completely different semantic
3544 # ./install, which can be erroneously created by make from ./install.sh.
3545 # Reject install programs that cannot install multiple files.
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3547 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3548 if test -z "$INSTALL"; then
3549 if ${ac_cv_path_install+:} false; then :
3550 $as_echo_n "(cached) " >&6
3551 else
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 for as_dir in $PATH
3554 do
3555 IFS=$as_save_IFS
3556 test -z "$as_dir" && as_dir=.
3557 # Account for people who put trailing slashes in PATH elements.
3558 case $as_dir/ in #((
3559 ./ | .// | /[cC]/* | \
3560 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3561 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3562 /usr/ucb/* ) ;;
3563 *)
3564 # OSF1 and SCO ODT 3.0 have their own names for install.
3565 # Don't use installbsd from OSF since it installs stuff as root
3566 # by default.
3567 for ac_prog in ginstall scoinst install; do
3568 for ac_exec_ext in '' $ac_executable_extensions; do
3569 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3570 if test $ac_prog = install &&
3571 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3572 # AIX install. It has an incompatible calling convention.
3573 :
3574 elif test $ac_prog = install &&
3575 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3576 # program-specific install script used by HP pwplus--don't use.
3577 :
3578 else
3579 rm -rf conftest.one conftest.two conftest.dir
3580 echo one > conftest.one
3581 echo two > conftest.two
3582 mkdir conftest.dir
3583 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3584 test -s conftest.one && test -s conftest.two &&
3585 test -s conftest.dir/conftest.one &&
3586 test -s conftest.dir/conftest.two
3587 then
3588 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3589 break 3
3590 fi
3591 fi
3592 fi
3593 done
3594 done
3595 ;;
3596 esac
3597
3598 done
3599 IFS=$as_save_IFS
3600
3601 rm -rf conftest.one conftest.two conftest.dir
3602
3603 fi
3604 if test "${ac_cv_path_install+set}" = set; then
3605 INSTALL=$ac_cv_path_install
3606 else
3607 # As a last resort, use the slow shell script. Don't cache a
3608 # value for INSTALL within a source directory, because that will
3609 # break other packages using the cache if that directory is
3610 # removed, or if the value is a relative name.
3611 INSTALL=$ac_install_sh
3612 fi
3613 fi
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3615 $as_echo "$INSTALL" >&6; }
3616
3617 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3618 # It thinks the first close brace ends the variable substitution.
3619 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3620
3621 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3622
3623 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3624
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3626 $as_echo_n "checking whether build environment is sane... " >&6; }
3627 # Just in case
3628 sleep 1
3629 echo timestamp > conftest.file
3630 # Reject unsafe characters in $srcdir or the absolute working directory
3631 # name. Accept space and tab only in the latter.
3632 am_lf='
3633 '
3634 case `pwd` in
3635 *[\\\"\#\$\&\'\`$am_lf]*)
3636 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3637 esac
3638 case $srcdir in
3639 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3640 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3641 esac
3642
3643 # Do `set' in a subshell so we don't clobber the current shell's
3644 # arguments. Must try -L first in case configure is actually a
3645 # symlink; some systems play weird games with the mod time of symlinks
3646 # (eg FreeBSD returns the mod time of the symlink's containing
3647 # directory).
3648 if (
3649 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3650 if test "$*" = "X"; then
3651 # -L didn't work.
3652 set X `ls -t "$srcdir/configure" conftest.file`
3653 fi
3654 rm -f conftest.file
3655 if test "$*" != "X $srcdir/configure conftest.file" \
3656 && test "$*" != "X conftest.file $srcdir/configure"; then
3657
3658 # If neither matched, then we have a broken ls. This can happen
3659 # if, for instance, CONFIG_SHELL is bash and it inherits a
3660 # broken ls alias from the environment. This has actually
3661 # happened. Such a system could not be considered "sane".
3662 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3663 alias in your environment" "$LINENO" 5
3664 fi
3665
3666 test "$2" = conftest.file
3667 )
3668 then
3669 # Ok.
3670 :
3671 else
3672 as_fn_error $? "newly created file is older than distributed files!
3673 Check your system clock" "$LINENO" 5
3674 fi
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3676 $as_echo "yes" >&6; }
3677 test "$program_prefix" != NONE &&
3678 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3679 # Use a double $ so make ignores it.
3680 test "$program_suffix" != NONE &&
3681 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3682 # Double any \ or $.
3683 # By default was `s,x,x', remove it if useless.
3684 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3685 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3686
3687 # expand $ac_aux_dir to an absolute path
3688 am_aux_dir=`cd $ac_aux_dir && pwd`
3689
3690 if test x"${MISSING+set}" != xset; then
3691 case $am_aux_dir in
3692 *\ * | *\ *)
3693 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3694 *)
3695 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3696 esac
3697 fi
3698 # Use eval to expand $SHELL
3699 if eval "$MISSING --run true"; then
3700 am_missing_run="$MISSING --run "
3701 else
3702 am_missing_run=
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3704 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3705 fi
3706
3707 if test x"${install_sh}" != xset; then
3708 case $am_aux_dir in
3709 *\ * | *\ *)
3710 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3711 *)
3712 install_sh="\${SHELL} $am_aux_dir/install-sh"
3713 esac
3714 fi
3715
3716 # Installed binaries are usually stripped using `strip' when the user
3717 # run `make install-strip'. However `strip' might not be the right
3718 # tool to use in cross-compilation environments, therefore Automake
3719 # will honor the `STRIP' environment variable to overrule this program.
3720 if test "$cross_compiling" != no; then
3721 if test -n "$ac_tool_prefix"; then
3722 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3723 set dummy ${ac_tool_prefix}strip; ac_word=$2
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3725 $as_echo_n "checking for $ac_word... " >&6; }
3726 if ${ac_cv_prog_STRIP+:} false; then :
3727 $as_echo_n "(cached) " >&6
3728 else
3729 if test -n "$STRIP"; then
3730 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3731 else
3732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 for as_dir in $PATH
3734 do
3735 IFS=$as_save_IFS
3736 test -z "$as_dir" && as_dir=.
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3739 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3741 break 2
3742 fi
3743 done
3744 done
3745 IFS=$as_save_IFS
3746
3747 fi
3748 fi
3749 STRIP=$ac_cv_prog_STRIP
3750 if test -n "$STRIP"; then
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3752 $as_echo "$STRIP" >&6; }
3753 else
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755 $as_echo "no" >&6; }
3756 fi
3757
3758
3759 fi
3760 if test -z "$ac_cv_prog_STRIP"; then
3761 ac_ct_STRIP=$STRIP
3762 # Extract the first word of "strip", so it can be a program name with args.
3763 set dummy strip; ac_word=$2
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765 $as_echo_n "checking for $ac_word... " >&6; }
3766 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3767 $as_echo_n "(cached) " >&6
3768 else
3769 if test -n "$ac_ct_STRIP"; then
3770 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3771 else
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 for as_dir in $PATH
3774 do
3775 IFS=$as_save_IFS
3776 test -z "$as_dir" && as_dir=.
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3779 ac_cv_prog_ac_ct_STRIP="strip"
3780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 break 2
3782 fi
3783 done
3784 done
3785 IFS=$as_save_IFS
3786
3787 fi
3788 fi
3789 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3790 if test -n "$ac_ct_STRIP"; then
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3792 $as_echo "$ac_ct_STRIP" >&6; }
3793 else
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795 $as_echo "no" >&6; }
3796 fi
3797
3798 if test "x$ac_ct_STRIP" = x; then
3799 STRIP=":"
3800 else
3801 case $cross_compiling:$ac_tool_warned in
3802 yes:)
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3805 ac_tool_warned=yes ;;
3806 esac
3807 STRIP=$ac_ct_STRIP
3808 fi
3809 else
3810 STRIP="$ac_cv_prog_STRIP"
3811 fi
3812
3813 fi
3814 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3815
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3817 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3818 if test -z "$MKDIR_P"; then
3819 if ${ac_cv_path_mkdir+:} false; then :
3820 $as_echo_n "(cached) " >&6
3821 else
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3824 do
3825 IFS=$as_save_IFS
3826 test -z "$as_dir" && as_dir=.
3827 for ac_prog in mkdir gmkdir; do
3828 for ac_exec_ext in '' $ac_executable_extensions; do
3829 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3830 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3831 'mkdir (GNU coreutils) '* | \
3832 'mkdir (coreutils) '* | \
3833 'mkdir (fileutils) '4.1*)
3834 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3835 break 3;;
3836 esac
3837 done
3838 done
3839 done
3840 IFS=$as_save_IFS
3841
3842 fi
3843
3844 test -d ./--version && rmdir ./--version
3845 if test "${ac_cv_path_mkdir+set}" = set; then
3846 MKDIR_P="$ac_cv_path_mkdir -p"
3847 else
3848 # As a last resort, use the slow shell script. Don't cache a
3849 # value for MKDIR_P within a source directory, because that will
3850 # break other packages using the cache if that directory is
3851 # removed, or if the value is a relative name.
3852 MKDIR_P="$ac_install_sh -d"
3853 fi
3854 fi
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3856 $as_echo "$MKDIR_P" >&6; }
3857
3858 mkdir_p="$MKDIR_P"
3859 case $mkdir_p in
3860 [\\/$]* | ?:[\\/]*) ;;
3861 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3862 esac
3863
3864 for ac_prog in gawk mawk nawk awk
3865 do
3866 # Extract the first word of "$ac_prog", so it can be a program name with args.
3867 set dummy $ac_prog; ac_word=$2
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3869 $as_echo_n "checking for $ac_word... " >&6; }
3870 if ${ac_cv_prog_AWK+:} false; then :
3871 $as_echo_n "(cached) " >&6
3872 else
3873 if test -n "$AWK"; then
3874 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3875 else
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 for as_dir in $PATH
3878 do
3879 IFS=$as_save_IFS
3880 test -z "$as_dir" && as_dir=.
3881 for ac_exec_ext in '' $ac_executable_extensions; do
3882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3883 ac_cv_prog_AWK="$ac_prog"
3884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3885 break 2
3886 fi
3887 done
3888 done
3889 IFS=$as_save_IFS
3890
3891 fi
3892 fi
3893 AWK=$ac_cv_prog_AWK
3894 if test -n "$AWK"; then
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3896 $as_echo "$AWK" >&6; }
3897 else
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3899 $as_echo "no" >&6; }
3900 fi
3901
3902
3903 test -n "$AWK" && break
3904 done
3905
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3907 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3908 set x ${MAKE-make}
3909 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3910 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3911 $as_echo_n "(cached) " >&6
3912 else
3913 cat >conftest.make <<\_ACEOF
3914 SHELL = /bin/sh
3915 all:
3916 @echo '@@@%%%=$(MAKE)=@@@%%%'
3917 _ACEOF
3918 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3919 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3920 *@@@%%%=?*=@@@%%%*)
3921 eval ac_cv_prog_make_${ac_make}_set=yes;;
3922 *)
3923 eval ac_cv_prog_make_${ac_make}_set=no;;
3924 esac
3925 rm -f conftest.make
3926 fi
3927 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3929 $as_echo "yes" >&6; }
3930 SET_MAKE=
3931 else
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3933 $as_echo "no" >&6; }
3934 SET_MAKE="MAKE=${MAKE-make}"
3935 fi
3936
3937 rm -rf .tst 2>/dev/null
3938 mkdir .tst 2>/dev/null
3939 if test -d .tst; then
3940 am__leading_dot=.
3941 else
3942 am__leading_dot=_
3943 fi
3944 rmdir .tst 2>/dev/null
3945
3946 DEPDIR="${am__leading_dot}deps"
3947
3948 ac_config_commands="$ac_config_commands depfiles"
3949
3950
3951 am_make=${MAKE-make}
3952 cat > confinc << 'END'
3953 am__doit:
3954 @echo this is the am__doit target
3955 .PHONY: am__doit
3956 END
3957 # If we don't find an include directive, just comment out the code.
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3959 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3960 am__include="#"
3961 am__quote=
3962 _am_result=none
3963 # First try GNU make style include.
3964 echo "include confinc" > confmf
3965 # Ignore all kinds of additional output from `make'.
3966 case `$am_make -s -f confmf 2> /dev/null` in #(
3967 *the\ am__doit\ target*)
3968 am__include=include
3969 am__quote=
3970 _am_result=GNU
3971 ;;
3972 esac
3973 # Now try BSD make style include.
3974 if test "$am__include" = "#"; then
3975 echo '.include "confinc"' > confmf
3976 case `$am_make -s -f confmf 2> /dev/null` in #(
3977 *the\ am__doit\ target*)
3978 am__include=.include
3979 am__quote="\""
3980 _am_result=BSD
3981 ;;
3982 esac
3983 fi
3984
3985
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3987 $as_echo "$_am_result" >&6; }
3988 rm -f confinc confmf
3989
3990 # Check whether --enable-dependency-tracking was given.
3991 if test "${enable_dependency_tracking+set}" = set; then :
3992 enableval=$enable_dependency_tracking;
3993 fi
3994
3995 if test "x$enable_dependency_tracking" != xno; then
3996 am_depcomp="$ac_aux_dir/depcomp"
3997 AMDEPBACKSLASH='\'
3998 fi
3999 if test "x$enable_dependency_tracking" != xno; then
4000 AMDEP_TRUE=
4001 AMDEP_FALSE='#'
4002 else
4003 AMDEP_TRUE='#'
4004 AMDEP_FALSE=
4005 fi
4006
4007
4008 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4009 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4010 # is not polluted with repeated "-I."
4011 am__isrc=' -I$(srcdir)'
4012 # test to see if srcdir already configured
4013 if test -f $srcdir/config.status; then
4014 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4015 fi
4016 fi
4017
4018 # test whether we have cygpath
4019 if test -z "$CYGPATH_W"; then
4020 if (cygpath --version) >/dev/null 2>/dev/null; then
4021 CYGPATH_W='cygpath -w'
4022 else
4023 CYGPATH_W=echo
4024 fi
4025 fi
4026
4027
4028 # Define the identity of the package.
4029 PACKAGE='xload'
4030 VERSION='1.1.1'
4031
4032
4033 cat >>confdefs.h <<_ACEOF
4034 #define PACKAGE "$PACKAGE"
4035 _ACEOF
4036
4037
4038 cat >>confdefs.h <<_ACEOF
4039 #define VERSION "$VERSION"
4040 _ACEOF
4041
4042 # Some tools Automake needs.
4043
4044 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4045
4046
4047 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4048
4049
4050 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4051
4052
4053 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4054
4055
4056 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4057
4058 # We need awk for the "check" target. The system "awk" is bad on
4059 # some platforms.
4060 # Always define AMTAR for backward compatibility.
4061
4062 AMTAR=${AMTAR-"${am_missing_run}tar"}
4063
4064 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4065
4066
4067
4068
4069 depcc="$CC" am_compiler_list=
4070
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4072 $as_echo_n "checking dependency style of $depcc... " >&6; }
4073 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4074 $as_echo_n "(cached) " >&6
4075 else
4076 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4077 # We make a subdir and do the tests there. Otherwise we can end up
4078 # making bogus files that we don't know about and never remove. For
4079 # instance it was reported that on HP-UX the gcc test will end up
4080 # making a dummy file named `D' -- because `-MD' means `put the output
4081 # in D'.
4082 mkdir conftest.dir
4083 # Copy depcomp to subdir because otherwise we won't find it if we're
4084 # using a relative directory.
4085 cp "$am_depcomp" conftest.dir
4086 cd conftest.dir
4087 # We will build objects and dependencies in a subdirectory because
4088 # it helps to detect inapplicable dependency modes. For instance
4089 # both Tru64's cc and ICC support -MD to output dependencies as a
4090 # side effect of compilation, but ICC will put the dependencies in
4091 # the current directory while Tru64 will put them in the object
4092 # directory.
4093 mkdir sub
4094
4095 am_cv_CC_dependencies_compiler_type=none
4096 if test "$am_compiler_list" = ""; then
4097 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4098 fi
4099 am__universal=false
4100 case " $depcc " in #(
4101 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4102 esac
4103
4104 for depmode in $am_compiler_list; do
4105 # Setup a source with many dependencies, because some compilers
4106 # like to wrap large dependency lists on column 80 (with \), and
4107 # we should not choose a depcomp mode which is confused by this.
4108 #
4109 # We need to recreate these files for each test, as the compiler may
4110 # overwrite some of them when testing with obscure command lines.
4111 # This happens at least with the AIX C compiler.
4112 : > sub/conftest.c
4113 for i in 1 2 3 4 5 6; do
4114 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4115 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4116 # Solaris 8's {/usr,}/bin/sh.
4117 touch sub/conftst$i.h
4118 done
4119 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4120
4121 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4122 # mode. It turns out that the SunPro C++ compiler does not properly
4123 # handle `-M -o', and we need to detect this. Also, some Intel
4124 # versions had trouble with output in subdirs
4125 am__obj=sub/conftest.${OBJEXT-o}
4126 am__minus_obj="-o $am__obj"
4127 case $depmode in
4128 gcc)
4129 # This depmode causes a compiler race in universal mode.
4130 test "$am__universal" = false || continue
4131 ;;
4132 nosideeffect)
4133 # after this tag, mechanisms are not by side-effect, so they'll
4134 # only be used when explicitly requested
4135 if test "x$enable_dependency_tracking" = xyes; then
4136 continue
4137 else
4138 break
4139 fi
4140 ;;
4141 msvisualcpp | msvcmsys)
4142 # This compiler won't grok `-c -o', but also, the minuso test has
4143 # not run yet. These depmodes are late enough in the game, and
4144 # so weak that their functioning should not be impacted.
4145 am__obj=conftest.${OBJEXT-o}
4146 am__minus_obj=
4147 ;;
4148 none) break ;;
4149 esac
4150 if depmode=$depmode \
4151 source=sub/conftest.c object=$am__obj \
4152 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4153 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4154 >/dev/null 2>conftest.err &&
4155 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4156 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4157 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4158 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4159 # icc doesn't choke on unknown options, it will just issue warnings
4160 # or remarks (even with -Werror). So we grep stderr for any message
4161 # that says an option was ignored or not supported.
4162 # When given -MP, icc 7.0 and 7.1 complain thusly:
4163 # icc: Command line warning: ignoring option '-M'; no argument required
4164 # The diagnosis changed in icc 8.0:
4165 # icc: Command line remark: option '-MP' not supported
4166 if (grep 'ignoring option' conftest.err ||
4167 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4168 am_cv_CC_dependencies_compiler_type=$depmode
4169 break
4170 fi
4171 fi
4172 done
4173
4174 cd ..
4175 rm -rf conftest.dir
4176 else
4177 am_cv_CC_dependencies_compiler_type=none
4178 fi
4179
4180 fi
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4182 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4183 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4184
4185 if
4186 test "x$enable_dependency_tracking" != xno \
4187 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4188 am__fastdepCC_TRUE=
4189 am__fastdepCC_FALSE='#'
4190 else
4191 am__fastdepCC_TRUE='#'
4192 am__fastdepCC_FALSE=
4193 fi
4194
4195
4196
4197
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4199 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4200 # Check whether --enable-maintainer-mode was given.
4201 if test "${enable_maintainer_mode+set}" = set; then :
4202 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4203 else
4204 USE_MAINTAINER_MODE=no
4205 fi
4206
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4208 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4209 if test $USE_MAINTAINER_MODE = yes; then
4210 MAINTAINER_MODE_TRUE=
4211 MAINTAINER_MODE_FALSE='#'
4212 else
4213 MAINTAINER_MODE_TRUE='#'
4214 MAINTAINER_MODE_FALSE=
4215 fi
4216
4217 MAINT=$MAINTAINER_MODE_TRUE
4218
4219
4220
4221 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4234 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4235 if ${ac_cv_prog_cc_c99+:} false; then :
4236 $as_echo_n "(cached) " >&6
4237 else
4238 ac_cv_prog_cc_c99=no
4239 ac_save_CC=$CC
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h. */
4242 #include <stdarg.h>
4243 #include <stdbool.h>
4244 #include <stdlib.h>
4245 #include <wchar.h>
4246 #include <stdio.h>
4247
4248 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4249 #define debug(...) fprintf (stderr, __VA_ARGS__)
4250 #define showlist(...) puts (#__VA_ARGS__)
4251 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4252 static void
4253 test_varargs_macros (void)
4254 {
4255 int x = 1234;
4256 int y = 5678;
4257 debug ("Flag");
4258 debug ("X = %d\n", x);
4259 showlist (The first, second, and third items.);
4260 report (x>y, "x is %d but y is %d", x, y);
4261 }
4262
4263 // Check long long types.
4264 #define BIG64 18446744073709551615ull
4265 #define BIG32 4294967295ul
4266 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4267 #if !BIG_OK
4268 your preprocessor is broken;
4269 #endif
4270 #if BIG_OK
4271 #else
4272 your preprocessor is broken;
4273 #endif
4274 static long long int bignum = -9223372036854775807LL;
4275 static unsigned long long int ubignum = BIG64;
4276
4277 struct incomplete_array
4278 {
4279 int datasize;
4280 double data[];
4281 };
4282
4283 struct named_init {
4284 int number;
4285 const wchar_t *name;
4286 double average;
4287 };
4288
4289 typedef const char *ccp;
4290
4291 static inline int
4292 test_restrict (ccp restrict text)
4293 {
4294 // See if C++-style comments work.
4295 // Iterate through items via the restricted pointer.
4296 // Also check for declarations in for loops.
4297 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4298 continue;
4299 return 0;
4300 }
4301
4302 // Check varargs and va_copy.
4303 static void
4304 test_varargs (const char *format, ...)
4305 {
4306 va_list args;
4307 va_start (args, format);
4308 va_list args_copy;
4309 va_copy (args_copy, args);
4310
4311 const char *str;
4312 int number;
4313 float fnumber;
4314
4315 while (*format)
4316 {
4317 switch (*format++)
4318 {
4319 case 's': // string
4320 str = va_arg (args_copy, const char *);
4321 break;
4322 case 'd': // int
4323 number = va_arg (args_copy, int);
4324 break;
4325 case 'f': // float
4326 fnumber = va_arg (args_copy, double);
4327 break;
4328 default:
4329 break;
4330 }
4331 }
4332 va_end (args_copy);
4333 va_end (args);
4334 }
4335
4336 int
4337 main ()
4338 {
4339
4340 // Check bool.
4341 _Bool success = false;
4342
4343 // Check restrict.
4344 if (test_restrict ("String literal") == 0)
4345 success = true;
4346 char *restrict newvar = "Another string";
4347
4348 // Check varargs.
4349 test_varargs ("s, d' f .", "string", 65, 34.234);
4350 test_varargs_macros ();
4351
4352 // Check flexible array members.
4353 struct incomplete_array *ia =
4354 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4355 ia->datasize = 10;
4356 for (int i = 0; i < ia->datasize; ++i)
4357 ia->data[i] = i * 1.234;
4358
4359 // Check named initializers.
4360 struct named_init ni = {
4361 .number = 34,
4362 .name = L"Test wide string",
4363 .average = 543.34343,
4364 };
4365
4366 ni.number = 58;
4367
4368 int dynamic_array[ni.number];
4369 dynamic_array[ni.number - 1] = 543;
4370
4371 // work around unused variable warnings
4372 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4373 || dynamic_array[ni.number - 1] != 543);
4374
4375 ;
4376 return 0;
4377 }
4378 _ACEOF
4379 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4380 do
4381 CC="$ac_save_CC $ac_arg"
4382 if ac_fn_c_try_compile "$LINENO"; then :
4383 ac_cv_prog_cc_c99=$ac_arg
4384 fi
4385 rm -f core conftest.err conftest.$ac_objext
4386 test "x$ac_cv_prog_cc_c99" != "xno" && break
4387 done
4388 rm -f conftest.$ac_ext
4389 CC=$ac_save_CC
4390
4391 fi
4392 # AC_CACHE_VAL
4393 case "x$ac_cv_prog_cc_c99" in
4394 x)
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4396 $as_echo "none needed" >&6; } ;;
4397 xno)
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4399 $as_echo "unsupported" >&6; } ;;
4400 *)
4401 CC="$CC $ac_cv_prog_cc_c99"
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4403 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4404 esac
4405 if test "x$ac_cv_prog_cc_c99" != xno; then :
4406
4407 fi
4408
4409
4410
4411
4412
4413
4414 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4415 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4416 CLANGCC="yes"
4417 else
4418 CLANGCC="no"
4419 fi
4420
4421 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4422 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4423 INTELCC="yes"
4424 else
4425 INTELCC="no"
4426 fi
4427
4428 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4429 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4430 SUNCC="yes"
4431 else
4432 SUNCC="no"
4433 fi
4434
4435
4436
4437
4438 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4439 if test -n "$ac_tool_prefix"; then
4440 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4441 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4443 $as_echo_n "checking for $ac_word... " >&6; }
4444 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4445 $as_echo_n "(cached) " >&6
4446 else
4447 case $PKG_CONFIG in
4448 [\\/]* | ?:[\\/]*)
4449 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4450 ;;
4451 *)
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH
4454 do
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4459 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 break 2
4462 fi
4463 done
4464 done
4465 IFS=$as_save_IFS
4466
4467 ;;
4468 esac
4469 fi
4470 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4471 if test -n "$PKG_CONFIG"; then
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4473 $as_echo "$PKG_CONFIG" >&6; }
4474 else
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476 $as_echo "no" >&6; }
4477 fi
4478
4479
4480 fi
4481 if test -z "$ac_cv_path_PKG_CONFIG"; then
4482 ac_pt_PKG_CONFIG=$PKG_CONFIG
4483 # Extract the first word of "pkg-config", so it can be a program name with args.
4484 set dummy pkg-config; ac_word=$2
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4486 $as_echo_n "checking for $ac_word... " >&6; }
4487 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4488 $as_echo_n "(cached) " >&6
4489 else
4490 case $ac_pt_PKG_CONFIG in
4491 [\\/]* | ?:[\\/]*)
4492 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4493 ;;
4494 *)
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 for as_dir in $PATH
4497 do
4498 IFS=$as_save_IFS
4499 test -z "$as_dir" && as_dir=.
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4502 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4504 break 2
4505 fi
4506 done
4507 done
4508 IFS=$as_save_IFS
4509
4510 ;;
4511 esac
4512 fi
4513 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4514 if test -n "$ac_pt_PKG_CONFIG"; then
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4516 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4517 else
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4519 $as_echo "no" >&6; }
4520 fi
4521
4522 if test "x$ac_pt_PKG_CONFIG" = x; then
4523 PKG_CONFIG=""
4524 else
4525 case $cross_compiling:$ac_tool_warned in
4526 yes:)
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4529 ac_tool_warned=yes ;;
4530 esac
4531 PKG_CONFIG=$ac_pt_PKG_CONFIG
4532 fi
4533 else
4534 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4535 fi
4536
4537 fi
4538 if test -n "$PKG_CONFIG"; then
4539 _pkg_min_version=0.9.0
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4541 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4542 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4544 $as_echo "yes" >&6; }
4545 else
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547 $as_echo "no" >&6; }
4548 PKG_CONFIG=""
4549 fi
4550
4551 fi
4552 # Make sure we can run config.sub.
4553 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4554 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4555
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4557 $as_echo_n "checking build system type... " >&6; }
4558 if ${ac_cv_build+:} false; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 ac_build_alias=$build_alias
4562 test "x$ac_build_alias" = x &&
4563 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4564 test "x$ac_build_alias" = x &&
4565 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4566 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4567 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4568
4569 fi
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4571 $as_echo "$ac_cv_build" >&6; }
4572 case $ac_cv_build in
4573 *-*-*) ;;
4574 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4575 esac
4576 build=$ac_cv_build
4577 ac_save_IFS=$IFS; IFS='-'
4578 set x $ac_cv_build
4579 shift
4580 build_cpu=$1
4581 build_vendor=$2
4582 shift; shift
4583 # Remember, the first character of IFS is used to create $*,
4584 # except with old shells:
4585 build_os=$*
4586 IFS=$ac_save_IFS
4587 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4588
4589
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4591 $as_echo_n "checking host system type... " >&6; }
4592 if ${ac_cv_host+:} false; then :
4593 $as_echo_n "(cached) " >&6
4594 else
4595 if test "x$host_alias" = x; then
4596 ac_cv_host=$ac_cv_build
4597 else
4598 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4599 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4600 fi
4601
4602 fi
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4604 $as_echo "$ac_cv_host" >&6; }
4605 case $ac_cv_host in
4606 *-*-*) ;;
4607 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4608 esac
4609 host=$ac_cv_host
4610 ac_save_IFS=$IFS; IFS='-'
4611 set x $ac_cv_host
4612 shift
4613 host_cpu=$1
4614 host_vendor=$2
4615 shift; shift
4616 # Remember, the first character of IFS is used to create $*,
4617 # except with old shells:
4618 host_os=$*
4619 IFS=$ac_save_IFS
4620 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4621
4622
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4624 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4625 if ${ac_cv_path_SED+:} false; then :
4626 $as_echo_n "(cached) " >&6
4627 else
4628 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4629 for ac_i in 1 2 3 4 5 6 7; do
4630 ac_script="$ac_script$as_nl$ac_script"
4631 done
4632 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4633 { ac_script=; unset ac_script;}
4634 if test -z "$SED"; then
4635 ac_path_SED_found=false
4636 # Loop through the user's path and test for each of PROGNAME-LIST
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH
4639 do
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
4642 for ac_prog in sed gsed; do
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4645 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4646 # Check for GNU ac_path_SED and select it if it is found.
4647 # Check for GNU $ac_path_SED
4648 case `"$ac_path_SED" --version 2>&1` in
4649 *GNU*)
4650 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4651 *)
4652 ac_count=0
4653 $as_echo_n 0123456789 >"conftest.in"
4654 while :
4655 do
4656 cat "conftest.in" "conftest.in" >"conftest.tmp"
4657 mv "conftest.tmp" "conftest.in"
4658 cp "conftest.in" "conftest.nl"
4659 $as_echo '' >> "conftest.nl"
4660 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4661 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4662 as_fn_arith $ac_count + 1 && ac_count=$as_val
4663 if test $ac_count -gt ${ac_path_SED_max-0}; then
4664 # Best one so far, save it but keep looking for a better one
4665 ac_cv_path_SED="$ac_path_SED"
4666 ac_path_SED_max=$ac_count
4667 fi
4668 # 10*(2^10) chars as input seems more than enough
4669 test $ac_count -gt 10 && break
4670 done
4671 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4672 esac
4673
4674 $ac_path_SED_found && break 3
4675 done
4676 done
4677 done
4678 IFS=$as_save_IFS
4679 if test -z "$ac_cv_path_SED"; then
4680 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4681 fi
4682 else
4683 ac_cv_path_SED=$SED
4684 fi
4685
4686 fi
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4688 $as_echo "$ac_cv_path_SED" >&6; }
4689 SED="$ac_cv_path_SED"
4690 rm -f conftest.sed
4691
4692
4693
4694
4695
4696
4697 # Check whether --enable-selective-werror was given.
4698 if test "${enable_selective_werror+set}" = set; then :
4699 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4700 else
4701 SELECTIVE_WERROR=yes
4702 fi
4703
4704
4705
4706
4707
4708 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4709 if test "x$SUNCC" = "xyes"; then
4710 BASE_CFLAGS="-v"
4711 else
4712 BASE_CFLAGS=""
4713 fi
4714
4715 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729 xorg_testset_save_CFLAGS="$CFLAGS"
4730
4731 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4734 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4735 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4736 $as_echo_n "(cached) " >&6
4737 else
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4740 int i;
4741 _ACEOF
4742 if ac_fn_c_try_compile "$LINENO"; then :
4743 xorg_cv_cc_flag_unknown_warning_option=yes
4744 else
4745 xorg_cv_cc_flag_unknown_warning_option=no
4746 fi
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748 fi
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4750 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4751 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4752 CFLAGS="$xorg_testset_save_CFLAGS"
4753 fi
4754
4755 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4758 fi
4759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4761 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4762 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4763 $as_echo_n "(cached) " >&6
4764 else
4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766 /* end confdefs.h. */
4767 int i;
4768 _ACEOF
4769 if ac_fn_c_try_compile "$LINENO"; then :
4770 xorg_cv_cc_flag_unused_command_line_argument=yes
4771 else
4772 xorg_cv_cc_flag_unused_command_line_argument=no
4773 fi
4774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4775 fi
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4777 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4778 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4779 CFLAGS="$xorg_testset_save_CFLAGS"
4780 fi
4781
4782 found="no"
4783
4784 if test $found = "no" ; then
4785 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4787 fi
4788
4789 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4791 fi
4792
4793 CFLAGS="$CFLAGS -Wall"
4794
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4796 $as_echo_n "checking if $CC supports-Wall... " >&6; }
4797 cacheid=xorg_cv_cc_flag__Wall
4798 if eval \${$cacheid+:} false; then :
4799 $as_echo_n "(cached) " >&6
4800 else
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4803 int i;
4804 int
4805 main ()
4806 {
4807
4808 ;
4809 return 0;
4810 }
4811 _ACEOF
4812 if ac_fn_c_try_link "$LINENO"; then :
4813 eval $cacheid=yes
4814 else
4815 eval $cacheid=no
4816 fi
4817 rm -f core conftest.err conftest.$ac_objext \
4818 conftest$ac_exeext conftest.$ac_ext
4819 fi
4820
4821
4822 CFLAGS="$xorg_testset_save_CFLAGS"
4823
4824 eval supported=\$$cacheid
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4826 $as_echo "$supported" >&6; }
4827 if test "$supported" = "yes" ; then
4828 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4829 found="yes"
4830 fi
4831 fi
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847 xorg_testset_save_CFLAGS="$CFLAGS"
4848
4849 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4852 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4853 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4857 /* end confdefs.h. */
4858 int i;
4859 _ACEOF
4860 if ac_fn_c_try_compile "$LINENO"; then :
4861 xorg_cv_cc_flag_unknown_warning_option=yes
4862 else
4863 xorg_cv_cc_flag_unknown_warning_option=no
4864 fi
4865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4866 fi
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4868 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4869 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4870 CFLAGS="$xorg_testset_save_CFLAGS"
4871 fi
4872
4873 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4876 fi
4877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4879 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4880 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4881 $as_echo_n "(cached) " >&6
4882 else
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4885 int i;
4886 _ACEOF
4887 if ac_fn_c_try_compile "$LINENO"; then :
4888 xorg_cv_cc_flag_unused_command_line_argument=yes
4889 else
4890 xorg_cv_cc_flag_unused_command_line_argument=no
4891 fi
4892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893 fi
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4895 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4896 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4897 CFLAGS="$xorg_testset_save_CFLAGS"
4898 fi
4899
4900 found="no"
4901
4902 if test $found = "no" ; then
4903 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4905 fi
4906
4907 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4909 fi
4910
4911 CFLAGS="$CFLAGS -Wpointer-arith"
4912
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
4914 $as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
4915 cacheid=xorg_cv_cc_flag__Wpointer_arith
4916 if eval \${$cacheid+:} false; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920 /* end confdefs.h. */
4921 int i;
4922 int
4923 main ()
4924 {
4925
4926 ;
4927 return 0;
4928 }
4929 _ACEOF
4930 if ac_fn_c_try_link "$LINENO"; then :
4931 eval $cacheid=yes
4932 else
4933 eval $cacheid=no
4934 fi
4935 rm -f core conftest.err conftest.$ac_objext \
4936 conftest$ac_exeext conftest.$ac_ext
4937 fi
4938
4939
4940 CFLAGS="$xorg_testset_save_CFLAGS"
4941
4942 eval supported=\$$cacheid
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4944 $as_echo "$supported" >&6; }
4945 if test "$supported" = "yes" ; then
4946 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4947 found="yes"
4948 fi
4949 fi
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965 xorg_testset_save_CFLAGS="$CFLAGS"
4966
4967 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4970 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4971 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4972 $as_echo_n "(cached) " >&6
4973 else
4974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975 /* end confdefs.h. */
4976 int i;
4977 _ACEOF
4978 if ac_fn_c_try_compile "$LINENO"; then :
4979 xorg_cv_cc_flag_unknown_warning_option=yes
4980 else
4981 xorg_cv_cc_flag_unknown_warning_option=no
4982 fi
4983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4984 fi
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4986 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4988 CFLAGS="$xorg_testset_save_CFLAGS"
4989 fi
4990
4991 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4994 fi
4995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4997 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4998 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4999 $as_echo_n "(cached) " >&6
5000 else
5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002 /* end confdefs.h. */
5003 int i;
5004 _ACEOF
5005 if ac_fn_c_try_compile "$LINENO"; then :
5006 xorg_cv_cc_flag_unused_command_line_argument=yes
5007 else
5008 xorg_cv_cc_flag_unused_command_line_argument=no
5009 fi
5010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5011 fi
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5013 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5014 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5015 CFLAGS="$xorg_testset_save_CFLAGS"
5016 fi
5017
5018 found="no"
5019
5020 if test $found = "no" ; then
5021 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5023 fi
5024
5025 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5027 fi
5028
5029 CFLAGS="$CFLAGS -Wmissing-declarations"
5030
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
5032 $as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
5033 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5034 if eval \${$cacheid+:} false; then :
5035 $as_echo_n "(cached) " >&6
5036 else
5037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038 /* end confdefs.h. */
5039 int i;
5040 int
5041 main ()
5042 {
5043
5044 ;
5045 return 0;
5046 }
5047 _ACEOF
5048 if ac_fn_c_try_link "$LINENO"; then :
5049 eval $cacheid=yes
5050 else
5051 eval $cacheid=no
5052 fi
5053 rm -f core conftest.err conftest.$ac_objext \
5054 conftest$ac_exeext conftest.$ac_ext
5055 fi
5056
5057
5058 CFLAGS="$xorg_testset_save_CFLAGS"
5059
5060 eval supported=\$$cacheid
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5062 $as_echo "$supported" >&6; }
5063 if test "$supported" = "yes" ; then
5064 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5065 found="yes"
5066 fi
5067 fi
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083 xorg_testset_save_CFLAGS="$CFLAGS"
5084
5085 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5088 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5089 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5090 $as_echo_n "(cached) " >&6
5091 else
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5094 int i;
5095 _ACEOF
5096 if ac_fn_c_try_compile "$LINENO"; then :
5097 xorg_cv_cc_flag_unknown_warning_option=yes
5098 else
5099 xorg_cv_cc_flag_unknown_warning_option=no
5100 fi
5101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5102 fi
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5104 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5106 CFLAGS="$xorg_testset_save_CFLAGS"
5107 fi
5108
5109 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5112 fi
5113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5115 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5116 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5117 $as_echo_n "(cached) " >&6
5118 else
5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h. */
5121 int i;
5122 _ACEOF
5123 if ac_fn_c_try_compile "$LINENO"; then :
5124 xorg_cv_cc_flag_unused_command_line_argument=yes
5125 else
5126 xorg_cv_cc_flag_unused_command_line_argument=no
5127 fi
5128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5129 fi
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5131 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5133 CFLAGS="$xorg_testset_save_CFLAGS"
5134 fi
5135
5136 found="no"
5137
5138 if test $found = "no" ; then
5139 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5141 fi
5142
5143 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5145 fi
5146
5147 CFLAGS="$CFLAGS -Wformat=2"
5148
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
5150 $as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
5151 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5152 if eval \${$cacheid+:} false; then :
5153 $as_echo_n "(cached) " >&6
5154 else
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5157 int i;
5158 int
5159 main ()
5160 {
5161
5162 ;
5163 return 0;
5164 }
5165 _ACEOF
5166 if ac_fn_c_try_link "$LINENO"; then :
5167 eval $cacheid=yes
5168 else
5169 eval $cacheid=no
5170 fi
5171 rm -f core conftest.err conftest.$ac_objext \
5172 conftest$ac_exeext conftest.$ac_ext
5173 fi
5174
5175
5176 CFLAGS="$xorg_testset_save_CFLAGS"
5177
5178 eval supported=\$$cacheid
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5180 $as_echo "$supported" >&6; }
5181 if test "$supported" = "yes" ; then
5182 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5183 found="yes"
5184 fi
5185 fi
5186
5187 if test $found = "no" ; then
5188 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5190 fi
5191
5192 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5194 fi
5195
5196 CFLAGS="$CFLAGS -Wformat"
5197
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
5199 $as_echo_n "checking if $CC supports-Wformat... " >&6; }
5200 cacheid=xorg_cv_cc_flag__Wformat
5201 if eval \${$cacheid+:} false; then :
5202 $as_echo_n "(cached) " >&6
5203 else
5204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205 /* end confdefs.h. */
5206 int i;
5207 int
5208 main ()
5209 {
5210
5211 ;
5212 return 0;
5213 }
5214 _ACEOF
5215 if ac_fn_c_try_link "$LINENO"; then :
5216 eval $cacheid=yes
5217 else
5218 eval $cacheid=no
5219 fi
5220 rm -f core conftest.err conftest.$ac_objext \
5221 conftest$ac_exeext conftest.$ac_ext
5222 fi
5223
5224
5225 CFLAGS="$xorg_testset_save_CFLAGS"
5226
5227 eval supported=\$$cacheid
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5229 $as_echo "$supported" >&6; }
5230 if test "$supported" = "yes" ; then
5231 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5232 found="yes"
5233 fi
5234 fi
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252 xorg_testset_save_CFLAGS="$CFLAGS"
5253
5254 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5257 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5258 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5259 $as_echo_n "(cached) " >&6
5260 else
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5263 int i;
5264 _ACEOF
5265 if ac_fn_c_try_compile "$LINENO"; then :
5266 xorg_cv_cc_flag_unknown_warning_option=yes
5267 else
5268 xorg_cv_cc_flag_unknown_warning_option=no
5269 fi
5270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271 fi
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5273 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5274 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5275 CFLAGS="$xorg_testset_save_CFLAGS"
5276 fi
5277
5278 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5281 fi
5282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5284 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5285 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5286 $as_echo_n "(cached) " >&6
5287 else
5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h. */
5290 int i;
5291 _ACEOF
5292 if ac_fn_c_try_compile "$LINENO"; then :
5293 xorg_cv_cc_flag_unused_command_line_argument=yes
5294 else
5295 xorg_cv_cc_flag_unused_command_line_argument=no
5296 fi
5297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5298 fi
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5300 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5301 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5302 CFLAGS="$xorg_testset_save_CFLAGS"
5303 fi
5304
5305 found="no"
5306
5307 if test $found = "no" ; then
5308 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5310 fi
5311
5312 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5314 fi
5315
5316 CFLAGS="$CFLAGS -Wstrict-prototypes"
5317
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5319 $as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5320 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5321 if eval \${$cacheid+:} false; then :
5322 $as_echo_n "(cached) " >&6
5323 else
5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325 /* end confdefs.h. */
5326 int i;
5327 int
5328 main ()
5329 {
5330
5331 ;
5332 return 0;
5333 }
5334 _ACEOF
5335 if ac_fn_c_try_link "$LINENO"; then :
5336 eval $cacheid=yes
5337 else
5338 eval $cacheid=no
5339 fi
5340 rm -f core conftest.err conftest.$ac_objext \
5341 conftest$ac_exeext conftest.$ac_ext
5342 fi
5343
5344
5345 CFLAGS="$xorg_testset_save_CFLAGS"
5346
5347 eval supported=\$$cacheid
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5349 $as_echo "$supported" >&6; }
5350 if test "$supported" = "yes" ; then
5351 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5352 found="yes"
5353 fi
5354 fi
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370 xorg_testset_save_CFLAGS="$CFLAGS"
5371
5372 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5373 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5375 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5376 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5377 $as_echo_n "(cached) " >&6
5378 else
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5381 int i;
5382 _ACEOF
5383 if ac_fn_c_try_compile "$LINENO"; then :
5384 xorg_cv_cc_flag_unknown_warning_option=yes
5385 else
5386 xorg_cv_cc_flag_unknown_warning_option=no
5387 fi
5388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389 fi
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5391 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5392 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5393 CFLAGS="$xorg_testset_save_CFLAGS"
5394 fi
5395
5396 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5399 fi
5400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5402 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5403 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5404 $as_echo_n "(cached) " >&6
5405 else
5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5408 int i;
5409 _ACEOF
5410 if ac_fn_c_try_compile "$LINENO"; then :
5411 xorg_cv_cc_flag_unused_command_line_argument=yes
5412 else
5413 xorg_cv_cc_flag_unused_command_line_argument=no
5414 fi
5415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5416 fi
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5418 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5419 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5420 CFLAGS="$xorg_testset_save_CFLAGS"
5421 fi
5422
5423 found="no"
5424
5425 if test $found = "no" ; then
5426 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5428 fi
5429
5430 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5432 fi
5433
5434 CFLAGS="$CFLAGS -Wmissing-prototypes"
5435
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5437 $as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5438 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5439 if eval \${$cacheid+:} false; then :
5440 $as_echo_n "(cached) " >&6
5441 else
5442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443 /* end confdefs.h. */
5444 int i;
5445 int
5446 main ()
5447 {
5448
5449 ;
5450 return 0;
5451 }
5452 _ACEOF
5453 if ac_fn_c_try_link "$LINENO"; then :
5454 eval $cacheid=yes
5455 else
5456 eval $cacheid=no
5457 fi
5458 rm -f core conftest.err conftest.$ac_objext \
5459 conftest$ac_exeext conftest.$ac_ext
5460 fi
5461
5462
5463 CFLAGS="$xorg_testset_save_CFLAGS"
5464
5465 eval supported=\$$cacheid
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5467 $as_echo "$supported" >&6; }
5468 if test "$supported" = "yes" ; then
5469 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5470 found="yes"
5471 fi
5472 fi
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488 xorg_testset_save_CFLAGS="$CFLAGS"
5489
5490 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5493 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5494 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5495 $as_echo_n "(cached) " >&6
5496 else
5497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498 /* end confdefs.h. */
5499 int i;
5500 _ACEOF
5501 if ac_fn_c_try_compile "$LINENO"; then :
5502 xorg_cv_cc_flag_unknown_warning_option=yes
5503 else
5504 xorg_cv_cc_flag_unknown_warning_option=no
5505 fi
5506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5507 fi
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5509 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5510 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5511 CFLAGS="$xorg_testset_save_CFLAGS"
5512 fi
5513
5514 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5517 fi
5518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5520 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5521 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h. */
5526 int i;
5527 _ACEOF
5528 if ac_fn_c_try_compile "$LINENO"; then :
5529 xorg_cv_cc_flag_unused_command_line_argument=yes
5530 else
5531 xorg_cv_cc_flag_unused_command_line_argument=no
5532 fi
5533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534 fi
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5536 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5537 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5538 CFLAGS="$xorg_testset_save_CFLAGS"
5539 fi
5540
5541 found="no"
5542
5543 if test $found = "no" ; then
5544 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5545 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5546 fi
5547
5548 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5550 fi
5551
5552 CFLAGS="$CFLAGS -Wnested-externs"
5553
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5555 $as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5556 cacheid=xorg_cv_cc_flag__Wnested_externs
5557 if eval \${$cacheid+:} false; then :
5558 $as_echo_n "(cached) " >&6
5559 else
5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5562 int i;
5563 int
5564 main ()
5565 {
5566
5567 ;
5568 return 0;
5569 }
5570 _ACEOF
5571 if ac_fn_c_try_link "$LINENO"; then :
5572 eval $cacheid=yes
5573 else
5574 eval $cacheid=no
5575 fi
5576 rm -f core conftest.err conftest.$ac_objext \
5577 conftest$ac_exeext conftest.$ac_ext
5578 fi
5579
5580
5581 CFLAGS="$xorg_testset_save_CFLAGS"
5582
5583 eval supported=\$$cacheid
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5585 $as_echo "$supported" >&6; }
5586 if test "$supported" = "yes" ; then
5587 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5588 found="yes"
5589 fi
5590 fi
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606 xorg_testset_save_CFLAGS="$CFLAGS"
5607
5608 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5611 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5612 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5613 $as_echo_n "(cached) " >&6
5614 else
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5617 int i;
5618 _ACEOF
5619 if ac_fn_c_try_compile "$LINENO"; then :
5620 xorg_cv_cc_flag_unknown_warning_option=yes
5621 else
5622 xorg_cv_cc_flag_unknown_warning_option=no
5623 fi
5624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5625 fi
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5627 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5628 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5629 CFLAGS="$xorg_testset_save_CFLAGS"
5630 fi
5631
5632 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5635 fi
5636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5638 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5639 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5640 $as_echo_n "(cached) " >&6
5641 else
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644 int i;
5645 _ACEOF
5646 if ac_fn_c_try_compile "$LINENO"; then :
5647 xorg_cv_cc_flag_unused_command_line_argument=yes
5648 else
5649 xorg_cv_cc_flag_unused_command_line_argument=no
5650 fi
5651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652 fi
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5654 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5655 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5656 CFLAGS="$xorg_testset_save_CFLAGS"
5657 fi
5658
5659 found="no"
5660
5661 if test $found = "no" ; then
5662 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5664 fi
5665
5666 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5668 fi
5669
5670 CFLAGS="$CFLAGS -Wbad-function-cast"
5671
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5673 $as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5674 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5675 if eval \${$cacheid+:} false; then :
5676 $as_echo_n "(cached) " >&6
5677 else
5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679 /* end confdefs.h. */
5680 int i;
5681 int
5682 main ()
5683 {
5684
5685 ;
5686 return 0;
5687 }
5688 _ACEOF
5689 if ac_fn_c_try_link "$LINENO"; then :
5690 eval $cacheid=yes
5691 else
5692 eval $cacheid=no
5693 fi
5694 rm -f core conftest.err conftest.$ac_objext \
5695 conftest$ac_exeext conftest.$ac_ext
5696 fi
5697
5698
5699 CFLAGS="$xorg_testset_save_CFLAGS"
5700
5701 eval supported=\$$cacheid
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5703 $as_echo "$supported" >&6; }
5704 if test "$supported" = "yes" ; then
5705 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5706 found="yes"
5707 fi
5708 fi
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724 xorg_testset_save_CFLAGS="$CFLAGS"
5725
5726 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5729 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5730 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5731 $as_echo_n "(cached) " >&6
5732 else
5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h. */
5735 int i;
5736 _ACEOF
5737 if ac_fn_c_try_compile "$LINENO"; then :
5738 xorg_cv_cc_flag_unknown_warning_option=yes
5739 else
5740 xorg_cv_cc_flag_unknown_warning_option=no
5741 fi
5742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743 fi
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5745 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5746 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5747 CFLAGS="$xorg_testset_save_CFLAGS"
5748 fi
5749
5750 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5753 fi
5754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5756 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5757 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5758 $as_echo_n "(cached) " >&6
5759 else
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5762 int i;
5763 _ACEOF
5764 if ac_fn_c_try_compile "$LINENO"; then :
5765 xorg_cv_cc_flag_unused_command_line_argument=yes
5766 else
5767 xorg_cv_cc_flag_unused_command_line_argument=no
5768 fi
5769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770 fi
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5772 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5773 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5774 CFLAGS="$xorg_testset_save_CFLAGS"
5775 fi
5776
5777 found="no"
5778
5779 if test $found = "no" ; then
5780 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5782 fi
5783
5784 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5786 fi
5787
5788 CFLAGS="$CFLAGS -Wold-style-definition"
5789
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5791 $as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5792 cacheid=xorg_cv_cc_flag__Wold_style_definition
5793 if eval \${$cacheid+:} false; then :
5794 $as_echo_n "(cached) " >&6
5795 else
5796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797 /* end confdefs.h. */
5798 int i;
5799 int
5800 main ()
5801 {
5802
5803 ;
5804 return 0;
5805 }
5806 _ACEOF
5807 if ac_fn_c_try_link "$LINENO"; then :
5808 eval $cacheid=yes
5809 else
5810 eval $cacheid=no
5811 fi
5812 rm -f core conftest.err conftest.$ac_objext \
5813 conftest$ac_exeext conftest.$ac_ext
5814 fi
5815
5816
5817 CFLAGS="$xorg_testset_save_CFLAGS"
5818
5819 eval supported=\$$cacheid
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5821 $as_echo "$supported" >&6; }
5822 if test "$supported" = "yes" ; then
5823 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5824 found="yes"
5825 fi
5826 fi
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842 xorg_testset_save_CFLAGS="$CFLAGS"
5843
5844 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5847 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5848 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5849 $as_echo_n "(cached) " >&6
5850 else
5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852 /* end confdefs.h. */
5853 int i;
5854 _ACEOF
5855 if ac_fn_c_try_compile "$LINENO"; then :
5856 xorg_cv_cc_flag_unknown_warning_option=yes
5857 else
5858 xorg_cv_cc_flag_unknown_warning_option=no
5859 fi
5860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861 fi
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5863 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5865 CFLAGS="$xorg_testset_save_CFLAGS"
5866 fi
5867
5868 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5871 fi
5872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5874 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5875 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879 /* end confdefs.h. */
5880 int i;
5881 _ACEOF
5882 if ac_fn_c_try_compile "$LINENO"; then :
5883 xorg_cv_cc_flag_unused_command_line_argument=yes
5884 else
5885 xorg_cv_cc_flag_unused_command_line_argument=no
5886 fi
5887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5888 fi
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5890 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5892 CFLAGS="$xorg_testset_save_CFLAGS"
5893 fi
5894
5895 found="no"
5896
5897 if test $found = "no" ; then
5898 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5900 fi
5901
5902 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5904 fi
5905
5906 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5907
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
5909 $as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
5910 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5911 if eval \${$cacheid+:} false; then :
5912 $as_echo_n "(cached) " >&6
5913 else
5914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h. */
5916 int i;
5917 int
5918 main ()
5919 {
5920
5921 ;
5922 return 0;
5923 }
5924 _ACEOF
5925 if ac_fn_c_try_link "$LINENO"; then :
5926 eval $cacheid=yes
5927 else
5928 eval $cacheid=no
5929 fi
5930 rm -f core conftest.err conftest.$ac_objext \
5931 conftest$ac_exeext conftest.$ac_ext
5932 fi
5933
5934
5935 CFLAGS="$xorg_testset_save_CFLAGS"
5936
5937 eval supported=\$$cacheid
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5939 $as_echo "$supported" >&6; }
5940 if test "$supported" = "yes" ; then
5941 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5942 found="yes"
5943 fi
5944 fi
5945
5946
5947
5948
5949
5950 # This chunk adds additional warnings that could catch undesired effects.
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964 xorg_testset_save_CFLAGS="$CFLAGS"
5965
5966 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5969 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5970 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5971 $as_echo_n "(cached) " >&6
5972 else
5973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974 /* end confdefs.h. */
5975 int i;
5976 _ACEOF
5977 if ac_fn_c_try_compile "$LINENO"; then :
5978 xorg_cv_cc_flag_unknown_warning_option=yes
5979 else
5980 xorg_cv_cc_flag_unknown_warning_option=no
5981 fi
5982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5983 fi
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5985 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5987 CFLAGS="$xorg_testset_save_CFLAGS"
5988 fi
5989
5990 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5993 fi
5994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5996 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5997 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5998 $as_echo_n "(cached) " >&6
5999 else
6000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6001 /* end confdefs.h. */
6002 int i;
6003 _ACEOF
6004 if ac_fn_c_try_compile "$LINENO"; then :
6005 xorg_cv_cc_flag_unused_command_line_argument=yes
6006 else
6007 xorg_cv_cc_flag_unused_command_line_argument=no
6008 fi
6009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010 fi
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6012 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6014 CFLAGS="$xorg_testset_save_CFLAGS"
6015 fi
6016
6017 found="no"
6018
6019 if test $found = "no" ; then
6020 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6022 fi
6023
6024 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6026 fi
6027
6028 CFLAGS="$CFLAGS -Wunused"
6029
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
6031 $as_echo_n "checking if $CC supports-Wunused... " >&6; }
6032 cacheid=xorg_cv_cc_flag__Wunused
6033 if eval \${$cacheid+:} false; then :
6034 $as_echo_n "(cached) " >&6
6035 else
6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6038 int i;
6039 int
6040 main ()
6041 {
6042
6043 ;
6044 return 0;
6045 }
6046 _ACEOF
6047 if ac_fn_c_try_link "$LINENO"; then :
6048 eval $cacheid=yes
6049 else
6050 eval $cacheid=no
6051 fi
6052 rm -f core conftest.err conftest.$ac_objext \
6053 conftest$ac_exeext conftest.$ac_ext
6054 fi
6055
6056
6057 CFLAGS="$xorg_testset_save_CFLAGS"
6058
6059 eval supported=\$$cacheid
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6061 $as_echo "$supported" >&6; }
6062 if test "$supported" = "yes" ; then
6063 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6064 found="yes"
6065 fi
6066 fi
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082 xorg_testset_save_CFLAGS="$CFLAGS"
6083
6084 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6087 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6088 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6089 $as_echo_n "(cached) " >&6
6090 else
6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092 /* end confdefs.h. */
6093 int i;
6094 _ACEOF
6095 if ac_fn_c_try_compile "$LINENO"; then :
6096 xorg_cv_cc_flag_unknown_warning_option=yes
6097 else
6098 xorg_cv_cc_flag_unknown_warning_option=no
6099 fi
6100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6101 fi
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6103 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6104 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6105 CFLAGS="$xorg_testset_save_CFLAGS"
6106 fi
6107
6108 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6111 fi
6112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6114 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6115 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6116 $as_echo_n "(cached) " >&6
6117 else
6118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6119 /* end confdefs.h. */
6120 int i;
6121 _ACEOF
6122 if ac_fn_c_try_compile "$LINENO"; then :
6123 xorg_cv_cc_flag_unused_command_line_argument=yes
6124 else
6125 xorg_cv_cc_flag_unused_command_line_argument=no
6126 fi
6127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6128 fi
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6130 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6132 CFLAGS="$xorg_testset_save_CFLAGS"
6133 fi
6134
6135 found="no"
6136
6137 if test $found = "no" ; then
6138 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6140 fi
6141
6142 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6144 fi
6145
6146 CFLAGS="$CFLAGS -Wuninitialized"
6147
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
6149 $as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
6150 cacheid=xorg_cv_cc_flag__Wuninitialized
6151 if eval \${$cacheid+:} false; then :
6152 $as_echo_n "(cached) " >&6
6153 else
6154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6156 int i;
6157 int
6158 main ()
6159 {
6160
6161 ;
6162 return 0;
6163 }
6164 _ACEOF
6165 if ac_fn_c_try_link "$LINENO"; then :
6166 eval $cacheid=yes
6167 else
6168 eval $cacheid=no
6169 fi
6170 rm -f core conftest.err conftest.$ac_objext \
6171 conftest$ac_exeext conftest.$ac_ext
6172 fi
6173
6174
6175 CFLAGS="$xorg_testset_save_CFLAGS"
6176
6177 eval supported=\$$cacheid
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6179 $as_echo "$supported" >&6; }
6180 if test "$supported" = "yes" ; then
6181 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6182 found="yes"
6183 fi
6184 fi
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200 xorg_testset_save_CFLAGS="$CFLAGS"
6201
6202 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6205 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6206 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6207 $as_echo_n "(cached) " >&6
6208 else
6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210 /* end confdefs.h. */
6211 int i;
6212 _ACEOF
6213 if ac_fn_c_try_compile "$LINENO"; then :
6214 xorg_cv_cc_flag_unknown_warning_option=yes
6215 else
6216 xorg_cv_cc_flag_unknown_warning_option=no
6217 fi
6218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219 fi
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6221 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6223 CFLAGS="$xorg_testset_save_CFLAGS"
6224 fi
6225
6226 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6229 fi
6230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6232 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6233 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6234 $as_echo_n "(cached) " >&6
6235 else
6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237 /* end confdefs.h. */
6238 int i;
6239 _ACEOF
6240 if ac_fn_c_try_compile "$LINENO"; then :
6241 xorg_cv_cc_flag_unused_command_line_argument=yes
6242 else
6243 xorg_cv_cc_flag_unused_command_line_argument=no
6244 fi
6245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6246 fi
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6248 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6250 CFLAGS="$xorg_testset_save_CFLAGS"
6251 fi
6252
6253 found="no"
6254
6255 if test $found = "no" ; then
6256 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6258 fi
6259
6260 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6262 fi
6263
6264 CFLAGS="$CFLAGS -Wshadow"
6265
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6267 $as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6268 cacheid=xorg_cv_cc_flag__Wshadow
6269 if eval \${$cacheid+:} false; then :
6270 $as_echo_n "(cached) " >&6
6271 else
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6274 int i;
6275 int
6276 main ()
6277 {
6278
6279 ;
6280 return 0;
6281 }
6282 _ACEOF
6283 if ac_fn_c_try_link "$LINENO"; then :
6284 eval $cacheid=yes
6285 else
6286 eval $cacheid=no
6287 fi
6288 rm -f core conftest.err conftest.$ac_objext \
6289 conftest$ac_exeext conftest.$ac_ext
6290 fi
6291
6292
6293 CFLAGS="$xorg_testset_save_CFLAGS"
6294
6295 eval supported=\$$cacheid
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6297 $as_echo "$supported" >&6; }
6298 if test "$supported" = "yes" ; then
6299 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6300 found="yes"
6301 fi
6302 fi
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318 xorg_testset_save_CFLAGS="$CFLAGS"
6319
6320 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6323 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6324 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6325 $as_echo_n "(cached) " >&6
6326 else
6327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328 /* end confdefs.h. */
6329 int i;
6330 _ACEOF
6331 if ac_fn_c_try_compile "$LINENO"; then :
6332 xorg_cv_cc_flag_unknown_warning_option=yes
6333 else
6334 xorg_cv_cc_flag_unknown_warning_option=no
6335 fi
6336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6337 fi
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6339 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6341 CFLAGS="$xorg_testset_save_CFLAGS"
6342 fi
6343
6344 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6347 fi
6348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6350 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6351 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6352 $as_echo_n "(cached) " >&6
6353 else
6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6356 int i;
6357 _ACEOF
6358 if ac_fn_c_try_compile "$LINENO"; then :
6359 xorg_cv_cc_flag_unused_command_line_argument=yes
6360 else
6361 xorg_cv_cc_flag_unused_command_line_argument=no
6362 fi
6363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364 fi
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6366 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6368 CFLAGS="$xorg_testset_save_CFLAGS"
6369 fi
6370
6371 found="no"
6372
6373 if test $found = "no" ; then
6374 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6376 fi
6377
6378 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6380 fi
6381
6382 CFLAGS="$CFLAGS -Wcast-qual"
6383
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6385 $as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6386 cacheid=xorg_cv_cc_flag__Wcast_qual
6387 if eval \${$cacheid+:} false; then :
6388 $as_echo_n "(cached) " >&6
6389 else
6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391 /* end confdefs.h. */
6392 int i;
6393 int
6394 main ()
6395 {
6396
6397 ;
6398 return 0;
6399 }
6400 _ACEOF
6401 if ac_fn_c_try_link "$LINENO"; then :
6402 eval $cacheid=yes
6403 else
6404 eval $cacheid=no
6405 fi
6406 rm -f core conftest.err conftest.$ac_objext \
6407 conftest$ac_exeext conftest.$ac_ext
6408 fi
6409
6410
6411 CFLAGS="$xorg_testset_save_CFLAGS"
6412
6413 eval supported=\$$cacheid
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6415 $as_echo "$supported" >&6; }
6416 if test "$supported" = "yes" ; then
6417 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6418 found="yes"
6419 fi
6420 fi
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436 xorg_testset_save_CFLAGS="$CFLAGS"
6437
6438 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6441 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6442 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6443 $as_echo_n "(cached) " >&6
6444 else
6445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6446 /* end confdefs.h. */
6447 int i;
6448 _ACEOF
6449 if ac_fn_c_try_compile "$LINENO"; then :
6450 xorg_cv_cc_flag_unknown_warning_option=yes
6451 else
6452 xorg_cv_cc_flag_unknown_warning_option=no
6453 fi
6454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6455 fi
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6457 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6459 CFLAGS="$xorg_testset_save_CFLAGS"
6460 fi
6461
6462 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6465 fi
6466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6468 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6469 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6470 $as_echo_n "(cached) " >&6
6471 else
6472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473 /* end confdefs.h. */
6474 int i;
6475 _ACEOF
6476 if ac_fn_c_try_compile "$LINENO"; then :
6477 xorg_cv_cc_flag_unused_command_line_argument=yes
6478 else
6479 xorg_cv_cc_flag_unused_command_line_argument=no
6480 fi
6481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6482 fi
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6484 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6486 CFLAGS="$xorg_testset_save_CFLAGS"
6487 fi
6488
6489 found="no"
6490
6491 if test $found = "no" ; then
6492 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6494 fi
6495
6496 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6498 fi
6499
6500 CFLAGS="$CFLAGS -Wmissing-noreturn"
6501
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6503 $as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6504 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6505 if eval \${$cacheid+:} false; then :
6506 $as_echo_n "(cached) " >&6
6507 else
6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h. */
6510 int i;
6511 int
6512 main ()
6513 {
6514
6515 ;
6516 return 0;
6517 }
6518 _ACEOF
6519 if ac_fn_c_try_link "$LINENO"; then :
6520 eval $cacheid=yes
6521 else
6522 eval $cacheid=no
6523 fi
6524 rm -f core conftest.err conftest.$ac_objext \
6525 conftest$ac_exeext conftest.$ac_ext
6526 fi
6527
6528
6529 CFLAGS="$xorg_testset_save_CFLAGS"
6530
6531 eval supported=\$$cacheid
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6533 $as_echo "$supported" >&6; }
6534 if test "$supported" = "yes" ; then
6535 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6536 found="yes"
6537 fi
6538 fi
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554 xorg_testset_save_CFLAGS="$CFLAGS"
6555
6556 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6559 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6560 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6561 $as_echo_n "(cached) " >&6
6562 else
6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h. */
6565 int i;
6566 _ACEOF
6567 if ac_fn_c_try_compile "$LINENO"; then :
6568 xorg_cv_cc_flag_unknown_warning_option=yes
6569 else
6570 xorg_cv_cc_flag_unknown_warning_option=no
6571 fi
6572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6573 fi
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6575 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6577 CFLAGS="$xorg_testset_save_CFLAGS"
6578 fi
6579
6580 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6583 fi
6584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6586 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6587 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6588 $as_echo_n "(cached) " >&6
6589 else
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6592 int i;
6593 _ACEOF
6594 if ac_fn_c_try_compile "$LINENO"; then :
6595 xorg_cv_cc_flag_unused_command_line_argument=yes
6596 else
6597 xorg_cv_cc_flag_unused_command_line_argument=no
6598 fi
6599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600 fi
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6602 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6603 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6604 CFLAGS="$xorg_testset_save_CFLAGS"
6605 fi
6606
6607 found="no"
6608
6609 if test $found = "no" ; then
6610 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6612 fi
6613
6614 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6616 fi
6617
6618 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6619
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6621 $as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6622 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6623 if eval \${$cacheid+:} false; then :
6624 $as_echo_n "(cached) " >&6
6625 else
6626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627 /* end confdefs.h. */
6628 int i;
6629 int
6630 main ()
6631 {
6632
6633 ;
6634 return 0;
6635 }
6636 _ACEOF
6637 if ac_fn_c_try_link "$LINENO"; then :
6638 eval $cacheid=yes
6639 else
6640 eval $cacheid=no
6641 fi
6642 rm -f core conftest.err conftest.$ac_objext \
6643 conftest$ac_exeext conftest.$ac_ext
6644 fi
6645
6646
6647 CFLAGS="$xorg_testset_save_CFLAGS"
6648
6649 eval supported=\$$cacheid
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6651 $as_echo "$supported" >&6; }
6652 if test "$supported" = "yes" ; then
6653 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6654 found="yes"
6655 fi
6656 fi
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672 xorg_testset_save_CFLAGS="$CFLAGS"
6673
6674 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6677 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6678 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6679 $as_echo_n "(cached) " >&6
6680 else
6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682 /* end confdefs.h. */
6683 int i;
6684 _ACEOF
6685 if ac_fn_c_try_compile "$LINENO"; then :
6686 xorg_cv_cc_flag_unknown_warning_option=yes
6687 else
6688 xorg_cv_cc_flag_unknown_warning_option=no
6689 fi
6690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691 fi
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6693 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6694 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6695 CFLAGS="$xorg_testset_save_CFLAGS"
6696 fi
6697
6698 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6701 fi
6702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6704 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6705 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6706 $as_echo_n "(cached) " >&6
6707 else
6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709 /* end confdefs.h. */
6710 int i;
6711 _ACEOF
6712 if ac_fn_c_try_compile "$LINENO"; then :
6713 xorg_cv_cc_flag_unused_command_line_argument=yes
6714 else
6715 xorg_cv_cc_flag_unused_command_line_argument=no
6716 fi
6717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6718 fi
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6720 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6721 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6722 CFLAGS="$xorg_testset_save_CFLAGS"
6723 fi
6724
6725 found="no"
6726
6727 if test $found = "no" ; then
6728 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6730 fi
6731
6732 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6734 fi
6735
6736 CFLAGS="$CFLAGS -Wredundant-decls"
6737
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6739 $as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6740 cacheid=xorg_cv_cc_flag__Wredundant_decls
6741 if eval \${$cacheid+:} false; then :
6742 $as_echo_n "(cached) " >&6
6743 else
6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h. */
6746 int i;
6747 int
6748 main ()
6749 {
6750
6751 ;
6752 return 0;
6753 }
6754 _ACEOF
6755 if ac_fn_c_try_link "$LINENO"; then :
6756 eval $cacheid=yes
6757 else
6758 eval $cacheid=no
6759 fi
6760 rm -f core conftest.err conftest.$ac_objext \
6761 conftest$ac_exeext conftest.$ac_ext
6762 fi
6763
6764
6765 CFLAGS="$xorg_testset_save_CFLAGS"
6766
6767 eval supported=\$$cacheid
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6769 $as_echo "$supported" >&6; }
6770 if test "$supported" = "yes" ; then
6771 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6772 found="yes"
6773 fi
6774 fi
6775
6776
6777
6778 # These are currently disabled because they are noisy. They will be enabled
6779 # in the future once the codebase is sufficiently modernized to silence
6780 # them. For now, I don't want them to drown out the other warnings.
6781 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6782 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6783 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6784
6785 # Turn some warnings into errors, so we don't accidently get successful builds
6786 # when there are problems that should be fixed.
6787
6788 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802 xorg_testset_save_CFLAGS="$CFLAGS"
6803
6804 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6807 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6808 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6809 $as_echo_n "(cached) " >&6
6810 else
6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812 /* end confdefs.h. */
6813 int i;
6814 _ACEOF
6815 if ac_fn_c_try_compile "$LINENO"; then :
6816 xorg_cv_cc_flag_unknown_warning_option=yes
6817 else
6818 xorg_cv_cc_flag_unknown_warning_option=no
6819 fi
6820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6821 fi
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6823 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6824 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6825 CFLAGS="$xorg_testset_save_CFLAGS"
6826 fi
6827
6828 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6831 fi
6832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6834 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6835 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6836 $as_echo_n "(cached) " >&6
6837 else
6838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839 /* end confdefs.h. */
6840 int i;
6841 _ACEOF
6842 if ac_fn_c_try_compile "$LINENO"; then :
6843 xorg_cv_cc_flag_unused_command_line_argument=yes
6844 else
6845 xorg_cv_cc_flag_unused_command_line_argument=no
6846 fi
6847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6848 fi
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6850 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6851 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6852 CFLAGS="$xorg_testset_save_CFLAGS"
6853 fi
6854
6855 found="no"
6856
6857 if test $found = "no" ; then
6858 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6860 fi
6861
6862 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6864 fi
6865
6866 CFLAGS="$CFLAGS -Werror=implicit"
6867
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
6869 $as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
6870 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6871 if eval \${$cacheid+:} false; then :
6872 $as_echo_n "(cached) " >&6
6873 else
6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875 /* end confdefs.h. */
6876 int i;
6877 int
6878 main ()
6879 {
6880
6881 ;
6882 return 0;
6883 }
6884 _ACEOF
6885 if ac_fn_c_try_link "$LINENO"; then :
6886 eval $cacheid=yes
6887 else
6888 eval $cacheid=no
6889 fi
6890 rm -f core conftest.err conftest.$ac_objext \
6891 conftest$ac_exeext conftest.$ac_ext
6892 fi
6893
6894
6895 CFLAGS="$xorg_testset_save_CFLAGS"
6896
6897 eval supported=\$$cacheid
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6899 $as_echo "$supported" >&6; }
6900 if test "$supported" = "yes" ; then
6901 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6902 found="yes"
6903 fi
6904 fi
6905
6906 if test $found = "no" ; then
6907 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6909 fi
6910
6911 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6913 fi
6914
6915 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6916
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6918 $as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6919 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6920 if eval \${$cacheid+:} false; then :
6921 $as_echo_n "(cached) " >&6
6922 else
6923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924 /* end confdefs.h. */
6925 int i;
6926 int
6927 main ()
6928 {
6929
6930 ;
6931 return 0;
6932 }
6933 _ACEOF
6934 if ac_fn_c_try_link "$LINENO"; then :
6935 eval $cacheid=yes
6936 else
6937 eval $cacheid=no
6938 fi
6939 rm -f core conftest.err conftest.$ac_objext \
6940 conftest$ac_exeext conftest.$ac_ext
6941 fi
6942
6943
6944 CFLAGS="$xorg_testset_save_CFLAGS"
6945
6946 eval supported=\$$cacheid
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6948 $as_echo "$supported" >&6; }
6949 if test "$supported" = "yes" ; then
6950 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6951 found="yes"
6952 fi
6953 fi
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969 xorg_testset_save_CFLAGS="$CFLAGS"
6970
6971 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6974 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6975 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6976 $as_echo_n "(cached) " >&6
6977 else
6978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979 /* end confdefs.h. */
6980 int i;
6981 _ACEOF
6982 if ac_fn_c_try_compile "$LINENO"; then :
6983 xorg_cv_cc_flag_unknown_warning_option=yes
6984 else
6985 xorg_cv_cc_flag_unknown_warning_option=no
6986 fi
6987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6988 fi
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6990 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6991 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6992 CFLAGS="$xorg_testset_save_CFLAGS"
6993 fi
6994
6995 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6998 fi
6999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7001 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7002 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7003 $as_echo_n "(cached) " >&6
7004 else
7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006 /* end confdefs.h. */
7007 int i;
7008 _ACEOF
7009 if ac_fn_c_try_compile "$LINENO"; then :
7010 xorg_cv_cc_flag_unused_command_line_argument=yes
7011 else
7012 xorg_cv_cc_flag_unused_command_line_argument=no
7013 fi
7014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7015 fi
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7017 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7018 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7019 CFLAGS="$xorg_testset_save_CFLAGS"
7020 fi
7021
7022 found="no"
7023
7024 if test $found = "no" ; then
7025 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7027 fi
7028
7029 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7031 fi
7032
7033 CFLAGS="$CFLAGS -Werror=nonnull"
7034
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
7036 $as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
7037 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7038 if eval \${$cacheid+:} false; then :
7039 $as_echo_n "(cached) " >&6
7040 else
7041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7042 /* end confdefs.h. */
7043 int i;
7044 int
7045 main ()
7046 {
7047
7048 ;
7049 return 0;
7050 }
7051 _ACEOF
7052 if ac_fn_c_try_link "$LINENO"; then :
7053 eval $cacheid=yes
7054 else
7055 eval $cacheid=no
7056 fi
7057 rm -f core conftest.err conftest.$ac_objext \
7058 conftest$ac_exeext conftest.$ac_ext
7059 fi
7060
7061
7062 CFLAGS="$xorg_testset_save_CFLAGS"
7063
7064 eval supported=\$$cacheid
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7066 $as_echo "$supported" >&6; }
7067 if test "$supported" = "yes" ; then
7068 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7069 found="yes"
7070 fi
7071 fi
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087 xorg_testset_save_CFLAGS="$CFLAGS"
7088
7089 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7092 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7093 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7094 $as_echo_n "(cached) " >&6
7095 else
7096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097 /* end confdefs.h. */
7098 int i;
7099 _ACEOF
7100 if ac_fn_c_try_compile "$LINENO"; then :
7101 xorg_cv_cc_flag_unknown_warning_option=yes
7102 else
7103 xorg_cv_cc_flag_unknown_warning_option=no
7104 fi
7105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7106 fi
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7108 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7109 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7110 CFLAGS="$xorg_testset_save_CFLAGS"
7111 fi
7112
7113 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7116 fi
7117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7119 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7120 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7121 $as_echo_n "(cached) " >&6
7122 else
7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h. */
7125 int i;
7126 _ACEOF
7127 if ac_fn_c_try_compile "$LINENO"; then :
7128 xorg_cv_cc_flag_unused_command_line_argument=yes
7129 else
7130 xorg_cv_cc_flag_unused_command_line_argument=no
7131 fi
7132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7133 fi
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7135 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7136 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7137 CFLAGS="$xorg_testset_save_CFLAGS"
7138 fi
7139
7140 found="no"
7141
7142 if test $found = "no" ; then
7143 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7145 fi
7146
7147 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7149 fi
7150
7151 CFLAGS="$CFLAGS -Werror=init-self"
7152
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
7154 $as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
7155 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7156 if eval \${$cacheid+:} false; then :
7157 $as_echo_n "(cached) " >&6
7158 else
7159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160 /* end confdefs.h. */
7161 int i;
7162 int
7163 main ()
7164 {
7165
7166 ;
7167 return 0;
7168 }
7169 _ACEOF
7170 if ac_fn_c_try_link "$LINENO"; then :
7171 eval $cacheid=yes
7172 else
7173 eval $cacheid=no
7174 fi
7175 rm -f core conftest.err conftest.$ac_objext \
7176 conftest$ac_exeext conftest.$ac_ext
7177 fi
7178
7179
7180 CFLAGS="$xorg_testset_save_CFLAGS"
7181
7182 eval supported=\$$cacheid
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7184 $as_echo "$supported" >&6; }
7185 if test "$supported" = "yes" ; then
7186 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7187 found="yes"
7188 fi
7189 fi
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205 xorg_testset_save_CFLAGS="$CFLAGS"
7206
7207 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7210 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7211 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7212 $as_echo_n "(cached) " >&6
7213 else
7214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215 /* end confdefs.h. */
7216 int i;
7217 _ACEOF
7218 if ac_fn_c_try_compile "$LINENO"; then :
7219 xorg_cv_cc_flag_unknown_warning_option=yes
7220 else
7221 xorg_cv_cc_flag_unknown_warning_option=no
7222 fi
7223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7224 fi
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7226 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7227 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7228 CFLAGS="$xorg_testset_save_CFLAGS"
7229 fi
7230
7231 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7234 fi
7235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7237 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7238 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7239 $as_echo_n "(cached) " >&6
7240 else
7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242 /* end confdefs.h. */
7243 int i;
7244 _ACEOF
7245 if ac_fn_c_try_compile "$LINENO"; then :
7246 xorg_cv_cc_flag_unused_command_line_argument=yes
7247 else
7248 xorg_cv_cc_flag_unused_command_line_argument=no
7249 fi
7250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7251 fi
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7253 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7254 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7255 CFLAGS="$xorg_testset_save_CFLAGS"
7256 fi
7257
7258 found="no"
7259
7260 if test $found = "no" ; then
7261 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7263 fi
7264
7265 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7267 fi
7268
7269 CFLAGS="$CFLAGS -Werror=main"
7270
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7272 $as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7273 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7274 if eval \${$cacheid+:} false; then :
7275 $as_echo_n "(cached) " >&6
7276 else
7277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278 /* end confdefs.h. */
7279 int i;
7280 int
7281 main ()
7282 {
7283
7284 ;
7285 return 0;
7286 }
7287 _ACEOF
7288 if ac_fn_c_try_link "$LINENO"; then :
7289 eval $cacheid=yes
7290 else
7291 eval $cacheid=no
7292 fi
7293 rm -f core conftest.err conftest.$ac_objext \
7294 conftest$ac_exeext conftest.$ac_ext
7295 fi
7296
7297
7298 CFLAGS="$xorg_testset_save_CFLAGS"
7299
7300 eval supported=\$$cacheid
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7302 $as_echo "$supported" >&6; }
7303 if test "$supported" = "yes" ; then
7304 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7305 found="yes"
7306 fi
7307 fi
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323 xorg_testset_save_CFLAGS="$CFLAGS"
7324
7325 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7328 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7329 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7330 $as_echo_n "(cached) " >&6
7331 else
7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333 /* end confdefs.h. */
7334 int i;
7335 _ACEOF
7336 if ac_fn_c_try_compile "$LINENO"; then :
7337 xorg_cv_cc_flag_unknown_warning_option=yes
7338 else
7339 xorg_cv_cc_flag_unknown_warning_option=no
7340 fi
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342 fi
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7344 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7345 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7346 CFLAGS="$xorg_testset_save_CFLAGS"
7347 fi
7348
7349 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7352 fi
7353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7355 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7356 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7357 $as_echo_n "(cached) " >&6
7358 else
7359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360 /* end confdefs.h. */
7361 int i;
7362 _ACEOF
7363 if ac_fn_c_try_compile "$LINENO"; then :
7364 xorg_cv_cc_flag_unused_command_line_argument=yes
7365 else
7366 xorg_cv_cc_flag_unused_command_line_argument=no
7367 fi
7368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7369 fi
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7371 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7372 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7373 CFLAGS="$xorg_testset_save_CFLAGS"
7374 fi
7375
7376 found="no"
7377
7378 if test $found = "no" ; then
7379 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7381 fi
7382
7383 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7385 fi
7386
7387 CFLAGS="$CFLAGS -Werror=missing-braces"
7388
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7390 $as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7391 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7392 if eval \${$cacheid+:} false; then :
7393 $as_echo_n "(cached) " >&6
7394 else
7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7396 /* end confdefs.h. */
7397 int i;
7398 int
7399 main ()
7400 {
7401
7402 ;
7403 return 0;
7404 }
7405 _ACEOF
7406 if ac_fn_c_try_link "$LINENO"; then :
7407 eval $cacheid=yes
7408 else
7409 eval $cacheid=no
7410 fi
7411 rm -f core conftest.err conftest.$ac_objext \
7412 conftest$ac_exeext conftest.$ac_ext
7413 fi
7414
7415
7416 CFLAGS="$xorg_testset_save_CFLAGS"
7417
7418 eval supported=\$$cacheid
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7420 $as_echo "$supported" >&6; }
7421 if test "$supported" = "yes" ; then
7422 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7423 found="yes"
7424 fi
7425 fi
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441 xorg_testset_save_CFLAGS="$CFLAGS"
7442
7443 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7446 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7447 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7448 $as_echo_n "(cached) " >&6
7449 else
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7452 int i;
7453 _ACEOF
7454 if ac_fn_c_try_compile "$LINENO"; then :
7455 xorg_cv_cc_flag_unknown_warning_option=yes
7456 else
7457 xorg_cv_cc_flag_unknown_warning_option=no
7458 fi
7459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7460 fi
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7462 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7464 CFLAGS="$xorg_testset_save_CFLAGS"
7465 fi
7466
7467 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7470 fi
7471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7473 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7474 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7475 $as_echo_n "(cached) " >&6
7476 else
7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478 /* end confdefs.h. */
7479 int i;
7480 _ACEOF
7481 if ac_fn_c_try_compile "$LINENO"; then :
7482 xorg_cv_cc_flag_unused_command_line_argument=yes
7483 else
7484 xorg_cv_cc_flag_unused_command_line_argument=no
7485 fi
7486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7487 fi
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7489 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7490 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7491 CFLAGS="$xorg_testset_save_CFLAGS"
7492 fi
7493
7494 found="no"
7495
7496 if test $found = "no" ; then
7497 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7499 fi
7500
7501 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7503 fi
7504
7505 CFLAGS="$CFLAGS -Werror=sequence-point"
7506
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7508 $as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7509 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7510 if eval \${$cacheid+:} false; then :
7511 $as_echo_n "(cached) " >&6
7512 else
7513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7514 /* end confdefs.h. */
7515 int i;
7516 int
7517 main ()
7518 {
7519
7520 ;
7521 return 0;
7522 }
7523 _ACEOF
7524 if ac_fn_c_try_link "$LINENO"; then :
7525 eval $cacheid=yes
7526 else
7527 eval $cacheid=no
7528 fi
7529 rm -f core conftest.err conftest.$ac_objext \
7530 conftest$ac_exeext conftest.$ac_ext
7531 fi
7532
7533
7534 CFLAGS="$xorg_testset_save_CFLAGS"
7535
7536 eval supported=\$$cacheid
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7538 $as_echo "$supported" >&6; }
7539 if test "$supported" = "yes" ; then
7540 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7541 found="yes"
7542 fi
7543 fi
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559 xorg_testset_save_CFLAGS="$CFLAGS"
7560
7561 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7564 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7565 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7566 $as_echo_n "(cached) " >&6
7567 else
7568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7569 /* end confdefs.h. */
7570 int i;
7571 _ACEOF
7572 if ac_fn_c_try_compile "$LINENO"; then :
7573 xorg_cv_cc_flag_unknown_warning_option=yes
7574 else
7575 xorg_cv_cc_flag_unknown_warning_option=no
7576 fi
7577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7578 fi
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7580 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7581 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7582 CFLAGS="$xorg_testset_save_CFLAGS"
7583 fi
7584
7585 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7588 fi
7589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7591 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7592 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7593 $as_echo_n "(cached) " >&6
7594 else
7595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596 /* end confdefs.h. */
7597 int i;
7598 _ACEOF
7599 if ac_fn_c_try_compile "$LINENO"; then :
7600 xorg_cv_cc_flag_unused_command_line_argument=yes
7601 else
7602 xorg_cv_cc_flag_unused_command_line_argument=no
7603 fi
7604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7605 fi
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7607 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7608 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7609 CFLAGS="$xorg_testset_save_CFLAGS"
7610 fi
7611
7612 found="no"
7613
7614 if test $found = "no" ; then
7615 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7617 fi
7618
7619 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7621 fi
7622
7623 CFLAGS="$CFLAGS -Werror=return-type"
7624
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7626 $as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7627 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7628 if eval \${$cacheid+:} false; then :
7629 $as_echo_n "(cached) " >&6
7630 else
7631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632 /* end confdefs.h. */
7633 int i;
7634 int
7635 main ()
7636 {
7637
7638 ;
7639 return 0;
7640 }
7641 _ACEOF
7642 if ac_fn_c_try_link "$LINENO"; then :
7643 eval $cacheid=yes
7644 else
7645 eval $cacheid=no
7646 fi
7647 rm -f core conftest.err conftest.$ac_objext \
7648 conftest$ac_exeext conftest.$ac_ext
7649 fi
7650
7651
7652 CFLAGS="$xorg_testset_save_CFLAGS"
7653
7654 eval supported=\$$cacheid
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7656 $as_echo "$supported" >&6; }
7657 if test "$supported" = "yes" ; then
7658 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7659 found="yes"
7660 fi
7661 fi
7662
7663 if test $found = "no" ; then
7664 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7666 fi
7667
7668 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7670 fi
7671
7672 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7673
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7675 $as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7676 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7677 if eval \${$cacheid+:} false; then :
7678 $as_echo_n "(cached) " >&6
7679 else
7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681 /* end confdefs.h. */
7682 int i;
7683 int
7684 main ()
7685 {
7686
7687 ;
7688 return 0;
7689 }
7690 _ACEOF
7691 if ac_fn_c_try_link "$LINENO"; then :
7692 eval $cacheid=yes
7693 else
7694 eval $cacheid=no
7695 fi
7696 rm -f core conftest.err conftest.$ac_objext \
7697 conftest$ac_exeext conftest.$ac_ext
7698 fi
7699
7700
7701 CFLAGS="$xorg_testset_save_CFLAGS"
7702
7703 eval supported=\$$cacheid
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7705 $as_echo "$supported" >&6; }
7706 if test "$supported" = "yes" ; then
7707 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7708 found="yes"
7709 fi
7710 fi
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726 xorg_testset_save_CFLAGS="$CFLAGS"
7727
7728 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7731 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7732 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7733 $as_echo_n "(cached) " >&6
7734 else
7735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736 /* end confdefs.h. */
7737 int i;
7738 _ACEOF
7739 if ac_fn_c_try_compile "$LINENO"; then :
7740 xorg_cv_cc_flag_unknown_warning_option=yes
7741 else
7742 xorg_cv_cc_flag_unknown_warning_option=no
7743 fi
7744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7745 fi
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7747 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7748 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7749 CFLAGS="$xorg_testset_save_CFLAGS"
7750 fi
7751
7752 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7755 fi
7756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7758 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7759 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7760 $as_echo_n "(cached) " >&6
7761 else
7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763 /* end confdefs.h. */
7764 int i;
7765 _ACEOF
7766 if ac_fn_c_try_compile "$LINENO"; then :
7767 xorg_cv_cc_flag_unused_command_line_argument=yes
7768 else
7769 xorg_cv_cc_flag_unused_command_line_argument=no
7770 fi
7771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7772 fi
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7774 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7775 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7776 CFLAGS="$xorg_testset_save_CFLAGS"
7777 fi
7778
7779 found="no"
7780
7781 if test $found = "no" ; then
7782 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7784 fi
7785
7786 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7788 fi
7789
7790 CFLAGS="$CFLAGS -Werror=trigraphs"
7791
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7793 $as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7794 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7795 if eval \${$cacheid+:} false; then :
7796 $as_echo_n "(cached) " >&6
7797 else
7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799 /* end confdefs.h. */
7800 int i;
7801 int
7802 main ()
7803 {
7804
7805 ;
7806 return 0;
7807 }
7808 _ACEOF
7809 if ac_fn_c_try_link "$LINENO"; then :
7810 eval $cacheid=yes
7811 else
7812 eval $cacheid=no
7813 fi
7814 rm -f core conftest.err conftest.$ac_objext \
7815 conftest$ac_exeext conftest.$ac_ext
7816 fi
7817
7818
7819 CFLAGS="$xorg_testset_save_CFLAGS"
7820
7821 eval supported=\$$cacheid
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7823 $as_echo "$supported" >&6; }
7824 if test "$supported" = "yes" ; then
7825 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7826 found="yes"
7827 fi
7828 fi
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844 xorg_testset_save_CFLAGS="$CFLAGS"
7845
7846 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7849 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7850 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7851 $as_echo_n "(cached) " >&6
7852 else
7853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7854 /* end confdefs.h. */
7855 int i;
7856 _ACEOF
7857 if ac_fn_c_try_compile "$LINENO"; then :
7858 xorg_cv_cc_flag_unknown_warning_option=yes
7859 else
7860 xorg_cv_cc_flag_unknown_warning_option=no
7861 fi
7862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7863 fi
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7865 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7866 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7867 CFLAGS="$xorg_testset_save_CFLAGS"
7868 fi
7869
7870 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7873 fi
7874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7876 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7877 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7878 $as_echo_n "(cached) " >&6
7879 else
7880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7881 /* end confdefs.h. */
7882 int i;
7883 _ACEOF
7884 if ac_fn_c_try_compile "$LINENO"; then :
7885 xorg_cv_cc_flag_unused_command_line_argument=yes
7886 else
7887 xorg_cv_cc_flag_unused_command_line_argument=no
7888 fi
7889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7890 fi
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7892 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7893 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7894 CFLAGS="$xorg_testset_save_CFLAGS"
7895 fi
7896
7897 found="no"
7898
7899 if test $found = "no" ; then
7900 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7902 fi
7903
7904 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7906 fi
7907
7908 CFLAGS="$CFLAGS -Werror=array-bounds"
7909
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
7911 $as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
7912 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7913 if eval \${$cacheid+:} false; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917 /* end confdefs.h. */
7918 int i;
7919 int
7920 main ()
7921 {
7922
7923 ;
7924 return 0;
7925 }
7926 _ACEOF
7927 if ac_fn_c_try_link "$LINENO"; then :
7928 eval $cacheid=yes
7929 else
7930 eval $cacheid=no
7931 fi
7932 rm -f core conftest.err conftest.$ac_objext \
7933 conftest$ac_exeext conftest.$ac_ext
7934 fi
7935
7936
7937 CFLAGS="$xorg_testset_save_CFLAGS"
7938
7939 eval supported=\$$cacheid
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7941 $as_echo "$supported" >&6; }
7942 if test "$supported" = "yes" ; then
7943 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7944 found="yes"
7945 fi
7946 fi
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962 xorg_testset_save_CFLAGS="$CFLAGS"
7963
7964 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7967 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7968 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7969 $as_echo_n "(cached) " >&6
7970 else
7971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972 /* end confdefs.h. */
7973 int i;
7974 _ACEOF
7975 if ac_fn_c_try_compile "$LINENO"; then :
7976 xorg_cv_cc_flag_unknown_warning_option=yes
7977 else
7978 xorg_cv_cc_flag_unknown_warning_option=no
7979 fi
7980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7981 fi
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7983 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7984 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7985 CFLAGS="$xorg_testset_save_CFLAGS"
7986 fi
7987
7988 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7991 fi
7992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7994 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7995 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7996 $as_echo_n "(cached) " >&6
7997 else
7998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7999 /* end confdefs.h. */
8000 int i;
8001 _ACEOF
8002 if ac_fn_c_try_compile "$LINENO"; then :
8003 xorg_cv_cc_flag_unused_command_line_argument=yes
8004 else
8005 xorg_cv_cc_flag_unused_command_line_argument=no
8006 fi
8007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8008 fi
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8010 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8012 CFLAGS="$xorg_testset_save_CFLAGS"
8013 fi
8014
8015 found="no"
8016
8017 if test $found = "no" ; then
8018 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8020 fi
8021
8022 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8024 fi
8025
8026 CFLAGS="$CFLAGS -Werror=write-strings"
8027
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
8029 $as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
8030 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8031 if eval \${$cacheid+:} false; then :
8032 $as_echo_n "(cached) " >&6
8033 else
8034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035 /* end confdefs.h. */
8036 int i;
8037 int
8038 main ()
8039 {
8040
8041 ;
8042 return 0;
8043 }
8044 _ACEOF
8045 if ac_fn_c_try_link "$LINENO"; then :
8046 eval $cacheid=yes
8047 else
8048 eval $cacheid=no
8049 fi
8050 rm -f core conftest.err conftest.$ac_objext \
8051 conftest$ac_exeext conftest.$ac_ext
8052 fi
8053
8054
8055 CFLAGS="$xorg_testset_save_CFLAGS"
8056
8057 eval supported=\$$cacheid
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8059 $as_echo "$supported" >&6; }
8060 if test "$supported" = "yes" ; then
8061 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8062 found="yes"
8063 fi
8064 fi
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080 xorg_testset_save_CFLAGS="$CFLAGS"
8081
8082 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8085 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8086 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8087 $as_echo_n "(cached) " >&6
8088 else
8089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090 /* end confdefs.h. */
8091 int i;
8092 _ACEOF
8093 if ac_fn_c_try_compile "$LINENO"; then :
8094 xorg_cv_cc_flag_unknown_warning_option=yes
8095 else
8096 xorg_cv_cc_flag_unknown_warning_option=no
8097 fi
8098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8099 fi
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8101 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8102 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8103 CFLAGS="$xorg_testset_save_CFLAGS"
8104 fi
8105
8106 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8109 fi
8110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8112 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8113 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8114 $as_echo_n "(cached) " >&6
8115 else
8116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117 /* end confdefs.h. */
8118 int i;
8119 _ACEOF
8120 if ac_fn_c_try_compile "$LINENO"; then :
8121 xorg_cv_cc_flag_unused_command_line_argument=yes
8122 else
8123 xorg_cv_cc_flag_unused_command_line_argument=no
8124 fi
8125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8126 fi
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8128 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8130 CFLAGS="$xorg_testset_save_CFLAGS"
8131 fi
8132
8133 found="no"
8134
8135 if test $found = "no" ; then
8136 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8138 fi
8139
8140 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8142 fi
8143
8144 CFLAGS="$CFLAGS -Werror=address"
8145
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
8147 $as_echo_n "checking if $CC supports-Werror=address... " >&6; }
8148 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8149 if eval \${$cacheid+:} false; then :
8150 $as_echo_n "(cached) " >&6
8151 else
8152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153 /* end confdefs.h. */
8154 int i;
8155 int
8156 main ()
8157 {
8158
8159 ;
8160 return 0;
8161 }
8162 _ACEOF
8163 if ac_fn_c_try_link "$LINENO"; then :
8164 eval $cacheid=yes
8165 else
8166 eval $cacheid=no
8167 fi
8168 rm -f core conftest.err conftest.$ac_objext \
8169 conftest$ac_exeext conftest.$ac_ext
8170 fi
8171
8172
8173 CFLAGS="$xorg_testset_save_CFLAGS"
8174
8175 eval supported=\$$cacheid
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8177 $as_echo "$supported" >&6; }
8178 if test "$supported" = "yes" ; then
8179 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8180 found="yes"
8181 fi
8182 fi
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198 xorg_testset_save_CFLAGS="$CFLAGS"
8199
8200 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8203 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8204 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8205 $as_echo_n "(cached) " >&6
8206 else
8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208 /* end confdefs.h. */
8209 int i;
8210 _ACEOF
8211 if ac_fn_c_try_compile "$LINENO"; then :
8212 xorg_cv_cc_flag_unknown_warning_option=yes
8213 else
8214 xorg_cv_cc_flag_unknown_warning_option=no
8215 fi
8216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8217 fi
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8219 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8220 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8221 CFLAGS="$xorg_testset_save_CFLAGS"
8222 fi
8223
8224 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8227 fi
8228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8230 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8231 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8232 $as_echo_n "(cached) " >&6
8233 else
8234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235 /* end confdefs.h. */
8236 int i;
8237 _ACEOF
8238 if ac_fn_c_try_compile "$LINENO"; then :
8239 xorg_cv_cc_flag_unused_command_line_argument=yes
8240 else
8241 xorg_cv_cc_flag_unused_command_line_argument=no
8242 fi
8243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8244 fi
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8246 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8247 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8248 CFLAGS="$xorg_testset_save_CFLAGS"
8249 fi
8250
8251 found="no"
8252
8253 if test $found = "no" ; then
8254 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8256 fi
8257
8258 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8260 fi
8261
8262 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8263
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8265 $as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8266 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8267 if eval \${$cacheid+:} false; then :
8268 $as_echo_n "(cached) " >&6
8269 else
8270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h. */
8272 int i;
8273 int
8274 main ()
8275 {
8276
8277 ;
8278 return 0;
8279 }
8280 _ACEOF
8281 if ac_fn_c_try_link "$LINENO"; then :
8282 eval $cacheid=yes
8283 else
8284 eval $cacheid=no
8285 fi
8286 rm -f core conftest.err conftest.$ac_objext \
8287 conftest$ac_exeext conftest.$ac_ext
8288 fi
8289
8290
8291 CFLAGS="$xorg_testset_save_CFLAGS"
8292
8293 eval supported=\$$cacheid
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8295 $as_echo "$supported" >&6; }
8296 if test "$supported" = "yes" ; then
8297 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8298 found="yes"
8299 fi
8300 fi
8301
8302 if test $found = "no" ; then
8303 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8305 fi
8306
8307 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8309 fi
8310
8311 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8312
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8314 $as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8315 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8316 if eval \${$cacheid+:} false; then :
8317 $as_echo_n "(cached) " >&6
8318 else
8319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320 /* end confdefs.h. */
8321 int i;
8322 int
8323 main ()
8324 {
8325
8326 ;
8327 return 0;
8328 }
8329 _ACEOF
8330 if ac_fn_c_try_link "$LINENO"; then :
8331 eval $cacheid=yes
8332 else
8333 eval $cacheid=no
8334 fi
8335 rm -f core conftest.err conftest.$ac_objext \
8336 conftest$ac_exeext conftest.$ac_ext
8337 fi
8338
8339
8340 CFLAGS="$xorg_testset_save_CFLAGS"
8341
8342 eval supported=\$$cacheid
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8344 $as_echo "$supported" >&6; }
8345 if test "$supported" = "yes" ; then
8346 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8347 found="yes"
8348 fi
8349 fi
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365 xorg_testset_save_CFLAGS="$CFLAGS"
8366
8367 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8370 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8371 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8372 $as_echo_n "(cached) " >&6
8373 else
8374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8375 /* end confdefs.h. */
8376 int i;
8377 _ACEOF
8378 if ac_fn_c_try_compile "$LINENO"; then :
8379 xorg_cv_cc_flag_unknown_warning_option=yes
8380 else
8381 xorg_cv_cc_flag_unknown_warning_option=no
8382 fi
8383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8384 fi
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8386 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8387 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8388 CFLAGS="$xorg_testset_save_CFLAGS"
8389 fi
8390
8391 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8394 fi
8395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8397 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8398 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8399 $as_echo_n "(cached) " >&6
8400 else
8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8403 int i;
8404 _ACEOF
8405 if ac_fn_c_try_compile "$LINENO"; then :
8406 xorg_cv_cc_flag_unused_command_line_argument=yes
8407 else
8408 xorg_cv_cc_flag_unused_command_line_argument=no
8409 fi
8410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8411 fi
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8413 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8414 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8415 CFLAGS="$xorg_testset_save_CFLAGS"
8416 fi
8417
8418 found="no"
8419
8420 if test $found = "no" ; then
8421 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8423 fi
8424
8425 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8427 fi
8428
8429 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8430
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8432 $as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8433 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8434 if eval \${$cacheid+:} false; then :
8435 $as_echo_n "(cached) " >&6
8436 else
8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438 /* end confdefs.h. */
8439 int i;
8440 int
8441 main ()
8442 {
8443
8444 ;
8445 return 0;
8446 }
8447 _ACEOF
8448 if ac_fn_c_try_link "$LINENO"; then :
8449 eval $cacheid=yes
8450 else
8451 eval $cacheid=no
8452 fi
8453 rm -f core conftest.err conftest.$ac_objext \
8454 conftest$ac_exeext conftest.$ac_ext
8455 fi
8456
8457
8458 CFLAGS="$xorg_testset_save_CFLAGS"
8459
8460 eval supported=\$$cacheid
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8462 $as_echo "$supported" >&6; }
8463 if test "$supported" = "yes" ; then
8464 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8465 found="yes"
8466 fi
8467 fi
8468
8469 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8470 else
8471 { $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
8472 $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;}
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486 xorg_testset_save_CFLAGS="$CFLAGS"
8487
8488 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8491 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8492 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8493 $as_echo_n "(cached) " >&6
8494 else
8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h. */
8497 int i;
8498 _ACEOF
8499 if ac_fn_c_try_compile "$LINENO"; then :
8500 xorg_cv_cc_flag_unknown_warning_option=yes
8501 else
8502 xorg_cv_cc_flag_unknown_warning_option=no
8503 fi
8504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8505 fi
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8507 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8508 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8509 CFLAGS="$xorg_testset_save_CFLAGS"
8510 fi
8511
8512 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8515 fi
8516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8518 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8519 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8520 $as_echo_n "(cached) " >&6
8521 else
8522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h. */
8524 int i;
8525 _ACEOF
8526 if ac_fn_c_try_compile "$LINENO"; then :
8527 xorg_cv_cc_flag_unused_command_line_argument=yes
8528 else
8529 xorg_cv_cc_flag_unused_command_line_argument=no
8530 fi
8531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8532 fi
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8534 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8536 CFLAGS="$xorg_testset_save_CFLAGS"
8537 fi
8538
8539 found="no"
8540
8541 if test $found = "no" ; then
8542 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8544 fi
8545
8546 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8548 fi
8549
8550 CFLAGS="$CFLAGS -Wimplicit"
8551
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8553 $as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8554 cacheid=xorg_cv_cc_flag__Wimplicit
8555 if eval \${$cacheid+:} false; then :
8556 $as_echo_n "(cached) " >&6
8557 else
8558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559 /* end confdefs.h. */
8560 int i;
8561 int
8562 main ()
8563 {
8564
8565 ;
8566 return 0;
8567 }
8568 _ACEOF
8569 if ac_fn_c_try_link "$LINENO"; then :
8570 eval $cacheid=yes
8571 else
8572 eval $cacheid=no
8573 fi
8574 rm -f core conftest.err conftest.$ac_objext \
8575 conftest$ac_exeext conftest.$ac_ext
8576 fi
8577
8578
8579 CFLAGS="$xorg_testset_save_CFLAGS"
8580
8581 eval supported=\$$cacheid
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8583 $as_echo "$supported" >&6; }
8584 if test "$supported" = "yes" ; then
8585 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8586 found="yes"
8587 fi
8588 fi
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604 xorg_testset_save_CFLAGS="$CFLAGS"
8605
8606 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8609 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8610 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8611 $as_echo_n "(cached) " >&6
8612 else
8613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614 /* end confdefs.h. */
8615 int i;
8616 _ACEOF
8617 if ac_fn_c_try_compile "$LINENO"; then :
8618 xorg_cv_cc_flag_unknown_warning_option=yes
8619 else
8620 xorg_cv_cc_flag_unknown_warning_option=no
8621 fi
8622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8623 fi
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8625 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8627 CFLAGS="$xorg_testset_save_CFLAGS"
8628 fi
8629
8630 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8633 fi
8634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8636 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8637 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8638 $as_echo_n "(cached) " >&6
8639 else
8640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641 /* end confdefs.h. */
8642 int i;
8643 _ACEOF
8644 if ac_fn_c_try_compile "$LINENO"; then :
8645 xorg_cv_cc_flag_unused_command_line_argument=yes
8646 else
8647 xorg_cv_cc_flag_unused_command_line_argument=no
8648 fi
8649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8650 fi
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8652 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8653 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8654 CFLAGS="$xorg_testset_save_CFLAGS"
8655 fi
8656
8657 found="no"
8658
8659 if test $found = "no" ; then
8660 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8662 fi
8663
8664 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8666 fi
8667
8668 CFLAGS="$CFLAGS -Wnonnull"
8669
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8671 $as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8672 cacheid=xorg_cv_cc_flag__Wnonnull
8673 if eval \${$cacheid+:} false; then :
8674 $as_echo_n "(cached) " >&6
8675 else
8676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8677 /* end confdefs.h. */
8678 int i;
8679 int
8680 main ()
8681 {
8682
8683 ;
8684 return 0;
8685 }
8686 _ACEOF
8687 if ac_fn_c_try_link "$LINENO"; then :
8688 eval $cacheid=yes
8689 else
8690 eval $cacheid=no
8691 fi
8692 rm -f core conftest.err conftest.$ac_objext \
8693 conftest$ac_exeext conftest.$ac_ext
8694 fi
8695
8696
8697 CFLAGS="$xorg_testset_save_CFLAGS"
8698
8699 eval supported=\$$cacheid
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8701 $as_echo "$supported" >&6; }
8702 if test "$supported" = "yes" ; then
8703 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8704 found="yes"
8705 fi
8706 fi
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722 xorg_testset_save_CFLAGS="$CFLAGS"
8723
8724 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8727 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8728 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8729 $as_echo_n "(cached) " >&6
8730 else
8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h. */
8733 int i;
8734 _ACEOF
8735 if ac_fn_c_try_compile "$LINENO"; then :
8736 xorg_cv_cc_flag_unknown_warning_option=yes
8737 else
8738 xorg_cv_cc_flag_unknown_warning_option=no
8739 fi
8740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8741 fi
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8743 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8744 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8745 CFLAGS="$xorg_testset_save_CFLAGS"
8746 fi
8747
8748 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8751 fi
8752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8754 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8755 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8756 $as_echo_n "(cached) " >&6
8757 else
8758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8759 /* end confdefs.h. */
8760 int i;
8761 _ACEOF
8762 if ac_fn_c_try_compile "$LINENO"; then :
8763 xorg_cv_cc_flag_unused_command_line_argument=yes
8764 else
8765 xorg_cv_cc_flag_unused_command_line_argument=no
8766 fi
8767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8768 fi
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8770 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8772 CFLAGS="$xorg_testset_save_CFLAGS"
8773 fi
8774
8775 found="no"
8776
8777 if test $found = "no" ; then
8778 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8780 fi
8781
8782 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8784 fi
8785
8786 CFLAGS="$CFLAGS -Winit-self"
8787
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8789 $as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8790 cacheid=xorg_cv_cc_flag__Winit_self
8791 if eval \${$cacheid+:} false; then :
8792 $as_echo_n "(cached) " >&6
8793 else
8794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795 /* end confdefs.h. */
8796 int i;
8797 int
8798 main ()
8799 {
8800
8801 ;
8802 return 0;
8803 }
8804 _ACEOF
8805 if ac_fn_c_try_link "$LINENO"; then :
8806 eval $cacheid=yes
8807 else
8808 eval $cacheid=no
8809 fi
8810 rm -f core conftest.err conftest.$ac_objext \
8811 conftest$ac_exeext conftest.$ac_ext
8812 fi
8813
8814
8815 CFLAGS="$xorg_testset_save_CFLAGS"
8816
8817 eval supported=\$$cacheid
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8819 $as_echo "$supported" >&6; }
8820 if test "$supported" = "yes" ; then
8821 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8822 found="yes"
8823 fi
8824 fi
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840 xorg_testset_save_CFLAGS="$CFLAGS"
8841
8842 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8845 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8846 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8847 $as_echo_n "(cached) " >&6
8848 else
8849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8850 /* end confdefs.h. */
8851 int i;
8852 _ACEOF
8853 if ac_fn_c_try_compile "$LINENO"; then :
8854 xorg_cv_cc_flag_unknown_warning_option=yes
8855 else
8856 xorg_cv_cc_flag_unknown_warning_option=no
8857 fi
8858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8859 fi
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8861 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8862 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8863 CFLAGS="$xorg_testset_save_CFLAGS"
8864 fi
8865
8866 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8869 fi
8870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8872 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8873 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8874 $as_echo_n "(cached) " >&6
8875 else
8876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8877 /* end confdefs.h. */
8878 int i;
8879 _ACEOF
8880 if ac_fn_c_try_compile "$LINENO"; then :
8881 xorg_cv_cc_flag_unused_command_line_argument=yes
8882 else
8883 xorg_cv_cc_flag_unused_command_line_argument=no
8884 fi
8885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8886 fi
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8888 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8889 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8890 CFLAGS="$xorg_testset_save_CFLAGS"
8891 fi
8892
8893 found="no"
8894
8895 if test $found = "no" ; then
8896 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8898 fi
8899
8900 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8902 fi
8903
8904 CFLAGS="$CFLAGS -Wmain"
8905
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
8907 $as_echo_n "checking if $CC supports-Wmain... " >&6; }
8908 cacheid=xorg_cv_cc_flag__Wmain
8909 if eval \${$cacheid+:} false; then :
8910 $as_echo_n "(cached) " >&6
8911 else
8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h. */
8914 int i;
8915 int
8916 main ()
8917 {
8918
8919 ;
8920 return 0;
8921 }
8922 _ACEOF
8923 if ac_fn_c_try_link "$LINENO"; then :
8924 eval $cacheid=yes
8925 else
8926 eval $cacheid=no
8927 fi
8928 rm -f core conftest.err conftest.$ac_objext \
8929 conftest$ac_exeext conftest.$ac_ext
8930 fi
8931
8932
8933 CFLAGS="$xorg_testset_save_CFLAGS"
8934
8935 eval supported=\$$cacheid
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8937 $as_echo "$supported" >&6; }
8938 if test "$supported" = "yes" ; then
8939 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8940 found="yes"
8941 fi
8942 fi
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958 xorg_testset_save_CFLAGS="$CFLAGS"
8959
8960 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8963 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8964 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8965 $as_echo_n "(cached) " >&6
8966 else
8967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8968 /* end confdefs.h. */
8969 int i;
8970 _ACEOF
8971 if ac_fn_c_try_compile "$LINENO"; then :
8972 xorg_cv_cc_flag_unknown_warning_option=yes
8973 else
8974 xorg_cv_cc_flag_unknown_warning_option=no
8975 fi
8976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8977 fi
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8979 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8980 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8981 CFLAGS="$xorg_testset_save_CFLAGS"
8982 fi
8983
8984 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8987 fi
8988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8990 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8991 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8992 $as_echo_n "(cached) " >&6
8993 else
8994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995 /* end confdefs.h. */
8996 int i;
8997 _ACEOF
8998 if ac_fn_c_try_compile "$LINENO"; then :
8999 xorg_cv_cc_flag_unused_command_line_argument=yes
9000 else
9001 xorg_cv_cc_flag_unused_command_line_argument=no
9002 fi
9003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9004 fi
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9006 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9007 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9008 CFLAGS="$xorg_testset_save_CFLAGS"
9009 fi
9010
9011 found="no"
9012
9013 if test $found = "no" ; then
9014 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9016 fi
9017
9018 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9020 fi
9021
9022 CFLAGS="$CFLAGS -Wmissing-braces"
9023
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
9025 $as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
9026 cacheid=xorg_cv_cc_flag__Wmissing_braces
9027 if eval \${$cacheid+:} false; then :
9028 $as_echo_n "(cached) " >&6
9029 else
9030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h. */
9032 int i;
9033 int
9034 main ()
9035 {
9036
9037 ;
9038 return 0;
9039 }
9040 _ACEOF
9041 if ac_fn_c_try_link "$LINENO"; then :
9042 eval $cacheid=yes
9043 else
9044 eval $cacheid=no
9045 fi
9046 rm -f core conftest.err conftest.$ac_objext \
9047 conftest$ac_exeext conftest.$ac_ext
9048 fi
9049
9050
9051 CFLAGS="$xorg_testset_save_CFLAGS"
9052
9053 eval supported=\$$cacheid
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9055 $as_echo "$supported" >&6; }
9056 if test "$supported" = "yes" ; then
9057 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9058 found="yes"
9059 fi
9060 fi
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076 xorg_testset_save_CFLAGS="$CFLAGS"
9077
9078 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9081 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9082 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9083 $as_echo_n "(cached) " >&6
9084 else
9085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086 /* end confdefs.h. */
9087 int i;
9088 _ACEOF
9089 if ac_fn_c_try_compile "$LINENO"; then :
9090 xorg_cv_cc_flag_unknown_warning_option=yes
9091 else
9092 xorg_cv_cc_flag_unknown_warning_option=no
9093 fi
9094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9095 fi
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9097 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9099 CFLAGS="$xorg_testset_save_CFLAGS"
9100 fi
9101
9102 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9105 fi
9106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9108 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9109 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9110 $as_echo_n "(cached) " >&6
9111 else
9112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9113 /* end confdefs.h. */
9114 int i;
9115 _ACEOF
9116 if ac_fn_c_try_compile "$LINENO"; then :
9117 xorg_cv_cc_flag_unused_command_line_argument=yes
9118 else
9119 xorg_cv_cc_flag_unused_command_line_argument=no
9120 fi
9121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9122 fi
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9124 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9126 CFLAGS="$xorg_testset_save_CFLAGS"
9127 fi
9128
9129 found="no"
9130
9131 if test $found = "no" ; then
9132 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9134 fi
9135
9136 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9138 fi
9139
9140 CFLAGS="$CFLAGS -Wsequence-point"
9141
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
9143 $as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
9144 cacheid=xorg_cv_cc_flag__Wsequence_point
9145 if eval \${$cacheid+:} false; then :
9146 $as_echo_n "(cached) " >&6
9147 else
9148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9149 /* end confdefs.h. */
9150 int i;
9151 int
9152 main ()
9153 {
9154
9155 ;
9156 return 0;
9157 }
9158 _ACEOF
9159 if ac_fn_c_try_link "$LINENO"; then :
9160 eval $cacheid=yes
9161 else
9162 eval $cacheid=no
9163 fi
9164 rm -f core conftest.err conftest.$ac_objext \
9165 conftest$ac_exeext conftest.$ac_ext
9166 fi
9167
9168
9169 CFLAGS="$xorg_testset_save_CFLAGS"
9170
9171 eval supported=\$$cacheid
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9173 $as_echo "$supported" >&6; }
9174 if test "$supported" = "yes" ; then
9175 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9176 found="yes"
9177 fi
9178 fi
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194 xorg_testset_save_CFLAGS="$CFLAGS"
9195
9196 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9199 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9200 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9201 $as_echo_n "(cached) " >&6
9202 else
9203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204 /* end confdefs.h. */
9205 int i;
9206 _ACEOF
9207 if ac_fn_c_try_compile "$LINENO"; then :
9208 xorg_cv_cc_flag_unknown_warning_option=yes
9209 else
9210 xorg_cv_cc_flag_unknown_warning_option=no
9211 fi
9212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9213 fi
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9215 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9217 CFLAGS="$xorg_testset_save_CFLAGS"
9218 fi
9219
9220 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9223 fi
9224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9226 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9227 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9228 $as_echo_n "(cached) " >&6
9229 else
9230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h. */
9232 int i;
9233 _ACEOF
9234 if ac_fn_c_try_compile "$LINENO"; then :
9235 xorg_cv_cc_flag_unused_command_line_argument=yes
9236 else
9237 xorg_cv_cc_flag_unused_command_line_argument=no
9238 fi
9239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9240 fi
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9242 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9243 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9244 CFLAGS="$xorg_testset_save_CFLAGS"
9245 fi
9246
9247 found="no"
9248
9249 if test $found = "no" ; then
9250 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9252 fi
9253
9254 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9256 fi
9257
9258 CFLAGS="$CFLAGS -Wreturn-type"
9259
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9261 $as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9262 cacheid=xorg_cv_cc_flag__Wreturn_type
9263 if eval \${$cacheid+:} false; then :
9264 $as_echo_n "(cached) " >&6
9265 else
9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9267 /* end confdefs.h. */
9268 int i;
9269 int
9270 main ()
9271 {
9272
9273 ;
9274 return 0;
9275 }
9276 _ACEOF
9277 if ac_fn_c_try_link "$LINENO"; then :
9278 eval $cacheid=yes
9279 else
9280 eval $cacheid=no
9281 fi
9282 rm -f core conftest.err conftest.$ac_objext \
9283 conftest$ac_exeext conftest.$ac_ext
9284 fi
9285
9286
9287 CFLAGS="$xorg_testset_save_CFLAGS"
9288
9289 eval supported=\$$cacheid
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9291 $as_echo "$supported" >&6; }
9292 if test "$supported" = "yes" ; then
9293 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9294 found="yes"
9295 fi
9296 fi
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312 xorg_testset_save_CFLAGS="$CFLAGS"
9313
9314 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9317 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9318 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9319 $as_echo_n "(cached) " >&6
9320 else
9321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9322 /* end confdefs.h. */
9323 int i;
9324 _ACEOF
9325 if ac_fn_c_try_compile "$LINENO"; then :
9326 xorg_cv_cc_flag_unknown_warning_option=yes
9327 else
9328 xorg_cv_cc_flag_unknown_warning_option=no
9329 fi
9330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9331 fi
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9333 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9334 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9335 CFLAGS="$xorg_testset_save_CFLAGS"
9336 fi
9337
9338 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9341 fi
9342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9344 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9345 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9346 $as_echo_n "(cached) " >&6
9347 else
9348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9349 /* end confdefs.h. */
9350 int i;
9351 _ACEOF
9352 if ac_fn_c_try_compile "$LINENO"; then :
9353 xorg_cv_cc_flag_unused_command_line_argument=yes
9354 else
9355 xorg_cv_cc_flag_unused_command_line_argument=no
9356 fi
9357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9358 fi
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9360 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9361 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9362 CFLAGS="$xorg_testset_save_CFLAGS"
9363 fi
9364
9365 found="no"
9366
9367 if test $found = "no" ; then
9368 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9370 fi
9371
9372 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9374 fi
9375
9376 CFLAGS="$CFLAGS -Wtrigraphs"
9377
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9379 $as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9380 cacheid=xorg_cv_cc_flag__Wtrigraphs
9381 if eval \${$cacheid+:} false; then :
9382 $as_echo_n "(cached) " >&6
9383 else
9384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9385 /* end confdefs.h. */
9386 int i;
9387 int
9388 main ()
9389 {
9390
9391 ;
9392 return 0;
9393 }
9394 _ACEOF
9395 if ac_fn_c_try_link "$LINENO"; then :
9396 eval $cacheid=yes
9397 else
9398 eval $cacheid=no
9399 fi
9400 rm -f core conftest.err conftest.$ac_objext \
9401 conftest$ac_exeext conftest.$ac_ext
9402 fi
9403
9404
9405 CFLAGS="$xorg_testset_save_CFLAGS"
9406
9407 eval supported=\$$cacheid
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9409 $as_echo "$supported" >&6; }
9410 if test "$supported" = "yes" ; then
9411 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9412 found="yes"
9413 fi
9414 fi
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430 xorg_testset_save_CFLAGS="$CFLAGS"
9431
9432 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9435 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9436 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9437 $as_echo_n "(cached) " >&6
9438 else
9439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440 /* end confdefs.h. */
9441 int i;
9442 _ACEOF
9443 if ac_fn_c_try_compile "$LINENO"; then :
9444 xorg_cv_cc_flag_unknown_warning_option=yes
9445 else
9446 xorg_cv_cc_flag_unknown_warning_option=no
9447 fi
9448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9449 fi
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9451 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9452 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9453 CFLAGS="$xorg_testset_save_CFLAGS"
9454 fi
9455
9456 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9459 fi
9460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9462 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9463 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9464 $as_echo_n "(cached) " >&6
9465 else
9466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9467 /* end confdefs.h. */
9468 int i;
9469 _ACEOF
9470 if ac_fn_c_try_compile "$LINENO"; then :
9471 xorg_cv_cc_flag_unused_command_line_argument=yes
9472 else
9473 xorg_cv_cc_flag_unused_command_line_argument=no
9474 fi
9475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9476 fi
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9478 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9479 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9480 CFLAGS="$xorg_testset_save_CFLAGS"
9481 fi
9482
9483 found="no"
9484
9485 if test $found = "no" ; then
9486 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9488 fi
9489
9490 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9492 fi
9493
9494 CFLAGS="$CFLAGS -Warray-bounds"
9495
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9497 $as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9498 cacheid=xorg_cv_cc_flag__Warray_bounds
9499 if eval \${$cacheid+:} false; then :
9500 $as_echo_n "(cached) " >&6
9501 else
9502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503 /* end confdefs.h. */
9504 int i;
9505 int
9506 main ()
9507 {
9508
9509 ;
9510 return 0;
9511 }
9512 _ACEOF
9513 if ac_fn_c_try_link "$LINENO"; then :
9514 eval $cacheid=yes
9515 else
9516 eval $cacheid=no
9517 fi
9518 rm -f core conftest.err conftest.$ac_objext \
9519 conftest$ac_exeext conftest.$ac_ext
9520 fi
9521
9522
9523 CFLAGS="$xorg_testset_save_CFLAGS"
9524
9525 eval supported=\$$cacheid
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9527 $as_echo "$supported" >&6; }
9528 if test "$supported" = "yes" ; then
9529 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9530 found="yes"
9531 fi
9532 fi
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548 xorg_testset_save_CFLAGS="$CFLAGS"
9549
9550 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9553 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9554 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9555 $as_echo_n "(cached) " >&6
9556 else
9557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558 /* end confdefs.h. */
9559 int i;
9560 _ACEOF
9561 if ac_fn_c_try_compile "$LINENO"; then :
9562 xorg_cv_cc_flag_unknown_warning_option=yes
9563 else
9564 xorg_cv_cc_flag_unknown_warning_option=no
9565 fi
9566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9567 fi
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9569 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9570 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9571 CFLAGS="$xorg_testset_save_CFLAGS"
9572 fi
9573
9574 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9576 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9577 fi
9578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9580 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9581 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9582 $as_echo_n "(cached) " >&6
9583 else
9584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585 /* end confdefs.h. */
9586 int i;
9587 _ACEOF
9588 if ac_fn_c_try_compile "$LINENO"; then :
9589 xorg_cv_cc_flag_unused_command_line_argument=yes
9590 else
9591 xorg_cv_cc_flag_unused_command_line_argument=no
9592 fi
9593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9594 fi
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9596 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9597 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9598 CFLAGS="$xorg_testset_save_CFLAGS"
9599 fi
9600
9601 found="no"
9602
9603 if test $found = "no" ; then
9604 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9606 fi
9607
9608 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9610 fi
9611
9612 CFLAGS="$CFLAGS -Wwrite-strings"
9613
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9615 $as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9616 cacheid=xorg_cv_cc_flag__Wwrite_strings
9617 if eval \${$cacheid+:} false; then :
9618 $as_echo_n "(cached) " >&6
9619 else
9620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621 /* end confdefs.h. */
9622 int i;
9623 int
9624 main ()
9625 {
9626
9627 ;
9628 return 0;
9629 }
9630 _ACEOF
9631 if ac_fn_c_try_link "$LINENO"; then :
9632 eval $cacheid=yes
9633 else
9634 eval $cacheid=no
9635 fi
9636 rm -f core conftest.err conftest.$ac_objext \
9637 conftest$ac_exeext conftest.$ac_ext
9638 fi
9639
9640
9641 CFLAGS="$xorg_testset_save_CFLAGS"
9642
9643 eval supported=\$$cacheid
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9645 $as_echo "$supported" >&6; }
9646 if test "$supported" = "yes" ; then
9647 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9648 found="yes"
9649 fi
9650 fi
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666 xorg_testset_save_CFLAGS="$CFLAGS"
9667
9668 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9671 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9672 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9673 $as_echo_n "(cached) " >&6
9674 else
9675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9676 /* end confdefs.h. */
9677 int i;
9678 _ACEOF
9679 if ac_fn_c_try_compile "$LINENO"; then :
9680 xorg_cv_cc_flag_unknown_warning_option=yes
9681 else
9682 xorg_cv_cc_flag_unknown_warning_option=no
9683 fi
9684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9685 fi
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9687 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9688 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9689 CFLAGS="$xorg_testset_save_CFLAGS"
9690 fi
9691
9692 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9695 fi
9696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9698 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9699 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9700 $as_echo_n "(cached) " >&6
9701 else
9702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9703 /* end confdefs.h. */
9704 int i;
9705 _ACEOF
9706 if ac_fn_c_try_compile "$LINENO"; then :
9707 xorg_cv_cc_flag_unused_command_line_argument=yes
9708 else
9709 xorg_cv_cc_flag_unused_command_line_argument=no
9710 fi
9711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9712 fi
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9714 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9715 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9716 CFLAGS="$xorg_testset_save_CFLAGS"
9717 fi
9718
9719 found="no"
9720
9721 if test $found = "no" ; then
9722 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9724 fi
9725
9726 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9728 fi
9729
9730 CFLAGS="$CFLAGS -Waddress"
9731
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9733 $as_echo_n "checking if $CC supports-Waddress... " >&6; }
9734 cacheid=xorg_cv_cc_flag__Waddress
9735 if eval \${$cacheid+:} false; then :
9736 $as_echo_n "(cached) " >&6
9737 else
9738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9739 /* end confdefs.h. */
9740 int i;
9741 int
9742 main ()
9743 {
9744
9745 ;
9746 return 0;
9747 }
9748 _ACEOF
9749 if ac_fn_c_try_link "$LINENO"; then :
9750 eval $cacheid=yes
9751 else
9752 eval $cacheid=no
9753 fi
9754 rm -f core conftest.err conftest.$ac_objext \
9755 conftest$ac_exeext conftest.$ac_ext
9756 fi
9757
9758
9759 CFLAGS="$xorg_testset_save_CFLAGS"
9760
9761 eval supported=\$$cacheid
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9763 $as_echo "$supported" >&6; }
9764 if test "$supported" = "yes" ; then
9765 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9766 found="yes"
9767 fi
9768 fi
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784 xorg_testset_save_CFLAGS="$CFLAGS"
9785
9786 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9789 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9790 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9791 $as_echo_n "(cached) " >&6
9792 else
9793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9794 /* end confdefs.h. */
9795 int i;
9796 _ACEOF
9797 if ac_fn_c_try_compile "$LINENO"; then :
9798 xorg_cv_cc_flag_unknown_warning_option=yes
9799 else
9800 xorg_cv_cc_flag_unknown_warning_option=no
9801 fi
9802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9803 fi
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9805 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9806 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9807 CFLAGS="$xorg_testset_save_CFLAGS"
9808 fi
9809
9810 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9813 fi
9814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9816 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9817 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9818 $as_echo_n "(cached) " >&6
9819 else
9820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821 /* end confdefs.h. */
9822 int i;
9823 _ACEOF
9824 if ac_fn_c_try_compile "$LINENO"; then :
9825 xorg_cv_cc_flag_unused_command_line_argument=yes
9826 else
9827 xorg_cv_cc_flag_unused_command_line_argument=no
9828 fi
9829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9830 fi
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9832 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9833 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9834 CFLAGS="$xorg_testset_save_CFLAGS"
9835 fi
9836
9837 found="no"
9838
9839 if test $found = "no" ; then
9840 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9842 fi
9843
9844 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9846 fi
9847
9848 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9849
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9851 $as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
9852 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9853 if eval \${$cacheid+:} false; then :
9854 $as_echo_n "(cached) " >&6
9855 else
9856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9857 /* end confdefs.h. */
9858 int i;
9859 int
9860 main ()
9861 {
9862
9863 ;
9864 return 0;
9865 }
9866 _ACEOF
9867 if ac_fn_c_try_link "$LINENO"; then :
9868 eval $cacheid=yes
9869 else
9870 eval $cacheid=no
9871 fi
9872 rm -f core conftest.err conftest.$ac_objext \
9873 conftest$ac_exeext conftest.$ac_ext
9874 fi
9875
9876
9877 CFLAGS="$xorg_testset_save_CFLAGS"
9878
9879 eval supported=\$$cacheid
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9881 $as_echo "$supported" >&6; }
9882 if test "$supported" = "yes" ; then
9883 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9884 found="yes"
9885 fi
9886 fi
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902 xorg_testset_save_CFLAGS="$CFLAGS"
9903
9904 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9907 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9908 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9909 $as_echo_n "(cached) " >&6
9910 else
9911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912 /* end confdefs.h. */
9913 int i;
9914 _ACEOF
9915 if ac_fn_c_try_compile "$LINENO"; then :
9916 xorg_cv_cc_flag_unknown_warning_option=yes
9917 else
9918 xorg_cv_cc_flag_unknown_warning_option=no
9919 fi
9920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9921 fi
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9923 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9924 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9925 CFLAGS="$xorg_testset_save_CFLAGS"
9926 fi
9927
9928 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9930 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9931 fi
9932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9934 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9935 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9936 $as_echo_n "(cached) " >&6
9937 else
9938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9939 /* end confdefs.h. */
9940 int i;
9941 _ACEOF
9942 if ac_fn_c_try_compile "$LINENO"; then :
9943 xorg_cv_cc_flag_unused_command_line_argument=yes
9944 else
9945 xorg_cv_cc_flag_unused_command_line_argument=no
9946 fi
9947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9948 fi
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9950 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9952 CFLAGS="$xorg_testset_save_CFLAGS"
9953 fi
9954
9955 found="no"
9956
9957 if test $found = "no" ; then
9958 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9960 fi
9961
9962 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9964 fi
9965
9966 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9967
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
9969 $as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
9970 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9971 if eval \${$cacheid+:} false; then :
9972 $as_echo_n "(cached) " >&6
9973 else
9974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9975 /* end confdefs.h. */
9976 int i;
9977 int
9978 main ()
9979 {
9980
9981 ;
9982 return 0;
9983 }
9984 _ACEOF
9985 if ac_fn_c_try_link "$LINENO"; then :
9986 eval $cacheid=yes
9987 else
9988 eval $cacheid=no
9989 fi
9990 rm -f core conftest.err conftest.$ac_objext \
9991 conftest$ac_exeext conftest.$ac_ext
9992 fi
9993
9994
9995 CFLAGS="$xorg_testset_save_CFLAGS"
9996
9997 eval supported=\$$cacheid
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9999 $as_echo "$supported" >&6; }
10000 if test "$supported" = "yes" ; then
10001 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10002 found="yes"
10003 fi
10004 fi
10005
10006
10007 fi
10008
10009
10010
10011
10012
10013
10014
10015 CWARNFLAGS="$BASE_CFLAGS"
10016 if test "x$GCC" = xyes ; then
10017 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10018 fi
10019
10020
10021
10022
10023
10024
10025
10026
10027 # Check whether --enable-strict-compilation was given.
10028 if test "${enable_strict_compilation+set}" = set; then :
10029 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10030 else
10031 STRICT_COMPILE=no
10032 fi
10033
10034
10035
10036
10037
10038
10039 STRICT_CFLAGS=""
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053 xorg_testset_save_CFLAGS="$CFLAGS"
10054
10055 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10058 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10059 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10060 $as_echo_n "(cached) " >&6
10061 else
10062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10063 /* end confdefs.h. */
10064 int i;
10065 _ACEOF
10066 if ac_fn_c_try_compile "$LINENO"; then :
10067 xorg_cv_cc_flag_unknown_warning_option=yes
10068 else
10069 xorg_cv_cc_flag_unknown_warning_option=no
10070 fi
10071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10072 fi
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10074 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10076 CFLAGS="$xorg_testset_save_CFLAGS"
10077 fi
10078
10079 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10082 fi
10083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10085 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10086 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10087 $as_echo_n "(cached) " >&6
10088 else
10089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10090 /* end confdefs.h. */
10091 int i;
10092 _ACEOF
10093 if ac_fn_c_try_compile "$LINENO"; then :
10094 xorg_cv_cc_flag_unused_command_line_argument=yes
10095 else
10096 xorg_cv_cc_flag_unused_command_line_argument=no
10097 fi
10098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10099 fi
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10101 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10103 CFLAGS="$xorg_testset_save_CFLAGS"
10104 fi
10105
10106 found="no"
10107
10108 if test $found = "no" ; then
10109 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10111 fi
10112
10113 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10115 fi
10116
10117 CFLAGS="$CFLAGS -pedantic"
10118
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
10120 $as_echo_n "checking if $CC supports-pedantic... " >&6; }
10121 cacheid=xorg_cv_cc_flag__pedantic
10122 if eval \${$cacheid+:} false; then :
10123 $as_echo_n "(cached) " >&6
10124 else
10125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10126 /* end confdefs.h. */
10127 int i;
10128 int
10129 main ()
10130 {
10131
10132 ;
10133 return 0;
10134 }
10135 _ACEOF
10136 if ac_fn_c_try_link "$LINENO"; then :
10137 eval $cacheid=yes
10138 else
10139 eval $cacheid=no
10140 fi
10141 rm -f core conftest.err conftest.$ac_objext \
10142 conftest$ac_exeext conftest.$ac_ext
10143 fi
10144
10145
10146 CFLAGS="$xorg_testset_save_CFLAGS"
10147
10148 eval supported=\$$cacheid
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10150 $as_echo "$supported" >&6; }
10151 if test "$supported" = "yes" ; then
10152 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10153 found="yes"
10154 fi
10155 fi
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171 xorg_testset_save_CFLAGS="$CFLAGS"
10172
10173 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10176 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10177 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10178 $as_echo_n "(cached) " >&6
10179 else
10180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181 /* end confdefs.h. */
10182 int i;
10183 _ACEOF
10184 if ac_fn_c_try_compile "$LINENO"; then :
10185 xorg_cv_cc_flag_unknown_warning_option=yes
10186 else
10187 xorg_cv_cc_flag_unknown_warning_option=no
10188 fi
10189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10190 fi
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10192 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10193 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10194 CFLAGS="$xorg_testset_save_CFLAGS"
10195 fi
10196
10197 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10200 fi
10201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10203 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10204 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10205 $as_echo_n "(cached) " >&6
10206 else
10207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10208 /* end confdefs.h. */
10209 int i;
10210 _ACEOF
10211 if ac_fn_c_try_compile "$LINENO"; then :
10212 xorg_cv_cc_flag_unused_command_line_argument=yes
10213 else
10214 xorg_cv_cc_flag_unused_command_line_argument=no
10215 fi
10216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10217 fi
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10219 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10220 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10221 CFLAGS="$xorg_testset_save_CFLAGS"
10222 fi
10223
10224 found="no"
10225
10226 if test $found = "no" ; then
10227 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10229 fi
10230
10231 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10233 fi
10234
10235 CFLAGS="$CFLAGS -Werror"
10236
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
10238 $as_echo_n "checking if $CC supports-Werror... " >&6; }
10239 cacheid=xorg_cv_cc_flag__Werror
10240 if eval \${$cacheid+:} false; then :
10241 $as_echo_n "(cached) " >&6
10242 else
10243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10244 /* end confdefs.h. */
10245 int i;
10246 int
10247 main ()
10248 {
10249
10250 ;
10251 return 0;
10252 }
10253 _ACEOF
10254 if ac_fn_c_try_link "$LINENO"; then :
10255 eval $cacheid=yes
10256 else
10257 eval $cacheid=no
10258 fi
10259 rm -f core conftest.err conftest.$ac_objext \
10260 conftest$ac_exeext conftest.$ac_ext
10261 fi
10262
10263
10264 CFLAGS="$xorg_testset_save_CFLAGS"
10265
10266 eval supported=\$$cacheid
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10268 $as_echo "$supported" >&6; }
10269 if test "$supported" = "yes" ; then
10270 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10271 found="yes"
10272 fi
10273 fi
10274
10275 if test $found = "no" ; then
10276 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10278 fi
10279
10280 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10282 fi
10283
10284 CFLAGS="$CFLAGS -errwarn"
10285
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10287 $as_echo_n "checking if $CC supports-errwarn... " >&6; }
10288 cacheid=xorg_cv_cc_flag__errwarn
10289 if eval \${$cacheid+:} false; then :
10290 $as_echo_n "(cached) " >&6
10291 else
10292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10293 /* end confdefs.h. */
10294 int i;
10295 int
10296 main ()
10297 {
10298
10299 ;
10300 return 0;
10301 }
10302 _ACEOF
10303 if ac_fn_c_try_link "$LINENO"; then :
10304 eval $cacheid=yes
10305 else
10306 eval $cacheid=no
10307 fi
10308 rm -f core conftest.err conftest.$ac_objext \
10309 conftest$ac_exeext conftest.$ac_ext
10310 fi
10311
10312
10313 CFLAGS="$xorg_testset_save_CFLAGS"
10314
10315 eval supported=\$$cacheid
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10317 $as_echo "$supported" >&6; }
10318 if test "$supported" = "yes" ; then
10319 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10320 found="yes"
10321 fi
10322 fi
10323
10324
10325
10326 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10327 # activate it with -Werror, so we add it here explicitly.
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341 xorg_testset_save_CFLAGS="$CFLAGS"
10342
10343 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10346 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10347 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10348 $as_echo_n "(cached) " >&6
10349 else
10350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10351 /* end confdefs.h. */
10352 int i;
10353 _ACEOF
10354 if ac_fn_c_try_compile "$LINENO"; then :
10355 xorg_cv_cc_flag_unknown_warning_option=yes
10356 else
10357 xorg_cv_cc_flag_unknown_warning_option=no
10358 fi
10359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10360 fi
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10362 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10363 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10364 CFLAGS="$xorg_testset_save_CFLAGS"
10365 fi
10366
10367 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10370 fi
10371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10373 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10374 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10375 $as_echo_n "(cached) " >&6
10376 else
10377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10378 /* end confdefs.h. */
10379 int i;
10380 _ACEOF
10381 if ac_fn_c_try_compile "$LINENO"; then :
10382 xorg_cv_cc_flag_unused_command_line_argument=yes
10383 else
10384 xorg_cv_cc_flag_unused_command_line_argument=no
10385 fi
10386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10387 fi
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10389 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10390 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10391 CFLAGS="$xorg_testset_save_CFLAGS"
10392 fi
10393
10394 found="no"
10395
10396 if test $found = "no" ; then
10397 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10399 fi
10400
10401 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10403 fi
10404
10405 CFLAGS="$CFLAGS -Werror=attributes"
10406
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10408 $as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10409 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10410 if eval \${$cacheid+:} false; then :
10411 $as_echo_n "(cached) " >&6
10412 else
10413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10414 /* end confdefs.h. */
10415 int i;
10416 int
10417 main ()
10418 {
10419
10420 ;
10421 return 0;
10422 }
10423 _ACEOF
10424 if ac_fn_c_try_link "$LINENO"; then :
10425 eval $cacheid=yes
10426 else
10427 eval $cacheid=no
10428 fi
10429 rm -f core conftest.err conftest.$ac_objext \
10430 conftest$ac_exeext conftest.$ac_ext
10431 fi
10432
10433
10434 CFLAGS="$xorg_testset_save_CFLAGS"
10435
10436 eval supported=\$$cacheid
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10438 $as_echo "$supported" >&6; }
10439 if test "$supported" = "yes" ; then
10440 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10441 found="yes"
10442 fi
10443 fi
10444
10445
10446
10447 if test "x$STRICT_COMPILE" = "xyes"; then
10448 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10449 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10450 fi
10451
10452
10453
10454
10455
10456
10457 cat >>confdefs.h <<_ACEOF
10458 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10459 _ACEOF
10460
10461 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10462 if test "x$PVM" = "x"; then
10463 PVM="0"
10464 fi
10465
10466 cat >>confdefs.h <<_ACEOF
10467 #define PACKAGE_VERSION_MINOR $PVM
10468 _ACEOF
10469
10470 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10471 if test "x$PVP" = "x"; then
10472 PVP="0"
10473 fi
10474
10475 cat >>confdefs.h <<_ACEOF
10476 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10477 _ACEOF
10478
10479
10480
10481 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10482 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10483 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10484 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10485
10486
10487
10488
10489 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10490 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10491 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10492 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10493 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10494
10495
10496
10497
10498
10499
10500 if test x$APP_MAN_SUFFIX = x ; then
10501 APP_MAN_SUFFIX=1
10502 fi
10503 if test x$APP_MAN_DIR = x ; then
10504 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10505 fi
10506
10507 if test x$LIB_MAN_SUFFIX = x ; then
10508 LIB_MAN_SUFFIX=3
10509 fi
10510 if test x$LIB_MAN_DIR = x ; then
10511 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10512 fi
10513
10514 if test x$FILE_MAN_SUFFIX = x ; then
10515 case $host_os in
10516 solaris*) FILE_MAN_SUFFIX=4 ;;
10517 *) FILE_MAN_SUFFIX=5 ;;
10518 esac
10519 fi
10520 if test x$FILE_MAN_DIR = x ; then
10521 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10522 fi
10523
10524 if test x$MISC_MAN_SUFFIX = x ; then
10525 case $host_os in
10526 solaris*) MISC_MAN_SUFFIX=5 ;;
10527 *) MISC_MAN_SUFFIX=7 ;;
10528 esac
10529 fi
10530 if test x$MISC_MAN_DIR = x ; then
10531 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10532 fi
10533
10534 if test x$DRIVER_MAN_SUFFIX = x ; then
10535 case $host_os in
10536 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10537 *) DRIVER_MAN_SUFFIX=4 ;;
10538 esac
10539 fi
10540 if test x$DRIVER_MAN_DIR = x ; then
10541 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10542 fi
10543
10544 if test x$ADMIN_MAN_SUFFIX = x ; then
10545 case $host_os in
10546 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10547 *) ADMIN_MAN_SUFFIX=8 ;;
10548 esac
10549 fi
10550 if test x$ADMIN_MAN_DIR = x ; then
10551 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10552 fi
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568 XORG_MAN_PAGE="X Version 11"
10569
10570 MAN_SUBSTS="\
10571 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10572 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10573 -e 's|__xservername__|Xorg|g' \
10574 -e 's|__xconfigfile__|xorg.conf|g' \
10575 -e 's|__projectroot__|\$(prefix)|g' \
10576 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10577 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10578 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10579 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10580 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10581 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10582 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10583
10584
10585
10586 # Check whether --enable-silent-rules was given.
10587 if test "${enable_silent_rules+set}" = set; then :
10588 enableval=$enable_silent_rules;
10589 fi
10590
10591 case $enable_silent_rules in
10592 yes) AM_DEFAULT_VERBOSITY=0;;
10593 no) AM_DEFAULT_VERBOSITY=1;;
10594 *) AM_DEFAULT_VERBOSITY=0;;
10595 esac
10596 AM_BACKSLASH='\'
10597
10598
10599
10600 # Internationalization & localization support
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5
10602 $as_echo_n "checking for library containing gettext... " >&6; }
10603 if ${ac_cv_search_gettext+:} false; then :
10604 $as_echo_n "(cached) " >&6
10605 else
10606 ac_func_search_save_LIBS=$LIBS
10607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10608 /* end confdefs.h. */
10609
10610 /* Override any GCC internal prototype to avoid an error.
10611 Use char because int might match the return type of a GCC
10612 builtin and then its argument prototype would still apply. */
10613 #ifdef __cplusplus
10614 extern "C"
10615 #endif
10616 char gettext ();
10617 int
10618 main ()
10619 {
10620 return gettext ();
10621 ;
10622 return 0;
10623 }
10624 _ACEOF
10625 for ac_lib in '' intl; do
10626 if test -z "$ac_lib"; then
10627 ac_res="none required"
10628 else
10629 ac_res=-l$ac_lib
10630 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10631 fi
10632 if ac_fn_c_try_link "$LINENO"; then :
10633 ac_cv_search_gettext=$ac_res
10634 fi
10635 rm -f core conftest.err conftest.$ac_objext \
10636 conftest$ac_exeext
10637 if ${ac_cv_search_gettext+:} false; then :
10638 break
10639 fi
10640 done
10641 if ${ac_cv_search_gettext+:} false; then :
10642
10643 else
10644 ac_cv_search_gettext=no
10645 fi
10646 rm conftest.$ac_ext
10647 LIBS=$ac_func_search_save_LIBS
10648 fi
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5
10650 $as_echo "$ac_cv_search_gettext" >&6; }
10651 ac_res=$ac_cv_search_gettext
10652 if test "$ac_res" != no; then :
10653 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10654 USE_GETTEXT="yes"
10655 else
10656 USE_GETTEXT="no"
10657 fi
10658
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install localized messages" >&5
10660 $as_echo_n "checking where to install localized messages... " >&6; }
10661
10662 # Check whether --with-localedir was given.
10663 if test "${with_localedir+set}" = set; then :
10664 withval=$with_localedir; LOCALEDIR=${withval}
10665 else
10666 LOCALEDIR=${datadir}/locale
10667 fi
10668
10669
10670 prefix_NONE=
10671 exec_prefix_NONE=
10672 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
10673 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
10674 eval ax_define_dir="\"$LOCALEDIR\""
10675 eval ax_define_dir="\"$ax_define_dir\""
10676 LOCALEDIR="$ax_define_dir"
10677
10678
10679 cat >>confdefs.h <<_ACEOF
10680 #define LOCALEDIR "$ax_define_dir"
10681 _ACEOF
10682
10683 test "$prefix_NONE" && prefix=NONE
10684 test "$exec_prefix_NONE" && exec_prefix=NONE
10685
10686 if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5
10688 $as_echo "nowhere" >&6; }
10689 USE_GETTEXT="no"
10690 else
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALEDIR" >&5
10692 $as_echo "$LOCALEDIR" >&6; }
10693 fi
10694
10695 if test "x$USE_GETTEXT" = "xyes" ; then
10696
10697 $as_echo "#define USE_GETTEXT 1" >>confdefs.h
10698
10699 fi
10700 if test "x$USE_GETTEXT" = "xyes"; then
10701 USE_GETTEXT_TRUE=
10702 USE_GETTEXT_FALSE='#'
10703 else
10704 USE_GETTEXT_TRUE='#'
10705 USE_GETTEXT_FALSE=
10706 fi
10707
10708
10709
10710 ### How to check load average on various OS'es:
10711
10712 # getloadavg: 4.3BSD-Reno & later, glibc 2.2 & later, Solaris 7 & later
10713 # BSD & GNU libc use <stdlib.h>, Solaris requires <sys/loadavg.h>
10714 for ac_func in getloadavg
10715 do :
10716 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
10717 if test "x$ac_cv_func_getloadavg" = xyes; then :
10718 cat >>confdefs.h <<_ACEOF
10719 #define HAVE_GETLOADAVG 1
10720 _ACEOF
10721 for ac_header in sys/loadavg.h
10722 do :
10723 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
10724 if test "x$ac_cv_header_sys_loadavg_h" = xyes; then :
10725 cat >>confdefs.h <<_ACEOF
10726 #define HAVE_SYS_LOADAVG_H 1
10727 _ACEOF
10728
10729 fi
10730
10731 done
10732
10733 fi
10734 done
10735
10736
10737 # Checks for pkg-config packages
10738
10739 pkg_failed=no
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLOAD" >&5
10741 $as_echo_n "checking for XLOAD... " >&6; }
10742
10743 if test -n "$XLOAD_CFLAGS"; then
10744 pkg_cv_XLOAD_CFLAGS="$XLOAD_CFLAGS"
10745 elif test -n "$PKG_CONFIG"; then
10746 if test -n "$PKG_CONFIG" && \
10747 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11 xproto >= 7.0.17\""; } >&5
10748 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11 xproto >= 7.0.17") 2>&5
10749 ac_status=$?
10750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10751 test $ac_status = 0; }; then
10752 pkg_cv_XLOAD_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt x11 xproto >= 7.0.17" 2>/dev/null`
10753 else
10754 pkg_failed=yes
10755 fi
10756 else
10757 pkg_failed=untried
10758 fi
10759 if test -n "$XLOAD_LIBS"; then
10760 pkg_cv_XLOAD_LIBS="$XLOAD_LIBS"
10761 elif test -n "$PKG_CONFIG"; then
10762 if test -n "$PKG_CONFIG" && \
10763 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11 xproto >= 7.0.17\""; } >&5
10764 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11 xproto >= 7.0.17") 2>&5
10765 ac_status=$?
10766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10767 test $ac_status = 0; }; then
10768 pkg_cv_XLOAD_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt x11 xproto >= 7.0.17" 2>/dev/null`
10769 else
10770 pkg_failed=yes
10771 fi
10772 else
10773 pkg_failed=untried
10774 fi
10775
10776
10777
10778 if test $pkg_failed = yes; then
10779
10780 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10781 _pkg_short_errors_supported=yes
10782 else
10783 _pkg_short_errors_supported=no
10784 fi
10785 if test $_pkg_short_errors_supported = yes; then
10786 XLOAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xmu xt x11 xproto >= 7.0.17" 2>&1`
10787 else
10788 XLOAD_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xmu xt x11 xproto >= 7.0.17" 2>&1`
10789 fi
10790 # Put the nasty error message in config.log where it belongs
10791 echo "$XLOAD_PKG_ERRORS" >&5
10792
10793 as_fn_error $? "Package requirements (xaw7 xmu xt x11 xproto >= 7.0.17) were not met:
10794
10795 $XLOAD_PKG_ERRORS
10796
10797 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10798 installed software in a non-standard prefix.
10799
10800 Alternatively, you may set the environment variables XLOAD_CFLAGS
10801 and XLOAD_LIBS to avoid the need to call pkg-config.
10802 See the pkg-config man page for more details.
10803 " "$LINENO" 5
10804 elif test $pkg_failed = untried; then
10805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10807 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10808 is in your PATH or set the PKG_CONFIG environment variable to the full
10809 path to pkg-config.
10810
10811 Alternatively, you may set the environment variables XLOAD_CFLAGS
10812 and XLOAD_LIBS to avoid the need to call pkg-config.
10813 See the pkg-config man page for more details.
10814
10815 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10816 See \`config.log' for more details" "$LINENO" 5; }
10817 else
10818 XLOAD_CFLAGS=$pkg_cv_XLOAD_CFLAGS
10819 XLOAD_LIBS=$pkg_cv_XLOAD_LIBS
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10821 $as_echo "yes" >&6; }
10822 :
10823 fi
10824
10825
10826 pkg_failed=no
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
10828 $as_echo_n "checking for APPDEFS... " >&6; }
10829
10830 if test -n "$APPDEFS_CFLAGS"; then
10831 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
10832 elif test -n "$PKG_CONFIG"; then
10833 if test -n "$PKG_CONFIG" && \
10834 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10835 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10836 ac_status=$?
10837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10838 test $ac_status = 0; }; then
10839 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
10840 else
10841 pkg_failed=yes
10842 fi
10843 else
10844 pkg_failed=untried
10845 fi
10846 if test -n "$APPDEFS_LIBS"; then
10847 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
10848 elif test -n "$PKG_CONFIG"; then
10849 if test -n "$PKG_CONFIG" && \
10850 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10851 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10852 ac_status=$?
10853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10854 test $ac_status = 0; }; then
10855 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
10856 else
10857 pkg_failed=yes
10858 fi
10859 else
10860 pkg_failed=untried
10861 fi
10862
10863
10864
10865 if test $pkg_failed = yes; then
10866
10867 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10868 _pkg_short_errors_supported=yes
10869 else
10870 _pkg_short_errors_supported=no
10871 fi
10872 if test $_pkg_short_errors_supported = yes; then
10873 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1`
10874 else
10875 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1`
10876 fi
10877 # Put the nasty error message in config.log where it belongs
10878 echo "$APPDEFS_PKG_ERRORS" >&5
10879
10880 as_fn_error $? "Package requirements (xt) were not met:
10881
10882 $APPDEFS_PKG_ERRORS
10883
10884 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10885 installed software in a non-standard prefix.
10886
10887 Alternatively, you may set the environment variables APPDEFS_CFLAGS
10888 and APPDEFS_LIBS to avoid the need to call pkg-config.
10889 See the pkg-config man page for more details.
10890 " "$LINENO" 5
10891 elif test $pkg_failed = untried; then
10892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10894 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10895 is in your PATH or set the PKG_CONFIG environment variable to the full
10896 path to pkg-config.
10897
10898 Alternatively, you may set the environment variables APPDEFS_CFLAGS
10899 and APPDEFS_LIBS to avoid the need to call pkg-config.
10900 See the pkg-config man page for more details.
10901
10902 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10903 See \`config.log' for more details" "$LINENO" 5; }
10904 else
10905 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
10906 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10908 $as_echo "yes" >&6; }
10909 :
10910 fi
10911 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
10912
10913 # Check whether --with-appdefaultdir was given.
10914 if test "${with_appdefaultdir+set}" = set; then :
10915 withval=$with_appdefaultdir; appdefaultdir="$withval"
10916 else
10917 appdefaultdir="${xt_appdefaultdir}"
10918 fi
10919
10920
10921
10922
10923 ac_config_files="$ac_config_files Makefile man/Makefile"
10924
10925 cat >confcache <<\_ACEOF
10926 # This file is a shell script that caches the results of configure
10927 # tests run on this system so they can be shared between configure
10928 # scripts and configure runs, see configure's option --config-cache.
10929 # It is not useful on other systems. If it contains results you don't
10930 # want to keep, you may remove or edit it.
10931 #
10932 # config.status only pays attention to the cache file if you give it
10933 # the --recheck option to rerun configure.
10934 #
10935 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10936 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10937 # following values.
10938
10939 _ACEOF
10940
10941 # The following way of writing the cache mishandles newlines in values,
10942 # but we know of no workaround that is simple, portable, and efficient.
10943 # So, we kill variables containing newlines.
10944 # Ultrix sh set writes to stderr and can't be redirected directly,
10945 # and sets the high bit in the cache file unless we assign to the vars.
10946 (
10947 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10948 eval ac_val=\$$ac_var
10949 case $ac_val in #(
10950 *${as_nl}*)
10951 case $ac_var in #(
10952 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10953 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10954 esac
10955 case $ac_var in #(
10956 _ | IFS | as_nl) ;; #(
10957 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10958 *) { eval $ac_var=; unset $ac_var;} ;;
10959 esac ;;
10960 esac
10961 done
10962
10963 (set) 2>&1 |
10964 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10965 *${as_nl}ac_space=\ *)
10966 # `set' does not quote correctly, so add quotes: double-quote
10967 # substitution turns \\\\ into \\, and sed turns \\ into \.
10968 sed -n \
10969 "s/'/'\\\\''/g;
10970 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10971 ;; #(
10972 *)
10973 # `set' quotes correctly as required by POSIX, so do not add quotes.
10974 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10975 ;;
10976 esac |
10977 sort
10978 ) |
10979 sed '
10980 /^ac_cv_env_/b end
10981 t clear
10982 :clear
10983 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10984 t end
10985 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10986 :end' >>confcache
10987 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10988 if test -w "$cache_file"; then
10989 if test "x$cache_file" != "x/dev/null"; then
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10991 $as_echo "$as_me: updating cache $cache_file" >&6;}
10992 if test ! -f "$cache_file" || test -h "$cache_file"; then
10993 cat confcache >"$cache_file"
10994 else
10995 case $cache_file in #(
10996 */* | ?:*)
10997 mv -f confcache "$cache_file"$$ &&
10998 mv -f "$cache_file"$$ "$cache_file" ;; #(
10999 *)
11000 mv -f confcache "$cache_file" ;;
11001 esac
11002 fi
11003 fi
11004 else
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11006 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11007 fi
11008 fi
11009 rm -f confcache
11010
11011 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11012 # Let make expand exec_prefix.
11013 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11014
11015 DEFS=-DHAVE_CONFIG_H
11016
11017 ac_libobjs=
11018 ac_ltlibobjs=
11019 U=
11020 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11021 # 1. Remove the extension, and $U if already installed.
11022 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11023 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11024 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11025 # will be set to the directory where LIBOBJS objects are built.
11026 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11027 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11028 done
11029 LIBOBJS=$ac_libobjs
11030
11031 LTLIBOBJS=$ac_ltlibobjs
11032
11033
11034 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11035 as_fn_error $? "conditional \"AMDEP\" was never defined.
11036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11037 fi
11038 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11039 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11041 fi
11042 if test -n "$EXEEXT"; then
11043 am__EXEEXT_TRUE=
11044 am__EXEEXT_FALSE='#'
11045 else
11046 am__EXEEXT_TRUE='#'
11047 am__EXEEXT_FALSE=
11048 fi
11049
11050 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11051 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11053 fi
11054 if test -z "${USE_GETTEXT_TRUE}" && test -z "${USE_GETTEXT_FALSE}"; then
11055 as_fn_error $? "conditional \"USE_GETTEXT\" was never defined.
11056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11057 fi
11058
11059 : "${CONFIG_STATUS=./config.status}"
11060 ac_write_fail=0
11061 ac_clean_files_save=$ac_clean_files
11062 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11064 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11065 as_write_fail=0
11066 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11067 #! $SHELL
11068 # Generated by $as_me.
11069 # Run this file to recreate the current configuration.
11070 # Compiler output produced by configure, useful for debugging
11071 # configure, is in config.log if it exists.
11072
11073 debug=false
11074 ac_cs_recheck=false
11075 ac_cs_silent=false
11076
11077 SHELL=\${CONFIG_SHELL-$SHELL}
11078 export SHELL
11079 _ASEOF
11080 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11081 ## -------------------- ##
11082 ## M4sh Initialization. ##
11083 ## -------------------- ##
11084
11085 # Be more Bourne compatible
11086 DUALCASE=1; export DUALCASE # for MKS sh
11087 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11088 emulate sh
11089 NULLCMD=:
11090 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11091 # is contrary to our usage. Disable this feature.
11092 alias -g '${1+"$@"}'='"$@"'
11093 setopt NO_GLOB_SUBST
11094 else
11095 case `(set -o) 2>/dev/null` in #(
11096 *posix*) :
11097 set -o posix ;; #(
11098 *) :
11099 ;;
11100 esac
11101 fi
11102
11103
11104 as_nl='
11105 '
11106 export as_nl
11107 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11108 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11109 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11110 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11111 # Prefer a ksh shell builtin over an external printf program on Solaris,
11112 # but without wasting forks for bash or zsh.
11113 if test -z "$BASH_VERSION$ZSH_VERSION" \
11114 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11115 as_echo='print -r --'
11116 as_echo_n='print -rn --'
11117 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11118 as_echo='printf %s\n'
11119 as_echo_n='printf %s'
11120 else
11121 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11122 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11123 as_echo_n='/usr/ucb/echo -n'
11124 else
11125 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11126 as_echo_n_body='eval
11127 arg=$1;
11128 case $arg in #(
11129 *"$as_nl"*)
11130 expr "X$arg" : "X\\(.*\\)$as_nl";
11131 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11132 esac;
11133 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11134 '
11135 export as_echo_n_body
11136 as_echo_n='sh -c $as_echo_n_body as_echo'
11137 fi
11138 export as_echo_body
11139 as_echo='sh -c $as_echo_body as_echo'
11140 fi
11141
11142 # The user is always right.
11143 if test "${PATH_SEPARATOR+set}" != set; then
11144 PATH_SEPARATOR=:
11145 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11146 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11147 PATH_SEPARATOR=';'
11148 }
11149 fi
11150
11151
11152 # IFS
11153 # We need space, tab and new line, in precisely that order. Quoting is
11154 # there to prevent editors from complaining about space-tab.
11155 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11156 # splitting by setting IFS to empty value.)
11157 IFS=" "" $as_nl"
11158
11159 # Find who we are. Look in the path if we contain no directory separator.
11160 as_myself=
11161 case $0 in #((
11162 *[\\/]* ) as_myself=$0 ;;
11163 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164 for as_dir in $PATH
11165 do
11166 IFS=$as_save_IFS
11167 test -z "$as_dir" && as_dir=.
11168 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11169 done
11170 IFS=$as_save_IFS
11171
11172 ;;
11173 esac
11174 # We did not find ourselves, most probably we were run as `sh COMMAND'
11175 # in which case we are not to be found in the path.
11176 if test "x$as_myself" = x; then
11177 as_myself=$0
11178 fi
11179 if test ! -f "$as_myself"; then
11180 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11181 exit 1
11182 fi
11183
11184 # Unset variables that we do not need and which cause bugs (e.g. in
11185 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11186 # suppresses any "Segmentation fault" message there. '((' could
11187 # trigger a bug in pdksh 5.2.14.
11188 for as_var in BASH_ENV ENV MAIL MAILPATH
11189 do eval test x\${$as_var+set} = xset \
11190 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11191 done
11192 PS1='$ '
11193 PS2='> '
11194 PS4='+ '
11195
11196 # NLS nuisances.
11197 LC_ALL=C
11198 export LC_ALL
11199 LANGUAGE=C
11200 export LANGUAGE
11201
11202 # CDPATH.
11203 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11204
11205
11206 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11207 # ----------------------------------------
11208 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11209 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11210 # script with STATUS, using 1 if that was 0.
11211 as_fn_error ()
11212 {
11213 as_status=$1; test $as_status -eq 0 && as_status=1
11214 if test "$4"; then
11215 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11216 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11217 fi
11218 $as_echo "$as_me: error: $2" >&2
11219 as_fn_exit $as_status
11220 } # as_fn_error
11221
11222
11223 # as_fn_set_status STATUS
11224 # -----------------------
11225 # Set $? to STATUS, without forking.
11226 as_fn_set_status ()
11227 {
11228 return $1
11229 } # as_fn_set_status
11230
11231 # as_fn_exit STATUS
11232 # -----------------
11233 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11234 as_fn_exit ()
11235 {
11236 set +e
11237 as_fn_set_status $1
11238 exit $1
11239 } # as_fn_exit
11240
11241 # as_fn_unset VAR
11242 # ---------------
11243 # Portably unset VAR.
11244 as_fn_unset ()
11245 {
11246 { eval $1=; unset $1;}
11247 }
11248 as_unset=as_fn_unset
11249 # as_fn_append VAR VALUE
11250 # ----------------------
11251 # Append the text in VALUE to the end of the definition contained in VAR. Take
11252 # advantage of any shell optimizations that allow amortized linear growth over
11253 # repeated appends, instead of the typical quadratic growth present in naive
11254 # implementations.
11255 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11256 eval 'as_fn_append ()
11257 {
11258 eval $1+=\$2
11259 }'
11260 else
11261 as_fn_append ()
11262 {
11263 eval $1=\$$1\$2
11264 }
11265 fi # as_fn_append
11266
11267 # as_fn_arith ARG...
11268 # ------------------
11269 # Perform arithmetic evaluation on the ARGs, and store the result in the
11270 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11271 # must be portable across $(()) and expr.
11272 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11273 eval 'as_fn_arith ()
11274 {
11275 as_val=$(( $* ))
11276 }'
11277 else
11278 as_fn_arith ()
11279 {
11280 as_val=`expr "$@" || test $? -eq 1`
11281 }
11282 fi # as_fn_arith
11283
11284
11285 if expr a : '\(a\)' >/dev/null 2>&1 &&
11286 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11287 as_expr=expr
11288 else
11289 as_expr=false
11290 fi
11291
11292 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11293 as_basename=basename
11294 else
11295 as_basename=false
11296 fi
11297
11298 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11299 as_dirname=dirname
11300 else
11301 as_dirname=false
11302 fi
11303
11304 as_me=`$as_basename -- "$0" ||
11305 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11306 X"$0" : 'X\(//\)$' \| \
11307 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11308 $as_echo X/"$0" |
11309 sed '/^.*\/\([^/][^/]*\)\/*$/{
11310 s//\1/
11311 q
11312 }
11313 /^X\/\(\/\/\)$/{
11314 s//\1/
11315 q
11316 }
11317 /^X\/\(\/\).*/{
11318 s//\1/
11319 q
11320 }
11321 s/.*/./; q'`
11322
11323 # Avoid depending upon Character Ranges.
11324 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11325 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11326 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11327 as_cr_digits='0123456789'
11328 as_cr_alnum=$as_cr_Letters$as_cr_digits
11329
11330 ECHO_C= ECHO_N= ECHO_T=
11331 case `echo -n x` in #(((((
11332 -n*)
11333 case `echo 'xy\c'` in
11334 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11335 xy) ECHO_C='\c';;
11336 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11337 ECHO_T=' ';;
11338 esac;;
11339 *)
11340 ECHO_N='-n';;
11341 esac
11342
11343 rm -f conf$$ conf$$.exe conf$$.file
11344 if test -d conf$$.dir; then
11345 rm -f conf$$.dir/conf$$.file
11346 else
11347 rm -f conf$$.dir
11348 mkdir conf$$.dir 2>/dev/null
11349 fi
11350 if (echo >conf$$.file) 2>/dev/null; then
11351 if ln -s conf$$.file conf$$ 2>/dev/null; then
11352 as_ln_s='ln -s'
11353 # ... but there are two gotchas:
11354 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11355 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11356 # In both cases, we have to default to `cp -p'.
11357 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11358 as_ln_s='cp -p'
11359 elif ln conf$$.file conf$$ 2>/dev/null; then
11360 as_ln_s=ln
11361 else
11362 as_ln_s='cp -p'
11363 fi
11364 else
11365 as_ln_s='cp -p'
11366 fi
11367 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11368 rmdir conf$$.dir 2>/dev/null
11369
11370
11371 # as_fn_mkdir_p
11372 # -------------
11373 # Create "$as_dir" as a directory, including parents if necessary.
11374 as_fn_mkdir_p ()
11375 {
11376
11377 case $as_dir in #(
11378 -*) as_dir=./$as_dir;;
11379 esac
11380 test -d "$as_dir" || eval $as_mkdir_p || {
11381 as_dirs=
11382 while :; do
11383 case $as_dir in #(
11384 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11385 *) as_qdir=$as_dir;;
11386 esac
11387 as_dirs="'$as_qdir' $as_dirs"
11388 as_dir=`$as_dirname -- "$as_dir" ||
11389 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11390 X"$as_dir" : 'X\(//\)[^/]' \| \
11391 X"$as_dir" : 'X\(//\)$' \| \
11392 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11393 $as_echo X"$as_dir" |
11394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11395 s//\1/
11396 q
11397 }
11398 /^X\(\/\/\)[^/].*/{
11399 s//\1/
11400 q
11401 }
11402 /^X\(\/\/\)$/{
11403 s//\1/
11404 q
11405 }
11406 /^X\(\/\).*/{
11407 s//\1/
11408 q
11409 }
11410 s/.*/./; q'`
11411 test -d "$as_dir" && break
11412 done
11413 test -z "$as_dirs" || eval "mkdir $as_dirs"
11414 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11415
11416
11417 } # as_fn_mkdir_p
11418 if mkdir -p . 2>/dev/null; then
11419 as_mkdir_p='mkdir -p "$as_dir"'
11420 else
11421 test -d ./-p && rmdir ./-p
11422 as_mkdir_p=false
11423 fi
11424
11425 if test -x / >/dev/null 2>&1; then
11426 as_test_x='test -x'
11427 else
11428 if ls -dL / >/dev/null 2>&1; then
11429 as_ls_L_option=L
11430 else
11431 as_ls_L_option=
11432 fi
11433 as_test_x='
11434 eval sh -c '\''
11435 if test -d "$1"; then
11436 test -d "$1/.";
11437 else
11438 case $1 in #(
11439 -*)set "./$1";;
11440 esac;
11441 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11442 ???[sx]*):;;*)false;;esac;fi
11443 '\'' sh
11444 '
11445 fi
11446 as_executable_p=$as_test_x
11447
11448 # Sed expression to map a string onto a valid CPP name.
11449 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11450
11451 # Sed expression to map a string onto a valid variable name.
11452 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11453
11454
11455 exec 6>&1
11456 ## ----------------------------------- ##
11457 ## Main body of $CONFIG_STATUS script. ##
11458 ## ----------------------------------- ##
11459 _ASEOF
11460 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11461
11462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11463 # Save the log message, to keep $0 and so on meaningful, and to
11464 # report actual input values of CONFIG_FILES etc. instead of their
11465 # values after options handling.
11466 ac_log="
11467 This file was extended by xload $as_me 1.1.1, which was
11468 generated by GNU Autoconf 2.68. Invocation command line was
11469
11470 CONFIG_FILES = $CONFIG_FILES
11471 CONFIG_HEADERS = $CONFIG_HEADERS
11472 CONFIG_LINKS = $CONFIG_LINKS
11473 CONFIG_COMMANDS = $CONFIG_COMMANDS
11474 $ $0 $@
11475
11476 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11477 "
11478
11479 _ACEOF
11480
11481 case $ac_config_files in *"
11482 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11483 esac
11484
11485 case $ac_config_headers in *"
11486 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11487 esac
11488
11489
11490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11491 # Files that config.status was made for.
11492 config_files="$ac_config_files"
11493 config_headers="$ac_config_headers"
11494 config_commands="$ac_config_commands"
11495
11496 _ACEOF
11497
11498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11499 ac_cs_usage="\
11500 \`$as_me' instantiates files and other configuration actions
11501 from templates according to the current configuration. Unless the files
11502 and actions are specified as TAGs, all are instantiated by default.
11503
11504 Usage: $0 [OPTION]... [TAG]...
11505
11506 -h, --help print this help, then exit
11507 -V, --version print version number and configuration settings, then exit
11508 --config print configuration, then exit
11509 -q, --quiet, --silent
11510 do not print progress messages
11511 -d, --debug don't remove temporary files
11512 --recheck update $as_me by reconfiguring in the same conditions
11513 --file=FILE[:TEMPLATE]
11514 instantiate the configuration file FILE
11515 --header=FILE[:TEMPLATE]
11516 instantiate the configuration header FILE
11517
11518 Configuration files:
11519 $config_files
11520
11521 Configuration headers:
11522 $config_headers
11523
11524 Configuration commands:
11525 $config_commands
11526
11527 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11528
11529 _ACEOF
11530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11531 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11532 ac_cs_version="\\
11533 xload config.status 1.1.1
11534 configured by $0, generated by GNU Autoconf 2.68,
11535 with options \\"\$ac_cs_config\\"
11536
11537 Copyright (C) 2010 Free Software Foundation, Inc.
11538 This config.status script is free software; the Free Software Foundation
11539 gives unlimited permission to copy, distribute and modify it."
11540
11541 ac_pwd='$ac_pwd'
11542 srcdir='$srcdir'
11543 INSTALL='$INSTALL'
11544 MKDIR_P='$MKDIR_P'
11545 AWK='$AWK'
11546 test -n "\$AWK" || AWK=awk
11547 _ACEOF
11548
11549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11550 # The default lists apply if the user does not specify any file.
11551 ac_need_defaults=:
11552 while test $# != 0
11553 do
11554 case $1 in
11555 --*=?*)
11556 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11557 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11558 ac_shift=:
11559 ;;
11560 --*=)
11561 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11562 ac_optarg=
11563 ac_shift=:
11564 ;;
11565 *)
11566 ac_option=$1
11567 ac_optarg=$2
11568 ac_shift=shift
11569 ;;
11570 esac
11571
11572 case $ac_option in
11573 # Handling of the options.
11574 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11575 ac_cs_recheck=: ;;
11576 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11577 $as_echo "$ac_cs_version"; exit ;;
11578 --config | --confi | --conf | --con | --co | --c )
11579 $as_echo "$ac_cs_config"; exit ;;
11580 --debug | --debu | --deb | --de | --d | -d )
11581 debug=: ;;
11582 --file | --fil | --fi | --f )
11583 $ac_shift
11584 case $ac_optarg in
11585 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11586 '') as_fn_error $? "missing file argument" ;;
11587 esac
11588 as_fn_append CONFIG_FILES " '$ac_optarg'"
11589 ac_need_defaults=false;;
11590 --header | --heade | --head | --hea )
11591 $ac_shift
11592 case $ac_optarg in
11593 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11594 esac
11595 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11596 ac_need_defaults=false;;
11597 --he | --h)
11598 # Conflict between --help and --header
11599 as_fn_error $? "ambiguous option: \`$1'
11600 Try \`$0 --help' for more information.";;
11601 --help | --hel | -h )
11602 $as_echo "$ac_cs_usage"; exit ;;
11603 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11604 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11605 ac_cs_silent=: ;;
11606
11607 # This is an error.
11608 -*) as_fn_error $? "unrecognized option: \`$1'
11609 Try \`$0 --help' for more information." ;;
11610
11611 *) as_fn_append ac_config_targets " $1"
11612 ac_need_defaults=false ;;
11613
11614 esac
11615 shift
11616 done
11617
11618 ac_configure_extra_args=
11619
11620 if $ac_cs_silent; then
11621 exec 6>/dev/null
11622 ac_configure_extra_args="$ac_configure_extra_args --silent"
11623 fi
11624
11625 _ACEOF
11626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11627 if \$ac_cs_recheck; then
11628 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11629 shift
11630 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11631 CONFIG_SHELL='$SHELL'
11632 export CONFIG_SHELL
11633 exec "\$@"
11634 fi
11635
11636 _ACEOF
11637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11638 exec 5>>config.log
11639 {
11640 echo
11641 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11642 ## Running $as_me. ##
11643 _ASBOX
11644 $as_echo "$ac_log"
11645 } >&5
11646
11647 _ACEOF
11648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11649 #
11650 # INIT-COMMANDS
11651 #
11652 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11653
11654 _ACEOF
11655
11656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11657
11658 # Handling of arguments.
11659 for ac_config_target in $ac_config_targets
11660 do
11661 case $ac_config_target in
11662 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11663 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11664 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11665 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11666
11667 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11668 esac
11669 done
11670
11671
11672 # If the user did not use the arguments to specify the items to instantiate,
11673 # then the envvar interface is used. Set only those that are not.
11674 # We use the long form for the default assignment because of an extremely
11675 # bizarre bug on SunOS 4.1.3.
11676 if $ac_need_defaults; then
11677 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11678 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11679 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11680 fi
11681
11682 # Have a temporary directory for convenience. Make it in the build tree
11683 # simply because there is no reason against having it here, and in addition,
11684 # creating and moving files from /tmp can sometimes cause problems.
11685 # Hook for its removal unless debugging.
11686 # Note that there is a small window in which the directory will not be cleaned:
11687 # after its creation but before its name has been assigned to `$tmp'.
11688 $debug ||
11689 {
11690 tmp= ac_tmp=
11691 trap 'exit_status=$?
11692 : "${ac_tmp:=$tmp}"
11693 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11694 ' 0
11695 trap 'as_fn_exit 1' 1 2 13 15
11696 }
11697 # Create a (secure) tmp directory for tmp files.
11698
11699 {
11700 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11701 test -d "$tmp"
11702 } ||
11703 {
11704 tmp=./conf$$-$RANDOM
11705 (umask 077 && mkdir "$tmp")
11706 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11707 ac_tmp=$tmp
11708
11709 # Set up the scripts for CONFIG_FILES section.
11710 # No need to generate them if there are no CONFIG_FILES.
11711 # This happens for instance with `./config.status config.h'.
11712 if test -n "$CONFIG_FILES"; then
11713
11714
11715 ac_cr=`echo X | tr X '\015'`
11716 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11717 # But we know of no other shell where ac_cr would be empty at this
11718 # point, so we can use a bashism as a fallback.
11719 if test "x$ac_cr" = x; then
11720 eval ac_cr=\$\'\\r\'
11721 fi
11722 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11723 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11724 ac_cs_awk_cr='\\r'
11725 else
11726 ac_cs_awk_cr=$ac_cr
11727 fi
11728
11729 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11730 _ACEOF
11731
11732
11733 {
11734 echo "cat >conf$$subs.awk <<_ACEOF" &&
11735 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11736 echo "_ACEOF"
11737 } >conf$$subs.sh ||
11738 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11739 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11740 ac_delim='%!_!# '
11741 for ac_last_try in false false false false false :; do
11742 . ./conf$$subs.sh ||
11743 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11744
11745 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11746 if test $ac_delim_n = $ac_delim_num; then
11747 break
11748 elif $ac_last_try; then
11749 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11750 else
11751 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11752 fi
11753 done
11754 rm -f conf$$subs.sh
11755
11756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11757 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11758 _ACEOF
11759 sed -n '
11760 h
11761 s/^/S["/; s/!.*/"]=/
11762 p
11763 g
11764 s/^[^!]*!//
11765 :repl
11766 t repl
11767 s/'"$ac_delim"'$//
11768 t delim
11769 :nl
11770 h
11771 s/\(.\{148\}\)..*/\1/
11772 t more1
11773 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11774 p
11775 n
11776 b repl
11777 :more1
11778 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11779 p
11780 g
11781 s/.\{148\}//
11782 t nl
11783 :delim
11784 h
11785 s/\(.\{148\}\)..*/\1/
11786 t more2
11787 s/["\\]/\\&/g; s/^/"/; s/$/"/
11788 p
11789 b
11790 :more2
11791 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11792 p
11793 g
11794 s/.\{148\}//
11795 t delim
11796 ' <conf$$subs.awk | sed '
11797 /^[^""]/{
11798 N
11799 s/\n//
11800 }
11801 ' >>$CONFIG_STATUS || ac_write_fail=1
11802 rm -f conf$$subs.awk
11803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11804 _ACAWK
11805 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11806 for (key in S) S_is_set[key] = 1
11807 FS = ""
11808
11809 }
11810 {
11811 line = $ 0
11812 nfields = split(line, field, "@")
11813 substed = 0
11814 len = length(field[1])
11815 for (i = 2; i < nfields; i++) {
11816 key = field[i]
11817 keylen = length(key)
11818 if (S_is_set[key]) {
11819 value = S[key]
11820 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11821 len += length(value) + length(field[++i])
11822 substed = 1
11823 } else
11824 len += 1 + keylen
11825 }
11826
11827 print line
11828 }
11829
11830 _ACAWK
11831 _ACEOF
11832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11833 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11834 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11835 else
11836 cat
11837 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11838 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11839 _ACEOF
11840
11841 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11842 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11843 # trailing colons and then remove the whole line if VPATH becomes empty
11844 # (actually we leave an empty line to preserve line numbers).
11845 if test "x$srcdir" = x.; then
11846 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11847 h
11848 s///
11849 s/^/:/
11850 s/[ ]*$/:/
11851 s/:\$(srcdir):/:/g
11852 s/:\${srcdir}:/:/g
11853 s/:@srcdir@:/:/g
11854 s/^:*//
11855 s/:*$//
11856 x
11857 s/\(=[ ]*\).*/\1/
11858 G
11859 s/\n//
11860 s/^[^=]*=[ ]*$//
11861 }'
11862 fi
11863
11864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11865 fi # test -n "$CONFIG_FILES"
11866
11867 # Set up the scripts for CONFIG_HEADERS section.
11868 # No need to generate them if there are no CONFIG_HEADERS.
11869 # This happens for instance with `./config.status Makefile'.
11870 if test -n "$CONFIG_HEADERS"; then
11871 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11872 BEGIN {
11873 _ACEOF
11874
11875 # Transform confdefs.h into an awk script `defines.awk', embedded as
11876 # here-document in config.status, that substitutes the proper values into
11877 # config.h.in to produce config.h.
11878
11879 # Create a delimiter string that does not exist in confdefs.h, to ease
11880 # handling of long lines.
11881 ac_delim='%!_!# '
11882 for ac_last_try in false false :; do
11883 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11884 if test -z "$ac_tt"; then
11885 break
11886 elif $ac_last_try; then
11887 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11888 else
11889 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11890 fi
11891 done
11892
11893 # For the awk script, D is an array of macro values keyed by name,
11894 # likewise P contains macro parameters if any. Preserve backslash
11895 # newline sequences.
11896
11897 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11898 sed -n '
11899 s/.\{148\}/&'"$ac_delim"'/g
11900 t rset
11901 :rset
11902 s/^[ ]*#[ ]*define[ ][ ]*/ /
11903 t def
11904 d
11905 :def
11906 s/\\$//
11907 t bsnl
11908 s/["\\]/\\&/g
11909 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11910 D["\1"]=" \3"/p
11911 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11912 d
11913 :bsnl
11914 s/["\\]/\\&/g
11915 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11916 D["\1"]=" \3\\\\\\n"\\/p
11917 t cont
11918 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11919 t cont
11920 d
11921 :cont
11922 n
11923 s/.\{148\}/&'"$ac_delim"'/g
11924 t clear
11925 :clear
11926 s/\\$//
11927 t bsnlc
11928 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11929 d
11930 :bsnlc
11931 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11932 b cont
11933 ' <confdefs.h | sed '
11934 s/'"$ac_delim"'/"\\\
11935 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11936
11937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11938 for (key in D) D_is_set[key] = 1
11939 FS = ""
11940 }
11941 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11942 line = \$ 0
11943 split(line, arg, " ")
11944 if (arg[1] == "#") {
11945 defundef = arg[2]
11946 mac1 = arg[3]
11947 } else {
11948 defundef = substr(arg[1], 2)
11949 mac1 = arg[2]
11950 }
11951 split(mac1, mac2, "(") #)
11952 macro = mac2[1]
11953 prefix = substr(line, 1, index(line, defundef) - 1)
11954 if (D_is_set[macro]) {
11955 # Preserve the white space surrounding the "#".
11956 print prefix "define", macro P[macro] D[macro]
11957 next
11958 } else {
11959 # Replace #undef with comments. This is necessary, for example,
11960 # in the case of _POSIX_SOURCE, which is predefined and required
11961 # on some systems where configure will not decide to define it.
11962 if (defundef == "undef") {
11963 print "/*", prefix defundef, macro, "*/"
11964 next
11965 }
11966 }
11967 }
11968 { print }
11969 _ACAWK
11970 _ACEOF
11971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11972 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11973 fi # test -n "$CONFIG_HEADERS"
11974
11975
11976 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11977 shift
11978 for ac_tag
11979 do
11980 case $ac_tag in
11981 :[FHLC]) ac_mode=$ac_tag; continue;;
11982 esac
11983 case $ac_mode$ac_tag in
11984 :[FHL]*:*);;
11985 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11986 :[FH]-) ac_tag=-:-;;
11987 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11988 esac
11989 ac_save_IFS=$IFS
11990 IFS=:
11991 set x $ac_tag
11992 IFS=$ac_save_IFS
11993 shift
11994 ac_file=$1
11995 shift
11996
11997 case $ac_mode in
11998 :L) ac_source=$1;;
11999 :[FH])
12000 ac_file_inputs=
12001 for ac_f
12002 do
12003 case $ac_f in
12004 -) ac_f="$ac_tmp/stdin";;
12005 *) # Look for the file first in the build tree, then in the source tree
12006 # (if the path is not absolute). The absolute path cannot be DOS-style,
12007 # because $ac_f cannot contain `:'.
12008 test -f "$ac_f" ||
12009 case $ac_f in
12010 [\\/$]*) false;;
12011 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12012 esac ||
12013 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12014 esac
12015 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12016 as_fn_append ac_file_inputs " '$ac_f'"
12017 done
12018
12019 # Let's still pretend it is `configure' which instantiates (i.e., don't
12020 # use $as_me), people would be surprised to read:
12021 # /* config.h. Generated by config.status. */
12022 configure_input='Generated from '`
12023 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12024 `' by configure.'
12025 if test x"$ac_file" != x-; then
12026 configure_input="$ac_file. $configure_input"
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12028 $as_echo "$as_me: creating $ac_file" >&6;}
12029 fi
12030 # Neutralize special characters interpreted by sed in replacement strings.
12031 case $configure_input in #(
12032 *\&* | *\|* | *\\* )
12033 ac_sed_conf_input=`$as_echo "$configure_input" |
12034 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12035 *) ac_sed_conf_input=$configure_input;;
12036 esac
12037
12038 case $ac_tag in
12039 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12040 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12041 esac
12042 ;;
12043 esac
12044
12045 ac_dir=`$as_dirname -- "$ac_file" ||
12046 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12047 X"$ac_file" : 'X\(//\)[^/]' \| \
12048 X"$ac_file" : 'X\(//\)$' \| \
12049 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12050 $as_echo X"$ac_file" |
12051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12052 s//\1/
12053 q
12054 }
12055 /^X\(\/\/\)[^/].*/{
12056 s//\1/
12057 q
12058 }
12059 /^X\(\/\/\)$/{
12060 s//\1/
12061 q
12062 }
12063 /^X\(\/\).*/{
12064 s//\1/
12065 q
12066 }
12067 s/.*/./; q'`
12068 as_dir="$ac_dir"; as_fn_mkdir_p
12069 ac_builddir=.
12070
12071 case "$ac_dir" in
12072 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12073 *)
12074 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12075 # A ".." for each directory in $ac_dir_suffix.
12076 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12077 case $ac_top_builddir_sub in
12078 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12079 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12080 esac ;;
12081 esac
12082 ac_abs_top_builddir=$ac_pwd
12083 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12084 # for backward compatibility:
12085 ac_top_builddir=$ac_top_build_prefix
12086
12087 case $srcdir in
12088 .) # We are building in place.
12089 ac_srcdir=.
12090 ac_top_srcdir=$ac_top_builddir_sub
12091 ac_abs_top_srcdir=$ac_pwd ;;
12092 [\\/]* | ?:[\\/]* ) # Absolute name.
12093 ac_srcdir=$srcdir$ac_dir_suffix;
12094 ac_top_srcdir=$srcdir
12095 ac_abs_top_srcdir=$srcdir ;;
12096 *) # Relative name.
12097 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12098 ac_top_srcdir=$ac_top_build_prefix$srcdir
12099 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12100 esac
12101 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12102
12103
12104 case $ac_mode in
12105 :F)
12106 #
12107 # CONFIG_FILE
12108 #
12109
12110 case $INSTALL in
12111 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12112 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12113 esac
12114 ac_MKDIR_P=$MKDIR_P
12115 case $MKDIR_P in
12116 [\\/$]* | ?:[\\/]* ) ;;
12117 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12118 esac
12119 _ACEOF
12120
12121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12122 # If the template does not know about datarootdir, expand it.
12123 # FIXME: This hack should be removed a few years after 2.60.
12124 ac_datarootdir_hack=; ac_datarootdir_seen=
12125 ac_sed_dataroot='
12126 /datarootdir/ {
12127 p
12128 q
12129 }
12130 /@datadir@/p
12131 /@docdir@/p
12132 /@infodir@/p
12133 /@localedir@/p
12134 /@mandir@/p'
12135 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12136 *datarootdir*) ac_datarootdir_seen=yes;;
12137 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12139 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12140 _ACEOF
12141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12142 ac_datarootdir_hack='
12143 s&@datadir@&$datadir&g
12144 s&@docdir@&$docdir&g
12145 s&@infodir@&$infodir&g
12146 s&@localedir@&$localedir&g
12147 s&@mandir@&$mandir&g
12148 s&\\\${datarootdir}&$datarootdir&g' ;;
12149 esac
12150 _ACEOF
12151
12152 # Neutralize VPATH when `$srcdir' = `.'.
12153 # Shell code in configure.ac might set extrasub.
12154 # FIXME: do we really want to maintain this feature?
12155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12156 ac_sed_extra="$ac_vpsub
12157 $extrasub
12158 _ACEOF
12159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12160 :t
12161 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12162 s|@configure_input@|$ac_sed_conf_input|;t t
12163 s&@top_builddir@&$ac_top_builddir_sub&;t t
12164 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12165 s&@srcdir@&$ac_srcdir&;t t
12166 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12167 s&@top_srcdir@&$ac_top_srcdir&;t t
12168 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12169 s&@builddir@&$ac_builddir&;t t
12170 s&@abs_builddir@&$ac_abs_builddir&;t t
12171 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12172 s&@INSTALL@&$ac_INSTALL&;t t
12173 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12174 $ac_datarootdir_hack
12175 "
12176 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12177 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12178
12179 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12180 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12181 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12182 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12184 which seems to be undefined. Please make sure it is defined" >&5
12185 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12186 which seems to be undefined. Please make sure it is defined" >&2;}
12187
12188 rm -f "$ac_tmp/stdin"
12189 case $ac_file in
12190 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12191 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12192 esac \
12193 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12194 ;;
12195 :H)
12196 #
12197 # CONFIG_HEADER
12198 #
12199 if test x"$ac_file" != x-; then
12200 {
12201 $as_echo "/* $configure_input */" \
12202 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12203 } >"$ac_tmp/config.h" \
12204 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12205 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12207 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12208 else
12209 rm -f "$ac_file"
12210 mv "$ac_tmp/config.h" "$ac_file" \
12211 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12212 fi
12213 else
12214 $as_echo "/* $configure_input */" \
12215 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12216 || as_fn_error $? "could not create -" "$LINENO" 5
12217 fi
12218 # Compute "$ac_file"'s index in $config_headers.
12219 _am_arg="$ac_file"
12220 _am_stamp_count=1
12221 for _am_header in $config_headers :; do
12222 case $_am_header in
12223 $_am_arg | $_am_arg:* )
12224 break ;;
12225 * )
12226 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12227 esac
12228 done
12229 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12230 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12231 X"$_am_arg" : 'X\(//\)[^/]' \| \
12232 X"$_am_arg" : 'X\(//\)$' \| \
12233 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12234 $as_echo X"$_am_arg" |
12235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12236 s//\1/
12237 q
12238 }
12239 /^X\(\/\/\)[^/].*/{
12240 s//\1/
12241 q
12242 }
12243 /^X\(\/\/\)$/{
12244 s//\1/
12245 q
12246 }
12247 /^X\(\/\).*/{
12248 s//\1/
12249 q
12250 }
12251 s/.*/./; q'`/stamp-h$_am_stamp_count
12252 ;;
12253
12254 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12255 $as_echo "$as_me: executing $ac_file commands" >&6;}
12256 ;;
12257 esac
12258
12259
12260 case $ac_file$ac_mode in
12261 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12262 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12263 # are listed without --file. Let's play safe and only enable the eval
12264 # if we detect the quoting.
12265 case $CONFIG_FILES in
12266 *\'*) eval set x "$CONFIG_FILES" ;;
12267 *) set x $CONFIG_FILES ;;
12268 esac
12269 shift
12270 for mf
12271 do
12272 # Strip MF so we end up with the name of the file.
12273 mf=`echo "$mf" | sed -e 's/:.*$//'`
12274 # Check whether this is an Automake generated Makefile or not.
12275 # We used to match only the files named `Makefile.in', but
12276 # some people rename them; so instead we look at the file content.
12277 # Grep'ing the first line is not enough: some people post-process
12278 # each Makefile.in and add a new line on top of each file to say so.
12279 # Grep'ing the whole file is not good either: AIX grep has a line
12280 # limit of 2048, but all sed's we know have understand at least 4000.
12281 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12282 dirpart=`$as_dirname -- "$mf" ||
12283 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12284 X"$mf" : 'X\(//\)[^/]' \| \
12285 X"$mf" : 'X\(//\)$' \| \
12286 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12287 $as_echo X"$mf" |
12288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12289 s//\1/
12290 q
12291 }
12292 /^X\(\/\/\)[^/].*/{
12293 s//\1/
12294 q
12295 }
12296 /^X\(\/\/\)$/{
12297 s//\1/
12298 q
12299 }
12300 /^X\(\/\).*/{
12301 s//\1/
12302 q
12303 }
12304 s/.*/./; q'`
12305 else
12306 continue
12307 fi
12308 # Extract the definition of DEPDIR, am__include, and am__quote
12309 # from the Makefile without running `make'.
12310 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12311 test -z "$DEPDIR" && continue
12312 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12313 test -z "am__include" && continue
12314 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12315 # When using ansi2knr, U may be empty or an underscore; expand it
12316 U=`sed -n 's/^U = //p' < "$mf"`
12317 # Find all dependency output files, they are included files with
12318 # $(DEPDIR) in their names. We invoke sed twice because it is the
12319 # simplest approach to changing $(DEPDIR) to its actual value in the
12320 # expansion.
12321 for file in `sed -n "
12322 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12323 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12324 # Make sure the directory exists.
12325 test -f "$dirpart/$file" && continue
12326 fdir=`$as_dirname -- "$file" ||
12327 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12328 X"$file" : 'X\(//\)[^/]' \| \
12329 X"$file" : 'X\(//\)$' \| \
12330 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12331 $as_echo X"$file" |
12332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12333 s//\1/
12334 q
12335 }
12336 /^X\(\/\/\)[^/].*/{
12337 s//\1/
12338 q
12339 }
12340 /^X\(\/\/\)$/{
12341 s//\1/
12342 q
12343 }
12344 /^X\(\/\).*/{
12345 s//\1/
12346 q
12347 }
12348 s/.*/./; q'`
12349 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12350 # echo "creating $dirpart/$file"
12351 echo '# dummy' > "$dirpart/$file"
12352 done
12353 done
12354 }
12355 ;;
12356
12357 esac
12358 done # for ac_tag
12359
12360
12361 as_fn_exit 0
12362 _ACEOF
12363 ac_clean_files=$ac_clean_files_save
12364
12365 test $ac_write_fail = 0 ||
12366 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12367
12368
12369 # configure is writing to config.log, and then calls config.status.
12370 # config.status does its own redirection, appending to config.log.
12371 # Unfortunately, on DOS this fails, as config.log is still kept open
12372 # by configure, so config.status won't be able to write to it; its
12373 # output is simply discarded. So we exec the FD to /dev/null,
12374 # effectively closing config.log, so it can be properly (re)opened and
12375 # appended to by config.status. When coming back to configure, we
12376 # need to make the FD available again.
12377 if test "$no_create" != yes; then
12378 ac_cs_success=:
12379 ac_config_status_args=
12380 test "$silent" = yes &&
12381 ac_config_status_args="$ac_config_status_args --quiet"
12382 exec 5>/dev/null
12383 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12384 exec 5>>config.log
12385 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12386 # would make configure fail if this is the last instruction.
12387 $ac_cs_success || as_fn_exit 1
12388 fi
12389 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12391 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12392 fi
12393
12394