2008-07-24 Kai Tietz <kai.tietz@onevision.com>
[official-gcc.git] / fixincludes / configure
blob234619a9c560672c7d55d07fec8c471fe1233e6e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for fixincludes .
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME='fixincludes'
269 PACKAGE_TARNAME='fixincludes'
270 PACKAGE_VERSION=' '
271 PACKAGE_STRING='fixincludes '
272 PACKAGE_BUGREPORT=''
274 ac_unique_file="inclhack.def"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT WARN_CFLAGS WARN_PEDANTIC WERROR target_noncanonical TARGET CPP EGREP MAINT LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314 ac_pwd=`pwd`
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures fixincludes to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
802 _ACEOF
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
833 cat <<\_ACEOF
835 System types:
836 --build=BUILD configure for building on BUILD [guessed]
837 --host=HOST cross-compile to build programs to run on HOST [BUILD]
838 --target=TARGET configure for building compilers for TARGET [HOST]
839 _ACEOF
842 if test -n "$ac_init_help"; then
843 case $ac_init_help in
844 short | recursive ) echo "Configuration of fixincludes :";;
845 esac
846 cat <<\_ACEOF
848 Optional Features:
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851 --enable-werror-always enable -Werror despite compiler version
852 --enable-twoprocess Use a separate process to apply the fixes
853 --enable-maintainer-mode enable make rules and dependencies not useful
854 (and sometimes confusing) to the casual installer
856 Optional Packages:
857 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
858 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
859 --with-local-prefix=DIR specifies directory to put local include
861 Some influential environment variables:
862 CC C compiler command
863 CFLAGS C compiler flags
864 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
865 nonstandard directory <lib dir>
866 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
867 headers in a nonstandard directory <include dir>
868 CPP C preprocessor
870 Use these variables to override the choices made by `configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
873 _ACEOF
876 if test "$ac_init_help" = "recursive"; then
877 # If there are subdirs, report their specific --help.
878 ac_popdir=`pwd`
879 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880 test -d $ac_dir || continue
881 ac_builddir=.
883 if test "$ac_dir" != .; then
884 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885 # A "../" for each directory in $ac_dir_suffix.
886 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 else
888 ac_dir_suffix= ac_top_builddir=
891 case $srcdir in
892 .) # No --srcdir option. We are building in place.
893 ac_srcdir=.
894 if test -z "$ac_top_builddir"; then
895 ac_top_srcdir=.
896 else
897 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898 fi ;;
899 [\\/]* | ?:[\\/]* ) # Absolute path.
900 ac_srcdir=$srcdir$ac_dir_suffix;
901 ac_top_srcdir=$srcdir ;;
902 *) # Relative path.
903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
905 esac
907 # Do not use `cd foo && pwd` to compute absolute paths, because
908 # the directories may not exist.
909 case `pwd` in
910 .) ac_abs_builddir="$ac_dir";;
912 case "$ac_dir" in
913 .) ac_abs_builddir=`pwd`;;
914 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
915 *) ac_abs_builddir=`pwd`/"$ac_dir";;
916 esac;;
917 esac
918 case $ac_abs_builddir in
919 .) ac_abs_top_builddir=${ac_top_builddir}.;;
921 case ${ac_top_builddir}. in
922 .) ac_abs_top_builddir=$ac_abs_builddir;;
923 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
924 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
925 esac;;
926 esac
927 case $ac_abs_builddir in
928 .) ac_abs_srcdir=$ac_srcdir;;
930 case $ac_srcdir in
931 .) ac_abs_srcdir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
933 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
934 esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_top_srcdir=$ac_top_srcdir;;
939 case $ac_top_srcdir in
940 .) ac_abs_top_srcdir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
942 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
943 esac;;
944 esac
946 cd $ac_dir
947 # Check for guested configure; otherwise get Cygnus style configure.
948 if test -f $ac_srcdir/configure.gnu; then
949 echo
950 $SHELL $ac_srcdir/configure.gnu --help=recursive
951 elif test -f $ac_srcdir/configure; then
952 echo
953 $SHELL $ac_srcdir/configure --help=recursive
954 elif test -f $ac_srcdir/configure.ac ||
955 test -f $ac_srcdir/configure.in; then
956 echo
957 $ac_configure --help
958 else
959 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
961 cd $ac_popdir
962 done
965 test -n "$ac_init_help" && exit 0
966 if $ac_init_version; then
967 cat <<\_ACEOF
968 fixincludes configure
969 generated by GNU Autoconf 2.59
971 Copyright (C) 2003 Free Software Foundation, Inc.
972 This configure script is free software; the Free Software Foundation
973 gives unlimited permission to copy, distribute and modify it.
974 _ACEOF
975 exit 0
977 exec 5>config.log
978 cat >&5 <<_ACEOF
979 This file contains any messages produced by compilers while
980 running configure, to aid debugging if configure makes a mistake.
982 It was created by fixincludes $as_me , which was
983 generated by GNU Autoconf 2.59. Invocation command line was
985 $ $0 $@
987 _ACEOF
989 cat <<_ASUNAME
990 ## --------- ##
991 ## Platform. ##
992 ## --------- ##
994 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
995 uname -m = `(uname -m) 2>/dev/null || echo unknown`
996 uname -r = `(uname -r) 2>/dev/null || echo unknown`
997 uname -s = `(uname -s) 2>/dev/null || echo unknown`
998 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1000 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1001 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1003 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1004 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1005 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1006 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1007 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1008 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1009 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1011 _ASUNAME
1013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1014 for as_dir in $PATH
1016 IFS=$as_save_IFS
1017 test -z "$as_dir" && as_dir=.
1018 echo "PATH: $as_dir"
1019 done
1021 } >&5
1023 cat >&5 <<_ACEOF
1026 ## ----------- ##
1027 ## Core tests. ##
1028 ## ----------- ##
1030 _ACEOF
1033 # Keep a trace of the command line.
1034 # Strip out --no-create and --no-recursion so they do not pile up.
1035 # Strip out --silent because we don't want to record it for future runs.
1036 # Also quote any args containing shell meta-characters.
1037 # Make two passes to allow for proper duplicate-argument suppression.
1038 ac_configure_args=
1039 ac_configure_args0=
1040 ac_configure_args1=
1041 ac_sep=
1042 ac_must_keep_next=false
1043 for ac_pass in 1 2
1045 for ac_arg
1047 case $ac_arg in
1048 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050 | -silent | --silent | --silen | --sile | --sil)
1051 continue ;;
1052 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1054 esac
1055 case $ac_pass in
1056 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1058 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1059 if test $ac_must_keep_next = true; then
1060 ac_must_keep_next=false # Got value, back to normal.
1061 else
1062 case $ac_arg in
1063 *=* | --config-cache | -C | -disable-* | --disable-* \
1064 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1065 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1066 | -with-* | --with-* | -without-* | --without-* | --x)
1067 case "$ac_configure_args0 " in
1068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1069 esac
1071 -* ) ac_must_keep_next=true ;;
1072 esac
1074 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1075 # Get rid of the leading space.
1076 ac_sep=" "
1078 esac
1079 done
1080 done
1081 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1082 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1084 # When interrupted or exit'd, cleanup temporary files, and complete
1085 # config.log. We remove comments because anyway the quotes in there
1086 # would cause problems or look ugly.
1087 # WARNING: Be sure not to use single quotes in there, as some shells,
1088 # such as our DU 5.0 friend, will then `close' the trap.
1089 trap 'exit_status=$?
1090 # Save into config.log some information that might help in debugging.
1092 echo
1094 cat <<\_ASBOX
1095 ## ---------------- ##
1096 ## Cache variables. ##
1097 ## ---------------- ##
1098 _ASBOX
1099 echo
1100 # The following way of writing the cache mishandles newlines in values,
1102 (set) 2>&1 |
1103 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1104 *ac_space=\ *)
1105 sed -n \
1106 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1110 sed -n \
1111 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1113 esac;
1115 echo
1117 cat <<\_ASBOX
1118 ## ----------------- ##
1119 ## Output variables. ##
1120 ## ----------------- ##
1121 _ASBOX
1122 echo
1123 for ac_var in $ac_subst_vars
1125 eval ac_val=$`echo $ac_var`
1126 echo "$ac_var='"'"'$ac_val'"'"'"
1127 done | sort
1128 echo
1130 if test -n "$ac_subst_files"; then
1131 cat <<\_ASBOX
1132 ## ------------- ##
1133 ## Output files. ##
1134 ## ------------- ##
1135 _ASBOX
1136 echo
1137 for ac_var in $ac_subst_files
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
1145 if test -s confdefs.h; then
1146 cat <<\_ASBOX
1147 ## ----------- ##
1148 ## confdefs.h. ##
1149 ## ----------- ##
1150 _ASBOX
1151 echo
1152 sed "/^$/d" confdefs.h | sort
1153 echo
1155 test "$ac_signal" != 0 &&
1156 echo "$as_me: caught signal $ac_signal"
1157 echo "$as_me: exit $exit_status"
1158 } >&5
1159 rm -f core *.core &&
1160 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1161 exit $exit_status
1163 for ac_signal in 1 2 13 15; do
1164 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1165 done
1166 ac_signal=0
1168 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1169 rm -rf conftest* confdefs.h
1170 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1171 echo >confdefs.h
1173 # Predefined preprocessor variables.
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_NAME "$PACKAGE_NAME"
1177 _ACEOF
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1182 _ACEOF
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1187 _ACEOF
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_STRING "$PACKAGE_STRING"
1192 _ACEOF
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1197 _ACEOF
1200 # Let the site file select an alternate cache file if it wants to.
1201 # Prefer explicitly selected file to automatically selected ones.
1202 if test -z "$CONFIG_SITE"; then
1203 if test "x$prefix" != xNONE; then
1204 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1205 else
1206 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1209 for ac_site_file in $CONFIG_SITE; do
1210 if test -r "$ac_site_file"; then
1211 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1212 echo "$as_me: loading site script $ac_site_file" >&6;}
1213 sed 's/^/| /' "$ac_site_file" >&5
1214 . "$ac_site_file"
1216 done
1218 if test -r "$cache_file"; then
1219 # Some versions of bash will fail to source /dev/null (special
1220 # files actually), so we avoid doing that.
1221 if test -f "$cache_file"; then
1222 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1223 echo "$as_me: loading cache $cache_file" >&6;}
1224 case $cache_file in
1225 [\\/]* | ?:[\\/]* ) . $cache_file;;
1226 *) . ./$cache_file;;
1227 esac
1229 else
1230 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1231 echo "$as_me: creating cache $cache_file" >&6;}
1232 >$cache_file
1235 # Check that the precious variables saved in the cache have kept the same
1236 # value.
1237 ac_cache_corrupted=false
1238 for ac_var in `(set) 2>&1 |
1239 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1240 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1241 eval ac_new_set=\$ac_env_${ac_var}_set
1242 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1243 eval ac_new_val="\$ac_env_${ac_var}_value"
1244 case $ac_old_set,$ac_new_set in
1245 set,)
1246 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1247 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1248 ac_cache_corrupted=: ;;
1249 ,set)
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1253 ,);;
1255 if test "x$ac_old_val" != "x$ac_new_val"; then
1256 # differences in whitespace do not lead to failure.
1257 ac_old_val_w=`echo x $ac_old_val`
1258 ac_new_val_w=`echo x $ac_new_val`
1259 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1260 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1261 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1262 ac_cache_corrupted=:
1263 else
1264 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1265 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1266 eval $ac_var=\$ac_old_val
1268 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1269 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1270 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1271 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1272 fi;;
1273 esac
1274 # Pass precious variables to config.status.
1275 if test "$ac_new_set" = set; then
1276 case $ac_new_val in
1277 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1278 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1279 *) ac_arg=$ac_var=$ac_new_val ;;
1280 esac
1281 case " $ac_configure_args " in
1282 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1283 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1284 esac
1286 done
1287 if $ac_cache_corrupted; then
1288 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1289 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1290 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294 { (exit 1); exit 1; }; }
1297 ac_ext=c
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1333 ac_aux_dir=
1334 for ac_dir in .. $srcdir/..; do
1335 if test -f $ac_dir/install-sh; then
1336 ac_aux_dir=$ac_dir
1337 ac_install_sh="$ac_aux_dir/install-sh -c"
1338 break
1339 elif test -f $ac_dir/install.sh; then
1340 ac_aux_dir=$ac_dir
1341 ac_install_sh="$ac_aux_dir/install.sh -c"
1342 break
1343 elif test -f $ac_dir/shtool; then
1344 ac_aux_dir=$ac_dir
1345 ac_install_sh="$ac_aux_dir/shtool install -c"
1346 break
1348 done
1349 if test -z "$ac_aux_dir"; then
1350 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1351 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1352 { (exit 1); exit 1; }; }
1354 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1355 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1356 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1358 # Make sure we can run config.sub.
1359 $ac_config_sub sun4 >/dev/null 2>&1 ||
1360 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1361 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1362 { (exit 1); exit 1; }; }
1364 echo "$as_me:$LINENO: checking build system type" >&5
1365 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1366 if test "${ac_cv_build+set}" = set; then
1367 echo $ECHO_N "(cached) $ECHO_C" >&6
1368 else
1369 ac_cv_build_alias=$build_alias
1370 test -z "$ac_cv_build_alias" &&
1371 ac_cv_build_alias=`$ac_config_guess`
1372 test -z "$ac_cv_build_alias" &&
1373 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1374 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1375 { (exit 1); exit 1; }; }
1376 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1377 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1378 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1379 { (exit 1); exit 1; }; }
1382 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1383 echo "${ECHO_T}$ac_cv_build" >&6
1384 build=$ac_cv_build
1385 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1386 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1387 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1390 echo "$as_me:$LINENO: checking host system type" >&5
1391 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1392 if test "${ac_cv_host+set}" = set; then
1393 echo $ECHO_N "(cached) $ECHO_C" >&6
1394 else
1395 ac_cv_host_alias=$host_alias
1396 test -z "$ac_cv_host_alias" &&
1397 ac_cv_host_alias=$ac_cv_build_alias
1398 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1399 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1400 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1401 { (exit 1); exit 1; }; }
1404 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1405 echo "${ECHO_T}$ac_cv_host" >&6
1406 host=$ac_cv_host
1407 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1408 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1409 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1412 echo "$as_me:$LINENO: checking target system type" >&5
1413 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1414 if test "${ac_cv_target+set}" = set; then
1415 echo $ECHO_N "(cached) $ECHO_C" >&6
1416 else
1417 ac_cv_target_alias=$target_alias
1418 test "x$ac_cv_target_alias" = "x" &&
1419 ac_cv_target_alias=$ac_cv_host_alias
1420 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1421 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1422 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1423 { (exit 1); exit 1; }; }
1426 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1427 echo "${ECHO_T}$ac_cv_target" >&6
1428 target=$ac_cv_target
1429 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1430 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1431 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1434 # The aliases save the names the user supplied, while $host etc.
1435 # will get canonicalized.
1436 test -n "$target_alias" &&
1437 test "$program_prefix$program_suffix$program_transform_name" = \
1438 NONENONEs,x,x, &&
1439 program_prefix=${target_alias}-
1440 ac_ext=c
1441 ac_cpp='$CPP $CPPFLAGS'
1442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1445 if test -n "$ac_tool_prefix"; then
1446 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1447 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1448 echo "$as_me:$LINENO: checking for $ac_word" >&5
1449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1450 if test "${ac_cv_prog_CC+set}" = set; then
1451 echo $ECHO_N "(cached) $ECHO_C" >&6
1452 else
1453 if test -n "$CC"; then
1454 ac_cv_prog_CC="$CC" # Let the user override the test.
1455 else
1456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1457 for as_dir in $PATH
1459 IFS=$as_save_IFS
1460 test -z "$as_dir" && as_dir=.
1461 for ac_exec_ext in '' $ac_executable_extensions; do
1462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1463 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1465 break 2
1467 done
1468 done
1472 CC=$ac_cv_prog_CC
1473 if test -n "$CC"; then
1474 echo "$as_me:$LINENO: result: $CC" >&5
1475 echo "${ECHO_T}$CC" >&6
1476 else
1477 echo "$as_me:$LINENO: result: no" >&5
1478 echo "${ECHO_T}no" >&6
1482 if test -z "$ac_cv_prog_CC"; then
1483 ac_ct_CC=$CC
1484 # Extract the first word of "gcc", so it can be a program name with args.
1485 set dummy gcc; ac_word=$2
1486 echo "$as_me:$LINENO: checking for $ac_word" >&5
1487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1488 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1489 echo $ECHO_N "(cached) $ECHO_C" >&6
1490 else
1491 if test -n "$ac_ct_CC"; then
1492 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1493 else
1494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1495 for as_dir in $PATH
1497 IFS=$as_save_IFS
1498 test -z "$as_dir" && as_dir=.
1499 for ac_exec_ext in '' $ac_executable_extensions; do
1500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1501 ac_cv_prog_ac_ct_CC="gcc"
1502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1503 break 2
1505 done
1506 done
1510 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1511 if test -n "$ac_ct_CC"; then
1512 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1513 echo "${ECHO_T}$ac_ct_CC" >&6
1514 else
1515 echo "$as_me:$LINENO: result: no" >&5
1516 echo "${ECHO_T}no" >&6
1519 CC=$ac_ct_CC
1520 else
1521 CC="$ac_cv_prog_CC"
1524 if test -z "$CC"; then
1525 if test -n "$ac_tool_prefix"; then
1526 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1527 set dummy ${ac_tool_prefix}cc; ac_word=$2
1528 echo "$as_me:$LINENO: checking for $ac_word" >&5
1529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530 if test "${ac_cv_prog_CC+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1532 else
1533 if test -n "$CC"; then
1534 ac_cv_prog_CC="$CC" # Let the user override the test.
1535 else
1536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1537 for as_dir in $PATH
1539 IFS=$as_save_IFS
1540 test -z "$as_dir" && as_dir=.
1541 for ac_exec_ext in '' $ac_executable_extensions; do
1542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1543 ac_cv_prog_CC="${ac_tool_prefix}cc"
1544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1545 break 2
1547 done
1548 done
1552 CC=$ac_cv_prog_CC
1553 if test -n "$CC"; then
1554 echo "$as_me:$LINENO: result: $CC" >&5
1555 echo "${ECHO_T}$CC" >&6
1556 else
1557 echo "$as_me:$LINENO: result: no" >&5
1558 echo "${ECHO_T}no" >&6
1562 if test -z "$ac_cv_prog_CC"; then
1563 ac_ct_CC=$CC
1564 # Extract the first word of "cc", so it can be a program name with args.
1565 set dummy cc; ac_word=$2
1566 echo "$as_me:$LINENO: checking for $ac_word" >&5
1567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1568 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1569 echo $ECHO_N "(cached) $ECHO_C" >&6
1570 else
1571 if test -n "$ac_ct_CC"; then
1572 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1573 else
1574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1575 for as_dir in $PATH
1577 IFS=$as_save_IFS
1578 test -z "$as_dir" && as_dir=.
1579 for ac_exec_ext in '' $ac_executable_extensions; do
1580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1581 ac_cv_prog_ac_ct_CC="cc"
1582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1583 break 2
1585 done
1586 done
1590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1591 if test -n "$ac_ct_CC"; then
1592 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1593 echo "${ECHO_T}$ac_ct_CC" >&6
1594 else
1595 echo "$as_me:$LINENO: result: no" >&5
1596 echo "${ECHO_T}no" >&6
1599 CC=$ac_ct_CC
1600 else
1601 CC="$ac_cv_prog_CC"
1605 if test -z "$CC"; then
1606 # Extract the first word of "cc", so it can be a program name with args.
1607 set dummy cc; ac_word=$2
1608 echo "$as_me:$LINENO: checking for $ac_word" >&5
1609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610 if test "${ac_cv_prog_CC+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1612 else
1613 if test -n "$CC"; then
1614 ac_cv_prog_CC="$CC" # Let the user override the test.
1615 else
1616 ac_prog_rejected=no
1617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618 for as_dir in $PATH
1620 IFS=$as_save_IFS
1621 test -z "$as_dir" && as_dir=.
1622 for ac_exec_ext in '' $ac_executable_extensions; do
1623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1624 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1625 ac_prog_rejected=yes
1626 continue
1628 ac_cv_prog_CC="cc"
1629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1630 break 2
1632 done
1633 done
1635 if test $ac_prog_rejected = yes; then
1636 # We found a bogon in the path, so make sure we never use it.
1637 set dummy $ac_cv_prog_CC
1638 shift
1639 if test $# != 0; then
1640 # We chose a different compiler from the bogus one.
1641 # However, it has the same basename, so the bogon will be chosen
1642 # first if we set CC to just the basename; use the full file name.
1643 shift
1644 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1649 CC=$ac_cv_prog_CC
1650 if test -n "$CC"; then
1651 echo "$as_me:$LINENO: result: $CC" >&5
1652 echo "${ECHO_T}$CC" >&6
1653 else
1654 echo "$as_me:$LINENO: result: no" >&5
1655 echo "${ECHO_T}no" >&6
1659 if test -z "$CC"; then
1660 if test -n "$ac_tool_prefix"; then
1661 for ac_prog in cl
1663 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1664 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1665 echo "$as_me:$LINENO: checking for $ac_word" >&5
1666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1667 if test "${ac_cv_prog_CC+set}" = set; then
1668 echo $ECHO_N "(cached) $ECHO_C" >&6
1669 else
1670 if test -n "$CC"; then
1671 ac_cv_prog_CC="$CC" # Let the user override the test.
1672 else
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 for as_dir in $PATH
1676 IFS=$as_save_IFS
1677 test -z "$as_dir" && as_dir=.
1678 for ac_exec_ext in '' $ac_executable_extensions; do
1679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1680 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1682 break 2
1684 done
1685 done
1689 CC=$ac_cv_prog_CC
1690 if test -n "$CC"; then
1691 echo "$as_me:$LINENO: result: $CC" >&5
1692 echo "${ECHO_T}$CC" >&6
1693 else
1694 echo "$as_me:$LINENO: result: no" >&5
1695 echo "${ECHO_T}no" >&6
1698 test -n "$CC" && break
1699 done
1701 if test -z "$CC"; then
1702 ac_ct_CC=$CC
1703 for ac_prog in cl
1705 # Extract the first word of "$ac_prog", so it can be a program name with args.
1706 set dummy $ac_prog; ac_word=$2
1707 echo "$as_me:$LINENO: checking for $ac_word" >&5
1708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1709 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1710 echo $ECHO_N "(cached) $ECHO_C" >&6
1711 else
1712 if test -n "$ac_ct_CC"; then
1713 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1714 else
1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716 for as_dir in $PATH
1718 IFS=$as_save_IFS
1719 test -z "$as_dir" && as_dir=.
1720 for ac_exec_ext in '' $ac_executable_extensions; do
1721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1722 ac_cv_prog_ac_ct_CC="$ac_prog"
1723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1724 break 2
1726 done
1727 done
1731 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1732 if test -n "$ac_ct_CC"; then
1733 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1734 echo "${ECHO_T}$ac_ct_CC" >&6
1735 else
1736 echo "$as_me:$LINENO: result: no" >&5
1737 echo "${ECHO_T}no" >&6
1740 test -n "$ac_ct_CC" && break
1741 done
1743 CC=$ac_ct_CC
1749 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1750 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1751 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1752 See \`config.log' for more details." >&5
1753 echo "$as_me: error: no acceptable C compiler found in \$PATH
1754 See \`config.log' for more details." >&2;}
1755 { (exit 1); exit 1; }; }; }
1757 # Provide some information about the compiler.
1758 echo "$as_me:$LINENO:" \
1759 "checking for C compiler version" >&5
1760 ac_compiler=`set X $ac_compile; echo $2`
1761 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1762 (eval $ac_compiler --version </dev/null >&5) 2>&5
1763 ac_status=$?
1764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1765 (exit $ac_status); }
1766 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1767 (eval $ac_compiler -v </dev/null >&5) 2>&5
1768 ac_status=$?
1769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1770 (exit $ac_status); }
1771 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1772 (eval $ac_compiler -V </dev/null >&5) 2>&5
1773 ac_status=$?
1774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1775 (exit $ac_status); }
1777 cat >conftest.$ac_ext <<_ACEOF
1778 /* confdefs.h. */
1779 _ACEOF
1780 cat confdefs.h >>conftest.$ac_ext
1781 cat >>conftest.$ac_ext <<_ACEOF
1782 /* end confdefs.h. */
1785 main ()
1789 return 0;
1791 _ACEOF
1792 ac_clean_files_save=$ac_clean_files
1793 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1794 # Try to create an executable without -o first, disregard a.out.
1795 # It will help us diagnose broken compilers, and finding out an intuition
1796 # of exeext.
1797 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1798 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1799 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1800 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1801 (eval $ac_link_default) 2>&5
1802 ac_status=$?
1803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1804 (exit $ac_status); }; then
1805 # Find the output, starting from the most likely. This scheme is
1806 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1807 # resort.
1809 # Be careful to initialize this variable, since it used to be cached.
1810 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1811 ac_cv_exeext=
1812 # b.out is created by i960 compilers.
1813 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1815 test -f "$ac_file" || continue
1816 case $ac_file in
1817 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1819 conftest.$ac_ext )
1820 # This is the source file.
1822 [ab].out )
1823 # We found the default executable, but exeext='' is most
1824 # certainly right.
1825 break;;
1826 *.* )
1827 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1828 # FIXME: I believe we export ac_cv_exeext for Libtool,
1829 # but it would be cool to find out if it's true. Does anybody
1830 # maintain Libtool? --akim.
1831 export ac_cv_exeext
1832 break;;
1834 break;;
1835 esac
1836 done
1837 else
1838 echo "$as_me: failed program was:" >&5
1839 sed 's/^/| /' conftest.$ac_ext >&5
1841 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1842 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1843 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1844 See \`config.log' for more details." >&5
1845 echo "$as_me: error: C compiler cannot create executables
1846 See \`config.log' for more details." >&2;}
1847 { (exit 77); exit 77; }; }; }
1850 ac_exeext=$ac_cv_exeext
1851 echo "$as_me:$LINENO: result: $ac_file" >&5
1852 echo "${ECHO_T}$ac_file" >&6
1854 # Check the compiler produces executables we can run. If not, either
1855 # the compiler is broken, or we cross compile.
1856 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1857 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1858 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1859 # If not cross compiling, check that we can run a simple program.
1860 if test "$cross_compiling" != yes; then
1861 if { ac_try='./$ac_file'
1862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1863 (eval $ac_try) 2>&5
1864 ac_status=$?
1865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1866 (exit $ac_status); }; }; then
1867 cross_compiling=no
1868 else
1869 if test "$cross_compiling" = maybe; then
1870 cross_compiling=yes
1871 else
1872 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1873 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1874 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1875 If you meant to cross compile, use \`--host'.
1876 See \`config.log' for more details." >&5
1877 echo "$as_me: error: cannot run C compiled programs.
1878 If you meant to cross compile, use \`--host'.
1879 See \`config.log' for more details." >&2;}
1880 { (exit 1); exit 1; }; }; }
1884 echo "$as_me:$LINENO: result: yes" >&5
1885 echo "${ECHO_T}yes" >&6
1887 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1888 ac_clean_files=$ac_clean_files_save
1889 # Check the compiler produces executables we can run. If not, either
1890 # the compiler is broken, or we cross compile.
1891 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1892 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1893 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1894 echo "${ECHO_T}$cross_compiling" >&6
1896 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1897 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1899 (eval $ac_link) 2>&5
1900 ac_status=$?
1901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1902 (exit $ac_status); }; then
1903 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1904 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1905 # work properly (i.e., refer to `conftest.exe'), while it won't with
1906 # `rm'.
1907 for ac_file in conftest.exe conftest conftest.*; do
1908 test -f "$ac_file" || continue
1909 case $ac_file in
1910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1911 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1912 export ac_cv_exeext
1913 break;;
1914 * ) break;;
1915 esac
1916 done
1917 else
1918 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1919 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1920 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1921 See \`config.log' for more details." >&5
1922 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1923 See \`config.log' for more details." >&2;}
1924 { (exit 1); exit 1; }; }; }
1927 rm -f conftest$ac_cv_exeext
1928 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1929 echo "${ECHO_T}$ac_cv_exeext" >&6
1931 rm -f conftest.$ac_ext
1932 EXEEXT=$ac_cv_exeext
1933 ac_exeext=$EXEEXT
1934 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1935 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1936 if test "${ac_cv_objext+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1938 else
1939 cat >conftest.$ac_ext <<_ACEOF
1940 /* confdefs.h. */
1941 _ACEOF
1942 cat confdefs.h >>conftest.$ac_ext
1943 cat >>conftest.$ac_ext <<_ACEOF
1944 /* end confdefs.h. */
1947 main ()
1951 return 0;
1953 _ACEOF
1954 rm -f conftest.o conftest.obj
1955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1956 (eval $ac_compile) 2>&5
1957 ac_status=$?
1958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1959 (exit $ac_status); }; then
1960 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1961 case $ac_file in
1962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1963 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1964 break;;
1965 esac
1966 done
1967 else
1968 echo "$as_me: failed program was:" >&5
1969 sed 's/^/| /' conftest.$ac_ext >&5
1971 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1972 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1973 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1974 See \`config.log' for more details." >&5
1975 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1976 See \`config.log' for more details." >&2;}
1977 { (exit 1); exit 1; }; }; }
1980 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1982 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1983 echo "${ECHO_T}$ac_cv_objext" >&6
1984 OBJEXT=$ac_cv_objext
1985 ac_objext=$OBJEXT
1986 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1987 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1988 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1990 else
1991 cat >conftest.$ac_ext <<_ACEOF
1992 /* confdefs.h. */
1993 _ACEOF
1994 cat confdefs.h >>conftest.$ac_ext
1995 cat >>conftest.$ac_ext <<_ACEOF
1996 /* end confdefs.h. */
1999 main ()
2001 #ifndef __GNUC__
2002 choke me
2003 #endif
2006 return 0;
2008 _ACEOF
2009 rm -f conftest.$ac_objext
2010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2011 (eval $ac_compile) 2>conftest.er1
2012 ac_status=$?
2013 grep -v '^ *+' conftest.er1 >conftest.err
2014 rm -f conftest.er1
2015 cat conftest.err >&5
2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017 (exit $ac_status); } &&
2018 { ac_try='test -z "$ac_c_werror_flag"
2019 || test ! -s conftest.err'
2020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2021 (eval $ac_try) 2>&5
2022 ac_status=$?
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }; } &&
2025 { ac_try='test -s conftest.$ac_objext'
2026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2027 (eval $ac_try) 2>&5
2028 ac_status=$?
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }; }; then
2031 ac_compiler_gnu=yes
2032 else
2033 echo "$as_me: failed program was:" >&5
2034 sed 's/^/| /' conftest.$ac_ext >&5
2036 ac_compiler_gnu=no
2038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2039 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2042 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2043 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2044 GCC=`test $ac_compiler_gnu = yes && echo yes`
2045 ac_test_CFLAGS=${CFLAGS+set}
2046 ac_save_CFLAGS=$CFLAGS
2047 CFLAGS="-g"
2048 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2049 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2050 if test "${ac_cv_prog_cc_g+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2052 else
2053 cat >conftest.$ac_ext <<_ACEOF
2054 /* confdefs.h. */
2055 _ACEOF
2056 cat confdefs.h >>conftest.$ac_ext
2057 cat >>conftest.$ac_ext <<_ACEOF
2058 /* end confdefs.h. */
2061 main ()
2065 return 0;
2067 _ACEOF
2068 rm -f conftest.$ac_objext
2069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2070 (eval $ac_compile) 2>conftest.er1
2071 ac_status=$?
2072 grep -v '^ *+' conftest.er1 >conftest.err
2073 rm -f conftest.er1
2074 cat conftest.err >&5
2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076 (exit $ac_status); } &&
2077 { ac_try='test -z "$ac_c_werror_flag"
2078 || test ! -s conftest.err'
2079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2080 (eval $ac_try) 2>&5
2081 ac_status=$?
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }; } &&
2084 { ac_try='test -s conftest.$ac_objext'
2085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2086 (eval $ac_try) 2>&5
2087 ac_status=$?
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; }; then
2090 ac_cv_prog_cc_g=yes
2091 else
2092 echo "$as_me: failed program was:" >&5
2093 sed 's/^/| /' conftest.$ac_ext >&5
2095 ac_cv_prog_cc_g=no
2097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2099 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2100 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2101 if test "$ac_test_CFLAGS" = set; then
2102 CFLAGS=$ac_save_CFLAGS
2103 elif test $ac_cv_prog_cc_g = yes; then
2104 if test "$GCC" = yes; then
2105 CFLAGS="-g -O2"
2106 else
2107 CFLAGS="-g"
2109 else
2110 if test "$GCC" = yes; then
2111 CFLAGS="-O2"
2112 else
2113 CFLAGS=
2116 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2117 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2118 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 else
2121 ac_cv_prog_cc_stdc=no
2122 ac_save_CC=$CC
2123 cat >conftest.$ac_ext <<_ACEOF
2124 /* confdefs.h. */
2125 _ACEOF
2126 cat confdefs.h >>conftest.$ac_ext
2127 cat >>conftest.$ac_ext <<_ACEOF
2128 /* end confdefs.h. */
2129 #include <stdarg.h>
2130 #include <stdio.h>
2131 #include <sys/types.h>
2132 #include <sys/stat.h>
2133 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2134 struct buf { int x; };
2135 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2136 static char *e (p, i)
2137 char **p;
2138 int i;
2140 return p[i];
2142 static char *f (char * (*g) (char **, int), char **p, ...)
2144 char *s;
2145 va_list v;
2146 va_start (v,p);
2147 s = g (p, va_arg (v,int));
2148 va_end (v);
2149 return s;
2152 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2153 function prototypes and stuff, but not '\xHH' hex character constants.
2154 These don't provoke an error unfortunately, instead are silently treated
2155 as 'x'. The following induces an error, until -std1 is added to get
2156 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2157 array size at least. It's necessary to write '\x00'==0 to get something
2158 that's true only with -std1. */
2159 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2161 int test (int i, double x);
2162 struct s1 {int (*f) (int a);};
2163 struct s2 {int (*f) (double a);};
2164 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2165 int argc;
2166 char **argv;
2168 main ()
2170 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2172 return 0;
2174 _ACEOF
2175 # Don't try gcc -ansi; that turns off useful extensions and
2176 # breaks some systems' header files.
2177 # AIX -qlanglvl=ansi
2178 # Ultrix and OSF/1 -std1
2179 # HP-UX 10.20 and later -Ae
2180 # HP-UX older versions -Aa -D_HPUX_SOURCE
2181 # SVR4 -Xc -D__EXTENSIONS__
2182 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2184 CC="$ac_save_CC $ac_arg"
2185 rm -f conftest.$ac_objext
2186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2187 (eval $ac_compile) 2>conftest.er1
2188 ac_status=$?
2189 grep -v '^ *+' conftest.er1 >conftest.err
2190 rm -f conftest.er1
2191 cat conftest.err >&5
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); } &&
2194 { ac_try='test -z "$ac_c_werror_flag"
2195 || test ! -s conftest.err'
2196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2197 (eval $ac_try) 2>&5
2198 ac_status=$?
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; } &&
2201 { ac_try='test -s conftest.$ac_objext'
2202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2203 (eval $ac_try) 2>&5
2204 ac_status=$?
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; }; then
2207 ac_cv_prog_cc_stdc=$ac_arg
2208 break
2209 else
2210 echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2214 rm -f conftest.err conftest.$ac_objext
2215 done
2216 rm -f conftest.$ac_ext conftest.$ac_objext
2217 CC=$ac_save_CC
2221 case "x$ac_cv_prog_cc_stdc" in
2222 x|xno)
2223 echo "$as_me:$LINENO: result: none needed" >&5
2224 echo "${ECHO_T}none needed" >&6 ;;
2226 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2227 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2228 CC="$CC $ac_cv_prog_cc_stdc" ;;
2229 esac
2231 # Some people use a C++ compiler to compile C. Since we use `exit',
2232 # in C++ we need to declare it. In case someone uses the same compiler
2233 # for both compiling C and C++ we need to have the C++ compiler decide
2234 # the declaration of exit, since it's the most demanding environment.
2235 cat >conftest.$ac_ext <<_ACEOF
2236 #ifndef __cplusplus
2237 choke me
2238 #endif
2239 _ACEOF
2240 rm -f conftest.$ac_objext
2241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2242 (eval $ac_compile) 2>conftest.er1
2243 ac_status=$?
2244 grep -v '^ *+' conftest.er1 >conftest.err
2245 rm -f conftest.er1
2246 cat conftest.err >&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); } &&
2249 { ac_try='test -z "$ac_c_werror_flag"
2250 || test ! -s conftest.err'
2251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2252 (eval $ac_try) 2>&5
2253 ac_status=$?
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; } &&
2256 { ac_try='test -s conftest.$ac_objext'
2257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2258 (eval $ac_try) 2>&5
2259 ac_status=$?
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; }; then
2262 for ac_declaration in \
2263 '' \
2264 'extern "C" void std::exit (int) throw (); using std::exit;' \
2265 'extern "C" void std::exit (int); using std::exit;' \
2266 'extern "C" void exit (int) throw ();' \
2267 'extern "C" void exit (int);' \
2268 'void exit (int);'
2270 cat >conftest.$ac_ext <<_ACEOF
2271 /* confdefs.h. */
2272 _ACEOF
2273 cat confdefs.h >>conftest.$ac_ext
2274 cat >>conftest.$ac_ext <<_ACEOF
2275 /* end confdefs.h. */
2276 $ac_declaration
2277 #include <stdlib.h>
2279 main ()
2281 exit (42);
2283 return 0;
2285 _ACEOF
2286 rm -f conftest.$ac_objext
2287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2288 (eval $ac_compile) 2>conftest.er1
2289 ac_status=$?
2290 grep -v '^ *+' conftest.er1 >conftest.err
2291 rm -f conftest.er1
2292 cat conftest.err >&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); } &&
2295 { ac_try='test -z "$ac_c_werror_flag"
2296 || test ! -s conftest.err'
2297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298 (eval $ac_try) 2>&5
2299 ac_status=$?
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; } &&
2302 { ac_try='test -s conftest.$ac_objext'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304 (eval $ac_try) 2>&5
2305 ac_status=$?
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; }; then
2309 else
2310 echo "$as_me: failed program was:" >&5
2311 sed 's/^/| /' conftest.$ac_ext >&5
2313 continue
2315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2316 cat >conftest.$ac_ext <<_ACEOF
2317 /* confdefs.h. */
2318 _ACEOF
2319 cat confdefs.h >>conftest.$ac_ext
2320 cat >>conftest.$ac_ext <<_ACEOF
2321 /* end confdefs.h. */
2322 $ac_declaration
2324 main ()
2326 exit (42);
2328 return 0;
2330 _ACEOF
2331 rm -f conftest.$ac_objext
2332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333 (eval $ac_compile) 2>conftest.er1
2334 ac_status=$?
2335 grep -v '^ *+' conftest.er1 >conftest.err
2336 rm -f conftest.er1
2337 cat conftest.err >&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); } &&
2340 { ac_try='test -z "$ac_c_werror_flag"
2341 || test ! -s conftest.err'
2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343 (eval $ac_try) 2>&5
2344 ac_status=$?
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; } &&
2347 { ac_try='test -s conftest.$ac_objext'
2348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349 (eval $ac_try) 2>&5
2350 ac_status=$?
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; }; then
2353 break
2354 else
2355 echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.$ac_ext >&5
2359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2360 done
2361 rm -f conftest*
2362 if test -n "$ac_declaration"; then
2363 echo '#ifdef __cplusplus' >>confdefs.h
2364 echo $ac_declaration >>confdefs.h
2365 echo '#endif' >>confdefs.h
2368 else
2369 echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2374 ac_ext=c
2375 ac_cpp='$CPP $CPPFLAGS'
2376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2381 # Figure out what compiler warnings we can enable.
2382 # See config/warnings.m4 for details.
2385 WARN_CFLAGS=
2386 save_CFLAGS="$CFLAGS"
2387 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
2388 -Wmissing-prototypes -Wold-style-definition \
2389 -Wmissing-format-attribute -Wno-overlength-strings; do
2390 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
2392 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
2393 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
2394 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397 CFLAGS="$option"
2398 cat >conftest.$ac_ext <<_ACEOF
2399 /* confdefs.h. */
2400 _ACEOF
2401 cat confdefs.h >>conftest.$ac_ext
2402 cat >>conftest.$ac_ext <<_ACEOF
2403 /* end confdefs.h. */
2406 main ()
2410 return 0;
2412 _ACEOF
2413 rm -f conftest.$ac_objext
2414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415 (eval $ac_compile) 2>conftest.er1
2416 ac_status=$?
2417 grep -v '^ *+' conftest.er1 >conftest.err
2418 rm -f conftest.er1
2419 cat conftest.err >&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); } &&
2422 { ac_try='test -z "$ac_c_werror_flag"
2423 || test ! -s conftest.err'
2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425 (eval $ac_try) 2>&5
2426 ac_status=$?
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; } &&
2429 { ac_try='test -s conftest.$ac_objext'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431 (eval $ac_try) 2>&5
2432 ac_status=$?
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; }; then
2435 eval "$as_acx_Woption=yes"
2436 else
2437 echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2440 eval "$as_acx_Woption=no"
2442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2445 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
2446 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
2447 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
2448 WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$option"
2451 done
2452 CFLAGS="$save_CFLAGS"
2454 WARN_PEDANTIC=
2455 if test "$GCC" = yes; then
2456 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long" >&5
2457 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long... $ECHO_C" >&6
2458 if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 else
2461 save_CFLAGS="$CFLAGS"
2462 CFLAGS="-pedantic -Wno-long-long"
2463 cat >conftest.$ac_ext <<_ACEOF
2464 /* confdefs.h. */
2465 _ACEOF
2466 cat confdefs.h >>conftest.$ac_ext
2467 cat >>conftest.$ac_ext <<_ACEOF
2468 /* end confdefs.h. */
2471 main ()
2475 return 0;
2477 _ACEOF
2478 rm -f conftest.$ac_objext
2479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2480 (eval $ac_compile) 2>conftest.er1
2481 ac_status=$?
2482 grep -v '^ *+' conftest.er1 >conftest.err
2483 rm -f conftest.er1
2484 cat conftest.err >&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); } &&
2487 { ac_try='test -z "$ac_c_werror_flag"
2488 || test ! -s conftest.err'
2489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2490 (eval $ac_try) 2>&5
2491 ac_status=$?
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }; } &&
2494 { ac_try='test -s conftest.$ac_objext'
2495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2496 (eval $ac_try) 2>&5
2497 ac_status=$?
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }; }; then
2500 acx_cv_prog_cc_pedantic__Wno_long_long=yes
2501 else
2502 echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2505 acx_cv_prog_cc_pedantic__Wno_long_long=no
2507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2508 CFLAGS="$save_CFLAGS"
2510 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5
2511 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long" >&6
2512 if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then
2513 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
2521 # Only enable with --enable-werror-always until existing warnings are
2522 # corrected.
2523 WERROR=
2524 # Check whether --enable-werror-always or --disable-werror-always was given.
2525 if test "${enable_werror_always+set}" = set; then
2526 enableval="$enable_werror_always"
2528 else
2529 enable_werror_always=no
2531 if test $enable_werror_always = yes; then
2532 WERROR="$WERROR${WERROR:+ }-Werror"
2538 # Determine the noncanonical target name, for directory use.
2539 case ${build_alias} in
2540 "") build_noncanonical=${build} ;;
2541 *) build_noncanonical=${build_alias} ;;
2542 esac
2544 case ${host_alias} in
2545 "") host_noncanonical=${build_noncanonical} ;;
2546 *) host_noncanonical=${host_alias} ;;
2547 esac
2549 case ${target_alias} in
2550 "") target_noncanonical=${host_noncanonical} ;;
2551 *) target_noncanonical=${target_alias} ;;
2552 esac
2557 # Specify the local prefix
2558 local_prefix=
2560 # Check whether --with-local-prefix or --without-local-prefix was given.
2561 if test "${with_local_prefix+set}" = set; then
2562 withval="$with_local_prefix"
2563 case "${withval}" in
2564 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
2565 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
2566 { (exit 1); exit 1; }; } ;;
2567 no) ;;
2568 *) local_prefix=$with_local_prefix ;;
2569 esac
2572 # Default local prefix if it is empty
2573 if test x$local_prefix = x; then
2574 local_prefix=/usr/local
2577 # Choose one or two-process fix methodology. Systems that cannot handle
2578 # bi-directional pipes must use the two process method.
2580 # Check whether --enable-twoprocess or --disable-twoprocess was given.
2581 if test "${enable_twoprocess+set}" = set; then
2582 enableval="$enable_twoprocess"
2583 if test "x$enable_twoprocess" = xyes; then
2584 TARGET=twoprocess
2585 else
2586 TARGET=oneprocess
2588 else
2589 case $host in
2590 i?86-*-msdosdjgpp* | \
2591 i?86-*-mingw32* | \
2592 x86_64-*-mingw32* | \
2593 *-*-beos* )
2594 TARGET=twoprocess
2598 TARGET=oneprocess
2600 esac
2604 if test $TARGET = twoprocess; then
2606 cat >>confdefs.h <<\_ACEOF
2607 #define SEPARATE_FIX_PROC 1
2608 _ACEOF
2612 case $host in
2613 vax-dec-bsd* )
2615 cat >>confdefs.h <<\_ACEOF
2616 #define exit xexit
2617 _ACEOF
2620 cat >>confdefs.h <<\_ACEOF
2621 #define atexit xatexit
2622 _ACEOF
2625 esac
2628 cat >>confdefs.h <<_ACEOF
2629 #define EXE_EXT "$ac_exeext"
2630 _ACEOF
2633 # Checks for header files.
2634 ac_ext=c
2635 ac_cpp='$CPP $CPPFLAGS'
2636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2639 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2640 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2641 # On Suns, sometimes $CPP names a directory.
2642 if test -n "$CPP" && test -d "$CPP"; then
2643 CPP=
2645 if test -z "$CPP"; then
2646 if test "${ac_cv_prog_CPP+set}" = set; then
2647 echo $ECHO_N "(cached) $ECHO_C" >&6
2648 else
2649 # Double quotes because CPP needs to be expanded
2650 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2652 ac_preproc_ok=false
2653 for ac_c_preproc_warn_flag in '' yes
2655 # Use a header file that comes with gcc, so configuring glibc
2656 # with a fresh cross-compiler works.
2657 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2658 # <limits.h> exists even on freestanding compilers.
2659 # On the NeXT, cc -E runs the code through the compiler's parser,
2660 # not just through cpp. "Syntax error" is here to catch this case.
2661 cat >conftest.$ac_ext <<_ACEOF
2662 /* confdefs.h. */
2663 _ACEOF
2664 cat confdefs.h >>conftest.$ac_ext
2665 cat >>conftest.$ac_ext <<_ACEOF
2666 /* end confdefs.h. */
2667 #ifdef __STDC__
2668 # include <limits.h>
2669 #else
2670 # include <assert.h>
2671 #endif
2672 Syntax error
2673 _ACEOF
2674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2676 ac_status=$?
2677 grep -v '^ *+' conftest.er1 >conftest.err
2678 rm -f conftest.er1
2679 cat conftest.err >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); } >/dev/null; then
2682 if test -s conftest.err; then
2683 ac_cpp_err=$ac_c_preproc_warn_flag
2684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2685 else
2686 ac_cpp_err=
2688 else
2689 ac_cpp_err=yes
2691 if test -z "$ac_cpp_err"; then
2693 else
2694 echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.$ac_ext >&5
2697 # Broken: fails on valid input.
2698 continue
2700 rm -f conftest.err conftest.$ac_ext
2702 # OK, works on sane cases. Now check whether non-existent headers
2703 # can be detected and how.
2704 cat >conftest.$ac_ext <<_ACEOF
2705 /* confdefs.h. */
2706 _ACEOF
2707 cat confdefs.h >>conftest.$ac_ext
2708 cat >>conftest.$ac_ext <<_ACEOF
2709 /* end confdefs.h. */
2710 #include <ac_nonexistent.h>
2711 _ACEOF
2712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2714 ac_status=$?
2715 grep -v '^ *+' conftest.er1 >conftest.err
2716 rm -f conftest.er1
2717 cat conftest.err >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } >/dev/null; then
2720 if test -s conftest.err; then
2721 ac_cpp_err=$ac_c_preproc_warn_flag
2722 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2723 else
2724 ac_cpp_err=
2726 else
2727 ac_cpp_err=yes
2729 if test -z "$ac_cpp_err"; then
2730 # Broken: success on invalid input.
2731 continue
2732 else
2733 echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2736 # Passes both tests.
2737 ac_preproc_ok=:
2738 break
2740 rm -f conftest.err conftest.$ac_ext
2742 done
2743 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2744 rm -f conftest.err conftest.$ac_ext
2745 if $ac_preproc_ok; then
2746 break
2749 done
2750 ac_cv_prog_CPP=$CPP
2753 CPP=$ac_cv_prog_CPP
2754 else
2755 ac_cv_prog_CPP=$CPP
2757 echo "$as_me:$LINENO: result: $CPP" >&5
2758 echo "${ECHO_T}$CPP" >&6
2759 ac_preproc_ok=false
2760 for ac_c_preproc_warn_flag in '' yes
2762 # Use a header file that comes with gcc, so configuring glibc
2763 # with a fresh cross-compiler works.
2764 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2765 # <limits.h> exists even on freestanding compilers.
2766 # On the NeXT, cc -E runs the code through the compiler's parser,
2767 # not just through cpp. "Syntax error" is here to catch this case.
2768 cat >conftest.$ac_ext <<_ACEOF
2769 /* confdefs.h. */
2770 _ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h. */
2774 #ifdef __STDC__
2775 # include <limits.h>
2776 #else
2777 # include <assert.h>
2778 #endif
2779 Syntax error
2780 _ACEOF
2781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2783 ac_status=$?
2784 grep -v '^ *+' conftest.er1 >conftest.err
2785 rm -f conftest.er1
2786 cat conftest.err >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); } >/dev/null; then
2789 if test -s conftest.err; then
2790 ac_cpp_err=$ac_c_preproc_warn_flag
2791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2792 else
2793 ac_cpp_err=
2795 else
2796 ac_cpp_err=yes
2798 if test -z "$ac_cpp_err"; then
2800 else
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2804 # Broken: fails on valid input.
2805 continue
2807 rm -f conftest.err conftest.$ac_ext
2809 # OK, works on sane cases. Now check whether non-existent headers
2810 # can be detected and how.
2811 cat >conftest.$ac_ext <<_ACEOF
2812 /* confdefs.h. */
2813 _ACEOF
2814 cat confdefs.h >>conftest.$ac_ext
2815 cat >>conftest.$ac_ext <<_ACEOF
2816 /* end confdefs.h. */
2817 #include <ac_nonexistent.h>
2818 _ACEOF
2819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2821 ac_status=$?
2822 grep -v '^ *+' conftest.er1 >conftest.err
2823 rm -f conftest.er1
2824 cat conftest.err >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); } >/dev/null; then
2827 if test -s conftest.err; then
2828 ac_cpp_err=$ac_c_preproc_warn_flag
2829 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2830 else
2831 ac_cpp_err=
2833 else
2834 ac_cpp_err=yes
2836 if test -z "$ac_cpp_err"; then
2837 # Broken: success on invalid input.
2838 continue
2839 else
2840 echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.$ac_ext >&5
2843 # Passes both tests.
2844 ac_preproc_ok=:
2845 break
2847 rm -f conftest.err conftest.$ac_ext
2849 done
2850 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2851 rm -f conftest.err conftest.$ac_ext
2852 if $ac_preproc_ok; then
2854 else
2855 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2856 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2857 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2858 See \`config.log' for more details." >&5
2859 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2860 See \`config.log' for more details." >&2;}
2861 { (exit 1); exit 1; }; }; }
2864 ac_ext=c
2865 ac_cpp='$CPP $CPPFLAGS'
2866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2871 echo "$as_me:$LINENO: checking for egrep" >&5
2872 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2873 if test "${ac_cv_prog_egrep+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2875 else
2876 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2877 then ac_cv_prog_egrep='grep -E'
2878 else ac_cv_prog_egrep='egrep'
2881 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2882 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2883 EGREP=$ac_cv_prog_egrep
2886 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2887 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2888 if test "${ac_cv_header_stdc+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891 cat >conftest.$ac_ext <<_ACEOF
2892 /* confdefs.h. */
2893 _ACEOF
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h. */
2897 #include <stdlib.h>
2898 #include <stdarg.h>
2899 #include <string.h>
2900 #include <float.h>
2903 main ()
2907 return 0;
2909 _ACEOF
2910 rm -f conftest.$ac_objext
2911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2912 (eval $ac_compile) 2>conftest.er1
2913 ac_status=$?
2914 grep -v '^ *+' conftest.er1 >conftest.err
2915 rm -f conftest.er1
2916 cat conftest.err >&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); } &&
2919 { ac_try='test -z "$ac_c_werror_flag"
2920 || test ! -s conftest.err'
2921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2922 (eval $ac_try) 2>&5
2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; } &&
2926 { ac_try='test -s conftest.$ac_objext'
2927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928 (eval $ac_try) 2>&5
2929 ac_status=$?
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }; }; then
2932 ac_cv_header_stdc=yes
2933 else
2934 echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2937 ac_cv_header_stdc=no
2939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2941 if test $ac_cv_header_stdc = yes; then
2942 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2943 cat >conftest.$ac_ext <<_ACEOF
2944 /* confdefs.h. */
2945 _ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2949 #include <string.h>
2951 _ACEOF
2952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2953 $EGREP "memchr" >/dev/null 2>&1; then
2955 else
2956 ac_cv_header_stdc=no
2958 rm -f conftest*
2962 if test $ac_cv_header_stdc = yes; then
2963 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2964 cat >conftest.$ac_ext <<_ACEOF
2965 /* confdefs.h. */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2970 #include <stdlib.h>
2972 _ACEOF
2973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2974 $EGREP "free" >/dev/null 2>&1; then
2976 else
2977 ac_cv_header_stdc=no
2979 rm -f conftest*
2983 if test $ac_cv_header_stdc = yes; then
2984 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2985 if test "$cross_compiling" = yes; then
2987 else
2988 cat >conftest.$ac_ext <<_ACEOF
2989 /* confdefs.h. */
2990 _ACEOF
2991 cat confdefs.h >>conftest.$ac_ext
2992 cat >>conftest.$ac_ext <<_ACEOF
2993 /* end confdefs.h. */
2994 #include <ctype.h>
2995 #if ((' ' & 0x0FF) == 0x020)
2996 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2997 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2998 #else
2999 # define ISLOWER(c) \
3000 (('a' <= (c) && (c) <= 'i') \
3001 || ('j' <= (c) && (c) <= 'r') \
3002 || ('s' <= (c) && (c) <= 'z'))
3003 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3004 #endif
3006 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3008 main ()
3010 int i;
3011 for (i = 0; i < 256; i++)
3012 if (XOR (islower (i), ISLOWER (i))
3013 || toupper (i) != TOUPPER (i))
3014 exit(2);
3015 exit (0);
3017 _ACEOF
3018 rm -f conftest$ac_exeext
3019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3020 (eval $ac_link) 2>&5
3021 ac_status=$?
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3025 (eval $ac_try) 2>&5
3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; }; then
3030 else
3031 echo "$as_me: program exited with status $ac_status" >&5
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3035 ( exit $ac_status )
3036 ac_cv_header_stdc=no
3038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3042 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3043 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3044 if test $ac_cv_header_stdc = yes; then
3046 cat >>confdefs.h <<\_ACEOF
3047 #define STDC_HEADERS 1
3048 _ACEOF
3052 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3062 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3063 inttypes.h stdint.h unistd.h
3065 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3066 echo "$as_me:$LINENO: checking for $ac_header" >&5
3067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 else
3071 cat >conftest.$ac_ext <<_ACEOF
3072 /* confdefs.h. */
3073 _ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3077 $ac_includes_default
3079 #include <$ac_header>
3080 _ACEOF
3081 rm -f conftest.$ac_objext
3082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3083 (eval $ac_compile) 2>conftest.er1
3084 ac_status=$?
3085 grep -v '^ *+' conftest.er1 >conftest.err
3086 rm -f conftest.er1
3087 cat conftest.err >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } &&
3090 { ac_try='test -z "$ac_c_werror_flag"
3091 || test ! -s conftest.err'
3092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093 (eval $ac_try) 2>&5
3094 ac_status=$?
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; } &&
3097 { ac_try='test -s conftest.$ac_objext'
3098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3099 (eval $ac_try) 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
3103 eval "$as_ac_Header=yes"
3104 else
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3108 eval "$as_ac_Header=no"
3110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3115 cat >>confdefs.h <<_ACEOF
3116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3117 _ACEOF
3121 done
3131 for ac_header in stddef.h stdlib.h strings.h unistd.h fcntl.h sys/file.h \
3132 sys/stat.h
3134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3136 echo "$as_me:$LINENO: checking for $ac_header" >&5
3137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3139 echo $ECHO_N "(cached) $ECHO_C" >&6
3141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3142 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3143 else
3144 # Is the header compilable?
3145 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3146 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3147 cat >conftest.$ac_ext <<_ACEOF
3148 /* confdefs.h. */
3149 _ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h. */
3153 $ac_includes_default
3154 #include <$ac_header>
3155 _ACEOF
3156 rm -f conftest.$ac_objext
3157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3158 (eval $ac_compile) 2>conftest.er1
3159 ac_status=$?
3160 grep -v '^ *+' conftest.er1 >conftest.err
3161 rm -f conftest.er1
3162 cat conftest.err >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); } &&
3165 { ac_try='test -z "$ac_c_werror_flag"
3166 || test ! -s conftest.err'
3167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3168 (eval $ac_try) 2>&5
3169 ac_status=$?
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; } &&
3172 { ac_try='test -s conftest.$ac_objext'
3173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3174 (eval $ac_try) 2>&5
3175 ac_status=$?
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; }; then
3178 ac_header_compiler=yes
3179 else
3180 echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.$ac_ext >&5
3183 ac_header_compiler=no
3185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3186 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3187 echo "${ECHO_T}$ac_header_compiler" >&6
3189 # Is the header present?
3190 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3191 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3192 cat >conftest.$ac_ext <<_ACEOF
3193 /* confdefs.h. */
3194 _ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h. */
3198 #include <$ac_header>
3199 _ACEOF
3200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3202 ac_status=$?
3203 grep -v '^ *+' conftest.er1 >conftest.err
3204 rm -f conftest.er1
3205 cat conftest.err >&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); } >/dev/null; then
3208 if test -s conftest.err; then
3209 ac_cpp_err=$ac_c_preproc_warn_flag
3210 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3211 else
3212 ac_cpp_err=
3214 else
3215 ac_cpp_err=yes
3217 if test -z "$ac_cpp_err"; then
3218 ac_header_preproc=yes
3219 else
3220 echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3223 ac_header_preproc=no
3225 rm -f conftest.err conftest.$ac_ext
3226 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3227 echo "${ECHO_T}$ac_header_preproc" >&6
3229 # So? What about this header?
3230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3231 yes:no: )
3232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3235 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3236 ac_header_preproc=yes
3238 no:yes:* )
3239 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3240 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3241 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3242 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3243 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3244 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3245 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3246 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3248 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3249 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3250 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3252 cat <<\_ASBOX
3253 ## -------------------------------------- ##
3254 ## Report this to the fixincludes lists. ##
3255 ## -------------------------------------- ##
3256 _ASBOX
3258 sed "s/^/$as_me: WARNING: /" >&2
3260 esac
3261 echo "$as_me:$LINENO: checking for $ac_header" >&5
3262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
3265 else
3266 eval "$as_ac_Header=\$ac_header_preproc"
3268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3273 cat >>confdefs.h <<_ACEOF
3274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3275 _ACEOF
3279 done
3298 for ac_func in clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
3300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3301 echo "$as_me:$LINENO: checking for $ac_func" >&5
3302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3303 if eval "test \"\${$as_ac_var+set}\" = set"; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 else
3306 cat >conftest.$ac_ext <<_ACEOF
3307 /* confdefs.h. */
3308 _ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h. */
3312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3314 #define $ac_func innocuous_$ac_func
3316 /* System header to define __stub macros and hopefully few prototypes,
3317 which can conflict with char $ac_func (); below.
3318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3319 <limits.h> exists even on freestanding compilers. */
3321 #ifdef __STDC__
3322 # include <limits.h>
3323 #else
3324 # include <assert.h>
3325 #endif
3327 #undef $ac_func
3329 /* Override any gcc2 internal prototype to avoid an error. */
3330 #ifdef __cplusplus
3331 extern "C"
3333 #endif
3334 /* We use char because int might match the return type of a gcc2
3335 builtin and then its argument prototype would still apply. */
3336 char $ac_func ();
3337 /* The GNU C library defines this for functions which it implements
3338 to always fail with ENOSYS. Some functions are actually named
3339 something starting with __ and the normal name is an alias. */
3340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3341 choke me
3342 #else
3343 char (*f) () = $ac_func;
3344 #endif
3345 #ifdef __cplusplus
3347 #endif
3350 main ()
3352 return f != $ac_func;
3354 return 0;
3356 _ACEOF
3357 rm -f conftest.$ac_objext conftest$ac_exeext
3358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3359 (eval $ac_link) 2>conftest.er1
3360 ac_status=$?
3361 grep -v '^ *+' conftest.er1 >conftest.err
3362 rm -f conftest.er1
3363 cat conftest.err >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } &&
3366 { ac_try='test -z "$ac_c_werror_flag"
3367 || test ! -s conftest.err'
3368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369 (eval $ac_try) 2>&5
3370 ac_status=$?
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }; } &&
3373 { ac_try='test -s conftest$ac_exeext'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375 (eval $ac_try) 2>&5
3376 ac_status=$?
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; }; then
3379 eval "$as_ac_var=yes"
3380 else
3381 echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3384 eval "$as_ac_var=no"
3386 rm -f conftest.err conftest.$ac_objext \
3387 conftest$ac_exeext conftest.$ac_ext
3389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3391 if test `eval echo '${'$as_ac_var'}'` = yes; then
3392 cat >>confdefs.h <<_ACEOF
3393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3394 _ACEOF
3397 done
3399 echo "$as_me:$LINENO: checking whether abort is declared" >&5
3400 echo $ECHO_N "checking whether abort is declared... $ECHO_C" >&6
3401 if test "${ac_cv_have_decl_abort+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 else
3404 cat >conftest.$ac_ext <<_ACEOF
3405 /* confdefs.h. */
3406 _ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h. */
3410 $ac_includes_default
3412 main ()
3414 #ifndef abort
3415 char *p = (char *) abort;
3416 #endif
3419 return 0;
3421 _ACEOF
3422 rm -f conftest.$ac_objext
3423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3424 (eval $ac_compile) 2>conftest.er1
3425 ac_status=$?
3426 grep -v '^ *+' conftest.er1 >conftest.err
3427 rm -f conftest.er1
3428 cat conftest.err >&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); } &&
3431 { ac_try='test -z "$ac_c_werror_flag"
3432 || test ! -s conftest.err'
3433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434 (eval $ac_try) 2>&5
3435 ac_status=$?
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; } &&
3438 { ac_try='test -s conftest.$ac_objext'
3439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440 (eval $ac_try) 2>&5
3441 ac_status=$?
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }; }; then
3444 ac_cv_have_decl_abort=yes
3445 else
3446 echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3449 ac_cv_have_decl_abort=no
3451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3453 echo "$as_me:$LINENO: result: $ac_cv_have_decl_abort" >&5
3454 echo "${ECHO_T}$ac_cv_have_decl_abort" >&6
3455 if test $ac_cv_have_decl_abort = yes; then
3457 cat >>confdefs.h <<_ACEOF
3458 #define HAVE_DECL_ABORT 1
3459 _ACEOF
3462 else
3463 cat >>confdefs.h <<_ACEOF
3464 #define HAVE_DECL_ABORT 0
3465 _ACEOF
3469 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
3470 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
3471 if test "${ac_cv_have_decl_asprintf+set}" = set; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 else
3474 cat >conftest.$ac_ext <<_ACEOF
3475 /* confdefs.h. */
3476 _ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3480 $ac_includes_default
3482 main ()
3484 #ifndef asprintf
3485 char *p = (char *) asprintf;
3486 #endif
3489 return 0;
3491 _ACEOF
3492 rm -f conftest.$ac_objext
3493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3494 (eval $ac_compile) 2>conftest.er1
3495 ac_status=$?
3496 grep -v '^ *+' conftest.er1 >conftest.err
3497 rm -f conftest.er1
3498 cat conftest.err >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } &&
3501 { ac_try='test -z "$ac_c_werror_flag"
3502 || test ! -s conftest.err'
3503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504 (eval $ac_try) 2>&5
3505 ac_status=$?
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }; } &&
3508 { ac_try='test -s conftest.$ac_objext'
3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510 (eval $ac_try) 2>&5
3511 ac_status=$?
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; }; then
3514 ac_cv_have_decl_asprintf=yes
3515 else
3516 echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3519 ac_cv_have_decl_asprintf=no
3521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3523 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
3524 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
3525 if test $ac_cv_have_decl_asprintf = yes; then
3527 cat >>confdefs.h <<_ACEOF
3528 #define HAVE_DECL_ASPRINTF 1
3529 _ACEOF
3532 else
3533 cat >>confdefs.h <<_ACEOF
3534 #define HAVE_DECL_ASPRINTF 0
3535 _ACEOF
3539 echo "$as_me:$LINENO: checking whether basename is declared" >&5
3540 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
3541 if test "${ac_cv_have_decl_basename+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 else
3544 cat >conftest.$ac_ext <<_ACEOF
3545 /* confdefs.h. */
3546 _ACEOF
3547 cat confdefs.h >>conftest.$ac_ext
3548 cat >>conftest.$ac_ext <<_ACEOF
3549 /* end confdefs.h. */
3550 $ac_includes_default
3552 main ()
3554 #ifndef basename
3555 char *p = (char *) basename;
3556 #endif
3559 return 0;
3561 _ACEOF
3562 rm -f conftest.$ac_objext
3563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3564 (eval $ac_compile) 2>conftest.er1
3565 ac_status=$?
3566 grep -v '^ *+' conftest.er1 >conftest.err
3567 rm -f conftest.er1
3568 cat conftest.err >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); } &&
3571 { ac_try='test -z "$ac_c_werror_flag"
3572 || test ! -s conftest.err'
3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 (eval $ac_try) 2>&5
3575 ac_status=$?
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; } &&
3578 { ac_try='test -s conftest.$ac_objext'
3579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 (eval $ac_try) 2>&5
3581 ac_status=$?
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); }; }; then
3584 ac_cv_have_decl_basename=yes
3585 else
3586 echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3589 ac_cv_have_decl_basename=no
3591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3593 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
3594 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
3595 if test $ac_cv_have_decl_basename = yes; then
3597 cat >>confdefs.h <<_ACEOF
3598 #define HAVE_DECL_BASENAME 1
3599 _ACEOF
3602 else
3603 cat >>confdefs.h <<_ACEOF
3604 #define HAVE_DECL_BASENAME 0
3605 _ACEOF
3609 echo "$as_me:$LINENO: checking whether errno is declared" >&5
3610 echo $ECHO_N "checking whether errno is declared... $ECHO_C" >&6
3611 if test "${ac_cv_have_decl_errno+set}" = set; then
3612 echo $ECHO_N "(cached) $ECHO_C" >&6
3613 else
3614 cat >conftest.$ac_ext <<_ACEOF
3615 /* confdefs.h. */
3616 _ACEOF
3617 cat confdefs.h >>conftest.$ac_ext
3618 cat >>conftest.$ac_ext <<_ACEOF
3619 /* end confdefs.h. */
3620 $ac_includes_default
3622 main ()
3624 #ifndef errno
3625 char *p = (char *) errno;
3626 #endif
3629 return 0;
3631 _ACEOF
3632 rm -f conftest.$ac_objext
3633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3634 (eval $ac_compile) 2>conftest.er1
3635 ac_status=$?
3636 grep -v '^ *+' conftest.er1 >conftest.err
3637 rm -f conftest.er1
3638 cat conftest.err >&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); } &&
3641 { ac_try='test -z "$ac_c_werror_flag"
3642 || test ! -s conftest.err'
3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644 (eval $ac_try) 2>&5
3645 ac_status=$?
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; } &&
3648 { ac_try='test -s conftest.$ac_objext'
3649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3650 (eval $ac_try) 2>&5
3651 ac_status=$?
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); }; }; then
3654 ac_cv_have_decl_errno=yes
3655 else
3656 echo "$as_me: failed program was:" >&5
3657 sed 's/^/| /' conftest.$ac_ext >&5
3659 ac_cv_have_decl_errno=no
3661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3663 echo "$as_me:$LINENO: result: $ac_cv_have_decl_errno" >&5
3664 echo "${ECHO_T}$ac_cv_have_decl_errno" >&6
3665 if test $ac_cv_have_decl_errno = yes; then
3667 cat >>confdefs.h <<_ACEOF
3668 #define HAVE_DECL_ERRNO 1
3669 _ACEOF
3672 else
3673 cat >>confdefs.h <<_ACEOF
3674 #define HAVE_DECL_ERRNO 0
3675 _ACEOF
3679 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
3680 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
3681 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
3683 else
3684 cat >conftest.$ac_ext <<_ACEOF
3685 /* confdefs.h. */
3686 _ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3690 $ac_includes_default
3692 main ()
3694 #ifndef vasprintf
3695 char *p = (char *) vasprintf;
3696 #endif
3699 return 0;
3701 _ACEOF
3702 rm -f conftest.$ac_objext
3703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3704 (eval $ac_compile) 2>conftest.er1
3705 ac_status=$?
3706 grep -v '^ *+' conftest.er1 >conftest.err
3707 rm -f conftest.er1
3708 cat conftest.err >&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } &&
3711 { ac_try='test -z "$ac_c_werror_flag"
3712 || test ! -s conftest.err'
3713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714 (eval $ac_try) 2>&5
3715 ac_status=$?
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); }; } &&
3718 { ac_try='test -s conftest.$ac_objext'
3719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720 (eval $ac_try) 2>&5
3721 ac_status=$?
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; }; then
3724 ac_cv_have_decl_vasprintf=yes
3725 else
3726 echo "$as_me: failed program was:" >&5
3727 sed 's/^/| /' conftest.$ac_ext >&5
3729 ac_cv_have_decl_vasprintf=no
3731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3733 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
3734 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
3735 if test $ac_cv_have_decl_vasprintf = yes; then
3737 cat >>confdefs.h <<_ACEOF
3738 #define HAVE_DECL_VASPRINTF 1
3739 _ACEOF
3742 else
3743 cat >>confdefs.h <<_ACEOF
3744 #define HAVE_DECL_VASPRINTF 0
3745 _ACEOF
3749 echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
3750 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
3751 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3753 else
3754 cat >conftest.$ac_ext <<_ACEOF
3755 /* confdefs.h. */
3756 _ACEOF
3757 cat confdefs.h >>conftest.$ac_ext
3758 cat >>conftest.$ac_ext <<_ACEOF
3759 /* end confdefs.h. */
3760 $ac_includes_default
3762 main ()
3764 #ifndef clearerr_unlocked
3765 char *p = (char *) clearerr_unlocked;
3766 #endif
3769 return 0;
3771 _ACEOF
3772 rm -f conftest.$ac_objext
3773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3774 (eval $ac_compile) 2>conftest.er1
3775 ac_status=$?
3776 grep -v '^ *+' conftest.er1 >conftest.err
3777 rm -f conftest.er1
3778 cat conftest.err >&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } &&
3781 { ac_try='test -z "$ac_c_werror_flag"
3782 || test ! -s conftest.err'
3783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784 (eval $ac_try) 2>&5
3785 ac_status=$?
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); }; } &&
3788 { ac_try='test -s conftest.$ac_objext'
3789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790 (eval $ac_try) 2>&5
3791 ac_status=$?
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }; }; then
3794 ac_cv_have_decl_clearerr_unlocked=yes
3795 else
3796 echo "$as_me: failed program was:" >&5
3797 sed 's/^/| /' conftest.$ac_ext >&5
3799 ac_cv_have_decl_clearerr_unlocked=no
3801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3803 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
3804 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
3805 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
3807 cat >>confdefs.h <<_ACEOF
3808 #define HAVE_DECL_CLEARERR_UNLOCKED 1
3809 _ACEOF
3812 else
3813 cat >>confdefs.h <<_ACEOF
3814 #define HAVE_DECL_CLEARERR_UNLOCKED 0
3815 _ACEOF
3819 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
3820 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
3821 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 else
3824 cat >conftest.$ac_ext <<_ACEOF
3825 /* confdefs.h. */
3826 _ACEOF
3827 cat confdefs.h >>conftest.$ac_ext
3828 cat >>conftest.$ac_ext <<_ACEOF
3829 /* end confdefs.h. */
3830 $ac_includes_default
3832 main ()
3834 #ifndef feof_unlocked
3835 char *p = (char *) feof_unlocked;
3836 #endif
3839 return 0;
3841 _ACEOF
3842 rm -f conftest.$ac_objext
3843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3844 (eval $ac_compile) 2>conftest.er1
3845 ac_status=$?
3846 grep -v '^ *+' conftest.er1 >conftest.err
3847 rm -f conftest.er1
3848 cat conftest.err >&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); } &&
3851 { ac_try='test -z "$ac_c_werror_flag"
3852 || test ! -s conftest.err'
3853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3854 (eval $ac_try) 2>&5
3855 ac_status=$?
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); }; } &&
3858 { ac_try='test -s conftest.$ac_objext'
3859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860 (eval $ac_try) 2>&5
3861 ac_status=$?
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); }; }; then
3864 ac_cv_have_decl_feof_unlocked=yes
3865 else
3866 echo "$as_me: failed program was:" >&5
3867 sed 's/^/| /' conftest.$ac_ext >&5
3869 ac_cv_have_decl_feof_unlocked=no
3871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3873 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
3874 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
3875 if test $ac_cv_have_decl_feof_unlocked = yes; then
3877 cat >>confdefs.h <<_ACEOF
3878 #define HAVE_DECL_FEOF_UNLOCKED 1
3879 _ACEOF
3882 else
3883 cat >>confdefs.h <<_ACEOF
3884 #define HAVE_DECL_FEOF_UNLOCKED 0
3885 _ACEOF
3889 echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
3890 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
3891 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 else
3894 cat >conftest.$ac_ext <<_ACEOF
3895 /* confdefs.h. */
3896 _ACEOF
3897 cat confdefs.h >>conftest.$ac_ext
3898 cat >>conftest.$ac_ext <<_ACEOF
3899 /* end confdefs.h. */
3900 $ac_includes_default
3902 main ()
3904 #ifndef ferror_unlocked
3905 char *p = (char *) ferror_unlocked;
3906 #endif
3909 return 0;
3911 _ACEOF
3912 rm -f conftest.$ac_objext
3913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3914 (eval $ac_compile) 2>conftest.er1
3915 ac_status=$?
3916 grep -v '^ *+' conftest.er1 >conftest.err
3917 rm -f conftest.er1
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } &&
3921 { ac_try='test -z "$ac_c_werror_flag"
3922 || test ! -s conftest.err'
3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 (eval $ac_try) 2>&5
3925 ac_status=$?
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; } &&
3928 { ac_try='test -s conftest.$ac_objext'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930 (eval $ac_try) 2>&5
3931 ac_status=$?
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; }; then
3934 ac_cv_have_decl_ferror_unlocked=yes
3935 else
3936 echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3939 ac_cv_have_decl_ferror_unlocked=no
3941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3943 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
3944 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
3945 if test $ac_cv_have_decl_ferror_unlocked = yes; then
3947 cat >>confdefs.h <<_ACEOF
3948 #define HAVE_DECL_FERROR_UNLOCKED 1
3949 _ACEOF
3952 else
3953 cat >>confdefs.h <<_ACEOF
3954 #define HAVE_DECL_FERROR_UNLOCKED 0
3955 _ACEOF
3959 echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
3960 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
3961 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 else
3964 cat >conftest.$ac_ext <<_ACEOF
3965 /* confdefs.h. */
3966 _ACEOF
3967 cat confdefs.h >>conftest.$ac_ext
3968 cat >>conftest.$ac_ext <<_ACEOF
3969 /* end confdefs.h. */
3970 $ac_includes_default
3972 main ()
3974 #ifndef fflush_unlocked
3975 char *p = (char *) fflush_unlocked;
3976 #endif
3979 return 0;
3981 _ACEOF
3982 rm -f conftest.$ac_objext
3983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3984 (eval $ac_compile) 2>conftest.er1
3985 ac_status=$?
3986 grep -v '^ *+' conftest.er1 >conftest.err
3987 rm -f conftest.er1
3988 cat conftest.err >&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); } &&
3991 { ac_try='test -z "$ac_c_werror_flag"
3992 || test ! -s conftest.err'
3993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994 (eval $ac_try) 2>&5
3995 ac_status=$?
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }; } &&
3998 { ac_try='test -s conftest.$ac_objext'
3999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000 (eval $ac_try) 2>&5
4001 ac_status=$?
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; }; then
4004 ac_cv_have_decl_fflush_unlocked=yes
4005 else
4006 echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4009 ac_cv_have_decl_fflush_unlocked=no
4011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4013 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
4014 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
4015 if test $ac_cv_have_decl_fflush_unlocked = yes; then
4017 cat >>confdefs.h <<_ACEOF
4018 #define HAVE_DECL_FFLUSH_UNLOCKED 1
4019 _ACEOF
4022 else
4023 cat >>confdefs.h <<_ACEOF
4024 #define HAVE_DECL_FFLUSH_UNLOCKED 0
4025 _ACEOF
4029 echo "$as_me:$LINENO: checking whether fgetc_unlocked is declared" >&5
4030 echo $ECHO_N "checking whether fgetc_unlocked is declared... $ECHO_C" >&6
4031 if test "${ac_cv_have_decl_fgetc_unlocked+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4033 else
4034 cat >conftest.$ac_ext <<_ACEOF
4035 /* confdefs.h. */
4036 _ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h. */
4040 $ac_includes_default
4042 main ()
4044 #ifndef fgetc_unlocked
4045 char *p = (char *) fgetc_unlocked;
4046 #endif
4049 return 0;
4051 _ACEOF
4052 rm -f conftest.$ac_objext
4053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4054 (eval $ac_compile) 2>conftest.er1
4055 ac_status=$?
4056 grep -v '^ *+' conftest.er1 >conftest.err
4057 rm -f conftest.er1
4058 cat conftest.err >&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); } &&
4061 { ac_try='test -z "$ac_c_werror_flag"
4062 || test ! -s conftest.err'
4063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064 (eval $ac_try) 2>&5
4065 ac_status=$?
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; } &&
4068 { ac_try='test -s conftest.$ac_objext'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 (eval $ac_try) 2>&5
4071 ac_status=$?
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; }; then
4074 ac_cv_have_decl_fgetc_unlocked=yes
4075 else
4076 echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4079 ac_cv_have_decl_fgetc_unlocked=no
4081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4083 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgetc_unlocked" >&5
4084 echo "${ECHO_T}$ac_cv_have_decl_fgetc_unlocked" >&6
4085 if test $ac_cv_have_decl_fgetc_unlocked = yes; then
4087 cat >>confdefs.h <<_ACEOF
4088 #define HAVE_DECL_FGETC_UNLOCKED 1
4089 _ACEOF
4092 else
4093 cat >>confdefs.h <<_ACEOF
4094 #define HAVE_DECL_FGETC_UNLOCKED 0
4095 _ACEOF
4099 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
4100 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
4101 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4103 else
4104 cat >conftest.$ac_ext <<_ACEOF
4105 /* confdefs.h. */
4106 _ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h. */
4110 $ac_includes_default
4112 main ()
4114 #ifndef fgets_unlocked
4115 char *p = (char *) fgets_unlocked;
4116 #endif
4119 return 0;
4121 _ACEOF
4122 rm -f conftest.$ac_objext
4123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4124 (eval $ac_compile) 2>conftest.er1
4125 ac_status=$?
4126 grep -v '^ *+' conftest.er1 >conftest.err
4127 rm -f conftest.er1
4128 cat conftest.err >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); } &&
4131 { ac_try='test -z "$ac_c_werror_flag"
4132 || test ! -s conftest.err'
4133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134 (eval $ac_try) 2>&5
4135 ac_status=$?
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; } &&
4138 { ac_try='test -s conftest.$ac_objext'
4139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4140 (eval $ac_try) 2>&5
4141 ac_status=$?
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); }; }; then
4144 ac_cv_have_decl_fgets_unlocked=yes
4145 else
4146 echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.$ac_ext >&5
4149 ac_cv_have_decl_fgets_unlocked=no
4151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4153 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
4154 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
4155 if test $ac_cv_have_decl_fgets_unlocked = yes; then
4157 cat >>confdefs.h <<_ACEOF
4158 #define HAVE_DECL_FGETS_UNLOCKED 1
4159 _ACEOF
4162 else
4163 cat >>confdefs.h <<_ACEOF
4164 #define HAVE_DECL_FGETS_UNLOCKED 0
4165 _ACEOF
4169 echo "$as_me:$LINENO: checking whether fileno_unlocked is declared" >&5
4170 echo $ECHO_N "checking whether fileno_unlocked is declared... $ECHO_C" >&6
4171 if test "${ac_cv_have_decl_fileno_unlocked+set}" = set; then
4172 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 else
4174 cat >conftest.$ac_ext <<_ACEOF
4175 /* confdefs.h. */
4176 _ACEOF
4177 cat confdefs.h >>conftest.$ac_ext
4178 cat >>conftest.$ac_ext <<_ACEOF
4179 /* end confdefs.h. */
4180 $ac_includes_default
4182 main ()
4184 #ifndef fileno_unlocked
4185 char *p = (char *) fileno_unlocked;
4186 #endif
4189 return 0;
4191 _ACEOF
4192 rm -f conftest.$ac_objext
4193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4194 (eval $ac_compile) 2>conftest.er1
4195 ac_status=$?
4196 grep -v '^ *+' conftest.er1 >conftest.err
4197 rm -f conftest.er1
4198 cat conftest.err >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); } &&
4201 { ac_try='test -z "$ac_c_werror_flag"
4202 || test ! -s conftest.err'
4203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204 (eval $ac_try) 2>&5
4205 ac_status=$?
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; } &&
4208 { ac_try='test -s conftest.$ac_objext'
4209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210 (eval $ac_try) 2>&5
4211 ac_status=$?
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }; }; then
4214 ac_cv_have_decl_fileno_unlocked=yes
4215 else
4216 echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4219 ac_cv_have_decl_fileno_unlocked=no
4221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4223 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fileno_unlocked" >&5
4224 echo "${ECHO_T}$ac_cv_have_decl_fileno_unlocked" >&6
4225 if test $ac_cv_have_decl_fileno_unlocked = yes; then
4227 cat >>confdefs.h <<_ACEOF
4228 #define HAVE_DECL_FILENO_UNLOCKED 1
4229 _ACEOF
4232 else
4233 cat >>confdefs.h <<_ACEOF
4234 #define HAVE_DECL_FILENO_UNLOCKED 0
4235 _ACEOF
4239 echo "$as_me:$LINENO: checking whether fprintf_unlocked is declared" >&5
4240 echo $ECHO_N "checking whether fprintf_unlocked is declared... $ECHO_C" >&6
4241 if test "${ac_cv_have_decl_fprintf_unlocked+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244 cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h. */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4250 $ac_includes_default
4252 main ()
4254 #ifndef fprintf_unlocked
4255 char *p = (char *) fprintf_unlocked;
4256 #endif
4259 return 0;
4261 _ACEOF
4262 rm -f conftest.$ac_objext
4263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4264 (eval $ac_compile) 2>conftest.er1
4265 ac_status=$?
4266 grep -v '^ *+' conftest.er1 >conftest.err
4267 rm -f conftest.er1
4268 cat conftest.err >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } &&
4271 { ac_try='test -z "$ac_c_werror_flag"
4272 || test ! -s conftest.err'
4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274 (eval $ac_try) 2>&5
4275 ac_status=$?
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; } &&
4278 { ac_try='test -s conftest.$ac_objext'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280 (eval $ac_try) 2>&5
4281 ac_status=$?
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; }; then
4284 ac_cv_have_decl_fprintf_unlocked=yes
4285 else
4286 echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4289 ac_cv_have_decl_fprintf_unlocked=no
4291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4293 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf_unlocked" >&5
4294 echo "${ECHO_T}$ac_cv_have_decl_fprintf_unlocked" >&6
4295 if test $ac_cv_have_decl_fprintf_unlocked = yes; then
4297 cat >>confdefs.h <<_ACEOF
4298 #define HAVE_DECL_FPRINTF_UNLOCKED 1
4299 _ACEOF
4302 else
4303 cat >>confdefs.h <<_ACEOF
4304 #define HAVE_DECL_FPRINTF_UNLOCKED 0
4305 _ACEOF
4309 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
4310 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
4311 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4313 else
4314 cat >conftest.$ac_ext <<_ACEOF
4315 /* confdefs.h. */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4320 $ac_includes_default
4322 main ()
4324 #ifndef fputc_unlocked
4325 char *p = (char *) fputc_unlocked;
4326 #endif
4329 return 0;
4331 _ACEOF
4332 rm -f conftest.$ac_objext
4333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4334 (eval $ac_compile) 2>conftest.er1
4335 ac_status=$?
4336 grep -v '^ *+' conftest.er1 >conftest.err
4337 rm -f conftest.er1
4338 cat conftest.err >&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); } &&
4341 { ac_try='test -z "$ac_c_werror_flag"
4342 || test ! -s conftest.err'
4343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344 (eval $ac_try) 2>&5
4345 ac_status=$?
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); }; } &&
4348 { ac_try='test -s conftest.$ac_objext'
4349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350 (eval $ac_try) 2>&5
4351 ac_status=$?
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; }; then
4354 ac_cv_have_decl_fputc_unlocked=yes
4355 else
4356 echo "$as_me: failed program was:" >&5
4357 sed 's/^/| /' conftest.$ac_ext >&5
4359 ac_cv_have_decl_fputc_unlocked=no
4361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4363 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
4364 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
4365 if test $ac_cv_have_decl_fputc_unlocked = yes; then
4367 cat >>confdefs.h <<_ACEOF
4368 #define HAVE_DECL_FPUTC_UNLOCKED 1
4369 _ACEOF
4372 else
4373 cat >>confdefs.h <<_ACEOF
4374 #define HAVE_DECL_FPUTC_UNLOCKED 0
4375 _ACEOF
4379 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
4380 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
4381 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 else
4384 cat >conftest.$ac_ext <<_ACEOF
4385 /* confdefs.h. */
4386 _ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h. */
4390 $ac_includes_default
4392 main ()
4394 #ifndef fputs_unlocked
4395 char *p = (char *) fputs_unlocked;
4396 #endif
4399 return 0;
4401 _ACEOF
4402 rm -f conftest.$ac_objext
4403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4404 (eval $ac_compile) 2>conftest.er1
4405 ac_status=$?
4406 grep -v '^ *+' conftest.er1 >conftest.err
4407 rm -f conftest.er1
4408 cat conftest.err >&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); } &&
4411 { ac_try='test -z "$ac_c_werror_flag"
4412 || test ! -s conftest.err'
4413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414 (eval $ac_try) 2>&5
4415 ac_status=$?
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; } &&
4418 { ac_try='test -s conftest.$ac_objext'
4419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420 (eval $ac_try) 2>&5
4421 ac_status=$?
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }; }; then
4424 ac_cv_have_decl_fputs_unlocked=yes
4425 else
4426 echo "$as_me: failed program was:" >&5
4427 sed 's/^/| /' conftest.$ac_ext >&5
4429 ac_cv_have_decl_fputs_unlocked=no
4431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4433 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
4434 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
4435 if test $ac_cv_have_decl_fputs_unlocked = yes; then
4437 cat >>confdefs.h <<_ACEOF
4438 #define HAVE_DECL_FPUTS_UNLOCKED 1
4439 _ACEOF
4442 else
4443 cat >>confdefs.h <<_ACEOF
4444 #define HAVE_DECL_FPUTS_UNLOCKED 0
4445 _ACEOF
4449 echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
4450 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
4451 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4453 else
4454 cat >conftest.$ac_ext <<_ACEOF
4455 /* confdefs.h. */
4456 _ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4460 $ac_includes_default
4462 main ()
4464 #ifndef fread_unlocked
4465 char *p = (char *) fread_unlocked;
4466 #endif
4469 return 0;
4471 _ACEOF
4472 rm -f conftest.$ac_objext
4473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4474 (eval $ac_compile) 2>conftest.er1
4475 ac_status=$?
4476 grep -v '^ *+' conftest.er1 >conftest.err
4477 rm -f conftest.er1
4478 cat conftest.err >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); } &&
4481 { ac_try='test -z "$ac_c_werror_flag"
4482 || test ! -s conftest.err'
4483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4484 (eval $ac_try) 2>&5
4485 ac_status=$?
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); }; } &&
4488 { ac_try='test -s conftest.$ac_objext'
4489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490 (eval $ac_try) 2>&5
4491 ac_status=$?
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; }; then
4494 ac_cv_have_decl_fread_unlocked=yes
4495 else
4496 echo "$as_me: failed program was:" >&5
4497 sed 's/^/| /' conftest.$ac_ext >&5
4499 ac_cv_have_decl_fread_unlocked=no
4501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4503 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
4504 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
4505 if test $ac_cv_have_decl_fread_unlocked = yes; then
4507 cat >>confdefs.h <<_ACEOF
4508 #define HAVE_DECL_FREAD_UNLOCKED 1
4509 _ACEOF
4512 else
4513 cat >>confdefs.h <<_ACEOF
4514 #define HAVE_DECL_FREAD_UNLOCKED 0
4515 _ACEOF
4519 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
4520 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
4521 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 else
4524 cat >conftest.$ac_ext <<_ACEOF
4525 /* confdefs.h. */
4526 _ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4530 $ac_includes_default
4532 main ()
4534 #ifndef fwrite_unlocked
4535 char *p = (char *) fwrite_unlocked;
4536 #endif
4539 return 0;
4541 _ACEOF
4542 rm -f conftest.$ac_objext
4543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4544 (eval $ac_compile) 2>conftest.er1
4545 ac_status=$?
4546 grep -v '^ *+' conftest.er1 >conftest.err
4547 rm -f conftest.er1
4548 cat conftest.err >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } &&
4551 { ac_try='test -z "$ac_c_werror_flag"
4552 || test ! -s conftest.err'
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554 (eval $ac_try) 2>&5
4555 ac_status=$?
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; } &&
4558 { ac_try='test -s conftest.$ac_objext'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560 (eval $ac_try) 2>&5
4561 ac_status=$?
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; }; then
4564 ac_cv_have_decl_fwrite_unlocked=yes
4565 else
4566 echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4569 ac_cv_have_decl_fwrite_unlocked=no
4571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4573 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
4574 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
4575 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
4577 cat >>confdefs.h <<_ACEOF
4578 #define HAVE_DECL_FWRITE_UNLOCKED 1
4579 _ACEOF
4582 else
4583 cat >>confdefs.h <<_ACEOF
4584 #define HAVE_DECL_FWRITE_UNLOCKED 0
4585 _ACEOF
4589 echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
4590 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
4591 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
4592 echo $ECHO_N "(cached) $ECHO_C" >&6
4593 else
4594 cat >conftest.$ac_ext <<_ACEOF
4595 /* confdefs.h. */
4596 _ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4600 $ac_includes_default
4602 main ()
4604 #ifndef getchar_unlocked
4605 char *p = (char *) getchar_unlocked;
4606 #endif
4609 return 0;
4611 _ACEOF
4612 rm -f conftest.$ac_objext
4613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4614 (eval $ac_compile) 2>conftest.er1
4615 ac_status=$?
4616 grep -v '^ *+' conftest.er1 >conftest.err
4617 rm -f conftest.er1
4618 cat conftest.err >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); } &&
4621 { ac_try='test -z "$ac_c_werror_flag"
4622 || test ! -s conftest.err'
4623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624 (eval $ac_try) 2>&5
4625 ac_status=$?
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }; } &&
4628 { ac_try='test -s conftest.$ac_objext'
4629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630 (eval $ac_try) 2>&5
4631 ac_status=$?
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }; }; then
4634 ac_cv_have_decl_getchar_unlocked=yes
4635 else
4636 echo "$as_me: failed program was:" >&5
4637 sed 's/^/| /' conftest.$ac_ext >&5
4639 ac_cv_have_decl_getchar_unlocked=no
4641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4643 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
4644 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
4645 if test $ac_cv_have_decl_getchar_unlocked = yes; then
4647 cat >>confdefs.h <<_ACEOF
4648 #define HAVE_DECL_GETCHAR_UNLOCKED 1
4649 _ACEOF
4652 else
4653 cat >>confdefs.h <<_ACEOF
4654 #define HAVE_DECL_GETCHAR_UNLOCKED 0
4655 _ACEOF
4659 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
4660 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
4661 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 else
4664 cat >conftest.$ac_ext <<_ACEOF
4665 /* confdefs.h. */
4666 _ACEOF
4667 cat confdefs.h >>conftest.$ac_ext
4668 cat >>conftest.$ac_ext <<_ACEOF
4669 /* end confdefs.h. */
4670 $ac_includes_default
4672 main ()
4674 #ifndef getc_unlocked
4675 char *p = (char *) getc_unlocked;
4676 #endif
4679 return 0;
4681 _ACEOF
4682 rm -f conftest.$ac_objext
4683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4684 (eval $ac_compile) 2>conftest.er1
4685 ac_status=$?
4686 grep -v '^ *+' conftest.er1 >conftest.err
4687 rm -f conftest.er1
4688 cat conftest.err >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } &&
4691 { ac_try='test -z "$ac_c_werror_flag"
4692 || test ! -s conftest.err'
4693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694 (eval $ac_try) 2>&5
4695 ac_status=$?
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; } &&
4698 { ac_try='test -s conftest.$ac_objext'
4699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4700 (eval $ac_try) 2>&5
4701 ac_status=$?
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }; }; then
4704 ac_cv_have_decl_getc_unlocked=yes
4705 else
4706 echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.$ac_ext >&5
4709 ac_cv_have_decl_getc_unlocked=no
4711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4713 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
4714 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
4715 if test $ac_cv_have_decl_getc_unlocked = yes; then
4717 cat >>confdefs.h <<_ACEOF
4718 #define HAVE_DECL_GETC_UNLOCKED 1
4719 _ACEOF
4722 else
4723 cat >>confdefs.h <<_ACEOF
4724 #define HAVE_DECL_GETC_UNLOCKED 0
4725 _ACEOF
4729 echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
4730 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
4731 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
4732 echo $ECHO_N "(cached) $ECHO_C" >&6
4733 else
4734 cat >conftest.$ac_ext <<_ACEOF
4735 /* confdefs.h. */
4736 _ACEOF
4737 cat confdefs.h >>conftest.$ac_ext
4738 cat >>conftest.$ac_ext <<_ACEOF
4739 /* end confdefs.h. */
4740 $ac_includes_default
4742 main ()
4744 #ifndef putchar_unlocked
4745 char *p = (char *) putchar_unlocked;
4746 #endif
4749 return 0;
4751 _ACEOF
4752 rm -f conftest.$ac_objext
4753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4754 (eval $ac_compile) 2>conftest.er1
4755 ac_status=$?
4756 grep -v '^ *+' conftest.er1 >conftest.err
4757 rm -f conftest.er1
4758 cat conftest.err >&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } &&
4761 { ac_try='test -z "$ac_c_werror_flag"
4762 || test ! -s conftest.err'
4763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764 (eval $ac_try) 2>&5
4765 ac_status=$?
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }; } &&
4768 { ac_try='test -s conftest.$ac_objext'
4769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770 (eval $ac_try) 2>&5
4771 ac_status=$?
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; }; then
4774 ac_cv_have_decl_putchar_unlocked=yes
4775 else
4776 echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4779 ac_cv_have_decl_putchar_unlocked=no
4781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4783 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
4784 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
4785 if test $ac_cv_have_decl_putchar_unlocked = yes; then
4787 cat >>confdefs.h <<_ACEOF
4788 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
4789 _ACEOF
4792 else
4793 cat >>confdefs.h <<_ACEOF
4794 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
4795 _ACEOF
4799 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
4800 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
4801 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4803 else
4804 cat >conftest.$ac_ext <<_ACEOF
4805 /* confdefs.h. */
4806 _ACEOF
4807 cat confdefs.h >>conftest.$ac_ext
4808 cat >>conftest.$ac_ext <<_ACEOF
4809 /* end confdefs.h. */
4810 $ac_includes_default
4812 main ()
4814 #ifndef putc_unlocked
4815 char *p = (char *) putc_unlocked;
4816 #endif
4819 return 0;
4821 _ACEOF
4822 rm -f conftest.$ac_objext
4823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824 (eval $ac_compile) 2>conftest.er1
4825 ac_status=$?
4826 grep -v '^ *+' conftest.er1 >conftest.err
4827 rm -f conftest.er1
4828 cat conftest.err >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } &&
4831 { ac_try='test -z "$ac_c_werror_flag"
4832 || test ! -s conftest.err'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 (eval $ac_try) 2>&5
4835 ac_status=$?
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; } &&
4838 { ac_try='test -s conftest.$ac_objext'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 (eval $ac_try) 2>&5
4841 ac_status=$?
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; }; then
4844 ac_cv_have_decl_putc_unlocked=yes
4845 else
4846 echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.$ac_ext >&5
4849 ac_cv_have_decl_putc_unlocked=no
4851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4853 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
4854 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
4855 if test $ac_cv_have_decl_putc_unlocked = yes; then
4857 cat >>confdefs.h <<_ACEOF
4858 #define HAVE_DECL_PUTC_UNLOCKED 1
4859 _ACEOF
4862 else
4863 cat >>confdefs.h <<_ACEOF
4864 #define HAVE_DECL_PUTC_UNLOCKED 0
4865 _ACEOF
4872 # Checks for typedefs, structures, and compiler characteristics.
4873 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4874 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4875 if test "${ac_cv_c_const+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4877 else
4878 cat >conftest.$ac_ext <<_ACEOF
4879 /* confdefs.h. */
4880 _ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4886 main ()
4888 /* FIXME: Include the comments suggested by Paul. */
4889 #ifndef __cplusplus
4890 /* Ultrix mips cc rejects this. */
4891 typedef int charset[2];
4892 const charset x;
4893 /* SunOS 4.1.1 cc rejects this. */
4894 char const *const *ccp;
4895 char **p;
4896 /* NEC SVR4.0.2 mips cc rejects this. */
4897 struct point {int x, y;};
4898 static struct point const zero = {0,0};
4899 /* AIX XL C 1.02.0.0 rejects this.
4900 It does not let you subtract one const X* pointer from another in
4901 an arm of an if-expression whose if-part is not a constant
4902 expression */
4903 const char *g = "string";
4904 ccp = &g + (g ? g-g : 0);
4905 /* HPUX 7.0 cc rejects these. */
4906 ++ccp;
4907 p = (char**) ccp;
4908 ccp = (char const *const *) p;
4909 { /* SCO 3.2v4 cc rejects this. */
4910 char *t;
4911 char const *s = 0 ? (char *) 0 : (char const *) 0;
4913 *t++ = 0;
4915 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4916 int x[] = {25, 17};
4917 const int *foo = &x[0];
4918 ++foo;
4920 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4921 typedef const int *iptr;
4922 iptr p = 0;
4923 ++p;
4925 { /* AIX XL C 1.02.0.0 rejects this saying
4926 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4927 struct s { int j; const int *ap[3]; };
4928 struct s *b; b->j = 5;
4930 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4931 const int foo = 10;
4933 #endif
4936 return 0;
4938 _ACEOF
4939 rm -f conftest.$ac_objext
4940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4941 (eval $ac_compile) 2>conftest.er1
4942 ac_status=$?
4943 grep -v '^ *+' conftest.er1 >conftest.err
4944 rm -f conftest.er1
4945 cat conftest.err >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } &&
4948 { ac_try='test -z "$ac_c_werror_flag"
4949 || test ! -s conftest.err'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951 (eval $ac_try) 2>&5
4952 ac_status=$?
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; } &&
4955 { ac_try='test -s conftest.$ac_objext'
4956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957 (eval $ac_try) 2>&5
4958 ac_status=$?
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; }; then
4961 ac_cv_c_const=yes
4962 else
4963 echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.$ac_ext >&5
4966 ac_cv_c_const=no
4968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4970 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4971 echo "${ECHO_T}$ac_cv_c_const" >&6
4972 if test $ac_cv_c_const = no; then
4974 cat >>confdefs.h <<\_ACEOF
4975 #define const
4976 _ACEOF
4981 # Checks for library functions.
4983 if test "${ac_cv_header_sys_mman_h+set}" = set; then
4984 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
4985 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
4986 if test "${ac_cv_header_sys_mman_h+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
4990 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
4991 else
4992 # Is the header compilable?
4993 echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
4994 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6
4995 cat >conftest.$ac_ext <<_ACEOF
4996 /* confdefs.h. */
4997 _ACEOF
4998 cat confdefs.h >>conftest.$ac_ext
4999 cat >>conftest.$ac_ext <<_ACEOF
5000 /* end confdefs.h. */
5001 $ac_includes_default
5002 #include <sys/mman.h>
5003 _ACEOF
5004 rm -f conftest.$ac_objext
5005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5006 (eval $ac_compile) 2>conftest.er1
5007 ac_status=$?
5008 grep -v '^ *+' conftest.er1 >conftest.err
5009 rm -f conftest.er1
5010 cat conftest.err >&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); } &&
5013 { ac_try='test -z "$ac_c_werror_flag"
5014 || test ! -s conftest.err'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 (eval $ac_try) 2>&5
5017 ac_status=$?
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; } &&
5020 { ac_try='test -s conftest.$ac_objext'
5021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 (eval $ac_try) 2>&5
5023 ac_status=$?
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); }; }; then
5026 ac_header_compiler=yes
5027 else
5028 echo "$as_me: failed program was:" >&5
5029 sed 's/^/| /' conftest.$ac_ext >&5
5031 ac_header_compiler=no
5033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5034 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5035 echo "${ECHO_T}$ac_header_compiler" >&6
5037 # Is the header present?
5038 echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
5039 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6
5040 cat >conftest.$ac_ext <<_ACEOF
5041 /* confdefs.h. */
5042 _ACEOF
5043 cat confdefs.h >>conftest.$ac_ext
5044 cat >>conftest.$ac_ext <<_ACEOF
5045 /* end confdefs.h. */
5046 #include <sys/mman.h>
5047 _ACEOF
5048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5050 ac_status=$?
5051 grep -v '^ *+' conftest.er1 >conftest.err
5052 rm -f conftest.er1
5053 cat conftest.err >&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } >/dev/null; then
5056 if test -s conftest.err; then
5057 ac_cpp_err=$ac_c_preproc_warn_flag
5058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5059 else
5060 ac_cpp_err=
5062 else
5063 ac_cpp_err=yes
5065 if test -z "$ac_cpp_err"; then
5066 ac_header_preproc=yes
5067 else
5068 echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5071 ac_header_preproc=no
5073 rm -f conftest.err conftest.$ac_ext
5074 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5075 echo "${ECHO_T}$ac_header_preproc" >&6
5077 # So? What about this header?
5078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5079 yes:no: )
5080 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
5081 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5082 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
5083 echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
5084 ac_header_preproc=yes
5086 no:yes:* )
5087 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
5088 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
5089 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
5090 echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
5091 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
5092 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
5093 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
5094 echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
5095 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
5096 echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
5097 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
5098 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
5100 cat <<\_ASBOX
5101 ## -------------------------------------- ##
5102 ## Report this to the fixincludes lists. ##
5103 ## -------------------------------------- ##
5104 _ASBOX
5106 sed "s/^/$as_me: WARNING: /" >&2
5108 esac
5109 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
5110 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
5111 if test "${ac_cv_header_sys_mman_h+set}" = set; then
5112 echo $ECHO_N "(cached) $ECHO_C" >&6
5113 else
5114 ac_cv_header_sys_mman_h=$ac_header_preproc
5116 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
5117 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
5120 if test $ac_cv_header_sys_mman_h = yes; then
5121 gcc_header_sys_mman_h=yes
5122 else
5123 gcc_header_sys_mman_h=no
5127 echo "$as_me:$LINENO: checking for mmap" >&5
5128 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
5129 if test "${ac_cv_func_mmap+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5131 else
5132 cat >conftest.$ac_ext <<_ACEOF
5133 /* confdefs.h. */
5134 _ACEOF
5135 cat confdefs.h >>conftest.$ac_ext
5136 cat >>conftest.$ac_ext <<_ACEOF
5137 /* end confdefs.h. */
5138 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
5139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5140 #define mmap innocuous_mmap
5142 /* System header to define __stub macros and hopefully few prototypes,
5143 which can conflict with char mmap (); below.
5144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5145 <limits.h> exists even on freestanding compilers. */
5147 #ifdef __STDC__
5148 # include <limits.h>
5149 #else
5150 # include <assert.h>
5151 #endif
5153 #undef mmap
5155 /* Override any gcc2 internal prototype to avoid an error. */
5156 #ifdef __cplusplus
5157 extern "C"
5159 #endif
5160 /* We use char because int might match the return type of a gcc2
5161 builtin and then its argument prototype would still apply. */
5162 char mmap ();
5163 /* The GNU C library defines this for functions which it implements
5164 to always fail with ENOSYS. Some functions are actually named
5165 something starting with __ and the normal name is an alias. */
5166 #if defined (__stub_mmap) || defined (__stub___mmap)
5167 choke me
5168 #else
5169 char (*f) () = mmap;
5170 #endif
5171 #ifdef __cplusplus
5173 #endif
5176 main ()
5178 return f != mmap;
5180 return 0;
5182 _ACEOF
5183 rm -f conftest.$ac_objext conftest$ac_exeext
5184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5185 (eval $ac_link) 2>conftest.er1
5186 ac_status=$?
5187 grep -v '^ *+' conftest.er1 >conftest.err
5188 rm -f conftest.er1
5189 cat conftest.err >&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } &&
5192 { ac_try='test -z "$ac_c_werror_flag"
5193 || test ! -s conftest.err'
5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195 (eval $ac_try) 2>&5
5196 ac_status=$?
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); }; } &&
5199 { ac_try='test -s conftest$ac_exeext'
5200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201 (eval $ac_try) 2>&5
5202 ac_status=$?
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); }; }; then
5205 ac_cv_func_mmap=yes
5206 else
5207 echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5210 ac_cv_func_mmap=no
5212 rm -f conftest.err conftest.$ac_objext \
5213 conftest$ac_exeext conftest.$ac_ext
5215 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
5216 echo "${ECHO_T}$ac_cv_func_mmap" >&6
5217 if test $ac_cv_func_mmap = yes; then
5218 gcc_func_mmap=yes
5219 else
5220 gcc_func_mmap=no
5223 if test "$gcc_header_sys_mman_h" != yes \
5224 || test "$gcc_func_mmap" != yes; then
5225 gcc_cv_func_mmap_file=no
5226 gcc_cv_func_mmap_dev_zero=no
5227 gcc_cv_func_mmap_anon=no
5228 else
5229 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
5230 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
5231 if test "${gcc_cv_func_mmap_file+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5233 else
5234 # Add a system to this blacklist if
5235 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
5236 # memory area containing the same data that you'd get if you applied
5237 # read() to the same fd. The only system known to have a problem here
5238 # is VMS, where text files have record structure.
5239 case "$host_os" in
5240 vms* | ultrix*)
5241 gcc_cv_func_mmap_file=no ;;
5243 gcc_cv_func_mmap_file=yes;;
5244 esac
5246 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
5247 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
5248 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
5249 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
5250 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5252 else
5253 # Add a system to this blacklist if it has mmap() but /dev/zero
5254 # does not exist, or if mmapping /dev/zero does not give anonymous
5255 # zeroed pages with both the following properties:
5256 # 1. If you map N consecutive pages in with one call, and then
5257 # unmap any subset of those pages, the pages that were not
5258 # explicitly unmapped remain accessible.
5259 # 2. If you map two adjacent blocks of memory and then unmap them
5260 # both at once, they must both go away.
5261 # Systems known to be in this category are Windows (all variants),
5262 # VMS, and Darwin.
5263 case "$host_os" in
5264 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
5265 gcc_cv_func_mmap_dev_zero=no ;;
5267 gcc_cv_func_mmap_dev_zero=yes;;
5268 esac
5270 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
5271 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
5273 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
5274 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
5275 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
5276 if test "${gcc_cv_decl_map_anon+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279 cat >conftest.$ac_ext <<_ACEOF
5280 /* confdefs.h. */
5281 _ACEOF
5282 cat confdefs.h >>conftest.$ac_ext
5283 cat >>conftest.$ac_ext <<_ACEOF
5284 /* end confdefs.h. */
5285 #include <sys/types.h>
5286 #include <sys/mman.h>
5287 #include <unistd.h>
5289 #ifndef MAP_ANONYMOUS
5290 #define MAP_ANONYMOUS MAP_ANON
5291 #endif
5294 main ()
5296 int n = MAP_ANONYMOUS;
5298 return 0;
5300 _ACEOF
5301 rm -f conftest.$ac_objext
5302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5303 (eval $ac_compile) 2>conftest.er1
5304 ac_status=$?
5305 grep -v '^ *+' conftest.er1 >conftest.err
5306 rm -f conftest.er1
5307 cat conftest.err >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } &&
5310 { ac_try='test -z "$ac_c_werror_flag"
5311 || test ! -s conftest.err'
5312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 (eval $ac_try) 2>&5
5314 ac_status=$?
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; } &&
5317 { ac_try='test -s conftest.$ac_objext'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 (eval $ac_try) 2>&5
5320 ac_status=$?
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; }; then
5323 gcc_cv_decl_map_anon=yes
5324 else
5325 echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5328 gcc_cv_decl_map_anon=no
5330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5332 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
5333 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
5335 if test $gcc_cv_decl_map_anon = no; then
5336 gcc_cv_func_mmap_anon=no
5337 else
5338 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
5339 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
5340 if test "${gcc_cv_func_mmap_anon+set}" = set; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5342 else
5343 # Add a system to this blacklist if it has mmap() and MAP_ANON or
5344 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
5345 # doesn't give anonymous zeroed pages with the same properties listed
5346 # above for use of /dev/zero.
5347 # Systems known to be in this category are Windows, VMS, and SCO Unix.
5348 case "$host_os" in
5349 vms* | cygwin* | pe | mingw* | sco* | udk* )
5350 gcc_cv_func_mmap_anon=no ;;
5352 gcc_cv_func_mmap_anon=yes;;
5353 esac
5355 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
5356 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
5360 if test $gcc_cv_func_mmap_file = yes; then
5362 cat >>confdefs.h <<\_ACEOF
5363 #define HAVE_MMAP_FILE 1
5364 _ACEOF
5367 if test $gcc_cv_func_mmap_dev_zero = yes; then
5369 cat >>confdefs.h <<\_ACEOF
5370 #define HAVE_MMAP_DEV_ZERO 1
5371 _ACEOF
5374 if test $gcc_cv_func_mmap_anon = yes; then
5376 cat >>confdefs.h <<\_ACEOF
5377 #define HAVE_MMAP_ANON 1
5378 _ACEOF
5383 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5384 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5385 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5386 if test "${enable_maintainer_mode+set}" = set; then
5387 enableval="$enable_maintainer_mode"
5388 USE_MAINTAINER_MODE=$enableval
5389 else
5390 USE_MAINTAINER_MODE=no
5392 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5393 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5394 if test "$USE_MAINTAINER_MODE" = yes; then
5395 MAINT=
5396 else
5397 MAINT='#'
5401 ac_config_headers="$ac_config_headers config.h"
5403 ac_config_files="$ac_config_files Makefile mkheaders.almost:mkheaders.in"
5405 cat >confcache <<\_ACEOF
5406 # This file is a shell script that caches the results of configure
5407 # tests run on this system so they can be shared between configure
5408 # scripts and configure runs, see configure's option --config-cache.
5409 # It is not useful on other systems. If it contains results you don't
5410 # want to keep, you may remove or edit it.
5412 # config.status only pays attention to the cache file if you give it
5413 # the --recheck option to rerun configure.
5415 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5416 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5417 # following values.
5419 _ACEOF
5421 # The following way of writing the cache mishandles newlines in values,
5422 # but we know of no workaround that is simple, portable, and efficient.
5423 # So, don't put newlines in cache variables' values.
5424 # Ultrix sh set writes to stderr and can't be redirected directly,
5425 # and sets the high bit in the cache file unless we assign to the vars.
5427 (set) 2>&1 |
5428 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5429 *ac_space=\ *)
5430 # `set' does not quote correctly, so add quotes (double-quote
5431 # substitution turns \\\\ into \\, and sed turns \\ into \).
5432 sed -n \
5433 "s/'/'\\\\''/g;
5434 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5437 # `set' quotes correctly as required by POSIX, so do not add quotes.
5438 sed -n \
5439 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5441 esac;
5443 sed '
5444 t clear
5445 : clear
5446 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5447 t end
5448 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5449 : end' >>confcache
5450 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5451 if test -w $cache_file; then
5452 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5453 cat confcache >$cache_file
5454 else
5455 echo "not updating unwritable cache $cache_file"
5458 rm -f confcache
5460 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5461 # Let make expand exec_prefix.
5462 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5464 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5465 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5466 # trailing colons and then remove the whole line if VPATH becomes empty
5467 # (actually we leave an empty line to preserve line numbers).
5468 if test "x$srcdir" = x.; then
5469 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5470 s/:*\$(srcdir):*/:/;
5471 s/:*\${srcdir}:*/:/;
5472 s/:*@srcdir@:*/:/;
5473 s/^\([^=]*=[ ]*\):*/\1/;
5474 s/:*$//;
5475 s/^[^=]*=[ ]*$//;
5479 DEFS=-DHAVE_CONFIG_H
5481 ac_libobjs=
5482 ac_ltlibobjs=
5483 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5484 # 1. Remove the extension, and $U if already installed.
5485 ac_i=`echo "$ac_i" |
5486 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5487 # 2. Add them.
5488 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5489 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5490 done
5491 LIBOBJS=$ac_libobjs
5493 LTLIBOBJS=$ac_ltlibobjs
5497 : ${CONFIG_STATUS=./config.status}
5498 ac_clean_files_save=$ac_clean_files
5499 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5500 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5501 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5502 cat >$CONFIG_STATUS <<_ACEOF
5503 #! $SHELL
5504 # Generated by $as_me.
5505 # Run this file to recreate the current configuration.
5506 # Compiler output produced by configure, useful for debugging
5507 # configure, is in config.log if it exists.
5509 debug=false
5510 ac_cs_recheck=false
5511 ac_cs_silent=false
5512 SHELL=\${CONFIG_SHELL-$SHELL}
5513 _ACEOF
5515 cat >>$CONFIG_STATUS <<\_ACEOF
5516 ## --------------------- ##
5517 ## M4sh Initialization. ##
5518 ## --------------------- ##
5520 # Be Bourne compatible
5521 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5522 emulate sh
5523 NULLCMD=:
5524 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5525 # is contrary to our usage. Disable this feature.
5526 alias -g '${1+"$@"}'='"$@"'
5527 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5528 set -o posix
5530 DUALCASE=1; export DUALCASE # for MKS sh
5532 # Support unset when possible.
5533 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5534 as_unset=unset
5535 else
5536 as_unset=false
5540 # Work around bugs in pre-3.0 UWIN ksh.
5541 $as_unset ENV MAIL MAILPATH
5542 PS1='$ '
5543 PS2='> '
5544 PS4='+ '
5546 # NLS nuisances.
5547 for as_var in \
5548 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5549 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5550 LC_TELEPHONE LC_TIME
5552 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5553 eval $as_var=C; export $as_var
5554 else
5555 $as_unset $as_var
5557 done
5559 # Required to use basename.
5560 if expr a : '\(a\)' >/dev/null 2>&1; then
5561 as_expr=expr
5562 else
5563 as_expr=false
5566 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5567 as_basename=basename
5568 else
5569 as_basename=false
5573 # Name of the executable.
5574 as_me=`$as_basename "$0" ||
5575 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5576 X"$0" : 'X\(//\)$' \| \
5577 X"$0" : 'X\(/\)$' \| \
5578 . : '\(.\)' 2>/dev/null ||
5579 echo X/"$0" |
5580 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5581 /^X\/\(\/\/\)$/{ s//\1/; q; }
5582 /^X\/\(\/\).*/{ s//\1/; q; }
5583 s/.*/./; q'`
5586 # PATH needs CR, and LINENO needs CR and PATH.
5587 # Avoid depending upon Character Ranges.
5588 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5589 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5590 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5591 as_cr_digits='0123456789'
5592 as_cr_alnum=$as_cr_Letters$as_cr_digits
5594 # The user is always right.
5595 if test "${PATH_SEPARATOR+set}" != set; then
5596 echo "#! /bin/sh" >conf$$.sh
5597 echo "exit 0" >>conf$$.sh
5598 chmod +x conf$$.sh
5599 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5600 PATH_SEPARATOR=';'
5601 else
5602 PATH_SEPARATOR=:
5604 rm -f conf$$.sh
5608 as_lineno_1=$LINENO
5609 as_lineno_2=$LINENO
5610 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5611 test "x$as_lineno_1" != "x$as_lineno_2" &&
5612 test "x$as_lineno_3" = "x$as_lineno_2" || {
5613 # Find who we are. Look in the path if we contain no path at all
5614 # relative or not.
5615 case $0 in
5616 *[\\/]* ) as_myself=$0 ;;
5617 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH
5620 IFS=$as_save_IFS
5621 test -z "$as_dir" && as_dir=.
5622 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5623 done
5626 esac
5627 # We did not find ourselves, most probably we were run as `sh COMMAND'
5628 # in which case we are not to be found in the path.
5629 if test "x$as_myself" = x; then
5630 as_myself=$0
5632 if test ! -f "$as_myself"; then
5633 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5634 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5635 { (exit 1); exit 1; }; }
5637 case $CONFIG_SHELL in
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for as_base in sh bash ksh sh5; do
5645 case $as_dir in
5647 if ("$as_dir/$as_base" -c '
5648 as_lineno_1=$LINENO
5649 as_lineno_2=$LINENO
5650 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5651 test "x$as_lineno_1" != "x$as_lineno_2" &&
5652 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5653 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5654 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5655 CONFIG_SHELL=$as_dir/$as_base
5656 export CONFIG_SHELL
5657 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5658 fi;;
5659 esac
5660 done
5661 done
5663 esac
5665 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5666 # uniformly replaced by the line number. The first 'sed' inserts a
5667 # line-number line before each line; the second 'sed' does the real
5668 # work. The second script uses 'N' to pair each line-number line
5669 # with the numbered line, and appends trailing '-' during
5670 # substitution so that $LINENO is not a special case at line end.
5671 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5672 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5673 sed '=' <$as_myself |
5674 sed '
5676 s,$,-,
5677 : loop
5678 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5679 t loop
5680 s,-$,,
5681 s,^['$as_cr_digits']*\n,,
5682 ' >$as_me.lineno &&
5683 chmod +x $as_me.lineno ||
5684 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5685 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5686 { (exit 1); exit 1; }; }
5688 # Don't try to exec as it changes $[0], causing all sort of problems
5689 # (the dirname of $[0] is not the place where we might find the
5690 # original and so on. Autoconf is especially sensible to this).
5691 . ./$as_me.lineno
5692 # Exit status is that of the last command.
5693 exit
5697 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5698 *c*,-n*) ECHO_N= ECHO_C='
5699 ' ECHO_T=' ' ;;
5700 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5701 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5702 esac
5704 if expr a : '\(a\)' >/dev/null 2>&1; then
5705 as_expr=expr
5706 else
5707 as_expr=false
5710 rm -f conf$$ conf$$.exe conf$$.file
5711 echo >conf$$.file
5712 if ln -s conf$$.file conf$$ 2>/dev/null; then
5713 # We could just check for DJGPP; but this test a) works b) is more generic
5714 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5715 if test -f conf$$.exe; then
5716 # Don't use ln at all; we don't have any links
5717 as_ln_s='cp -p'
5718 else
5719 as_ln_s='ln -s'
5721 elif ln conf$$.file conf$$ 2>/dev/null; then
5722 as_ln_s=ln
5723 else
5724 as_ln_s='cp -p'
5726 rm -f conf$$ conf$$.exe conf$$.file
5728 if mkdir -p . 2>/dev/null; then
5729 as_mkdir_p=:
5730 else
5731 test -d ./-p && rmdir ./-p
5732 as_mkdir_p=false
5735 as_executable_p="test -f"
5737 # Sed expression to map a string onto a valid CPP name.
5738 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5740 # Sed expression to map a string onto a valid variable name.
5741 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5744 # IFS
5745 # We need space, tab and new line, in precisely that order.
5746 as_nl='
5748 IFS=" $as_nl"
5750 # CDPATH.
5751 $as_unset CDPATH
5753 exec 6>&1
5755 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5756 # report actual input values of CONFIG_FILES etc. instead of their
5757 # values after options handling. Logging --version etc. is OK.
5758 exec 5>>config.log
5760 echo
5761 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5762 ## Running $as_me. ##
5763 _ASBOX
5764 } >&5
5765 cat >&5 <<_CSEOF
5767 This file was extended by fixincludes $as_me , which was
5768 generated by GNU Autoconf 2.59. Invocation command line was
5770 CONFIG_FILES = $CONFIG_FILES
5771 CONFIG_HEADERS = $CONFIG_HEADERS
5772 CONFIG_LINKS = $CONFIG_LINKS
5773 CONFIG_COMMANDS = $CONFIG_COMMANDS
5774 $ $0 $@
5776 _CSEOF
5777 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5778 echo >&5
5779 _ACEOF
5781 # Files that config.status was made for.
5782 if test -n "$ac_config_files"; then
5783 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5786 if test -n "$ac_config_headers"; then
5787 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5790 if test -n "$ac_config_links"; then
5791 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5794 if test -n "$ac_config_commands"; then
5795 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5798 cat >>$CONFIG_STATUS <<\_ACEOF
5800 ac_cs_usage="\
5801 \`$as_me' instantiates files from templates according to the
5802 current configuration.
5804 Usage: $0 [OPTIONS] [FILE]...
5806 -h, --help print this help, then exit
5807 -V, --version print version number, then exit
5808 -q, --quiet do not print progress messages
5809 -d, --debug don't remove temporary files
5810 --recheck update $as_me by reconfiguring in the same conditions
5811 --file=FILE[:TEMPLATE]
5812 instantiate the configuration file FILE
5813 --header=FILE[:TEMPLATE]
5814 instantiate the configuration header FILE
5816 Configuration files:
5817 $config_files
5819 Configuration headers:
5820 $config_headers
5822 Report bugs to <bug-autoconf@gnu.org>."
5823 _ACEOF
5825 cat >>$CONFIG_STATUS <<_ACEOF
5826 ac_cs_version="\\
5827 fixincludes config.status
5828 configured by $0, generated by GNU Autoconf 2.59,
5829 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5831 Copyright (C) 2003 Free Software Foundation, Inc.
5832 This config.status script is free software; the Free Software Foundation
5833 gives unlimited permission to copy, distribute and modify it."
5834 srcdir=$srcdir
5835 _ACEOF
5837 cat >>$CONFIG_STATUS <<\_ACEOF
5838 # If no file are specified by the user, then we need to provide default
5839 # value. By we need to know if files were specified by the user.
5840 ac_need_defaults=:
5841 while test $# != 0
5843 case $1 in
5844 --*=*)
5845 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5846 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5847 ac_shift=:
5850 ac_option=$1
5851 ac_optarg=$2
5852 ac_shift=shift
5854 *) # This is not an option, so the user has probably given explicit
5855 # arguments.
5856 ac_option=$1
5857 ac_need_defaults=false;;
5858 esac
5860 case $ac_option in
5861 # Handling of the options.
5862 _ACEOF
5863 cat >>$CONFIG_STATUS <<\_ACEOF
5864 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5865 ac_cs_recheck=: ;;
5866 --version | --vers* | -V )
5867 echo "$ac_cs_version"; exit 0 ;;
5868 --he | --h)
5869 # Conflict between --help and --header
5870 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5871 Try \`$0 --help' for more information." >&5
5872 echo "$as_me: error: ambiguous option: $1
5873 Try \`$0 --help' for more information." >&2;}
5874 { (exit 1); exit 1; }; };;
5875 --help | --hel | -h )
5876 echo "$ac_cs_usage"; exit 0 ;;
5877 --debug | --d* | -d )
5878 debug=: ;;
5879 --file | --fil | --fi | --f )
5880 $ac_shift
5881 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5882 ac_need_defaults=false;;
5883 --header | --heade | --head | --hea )
5884 $ac_shift
5885 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5886 ac_need_defaults=false;;
5887 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5888 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5889 ac_cs_silent=: ;;
5891 # This is an error.
5892 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5893 Try \`$0 --help' for more information." >&5
5894 echo "$as_me: error: unrecognized option: $1
5895 Try \`$0 --help' for more information." >&2;}
5896 { (exit 1); exit 1; }; } ;;
5898 *) ac_config_targets="$ac_config_targets $1" ;;
5900 esac
5901 shift
5902 done
5904 ac_configure_extra_args=
5906 if $ac_cs_silent; then
5907 exec 6>/dev/null
5908 ac_configure_extra_args="$ac_configure_extra_args --silent"
5911 _ACEOF
5912 cat >>$CONFIG_STATUS <<_ACEOF
5913 if \$ac_cs_recheck; then
5914 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5915 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5918 _ACEOF
5924 cat >>$CONFIG_STATUS <<\_ACEOF
5925 for ac_config_target in $ac_config_targets
5927 case "$ac_config_target" in
5928 # Handling of arguments.
5929 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5930 "mkheaders.almost" ) CONFIG_FILES="$CONFIG_FILES mkheaders.almost:mkheaders.in" ;;
5931 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5932 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5933 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5934 { (exit 1); exit 1; }; };;
5935 esac
5936 done
5938 # If the user did not use the arguments to specify the items to instantiate,
5939 # then the envvar interface is used. Set only those that are not.
5940 # We use the long form for the default assignment because of an extremely
5941 # bizarre bug on SunOS 4.1.3.
5942 if $ac_need_defaults; then
5943 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5944 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5947 # Have a temporary directory for convenience. Make it in the build tree
5948 # simply because there is no reason to put it here, and in addition,
5949 # creating and moving files from /tmp can sometimes cause problems.
5950 # Create a temporary directory, and hook for its removal unless debugging.
5951 $debug ||
5953 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5954 trap '{ (exit 1); exit 1; }' 1 2 13 15
5957 # Create a (secure) tmp directory for tmp files.
5960 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5961 test -n "$tmp" && test -d "$tmp"
5962 } ||
5964 tmp=./confstat$$-$RANDOM
5965 (umask 077 && mkdir $tmp)
5966 } ||
5968 echo "$me: cannot create a temporary directory in ." >&2
5969 { (exit 1); exit 1; }
5972 _ACEOF
5974 cat >>$CONFIG_STATUS <<_ACEOF
5977 # CONFIG_FILES section.
5980 # No need to generate the scripts if there are no CONFIG_FILES.
5981 # This happens for instance when ./config.status config.h
5982 if test -n "\$CONFIG_FILES"; then
5983 # Protect against being on the right side of a sed subst in config.status.
5984 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5985 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5986 s,@SHELL@,$SHELL,;t t
5987 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5988 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5989 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5990 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5991 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5992 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5993 s,@exec_prefix@,$exec_prefix,;t t
5994 s,@prefix@,$prefix,;t t
5995 s,@program_transform_name@,$program_transform_name,;t t
5996 s,@bindir@,$bindir,;t t
5997 s,@sbindir@,$sbindir,;t t
5998 s,@libexecdir@,$libexecdir,;t t
5999 s,@datadir@,$datadir,;t t
6000 s,@sysconfdir@,$sysconfdir,;t t
6001 s,@sharedstatedir@,$sharedstatedir,;t t
6002 s,@localstatedir@,$localstatedir,;t t
6003 s,@libdir@,$libdir,;t t
6004 s,@includedir@,$includedir,;t t
6005 s,@oldincludedir@,$oldincludedir,;t t
6006 s,@infodir@,$infodir,;t t
6007 s,@mandir@,$mandir,;t t
6008 s,@build_alias@,$build_alias,;t t
6009 s,@host_alias@,$host_alias,;t t
6010 s,@target_alias@,$target_alias,;t t
6011 s,@DEFS@,$DEFS,;t t
6012 s,@ECHO_C@,$ECHO_C,;t t
6013 s,@ECHO_N@,$ECHO_N,;t t
6014 s,@ECHO_T@,$ECHO_T,;t t
6015 s,@LIBS@,$LIBS,;t t
6016 s,@build@,$build,;t t
6017 s,@build_cpu@,$build_cpu,;t t
6018 s,@build_vendor@,$build_vendor,;t t
6019 s,@build_os@,$build_os,;t t
6020 s,@host@,$host,;t t
6021 s,@host_cpu@,$host_cpu,;t t
6022 s,@host_vendor@,$host_vendor,;t t
6023 s,@host_os@,$host_os,;t t
6024 s,@target@,$target,;t t
6025 s,@target_cpu@,$target_cpu,;t t
6026 s,@target_vendor@,$target_vendor,;t t
6027 s,@target_os@,$target_os,;t t
6028 s,@CC@,$CC,;t t
6029 s,@CFLAGS@,$CFLAGS,;t t
6030 s,@LDFLAGS@,$LDFLAGS,;t t
6031 s,@CPPFLAGS@,$CPPFLAGS,;t t
6032 s,@ac_ct_CC@,$ac_ct_CC,;t t
6033 s,@EXEEXT@,$EXEEXT,;t t
6034 s,@OBJEXT@,$OBJEXT,;t t
6035 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
6036 s,@WARN_PEDANTIC@,$WARN_PEDANTIC,;t t
6037 s,@WERROR@,$WERROR,;t t
6038 s,@target_noncanonical@,$target_noncanonical,;t t
6039 s,@TARGET@,$TARGET,;t t
6040 s,@CPP@,$CPP,;t t
6041 s,@EGREP@,$EGREP,;t t
6042 s,@MAINT@,$MAINT,;t t
6043 s,@LIBOBJS@,$LIBOBJS,;t t
6044 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6045 CEOF
6047 _ACEOF
6049 cat >>$CONFIG_STATUS <<\_ACEOF
6050 # Split the substitutions into bite-sized pieces for seds with
6051 # small command number limits, like on Digital OSF/1 and HP-UX.
6052 ac_max_sed_lines=48
6053 ac_sed_frag=1 # Number of current file.
6054 ac_beg=1 # First line for current file.
6055 ac_end=$ac_max_sed_lines # Line after last line for current file.
6056 ac_more_lines=:
6057 ac_sed_cmds=
6058 while $ac_more_lines; do
6059 if test $ac_beg -gt 1; then
6060 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6061 else
6062 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6064 if test ! -s $tmp/subs.frag; then
6065 ac_more_lines=false
6066 else
6067 # The purpose of the label and of the branching condition is to
6068 # speed up the sed processing (if there are no `@' at all, there
6069 # is no need to browse any of the substitutions).
6070 # These are the two extra sed commands mentioned above.
6071 (echo ':t
6072 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6073 if test -z "$ac_sed_cmds"; then
6074 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6075 else
6076 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6078 ac_sed_frag=`expr $ac_sed_frag + 1`
6079 ac_beg=$ac_end
6080 ac_end=`expr $ac_end + $ac_max_sed_lines`
6082 done
6083 if test -z "$ac_sed_cmds"; then
6084 ac_sed_cmds=cat
6086 fi # test -n "$CONFIG_FILES"
6088 _ACEOF
6089 cat >>$CONFIG_STATUS <<\_ACEOF
6090 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6091 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6092 case $ac_file in
6093 - | *:- | *:-:* ) # input from stdin
6094 cat >$tmp/stdin
6095 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6096 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6097 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6098 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6099 * ) ac_file_in=$ac_file.in ;;
6100 esac
6102 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6103 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6104 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6105 X"$ac_file" : 'X\(//\)[^/]' \| \
6106 X"$ac_file" : 'X\(//\)$' \| \
6107 X"$ac_file" : 'X\(/\)' \| \
6108 . : '\(.\)' 2>/dev/null ||
6109 echo X"$ac_file" |
6110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6111 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6112 /^X\(\/\/\)$/{ s//\1/; q; }
6113 /^X\(\/\).*/{ s//\1/; q; }
6114 s/.*/./; q'`
6115 { if $as_mkdir_p; then
6116 mkdir -p "$ac_dir"
6117 else
6118 as_dir="$ac_dir"
6119 as_dirs=
6120 while test ! -d "$as_dir"; do
6121 as_dirs="$as_dir $as_dirs"
6122 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6123 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6124 X"$as_dir" : 'X\(//\)[^/]' \| \
6125 X"$as_dir" : 'X\(//\)$' \| \
6126 X"$as_dir" : 'X\(/\)' \| \
6127 . : '\(.\)' 2>/dev/null ||
6128 echo X"$as_dir" |
6129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6130 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6131 /^X\(\/\/\)$/{ s//\1/; q; }
6132 /^X\(\/\).*/{ s//\1/; q; }
6133 s/.*/./; q'`
6134 done
6135 test ! -n "$as_dirs" || mkdir $as_dirs
6136 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6137 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6138 { (exit 1); exit 1; }; }; }
6140 ac_builddir=.
6142 if test "$ac_dir" != .; then
6143 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6144 # A "../" for each directory in $ac_dir_suffix.
6145 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6146 else
6147 ac_dir_suffix= ac_top_builddir=
6150 case $srcdir in
6151 .) # No --srcdir option. We are building in place.
6152 ac_srcdir=.
6153 if test -z "$ac_top_builddir"; then
6154 ac_top_srcdir=.
6155 else
6156 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6157 fi ;;
6158 [\\/]* | ?:[\\/]* ) # Absolute path.
6159 ac_srcdir=$srcdir$ac_dir_suffix;
6160 ac_top_srcdir=$srcdir ;;
6161 *) # Relative path.
6162 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6163 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6164 esac
6166 # Do not use `cd foo && pwd` to compute absolute paths, because
6167 # the directories may not exist.
6168 case `pwd` in
6169 .) ac_abs_builddir="$ac_dir";;
6171 case "$ac_dir" in
6172 .) ac_abs_builddir=`pwd`;;
6173 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6174 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6175 esac;;
6176 esac
6177 case $ac_abs_builddir in
6178 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6180 case ${ac_top_builddir}. in
6181 .) ac_abs_top_builddir=$ac_abs_builddir;;
6182 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6183 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6184 esac;;
6185 esac
6186 case $ac_abs_builddir in
6187 .) ac_abs_srcdir=$ac_srcdir;;
6189 case $ac_srcdir in
6190 .) ac_abs_srcdir=$ac_abs_builddir;;
6191 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6192 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6193 esac;;
6194 esac
6195 case $ac_abs_builddir in
6196 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6198 case $ac_top_srcdir in
6199 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6200 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6201 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6202 esac;;
6203 esac
6207 if test x"$ac_file" != x-; then
6208 { echo "$as_me:$LINENO: creating $ac_file" >&5
6209 echo "$as_me: creating $ac_file" >&6;}
6210 rm -f "$ac_file"
6212 # Let's still pretend it is `configure' which instantiates (i.e., don't
6213 # use $as_me), people would be surprised to read:
6214 # /* config.h. Generated by config.status. */
6215 if test x"$ac_file" = x-; then
6216 configure_input=
6217 else
6218 configure_input="$ac_file. "
6220 configure_input=$configure_input"Generated from `echo $ac_file_in |
6221 sed 's,.*/,,'` by configure."
6223 # First look for the input files in the build tree, otherwise in the
6224 # src tree.
6225 ac_file_inputs=`IFS=:
6226 for f in $ac_file_in; do
6227 case $f in
6228 -) echo $tmp/stdin ;;
6229 [\\/$]*)
6230 # Absolute (can't be DOS-style, as IFS=:)
6231 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6232 echo "$as_me: error: cannot find input file: $f" >&2;}
6233 { (exit 1); exit 1; }; }
6234 echo "$f";;
6235 *) # Relative
6236 if test -f "$f"; then
6237 # Build tree
6238 echo "$f"
6239 elif test -f "$srcdir/$f"; then
6240 # Source tree
6241 echo "$srcdir/$f"
6242 else
6243 # /dev/null tree
6244 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6245 echo "$as_me: error: cannot find input file: $f" >&2;}
6246 { (exit 1); exit 1; }; }
6247 fi;;
6248 esac
6249 done` || { (exit 1); exit 1; }
6250 _ACEOF
6251 cat >>$CONFIG_STATUS <<_ACEOF
6252 sed "$ac_vpsub
6253 $extrasub
6254 _ACEOF
6255 cat >>$CONFIG_STATUS <<\_ACEOF
6257 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6258 s,@configure_input@,$configure_input,;t t
6259 s,@srcdir@,$ac_srcdir,;t t
6260 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6261 s,@top_srcdir@,$ac_top_srcdir,;t t
6262 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6263 s,@builddir@,$ac_builddir,;t t
6264 s,@abs_builddir@,$ac_abs_builddir,;t t
6265 s,@top_builddir@,$ac_top_builddir,;t t
6266 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6267 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6268 rm -f $tmp/stdin
6269 if test x"$ac_file" != x-; then
6270 mv $tmp/out $ac_file
6271 else
6272 cat $tmp/out
6273 rm -f $tmp/out
6276 done
6277 _ACEOF
6278 cat >>$CONFIG_STATUS <<\_ACEOF
6281 # CONFIG_HEADER section.
6284 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6285 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6287 # ac_d sets the value in "#define NAME VALUE" lines.
6288 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6289 ac_dB='[ ].*$,\1#\2'
6290 ac_dC=' '
6291 ac_dD=',;t'
6292 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6293 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6294 ac_uB='$,\1#\2define\3'
6295 ac_uC=' '
6296 ac_uD=',;t'
6298 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6299 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6300 case $ac_file in
6301 - | *:- | *:-:* ) # input from stdin
6302 cat >$tmp/stdin
6303 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6304 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6305 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6306 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6307 * ) ac_file_in=$ac_file.in ;;
6308 esac
6310 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6311 echo "$as_me: creating $ac_file" >&6;}
6313 # First look for the input files in the build tree, otherwise in the
6314 # src tree.
6315 ac_file_inputs=`IFS=:
6316 for f in $ac_file_in; do
6317 case $f in
6318 -) echo $tmp/stdin ;;
6319 [\\/$]*)
6320 # Absolute (can't be DOS-style, as IFS=:)
6321 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6322 echo "$as_me: error: cannot find input file: $f" >&2;}
6323 { (exit 1); exit 1; }; }
6324 # Do quote $f, to prevent DOS paths from being IFS'd.
6325 echo "$f";;
6326 *) # Relative
6327 if test -f "$f"; then
6328 # Build tree
6329 echo "$f"
6330 elif test -f "$srcdir/$f"; then
6331 # Source tree
6332 echo "$srcdir/$f"
6333 else
6334 # /dev/null tree
6335 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6336 echo "$as_me: error: cannot find input file: $f" >&2;}
6337 { (exit 1); exit 1; }; }
6338 fi;;
6339 esac
6340 done` || { (exit 1); exit 1; }
6341 # Remove the trailing spaces.
6342 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6344 _ACEOF
6346 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6347 # `conftest.undefs', that substitutes the proper values into
6348 # config.h.in to produce config.h. The first handles `#define'
6349 # templates, and the second `#undef' templates.
6350 # And first: Protect against being on the right side of a sed subst in
6351 # config.status. Protect against being in an unquoted here document
6352 # in config.status.
6353 rm -f conftest.defines conftest.undefs
6354 # Using a here document instead of a string reduces the quoting nightmare.
6355 # Putting comments in sed scripts is not portable.
6357 # `end' is used to avoid that the second main sed command (meant for
6358 # 0-ary CPP macros) applies to n-ary macro definitions.
6359 # See the Autoconf documentation for `clear'.
6360 cat >confdef2sed.sed <<\_ACEOF
6361 s/[\\&,]/\\&/g
6362 s,[\\$`],\\&,g
6363 t clear
6364 : clear
6365 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6366 t end
6367 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6368 : end
6369 _ACEOF
6370 # If some macros were called several times there might be several times
6371 # the same #defines, which is useless. Nevertheless, we may not want to
6372 # sort them, since we want the *last* AC-DEFINE to be honored.
6373 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6374 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6375 rm -f confdef2sed.sed
6377 # This sed command replaces #undef with comments. This is necessary, for
6378 # example, in the case of _POSIX_SOURCE, which is predefined and required
6379 # on some systems where configure will not decide to define it.
6380 cat >>conftest.undefs <<\_ACEOF
6381 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6382 _ACEOF
6384 # Break up conftest.defines because some shells have a limit on the size
6385 # of here documents, and old seds have small limits too (100 cmds).
6386 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6387 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6388 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6389 echo ' :' >>$CONFIG_STATUS
6390 rm -f conftest.tail
6391 while grep . conftest.defines >/dev/null
6393 # Write a limited-size here document to $tmp/defines.sed.
6394 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6395 # Speed up: don't consider the non `#define' lines.
6396 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6397 # Work around the forget-to-reset-the-flag bug.
6398 echo 't clr' >>$CONFIG_STATUS
6399 echo ': clr' >>$CONFIG_STATUS
6400 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6401 echo 'CEOF
6402 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6403 rm -f $tmp/in
6404 mv $tmp/out $tmp/in
6405 ' >>$CONFIG_STATUS
6406 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6407 rm -f conftest.defines
6408 mv conftest.tail conftest.defines
6409 done
6410 rm -f conftest.defines
6411 echo ' fi # grep' >>$CONFIG_STATUS
6412 echo >>$CONFIG_STATUS
6414 # Break up conftest.undefs because some shells have a limit on the size
6415 # of here documents, and old seds have small limits too (100 cmds).
6416 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6417 rm -f conftest.tail
6418 while grep . conftest.undefs >/dev/null
6420 # Write a limited-size here document to $tmp/undefs.sed.
6421 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6422 # Speed up: don't consider the non `#undef'
6423 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6424 # Work around the forget-to-reset-the-flag bug.
6425 echo 't clr' >>$CONFIG_STATUS
6426 echo ': clr' >>$CONFIG_STATUS
6427 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6428 echo 'CEOF
6429 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6430 rm -f $tmp/in
6431 mv $tmp/out $tmp/in
6432 ' >>$CONFIG_STATUS
6433 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6434 rm -f conftest.undefs
6435 mv conftest.tail conftest.undefs
6436 done
6437 rm -f conftest.undefs
6439 cat >>$CONFIG_STATUS <<\_ACEOF
6440 # Let's still pretend it is `configure' which instantiates (i.e., don't
6441 # use $as_me), people would be surprised to read:
6442 # /* config.h. Generated by config.status. */
6443 if test x"$ac_file" = x-; then
6444 echo "/* Generated by configure. */" >$tmp/config.h
6445 else
6446 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6448 cat $tmp/in >>$tmp/config.h
6449 rm -f $tmp/in
6450 if test x"$ac_file" != x-; then
6451 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6452 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6453 echo "$as_me: $ac_file is unchanged" >&6;}
6454 else
6455 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6456 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6457 X"$ac_file" : 'X\(//\)[^/]' \| \
6458 X"$ac_file" : 'X\(//\)$' \| \
6459 X"$ac_file" : 'X\(/\)' \| \
6460 . : '\(.\)' 2>/dev/null ||
6461 echo X"$ac_file" |
6462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6463 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6464 /^X\(\/\/\)$/{ s//\1/; q; }
6465 /^X\(\/\).*/{ s//\1/; q; }
6466 s/.*/./; q'`
6467 { if $as_mkdir_p; then
6468 mkdir -p "$ac_dir"
6469 else
6470 as_dir="$ac_dir"
6471 as_dirs=
6472 while test ! -d "$as_dir"; do
6473 as_dirs="$as_dir $as_dirs"
6474 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6475 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6476 X"$as_dir" : 'X\(//\)[^/]' \| \
6477 X"$as_dir" : 'X\(//\)$' \| \
6478 X"$as_dir" : 'X\(/\)' \| \
6479 . : '\(.\)' 2>/dev/null ||
6480 echo X"$as_dir" |
6481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6482 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6483 /^X\(\/\/\)$/{ s//\1/; q; }
6484 /^X\(\/\).*/{ s//\1/; q; }
6485 s/.*/./; q'`
6486 done
6487 test ! -n "$as_dirs" || mkdir $as_dirs
6488 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6489 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6490 { (exit 1); exit 1; }; }; }
6492 rm -f $ac_file
6493 mv $tmp/config.h $ac_file
6495 else
6496 cat $tmp/config.h
6497 rm -f $tmp/config.h
6499 # Run the commands associated with the file.
6500 case $ac_file in
6501 config.h ) echo timestamp > stamp-h ;;
6502 esac
6503 done
6504 _ACEOF
6506 cat >>$CONFIG_STATUS <<\_ACEOF
6508 { (exit 0); exit 0; }
6509 _ACEOF
6510 chmod +x $CONFIG_STATUS
6511 ac_clean_files=$ac_clean_files_save
6514 # configure is writing to config.log, and then calls config.status.
6515 # config.status does its own redirection, appending to config.log.
6516 # Unfortunately, on DOS this fails, as config.log is still kept open
6517 # by configure, so config.status won't be able to write to it; its
6518 # output is simply discarded. So we exec the FD to /dev/null,
6519 # effectively closing config.log, so it can be properly (re)opened and
6520 # appended to by config.status. When coming back to configure, we
6521 # need to make the FD available again.
6522 if test "$no_create" != yes; then
6523 ac_cs_success=:
6524 ac_config_status_args=
6525 test "$silent" = yes &&
6526 ac_config_status_args="$ac_config_status_args --quiet"
6527 exec 5>/dev/null
6528 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6529 exec 5>>config.log
6530 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6531 # would make configure fail if this is the last instruction.
6532 $ac_cs_success || { (exit 1); exit 1; }