2005-05-25 Adrian Straetling <straetling@de.ibm.com>
[official-gcc.git] / fixincludes / configure
blobc4b2494f43b3d0b7049930e5c38d9277e8bdd2ef
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 target_noncanonical TARGET CPP EGREP MAINT LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures fixincludes to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 System types:
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837 --target=TARGET configure for building compilers for TARGET [HOST]
838 _ACEOF
841 if test -n "$ac_init_help"; then
842 case $ac_init_help in
843 short | recursive ) echo "Configuration of fixincludes :";;
844 esac
845 cat <<\_ACEOF
847 Optional Features:
848 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
849 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
850 --enable-twoprocess Use a separate process to apply the fixes
851 --enable-maintainer-mode enable make rules and dependencies not useful
852 (and sometimes confusing) to the casual installer
854 Optional Packages:
855 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
856 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
857 --with-local-prefix=DIR specifies directory to put local include
859 Some influential environment variables:
860 CC C compiler command
861 CFLAGS C compiler flags
862 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
863 nonstandard directory <lib dir>
864 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
865 headers in a nonstandard directory <include dir>
866 CPP C preprocessor
868 Use these variables to override the choices made by `configure' or to help
869 it to find libraries and programs with nonstandard names/locations.
871 _ACEOF
874 if test "$ac_init_help" = "recursive"; then
875 # If there are subdirs, report their specific --help.
876 ac_popdir=`pwd`
877 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
878 test -d $ac_dir || continue
879 ac_builddir=.
881 if test "$ac_dir" != .; then
882 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
883 # A "../" for each directory in $ac_dir_suffix.
884 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
885 else
886 ac_dir_suffix= ac_top_builddir=
889 case $srcdir in
890 .) # No --srcdir option. We are building in place.
891 ac_srcdir=.
892 if test -z "$ac_top_builddir"; then
893 ac_top_srcdir=.
894 else
895 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
896 fi ;;
897 [\\/]* | ?:[\\/]* ) # Absolute path.
898 ac_srcdir=$srcdir$ac_dir_suffix;
899 ac_top_srcdir=$srcdir ;;
900 *) # Relative path.
901 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
902 ac_top_srcdir=$ac_top_builddir$srcdir ;;
903 esac
905 # Do not use `cd foo && pwd` to compute absolute paths, because
906 # the directories may not exist.
907 case `pwd` in
908 .) ac_abs_builddir="$ac_dir";;
910 case "$ac_dir" in
911 .) ac_abs_builddir=`pwd`;;
912 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
913 *) ac_abs_builddir=`pwd`/"$ac_dir";;
914 esac;;
915 esac
916 case $ac_abs_builddir in
917 .) ac_abs_top_builddir=${ac_top_builddir}.;;
919 case ${ac_top_builddir}. in
920 .) ac_abs_top_builddir=$ac_abs_builddir;;
921 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
922 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
923 esac;;
924 esac
925 case $ac_abs_builddir in
926 .) ac_abs_srcdir=$ac_srcdir;;
928 case $ac_srcdir in
929 .) ac_abs_srcdir=$ac_abs_builddir;;
930 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
931 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
932 esac;;
933 esac
934 case $ac_abs_builddir in
935 .) ac_abs_top_srcdir=$ac_top_srcdir;;
937 case $ac_top_srcdir in
938 .) ac_abs_top_srcdir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
940 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
941 esac;;
942 esac
944 cd $ac_dir
945 # Check for guested configure; otherwise get Cygnus style configure.
946 if test -f $ac_srcdir/configure.gnu; then
947 echo
948 $SHELL $ac_srcdir/configure.gnu --help=recursive
949 elif test -f $ac_srcdir/configure; then
950 echo
951 $SHELL $ac_srcdir/configure --help=recursive
952 elif test -f $ac_srcdir/configure.ac ||
953 test -f $ac_srcdir/configure.in; then
954 echo
955 $ac_configure --help
956 else
957 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
959 cd $ac_popdir
960 done
963 test -n "$ac_init_help" && exit 0
964 if $ac_init_version; then
965 cat <<\_ACEOF
966 fixincludes configure
967 generated by GNU Autoconf 2.59
969 Copyright (C) 2003 Free Software Foundation, Inc.
970 This configure script is free software; the Free Software Foundation
971 gives unlimited permission to copy, distribute and modify it.
972 _ACEOF
973 exit 0
975 exec 5>config.log
976 cat >&5 <<_ACEOF
977 This file contains any messages produced by compilers while
978 running configure, to aid debugging if configure makes a mistake.
980 It was created by fixincludes $as_me , which was
981 generated by GNU Autoconf 2.59. Invocation command line was
983 $ $0 $@
985 _ACEOF
987 cat <<_ASUNAME
988 ## --------- ##
989 ## Platform. ##
990 ## --------- ##
992 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
993 uname -m = `(uname -m) 2>/dev/null || echo unknown`
994 uname -r = `(uname -r) 2>/dev/null || echo unknown`
995 uname -s = `(uname -s) 2>/dev/null || echo unknown`
996 uname -v = `(uname -v) 2>/dev/null || echo unknown`
998 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
999 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1001 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1002 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1003 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1004 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1005 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1006 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1007 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1009 _ASUNAME
1011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1012 for as_dir in $PATH
1014 IFS=$as_save_IFS
1015 test -z "$as_dir" && as_dir=.
1016 echo "PATH: $as_dir"
1017 done
1019 } >&5
1021 cat >&5 <<_ACEOF
1024 ## ----------- ##
1025 ## Core tests. ##
1026 ## ----------- ##
1028 _ACEOF
1031 # Keep a trace of the command line.
1032 # Strip out --no-create and --no-recursion so they do not pile up.
1033 # Strip out --silent because we don't want to record it for future runs.
1034 # Also quote any args containing shell meta-characters.
1035 # Make two passes to allow for proper duplicate-argument suppression.
1036 ac_configure_args=
1037 ac_configure_args0=
1038 ac_configure_args1=
1039 ac_sep=
1040 ac_must_keep_next=false
1041 for ac_pass in 1 2
1043 for ac_arg
1045 case $ac_arg in
1046 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048 | -silent | --silent | --silen | --sile | --sil)
1049 continue ;;
1050 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1051 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1052 esac
1053 case $ac_pass in
1054 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1056 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1057 if test $ac_must_keep_next = true; then
1058 ac_must_keep_next=false # Got value, back to normal.
1059 else
1060 case $ac_arg in
1061 *=* | --config-cache | -C | -disable-* | --disable-* \
1062 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1063 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1064 | -with-* | --with-* | -without-* | --without-* | --x)
1065 case "$ac_configure_args0 " in
1066 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1067 esac
1069 -* ) ac_must_keep_next=true ;;
1070 esac
1072 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1073 # Get rid of the leading space.
1074 ac_sep=" "
1076 esac
1077 done
1078 done
1079 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1080 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1082 # When interrupted or exit'd, cleanup temporary files, and complete
1083 # config.log. We remove comments because anyway the quotes in there
1084 # would cause problems or look ugly.
1085 # WARNING: Be sure not to use single quotes in there, as some shells,
1086 # such as our DU 5.0 friend, will then `close' the trap.
1087 trap 'exit_status=$?
1088 # Save into config.log some information that might help in debugging.
1090 echo
1092 cat <<\_ASBOX
1093 ## ---------------- ##
1094 ## Cache variables. ##
1095 ## ---------------- ##
1096 _ASBOX
1097 echo
1098 # The following way of writing the cache mishandles newlines in values,
1100 (set) 2>&1 |
1101 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1102 *ac_space=\ *)
1103 sed -n \
1104 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1105 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1108 sed -n \
1109 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1111 esac;
1113 echo
1115 cat <<\_ASBOX
1116 ## ----------------- ##
1117 ## Output variables. ##
1118 ## ----------------- ##
1119 _ASBOX
1120 echo
1121 for ac_var in $ac_subst_vars
1123 eval ac_val=$`echo $ac_var`
1124 echo "$ac_var='"'"'$ac_val'"'"'"
1125 done | sort
1126 echo
1128 if test -n "$ac_subst_files"; then
1129 cat <<\_ASBOX
1130 ## ------------- ##
1131 ## Output files. ##
1132 ## ------------- ##
1133 _ASBOX
1134 echo
1135 for ac_var in $ac_subst_files
1137 eval ac_val=$`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1139 done | sort
1140 echo
1143 if test -s confdefs.h; then
1144 cat <<\_ASBOX
1145 ## ----------- ##
1146 ## confdefs.h. ##
1147 ## ----------- ##
1148 _ASBOX
1149 echo
1150 sed "/^$/d" confdefs.h | sort
1151 echo
1153 test "$ac_signal" != 0 &&
1154 echo "$as_me: caught signal $ac_signal"
1155 echo "$as_me: exit $exit_status"
1156 } >&5
1157 rm -f core *.core &&
1158 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1159 exit $exit_status
1161 for ac_signal in 1 2 13 15; do
1162 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1163 done
1164 ac_signal=0
1166 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1167 rm -rf conftest* confdefs.h
1168 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1169 echo >confdefs.h
1171 # Predefined preprocessor variables.
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_NAME "$PACKAGE_NAME"
1175 _ACEOF
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1180 _ACEOF
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1185 _ACEOF
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_STRING "$PACKAGE_STRING"
1190 _ACEOF
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1195 _ACEOF
1198 # Let the site file select an alternate cache file if it wants to.
1199 # Prefer explicitly selected file to automatically selected ones.
1200 if test -z "$CONFIG_SITE"; then
1201 if test "x$prefix" != xNONE; then
1202 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1203 else
1204 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1207 for ac_site_file in $CONFIG_SITE; do
1208 if test -r "$ac_site_file"; then
1209 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1210 echo "$as_me: loading site script $ac_site_file" >&6;}
1211 sed 's/^/| /' "$ac_site_file" >&5
1212 . "$ac_site_file"
1214 done
1216 if test -r "$cache_file"; then
1217 # Some versions of bash will fail to source /dev/null (special
1218 # files actually), so we avoid doing that.
1219 if test -f "$cache_file"; then
1220 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1221 echo "$as_me: loading cache $cache_file" >&6;}
1222 case $cache_file in
1223 [\\/]* | ?:[\\/]* ) . $cache_file;;
1224 *) . ./$cache_file;;
1225 esac
1227 else
1228 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1229 echo "$as_me: creating cache $cache_file" >&6;}
1230 >$cache_file
1233 # Check that the precious variables saved in the cache have kept the same
1234 # value.
1235 ac_cache_corrupted=false
1236 for ac_var in `(set) 2>&1 |
1237 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1238 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1239 eval ac_new_set=\$ac_env_${ac_var}_set
1240 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1241 eval ac_new_val="\$ac_env_${ac_var}_value"
1242 case $ac_old_set,$ac_new_set in
1243 set,)
1244 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1245 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1246 ac_cache_corrupted=: ;;
1247 ,set)
1248 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1249 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1250 ac_cache_corrupted=: ;;
1251 ,);;
1253 if test "x$ac_old_val" != "x$ac_new_val"; then
1254 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1255 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1256 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1257 echo "$as_me: former value: $ac_old_val" >&2;}
1258 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1259 echo "$as_me: current value: $ac_new_val" >&2;}
1260 ac_cache_corrupted=:
1261 fi;;
1262 esac
1263 # Pass precious variables to config.status.
1264 if test "$ac_new_set" = set; then
1265 case $ac_new_val in
1266 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1267 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1268 *) ac_arg=$ac_var=$ac_new_val ;;
1269 esac
1270 case " $ac_configure_args " in
1271 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1272 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1273 esac
1275 done
1276 if $ac_cache_corrupted; then
1277 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1278 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1279 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1280 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1281 { (exit 1); exit 1; }; }
1284 ac_ext=c
1285 ac_cpp='$CPP $CPPFLAGS'
1286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1317 ac_aux_dir=
1318 for ac_dir in .. $srcdir/..; do
1319 if test -f $ac_dir/install-sh; then
1320 ac_aux_dir=$ac_dir
1321 ac_install_sh="$ac_aux_dir/install-sh -c"
1322 break
1323 elif test -f $ac_dir/install.sh; then
1324 ac_aux_dir=$ac_dir
1325 ac_install_sh="$ac_aux_dir/install.sh -c"
1326 break
1327 elif test -f $ac_dir/shtool; then
1328 ac_aux_dir=$ac_dir
1329 ac_install_sh="$ac_aux_dir/shtool install -c"
1330 break
1332 done
1333 if test -z "$ac_aux_dir"; then
1334 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1335 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1336 { (exit 1); exit 1; }; }
1338 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1339 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1340 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1342 # Make sure we can run config.sub.
1343 $ac_config_sub sun4 >/dev/null 2>&1 ||
1344 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1345 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1346 { (exit 1); exit 1; }; }
1348 echo "$as_me:$LINENO: checking build system type" >&5
1349 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1350 if test "${ac_cv_build+set}" = set; then
1351 echo $ECHO_N "(cached) $ECHO_C" >&6
1352 else
1353 ac_cv_build_alias=$build_alias
1354 test -z "$ac_cv_build_alias" &&
1355 ac_cv_build_alias=`$ac_config_guess`
1356 test -z "$ac_cv_build_alias" &&
1357 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1358 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1359 { (exit 1); exit 1; }; }
1360 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1361 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1362 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1363 { (exit 1); exit 1; }; }
1366 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1367 echo "${ECHO_T}$ac_cv_build" >&6
1368 build=$ac_cv_build
1369 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1370 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1371 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1374 echo "$as_me:$LINENO: checking host system type" >&5
1375 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1376 if test "${ac_cv_host+set}" = set; then
1377 echo $ECHO_N "(cached) $ECHO_C" >&6
1378 else
1379 ac_cv_host_alias=$host_alias
1380 test -z "$ac_cv_host_alias" &&
1381 ac_cv_host_alias=$ac_cv_build_alias
1382 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1383 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1384 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1385 { (exit 1); exit 1; }; }
1388 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1389 echo "${ECHO_T}$ac_cv_host" >&6
1390 host=$ac_cv_host
1391 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1392 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1393 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1396 echo "$as_me:$LINENO: checking target system type" >&5
1397 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1398 if test "${ac_cv_target+set}" = set; then
1399 echo $ECHO_N "(cached) $ECHO_C" >&6
1400 else
1401 ac_cv_target_alias=$target_alias
1402 test "x$ac_cv_target_alias" = "x" &&
1403 ac_cv_target_alias=$ac_cv_host_alias
1404 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1405 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1406 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1407 { (exit 1); exit 1; }; }
1410 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1411 echo "${ECHO_T}$ac_cv_target" >&6
1412 target=$ac_cv_target
1413 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1414 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1415 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1418 # The aliases save the names the user supplied, while $host etc.
1419 # will get canonicalized.
1420 test -n "$target_alias" &&
1421 test "$program_prefix$program_suffix$program_transform_name" = \
1422 NONENONEs,x,x, &&
1423 program_prefix=${target_alias}-
1424 ac_ext=c
1425 ac_cpp='$CPP $CPPFLAGS'
1426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1429 if test -n "$ac_tool_prefix"; then
1430 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1431 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1432 echo "$as_me:$LINENO: checking for $ac_word" >&5
1433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1434 if test "${ac_cv_prog_CC+set}" = set; then
1435 echo $ECHO_N "(cached) $ECHO_C" >&6
1436 else
1437 if test -n "$CC"; then
1438 ac_cv_prog_CC="$CC" # Let the user override the test.
1439 else
1440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1441 for as_dir in $PATH
1443 IFS=$as_save_IFS
1444 test -z "$as_dir" && as_dir=.
1445 for ac_exec_ext in '' $ac_executable_extensions; do
1446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1447 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1449 break 2
1451 done
1452 done
1456 CC=$ac_cv_prog_CC
1457 if test -n "$CC"; then
1458 echo "$as_me:$LINENO: result: $CC" >&5
1459 echo "${ECHO_T}$CC" >&6
1460 else
1461 echo "$as_me:$LINENO: result: no" >&5
1462 echo "${ECHO_T}no" >&6
1466 if test -z "$ac_cv_prog_CC"; then
1467 ac_ct_CC=$CC
1468 # Extract the first word of "gcc", so it can be a program name with args.
1469 set dummy gcc; ac_word=$2
1470 echo "$as_me:$LINENO: checking for $ac_word" >&5
1471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1472 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1473 echo $ECHO_N "(cached) $ECHO_C" >&6
1474 else
1475 if test -n "$ac_ct_CC"; then
1476 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1477 else
1478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1479 for as_dir in $PATH
1481 IFS=$as_save_IFS
1482 test -z "$as_dir" && as_dir=.
1483 for ac_exec_ext in '' $ac_executable_extensions; do
1484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1485 ac_cv_prog_ac_ct_CC="gcc"
1486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1487 break 2
1489 done
1490 done
1494 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1495 if test -n "$ac_ct_CC"; then
1496 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1497 echo "${ECHO_T}$ac_ct_CC" >&6
1498 else
1499 echo "$as_me:$LINENO: result: no" >&5
1500 echo "${ECHO_T}no" >&6
1503 CC=$ac_ct_CC
1504 else
1505 CC="$ac_cv_prog_CC"
1508 if test -z "$CC"; then
1509 if test -n "$ac_tool_prefix"; then
1510 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1511 set dummy ${ac_tool_prefix}cc; ac_word=$2
1512 echo "$as_me:$LINENO: checking for $ac_word" >&5
1513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1514 if test "${ac_cv_prog_CC+set}" = set; then
1515 echo $ECHO_N "(cached) $ECHO_C" >&6
1516 else
1517 if test -n "$CC"; then
1518 ac_cv_prog_CC="$CC" # Let the user override the test.
1519 else
1520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1521 for as_dir in $PATH
1523 IFS=$as_save_IFS
1524 test -z "$as_dir" && as_dir=.
1525 for ac_exec_ext in '' $ac_executable_extensions; do
1526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1527 ac_cv_prog_CC="${ac_tool_prefix}cc"
1528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1529 break 2
1531 done
1532 done
1536 CC=$ac_cv_prog_CC
1537 if test -n "$CC"; then
1538 echo "$as_me:$LINENO: result: $CC" >&5
1539 echo "${ECHO_T}$CC" >&6
1540 else
1541 echo "$as_me:$LINENO: result: no" >&5
1542 echo "${ECHO_T}no" >&6
1546 if test -z "$ac_cv_prog_CC"; then
1547 ac_ct_CC=$CC
1548 # Extract the first word of "cc", so it can be a program name with args.
1549 set dummy cc; ac_word=$2
1550 echo "$as_me:$LINENO: checking for $ac_word" >&5
1551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1552 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1554 else
1555 if test -n "$ac_ct_CC"; then
1556 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1557 else
1558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1559 for as_dir in $PATH
1561 IFS=$as_save_IFS
1562 test -z "$as_dir" && as_dir=.
1563 for ac_exec_ext in '' $ac_executable_extensions; do
1564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1565 ac_cv_prog_ac_ct_CC="cc"
1566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1567 break 2
1569 done
1570 done
1574 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1575 if test -n "$ac_ct_CC"; then
1576 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1577 echo "${ECHO_T}$ac_ct_CC" >&6
1578 else
1579 echo "$as_me:$LINENO: result: no" >&5
1580 echo "${ECHO_T}no" >&6
1583 CC=$ac_ct_CC
1584 else
1585 CC="$ac_cv_prog_CC"
1589 if test -z "$CC"; then
1590 # Extract the first word of "cc", so it can be a program name with args.
1591 set dummy cc; ac_word=$2
1592 echo "$as_me:$LINENO: checking for $ac_word" >&5
1593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1594 if test "${ac_cv_prog_CC+set}" = set; then
1595 echo $ECHO_N "(cached) $ECHO_C" >&6
1596 else
1597 if test -n "$CC"; then
1598 ac_cv_prog_CC="$CC" # Let the user override the test.
1599 else
1600 ac_prog_rejected=no
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602 for as_dir in $PATH
1604 IFS=$as_save_IFS
1605 test -z "$as_dir" && as_dir=.
1606 for ac_exec_ext in '' $ac_executable_extensions; do
1607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1608 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1609 ac_prog_rejected=yes
1610 continue
1612 ac_cv_prog_CC="cc"
1613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1614 break 2
1616 done
1617 done
1619 if test $ac_prog_rejected = yes; then
1620 # We found a bogon in the path, so make sure we never use it.
1621 set dummy $ac_cv_prog_CC
1622 shift
1623 if test $# != 0; then
1624 # We chose a different compiler from the bogus one.
1625 # However, it has the same basename, so the bogon will be chosen
1626 # first if we set CC to just the basename; use the full file name.
1627 shift
1628 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1633 CC=$ac_cv_prog_CC
1634 if test -n "$CC"; then
1635 echo "$as_me:$LINENO: result: $CC" >&5
1636 echo "${ECHO_T}$CC" >&6
1637 else
1638 echo "$as_me:$LINENO: result: no" >&5
1639 echo "${ECHO_T}no" >&6
1643 if test -z "$CC"; then
1644 if test -n "$ac_tool_prefix"; then
1645 for ac_prog in cl
1647 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1648 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_CC+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654 if test -n "$CC"; then
1655 ac_cv_prog_CC="$CC" # Let the user override the test.
1656 else
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 for as_dir in $PATH
1660 IFS=$as_save_IFS
1661 test -z "$as_dir" && as_dir=.
1662 for ac_exec_ext in '' $ac_executable_extensions; do
1663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1666 break 2
1668 done
1669 done
1673 CC=$ac_cv_prog_CC
1674 if test -n "$CC"; then
1675 echo "$as_me:$LINENO: result: $CC" >&5
1676 echo "${ECHO_T}$CC" >&6
1677 else
1678 echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1682 test -n "$CC" && break
1683 done
1685 if test -z "$CC"; then
1686 ac_ct_CC=$CC
1687 for ac_prog in cl
1689 # Extract the first word of "$ac_prog", so it can be a program name with args.
1690 set dummy $ac_prog; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696 if test -n "$ac_ct_CC"; then
1697 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1698 else
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 for as_dir in $PATH
1702 IFS=$as_save_IFS
1703 test -z "$as_dir" && as_dir=.
1704 for ac_exec_ext in '' $ac_executable_extensions; do
1705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1706 ac_cv_prog_ac_ct_CC="$ac_prog"
1707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1708 break 2
1710 done
1711 done
1715 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1716 if test -n "$ac_ct_CC"; then
1717 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1718 echo "${ECHO_T}$ac_ct_CC" >&6
1719 else
1720 echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1724 test -n "$ac_ct_CC" && break
1725 done
1727 CC=$ac_ct_CC
1733 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1734 See \`config.log' for more details." >&5
1735 echo "$as_me: error: no acceptable C compiler found in \$PATH
1736 See \`config.log' for more details." >&2;}
1737 { (exit 1); exit 1; }; }
1739 # Provide some information about the compiler.
1740 echo "$as_me:$LINENO:" \
1741 "checking for C compiler version" >&5
1742 ac_compiler=`set X $ac_compile; echo $2`
1743 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1744 (eval $ac_compiler --version </dev/null >&5) 2>&5
1745 ac_status=$?
1746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1747 (exit $ac_status); }
1748 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1749 (eval $ac_compiler -v </dev/null >&5) 2>&5
1750 ac_status=$?
1751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1752 (exit $ac_status); }
1753 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1754 (eval $ac_compiler -V </dev/null >&5) 2>&5
1755 ac_status=$?
1756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757 (exit $ac_status); }
1759 cat >conftest.$ac_ext <<_ACEOF
1760 /* confdefs.h. */
1761 _ACEOF
1762 cat confdefs.h >>conftest.$ac_ext
1763 cat >>conftest.$ac_ext <<_ACEOF
1764 /* end confdefs.h. */
1767 main ()
1771 return 0;
1773 _ACEOF
1774 ac_clean_files_save=$ac_clean_files
1775 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1776 # Try to create an executable without -o first, disregard a.out.
1777 # It will help us diagnose broken compilers, and finding out an intuition
1778 # of exeext.
1779 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1780 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1781 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1782 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1783 (eval $ac_link_default) 2>&5
1784 ac_status=$?
1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786 (exit $ac_status); }; then
1787 # Find the output, starting from the most likely. This scheme is
1788 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1789 # resort.
1791 # Be careful to initialize this variable, since it used to be cached.
1792 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1793 ac_cv_exeext=
1794 # b.out is created by i960 compilers.
1795 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1797 test -f "$ac_file" || continue
1798 case $ac_file in
1799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1801 conftest.$ac_ext )
1802 # This is the source file.
1804 [ab].out )
1805 # We found the default executable, but exeext='' is most
1806 # certainly right.
1807 break;;
1808 *.* )
1809 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1810 # FIXME: I believe we export ac_cv_exeext for Libtool,
1811 # but it would be cool to find out if it's true. Does anybody
1812 # maintain Libtool? --akim.
1813 export ac_cv_exeext
1814 break;;
1816 break;;
1817 esac
1818 done
1819 else
1820 echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1823 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1824 See \`config.log' for more details." >&5
1825 echo "$as_me: error: C compiler cannot create executables
1826 See \`config.log' for more details." >&2;}
1827 { (exit 77); exit 77; }; }
1830 ac_exeext=$ac_cv_exeext
1831 echo "$as_me:$LINENO: result: $ac_file" >&5
1832 echo "${ECHO_T}$ac_file" >&6
1834 # Check the compiler produces executables we can run. If not, either
1835 # the compiler is broken, or we cross compile.
1836 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1837 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1838 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1839 # If not cross compiling, check that we can run a simple program.
1840 if test "$cross_compiling" != yes; then
1841 if { ac_try='./$ac_file'
1842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1843 (eval $ac_try) 2>&5
1844 ac_status=$?
1845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846 (exit $ac_status); }; }; then
1847 cross_compiling=no
1848 else
1849 if test "$cross_compiling" = maybe; then
1850 cross_compiling=yes
1851 else
1852 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1853 If you meant to cross compile, use \`--host'.
1854 See \`config.log' for more details." >&5
1855 echo "$as_me: error: cannot run C compiled programs.
1856 If you meant to cross compile, use \`--host'.
1857 See \`config.log' for more details." >&2;}
1858 { (exit 1); exit 1; }; }
1862 echo "$as_me:$LINENO: result: yes" >&5
1863 echo "${ECHO_T}yes" >&6
1865 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1866 ac_clean_files=$ac_clean_files_save
1867 # Check the compiler produces executables we can run. If not, either
1868 # the compiler is broken, or we cross compile.
1869 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1870 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1871 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1872 echo "${ECHO_T}$cross_compiling" >&6
1874 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1875 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1877 (eval $ac_link) 2>&5
1878 ac_status=$?
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; then
1881 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1882 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1883 # work properly (i.e., refer to `conftest.exe'), while it won't with
1884 # `rm'.
1885 for ac_file in conftest.exe conftest conftest.*; do
1886 test -f "$ac_file" || continue
1887 case $ac_file in
1888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1889 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1890 export ac_cv_exeext
1891 break;;
1892 * ) break;;
1893 esac
1894 done
1895 else
1896 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1897 See \`config.log' for more details." >&5
1898 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1899 See \`config.log' for more details." >&2;}
1900 { (exit 1); exit 1; }; }
1903 rm -f conftest$ac_cv_exeext
1904 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1905 echo "${ECHO_T}$ac_cv_exeext" >&6
1907 rm -f conftest.$ac_ext
1908 EXEEXT=$ac_cv_exeext
1909 ac_exeext=$EXEEXT
1910 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1911 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1912 if test "${ac_cv_objext+set}" = set; then
1913 echo $ECHO_N "(cached) $ECHO_C" >&6
1914 else
1915 cat >conftest.$ac_ext <<_ACEOF
1916 /* confdefs.h. */
1917 _ACEOF
1918 cat confdefs.h >>conftest.$ac_ext
1919 cat >>conftest.$ac_ext <<_ACEOF
1920 /* end confdefs.h. */
1923 main ()
1927 return 0;
1929 _ACEOF
1930 rm -f conftest.o conftest.obj
1931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1932 (eval $ac_compile) 2>&5
1933 ac_status=$?
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); }; then
1936 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1937 case $ac_file in
1938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1939 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1940 break;;
1941 esac
1942 done
1943 else
1944 echo "$as_me: failed program was:" >&5
1945 sed 's/^/| /' conftest.$ac_ext >&5
1947 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1948 See \`config.log' for more details." >&5
1949 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1950 See \`config.log' for more details." >&2;}
1951 { (exit 1); exit 1; }; }
1954 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1956 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1957 echo "${ECHO_T}$ac_cv_objext" >&6
1958 OBJEXT=$ac_cv_objext
1959 ac_objext=$OBJEXT
1960 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1961 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1962 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1963 echo $ECHO_N "(cached) $ECHO_C" >&6
1964 else
1965 cat >conftest.$ac_ext <<_ACEOF
1966 /* confdefs.h. */
1967 _ACEOF
1968 cat confdefs.h >>conftest.$ac_ext
1969 cat >>conftest.$ac_ext <<_ACEOF
1970 /* end confdefs.h. */
1973 main ()
1975 #ifndef __GNUC__
1976 choke me
1977 #endif
1980 return 0;
1982 _ACEOF
1983 rm -f conftest.$ac_objext
1984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1985 (eval $ac_compile) 2>conftest.er1
1986 ac_status=$?
1987 grep -v '^ *+' conftest.er1 >conftest.err
1988 rm -f conftest.er1
1989 cat conftest.err >&5
1990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991 (exit $ac_status); } &&
1992 { ac_try='test -z "$ac_c_werror_flag"
1993 || test ! -s conftest.err'
1994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1995 (eval $ac_try) 2>&5
1996 ac_status=$?
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); }; } &&
1999 { ac_try='test -s conftest.$ac_objext'
2000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001 (eval $ac_try) 2>&5
2002 ac_status=$?
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }; }; then
2005 ac_compiler_gnu=yes
2006 else
2007 echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2010 ac_compiler_gnu=no
2012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2013 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2016 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2017 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2018 GCC=`test $ac_compiler_gnu = yes && echo yes`
2019 ac_test_CFLAGS=${CFLAGS+set}
2020 ac_save_CFLAGS=$CFLAGS
2021 CFLAGS="-g"
2022 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2023 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2024 if test "${ac_cv_prog_cc_g+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027 cat >conftest.$ac_ext <<_ACEOF
2028 /* confdefs.h. */
2029 _ACEOF
2030 cat confdefs.h >>conftest.$ac_ext
2031 cat >>conftest.$ac_ext <<_ACEOF
2032 /* end confdefs.h. */
2035 main ()
2039 return 0;
2041 _ACEOF
2042 rm -f conftest.$ac_objext
2043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2044 (eval $ac_compile) 2>conftest.er1
2045 ac_status=$?
2046 grep -v '^ *+' conftest.er1 >conftest.err
2047 rm -f conftest.er1
2048 cat conftest.err >&5
2049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050 (exit $ac_status); } &&
2051 { ac_try='test -z "$ac_c_werror_flag"
2052 || test ! -s conftest.err'
2053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2054 (eval $ac_try) 2>&5
2055 ac_status=$?
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); }; } &&
2058 { ac_try='test -s conftest.$ac_objext'
2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 (eval $ac_try) 2>&5
2061 ac_status=$?
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; }; then
2064 ac_cv_prog_cc_g=yes
2065 else
2066 echo "$as_me: failed program was:" >&5
2067 sed 's/^/| /' conftest.$ac_ext >&5
2069 ac_cv_prog_cc_g=no
2071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2073 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2074 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2075 if test "$ac_test_CFLAGS" = set; then
2076 CFLAGS=$ac_save_CFLAGS
2077 elif test $ac_cv_prog_cc_g = yes; then
2078 if test "$GCC" = yes; then
2079 CFLAGS="-g -O2"
2080 else
2081 CFLAGS="-g"
2083 else
2084 if test "$GCC" = yes; then
2085 CFLAGS="-O2"
2086 else
2087 CFLAGS=
2090 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2091 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2092 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2093 echo $ECHO_N "(cached) $ECHO_C" >&6
2094 else
2095 ac_cv_prog_cc_stdc=no
2096 ac_save_CC=$CC
2097 cat >conftest.$ac_ext <<_ACEOF
2098 /* confdefs.h. */
2099 _ACEOF
2100 cat confdefs.h >>conftest.$ac_ext
2101 cat >>conftest.$ac_ext <<_ACEOF
2102 /* end confdefs.h. */
2103 #include <stdarg.h>
2104 #include <stdio.h>
2105 #include <sys/types.h>
2106 #include <sys/stat.h>
2107 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2108 struct buf { int x; };
2109 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2110 static char *e (p, i)
2111 char **p;
2112 int i;
2114 return p[i];
2116 static char *f (char * (*g) (char **, int), char **p, ...)
2118 char *s;
2119 va_list v;
2120 va_start (v,p);
2121 s = g (p, va_arg (v,int));
2122 va_end (v);
2123 return s;
2126 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2127 function prototypes and stuff, but not '\xHH' hex character constants.
2128 These don't provoke an error unfortunately, instead are silently treated
2129 as 'x'. The following induces an error, until -std1 is added to get
2130 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2131 array size at least. It's necessary to write '\x00'==0 to get something
2132 that's true only with -std1. */
2133 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2135 int test (int i, double x);
2136 struct s1 {int (*f) (int a);};
2137 struct s2 {int (*f) (double a);};
2138 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2139 int argc;
2140 char **argv;
2142 main ()
2144 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2146 return 0;
2148 _ACEOF
2149 # Don't try gcc -ansi; that turns off useful extensions and
2150 # breaks some systems' header files.
2151 # AIX -qlanglvl=ansi
2152 # Ultrix and OSF/1 -std1
2153 # HP-UX 10.20 and later -Ae
2154 # HP-UX older versions -Aa -D_HPUX_SOURCE
2155 # SVR4 -Xc -D__EXTENSIONS__
2156 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2158 CC="$ac_save_CC $ac_arg"
2159 rm -f conftest.$ac_objext
2160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2161 (eval $ac_compile) 2>conftest.er1
2162 ac_status=$?
2163 grep -v '^ *+' conftest.er1 >conftest.err
2164 rm -f conftest.er1
2165 cat conftest.err >&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); } &&
2168 { ac_try='test -z "$ac_c_werror_flag"
2169 || test ! -s conftest.err'
2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171 (eval $ac_try) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; } &&
2175 { ac_try='test -s conftest.$ac_objext'
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 (eval $ac_try) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; }; then
2181 ac_cv_prog_cc_stdc=$ac_arg
2182 break
2183 else
2184 echo "$as_me: failed program was:" >&5
2185 sed 's/^/| /' conftest.$ac_ext >&5
2188 rm -f conftest.err conftest.$ac_objext
2189 done
2190 rm -f conftest.$ac_ext conftest.$ac_objext
2191 CC=$ac_save_CC
2195 case "x$ac_cv_prog_cc_stdc" in
2196 x|xno)
2197 echo "$as_me:$LINENO: result: none needed" >&5
2198 echo "${ECHO_T}none needed" >&6 ;;
2200 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2201 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2202 CC="$CC $ac_cv_prog_cc_stdc" ;;
2203 esac
2205 # Some people use a C++ compiler to compile C. Since we use `exit',
2206 # in C++ we need to declare it. In case someone uses the same compiler
2207 # for both compiling C and C++ we need to have the C++ compiler decide
2208 # the declaration of exit, since it's the most demanding environment.
2209 cat >conftest.$ac_ext <<_ACEOF
2210 #ifndef __cplusplus
2211 choke me
2212 #endif
2213 _ACEOF
2214 rm -f conftest.$ac_objext
2215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2216 (eval $ac_compile) 2>conftest.er1
2217 ac_status=$?
2218 grep -v '^ *+' conftest.er1 >conftest.err
2219 rm -f conftest.er1
2220 cat conftest.err >&5
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); } &&
2223 { ac_try='test -z "$ac_c_werror_flag"
2224 || test ! -s conftest.err'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226 (eval $ac_try) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; } &&
2230 { ac_try='test -s conftest.$ac_objext'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 (eval $ac_try) 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; }; then
2236 for ac_declaration in \
2237 '' \
2238 'extern "C" void std::exit (int) throw (); using std::exit;' \
2239 'extern "C" void std::exit (int); using std::exit;' \
2240 'extern "C" void exit (int) throw ();' \
2241 'extern "C" void exit (int);' \
2242 'void exit (int);'
2244 cat >conftest.$ac_ext <<_ACEOF
2245 /* confdefs.h. */
2246 _ACEOF
2247 cat confdefs.h >>conftest.$ac_ext
2248 cat >>conftest.$ac_ext <<_ACEOF
2249 /* end confdefs.h. */
2250 $ac_declaration
2251 #include <stdlib.h>
2253 main ()
2255 exit (42);
2257 return 0;
2259 _ACEOF
2260 rm -f conftest.$ac_objext
2261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2262 (eval $ac_compile) 2>conftest.er1
2263 ac_status=$?
2264 grep -v '^ *+' conftest.er1 >conftest.err
2265 rm -f conftest.er1
2266 cat conftest.err >&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); } &&
2269 { ac_try='test -z "$ac_c_werror_flag"
2270 || test ! -s conftest.err'
2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 (eval $ac_try) 2>&5
2273 ac_status=$?
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; } &&
2276 { ac_try='test -s conftest.$ac_objext'
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 (eval $ac_try) 2>&5
2279 ac_status=$?
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; }; then
2283 else
2284 echo "$as_me: failed program was:" >&5
2285 sed 's/^/| /' conftest.$ac_ext >&5
2287 continue
2289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2290 cat >conftest.$ac_ext <<_ACEOF
2291 /* confdefs.h. */
2292 _ACEOF
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h. */
2296 $ac_declaration
2298 main ()
2300 exit (42);
2302 return 0;
2304 _ACEOF
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>conftest.er1
2308 ac_status=$?
2309 grep -v '^ *+' conftest.er1 >conftest.err
2310 rm -f conftest.er1
2311 cat conftest.err >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try='test -z "$ac_c_werror_flag"
2315 || test ! -s conftest.err'
2316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317 (eval $ac_try) 2>&5
2318 ac_status=$?
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; } &&
2321 { ac_try='test -s conftest.$ac_objext'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 (eval $ac_try) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; }; then
2327 break
2328 else
2329 echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2334 done
2335 rm -f conftest*
2336 if test -n "$ac_declaration"; then
2337 echo '#ifdef __cplusplus' >>confdefs.h
2338 echo $ac_declaration >>confdefs.h
2339 echo '#endif' >>confdefs.h
2342 else
2343 echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2348 ac_ext=c
2349 ac_cpp='$CPP $CPPFLAGS'
2350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2355 # Determine the noncanonical target name, for directory use.
2356 case ${build_alias} in
2357 "") build_noncanonical=${build} ;;
2358 *) build_noncanonical=${build_alias} ;;
2359 esac
2361 case ${host_alias} in
2362 "") host_noncanonical=${build_noncanonical} ;;
2363 *) host_noncanonical=${host_alias} ;;
2364 esac
2366 case ${target_alias} in
2367 "") target_noncanonical=${host_noncanonical} ;;
2368 *) target_noncanonical=${target_alias} ;;
2369 esac
2374 # Specify the local prefix
2375 local_prefix=
2377 # Check whether --with-local-prefix or --without-local-prefix was given.
2378 if test "${with_local_prefix+set}" = set; then
2379 withval="$with_local_prefix"
2380 case "${withval}" in
2381 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
2382 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
2383 { (exit 1); exit 1; }; } ;;
2384 no) ;;
2385 *) local_prefix=$with_local_prefix ;;
2386 esac
2389 # Default local prefix if it is empty
2390 if test x$local_prefix = x; then
2391 local_prefix=/usr/local
2394 # Choose one or two-process fix methodology. Systems that cannot handle
2395 # bi-directional pipes must use the two process method.
2397 # Check whether --enable-twoprocess or --disable-twoprocess was given.
2398 if test "${enable_twoprocess+set}" = set; then
2399 enableval="$enable_twoprocess"
2400 if test "x$enable_twoprocess" = xyes; then
2401 TARGET=twoprocess
2402 else
2403 TARGET=oneprocess
2405 else
2406 case $host in
2407 i?86-*-msdosdjgpp* | \
2408 i?86-*-mingw32* | \
2409 *-*-beos* )
2410 TARGET=twoprocess
2414 TARGET=oneprocess
2416 esac
2420 if test $TARGET = twoprocess; then
2422 cat >>confdefs.h <<\_ACEOF
2423 #define SEPARATE_FIX_PROC 1
2424 _ACEOF
2428 case $host in
2429 vax-dec-bsd* )
2431 cat >>confdefs.h <<\_ACEOF
2432 #define exit xexit
2433 _ACEOF
2436 cat >>confdefs.h <<\_ACEOF
2437 #define atexit xatexit
2438 _ACEOF
2441 esac
2444 cat >>confdefs.h <<_ACEOF
2445 #define EXE_EXT "$ac_exeext"
2446 _ACEOF
2449 # Checks for header files.
2451 ac_ext=c
2452 ac_cpp='$CPP $CPPFLAGS'
2453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2456 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2457 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2458 # On Suns, sometimes $CPP names a directory.
2459 if test -n "$CPP" && test -d "$CPP"; then
2460 CPP=
2462 if test -z "$CPP"; then
2463 if test "${ac_cv_prog_CPP+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2465 else
2466 # Double quotes because CPP needs to be expanded
2467 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2469 ac_preproc_ok=false
2470 for ac_c_preproc_warn_flag in '' yes
2472 # Use a header file that comes with gcc, so configuring glibc
2473 # with a fresh cross-compiler works.
2474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2475 # <limits.h> exists even on freestanding compilers.
2476 # On the NeXT, cc -E runs the code through the compiler's parser,
2477 # not just through cpp. "Syntax error" is here to catch this case.
2478 cat >conftest.$ac_ext <<_ACEOF
2479 /* confdefs.h. */
2480 _ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2484 #ifdef __STDC__
2485 # include <limits.h>
2486 #else
2487 # include <assert.h>
2488 #endif
2489 Syntax error
2490 _ACEOF
2491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2493 ac_status=$?
2494 grep -v '^ *+' conftest.er1 >conftest.err
2495 rm -f conftest.er1
2496 cat conftest.err >&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); } >/dev/null; then
2499 if test -s conftest.err; then
2500 ac_cpp_err=$ac_c_preproc_warn_flag
2501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2502 else
2503 ac_cpp_err=
2505 else
2506 ac_cpp_err=yes
2508 if test -z "$ac_cpp_err"; then
2510 else
2511 echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2514 # Broken: fails on valid input.
2515 continue
2517 rm -f conftest.err conftest.$ac_ext
2519 # OK, works on sane cases. Now check whether non-existent headers
2520 # can be detected and how.
2521 cat >conftest.$ac_ext <<_ACEOF
2522 /* confdefs.h. */
2523 _ACEOF
2524 cat confdefs.h >>conftest.$ac_ext
2525 cat >>conftest.$ac_ext <<_ACEOF
2526 /* end confdefs.h. */
2527 #include <ac_nonexistent.h>
2528 _ACEOF
2529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2531 ac_status=$?
2532 grep -v '^ *+' conftest.er1 >conftest.err
2533 rm -f conftest.er1
2534 cat conftest.err >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } >/dev/null; then
2537 if test -s conftest.err; then
2538 ac_cpp_err=$ac_c_preproc_warn_flag
2539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2540 else
2541 ac_cpp_err=
2543 else
2544 ac_cpp_err=yes
2546 if test -z "$ac_cpp_err"; then
2547 # Broken: success on invalid input.
2548 continue
2549 else
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2553 # Passes both tests.
2554 ac_preproc_ok=:
2555 break
2557 rm -f conftest.err conftest.$ac_ext
2559 done
2560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2561 rm -f conftest.err conftest.$ac_ext
2562 if $ac_preproc_ok; then
2563 break
2566 done
2567 ac_cv_prog_CPP=$CPP
2570 CPP=$ac_cv_prog_CPP
2571 else
2572 ac_cv_prog_CPP=$CPP
2574 echo "$as_me:$LINENO: result: $CPP" >&5
2575 echo "${ECHO_T}$CPP" >&6
2576 ac_preproc_ok=false
2577 for ac_c_preproc_warn_flag in '' yes
2579 # Use a header file that comes with gcc, so configuring glibc
2580 # with a fresh cross-compiler works.
2581 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2582 # <limits.h> exists even on freestanding compilers.
2583 # On the NeXT, cc -E runs the code through the compiler's parser,
2584 # not just through cpp. "Syntax error" is here to catch this case.
2585 cat >conftest.$ac_ext <<_ACEOF
2586 /* confdefs.h. */
2587 _ACEOF
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h. */
2591 #ifdef __STDC__
2592 # include <limits.h>
2593 #else
2594 # include <assert.h>
2595 #endif
2596 Syntax error
2597 _ACEOF
2598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2600 ac_status=$?
2601 grep -v '^ *+' conftest.er1 >conftest.err
2602 rm -f conftest.er1
2603 cat conftest.err >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); } >/dev/null; then
2606 if test -s conftest.err; then
2607 ac_cpp_err=$ac_c_preproc_warn_flag
2608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2609 else
2610 ac_cpp_err=
2612 else
2613 ac_cpp_err=yes
2615 if test -z "$ac_cpp_err"; then
2617 else
2618 echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2621 # Broken: fails on valid input.
2622 continue
2624 rm -f conftest.err conftest.$ac_ext
2626 # OK, works on sane cases. Now check whether non-existent headers
2627 # can be detected and how.
2628 cat >conftest.$ac_ext <<_ACEOF
2629 /* confdefs.h. */
2630 _ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h. */
2634 #include <ac_nonexistent.h>
2635 _ACEOF
2636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2638 ac_status=$?
2639 grep -v '^ *+' conftest.er1 >conftest.err
2640 rm -f conftest.er1
2641 cat conftest.err >&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); } >/dev/null; then
2644 if test -s conftest.err; then
2645 ac_cpp_err=$ac_c_preproc_warn_flag
2646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2647 else
2648 ac_cpp_err=
2650 else
2651 ac_cpp_err=yes
2653 if test -z "$ac_cpp_err"; then
2654 # Broken: success on invalid input.
2655 continue
2656 else
2657 echo "$as_me: failed program was:" >&5
2658 sed 's/^/| /' conftest.$ac_ext >&5
2660 # Passes both tests.
2661 ac_preproc_ok=:
2662 break
2664 rm -f conftest.err conftest.$ac_ext
2666 done
2667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2668 rm -f conftest.err conftest.$ac_ext
2669 if $ac_preproc_ok; then
2671 else
2672 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2673 See \`config.log' for more details." >&5
2674 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2675 See \`config.log' for more details." >&2;}
2676 { (exit 1); exit 1; }; }
2679 ac_ext=c
2680 ac_cpp='$CPP $CPPFLAGS'
2681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2686 echo "$as_me:$LINENO: checking for egrep" >&5
2687 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2688 if test "${ac_cv_prog_egrep+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2690 else
2691 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2692 then ac_cv_prog_egrep='grep -E'
2693 else ac_cv_prog_egrep='egrep'
2696 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2697 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2698 EGREP=$ac_cv_prog_egrep
2701 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2702 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2703 if test "${ac_cv_header_stdc+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2705 else
2706 cat >conftest.$ac_ext <<_ACEOF
2707 /* confdefs.h. */
2708 _ACEOF
2709 cat confdefs.h >>conftest.$ac_ext
2710 cat >>conftest.$ac_ext <<_ACEOF
2711 /* end confdefs.h. */
2712 #include <stdlib.h>
2713 #include <stdarg.h>
2714 #include <string.h>
2715 #include <float.h>
2718 main ()
2722 return 0;
2724 _ACEOF
2725 rm -f conftest.$ac_objext
2726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2727 (eval $ac_compile) 2>conftest.er1
2728 ac_status=$?
2729 grep -v '^ *+' conftest.er1 >conftest.err
2730 rm -f conftest.er1
2731 cat conftest.err >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); } &&
2734 { ac_try='test -z "$ac_c_werror_flag"
2735 || test ! -s conftest.err'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 (eval $ac_try) 2>&5
2738 ac_status=$?
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; } &&
2741 { ac_try='test -s conftest.$ac_objext'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743 (eval $ac_try) 2>&5
2744 ac_status=$?
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; }; then
2747 ac_cv_header_stdc=yes
2748 else
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2752 ac_cv_header_stdc=no
2754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2756 if test $ac_cv_header_stdc = yes; then
2757 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2758 cat >conftest.$ac_ext <<_ACEOF
2759 /* confdefs.h. */
2760 _ACEOF
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h. */
2764 #include <string.h>
2766 _ACEOF
2767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2768 $EGREP "memchr" >/dev/null 2>&1; then
2770 else
2771 ac_cv_header_stdc=no
2773 rm -f conftest*
2777 if test $ac_cv_header_stdc = yes; then
2778 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2779 cat >conftest.$ac_ext <<_ACEOF
2780 /* confdefs.h. */
2781 _ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h. */
2785 #include <stdlib.h>
2787 _ACEOF
2788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2789 $EGREP "free" >/dev/null 2>&1; then
2791 else
2792 ac_cv_header_stdc=no
2794 rm -f conftest*
2798 if test $ac_cv_header_stdc = yes; then
2799 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2800 if test "$cross_compiling" = yes; then
2802 else
2803 cat >conftest.$ac_ext <<_ACEOF
2804 /* confdefs.h. */
2805 _ACEOF
2806 cat confdefs.h >>conftest.$ac_ext
2807 cat >>conftest.$ac_ext <<_ACEOF
2808 /* end confdefs.h. */
2809 #include <ctype.h>
2810 #if ((' ' & 0x0FF) == 0x020)
2811 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2812 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2813 #else
2814 # define ISLOWER(c) \
2815 (('a' <= (c) && (c) <= 'i') \
2816 || ('j' <= (c) && (c) <= 'r') \
2817 || ('s' <= (c) && (c) <= 'z'))
2818 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2819 #endif
2821 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2823 main ()
2825 int i;
2826 for (i = 0; i < 256; i++)
2827 if (XOR (islower (i), ISLOWER (i))
2828 || toupper (i) != TOUPPER (i))
2829 exit(2);
2830 exit (0);
2832 _ACEOF
2833 rm -f conftest$ac_exeext
2834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2835 (eval $ac_link) 2>&5
2836 ac_status=$?
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 (eval $ac_try) 2>&5
2841 ac_status=$?
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; }; then
2845 else
2846 echo "$as_me: program exited with status $ac_status" >&5
2847 echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2850 ( exit $ac_status )
2851 ac_cv_header_stdc=no
2853 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2857 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2858 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2859 if test $ac_cv_header_stdc = yes; then
2861 cat >>confdefs.h <<\_ACEOF
2862 #define STDC_HEADERS 1
2863 _ACEOF
2867 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2877 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2878 inttypes.h stdint.h unistd.h
2880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2881 echo "$as_me:$LINENO: checking for $ac_header" >&5
2882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 else
2886 cat >conftest.$ac_ext <<_ACEOF
2887 /* confdefs.h. */
2888 _ACEOF
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h. */
2892 $ac_includes_default
2894 #include <$ac_header>
2895 _ACEOF
2896 rm -f conftest.$ac_objext
2897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2898 (eval $ac_compile) 2>conftest.er1
2899 ac_status=$?
2900 grep -v '^ *+' conftest.er1 >conftest.err
2901 rm -f conftest.er1
2902 cat conftest.err >&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); } &&
2905 { ac_try='test -z "$ac_c_werror_flag"
2906 || test ! -s conftest.err'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 (eval $ac_try) 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; } &&
2912 { ac_try='test -s conftest.$ac_objext'
2913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914 (eval $ac_try) 2>&5
2915 ac_status=$?
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }; }; then
2918 eval "$as_ac_Header=yes"
2919 else
2920 echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2923 eval "$as_ac_Header=no"
2925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2930 cat >>confdefs.h <<_ACEOF
2931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2932 _ACEOF
2936 done
2946 for ac_header in stddef.h stdlib.h strings.h unistd.h fcntl.h sys/file.h \
2947 sys/stat.h
2949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2951 echo "$as_me:$LINENO: checking for $ac_header" >&5
2952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2958 else
2959 # Is the header compilable?
2960 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2962 cat >conftest.$ac_ext <<_ACEOF
2963 /* confdefs.h. */
2964 _ACEOF
2965 cat confdefs.h >>conftest.$ac_ext
2966 cat >>conftest.$ac_ext <<_ACEOF
2967 /* end confdefs.h. */
2968 $ac_includes_default
2969 #include <$ac_header>
2970 _ACEOF
2971 rm -f conftest.$ac_objext
2972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2973 (eval $ac_compile) 2>conftest.er1
2974 ac_status=$?
2975 grep -v '^ *+' conftest.er1 >conftest.err
2976 rm -f conftest.er1
2977 cat conftest.err >&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); } &&
2980 { ac_try='test -z "$ac_c_werror_flag"
2981 || test ! -s conftest.err'
2982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983 (eval $ac_try) 2>&5
2984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; } &&
2987 { ac_try='test -s conftest.$ac_objext'
2988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989 (eval $ac_try) 2>&5
2990 ac_status=$?
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; }; then
2993 ac_header_compiler=yes
2994 else
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2998 ac_header_compiler=no
3000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3002 echo "${ECHO_T}$ac_header_compiler" >&6
3004 # Is the header present?
3005 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3007 cat >conftest.$ac_ext <<_ACEOF
3008 /* confdefs.h. */
3009 _ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h. */
3013 #include <$ac_header>
3014 _ACEOF
3015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3017 ac_status=$?
3018 grep -v '^ *+' conftest.er1 >conftest.err
3019 rm -f conftest.er1
3020 cat conftest.err >&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); } >/dev/null; then
3023 if test -s conftest.err; then
3024 ac_cpp_err=$ac_c_preproc_warn_flag
3025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3026 else
3027 ac_cpp_err=
3029 else
3030 ac_cpp_err=yes
3032 if test -z "$ac_cpp_err"; then
3033 ac_header_preproc=yes
3034 else
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3038 ac_header_preproc=no
3040 rm -f conftest.err conftest.$ac_ext
3041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3042 echo "${ECHO_T}$ac_header_preproc" >&6
3044 # So? What about this header?
3045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3046 yes:no: )
3047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3051 ac_header_preproc=yes
3053 no:yes:* )
3054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3057 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3058 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3060 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3061 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3064 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3067 cat <<\_ASBOX
3068 ## -------------------------------------- ##
3069 ## Report this to the fixincludes lists. ##
3070 ## -------------------------------------- ##
3071 _ASBOX
3073 sed "s/^/$as_me: WARNING: /" >&2
3075 esac
3076 echo "$as_me:$LINENO: checking for $ac_header" >&5
3077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3080 else
3081 eval "$as_ac_Header=\$ac_header_preproc"
3083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3088 cat >>confdefs.h <<_ACEOF
3089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3090 _ACEOF
3094 done
3113 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
3115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3116 echo "$as_me:$LINENO: checking for $ac_func" >&5
3117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3118 if eval "test \"\${$as_ac_var+set}\" = set"; then
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3120 else
3121 cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h. */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3129 #define $ac_func innocuous_$ac_func
3131 /* System header to define __stub macros and hopefully few prototypes,
3132 which can conflict with char $ac_func (); below.
3133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3134 <limits.h> exists even on freestanding compilers. */
3136 #ifdef __STDC__
3137 # include <limits.h>
3138 #else
3139 # include <assert.h>
3140 #endif
3142 #undef $ac_func
3144 /* Override any gcc2 internal prototype to avoid an error. */
3145 #ifdef __cplusplus
3146 extern "C"
3148 #endif
3149 /* We use char because int might match the return type of a gcc2
3150 builtin and then its argument prototype would still apply. */
3151 char $ac_func ();
3152 /* The GNU C library defines this for functions which it implements
3153 to always fail with ENOSYS. Some functions are actually named
3154 something starting with __ and the normal name is an alias. */
3155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3156 choke me
3157 #else
3158 char (*f) () = $ac_func;
3159 #endif
3160 #ifdef __cplusplus
3162 #endif
3165 main ()
3167 return f != $ac_func;
3169 return 0;
3171 _ACEOF
3172 rm -f conftest.$ac_objext conftest$ac_exeext
3173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3174 (eval $ac_link) 2>conftest.er1
3175 ac_status=$?
3176 grep -v '^ *+' conftest.er1 >conftest.err
3177 rm -f conftest.er1
3178 cat conftest.err >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } &&
3181 { ac_try='test -z "$ac_c_werror_flag"
3182 || test ! -s conftest.err'
3183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184 (eval $ac_try) 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; } &&
3188 { ac_try='test -s conftest$ac_exeext'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 (eval $ac_try) 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; }; then
3194 eval "$as_ac_var=yes"
3195 else
3196 echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3199 eval "$as_ac_var=no"
3201 rm -f conftest.err conftest.$ac_objext \
3202 conftest$ac_exeext conftest.$ac_ext
3204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3205 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3206 if test `eval echo '${'$as_ac_var'}'` = yes; then
3207 cat >>confdefs.h <<_ACEOF
3208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3209 _ACEOF
3212 done
3214 echo "$as_me:$LINENO: checking whether abort is declared" >&5
3215 echo $ECHO_N "checking whether abort is declared... $ECHO_C" >&6
3216 if test "${ac_cv_have_decl_abort+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 else
3219 cat >conftest.$ac_ext <<_ACEOF
3220 /* confdefs.h. */
3221 _ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h. */
3225 $ac_includes_default
3227 main ()
3229 #ifndef abort
3230 char *p = (char *) abort;
3231 #endif
3234 return 0;
3236 _ACEOF
3237 rm -f conftest.$ac_objext
3238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3239 (eval $ac_compile) 2>conftest.er1
3240 ac_status=$?
3241 grep -v '^ *+' conftest.er1 >conftest.err
3242 rm -f conftest.er1
3243 cat conftest.err >&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); } &&
3246 { ac_try='test -z "$ac_c_werror_flag"
3247 || test ! -s conftest.err'
3248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 (eval $ac_try) 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; } &&
3253 { ac_try='test -s conftest.$ac_objext'
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 (eval $ac_try) 2>&5
3256 ac_status=$?
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3259 ac_cv_have_decl_abort=yes
3260 else
3261 echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3264 ac_cv_have_decl_abort=no
3266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3268 echo "$as_me:$LINENO: result: $ac_cv_have_decl_abort" >&5
3269 echo "${ECHO_T}$ac_cv_have_decl_abort" >&6
3270 if test $ac_cv_have_decl_abort = yes; then
3272 cat >>confdefs.h <<_ACEOF
3273 #define HAVE_DECL_ABORT 1
3274 _ACEOF
3277 else
3278 cat >>confdefs.h <<_ACEOF
3279 #define HAVE_DECL_ABORT 0
3280 _ACEOF
3284 echo "$as_me:$LINENO: checking whether errno is declared" >&5
3285 echo $ECHO_N "checking whether errno is declared... $ECHO_C" >&6
3286 if test "${ac_cv_have_decl_errno+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 else
3289 cat >conftest.$ac_ext <<_ACEOF
3290 /* confdefs.h. */
3291 _ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3295 $ac_includes_default
3297 main ()
3299 #ifndef errno
3300 char *p = (char *) errno;
3301 #endif
3304 return 0;
3306 _ACEOF
3307 rm -f conftest.$ac_objext
3308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3309 (eval $ac_compile) 2>conftest.er1
3310 ac_status=$?
3311 grep -v '^ *+' conftest.er1 >conftest.err
3312 rm -f conftest.er1
3313 cat conftest.err >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } &&
3316 { ac_try='test -z "$ac_c_werror_flag"
3317 || test ! -s conftest.err'
3318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3319 (eval $ac_try) 2>&5
3320 ac_status=$?
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; } &&
3323 { ac_try='test -s conftest.$ac_objext'
3324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325 (eval $ac_try) 2>&5
3326 ac_status=$?
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; }; then
3329 ac_cv_have_decl_errno=yes
3330 else
3331 echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3334 ac_cv_have_decl_errno=no
3336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3338 echo "$as_me:$LINENO: result: $ac_cv_have_decl_errno" >&5
3339 echo "${ECHO_T}$ac_cv_have_decl_errno" >&6
3340 if test $ac_cv_have_decl_errno = yes; then
3342 cat >>confdefs.h <<_ACEOF
3343 #define HAVE_DECL_ERRNO 1
3344 _ACEOF
3347 else
3348 cat >>confdefs.h <<_ACEOF
3349 #define HAVE_DECL_ERRNO 0
3350 _ACEOF
3354 echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
3355 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
3356 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359 cat >conftest.$ac_ext <<_ACEOF
3360 /* confdefs.h. */
3361 _ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h. */
3365 $ac_includes_default
3367 main ()
3369 #ifndef clearerr_unlocked
3370 char *p = (char *) clearerr_unlocked;
3371 #endif
3374 return 0;
3376 _ACEOF
3377 rm -f conftest.$ac_objext
3378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3379 (eval $ac_compile) 2>conftest.er1
3380 ac_status=$?
3381 grep -v '^ *+' conftest.er1 >conftest.err
3382 rm -f conftest.er1
3383 cat conftest.err >&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); } &&
3386 { ac_try='test -z "$ac_c_werror_flag"
3387 || test ! -s conftest.err'
3388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3389 (eval $ac_try) 2>&5
3390 ac_status=$?
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }; } &&
3393 { ac_try='test -s conftest.$ac_objext'
3394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395 (eval $ac_try) 2>&5
3396 ac_status=$?
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; }; then
3399 ac_cv_have_decl_clearerr_unlocked=yes
3400 else
3401 echo "$as_me: failed program was:" >&5
3402 sed 's/^/| /' conftest.$ac_ext >&5
3404 ac_cv_have_decl_clearerr_unlocked=no
3406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3408 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
3409 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
3410 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
3412 cat >>confdefs.h <<_ACEOF
3413 #define HAVE_DECL_CLEARERR_UNLOCKED 1
3414 _ACEOF
3417 else
3418 cat >>confdefs.h <<_ACEOF
3419 #define HAVE_DECL_CLEARERR_UNLOCKED 0
3420 _ACEOF
3424 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
3425 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
3426 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 else
3429 cat >conftest.$ac_ext <<_ACEOF
3430 /* confdefs.h. */
3431 _ACEOF
3432 cat confdefs.h >>conftest.$ac_ext
3433 cat >>conftest.$ac_ext <<_ACEOF
3434 /* end confdefs.h. */
3435 $ac_includes_default
3437 main ()
3439 #ifndef feof_unlocked
3440 char *p = (char *) feof_unlocked;
3441 #endif
3444 return 0;
3446 _ACEOF
3447 rm -f conftest.$ac_objext
3448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3449 (eval $ac_compile) 2>conftest.er1
3450 ac_status=$?
3451 grep -v '^ *+' conftest.er1 >conftest.err
3452 rm -f conftest.er1
3453 cat conftest.err >&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); } &&
3456 { ac_try='test -z "$ac_c_werror_flag"
3457 || test ! -s conftest.err'
3458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3459 (eval $ac_try) 2>&5
3460 ac_status=$?
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); }; } &&
3463 { ac_try='test -s conftest.$ac_objext'
3464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3465 (eval $ac_try) 2>&5
3466 ac_status=$?
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }; }; then
3469 ac_cv_have_decl_feof_unlocked=yes
3470 else
3471 echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3474 ac_cv_have_decl_feof_unlocked=no
3476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3478 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
3479 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
3480 if test $ac_cv_have_decl_feof_unlocked = yes; then
3482 cat >>confdefs.h <<_ACEOF
3483 #define HAVE_DECL_FEOF_UNLOCKED 1
3484 _ACEOF
3487 else
3488 cat >>confdefs.h <<_ACEOF
3489 #define HAVE_DECL_FEOF_UNLOCKED 0
3490 _ACEOF
3494 echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
3495 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
3496 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
3497 echo $ECHO_N "(cached) $ECHO_C" >&6
3498 else
3499 cat >conftest.$ac_ext <<_ACEOF
3500 /* confdefs.h. */
3501 _ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3505 $ac_includes_default
3507 main ()
3509 #ifndef ferror_unlocked
3510 char *p = (char *) ferror_unlocked;
3511 #endif
3514 return 0;
3516 _ACEOF
3517 rm -f conftest.$ac_objext
3518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3519 (eval $ac_compile) 2>conftest.er1
3520 ac_status=$?
3521 grep -v '^ *+' conftest.er1 >conftest.err
3522 rm -f conftest.er1
3523 cat conftest.err >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } &&
3526 { ac_try='test -z "$ac_c_werror_flag"
3527 || test ! -s conftest.err'
3528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529 (eval $ac_try) 2>&5
3530 ac_status=$?
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); }; } &&
3533 { ac_try='test -s conftest.$ac_objext'
3534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 (eval $ac_try) 2>&5
3536 ac_status=$?
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); }; }; then
3539 ac_cv_have_decl_ferror_unlocked=yes
3540 else
3541 echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3544 ac_cv_have_decl_ferror_unlocked=no
3546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3548 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
3549 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
3550 if test $ac_cv_have_decl_ferror_unlocked = yes; then
3552 cat >>confdefs.h <<_ACEOF
3553 #define HAVE_DECL_FERROR_UNLOCKED 1
3554 _ACEOF
3557 else
3558 cat >>confdefs.h <<_ACEOF
3559 #define HAVE_DECL_FERROR_UNLOCKED 0
3560 _ACEOF
3564 echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
3565 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
3566 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3568 else
3569 cat >conftest.$ac_ext <<_ACEOF
3570 /* confdefs.h. */
3571 _ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h. */
3575 $ac_includes_default
3577 main ()
3579 #ifndef fflush_unlocked
3580 char *p = (char *) fflush_unlocked;
3581 #endif
3584 return 0;
3586 _ACEOF
3587 rm -f conftest.$ac_objext
3588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3589 (eval $ac_compile) 2>conftest.er1
3590 ac_status=$?
3591 grep -v '^ *+' conftest.er1 >conftest.err
3592 rm -f conftest.er1
3593 cat conftest.err >&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); } &&
3596 { ac_try='test -z "$ac_c_werror_flag"
3597 || test ! -s conftest.err'
3598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3599 (eval $ac_try) 2>&5
3600 ac_status=$?
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }; } &&
3603 { ac_try='test -s conftest.$ac_objext'
3604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3605 (eval $ac_try) 2>&5
3606 ac_status=$?
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); }; }; then
3609 ac_cv_have_decl_fflush_unlocked=yes
3610 else
3611 echo "$as_me: failed program was:" >&5
3612 sed 's/^/| /' conftest.$ac_ext >&5
3614 ac_cv_have_decl_fflush_unlocked=no
3616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3618 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
3619 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
3620 if test $ac_cv_have_decl_fflush_unlocked = yes; then
3622 cat >>confdefs.h <<_ACEOF
3623 #define HAVE_DECL_FFLUSH_UNLOCKED 1
3624 _ACEOF
3627 else
3628 cat >>confdefs.h <<_ACEOF
3629 #define HAVE_DECL_FFLUSH_UNLOCKED 0
3630 _ACEOF
3634 echo "$as_me:$LINENO: checking whether fgetc_unlocked is declared" >&5
3635 echo $ECHO_N "checking whether fgetc_unlocked is declared... $ECHO_C" >&6
3636 if test "${ac_cv_have_decl_fgetc_unlocked+set}" = set; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3638 else
3639 cat >conftest.$ac_ext <<_ACEOF
3640 /* confdefs.h. */
3641 _ACEOF
3642 cat confdefs.h >>conftest.$ac_ext
3643 cat >>conftest.$ac_ext <<_ACEOF
3644 /* end confdefs.h. */
3645 $ac_includes_default
3647 main ()
3649 #ifndef fgetc_unlocked
3650 char *p = (char *) fgetc_unlocked;
3651 #endif
3654 return 0;
3656 _ACEOF
3657 rm -f conftest.$ac_objext
3658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3659 (eval $ac_compile) 2>conftest.er1
3660 ac_status=$?
3661 grep -v '^ *+' conftest.er1 >conftest.err
3662 rm -f conftest.er1
3663 cat conftest.err >&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } &&
3666 { ac_try='test -z "$ac_c_werror_flag"
3667 || test ! -s conftest.err'
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 (eval $ac_try) 2>&5
3670 ac_status=$?
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; } &&
3673 { ac_try='test -s conftest.$ac_objext'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 (eval $ac_try) 2>&5
3676 ac_status=$?
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; }; then
3679 ac_cv_have_decl_fgetc_unlocked=yes
3680 else
3681 echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3684 ac_cv_have_decl_fgetc_unlocked=no
3686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3688 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgetc_unlocked" >&5
3689 echo "${ECHO_T}$ac_cv_have_decl_fgetc_unlocked" >&6
3690 if test $ac_cv_have_decl_fgetc_unlocked = yes; then
3692 cat >>confdefs.h <<_ACEOF
3693 #define HAVE_DECL_FGETC_UNLOCKED 1
3694 _ACEOF
3697 else
3698 cat >>confdefs.h <<_ACEOF
3699 #define HAVE_DECL_FGETC_UNLOCKED 0
3700 _ACEOF
3704 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
3705 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
3706 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709 cat >conftest.$ac_ext <<_ACEOF
3710 /* confdefs.h. */
3711 _ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3715 $ac_includes_default
3717 main ()
3719 #ifndef fgets_unlocked
3720 char *p = (char *) fgets_unlocked;
3721 #endif
3724 return 0;
3726 _ACEOF
3727 rm -f conftest.$ac_objext
3728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3729 (eval $ac_compile) 2>conftest.er1
3730 ac_status=$?
3731 grep -v '^ *+' conftest.er1 >conftest.err
3732 rm -f conftest.er1
3733 cat conftest.err >&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); } &&
3736 { ac_try='test -z "$ac_c_werror_flag"
3737 || test ! -s conftest.err'
3738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3739 (eval $ac_try) 2>&5
3740 ac_status=$?
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }; } &&
3743 { ac_try='test -s conftest.$ac_objext'
3744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3745 (eval $ac_try) 2>&5
3746 ac_status=$?
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }; }; then
3749 ac_cv_have_decl_fgets_unlocked=yes
3750 else
3751 echo "$as_me: failed program was:" >&5
3752 sed 's/^/| /' conftest.$ac_ext >&5
3754 ac_cv_have_decl_fgets_unlocked=no
3756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3758 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
3759 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
3760 if test $ac_cv_have_decl_fgets_unlocked = yes; then
3762 cat >>confdefs.h <<_ACEOF
3763 #define HAVE_DECL_FGETS_UNLOCKED 1
3764 _ACEOF
3767 else
3768 cat >>confdefs.h <<_ACEOF
3769 #define HAVE_DECL_FGETS_UNLOCKED 0
3770 _ACEOF
3774 echo "$as_me:$LINENO: checking whether fileno_unlocked is declared" >&5
3775 echo $ECHO_N "checking whether fileno_unlocked is declared... $ECHO_C" >&6
3776 if test "${ac_cv_have_decl_fileno_unlocked+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 else
3779 cat >conftest.$ac_ext <<_ACEOF
3780 /* confdefs.h. */
3781 _ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h. */
3785 $ac_includes_default
3787 main ()
3789 #ifndef fileno_unlocked
3790 char *p = (char *) fileno_unlocked;
3791 #endif
3794 return 0;
3796 _ACEOF
3797 rm -f conftest.$ac_objext
3798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3799 (eval $ac_compile) 2>conftest.er1
3800 ac_status=$?
3801 grep -v '^ *+' conftest.er1 >conftest.err
3802 rm -f conftest.er1
3803 cat conftest.err >&5
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); } &&
3806 { ac_try='test -z "$ac_c_werror_flag"
3807 || test ! -s conftest.err'
3808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809 (eval $ac_try) 2>&5
3810 ac_status=$?
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }; } &&
3813 { ac_try='test -s conftest.$ac_objext'
3814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3815 (eval $ac_try) 2>&5
3816 ac_status=$?
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); }; }; then
3819 ac_cv_have_decl_fileno_unlocked=yes
3820 else
3821 echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3824 ac_cv_have_decl_fileno_unlocked=no
3826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3828 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fileno_unlocked" >&5
3829 echo "${ECHO_T}$ac_cv_have_decl_fileno_unlocked" >&6
3830 if test $ac_cv_have_decl_fileno_unlocked = yes; then
3832 cat >>confdefs.h <<_ACEOF
3833 #define HAVE_DECL_FILENO_UNLOCKED 1
3834 _ACEOF
3837 else
3838 cat >>confdefs.h <<_ACEOF
3839 #define HAVE_DECL_FILENO_UNLOCKED 0
3840 _ACEOF
3844 echo "$as_me:$LINENO: checking whether fprintf_unlocked is declared" >&5
3845 echo $ECHO_N "checking whether fprintf_unlocked is declared... $ECHO_C" >&6
3846 if test "${ac_cv_have_decl_fprintf_unlocked+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 else
3849 cat >conftest.$ac_ext <<_ACEOF
3850 /* confdefs.h. */
3851 _ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3855 $ac_includes_default
3857 main ()
3859 #ifndef fprintf_unlocked
3860 char *p = (char *) fprintf_unlocked;
3861 #endif
3864 return 0;
3866 _ACEOF
3867 rm -f conftest.$ac_objext
3868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3869 (eval $ac_compile) 2>conftest.er1
3870 ac_status=$?
3871 grep -v '^ *+' conftest.er1 >conftest.err
3872 rm -f conftest.er1
3873 cat conftest.err >&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } &&
3876 { ac_try='test -z "$ac_c_werror_flag"
3877 || test ! -s conftest.err'
3878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879 (eval $ac_try) 2>&5
3880 ac_status=$?
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; } &&
3883 { ac_try='test -s conftest.$ac_objext'
3884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3885 (eval $ac_try) 2>&5
3886 ac_status=$?
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); }; }; then
3889 ac_cv_have_decl_fprintf_unlocked=yes
3890 else
3891 echo "$as_me: failed program was:" >&5
3892 sed 's/^/| /' conftest.$ac_ext >&5
3894 ac_cv_have_decl_fprintf_unlocked=no
3896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3898 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf_unlocked" >&5
3899 echo "${ECHO_T}$ac_cv_have_decl_fprintf_unlocked" >&6
3900 if test $ac_cv_have_decl_fprintf_unlocked = yes; then
3902 cat >>confdefs.h <<_ACEOF
3903 #define HAVE_DECL_FPRINTF_UNLOCKED 1
3904 _ACEOF
3907 else
3908 cat >>confdefs.h <<_ACEOF
3909 #define HAVE_DECL_FPRINTF_UNLOCKED 0
3910 _ACEOF
3914 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
3915 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
3916 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 else
3919 cat >conftest.$ac_ext <<_ACEOF
3920 /* confdefs.h. */
3921 _ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3925 $ac_includes_default
3927 main ()
3929 #ifndef fputc_unlocked
3930 char *p = (char *) fputc_unlocked;
3931 #endif
3934 return 0;
3936 _ACEOF
3937 rm -f conftest.$ac_objext
3938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3939 (eval $ac_compile) 2>conftest.er1
3940 ac_status=$?
3941 grep -v '^ *+' conftest.er1 >conftest.err
3942 rm -f conftest.er1
3943 cat conftest.err >&5
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); } &&
3946 { ac_try='test -z "$ac_c_werror_flag"
3947 || test ! -s conftest.err'
3948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3949 (eval $ac_try) 2>&5
3950 ac_status=$?
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); }; } &&
3953 { ac_try='test -s conftest.$ac_objext'
3954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3955 (eval $ac_try) 2>&5
3956 ac_status=$?
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); }; }; then
3959 ac_cv_have_decl_fputc_unlocked=yes
3960 else
3961 echo "$as_me: failed program was:" >&5
3962 sed 's/^/| /' conftest.$ac_ext >&5
3964 ac_cv_have_decl_fputc_unlocked=no
3966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3968 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
3969 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
3970 if test $ac_cv_have_decl_fputc_unlocked = yes; then
3972 cat >>confdefs.h <<_ACEOF
3973 #define HAVE_DECL_FPUTC_UNLOCKED 1
3974 _ACEOF
3977 else
3978 cat >>confdefs.h <<_ACEOF
3979 #define HAVE_DECL_FPUTC_UNLOCKED 0
3980 _ACEOF
3984 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
3985 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
3986 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
3987 echo $ECHO_N "(cached) $ECHO_C" >&6
3988 else
3989 cat >conftest.$ac_ext <<_ACEOF
3990 /* confdefs.h. */
3991 _ACEOF
3992 cat confdefs.h >>conftest.$ac_ext
3993 cat >>conftest.$ac_ext <<_ACEOF
3994 /* end confdefs.h. */
3995 $ac_includes_default
3997 main ()
3999 #ifndef fputs_unlocked
4000 char *p = (char *) fputs_unlocked;
4001 #endif
4004 return 0;
4006 _ACEOF
4007 rm -f conftest.$ac_objext
4008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4009 (eval $ac_compile) 2>conftest.er1
4010 ac_status=$?
4011 grep -v '^ *+' conftest.er1 >conftest.err
4012 rm -f conftest.er1
4013 cat conftest.err >&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); } &&
4016 { ac_try='test -z "$ac_c_werror_flag"
4017 || test ! -s conftest.err'
4018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4019 (eval $ac_try) 2>&5
4020 ac_status=$?
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; } &&
4023 { ac_try='test -s conftest.$ac_objext'
4024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4025 (eval $ac_try) 2>&5
4026 ac_status=$?
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); }; }; then
4029 ac_cv_have_decl_fputs_unlocked=yes
4030 else
4031 echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4034 ac_cv_have_decl_fputs_unlocked=no
4036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4038 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
4039 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
4040 if test $ac_cv_have_decl_fputs_unlocked = yes; then
4042 cat >>confdefs.h <<_ACEOF
4043 #define HAVE_DECL_FPUTS_UNLOCKED 1
4044 _ACEOF
4047 else
4048 cat >>confdefs.h <<_ACEOF
4049 #define HAVE_DECL_FPUTS_UNLOCKED 0
4050 _ACEOF
4054 echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
4055 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
4056 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4058 else
4059 cat >conftest.$ac_ext <<_ACEOF
4060 /* confdefs.h. */
4061 _ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h. */
4065 $ac_includes_default
4067 main ()
4069 #ifndef fread_unlocked
4070 char *p = (char *) fread_unlocked;
4071 #endif
4074 return 0;
4076 _ACEOF
4077 rm -f conftest.$ac_objext
4078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4079 (eval $ac_compile) 2>conftest.er1
4080 ac_status=$?
4081 grep -v '^ *+' conftest.er1 >conftest.err
4082 rm -f conftest.er1
4083 cat conftest.err >&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } &&
4086 { ac_try='test -z "$ac_c_werror_flag"
4087 || test ! -s conftest.err'
4088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089 (eval $ac_try) 2>&5
4090 ac_status=$?
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; } &&
4093 { ac_try='test -s conftest.$ac_objext'
4094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4095 (eval $ac_try) 2>&5
4096 ac_status=$?
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; }; then
4099 ac_cv_have_decl_fread_unlocked=yes
4100 else
4101 echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4104 ac_cv_have_decl_fread_unlocked=no
4106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4108 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
4109 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
4110 if test $ac_cv_have_decl_fread_unlocked = yes; then
4112 cat >>confdefs.h <<_ACEOF
4113 #define HAVE_DECL_FREAD_UNLOCKED 1
4114 _ACEOF
4117 else
4118 cat >>confdefs.h <<_ACEOF
4119 #define HAVE_DECL_FREAD_UNLOCKED 0
4120 _ACEOF
4124 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
4125 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
4126 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129 cat >conftest.$ac_ext <<_ACEOF
4130 /* confdefs.h. */
4131 _ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4135 $ac_includes_default
4137 main ()
4139 #ifndef fwrite_unlocked
4140 char *p = (char *) fwrite_unlocked;
4141 #endif
4144 return 0;
4146 _ACEOF
4147 rm -f conftest.$ac_objext
4148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4149 (eval $ac_compile) 2>conftest.er1
4150 ac_status=$?
4151 grep -v '^ *+' conftest.er1 >conftest.err
4152 rm -f conftest.er1
4153 cat conftest.err >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } &&
4156 { ac_try='test -z "$ac_c_werror_flag"
4157 || test ! -s conftest.err'
4158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159 (eval $ac_try) 2>&5
4160 ac_status=$?
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; } &&
4163 { ac_try='test -s conftest.$ac_objext'
4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165 (eval $ac_try) 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
4169 ac_cv_have_decl_fwrite_unlocked=yes
4170 else
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4174 ac_cv_have_decl_fwrite_unlocked=no
4176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4178 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
4179 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
4180 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
4182 cat >>confdefs.h <<_ACEOF
4183 #define HAVE_DECL_FWRITE_UNLOCKED 1
4184 _ACEOF
4187 else
4188 cat >>confdefs.h <<_ACEOF
4189 #define HAVE_DECL_FWRITE_UNLOCKED 0
4190 _ACEOF
4194 echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
4195 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
4196 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
4197 echo $ECHO_N "(cached) $ECHO_C" >&6
4198 else
4199 cat >conftest.$ac_ext <<_ACEOF
4200 /* confdefs.h. */
4201 _ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4205 $ac_includes_default
4207 main ()
4209 #ifndef getchar_unlocked
4210 char *p = (char *) getchar_unlocked;
4211 #endif
4214 return 0;
4216 _ACEOF
4217 rm -f conftest.$ac_objext
4218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4219 (eval $ac_compile) 2>conftest.er1
4220 ac_status=$?
4221 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -f conftest.er1
4223 cat conftest.err >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } &&
4226 { ac_try='test -z "$ac_c_werror_flag"
4227 || test ! -s conftest.err'
4228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 (eval $ac_try) 2>&5
4230 ac_status=$?
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; } &&
4233 { ac_try='test -s conftest.$ac_objext'
4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235 (eval $ac_try) 2>&5
4236 ac_status=$?
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; }; then
4239 ac_cv_have_decl_getchar_unlocked=yes
4240 else
4241 echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4244 ac_cv_have_decl_getchar_unlocked=no
4246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4248 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
4249 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
4250 if test $ac_cv_have_decl_getchar_unlocked = yes; then
4252 cat >>confdefs.h <<_ACEOF
4253 #define HAVE_DECL_GETCHAR_UNLOCKED 1
4254 _ACEOF
4257 else
4258 cat >>confdefs.h <<_ACEOF
4259 #define HAVE_DECL_GETCHAR_UNLOCKED 0
4260 _ACEOF
4264 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
4265 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
4266 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 else
4269 cat >conftest.$ac_ext <<_ACEOF
4270 /* confdefs.h. */
4271 _ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h. */
4275 $ac_includes_default
4277 main ()
4279 #ifndef getc_unlocked
4280 char *p = (char *) getc_unlocked;
4281 #endif
4284 return 0;
4286 _ACEOF
4287 rm -f conftest.$ac_objext
4288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4289 (eval $ac_compile) 2>conftest.er1
4290 ac_status=$?
4291 grep -v '^ *+' conftest.er1 >conftest.err
4292 rm -f conftest.er1
4293 cat conftest.err >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } &&
4296 { ac_try='test -z "$ac_c_werror_flag"
4297 || test ! -s conftest.err'
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 (eval $ac_try) 2>&5
4300 ac_status=$?
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; } &&
4303 { ac_try='test -s conftest.$ac_objext'
4304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305 (eval $ac_try) 2>&5
4306 ac_status=$?
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; }; then
4309 ac_cv_have_decl_getc_unlocked=yes
4310 else
4311 echo "$as_me: failed program was:" >&5
4312 sed 's/^/| /' conftest.$ac_ext >&5
4314 ac_cv_have_decl_getc_unlocked=no
4316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4318 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
4319 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
4320 if test $ac_cv_have_decl_getc_unlocked = yes; then
4322 cat >>confdefs.h <<_ACEOF
4323 #define HAVE_DECL_GETC_UNLOCKED 1
4324 _ACEOF
4327 else
4328 cat >>confdefs.h <<_ACEOF
4329 #define HAVE_DECL_GETC_UNLOCKED 0
4330 _ACEOF
4334 echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
4335 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
4336 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4338 else
4339 cat >conftest.$ac_ext <<_ACEOF
4340 /* confdefs.h. */
4341 _ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h. */
4345 $ac_includes_default
4347 main ()
4349 #ifndef putchar_unlocked
4350 char *p = (char *) putchar_unlocked;
4351 #endif
4354 return 0;
4356 _ACEOF
4357 rm -f conftest.$ac_objext
4358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4359 (eval $ac_compile) 2>conftest.er1
4360 ac_status=$?
4361 grep -v '^ *+' conftest.er1 >conftest.err
4362 rm -f conftest.er1
4363 cat conftest.err >&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); } &&
4366 { ac_try='test -z "$ac_c_werror_flag"
4367 || test ! -s conftest.err'
4368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369 (eval $ac_try) 2>&5
4370 ac_status=$?
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; } &&
4373 { ac_try='test -s conftest.$ac_objext'
4374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375 (eval $ac_try) 2>&5
4376 ac_status=$?
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; }; then
4379 ac_cv_have_decl_putchar_unlocked=yes
4380 else
4381 echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4384 ac_cv_have_decl_putchar_unlocked=no
4386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4388 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
4389 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
4390 if test $ac_cv_have_decl_putchar_unlocked = yes; then
4392 cat >>confdefs.h <<_ACEOF
4393 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
4394 _ACEOF
4397 else
4398 cat >>confdefs.h <<_ACEOF
4399 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
4400 _ACEOF
4404 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
4405 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
4406 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4408 else
4409 cat >conftest.$ac_ext <<_ACEOF
4410 /* confdefs.h. */
4411 _ACEOF
4412 cat confdefs.h >>conftest.$ac_ext
4413 cat >>conftest.$ac_ext <<_ACEOF
4414 /* end confdefs.h. */
4415 $ac_includes_default
4417 main ()
4419 #ifndef putc_unlocked
4420 char *p = (char *) putc_unlocked;
4421 #endif
4424 return 0;
4426 _ACEOF
4427 rm -f conftest.$ac_objext
4428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4429 (eval $ac_compile) 2>conftest.er1
4430 ac_status=$?
4431 grep -v '^ *+' conftest.er1 >conftest.err
4432 rm -f conftest.er1
4433 cat conftest.err >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } &&
4436 { ac_try='test -z "$ac_c_werror_flag"
4437 || test ! -s conftest.err'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 (eval $ac_try) 2>&5
4440 ac_status=$?
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; } &&
4443 { ac_try='test -s conftest.$ac_objext'
4444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445 (eval $ac_try) 2>&5
4446 ac_status=$?
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); }; }; then
4449 ac_cv_have_decl_putc_unlocked=yes
4450 else
4451 echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.$ac_ext >&5
4454 ac_cv_have_decl_putc_unlocked=no
4456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4458 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
4459 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
4460 if test $ac_cv_have_decl_putc_unlocked = yes; then
4462 cat >>confdefs.h <<_ACEOF
4463 #define HAVE_DECL_PUTC_UNLOCKED 1
4464 _ACEOF
4467 else
4468 cat >>confdefs.h <<_ACEOF
4469 #define HAVE_DECL_PUTC_UNLOCKED 0
4470 _ACEOF
4477 # Checks for typedefs, structures, and compiler characteristics.
4478 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4479 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4480 if test "${ac_cv_c_const+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483 cat >conftest.$ac_ext <<_ACEOF
4484 /* confdefs.h. */
4485 _ACEOF
4486 cat confdefs.h >>conftest.$ac_ext
4487 cat >>conftest.$ac_ext <<_ACEOF
4488 /* end confdefs.h. */
4491 main ()
4493 /* FIXME: Include the comments suggested by Paul. */
4494 #ifndef __cplusplus
4495 /* Ultrix mips cc rejects this. */
4496 typedef int charset[2];
4497 const charset x;
4498 /* SunOS 4.1.1 cc rejects this. */
4499 char const *const *ccp;
4500 char **p;
4501 /* NEC SVR4.0.2 mips cc rejects this. */
4502 struct point {int x, y;};
4503 static struct point const zero = {0,0};
4504 /* AIX XL C 1.02.0.0 rejects this.
4505 It does not let you subtract one const X* pointer from another in
4506 an arm of an if-expression whose if-part is not a constant
4507 expression */
4508 const char *g = "string";
4509 ccp = &g + (g ? g-g : 0);
4510 /* HPUX 7.0 cc rejects these. */
4511 ++ccp;
4512 p = (char**) ccp;
4513 ccp = (char const *const *) p;
4514 { /* SCO 3.2v4 cc rejects this. */
4515 char *t;
4516 char const *s = 0 ? (char *) 0 : (char const *) 0;
4518 *t++ = 0;
4520 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4521 int x[] = {25, 17};
4522 const int *foo = &x[0];
4523 ++foo;
4525 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4526 typedef const int *iptr;
4527 iptr p = 0;
4528 ++p;
4530 { /* AIX XL C 1.02.0.0 rejects this saying
4531 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4532 struct s { int j; const int *ap[3]; };
4533 struct s *b; b->j = 5;
4535 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4536 const int foo = 10;
4538 #endif
4541 return 0;
4543 _ACEOF
4544 rm -f conftest.$ac_objext
4545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4546 (eval $ac_compile) 2>conftest.er1
4547 ac_status=$?
4548 grep -v '^ *+' conftest.er1 >conftest.err
4549 rm -f conftest.er1
4550 cat conftest.err >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); } &&
4553 { ac_try='test -z "$ac_c_werror_flag"
4554 || test ! -s conftest.err'
4555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556 (eval $ac_try) 2>&5
4557 ac_status=$?
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; } &&
4560 { ac_try='test -s conftest.$ac_objext'
4561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562 (eval $ac_try) 2>&5
4563 ac_status=$?
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); }; }; then
4566 ac_cv_c_const=yes
4567 else
4568 echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.$ac_ext >&5
4571 ac_cv_c_const=no
4573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4575 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4576 echo "${ECHO_T}$ac_cv_c_const" >&6
4577 if test $ac_cv_c_const = no; then
4579 cat >>confdefs.h <<\_ACEOF
4580 #define const
4581 _ACEOF
4586 # Checks for library functions.
4588 if test "${ac_cv_header_sys_mman_h+set}" = set; then
4589 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
4590 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
4591 if test "${ac_cv_header_sys_mman_h+set}" = set; then
4592 echo $ECHO_N "(cached) $ECHO_C" >&6
4594 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
4595 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
4596 else
4597 # Is the header compilable?
4598 echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
4599 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6
4600 cat >conftest.$ac_ext <<_ACEOF
4601 /* confdefs.h. */
4602 _ACEOF
4603 cat confdefs.h >>conftest.$ac_ext
4604 cat >>conftest.$ac_ext <<_ACEOF
4605 /* end confdefs.h. */
4606 $ac_includes_default
4607 #include <sys/mman.h>
4608 _ACEOF
4609 rm -f conftest.$ac_objext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611 (eval $ac_compile) 2>conftest.er1
4612 ac_status=$?
4613 grep -v '^ *+' conftest.er1 >conftest.err
4614 rm -f conftest.er1
4615 cat conftest.err >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } &&
4618 { ac_try='test -z "$ac_c_werror_flag"
4619 || test ! -s conftest.err'
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621 (eval $ac_try) 2>&5
4622 ac_status=$?
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; } &&
4625 { ac_try='test -s conftest.$ac_objext'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 (eval $ac_try) 2>&5
4628 ac_status=$?
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; }; then
4631 ac_header_compiler=yes
4632 else
4633 echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4636 ac_header_compiler=no
4638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4639 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4640 echo "${ECHO_T}$ac_header_compiler" >&6
4642 # Is the header present?
4643 echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
4644 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6
4645 cat >conftest.$ac_ext <<_ACEOF
4646 /* confdefs.h. */
4647 _ACEOF
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h. */
4651 #include <sys/mman.h>
4652 _ACEOF
4653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4655 ac_status=$?
4656 grep -v '^ *+' conftest.er1 >conftest.err
4657 rm -f conftest.er1
4658 cat conftest.err >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } >/dev/null; then
4661 if test -s conftest.err; then
4662 ac_cpp_err=$ac_c_preproc_warn_flag
4663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4664 else
4665 ac_cpp_err=
4667 else
4668 ac_cpp_err=yes
4670 if test -z "$ac_cpp_err"; then
4671 ac_header_preproc=yes
4672 else
4673 echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4676 ac_header_preproc=no
4678 rm -f conftest.err conftest.$ac_ext
4679 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4680 echo "${ECHO_T}$ac_header_preproc" >&6
4682 # So? What about this header?
4683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4684 yes:no: )
4685 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
4686 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4687 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
4688 echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
4689 ac_header_preproc=yes
4691 no:yes:* )
4692 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
4693 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
4694 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
4695 echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
4696 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
4697 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
4698 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
4699 echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
4700 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
4701 echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
4702 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
4703 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
4705 cat <<\_ASBOX
4706 ## -------------------------------------- ##
4707 ## Report this to the fixincludes lists. ##
4708 ## -------------------------------------- ##
4709 _ASBOX
4711 sed "s/^/$as_me: WARNING: /" >&2
4713 esac
4714 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
4715 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
4716 if test "${ac_cv_header_sys_mman_h+set}" = set; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4718 else
4719 ac_cv_header_sys_mman_h=$ac_header_preproc
4721 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
4722 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
4725 if test $ac_cv_header_sys_mman_h = yes; then
4726 gcc_header_sys_mman_h=yes
4727 else
4728 gcc_header_sys_mman_h=no
4732 echo "$as_me:$LINENO: checking for mmap" >&5
4733 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
4734 if test "${ac_cv_func_mmap+set}" = set; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4736 else
4737 cat >conftest.$ac_ext <<_ACEOF
4738 /* confdefs.h. */
4739 _ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4743 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
4744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4745 #define mmap innocuous_mmap
4747 /* System header to define __stub macros and hopefully few prototypes,
4748 which can conflict with char mmap (); below.
4749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4750 <limits.h> exists even on freestanding compilers. */
4752 #ifdef __STDC__
4753 # include <limits.h>
4754 #else
4755 # include <assert.h>
4756 #endif
4758 #undef mmap
4760 /* Override any gcc2 internal prototype to avoid an error. */
4761 #ifdef __cplusplus
4762 extern "C"
4764 #endif
4765 /* We use char because int might match the return type of a gcc2
4766 builtin and then its argument prototype would still apply. */
4767 char mmap ();
4768 /* The GNU C library defines this for functions which it implements
4769 to always fail with ENOSYS. Some functions are actually named
4770 something starting with __ and the normal name is an alias. */
4771 #if defined (__stub_mmap) || defined (__stub___mmap)
4772 choke me
4773 #else
4774 char (*f) () = mmap;
4775 #endif
4776 #ifdef __cplusplus
4778 #endif
4781 main ()
4783 return f != mmap;
4785 return 0;
4787 _ACEOF
4788 rm -f conftest.$ac_objext conftest$ac_exeext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4790 (eval $ac_link) 2>conftest.er1
4791 ac_status=$?
4792 grep -v '^ *+' conftest.er1 >conftest.err
4793 rm -f conftest.er1
4794 cat conftest.err >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } &&
4797 { ac_try='test -z "$ac_c_werror_flag"
4798 || test ! -s conftest.err'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800 (eval $ac_try) 2>&5
4801 ac_status=$?
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; } &&
4804 { ac_try='test -s conftest$ac_exeext'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806 (eval $ac_try) 2>&5
4807 ac_status=$?
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; }; then
4810 ac_cv_func_mmap=yes
4811 else
4812 echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4815 ac_cv_func_mmap=no
4817 rm -f conftest.err conftest.$ac_objext \
4818 conftest$ac_exeext conftest.$ac_ext
4820 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
4821 echo "${ECHO_T}$ac_cv_func_mmap" >&6
4822 if test $ac_cv_func_mmap = yes; then
4823 gcc_func_mmap=yes
4824 else
4825 gcc_func_mmap=no
4828 if test "$gcc_header_sys_mman_h" != yes \
4829 || test "$gcc_func_mmap" != yes; then
4830 gcc_cv_func_mmap_file=no
4831 gcc_cv_func_mmap_dev_zero=no
4832 gcc_cv_func_mmap_anon=no
4833 else
4834 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
4835 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
4836 if test "${gcc_cv_func_mmap_file+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4838 else
4839 # Add a system to this blacklist if
4840 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
4841 # memory area containing the same data that you'd get if you applied
4842 # read() to the same fd. The only system known to have a problem here
4843 # is VMS, where text files have record structure.
4844 case "$host_os" in
4845 vms* | ultrix*)
4846 gcc_cv_func_mmap_file=no ;;
4848 gcc_cv_func_mmap_file=yes;;
4849 esac
4851 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
4852 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
4853 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
4854 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
4855 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 else
4858 # Add a system to this blacklist if it has mmap() but /dev/zero
4859 # does not exist, or if mmapping /dev/zero does not give anonymous
4860 # zeroed pages with both the following properties:
4861 # 1. If you map N consecutive pages in with one call, and then
4862 # unmap any subset of those pages, the pages that were not
4863 # explicitly unmapped remain accessible.
4864 # 2. If you map two adjacent blocks of memory and then unmap them
4865 # both at once, they must both go away.
4866 # Systems known to be in this category are Windows (all variants),
4867 # VMS, and Darwin.
4868 case "$host_os" in
4869 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
4870 gcc_cv_func_mmap_dev_zero=no ;;
4872 gcc_cv_func_mmap_dev_zero=yes;;
4873 esac
4875 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
4876 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
4878 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
4879 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
4880 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
4881 if test "${gcc_cv_decl_map_anon+set}" = set; then
4882 echo $ECHO_N "(cached) $ECHO_C" >&6
4883 else
4884 cat >conftest.$ac_ext <<_ACEOF
4885 /* confdefs.h. */
4886 _ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4890 #include <sys/types.h>
4891 #include <sys/mman.h>
4892 #include <unistd.h>
4894 #ifndef MAP_ANONYMOUS
4895 #define MAP_ANONYMOUS MAP_ANON
4896 #endif
4899 main ()
4901 int n = MAP_ANONYMOUS;
4903 return 0;
4905 _ACEOF
4906 rm -f conftest.$ac_objext
4907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4908 (eval $ac_compile) 2>conftest.er1
4909 ac_status=$?
4910 grep -v '^ *+' conftest.er1 >conftest.err
4911 rm -f conftest.er1
4912 cat conftest.err >&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); } &&
4915 { ac_try='test -z "$ac_c_werror_flag"
4916 || test ! -s conftest.err'
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 (eval $ac_try) 2>&5
4919 ac_status=$?
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; } &&
4922 { ac_try='test -s conftest.$ac_objext'
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924 (eval $ac_try) 2>&5
4925 ac_status=$?
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; }; then
4928 gcc_cv_decl_map_anon=yes
4929 else
4930 echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4933 gcc_cv_decl_map_anon=no
4935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4937 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
4938 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
4940 if test $gcc_cv_decl_map_anon = no; then
4941 gcc_cv_func_mmap_anon=no
4942 else
4943 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
4944 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
4945 if test "${gcc_cv_func_mmap_anon+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4947 else
4948 # Add a system to this blacklist if it has mmap() and MAP_ANON or
4949 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
4950 # doesn't give anonymous zeroed pages with the same properties listed
4951 # above for use of /dev/zero.
4952 # Systems known to be in this category are Windows, VMS, and SCO Unix.
4953 case "$host_os" in
4954 vms* | cygwin* | pe | mingw* | sco* | udk* )
4955 gcc_cv_func_mmap_anon=no ;;
4957 gcc_cv_func_mmap_anon=yes;;
4958 esac
4960 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
4961 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
4965 if test $gcc_cv_func_mmap_file = yes; then
4967 cat >>confdefs.h <<\_ACEOF
4968 #define HAVE_MMAP_FILE 1
4969 _ACEOF
4972 if test $gcc_cv_func_mmap_dev_zero = yes; then
4974 cat >>confdefs.h <<\_ACEOF
4975 #define HAVE_MMAP_DEV_ZERO 1
4976 _ACEOF
4979 if test $gcc_cv_func_mmap_anon = yes; then
4981 cat >>confdefs.h <<\_ACEOF
4982 #define HAVE_MMAP_ANON 1
4983 _ACEOF
4988 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4989 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4990 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4991 if test "${enable_maintainer_mode+set}" = set; then
4992 enableval="$enable_maintainer_mode"
4993 USE_MAINTAINER_MODE=$enableval
4994 else
4995 USE_MAINTAINER_MODE=no
4997 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4998 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4999 if test "$USE_MAINTAINER_MODE" = yes; then
5000 MAINT=
5001 else
5002 MAINT='#'
5006 ac_config_headers="$ac_config_headers config.h"
5008 ac_config_files="$ac_config_files Makefile mkheaders.almost:mkheaders.in"
5010 cat >confcache <<\_ACEOF
5011 # This file is a shell script that caches the results of configure
5012 # tests run on this system so they can be shared between configure
5013 # scripts and configure runs, see configure's option --config-cache.
5014 # It is not useful on other systems. If it contains results you don't
5015 # want to keep, you may remove or edit it.
5017 # config.status only pays attention to the cache file if you give it
5018 # the --recheck option to rerun configure.
5020 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5021 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5022 # following values.
5024 _ACEOF
5026 # The following way of writing the cache mishandles newlines in values,
5027 # but we know of no workaround that is simple, portable, and efficient.
5028 # So, don't put newlines in cache variables' values.
5029 # Ultrix sh set writes to stderr and can't be redirected directly,
5030 # and sets the high bit in the cache file unless we assign to the vars.
5032 (set) 2>&1 |
5033 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5034 *ac_space=\ *)
5035 # `set' does not quote correctly, so add quotes (double-quote
5036 # substitution turns \\\\ into \\, and sed turns \\ into \).
5037 sed -n \
5038 "s/'/'\\\\''/g;
5039 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5042 # `set' quotes correctly as required by POSIX, so do not add quotes.
5043 sed -n \
5044 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5046 esac;
5048 sed '
5049 t clear
5050 : clear
5051 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5052 t end
5053 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5054 : end' >>confcache
5055 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5056 if test -w $cache_file; then
5057 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5058 cat confcache >$cache_file
5059 else
5060 echo "not updating unwritable cache $cache_file"
5063 rm -f confcache
5065 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5066 # Let make expand exec_prefix.
5067 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5069 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5070 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5071 # trailing colons and then remove the whole line if VPATH becomes empty
5072 # (actually we leave an empty line to preserve line numbers).
5073 if test "x$srcdir" = x.; then
5074 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5075 s/:*\$(srcdir):*/:/;
5076 s/:*\${srcdir}:*/:/;
5077 s/:*@srcdir@:*/:/;
5078 s/^\([^=]*=[ ]*\):*/\1/;
5079 s/:*$//;
5080 s/^[^=]*=[ ]*$//;
5084 DEFS=-DHAVE_CONFIG_H
5086 ac_libobjs=
5087 ac_ltlibobjs=
5088 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5089 # 1. Remove the extension, and $U if already installed.
5090 ac_i=`echo "$ac_i" |
5091 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5092 # 2. Add them.
5093 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5094 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5095 done
5096 LIBOBJS=$ac_libobjs
5098 LTLIBOBJS=$ac_ltlibobjs
5102 : ${CONFIG_STATUS=./config.status}
5103 ac_clean_files_save=$ac_clean_files
5104 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5105 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5106 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5107 cat >$CONFIG_STATUS <<_ACEOF
5108 #! $SHELL
5109 # Generated by $as_me.
5110 # Run this file to recreate the current configuration.
5111 # Compiler output produced by configure, useful for debugging
5112 # configure, is in config.log if it exists.
5114 debug=false
5115 ac_cs_recheck=false
5116 ac_cs_silent=false
5117 SHELL=\${CONFIG_SHELL-$SHELL}
5118 _ACEOF
5120 cat >>$CONFIG_STATUS <<\_ACEOF
5121 ## --------------------- ##
5122 ## M4sh Initialization. ##
5123 ## --------------------- ##
5125 # Be Bourne compatible
5126 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5127 emulate sh
5128 NULLCMD=:
5129 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5130 # is contrary to our usage. Disable this feature.
5131 alias -g '${1+"$@"}'='"$@"'
5132 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5133 set -o posix
5135 DUALCASE=1; export DUALCASE # for MKS sh
5137 # Support unset when possible.
5138 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5139 as_unset=unset
5140 else
5141 as_unset=false
5145 # Work around bugs in pre-3.0 UWIN ksh.
5146 $as_unset ENV MAIL MAILPATH
5147 PS1='$ '
5148 PS2='> '
5149 PS4='+ '
5151 # NLS nuisances.
5152 for as_var in \
5153 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5154 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5155 LC_TELEPHONE LC_TIME
5157 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5158 eval $as_var=C; export $as_var
5159 else
5160 $as_unset $as_var
5162 done
5164 # Required to use basename.
5165 if expr a : '\(a\)' >/dev/null 2>&1; then
5166 as_expr=expr
5167 else
5168 as_expr=false
5171 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5172 as_basename=basename
5173 else
5174 as_basename=false
5178 # Name of the executable.
5179 as_me=`$as_basename "$0" ||
5180 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5181 X"$0" : 'X\(//\)$' \| \
5182 X"$0" : 'X\(/\)$' \| \
5183 . : '\(.\)' 2>/dev/null ||
5184 echo X/"$0" |
5185 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5186 /^X\/\(\/\/\)$/{ s//\1/; q; }
5187 /^X\/\(\/\).*/{ s//\1/; q; }
5188 s/.*/./; q'`
5191 # PATH needs CR, and LINENO needs CR and PATH.
5192 # Avoid depending upon Character Ranges.
5193 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5194 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5195 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5196 as_cr_digits='0123456789'
5197 as_cr_alnum=$as_cr_Letters$as_cr_digits
5199 # The user is always right.
5200 if test "${PATH_SEPARATOR+set}" != set; then
5201 echo "#! /bin/sh" >conf$$.sh
5202 echo "exit 0" >>conf$$.sh
5203 chmod +x conf$$.sh
5204 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5205 PATH_SEPARATOR=';'
5206 else
5207 PATH_SEPARATOR=:
5209 rm -f conf$$.sh
5213 as_lineno_1=$LINENO
5214 as_lineno_2=$LINENO
5215 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5216 test "x$as_lineno_1" != "x$as_lineno_2" &&
5217 test "x$as_lineno_3" = "x$as_lineno_2" || {
5218 # Find who we are. Look in the path if we contain no path at all
5219 # relative or not.
5220 case $0 in
5221 *[\\/]* ) as_myself=$0 ;;
5222 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 for as_dir in $PATH
5225 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=.
5227 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5228 done
5231 esac
5232 # We did not find ourselves, most probably we were run as `sh COMMAND'
5233 # in which case we are not to be found in the path.
5234 if test "x$as_myself" = x; then
5235 as_myself=$0
5237 if test ! -f "$as_myself"; then
5238 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5239 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5240 { (exit 1); exit 1; }; }
5242 case $CONFIG_SHELL in
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for as_base in sh bash ksh sh5; do
5250 case $as_dir in
5252 if ("$as_dir/$as_base" -c '
5253 as_lineno_1=$LINENO
5254 as_lineno_2=$LINENO
5255 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5256 test "x$as_lineno_1" != "x$as_lineno_2" &&
5257 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5258 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5259 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5260 CONFIG_SHELL=$as_dir/$as_base
5261 export CONFIG_SHELL
5262 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5263 fi;;
5264 esac
5265 done
5266 done
5268 esac
5270 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5271 # uniformly replaced by the line number. The first 'sed' inserts a
5272 # line-number line before each line; the second 'sed' does the real
5273 # work. The second script uses 'N' to pair each line-number line
5274 # with the numbered line, and appends trailing '-' during
5275 # substitution so that $LINENO is not a special case at line end.
5276 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5277 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5278 sed '=' <$as_myself |
5279 sed '
5281 s,$,-,
5282 : loop
5283 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5284 t loop
5285 s,-$,,
5286 s,^['$as_cr_digits']*\n,,
5287 ' >$as_me.lineno &&
5288 chmod +x $as_me.lineno ||
5289 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5290 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5291 { (exit 1); exit 1; }; }
5293 # Don't try to exec as it changes $[0], causing all sort of problems
5294 # (the dirname of $[0] is not the place where we might find the
5295 # original and so on. Autoconf is especially sensible to this).
5296 . ./$as_me.lineno
5297 # Exit status is that of the last command.
5298 exit
5302 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5303 *c*,-n*) ECHO_N= ECHO_C='
5304 ' ECHO_T=' ' ;;
5305 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5306 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5307 esac
5309 if expr a : '\(a\)' >/dev/null 2>&1; then
5310 as_expr=expr
5311 else
5312 as_expr=false
5315 rm -f conf$$ conf$$.exe conf$$.file
5316 echo >conf$$.file
5317 if ln -s conf$$.file conf$$ 2>/dev/null; then
5318 # We could just check for DJGPP; but this test a) works b) is more generic
5319 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5320 if test -f conf$$.exe; then
5321 # Don't use ln at all; we don't have any links
5322 as_ln_s='cp -p'
5323 else
5324 as_ln_s='ln -s'
5326 elif ln conf$$.file conf$$ 2>/dev/null; then
5327 as_ln_s=ln
5328 else
5329 as_ln_s='cp -p'
5331 rm -f conf$$ conf$$.exe conf$$.file
5333 if mkdir -p . 2>/dev/null; then
5334 as_mkdir_p=:
5335 else
5336 test -d ./-p && rmdir ./-p
5337 as_mkdir_p=false
5340 as_executable_p="test -f"
5342 # Sed expression to map a string onto a valid CPP name.
5343 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5345 # Sed expression to map a string onto a valid variable name.
5346 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5349 # IFS
5350 # We need space, tab and new line, in precisely that order.
5351 as_nl='
5353 IFS=" $as_nl"
5355 # CDPATH.
5356 $as_unset CDPATH
5358 exec 6>&1
5360 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5361 # report actual input values of CONFIG_FILES etc. instead of their
5362 # values after options handling. Logging --version etc. is OK.
5363 exec 5>>config.log
5365 echo
5366 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5367 ## Running $as_me. ##
5368 _ASBOX
5369 } >&5
5370 cat >&5 <<_CSEOF
5372 This file was extended by fixincludes $as_me , which was
5373 generated by GNU Autoconf 2.59. Invocation command line was
5375 CONFIG_FILES = $CONFIG_FILES
5376 CONFIG_HEADERS = $CONFIG_HEADERS
5377 CONFIG_LINKS = $CONFIG_LINKS
5378 CONFIG_COMMANDS = $CONFIG_COMMANDS
5379 $ $0 $@
5381 _CSEOF
5382 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5383 echo >&5
5384 _ACEOF
5386 # Files that config.status was made for.
5387 if test -n "$ac_config_files"; then
5388 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5391 if test -n "$ac_config_headers"; then
5392 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5395 if test -n "$ac_config_links"; then
5396 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5399 if test -n "$ac_config_commands"; then
5400 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5403 cat >>$CONFIG_STATUS <<\_ACEOF
5405 ac_cs_usage="\
5406 \`$as_me' instantiates files from templates according to the
5407 current configuration.
5409 Usage: $0 [OPTIONS] [FILE]...
5411 -h, --help print this help, then exit
5412 -V, --version print version number, then exit
5413 -q, --quiet do not print progress messages
5414 -d, --debug don't remove temporary files
5415 --recheck update $as_me by reconfiguring in the same conditions
5416 --file=FILE[:TEMPLATE]
5417 instantiate the configuration file FILE
5418 --header=FILE[:TEMPLATE]
5419 instantiate the configuration header FILE
5421 Configuration files:
5422 $config_files
5424 Configuration headers:
5425 $config_headers
5427 Report bugs to <bug-autoconf@gnu.org>."
5428 _ACEOF
5430 cat >>$CONFIG_STATUS <<_ACEOF
5431 ac_cs_version="\\
5432 fixincludes config.status
5433 configured by $0, generated by GNU Autoconf 2.59,
5434 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5436 Copyright (C) 2003 Free Software Foundation, Inc.
5437 This config.status script is free software; the Free Software Foundation
5438 gives unlimited permission to copy, distribute and modify it."
5439 srcdir=$srcdir
5440 _ACEOF
5442 cat >>$CONFIG_STATUS <<\_ACEOF
5443 # If no file are specified by the user, then we need to provide default
5444 # value. By we need to know if files were specified by the user.
5445 ac_need_defaults=:
5446 while test $# != 0
5448 case $1 in
5449 --*=*)
5450 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5451 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5452 ac_shift=:
5455 ac_option=$1
5456 ac_optarg=$2
5457 ac_shift=shift
5459 *) # This is not an option, so the user has probably given explicit
5460 # arguments.
5461 ac_option=$1
5462 ac_need_defaults=false;;
5463 esac
5465 case $ac_option in
5466 # Handling of the options.
5467 _ACEOF
5468 cat >>$CONFIG_STATUS <<\_ACEOF
5469 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5470 ac_cs_recheck=: ;;
5471 --version | --vers* | -V )
5472 echo "$ac_cs_version"; exit 0 ;;
5473 --he | --h)
5474 # Conflict between --help and --header
5475 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5476 Try \`$0 --help' for more information." >&5
5477 echo "$as_me: error: ambiguous option: $1
5478 Try \`$0 --help' for more information." >&2;}
5479 { (exit 1); exit 1; }; };;
5480 --help | --hel | -h )
5481 echo "$ac_cs_usage"; exit 0 ;;
5482 --debug | --d* | -d )
5483 debug=: ;;
5484 --file | --fil | --fi | --f )
5485 $ac_shift
5486 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5487 ac_need_defaults=false;;
5488 --header | --heade | --head | --hea )
5489 $ac_shift
5490 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5491 ac_need_defaults=false;;
5492 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5493 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5494 ac_cs_silent=: ;;
5496 # This is an error.
5497 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5498 Try \`$0 --help' for more information." >&5
5499 echo "$as_me: error: unrecognized option: $1
5500 Try \`$0 --help' for more information." >&2;}
5501 { (exit 1); exit 1; }; } ;;
5503 *) ac_config_targets="$ac_config_targets $1" ;;
5505 esac
5506 shift
5507 done
5509 ac_configure_extra_args=
5511 if $ac_cs_silent; then
5512 exec 6>/dev/null
5513 ac_configure_extra_args="$ac_configure_extra_args --silent"
5516 _ACEOF
5517 cat >>$CONFIG_STATUS <<_ACEOF
5518 if \$ac_cs_recheck; then
5519 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5520 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5523 _ACEOF
5529 cat >>$CONFIG_STATUS <<\_ACEOF
5530 for ac_config_target in $ac_config_targets
5532 case "$ac_config_target" in
5533 # Handling of arguments.
5534 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5535 "mkheaders.almost" ) CONFIG_FILES="$CONFIG_FILES mkheaders.almost:mkheaders.in" ;;
5536 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5537 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5538 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5539 { (exit 1); exit 1; }; };;
5540 esac
5541 done
5543 # If the user did not use the arguments to specify the items to instantiate,
5544 # then the envvar interface is used. Set only those that are not.
5545 # We use the long form for the default assignment because of an extremely
5546 # bizarre bug on SunOS 4.1.3.
5547 if $ac_need_defaults; then
5548 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5549 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5552 # Have a temporary directory for convenience. Make it in the build tree
5553 # simply because there is no reason to put it here, and in addition,
5554 # creating and moving files from /tmp can sometimes cause problems.
5555 # Create a temporary directory, and hook for its removal unless debugging.
5556 $debug ||
5558 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5559 trap '{ (exit 1); exit 1; }' 1 2 13 15
5562 # Create a (secure) tmp directory for tmp files.
5565 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5566 test -n "$tmp" && test -d "$tmp"
5567 } ||
5569 tmp=./confstat$$-$RANDOM
5570 (umask 077 && mkdir $tmp)
5571 } ||
5573 echo "$me: cannot create a temporary directory in ." >&2
5574 { (exit 1); exit 1; }
5577 _ACEOF
5579 cat >>$CONFIG_STATUS <<_ACEOF
5582 # CONFIG_FILES section.
5585 # No need to generate the scripts if there are no CONFIG_FILES.
5586 # This happens for instance when ./config.status config.h
5587 if test -n "\$CONFIG_FILES"; then
5588 # Protect against being on the right side of a sed subst in config.status.
5589 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5590 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5591 s,@SHELL@,$SHELL,;t t
5592 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5593 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5594 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5595 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5596 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5597 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5598 s,@exec_prefix@,$exec_prefix,;t t
5599 s,@prefix@,$prefix,;t t
5600 s,@program_transform_name@,$program_transform_name,;t t
5601 s,@bindir@,$bindir,;t t
5602 s,@sbindir@,$sbindir,;t t
5603 s,@libexecdir@,$libexecdir,;t t
5604 s,@datadir@,$datadir,;t t
5605 s,@sysconfdir@,$sysconfdir,;t t
5606 s,@sharedstatedir@,$sharedstatedir,;t t
5607 s,@localstatedir@,$localstatedir,;t t
5608 s,@libdir@,$libdir,;t t
5609 s,@includedir@,$includedir,;t t
5610 s,@oldincludedir@,$oldincludedir,;t t
5611 s,@infodir@,$infodir,;t t
5612 s,@mandir@,$mandir,;t t
5613 s,@build_alias@,$build_alias,;t t
5614 s,@host_alias@,$host_alias,;t t
5615 s,@target_alias@,$target_alias,;t t
5616 s,@DEFS@,$DEFS,;t t
5617 s,@ECHO_C@,$ECHO_C,;t t
5618 s,@ECHO_N@,$ECHO_N,;t t
5619 s,@ECHO_T@,$ECHO_T,;t t
5620 s,@LIBS@,$LIBS,;t t
5621 s,@build@,$build,;t t
5622 s,@build_cpu@,$build_cpu,;t t
5623 s,@build_vendor@,$build_vendor,;t t
5624 s,@build_os@,$build_os,;t t
5625 s,@host@,$host,;t t
5626 s,@host_cpu@,$host_cpu,;t t
5627 s,@host_vendor@,$host_vendor,;t t
5628 s,@host_os@,$host_os,;t t
5629 s,@target@,$target,;t t
5630 s,@target_cpu@,$target_cpu,;t t
5631 s,@target_vendor@,$target_vendor,;t t
5632 s,@target_os@,$target_os,;t t
5633 s,@CC@,$CC,;t t
5634 s,@CFLAGS@,$CFLAGS,;t t
5635 s,@LDFLAGS@,$LDFLAGS,;t t
5636 s,@CPPFLAGS@,$CPPFLAGS,;t t
5637 s,@ac_ct_CC@,$ac_ct_CC,;t t
5638 s,@EXEEXT@,$EXEEXT,;t t
5639 s,@OBJEXT@,$OBJEXT,;t t
5640 s,@target_noncanonical@,$target_noncanonical,;t t
5641 s,@TARGET@,$TARGET,;t t
5642 s,@CPP@,$CPP,;t t
5643 s,@EGREP@,$EGREP,;t t
5644 s,@MAINT@,$MAINT,;t t
5645 s,@LIBOBJS@,$LIBOBJS,;t t
5646 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5647 CEOF
5649 _ACEOF
5651 cat >>$CONFIG_STATUS <<\_ACEOF
5652 # Split the substitutions into bite-sized pieces for seds with
5653 # small command number limits, like on Digital OSF/1 and HP-UX.
5654 ac_max_sed_lines=48
5655 ac_sed_frag=1 # Number of current file.
5656 ac_beg=1 # First line for current file.
5657 ac_end=$ac_max_sed_lines # Line after last line for current file.
5658 ac_more_lines=:
5659 ac_sed_cmds=
5660 while $ac_more_lines; do
5661 if test $ac_beg -gt 1; then
5662 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5663 else
5664 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5666 if test ! -s $tmp/subs.frag; then
5667 ac_more_lines=false
5668 else
5669 # The purpose of the label and of the branching condition is to
5670 # speed up the sed processing (if there are no `@' at all, there
5671 # is no need to browse any of the substitutions).
5672 # These are the two extra sed commands mentioned above.
5673 (echo ':t
5674 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5675 if test -z "$ac_sed_cmds"; then
5676 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5677 else
5678 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5680 ac_sed_frag=`expr $ac_sed_frag + 1`
5681 ac_beg=$ac_end
5682 ac_end=`expr $ac_end + $ac_max_sed_lines`
5684 done
5685 if test -z "$ac_sed_cmds"; then
5686 ac_sed_cmds=cat
5688 fi # test -n "$CONFIG_FILES"
5690 _ACEOF
5691 cat >>$CONFIG_STATUS <<\_ACEOF
5692 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5693 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5694 case $ac_file in
5695 - | *:- | *:-:* ) # input from stdin
5696 cat >$tmp/stdin
5697 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5698 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5699 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5700 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5701 * ) ac_file_in=$ac_file.in ;;
5702 esac
5704 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5705 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5706 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5707 X"$ac_file" : 'X\(//\)[^/]' \| \
5708 X"$ac_file" : 'X\(//\)$' \| \
5709 X"$ac_file" : 'X\(/\)' \| \
5710 . : '\(.\)' 2>/dev/null ||
5711 echo X"$ac_file" |
5712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5713 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5714 /^X\(\/\/\)$/{ s//\1/; q; }
5715 /^X\(\/\).*/{ s//\1/; q; }
5716 s/.*/./; q'`
5717 { if $as_mkdir_p; then
5718 mkdir -p "$ac_dir"
5719 else
5720 as_dir="$ac_dir"
5721 as_dirs=
5722 while test ! -d "$as_dir"; do
5723 as_dirs="$as_dir $as_dirs"
5724 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5725 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5726 X"$as_dir" : 'X\(//\)[^/]' \| \
5727 X"$as_dir" : 'X\(//\)$' \| \
5728 X"$as_dir" : 'X\(/\)' \| \
5729 . : '\(.\)' 2>/dev/null ||
5730 echo X"$as_dir" |
5731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5732 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5733 /^X\(\/\/\)$/{ s//\1/; q; }
5734 /^X\(\/\).*/{ s//\1/; q; }
5735 s/.*/./; q'`
5736 done
5737 test ! -n "$as_dirs" || mkdir $as_dirs
5738 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5739 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5740 { (exit 1); exit 1; }; }; }
5742 ac_builddir=.
5744 if test "$ac_dir" != .; then
5745 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5746 # A "../" for each directory in $ac_dir_suffix.
5747 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5748 else
5749 ac_dir_suffix= ac_top_builddir=
5752 case $srcdir in
5753 .) # No --srcdir option. We are building in place.
5754 ac_srcdir=.
5755 if test -z "$ac_top_builddir"; then
5756 ac_top_srcdir=.
5757 else
5758 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5759 fi ;;
5760 [\\/]* | ?:[\\/]* ) # Absolute path.
5761 ac_srcdir=$srcdir$ac_dir_suffix;
5762 ac_top_srcdir=$srcdir ;;
5763 *) # Relative path.
5764 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5765 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5766 esac
5768 # Do not use `cd foo && pwd` to compute absolute paths, because
5769 # the directories may not exist.
5770 case `pwd` in
5771 .) ac_abs_builddir="$ac_dir";;
5773 case "$ac_dir" in
5774 .) ac_abs_builddir=`pwd`;;
5775 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5776 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5777 esac;;
5778 esac
5779 case $ac_abs_builddir in
5780 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5782 case ${ac_top_builddir}. in
5783 .) ac_abs_top_builddir=$ac_abs_builddir;;
5784 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5785 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5786 esac;;
5787 esac
5788 case $ac_abs_builddir in
5789 .) ac_abs_srcdir=$ac_srcdir;;
5791 case $ac_srcdir in
5792 .) ac_abs_srcdir=$ac_abs_builddir;;
5793 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5794 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5795 esac;;
5796 esac
5797 case $ac_abs_builddir in
5798 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5800 case $ac_top_srcdir in
5801 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5802 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5803 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5804 esac;;
5805 esac
5809 if test x"$ac_file" != x-; then
5810 { echo "$as_me:$LINENO: creating $ac_file" >&5
5811 echo "$as_me: creating $ac_file" >&6;}
5812 rm -f "$ac_file"
5814 # Let's still pretend it is `configure' which instantiates (i.e., don't
5815 # use $as_me), people would be surprised to read:
5816 # /* config.h. Generated by config.status. */
5817 if test x"$ac_file" = x-; then
5818 configure_input=
5819 else
5820 configure_input="$ac_file. "
5822 configure_input=$configure_input"Generated from `echo $ac_file_in |
5823 sed 's,.*/,,'` by configure."
5825 # First look for the input files in the build tree, otherwise in the
5826 # src tree.
5827 ac_file_inputs=`IFS=:
5828 for f in $ac_file_in; do
5829 case $f in
5830 -) echo $tmp/stdin ;;
5831 [\\/$]*)
5832 # Absolute (can't be DOS-style, as IFS=:)
5833 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5834 echo "$as_me: error: cannot find input file: $f" >&2;}
5835 { (exit 1); exit 1; }; }
5836 echo "$f";;
5837 *) # Relative
5838 if test -f "$f"; then
5839 # Build tree
5840 echo "$f"
5841 elif test -f "$srcdir/$f"; then
5842 # Source tree
5843 echo "$srcdir/$f"
5844 else
5845 # /dev/null tree
5846 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5847 echo "$as_me: error: cannot find input file: $f" >&2;}
5848 { (exit 1); exit 1; }; }
5849 fi;;
5850 esac
5851 done` || { (exit 1); exit 1; }
5852 _ACEOF
5853 cat >>$CONFIG_STATUS <<_ACEOF
5854 sed "$ac_vpsub
5855 $extrasub
5856 _ACEOF
5857 cat >>$CONFIG_STATUS <<\_ACEOF
5859 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5860 s,@configure_input@,$configure_input,;t t
5861 s,@srcdir@,$ac_srcdir,;t t
5862 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5863 s,@top_srcdir@,$ac_top_srcdir,;t t
5864 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5865 s,@builddir@,$ac_builddir,;t t
5866 s,@abs_builddir@,$ac_abs_builddir,;t t
5867 s,@top_builddir@,$ac_top_builddir,;t t
5868 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5869 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5870 rm -f $tmp/stdin
5871 if test x"$ac_file" != x-; then
5872 mv $tmp/out $ac_file
5873 else
5874 cat $tmp/out
5875 rm -f $tmp/out
5878 done
5879 _ACEOF
5880 cat >>$CONFIG_STATUS <<\_ACEOF
5883 # CONFIG_HEADER section.
5886 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5887 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5889 # ac_d sets the value in "#define NAME VALUE" lines.
5890 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5891 ac_dB='[ ].*$,\1#\2'
5892 ac_dC=' '
5893 ac_dD=',;t'
5894 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5895 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5896 ac_uB='$,\1#\2define\3'
5897 ac_uC=' '
5898 ac_uD=',;t'
5900 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5901 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5902 case $ac_file in
5903 - | *:- | *:-:* ) # input from stdin
5904 cat >$tmp/stdin
5905 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5906 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5907 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5908 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5909 * ) ac_file_in=$ac_file.in ;;
5910 esac
5912 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5913 echo "$as_me: creating $ac_file" >&6;}
5915 # First look for the input files in the build tree, otherwise in the
5916 # src tree.
5917 ac_file_inputs=`IFS=:
5918 for f in $ac_file_in; do
5919 case $f in
5920 -) echo $tmp/stdin ;;
5921 [\\/$]*)
5922 # Absolute (can't be DOS-style, as IFS=:)
5923 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5924 echo "$as_me: error: cannot find input file: $f" >&2;}
5925 { (exit 1); exit 1; }; }
5926 # Do quote $f, to prevent DOS paths from being IFS'd.
5927 echo "$f";;
5928 *) # Relative
5929 if test -f "$f"; then
5930 # Build tree
5931 echo "$f"
5932 elif test -f "$srcdir/$f"; then
5933 # Source tree
5934 echo "$srcdir/$f"
5935 else
5936 # /dev/null tree
5937 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5938 echo "$as_me: error: cannot find input file: $f" >&2;}
5939 { (exit 1); exit 1; }; }
5940 fi;;
5941 esac
5942 done` || { (exit 1); exit 1; }
5943 # Remove the trailing spaces.
5944 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5946 _ACEOF
5948 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5949 # `conftest.undefs', that substitutes the proper values into
5950 # config.h.in to produce config.h. The first handles `#define'
5951 # templates, and the second `#undef' templates.
5952 # And first: Protect against being on the right side of a sed subst in
5953 # config.status. Protect against being in an unquoted here document
5954 # in config.status.
5955 rm -f conftest.defines conftest.undefs
5956 # Using a here document instead of a string reduces the quoting nightmare.
5957 # Putting comments in sed scripts is not portable.
5959 # `end' is used to avoid that the second main sed command (meant for
5960 # 0-ary CPP macros) applies to n-ary macro definitions.
5961 # See the Autoconf documentation for `clear'.
5962 cat >confdef2sed.sed <<\_ACEOF
5963 s/[\\&,]/\\&/g
5964 s,[\\$`],\\&,g
5965 t clear
5966 : clear
5967 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5968 t end
5969 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5970 : end
5971 _ACEOF
5972 # If some macros were called several times there might be several times
5973 # the same #defines, which is useless. Nevertheless, we may not want to
5974 # sort them, since we want the *last* AC-DEFINE to be honored.
5975 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5976 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5977 rm -f confdef2sed.sed
5979 # This sed command replaces #undef with comments. This is necessary, for
5980 # example, in the case of _POSIX_SOURCE, which is predefined and required
5981 # on some systems where configure will not decide to define it.
5982 cat >>conftest.undefs <<\_ACEOF
5983 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5984 _ACEOF
5986 # Break up conftest.defines because some shells have a limit on the size
5987 # of here documents, and old seds have small limits too (100 cmds).
5988 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5989 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5990 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5991 echo ' :' >>$CONFIG_STATUS
5992 rm -f conftest.tail
5993 while grep . conftest.defines >/dev/null
5995 # Write a limited-size here document to $tmp/defines.sed.
5996 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5997 # Speed up: don't consider the non `#define' lines.
5998 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5999 # Work around the forget-to-reset-the-flag bug.
6000 echo 't clr' >>$CONFIG_STATUS
6001 echo ': clr' >>$CONFIG_STATUS
6002 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6003 echo 'CEOF
6004 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6005 rm -f $tmp/in
6006 mv $tmp/out $tmp/in
6007 ' >>$CONFIG_STATUS
6008 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6009 rm -f conftest.defines
6010 mv conftest.tail conftest.defines
6011 done
6012 rm -f conftest.defines
6013 echo ' fi # grep' >>$CONFIG_STATUS
6014 echo >>$CONFIG_STATUS
6016 # Break up conftest.undefs because some shells have a limit on the size
6017 # of here documents, and old seds have small limits too (100 cmds).
6018 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6019 rm -f conftest.tail
6020 while grep . conftest.undefs >/dev/null
6022 # Write a limited-size here document to $tmp/undefs.sed.
6023 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6024 # Speed up: don't consider the non `#undef'
6025 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6026 # Work around the forget-to-reset-the-flag bug.
6027 echo 't clr' >>$CONFIG_STATUS
6028 echo ': clr' >>$CONFIG_STATUS
6029 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6030 echo 'CEOF
6031 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6032 rm -f $tmp/in
6033 mv $tmp/out $tmp/in
6034 ' >>$CONFIG_STATUS
6035 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6036 rm -f conftest.undefs
6037 mv conftest.tail conftest.undefs
6038 done
6039 rm -f conftest.undefs
6041 cat >>$CONFIG_STATUS <<\_ACEOF
6042 # Let's still pretend it is `configure' which instantiates (i.e., don't
6043 # use $as_me), people would be surprised to read:
6044 # /* config.h. Generated by config.status. */
6045 if test x"$ac_file" = x-; then
6046 echo "/* Generated by configure. */" >$tmp/config.h
6047 else
6048 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6050 cat $tmp/in >>$tmp/config.h
6051 rm -f $tmp/in
6052 if test x"$ac_file" != x-; then
6053 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6054 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6055 echo "$as_me: $ac_file is unchanged" >&6;}
6056 else
6057 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6058 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6059 X"$ac_file" : 'X\(//\)[^/]' \| \
6060 X"$ac_file" : 'X\(//\)$' \| \
6061 X"$ac_file" : 'X\(/\)' \| \
6062 . : '\(.\)' 2>/dev/null ||
6063 echo X"$ac_file" |
6064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6065 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6066 /^X\(\/\/\)$/{ s//\1/; q; }
6067 /^X\(\/\).*/{ s//\1/; q; }
6068 s/.*/./; q'`
6069 { if $as_mkdir_p; then
6070 mkdir -p "$ac_dir"
6071 else
6072 as_dir="$ac_dir"
6073 as_dirs=
6074 while test ! -d "$as_dir"; do
6075 as_dirs="$as_dir $as_dirs"
6076 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6077 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6078 X"$as_dir" : 'X\(//\)[^/]' \| \
6079 X"$as_dir" : 'X\(//\)$' \| \
6080 X"$as_dir" : 'X\(/\)' \| \
6081 . : '\(.\)' 2>/dev/null ||
6082 echo X"$as_dir" |
6083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6084 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6085 /^X\(\/\/\)$/{ s//\1/; q; }
6086 /^X\(\/\).*/{ s//\1/; q; }
6087 s/.*/./; q'`
6088 done
6089 test ! -n "$as_dirs" || mkdir $as_dirs
6090 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6091 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6092 { (exit 1); exit 1; }; }; }
6094 rm -f $ac_file
6095 mv $tmp/config.h $ac_file
6097 else
6098 cat $tmp/config.h
6099 rm -f $tmp/config.h
6101 # Run the commands associated with the file.
6102 case $ac_file in
6103 config.h ) echo timestamp > stamp-h ;;
6104 esac
6105 done
6106 _ACEOF
6108 cat >>$CONFIG_STATUS <<\_ACEOF
6110 { (exit 0); exit 0; }
6111 _ACEOF
6112 chmod +x $CONFIG_STATUS
6113 ac_clean_files=$ac_clean_files_save
6116 # configure is writing to config.log, and then calls config.status.
6117 # config.status does its own redirection, appending to config.log.
6118 # Unfortunately, on DOS this fails, as config.log is still kept open
6119 # by configure, so config.status won't be able to write to it; its
6120 # output is simply discarded. So we exec the FD to /dev/null,
6121 # effectively closing config.log, so it can be properly (re)opened and
6122 # appended to by config.status. When coming back to configure, we
6123 # need to make the FD available again.
6124 if test "$no_create" != yes; then
6125 ac_cs_success=:
6126 ac_config_status_args=
6127 test "$silent" = yes &&
6128 ac_config_status_args="$ac_config_status_args --quiet"
6129 exec 5>/dev/null
6130 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6131 exec 5>>config.log
6132 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6133 # would make configure fail if this is the last instruction.
6134 $ac_cs_success || { (exit 1); exit 1; }