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
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
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
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
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 \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; 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
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
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
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
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).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
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'"
235 # We need space, tab and new line, in precisely that order.
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`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
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'
271 PACKAGE_STRING='fixincludes '
274 ac_unique_file="inclhack.def"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT WARN_CFLAGS WARN_PEDANTIC WERROR target_noncanonical TARGET CPP EGREP MAINT LIBOBJS LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name=s,x,x,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
431 -help | --help | --hel | --he | -h)
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 # Obsolete; use --without-fp.
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
561 -site=* | --site=* | --sit=*)
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 -version | --version | --versio | --versi | --vers | -V)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures fixincludes to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --build=BUILD configure for building on BUILD [guessed]
837 --host=HOST cross-compile to build programs to run on HOST [BUILD]
838 --target=TARGET configure for building compilers for TARGET [HOST]
842 if test -n "$ac_init_help"; then
843 case $ac_init_help in
844 short | recursive ) echo "Configuration of fixincludes :";;
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851 --enable-werror-always enable -Werror despite compiler version
852 --enable-twoprocess Use a separate process to apply the fixes
853 --enable-maintainer-mode enable make rules and dependencies not useful
854 (and sometimes confusing) to the casual installer
857 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
858 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
859 --with-local-prefix=DIR specifies directory to put local include
861 Some influential environment variables:
862 CC C compiler command
863 CFLAGS C compiler flags
864 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
865 nonstandard directory <lib dir>
866 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
867 headers in a nonstandard directory <include dir>
870 Use these variables to override the choices made by `configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
876 if test "$ac_init_help" = "recursive"; then
877 # If there are subdirs, report their specific --help.
879 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880 test -d $ac_dir || continue
883 if test "$ac_dir" != .; then
884 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885 # A "../" for each directory in $ac_dir_suffix.
886 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
888 ac_dir_suffix= ac_top_builddir=
892 .) # No --srcdir option. We are building in place.
894 if test -z "$ac_top_builddir"; then
897 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
899 [\\/]* | ?:[\\/]* ) # Absolute path.
900 ac_srcdir=$srcdir$ac_dir_suffix;
901 ac_top_srcdir=$srcdir ;;
903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
907 # Do not use `cd foo && pwd` to compute absolute paths, because
908 # the directories may not exist.
910 .) ac_abs_builddir="$ac_dir";;
913 .) ac_abs_builddir=`pwd`;;
914 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
915 *) ac_abs_builddir=`pwd`/"$ac_dir";;
918 case $ac_abs_builddir in
919 .) ac_abs_top_builddir=${ac_top_builddir}.;;
921 case ${ac_top_builddir}. in
922 .) ac_abs_top_builddir=$ac_abs_builddir;;
923 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
924 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
927 case $ac_abs_builddir in
928 .) ac_abs_srcdir=$ac_srcdir;;
931 .) ac_abs_srcdir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
933 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
936 case $ac_abs_builddir in
937 .) ac_abs_top_srcdir=$ac_top_srcdir;;
939 case $ac_top_srcdir in
940 .) ac_abs_top_srcdir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
942 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
947 # Check for guested configure; otherwise get Cygnus style configure.
948 if test -f $ac_srcdir/configure.gnu; then
950 $SHELL $ac_srcdir/configure.gnu --help=recursive
951 elif test -f $ac_srcdir/configure; then
953 $SHELL $ac_srcdir/configure --help=recursive
954 elif test -f $ac_srcdir/configure.ac ||
955 test -f $ac_srcdir/configure.in; then
959 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
965 test -n "$ac_init_help" && exit 0
966 if $ac_init_version; then
968 fixincludes configure
969 generated by GNU Autoconf 2.59
971 Copyright (C) 2003 Free Software Foundation, Inc.
972 This configure script is free software; the Free Software Foundation
973 gives unlimited permission to copy, distribute and modify it.
979 This file contains any messages produced by compilers while
980 running configure, to aid debugging if configure makes a mistake.
982 It was created by fixincludes $as_me , which was
983 generated by GNU Autoconf 2.59. Invocation command line was
994 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
995 uname -m = `(uname -m) 2>/dev/null || echo unknown`
996 uname -r = `(uname -r) 2>/dev/null || echo unknown`
997 uname -s = `(uname -s) 2>/dev/null || echo unknown`
998 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1000 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1001 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1003 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1004 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1005 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1006 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1007 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1008 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1009 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1017 test -z "$as_dir" && as_dir=.
1018 echo "PATH: $as_dir"
1033 # Keep a trace of the command line.
1034 # Strip out --no-create and --no-recursion so they do not pile up.
1035 # Strip out --silent because we don't want to record it for future runs.
1036 # Also quote any args containing shell meta-characters.
1037 # Make two passes to allow for proper duplicate-argument suppression.
1042 ac_must_keep_next=false
1048 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050 | -silent | --silent | --silen | --sile | --sil)
1052 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1056 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1058 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1059 if test $ac_must_keep_next = true; then
1060 ac_must_keep_next=false # Got value, back to normal.
1063 *=* | --config-cache | -C | -disable-* | --disable-* \
1064 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1065 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1066 | -with-* | --with-* | -without-* | --without-* | --x)
1067 case "$ac_configure_args0 " in
1068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1071 -* ) ac_must_keep_next=true ;;
1074 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1075 # Get rid of the leading space.
1081 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1082 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1084 # When interrupted or exit'd, cleanup temporary files, and complete
1085 # config.log. We remove comments because anyway the quotes in there
1086 # would cause problems or look ugly.
1087 # WARNING: Be sure not to use single quotes in there, as some shells,
1088 # such as our DU 5.0 friend, will then `close' the trap.
1089 trap 'exit_status=$?
1090 # Save into config.log some information that might help in debugging.
1095 ## ---------------- ##
1096 ## Cache variables. ##
1097 ## ---------------- ##
1100 # The following way of writing the cache mishandles newlines in values,
1103 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1106 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1111 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1118 ## ----------------- ##
1119 ## Output variables. ##
1120 ## ----------------- ##
1123 for ac_var in $ac_subst_vars
1125 eval ac_val=$`echo $ac_var`
1126 echo "$ac_var='"'"'$ac_val'"'"'"
1130 if test -n "$ac_subst_files"; then
1137 for ac_var in $ac_subst_files
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1145 if test -s confdefs.h; then
1152 sed "/^$/d" confdefs.h | sort
1155 test "$ac_signal" != 0 &&
1156 echo "$as_me: caught signal $ac_signal"
1157 echo "$as_me: exit $exit_status"
1159 rm -f core *.core &&
1160 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1163 for ac_signal in 1 2 13 15; do
1164 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1168 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1169 rm -rf conftest* confdefs.h
1170 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1173 # Predefined preprocessor variables.
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_NAME "$PACKAGE_NAME"
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_STRING "$PACKAGE_STRING"
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1200 # Let the site file select an alternate cache file if it wants to.
1201 # Prefer explicitly selected file to automatically selected ones.
1202 if test -z "$CONFIG_SITE"; then
1203 if test "x$prefix" != xNONE; then
1204 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1206 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1209 for ac_site_file in $CONFIG_SITE; do
1210 if test -r "$ac_site_file"; then
1211 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1212 echo "$as_me: loading site script $ac_site_file" >&6;}
1213 sed 's/^/| /' "$ac_site_file" >&5
1218 if test -r "$cache_file"; then
1219 # Some versions of bash will fail to source /dev/null (special
1220 # files actually), so we avoid doing that.
1221 if test -f "$cache_file"; then
1222 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1223 echo "$as_me: loading cache $cache_file" >&6;}
1225 [\\/]* | ?:[\\/]* ) . $cache_file;;
1226 *) . ./$cache_file;;
1230 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1231 echo "$as_me: creating cache $cache_file" >&6;}
1235 # Check that the precious variables saved in the cache have kept the same
1237 ac_cache_corrupted=false
1238 for ac_var in `(set) 2>&1 |
1239 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1240 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1241 eval ac_new_set=\$ac_env_${ac_var}_set
1242 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1243 eval ac_new_val="\$ac_env_${ac_var}_value"
1244 case $ac_old_set,$ac_new_set in
1246 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1247 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1248 ac_cache_corrupted=: ;;
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1255 if test "x$ac_old_val" != "x$ac_new_val"; then
1256 # differences in whitespace do not lead to failure.
1257 ac_old_val_w=`echo x $ac_old_val`
1258 ac_new_val_w=`echo x $ac_new_val`
1259 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1260 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1261 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1262 ac_cache_corrupted=:
1264 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1265 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1266 eval $ac_var=\$ac_old_val
1268 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1269 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1270 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1271 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1274 # Pass precious variables to config.status.
1275 if test "$ac_new_set" = set; then
1277 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1278 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1279 *) ac_arg=$ac_var=$ac_new_val ;;
1281 case " $ac_configure_args " in
1282 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1283 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1287 if $ac_cache_corrupted; then
1288 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1289 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1290 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294 { (exit 1); exit 1; }; }
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1334 for ac_dir in .. $srcdir/..; do
1335 if test -f $ac_dir/install-sh; then
1337 ac_install_sh="$ac_aux_dir/install-sh -c"
1339 elif test -f $ac_dir/install.sh; then
1341 ac_install_sh="$ac_aux_dir/install.sh -c"
1343 elif test -f $ac_dir/shtool; then
1345 ac_install_sh="$ac_aux_dir/shtool install -c"
1349 if test -z "$ac_aux_dir"; then
1350 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1351 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1352 { (exit 1); exit 1; }; }
1354 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1355 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1356 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1358 # Make sure we can run config.sub.
1359 $ac_config_sub sun4 >/dev/null 2>&1 ||
1360 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1361 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1362 { (exit 1); exit 1; }; }
1364 echo "$as_me:$LINENO: checking build system type" >&5
1365 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1366 if test "${ac_cv_build+set}" = set; then
1367 echo $ECHO_N "(cached) $ECHO_C" >&6
1369 ac_cv_build_alias=$build_alias
1370 test -z "$ac_cv_build_alias" &&
1371 ac_cv_build_alias=`$ac_config_guess`
1372 test -z "$ac_cv_build_alias" &&
1373 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1374 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1375 { (exit 1); exit 1; }; }
1376 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1377 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1378 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1379 { (exit 1); exit 1; }; }
1382 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1383 echo "${ECHO_T}$ac_cv_build" >&6
1385 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1386 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1387 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1390 echo "$as_me:$LINENO: checking host system type" >&5
1391 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1392 if test "${ac_cv_host+set}" = set; then
1393 echo $ECHO_N "(cached) $ECHO_C" >&6
1395 ac_cv_host_alias=$host_alias
1396 test -z "$ac_cv_host_alias" &&
1397 ac_cv_host_alias=$ac_cv_build_alias
1398 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1399 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1400 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1401 { (exit 1); exit 1; }; }
1404 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1405 echo "${ECHO_T}$ac_cv_host" >&6
1407 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1408 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1409 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1412 echo "$as_me:$LINENO: checking target system type" >&5
1413 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1414 if test "${ac_cv_target+set}" = set; then
1415 echo $ECHO_N "(cached) $ECHO_C" >&6
1417 ac_cv_target_alias=$target_alias
1418 test "x$ac_cv_target_alias" = "x" &&
1419 ac_cv_target_alias=$ac_cv_host_alias
1420 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1421 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1422 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1423 { (exit 1); exit 1; }; }
1426 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1427 echo "${ECHO_T}$ac_cv_target" >&6
1428 target=$ac_cv_target
1429 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1430 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1431 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1434 # The aliases save the names the user supplied, while $host etc.
1435 # will get canonicalized.
1436 test -n "$target_alias" &&
1437 test "$program_prefix$program_suffix$program_transform_name" = \
1439 program_prefix=${target_alias}-
1441 ac_cpp='$CPP $CPPFLAGS'
1442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1445 if test -n "$ac_tool_prefix"; then
1446 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1447 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1448 echo "$as_me:$LINENO: checking for $ac_word" >&5
1449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1450 if test "${ac_cv_prog_CC+set}" = set; then
1451 echo $ECHO_N "(cached) $ECHO_C" >&6
1453 if test -n "$CC"; then
1454 ac_cv_prog_CC="$CC" # Let the user override the test.
1456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1460 test -z "$as_dir" && as_dir=.
1461 for ac_exec_ext in '' $ac_executable_extensions; do
1462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1463 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1473 if test -n "$CC"; then
1474 echo "$as_me:$LINENO: result: $CC" >&5
1475 echo "${ECHO_T}$CC" >&6
1477 echo "$as_me:$LINENO: result: no" >&5
1478 echo "${ECHO_T}no" >&6
1482 if test -z "$ac_cv_prog_CC"; then
1484 # Extract the first word of "gcc", so it can be a program name with args.
1485 set dummy gcc; ac_word=$2
1486 echo "$as_me:$LINENO: checking for $ac_word" >&5
1487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1488 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1489 echo $ECHO_N "(cached) $ECHO_C" >&6
1491 if test -n "$ac_ct_CC"; then
1492 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1498 test -z "$as_dir" && as_dir=.
1499 for ac_exec_ext in '' $ac_executable_extensions; do
1500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1501 ac_cv_prog_ac_ct_CC="gcc"
1502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1510 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1511 if test -n "$ac_ct_CC"; then
1512 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1513 echo "${ECHO_T}$ac_ct_CC" >&6
1515 echo "$as_me:$LINENO: result: no" >&5
1516 echo "${ECHO_T}no" >&6
1524 if test -z "$CC"; then
1525 if test -n "$ac_tool_prefix"; then
1526 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1527 set dummy ${ac_tool_prefix}cc; ac_word=$2
1528 echo "$as_me:$LINENO: checking for $ac_word" >&5
1529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530 if test "${ac_cv_prog_CC+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1533 if test -n "$CC"; then
1534 ac_cv_prog_CC="$CC" # Let the user override the test.
1536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540 test -z "$as_dir" && as_dir=.
1541 for ac_exec_ext in '' $ac_executable_extensions; do
1542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1543 ac_cv_prog_CC="${ac_tool_prefix}cc"
1544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1553 if test -n "$CC"; then
1554 echo "$as_me:$LINENO: result: $CC" >&5
1555 echo "${ECHO_T}$CC" >&6
1557 echo "$as_me:$LINENO: result: no" >&5
1558 echo "${ECHO_T}no" >&6
1562 if test -z "$ac_cv_prog_CC"; then
1564 # Extract the first word of "cc", so it can be a program name with args.
1565 set dummy cc; ac_word=$2
1566 echo "$as_me:$LINENO: checking for $ac_word" >&5
1567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1568 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1569 echo $ECHO_N "(cached) $ECHO_C" >&6
1571 if test -n "$ac_ct_CC"; then
1572 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578 test -z "$as_dir" && as_dir=.
1579 for ac_exec_ext in '' $ac_executable_extensions; do
1580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1581 ac_cv_prog_ac_ct_CC="cc"
1582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1591 if test -n "$ac_ct_CC"; then
1592 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1593 echo "${ECHO_T}$ac_ct_CC" >&6
1595 echo "$as_me:$LINENO: result: no" >&5
1596 echo "${ECHO_T}no" >&6
1605 if test -z "$CC"; then
1606 # Extract the first word of "cc", so it can be a program name with args.
1607 set dummy cc; ac_word=$2
1608 echo "$as_me:$LINENO: checking for $ac_word" >&5
1609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610 if test "${ac_cv_prog_CC+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1613 if test -n "$CC"; then
1614 ac_cv_prog_CC="$CC" # Let the user override the test.
1617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1621 test -z "$as_dir" && as_dir=.
1622 for ac_exec_ext in '' $ac_executable_extensions; do
1623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1624 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1625 ac_prog_rejected=yes
1629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1635 if test $ac_prog_rejected = yes; then
1636 # We found a bogon in the path, so make sure we never use it.
1637 set dummy $ac_cv_prog_CC
1639 if test $# != 0; then
1640 # We chose a different compiler from the bogus one.
1641 # However, it has the same basename, so the bogon will be chosen
1642 # first if we set CC to just the basename; use the full file name.
1644 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1650 if test -n "$CC"; then
1651 echo "$as_me:$LINENO: result: $CC" >&5
1652 echo "${ECHO_T}$CC" >&6
1654 echo "$as_me:$LINENO: result: no" >&5
1655 echo "${ECHO_T}no" >&6
1659 if test -z "$CC"; then
1660 if test -n "$ac_tool_prefix"; then
1663 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1664 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1665 echo "$as_me:$LINENO: checking for $ac_word" >&5
1666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1667 if test "${ac_cv_prog_CC+set}" = set; then
1668 echo $ECHO_N "(cached) $ECHO_C" >&6
1670 if test -n "$CC"; then
1671 ac_cv_prog_CC="$CC" # Let the user override the test.
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1677 test -z "$as_dir" && as_dir=.
1678 for ac_exec_ext in '' $ac_executable_extensions; do
1679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1680 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1690 if test -n "$CC"; then
1691 echo "$as_me:$LINENO: result: $CC" >&5
1692 echo "${ECHO_T}$CC" >&6
1694 echo "$as_me:$LINENO: result: no" >&5
1695 echo "${ECHO_T}no" >&6
1698 test -n "$CC" && break
1701 if test -z "$CC"; then
1705 # Extract the first word of "$ac_prog", so it can be a program name with args.
1706 set dummy $ac_prog; ac_word=$2
1707 echo "$as_me:$LINENO: checking for $ac_word" >&5
1708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1709 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1710 echo $ECHO_N "(cached) $ECHO_C" >&6
1712 if test -n "$ac_ct_CC"; then
1713 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 test -z "$as_dir" && as_dir=.
1720 for ac_exec_ext in '' $ac_executable_extensions; do
1721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1722 ac_cv_prog_ac_ct_CC="$ac_prog"
1723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1731 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1732 if test -n "$ac_ct_CC"; then
1733 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1734 echo "${ECHO_T}$ac_ct_CC" >&6
1736 echo "$as_me:$LINENO: result: no" >&5
1737 echo "${ECHO_T}no" >&6
1740 test -n "$ac_ct_CC" && break
1749 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1750 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1751 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1752 See \`config.log' for more details." >&5
1753 echo "$as_me: error: no acceptable C compiler found in \$PATH
1754 See \`config.log' for more details." >&2;}
1755 { (exit 1); exit 1; }; }; }
1757 # Provide some information about the compiler.
1758 echo "$as_me:$LINENO:" \
1759 "checking for C compiler version" >&5
1760 ac_compiler=`set X $ac_compile; echo $2`
1761 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1762 (eval $ac_compiler --version </dev/null >&5) 2>&5
1764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1765 (exit $ac_status); }
1766 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1767 (eval $ac_compiler -v </dev/null >&5) 2>&5
1769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1770 (exit $ac_status); }
1771 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1772 (eval $ac_compiler -V </dev/null >&5) 2>&5
1774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1775 (exit $ac_status); }
1777 cat >conftest.$ac_ext <<_ACEOF
1780 cat confdefs.h >>conftest.$ac_ext
1781 cat >>conftest.$ac_ext <<_ACEOF
1782 /* end confdefs.h. */
1792 ac_clean_files_save=$ac_clean_files
1793 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1794 # Try to create an executable without -o first, disregard a.out.
1795 # It will help us diagnose broken compilers, and finding out an intuition
1797 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1798 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1799 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1800 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1801 (eval $ac_link_default) 2>&5
1803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1804 (exit $ac_status); }; then
1805 # Find the output, starting from the most likely. This scheme is
1806 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1809 # Be careful to initialize this variable, since it used to be cached.
1810 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1812 # b.out is created by i960 compilers.
1813 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1815 test -f "$ac_file" || continue
1817 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1820 # This is the source file.
1823 # We found the default executable, but exeext='' is most
1827 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1828 # FIXME: I believe we export ac_cv_exeext for Libtool,
1829 # but it would be cool to find out if it's true. Does anybody
1830 # maintain Libtool? --akim.
1838 echo "$as_me: failed program was:" >&5
1839 sed 's/^/| /' conftest.$ac_ext >&5
1841 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1842 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1843 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1844 See \`config.log' for more details." >&5
1845 echo "$as_me: error: C compiler cannot create executables
1846 See \`config.log' for more details." >&2;}
1847 { (exit 77); exit 77; }; }; }
1850 ac_exeext=$ac_cv_exeext
1851 echo "$as_me:$LINENO: result: $ac_file" >&5
1852 echo "${ECHO_T}$ac_file" >&6
1854 # Check the compiler produces executables we can run. If not, either
1855 # the compiler is broken, or we cross compile.
1856 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1857 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1858 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1859 # If not cross compiling, check that we can run a simple program.
1860 if test "$cross_compiling" != yes; then
1861 if { ac_try='./$ac_file'
1862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1866 (exit $ac_status); }; }; then
1869 if test "$cross_compiling" = maybe; then
1872 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1873 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1874 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1875 If you meant to cross compile, use \`--host'.
1876 See \`config.log' for more details." >&5
1877 echo "$as_me: error: cannot run C compiled programs.
1878 If you meant to cross compile, use \`--host'.
1879 See \`config.log' for more details." >&2;}
1880 { (exit 1); exit 1; }; }; }
1884 echo "$as_me:$LINENO: result: yes" >&5
1885 echo "${ECHO_T}yes" >&6
1887 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1888 ac_clean_files=$ac_clean_files_save
1889 # Check the compiler produces executables we can run. If not, either
1890 # the compiler is broken, or we cross compile.
1891 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1892 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1893 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1894 echo "${ECHO_T}$cross_compiling" >&6
1896 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1897 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1899 (eval $ac_link) 2>&5
1901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1902 (exit $ac_status); }; then
1903 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1904 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1905 # work properly (i.e., refer to `conftest.exe'), while it won't with
1907 for ac_file in conftest.exe conftest conftest.*; do
1908 test -f "$ac_file" || continue
1910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1911 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1918 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1919 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1920 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1921 See \`config.log' for more details." >&5
1922 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1923 See \`config.log' for more details." >&2;}
1924 { (exit 1); exit 1; }; }; }
1927 rm -f conftest$ac_cv_exeext
1928 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1929 echo "${ECHO_T}$ac_cv_exeext" >&6
1931 rm -f conftest.$ac_ext
1932 EXEEXT=$ac_cv_exeext
1934 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1935 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1936 if test "${ac_cv_objext+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1939 cat >conftest.$ac_ext <<_ACEOF
1942 cat confdefs.h >>conftest.$ac_ext
1943 cat >>conftest.$ac_ext <<_ACEOF
1944 /* end confdefs.h. */
1954 rm -f conftest.o conftest.obj
1955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1956 (eval $ac_compile) 2>&5
1958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1959 (exit $ac_status); }; then
1960 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1963 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1968 echo "$as_me: failed program was:" >&5
1969 sed 's/^/| /' conftest.$ac_ext >&5
1971 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1972 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1973 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1974 See \`config.log' for more details." >&5
1975 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1976 See \`config.log' for more details." >&2;}
1977 { (exit 1); exit 1; }; }; }
1980 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1982 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1983 echo "${ECHO_T}$ac_cv_objext" >&6
1984 OBJEXT=$ac_cv_objext
1986 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1987 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1988 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 cat >conftest.$ac_ext <<_ACEOF
1994 cat confdefs.h >>conftest.$ac_ext
1995 cat >>conftest.$ac_ext <<_ACEOF
1996 /* end confdefs.h. */
2009 rm -f conftest.$ac_objext
2010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2011 (eval $ac_compile) 2>conftest.er1
2013 grep -v '^ *+' conftest.er1 >conftest.err
2015 cat conftest.err >&5
2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017 (exit $ac_status); } &&
2018 { ac_try='test -z "$ac_c_werror_flag"
2019 || test ! -s conftest.err'
2020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }; } &&
2025 { ac_try='test -s conftest.$ac_objext'
2026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }; }; then
2033 echo "$as_me: failed program was:" >&5
2034 sed 's/^/| /' conftest.$ac_ext >&5
2038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2039 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2042 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2043 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2044 GCC=`test $ac_compiler_gnu = yes && echo yes`
2045 ac_test_CFLAGS=${CFLAGS+set}
2046 ac_save_CFLAGS=$CFLAGS
2048 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2049 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2050 if test "${ac_cv_prog_cc_g+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 cat >conftest.$ac_ext <<_ACEOF
2056 cat confdefs.h >>conftest.$ac_ext
2057 cat >>conftest.$ac_ext <<_ACEOF
2058 /* end confdefs.h. */
2068 rm -f conftest.$ac_objext
2069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2070 (eval $ac_compile) 2>conftest.er1
2072 grep -v '^ *+' conftest.er1 >conftest.err
2074 cat conftest.err >&5
2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076 (exit $ac_status); } &&
2077 { ac_try='test -z "$ac_c_werror_flag"
2078 || test ! -s conftest.err'
2079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }; } &&
2084 { ac_try='test -s conftest.$ac_objext'
2085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; }; then
2092 echo "$as_me: failed program was:" >&5
2093 sed 's/^/| /' conftest.$ac_ext >&5
2097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2099 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2100 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2101 if test "$ac_test_CFLAGS" = set; then
2102 CFLAGS=$ac_save_CFLAGS
2103 elif test $ac_cv_prog_cc_g = yes; then
2104 if test "$GCC" = yes; then
2110 if test "$GCC" = yes; then
2116 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2117 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2118 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2121 ac_cv_prog_cc_stdc=no
2123 cat >conftest.$ac_ext <<_ACEOF
2126 cat confdefs.h >>conftest.$ac_ext
2127 cat >>conftest.$ac_ext <<_ACEOF
2128 /* end confdefs.h. */
2131 #include <sys/types.h>
2132 #include <sys/stat.h>
2133 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2134 struct buf { int x; };
2135 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2136 static char *e (p, i)
2142 static char *f (char * (*g) (char **, int), char **p, ...)
2147 s = g (p, va_arg (v,int));
2152 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2153 function prototypes and stuff, but not '\xHH' hex character constants.
2154 These don't provoke an error unfortunately, instead are silently treated
2155 as 'x'. The following induces an error, until -std1 is added to get
2156 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2157 array size at least. It's necessary to write '\x00'==0 to get something
2158 that's true only with -std1. */
2159 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2161 int test (int i, double x);
2162 struct s1 {int (*f) (int a);};
2163 struct s2 {int (*f) (double a);};
2164 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2170 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2175 # Don't try gcc -ansi; that turns off useful extensions and
2176 # breaks some systems' header files.
2177 # AIX -qlanglvl=ansi
2178 # Ultrix and OSF/1 -std1
2179 # HP-UX 10.20 and later -Ae
2180 # HP-UX older versions -Aa -D_HPUX_SOURCE
2181 # SVR4 -Xc -D__EXTENSIONS__
2182 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2184 CC="$ac_save_CC $ac_arg"
2185 rm -f conftest.$ac_objext
2186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2187 (eval $ac_compile) 2>conftest.er1
2189 grep -v '^ *+' conftest.er1 >conftest.err
2191 cat conftest.err >&5
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); } &&
2194 { ac_try='test -z "$ac_c_werror_flag"
2195 || test ! -s conftest.err'
2196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; } &&
2201 { ac_try='test -s conftest.$ac_objext'
2202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; }; then
2207 ac_cv_prog_cc_stdc=$ac_arg
2210 echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2214 rm -f conftest.err conftest.$ac_objext
2216 rm -f conftest.$ac_ext conftest.$ac_objext
2221 case "x$ac_cv_prog_cc_stdc" in
2223 echo "$as_me:$LINENO: result: none needed" >&5
2224 echo "${ECHO_T}none needed" >&6 ;;
2226 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2227 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2228 CC="$CC $ac_cv_prog_cc_stdc" ;;
2231 # Some people use a C++ compiler to compile C. Since we use `exit',
2232 # in C++ we need to declare it. In case someone uses the same compiler
2233 # for both compiling C and C++ we need to have the C++ compiler decide
2234 # the declaration of exit, since it's the most demanding environment.
2235 cat >conftest.$ac_ext <<_ACEOF
2240 rm -f conftest.$ac_objext
2241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2242 (eval $ac_compile) 2>conftest.er1
2244 grep -v '^ *+' conftest.er1 >conftest.err
2246 cat conftest.err >&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); } &&
2249 { ac_try='test -z "$ac_c_werror_flag"
2250 || test ! -s conftest.err'
2251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; } &&
2256 { ac_try='test -s conftest.$ac_objext'
2257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; }; then
2262 for ac_declaration in \
2264 'extern "C" void std::exit (int) throw (); using std::exit;' \
2265 'extern "C" void std::exit (int); using std::exit;' \
2266 'extern "C" void exit (int) throw ();' \
2267 'extern "C" void exit (int);' \
2270 cat >conftest.$ac_ext <<_ACEOF
2273 cat confdefs.h >>conftest.$ac_ext
2274 cat >>conftest.$ac_ext <<_ACEOF
2275 /* end confdefs.h. */
2286 rm -f conftest.$ac_objext
2287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2288 (eval $ac_compile) 2>conftest.er1
2290 grep -v '^ *+' conftest.er1 >conftest.err
2292 cat conftest.err >&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); } &&
2295 { ac_try='test -z "$ac_c_werror_flag"
2296 || test ! -s conftest.err'
2297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; } &&
2302 { ac_try='test -s conftest.$ac_objext'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; }; then
2310 echo "$as_me: failed program was:" >&5
2311 sed 's/^/| /' conftest.$ac_ext >&5
2315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2316 cat >conftest.$ac_ext <<_ACEOF
2319 cat confdefs.h >>conftest.$ac_ext
2320 cat >>conftest.$ac_ext <<_ACEOF
2321 /* end confdefs.h. */
2331 rm -f conftest.$ac_objext
2332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333 (eval $ac_compile) 2>conftest.er1
2335 grep -v '^ *+' conftest.er1 >conftest.err
2337 cat conftest.err >&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); } &&
2340 { ac_try='test -z "$ac_c_werror_flag"
2341 || test ! -s conftest.err'
2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; } &&
2347 { ac_try='test -s conftest.$ac_objext'
2348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; }; then
2355 echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.$ac_ext >&5
2359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2362 if test -n "$ac_declaration"; then
2363 echo '#ifdef __cplusplus' >>confdefs.h
2364 echo $ac_declaration >>confdefs.h
2365 echo '#endif' >>confdefs.h
2369 echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2375 ac_cpp='$CPP $CPPFLAGS'
2376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2381 # Figure out what compiler warnings we can enable.
2382 # See config/warnings.m4 for details.
2386 save_CFLAGS="$CFLAGS"
2387 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
2388 -Wmissing-prototypes -Wold-style-definition \
2389 -Wmissing-format-attribute -Wno-overlength-strings; do
2390 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
2392 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
2393 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
2394 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 cat >conftest.$ac_ext <<_ACEOF
2401 cat confdefs.h >>conftest.$ac_ext
2402 cat >>conftest.$ac_ext <<_ACEOF
2403 /* end confdefs.h. */
2413 rm -f conftest.$ac_objext
2414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415 (eval $ac_compile) 2>conftest.er1
2417 grep -v '^ *+' conftest.er1 >conftest.err
2419 cat conftest.err >&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); } &&
2422 { ac_try='test -z "$ac_c_werror_flag"
2423 || test ! -s conftest.err'
2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; } &&
2429 { ac_try='test -s conftest.$ac_objext'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; }; then
2435 eval "$as_acx_Woption=yes"
2437 echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2440 eval "$as_acx_Woption=no"
2442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2445 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
2446 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
2447 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
2448 WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$option"
2452 CFLAGS="$save_CFLAGS"
2455 if test "$GCC" = yes; then
2456 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long" >&5
2457 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long... $ECHO_C" >&6
2458 if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2461 save_CFLAGS="$CFLAGS"
2462 CFLAGS="-pedantic -Wno-long-long"
2463 cat >conftest.$ac_ext <<_ACEOF
2466 cat confdefs.h >>conftest.$ac_ext
2467 cat >>conftest.$ac_ext <<_ACEOF
2468 /* end confdefs.h. */
2478 rm -f conftest.$ac_objext
2479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2480 (eval $ac_compile) 2>conftest.er1
2482 grep -v '^ *+' conftest.er1 >conftest.err
2484 cat conftest.err >&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); } &&
2487 { ac_try='test -z "$ac_c_werror_flag"
2488 || test ! -s conftest.err'
2489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }; } &&
2494 { ac_try='test -s conftest.$ac_objext'
2495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }; }; then
2500 acx_cv_prog_cc_pedantic__Wno_long_long=yes
2502 echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2505 acx_cv_prog_cc_pedantic__Wno_long_long=no
2507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2508 CFLAGS="$save_CFLAGS"
2510 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5
2511 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long" >&6
2512 if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then
2513 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
2521 # Only enable with --enable-werror-always until existing warnings are
2524 # Check whether --enable-werror-always or --disable-werror-always was given.
2525 if test "${enable_werror_always+set}" = set; then
2526 enableval="$enable_werror_always"
2529 enable_werror_always=no
2531 if test $enable_werror_always = yes; then
2532 WERROR="$WERROR${WERROR:+ }-Werror"
2538 # Determine the noncanonical target name, for directory use.
2539 case ${build_alias} in
2540 "") build_noncanonical=${build} ;;
2541 *) build_noncanonical=${build_alias} ;;
2544 case ${host_alias} in
2545 "") host_noncanonical=${build_noncanonical} ;;
2546 *) host_noncanonical=${host_alias} ;;
2549 case ${target_alias} in
2550 "") target_noncanonical=${host_noncanonical} ;;
2551 *) target_noncanonical=${target_alias} ;;
2557 # Specify the local prefix
2560 # Check whether --with-local-prefix or --without-local-prefix was given.
2561 if test "${with_local_prefix+set}" = set; then
2562 withval="$with_local_prefix"
2563 case "${withval}" in
2564 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
2565 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
2566 { (exit 1); exit 1; }; } ;;
2568 *) local_prefix=$with_local_prefix ;;
2572 # Default local prefix if it is empty
2573 if test x$local_prefix = x; then
2574 local_prefix=/usr/local
2577 # Choose one or two-process fix methodology. Systems that cannot handle
2578 # bi-directional pipes must use the two process method.
2580 # Check whether --enable-twoprocess or --disable-twoprocess was given.
2581 if test "${enable_twoprocess+set}" = set; then
2582 enableval="$enable_twoprocess"
2583 if test "x$enable_twoprocess" = xyes; then
2590 i?86-*-msdosdjgpp* | \
2592 x86_64-*-mingw32* | \
2604 if test $TARGET = twoprocess; then
2606 cat >>confdefs.h <<\_ACEOF
2607 #define SEPARATE_FIX_PROC 1
2615 cat >>confdefs.h <<\_ACEOF
2620 cat >>confdefs.h <<\_ACEOF
2621 #define atexit xatexit
2628 cat >>confdefs.h <<_ACEOF
2629 #define EXE_EXT "$ac_exeext"
2633 # Checks for header files.
2635 ac_cpp='$CPP $CPPFLAGS'
2636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2639 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2640 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2641 # On Suns, sometimes $CPP names a directory.
2642 if test -n "$CPP" && test -d "$CPP"; then
2645 if test -z "$CPP"; then
2646 if test "${ac_cv_prog_CPP+set}" = set; then
2647 echo $ECHO_N "(cached) $ECHO_C" >&6
2649 # Double quotes because CPP needs to be expanded
2650 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2653 for ac_c_preproc_warn_flag in '' yes
2655 # Use a header file that comes with gcc, so configuring glibc
2656 # with a fresh cross-compiler works.
2657 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2658 # <limits.h> exists even on freestanding compilers.
2659 # On the NeXT, cc -E runs the code through the compiler's parser,
2660 # not just through cpp. "Syntax error" is here to catch this case.
2661 cat >conftest.$ac_ext <<_ACEOF
2664 cat confdefs.h >>conftest.$ac_ext
2665 cat >>conftest.$ac_ext <<_ACEOF
2666 /* end confdefs.h. */
2668 # include <limits.h>
2670 # include <assert.h>
2674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2677 grep -v '^ *+' conftest.er1 >conftest.err
2679 cat conftest.err >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); } >/dev/null; then
2682 if test -s conftest.err; then
2683 ac_cpp_err=$ac_c_preproc_warn_flag
2684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2691 if test -z "$ac_cpp_err"; then
2694 echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.$ac_ext >&5
2697 # Broken: fails on valid input.
2700 rm -f conftest.err conftest.$ac_ext
2702 # OK, works on sane cases. Now check whether non-existent headers
2703 # can be detected and how.
2704 cat >conftest.$ac_ext <<_ACEOF
2707 cat confdefs.h >>conftest.$ac_ext
2708 cat >>conftest.$ac_ext <<_ACEOF
2709 /* end confdefs.h. */
2710 #include <ac_nonexistent.h>
2712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2715 grep -v '^ *+' conftest.er1 >conftest.err
2717 cat conftest.err >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } >/dev/null; then
2720 if test -s conftest.err; then
2721 ac_cpp_err=$ac_c_preproc_warn_flag
2722 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2729 if test -z "$ac_cpp_err"; then
2730 # Broken: success on invalid input.
2733 echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2736 # Passes both tests.
2740 rm -f conftest.err conftest.$ac_ext
2743 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2744 rm -f conftest.err conftest.$ac_ext
2745 if $ac_preproc_ok; then
2757 echo "$as_me:$LINENO: result: $CPP" >&5
2758 echo "${ECHO_T}$CPP" >&6
2760 for ac_c_preproc_warn_flag in '' yes
2762 # Use a header file that comes with gcc, so configuring glibc
2763 # with a fresh cross-compiler works.
2764 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2765 # <limits.h> exists even on freestanding compilers.
2766 # On the NeXT, cc -E runs the code through the compiler's parser,
2767 # not just through cpp. "Syntax error" is here to catch this case.
2768 cat >conftest.$ac_ext <<_ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h. */
2775 # include <limits.h>
2777 # include <assert.h>
2781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2784 grep -v '^ *+' conftest.er1 >conftest.err
2786 cat conftest.err >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); } >/dev/null; then
2789 if test -s conftest.err; then
2790 ac_cpp_err=$ac_c_preproc_warn_flag
2791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2798 if test -z "$ac_cpp_err"; then
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2804 # Broken: fails on valid input.
2807 rm -f conftest.err conftest.$ac_ext
2809 # OK, works on sane cases. Now check whether non-existent headers
2810 # can be detected and how.
2811 cat >conftest.$ac_ext <<_ACEOF
2814 cat confdefs.h >>conftest.$ac_ext
2815 cat >>conftest.$ac_ext <<_ACEOF
2816 /* end confdefs.h. */
2817 #include <ac_nonexistent.h>
2819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2822 grep -v '^ *+' conftest.er1 >conftest.err
2824 cat conftest.err >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); } >/dev/null; then
2827 if test -s conftest.err; then
2828 ac_cpp_err=$ac_c_preproc_warn_flag
2829 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2836 if test -z "$ac_cpp_err"; then
2837 # Broken: success on invalid input.
2840 echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.$ac_ext >&5
2843 # Passes both tests.
2847 rm -f conftest.err conftest.$ac_ext
2850 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2851 rm -f conftest.err conftest.$ac_ext
2852 if $ac_preproc_ok; then
2855 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2856 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2857 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2858 See \`config.log' for more details." >&5
2859 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2860 See \`config.log' for more details." >&2;}
2861 { (exit 1); exit 1; }; }; }
2865 ac_cpp='$CPP $CPPFLAGS'
2866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2871 echo "$as_me:$LINENO: checking for egrep" >&5
2872 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2873 if test "${ac_cv_prog_egrep+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2877 then ac_cv_prog_egrep='grep -E'
2878 else ac_cv_prog_egrep='egrep'
2881 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2882 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2883 EGREP=$ac_cv_prog_egrep
2886 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2887 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2888 if test "${ac_cv_header_stdc+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 cat >conftest.$ac_ext <<_ACEOF
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h. */
2910 rm -f conftest.$ac_objext
2911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2912 (eval $ac_compile) 2>conftest.er1
2914 grep -v '^ *+' conftest.er1 >conftest.err
2916 cat conftest.err >&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); } &&
2919 { ac_try='test -z "$ac_c_werror_flag"
2920 || test ! -s conftest.err'
2921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; } &&
2926 { ac_try='test -s conftest.$ac_objext'
2927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }; }; then
2932 ac_cv_header_stdc=yes
2934 echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2937 ac_cv_header_stdc=no
2939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2941 if test $ac_cv_header_stdc = yes; then
2942 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2943 cat >conftest.$ac_ext <<_ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2953 $EGREP "memchr" >/dev/null 2>&1; then
2956 ac_cv_header_stdc=no
2962 if test $ac_cv_header_stdc = yes; then
2963 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2964 cat >conftest.$ac_ext <<_ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2974 $EGREP "free" >/dev/null 2>&1; then
2977 ac_cv_header_stdc=no
2983 if test $ac_cv_header_stdc = yes; then
2984 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2985 if test "$cross_compiling" = yes; then
2988 cat >conftest.$ac_ext <<_ACEOF
2991 cat confdefs.h >>conftest.$ac_ext
2992 cat >>conftest.$ac_ext <<_ACEOF
2993 /* end confdefs.h. */
2995 #if ((' ' & 0x0FF) == 0x020)
2996 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2997 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2999 # define ISLOWER(c) \
3000 (('a' <= (c) && (c) <= 'i') \
3001 || ('j' <= (c) && (c) <= 'r') \
3002 || ('s' <= (c) && (c) <= 'z'))
3003 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3006 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3011 for (i = 0; i < 256; i++)
3012 if (XOR (islower (i), ISLOWER (i))
3013 || toupper (i) != TOUPPER (i))
3018 rm -f conftest$ac_exeext
3019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3020 (eval $ac_link) 2>&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; }; then
3031 echo "$as_me: program exited with status $ac_status" >&5
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3036 ac_cv_header_stdc=no
3038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3042 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3043 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3044 if test $ac_cv_header_stdc = yes; then
3046 cat >>confdefs.h <<\_ACEOF
3047 #define STDC_HEADERS 1
3052 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3062 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3063 inttypes.h stdint.h unistd.h
3065 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3066 echo "$as_me:$LINENO: checking for $ac_header" >&5
3067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3071 cat >conftest.$ac_ext <<_ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3077 $ac_includes_default
3079 #include <$ac_header>
3081 rm -f conftest.$ac_objext
3082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3083 (eval $ac_compile) 2>conftest.er1
3085 grep -v '^ *+' conftest.er1 >conftest.err
3087 cat conftest.err >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } &&
3090 { ac_try='test -z "$ac_c_werror_flag"
3091 || test ! -s conftest.err'
3092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; } &&
3097 { ac_try='test -s conftest.$ac_objext'
3098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
3103 eval "$as_ac_Header=yes"
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3108 eval "$as_ac_Header=no"
3110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3115 cat >>confdefs.h <<_ACEOF
3116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3131 for ac_header in stddef.h stdlib.h strings.h unistd.h fcntl.h sys/file.h \
3134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3136 echo "$as_me:$LINENO: checking for $ac_header" >&5
3137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3139 echo $ECHO_N "(cached) $ECHO_C" >&6
3141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3142 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3144 # Is the header compilable?
3145 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3146 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3147 cat >conftest.$ac_ext <<_ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h. */
3153 $ac_includes_default
3154 #include <$ac_header>
3156 rm -f conftest.$ac_objext
3157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3158 (eval $ac_compile) 2>conftest.er1
3160 grep -v '^ *+' conftest.er1 >conftest.err
3162 cat conftest.err >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); } &&
3165 { ac_try='test -z "$ac_c_werror_flag"
3166 || test ! -s conftest.err'
3167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; } &&
3172 { ac_try='test -s conftest.$ac_objext'
3173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; }; then
3178 ac_header_compiler=yes
3180 echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.$ac_ext >&5
3183 ac_header_compiler=no
3185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3186 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3187 echo "${ECHO_T}$ac_header_compiler" >&6
3189 # Is the header present?
3190 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3191 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3192 cat >conftest.$ac_ext <<_ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h. */
3198 #include <$ac_header>
3200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3203 grep -v '^ *+' conftest.er1 >conftest.err
3205 cat conftest.err >&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); } >/dev/null; then
3208 if test -s conftest.err; then
3209 ac_cpp_err=$ac_c_preproc_warn_flag
3210 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3217 if test -z "$ac_cpp_err"; then
3218 ac_header_preproc=yes
3220 echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3223 ac_header_preproc=no
3225 rm -f conftest.err conftest.$ac_ext
3226 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3227 echo "${ECHO_T}$ac_header_preproc" >&6
3229 # So? What about this header?
3230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3235 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3236 ac_header_preproc=yes
3239 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3240 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3241 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3242 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3243 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3244 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3245 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3246 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3248 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3249 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3250 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3253 ## -------------------------------------- ##
3254 ## Report this to the fixincludes lists. ##
3255 ## -------------------------------------- ##
3258 sed "s/^/$as_me: WARNING: /" >&2
3261 echo "$as_me:$LINENO: checking for $ac_header" >&5
3262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
3266 eval "$as_ac_Header=\$ac_header_preproc"
3268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3273 cat >>confdefs.h <<_ACEOF
3274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3298 for ac_func in clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
3300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3301 echo "$as_me:$LINENO: checking for $ac_func" >&5
3302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3303 if eval "test \"\${$as_ac_var+set}\" = set"; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 cat >conftest.$ac_ext <<_ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h. */
3312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3314 #define $ac_func innocuous_$ac_func
3316 /* System header to define __stub macros and hopefully few prototypes,
3317 which can conflict with char $ac_func (); below.
3318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3319 <limits.h> exists even on freestanding compilers. */
3322 # include <limits.h>
3324 # include <assert.h>
3329 /* Override any gcc2 internal prototype to avoid an error. */
3334 /* We use char because int might match the return type of a gcc2
3335 builtin and then its argument prototype would still apply. */
3337 /* The GNU C library defines this for functions which it implements
3338 to always fail with ENOSYS. Some functions are actually named
3339 something starting with __ and the normal name is an alias. */
3340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3343 char (*f) () = $ac_func;
3352 return f != $ac_func;
3357 rm -f conftest.$ac_objext conftest$ac_exeext
3358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3359 (eval $ac_link) 2>conftest.er1
3361 grep -v '^ *+' conftest.er1 >conftest.err
3363 cat conftest.err >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } &&
3366 { ac_try='test -z "$ac_c_werror_flag"
3367 || test ! -s conftest.err'
3368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }; } &&
3373 { ac_try='test -s conftest$ac_exeext'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; }; then
3379 eval "$as_ac_var=yes"
3381 echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3384 eval "$as_ac_var=no"
3386 rm -f conftest.err conftest.$ac_objext \
3387 conftest$ac_exeext conftest.$ac_ext
3389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3391 if test `eval echo '${'$as_ac_var'}'` = yes; then
3392 cat >>confdefs.h <<_ACEOF
3393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3399 echo "$as_me:$LINENO: checking whether abort is declared" >&5
3400 echo $ECHO_N "checking whether abort is declared... $ECHO_C" >&6
3401 if test "${ac_cv_have_decl_abort+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 cat >conftest.$ac_ext <<_ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h. */
3410 $ac_includes_default
3415 char *p = (char *) abort;
3422 rm -f conftest.$ac_objext
3423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3424 (eval $ac_compile) 2>conftest.er1
3426 grep -v '^ *+' conftest.er1 >conftest.err
3428 cat conftest.err >&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); } &&
3431 { ac_try='test -z "$ac_c_werror_flag"
3432 || test ! -s conftest.err'
3433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; } &&
3438 { ac_try='test -s conftest.$ac_objext'
3439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }; }; then
3444 ac_cv_have_decl_abort=yes
3446 echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3449 ac_cv_have_decl_abort=no
3451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3453 echo "$as_me:$LINENO: result: $ac_cv_have_decl_abort" >&5
3454 echo "${ECHO_T}$ac_cv_have_decl_abort" >&6
3455 if test $ac_cv_have_decl_abort = yes; then
3457 cat >>confdefs.h <<_ACEOF
3458 #define HAVE_DECL_ABORT 1
3463 cat >>confdefs.h <<_ACEOF
3464 #define HAVE_DECL_ABORT 0
3469 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
3470 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
3471 if test "${ac_cv_have_decl_asprintf+set}" = set; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
3474 cat >conftest.$ac_ext <<_ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3480 $ac_includes_default
3485 char *p = (char *) asprintf;
3492 rm -f conftest.$ac_objext
3493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3494 (eval $ac_compile) 2>conftest.er1
3496 grep -v '^ *+' conftest.er1 >conftest.err
3498 cat conftest.err >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } &&
3501 { ac_try='test -z "$ac_c_werror_flag"
3502 || test ! -s conftest.err'
3503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }; } &&
3508 { ac_try='test -s conftest.$ac_objext'
3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; }; then
3514 ac_cv_have_decl_asprintf=yes
3516 echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3519 ac_cv_have_decl_asprintf=no
3521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3523 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
3524 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
3525 if test $ac_cv_have_decl_asprintf = yes; then
3527 cat >>confdefs.h <<_ACEOF
3528 #define HAVE_DECL_ASPRINTF 1
3533 cat >>confdefs.h <<_ACEOF
3534 #define HAVE_DECL_ASPRINTF 0
3539 echo "$as_me:$LINENO: checking whether basename is declared" >&5
3540 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
3541 if test "${ac_cv_have_decl_basename+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 cat >conftest.$ac_ext <<_ACEOF
3547 cat confdefs.h >>conftest.$ac_ext
3548 cat >>conftest.$ac_ext <<_ACEOF
3549 /* end confdefs.h. */
3550 $ac_includes_default
3555 char *p = (char *) basename;
3562 rm -f conftest.$ac_objext
3563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3564 (eval $ac_compile) 2>conftest.er1
3566 grep -v '^ *+' conftest.er1 >conftest.err
3568 cat conftest.err >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); } &&
3571 { ac_try='test -z "$ac_c_werror_flag"
3572 || test ! -s conftest.err'
3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; } &&
3578 { ac_try='test -s conftest.$ac_objext'
3579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); }; }; then
3584 ac_cv_have_decl_basename=yes
3586 echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3589 ac_cv_have_decl_basename=no
3591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3593 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
3594 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
3595 if test $ac_cv_have_decl_basename = yes; then
3597 cat >>confdefs.h <<_ACEOF
3598 #define HAVE_DECL_BASENAME 1
3603 cat >>confdefs.h <<_ACEOF
3604 #define HAVE_DECL_BASENAME 0
3609 echo "$as_me:$LINENO: checking whether errno is declared" >&5
3610 echo $ECHO_N "checking whether errno is declared... $ECHO_C" >&6
3611 if test "${ac_cv_have_decl_errno+set}" = set; then
3612 echo $ECHO_N "(cached) $ECHO_C" >&6
3614 cat >conftest.$ac_ext <<_ACEOF
3617 cat confdefs.h >>conftest.$ac_ext
3618 cat >>conftest.$ac_ext <<_ACEOF
3619 /* end confdefs.h. */
3620 $ac_includes_default
3625 char *p = (char *) errno;
3632 rm -f conftest.$ac_objext
3633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3634 (eval $ac_compile) 2>conftest.er1
3636 grep -v '^ *+' conftest.er1 >conftest.err
3638 cat conftest.err >&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); } &&
3641 { ac_try='test -z "$ac_c_werror_flag"
3642 || test ! -s conftest.err'
3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; } &&
3648 { ac_try='test -s conftest.$ac_objext'
3649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); }; }; then
3654 ac_cv_have_decl_errno=yes
3656 echo "$as_me: failed program was:" >&5
3657 sed 's/^/| /' conftest.$ac_ext >&5
3659 ac_cv_have_decl_errno=no
3661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3663 echo "$as_me:$LINENO: result: $ac_cv_have_decl_errno" >&5
3664 echo "${ECHO_T}$ac_cv_have_decl_errno" >&6
3665 if test $ac_cv_have_decl_errno = yes; then
3667 cat >>confdefs.h <<_ACEOF
3668 #define HAVE_DECL_ERRNO 1
3673 cat >>confdefs.h <<_ACEOF
3674 #define HAVE_DECL_ERRNO 0
3679 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
3680 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
3681 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
3684 cat >conftest.$ac_ext <<_ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3690 $ac_includes_default
3695 char *p = (char *) vasprintf;
3702 rm -f conftest.$ac_objext
3703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3704 (eval $ac_compile) 2>conftest.er1
3706 grep -v '^ *+' conftest.er1 >conftest.err
3708 cat conftest.err >&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } &&
3711 { ac_try='test -z "$ac_c_werror_flag"
3712 || test ! -s conftest.err'
3713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); }; } &&
3718 { ac_try='test -s conftest.$ac_objext'
3719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; }; then
3724 ac_cv_have_decl_vasprintf=yes
3726 echo "$as_me: failed program was:" >&5
3727 sed 's/^/| /' conftest.$ac_ext >&5
3729 ac_cv_have_decl_vasprintf=no
3731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3733 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
3734 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
3735 if test $ac_cv_have_decl_vasprintf = yes; then
3737 cat >>confdefs.h <<_ACEOF
3738 #define HAVE_DECL_VASPRINTF 1
3743 cat >>confdefs.h <<_ACEOF
3744 #define HAVE_DECL_VASPRINTF 0
3749 echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
3750 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
3751 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 cat >conftest.$ac_ext <<_ACEOF
3757 cat confdefs.h >>conftest.$ac_ext
3758 cat >>conftest.$ac_ext <<_ACEOF
3759 /* end confdefs.h. */
3760 $ac_includes_default
3764 #ifndef clearerr_unlocked
3765 char *p = (char *) clearerr_unlocked;
3772 rm -f conftest.$ac_objext
3773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3774 (eval $ac_compile) 2>conftest.er1
3776 grep -v '^ *+' conftest.er1 >conftest.err
3778 cat conftest.err >&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } &&
3781 { ac_try='test -z "$ac_c_werror_flag"
3782 || test ! -s conftest.err'
3783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); }; } &&
3788 { ac_try='test -s conftest.$ac_objext'
3789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }; }; then
3794 ac_cv_have_decl_clearerr_unlocked=yes
3796 echo "$as_me: failed program was:" >&5
3797 sed 's/^/| /' conftest.$ac_ext >&5
3799 ac_cv_have_decl_clearerr_unlocked=no
3801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3803 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
3804 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
3805 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
3807 cat >>confdefs.h <<_ACEOF
3808 #define HAVE_DECL_CLEARERR_UNLOCKED 1
3813 cat >>confdefs.h <<_ACEOF
3814 #define HAVE_DECL_CLEARERR_UNLOCKED 0
3819 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
3820 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
3821 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 cat >conftest.$ac_ext <<_ACEOF
3827 cat confdefs.h >>conftest.$ac_ext
3828 cat >>conftest.$ac_ext <<_ACEOF
3829 /* end confdefs.h. */
3830 $ac_includes_default
3834 #ifndef feof_unlocked
3835 char *p = (char *) feof_unlocked;
3842 rm -f conftest.$ac_objext
3843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3844 (eval $ac_compile) 2>conftest.er1
3846 grep -v '^ *+' conftest.er1 >conftest.err
3848 cat conftest.err >&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); } &&
3851 { ac_try='test -z "$ac_c_werror_flag"
3852 || test ! -s conftest.err'
3853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); }; } &&
3858 { ac_try='test -s conftest.$ac_objext'
3859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); }; }; then
3864 ac_cv_have_decl_feof_unlocked=yes
3866 echo "$as_me: failed program was:" >&5
3867 sed 's/^/| /' conftest.$ac_ext >&5
3869 ac_cv_have_decl_feof_unlocked=no
3871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3873 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
3874 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
3875 if test $ac_cv_have_decl_feof_unlocked = yes; then
3877 cat >>confdefs.h <<_ACEOF
3878 #define HAVE_DECL_FEOF_UNLOCKED 1
3883 cat >>confdefs.h <<_ACEOF
3884 #define HAVE_DECL_FEOF_UNLOCKED 0
3889 echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
3890 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
3891 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 cat >conftest.$ac_ext <<_ACEOF
3897 cat confdefs.h >>conftest.$ac_ext
3898 cat >>conftest.$ac_ext <<_ACEOF
3899 /* end confdefs.h. */
3900 $ac_includes_default
3904 #ifndef ferror_unlocked
3905 char *p = (char *) ferror_unlocked;
3912 rm -f conftest.$ac_objext
3913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3914 (eval $ac_compile) 2>conftest.er1
3916 grep -v '^ *+' conftest.er1 >conftest.err
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } &&
3921 { ac_try='test -z "$ac_c_werror_flag"
3922 || test ! -s conftest.err'
3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; } &&
3928 { ac_try='test -s conftest.$ac_objext'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; }; then
3934 ac_cv_have_decl_ferror_unlocked=yes
3936 echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3939 ac_cv_have_decl_ferror_unlocked=no
3941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3943 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
3944 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
3945 if test $ac_cv_have_decl_ferror_unlocked = yes; then
3947 cat >>confdefs.h <<_ACEOF
3948 #define HAVE_DECL_FERROR_UNLOCKED 1
3953 cat >>confdefs.h <<_ACEOF
3954 #define HAVE_DECL_FERROR_UNLOCKED 0
3959 echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
3960 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
3961 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 cat >conftest.$ac_ext <<_ACEOF
3967 cat confdefs.h >>conftest.$ac_ext
3968 cat >>conftest.$ac_ext <<_ACEOF
3969 /* end confdefs.h. */
3970 $ac_includes_default
3974 #ifndef fflush_unlocked
3975 char *p = (char *) fflush_unlocked;
3982 rm -f conftest.$ac_objext
3983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3984 (eval $ac_compile) 2>conftest.er1
3986 grep -v '^ *+' conftest.er1 >conftest.err
3988 cat conftest.err >&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); } &&
3991 { ac_try='test -z "$ac_c_werror_flag"
3992 || test ! -s conftest.err'
3993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }; } &&
3998 { ac_try='test -s conftest.$ac_objext'
3999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; }; then
4004 ac_cv_have_decl_fflush_unlocked=yes
4006 echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4009 ac_cv_have_decl_fflush_unlocked=no
4011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4013 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
4014 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
4015 if test $ac_cv_have_decl_fflush_unlocked = yes; then
4017 cat >>confdefs.h <<_ACEOF
4018 #define HAVE_DECL_FFLUSH_UNLOCKED 1
4023 cat >>confdefs.h <<_ACEOF
4024 #define HAVE_DECL_FFLUSH_UNLOCKED 0
4029 echo "$as_me:$LINENO: checking whether fgetc_unlocked is declared" >&5
4030 echo $ECHO_N "checking whether fgetc_unlocked is declared... $ECHO_C" >&6
4031 if test "${ac_cv_have_decl_fgetc_unlocked+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4034 cat >conftest.$ac_ext <<_ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h. */
4040 $ac_includes_default
4044 #ifndef fgetc_unlocked
4045 char *p = (char *) fgetc_unlocked;
4052 rm -f conftest.$ac_objext
4053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4054 (eval $ac_compile) 2>conftest.er1
4056 grep -v '^ *+' conftest.er1 >conftest.err
4058 cat conftest.err >&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); } &&
4061 { ac_try='test -z "$ac_c_werror_flag"
4062 || test ! -s conftest.err'
4063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; } &&
4068 { ac_try='test -s conftest.$ac_objext'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; }; then
4074 ac_cv_have_decl_fgetc_unlocked=yes
4076 echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4079 ac_cv_have_decl_fgetc_unlocked=no
4081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4083 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgetc_unlocked" >&5
4084 echo "${ECHO_T}$ac_cv_have_decl_fgetc_unlocked" >&6
4085 if test $ac_cv_have_decl_fgetc_unlocked = yes; then
4087 cat >>confdefs.h <<_ACEOF
4088 #define HAVE_DECL_FGETC_UNLOCKED 1
4093 cat >>confdefs.h <<_ACEOF
4094 #define HAVE_DECL_FGETC_UNLOCKED 0
4099 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
4100 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
4101 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 cat >conftest.$ac_ext <<_ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h. */
4110 $ac_includes_default
4114 #ifndef fgets_unlocked
4115 char *p = (char *) fgets_unlocked;
4122 rm -f conftest.$ac_objext
4123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4124 (eval $ac_compile) 2>conftest.er1
4126 grep -v '^ *+' conftest.er1 >conftest.err
4128 cat conftest.err >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); } &&
4131 { ac_try='test -z "$ac_c_werror_flag"
4132 || test ! -s conftest.err'
4133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; } &&
4138 { ac_try='test -s conftest.$ac_objext'
4139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); }; }; then
4144 ac_cv_have_decl_fgets_unlocked=yes
4146 echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.$ac_ext >&5
4149 ac_cv_have_decl_fgets_unlocked=no
4151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4153 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
4154 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
4155 if test $ac_cv_have_decl_fgets_unlocked = yes; then
4157 cat >>confdefs.h <<_ACEOF
4158 #define HAVE_DECL_FGETS_UNLOCKED 1
4163 cat >>confdefs.h <<_ACEOF
4164 #define HAVE_DECL_FGETS_UNLOCKED 0
4169 echo "$as_me:$LINENO: checking whether fileno_unlocked is declared" >&5
4170 echo $ECHO_N "checking whether fileno_unlocked is declared... $ECHO_C" >&6
4171 if test "${ac_cv_have_decl_fileno_unlocked+set}" = set; then
4172 echo $ECHO_N "(cached) $ECHO_C" >&6
4174 cat >conftest.$ac_ext <<_ACEOF
4177 cat confdefs.h >>conftest.$ac_ext
4178 cat >>conftest.$ac_ext <<_ACEOF
4179 /* end confdefs.h. */
4180 $ac_includes_default
4184 #ifndef fileno_unlocked
4185 char *p = (char *) fileno_unlocked;
4192 rm -f conftest.$ac_objext
4193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4194 (eval $ac_compile) 2>conftest.er1
4196 grep -v '^ *+' conftest.er1 >conftest.err
4198 cat conftest.err >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); } &&
4201 { ac_try='test -z "$ac_c_werror_flag"
4202 || test ! -s conftest.err'
4203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; } &&
4208 { ac_try='test -s conftest.$ac_objext'
4209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }; }; then
4214 ac_cv_have_decl_fileno_unlocked=yes
4216 echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4219 ac_cv_have_decl_fileno_unlocked=no
4221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4223 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fileno_unlocked" >&5
4224 echo "${ECHO_T}$ac_cv_have_decl_fileno_unlocked" >&6
4225 if test $ac_cv_have_decl_fileno_unlocked = yes; then
4227 cat >>confdefs.h <<_ACEOF
4228 #define HAVE_DECL_FILENO_UNLOCKED 1
4233 cat >>confdefs.h <<_ACEOF
4234 #define HAVE_DECL_FILENO_UNLOCKED 0
4239 echo "$as_me:$LINENO: checking whether fprintf_unlocked is declared" >&5
4240 echo $ECHO_N "checking whether fprintf_unlocked is declared... $ECHO_C" >&6
4241 if test "${ac_cv_have_decl_fprintf_unlocked+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 cat >conftest.$ac_ext <<_ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4250 $ac_includes_default
4254 #ifndef fprintf_unlocked
4255 char *p = (char *) fprintf_unlocked;
4262 rm -f conftest.$ac_objext
4263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4264 (eval $ac_compile) 2>conftest.er1
4266 grep -v '^ *+' conftest.er1 >conftest.err
4268 cat conftest.err >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } &&
4271 { ac_try='test -z "$ac_c_werror_flag"
4272 || test ! -s conftest.err'
4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; } &&
4278 { ac_try='test -s conftest.$ac_objext'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; }; then
4284 ac_cv_have_decl_fprintf_unlocked=yes
4286 echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4289 ac_cv_have_decl_fprintf_unlocked=no
4291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4293 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf_unlocked" >&5
4294 echo "${ECHO_T}$ac_cv_have_decl_fprintf_unlocked" >&6
4295 if test $ac_cv_have_decl_fprintf_unlocked = yes; then
4297 cat >>confdefs.h <<_ACEOF
4298 #define HAVE_DECL_FPRINTF_UNLOCKED 1
4303 cat >>confdefs.h <<_ACEOF
4304 #define HAVE_DECL_FPRINTF_UNLOCKED 0
4309 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
4310 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
4311 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 cat >conftest.$ac_ext <<_ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4320 $ac_includes_default
4324 #ifndef fputc_unlocked
4325 char *p = (char *) fputc_unlocked;
4332 rm -f conftest.$ac_objext
4333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4334 (eval $ac_compile) 2>conftest.er1
4336 grep -v '^ *+' conftest.er1 >conftest.err
4338 cat conftest.err >&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); } &&
4341 { ac_try='test -z "$ac_c_werror_flag"
4342 || test ! -s conftest.err'
4343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); }; } &&
4348 { ac_try='test -s conftest.$ac_objext'
4349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; }; then
4354 ac_cv_have_decl_fputc_unlocked=yes
4356 echo "$as_me: failed program was:" >&5
4357 sed 's/^/| /' conftest.$ac_ext >&5
4359 ac_cv_have_decl_fputc_unlocked=no
4361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4363 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
4364 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
4365 if test $ac_cv_have_decl_fputc_unlocked = yes; then
4367 cat >>confdefs.h <<_ACEOF
4368 #define HAVE_DECL_FPUTC_UNLOCKED 1
4373 cat >>confdefs.h <<_ACEOF
4374 #define HAVE_DECL_FPUTC_UNLOCKED 0
4379 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
4380 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
4381 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 cat >conftest.$ac_ext <<_ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h. */
4390 $ac_includes_default
4394 #ifndef fputs_unlocked
4395 char *p = (char *) fputs_unlocked;
4402 rm -f conftest.$ac_objext
4403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4404 (eval $ac_compile) 2>conftest.er1
4406 grep -v '^ *+' conftest.er1 >conftest.err
4408 cat conftest.err >&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); } &&
4411 { ac_try='test -z "$ac_c_werror_flag"
4412 || test ! -s conftest.err'
4413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; } &&
4418 { ac_try='test -s conftest.$ac_objext'
4419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }; }; then
4424 ac_cv_have_decl_fputs_unlocked=yes
4426 echo "$as_me: failed program was:" >&5
4427 sed 's/^/| /' conftest.$ac_ext >&5
4429 ac_cv_have_decl_fputs_unlocked=no
4431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4433 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
4434 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
4435 if test $ac_cv_have_decl_fputs_unlocked = yes; then
4437 cat >>confdefs.h <<_ACEOF
4438 #define HAVE_DECL_FPUTS_UNLOCKED 1
4443 cat >>confdefs.h <<_ACEOF
4444 #define HAVE_DECL_FPUTS_UNLOCKED 0
4449 echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
4450 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
4451 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4454 cat >conftest.$ac_ext <<_ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4460 $ac_includes_default
4464 #ifndef fread_unlocked
4465 char *p = (char *) fread_unlocked;
4472 rm -f conftest.$ac_objext
4473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4474 (eval $ac_compile) 2>conftest.er1
4476 grep -v '^ *+' conftest.er1 >conftest.err
4478 cat conftest.err >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); } &&
4481 { ac_try='test -z "$ac_c_werror_flag"
4482 || test ! -s conftest.err'
4483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); }; } &&
4488 { ac_try='test -s conftest.$ac_objext'
4489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; }; then
4494 ac_cv_have_decl_fread_unlocked=yes
4496 echo "$as_me: failed program was:" >&5
4497 sed 's/^/| /' conftest.$ac_ext >&5
4499 ac_cv_have_decl_fread_unlocked=no
4501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4503 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
4504 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
4505 if test $ac_cv_have_decl_fread_unlocked = yes; then
4507 cat >>confdefs.h <<_ACEOF
4508 #define HAVE_DECL_FREAD_UNLOCKED 1
4513 cat >>confdefs.h <<_ACEOF
4514 #define HAVE_DECL_FREAD_UNLOCKED 0
4519 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
4520 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
4521 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 cat >conftest.$ac_ext <<_ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4530 $ac_includes_default
4534 #ifndef fwrite_unlocked
4535 char *p = (char *) fwrite_unlocked;
4542 rm -f conftest.$ac_objext
4543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4544 (eval $ac_compile) 2>conftest.er1
4546 grep -v '^ *+' conftest.er1 >conftest.err
4548 cat conftest.err >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } &&
4551 { ac_try='test -z "$ac_c_werror_flag"
4552 || test ! -s conftest.err'
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; } &&
4558 { ac_try='test -s conftest.$ac_objext'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; }; then
4564 ac_cv_have_decl_fwrite_unlocked=yes
4566 echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4569 ac_cv_have_decl_fwrite_unlocked=no
4571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4573 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
4574 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
4575 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
4577 cat >>confdefs.h <<_ACEOF
4578 #define HAVE_DECL_FWRITE_UNLOCKED 1
4583 cat >>confdefs.h <<_ACEOF
4584 #define HAVE_DECL_FWRITE_UNLOCKED 0
4589 echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
4590 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
4591 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
4592 echo $ECHO_N "(cached) $ECHO_C" >&6
4594 cat >conftest.$ac_ext <<_ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4600 $ac_includes_default
4604 #ifndef getchar_unlocked
4605 char *p = (char *) getchar_unlocked;
4612 rm -f conftest.$ac_objext
4613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4614 (eval $ac_compile) 2>conftest.er1
4616 grep -v '^ *+' conftest.er1 >conftest.err
4618 cat conftest.err >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); } &&
4621 { ac_try='test -z "$ac_c_werror_flag"
4622 || test ! -s conftest.err'
4623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }; } &&
4628 { ac_try='test -s conftest.$ac_objext'
4629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }; }; then
4634 ac_cv_have_decl_getchar_unlocked=yes
4636 echo "$as_me: failed program was:" >&5
4637 sed 's/^/| /' conftest.$ac_ext >&5
4639 ac_cv_have_decl_getchar_unlocked=no
4641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4643 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
4644 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
4645 if test $ac_cv_have_decl_getchar_unlocked = yes; then
4647 cat >>confdefs.h <<_ACEOF
4648 #define HAVE_DECL_GETCHAR_UNLOCKED 1
4653 cat >>confdefs.h <<_ACEOF
4654 #define HAVE_DECL_GETCHAR_UNLOCKED 0
4659 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
4660 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
4661 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
4664 cat >conftest.$ac_ext <<_ACEOF
4667 cat confdefs.h >>conftest.$ac_ext
4668 cat >>conftest.$ac_ext <<_ACEOF
4669 /* end confdefs.h. */
4670 $ac_includes_default
4674 #ifndef getc_unlocked
4675 char *p = (char *) getc_unlocked;
4682 rm -f conftest.$ac_objext
4683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4684 (eval $ac_compile) 2>conftest.er1
4686 grep -v '^ *+' conftest.er1 >conftest.err
4688 cat conftest.err >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } &&
4691 { ac_try='test -z "$ac_c_werror_flag"
4692 || test ! -s conftest.err'
4693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; } &&
4698 { ac_try='test -s conftest.$ac_objext'
4699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }; }; then
4704 ac_cv_have_decl_getc_unlocked=yes
4706 echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.$ac_ext >&5
4709 ac_cv_have_decl_getc_unlocked=no
4711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4713 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
4714 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
4715 if test $ac_cv_have_decl_getc_unlocked = yes; then
4717 cat >>confdefs.h <<_ACEOF
4718 #define HAVE_DECL_GETC_UNLOCKED 1
4723 cat >>confdefs.h <<_ACEOF
4724 #define HAVE_DECL_GETC_UNLOCKED 0
4729 echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
4730 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
4731 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
4732 echo $ECHO_N "(cached) $ECHO_C" >&6
4734 cat >conftest.$ac_ext <<_ACEOF
4737 cat confdefs.h >>conftest.$ac_ext
4738 cat >>conftest.$ac_ext <<_ACEOF
4739 /* end confdefs.h. */
4740 $ac_includes_default
4744 #ifndef putchar_unlocked
4745 char *p = (char *) putchar_unlocked;
4752 rm -f conftest.$ac_objext
4753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4754 (eval $ac_compile) 2>conftest.er1
4756 grep -v '^ *+' conftest.er1 >conftest.err
4758 cat conftest.err >&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } &&
4761 { ac_try='test -z "$ac_c_werror_flag"
4762 || test ! -s conftest.err'
4763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }; } &&
4768 { ac_try='test -s conftest.$ac_objext'
4769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; }; then
4774 ac_cv_have_decl_putchar_unlocked=yes
4776 echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4779 ac_cv_have_decl_putchar_unlocked=no
4781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4783 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
4784 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
4785 if test $ac_cv_have_decl_putchar_unlocked = yes; then
4787 cat >>confdefs.h <<_ACEOF
4788 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
4793 cat >>confdefs.h <<_ACEOF
4794 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
4799 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
4800 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
4801 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 cat >conftest.$ac_ext <<_ACEOF
4807 cat confdefs.h >>conftest.$ac_ext
4808 cat >>conftest.$ac_ext <<_ACEOF
4809 /* end confdefs.h. */
4810 $ac_includes_default
4814 #ifndef putc_unlocked
4815 char *p = (char *) putc_unlocked;
4822 rm -f conftest.$ac_objext
4823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824 (eval $ac_compile) 2>conftest.er1
4826 grep -v '^ *+' conftest.er1 >conftest.err
4828 cat conftest.err >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } &&
4831 { ac_try='test -z "$ac_c_werror_flag"
4832 || test ! -s conftest.err'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; } &&
4838 { ac_try='test -s conftest.$ac_objext'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; }; then
4844 ac_cv_have_decl_putc_unlocked=yes
4846 echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.$ac_ext >&5
4849 ac_cv_have_decl_putc_unlocked=no
4851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4853 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
4854 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
4855 if test $ac_cv_have_decl_putc_unlocked = yes; then
4857 cat >>confdefs.h <<_ACEOF
4858 #define HAVE_DECL_PUTC_UNLOCKED 1
4863 cat >>confdefs.h <<_ACEOF
4864 #define HAVE_DECL_PUTC_UNLOCKED 0
4872 # Checks for typedefs, structures, and compiler characteristics.
4873 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4874 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4875 if test "${ac_cv_c_const+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4878 cat >conftest.$ac_ext <<_ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4888 /* FIXME: Include the comments suggested by Paul. */
4890 /* Ultrix mips cc rejects this. */
4891 typedef int charset[2];
4893 /* SunOS 4.1.1 cc rejects this. */
4894 char const *const *ccp;
4896 /* NEC SVR4.0.2 mips cc rejects this. */
4897 struct point {int x, y;};
4898 static struct point const zero = {0,0};
4899 /* AIX XL C 1.02.0.0 rejects this.
4900 It does not let you subtract one const X* pointer from another in
4901 an arm of an if-expression whose if-part is not a constant
4903 const char *g = "string";
4904 ccp = &g + (g ? g-g : 0);
4905 /* HPUX 7.0 cc rejects these. */
4908 ccp = (char const *const *) p;
4909 { /* SCO 3.2v4 cc rejects this. */
4911 char const *s = 0 ? (char *) 0 : (char const *) 0;
4915 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4917 const int *foo = &x[0];
4920 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4921 typedef const int *iptr;
4925 { /* AIX XL C 1.02.0.0 rejects this saying
4926 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4927 struct s { int j; const int *ap[3]; };
4928 struct s *b; b->j = 5;
4930 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4939 rm -f conftest.$ac_objext
4940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4941 (eval $ac_compile) 2>conftest.er1
4943 grep -v '^ *+' conftest.er1 >conftest.err
4945 cat conftest.err >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } &&
4948 { ac_try='test -z "$ac_c_werror_flag"
4949 || test ! -s conftest.err'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; } &&
4955 { ac_try='test -s conftest.$ac_objext'
4956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; }; then
4963 echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.$ac_ext >&5
4968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4970 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4971 echo "${ECHO_T}$ac_cv_c_const" >&6
4972 if test $ac_cv_c_const = no; then
4974 cat >>confdefs.h <<\_ACEOF
4981 # Checks for library functions.
4983 if test "${ac_cv_header_sys_mman_h+set}" = set; then
4984 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
4985 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
4986 if test "${ac_cv_header_sys_mman_h+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
4990 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
4992 # Is the header compilable?
4993 echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
4994 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6
4995 cat >conftest.$ac_ext <<_ACEOF
4998 cat confdefs.h >>conftest.$ac_ext
4999 cat >>conftest.$ac_ext <<_ACEOF
5000 /* end confdefs.h. */
5001 $ac_includes_default
5002 #include <sys/mman.h>
5004 rm -f conftest.$ac_objext
5005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5006 (eval $ac_compile) 2>conftest.er1
5008 grep -v '^ *+' conftest.er1 >conftest.err
5010 cat conftest.err >&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); } &&
5013 { ac_try='test -z "$ac_c_werror_flag"
5014 || test ! -s conftest.err'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; } &&
5020 { ac_try='test -s conftest.$ac_objext'
5021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); }; }; then
5026 ac_header_compiler=yes
5028 echo "$as_me: failed program was:" >&5
5029 sed 's/^/| /' conftest.$ac_ext >&5
5031 ac_header_compiler=no
5033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5034 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5035 echo "${ECHO_T}$ac_header_compiler" >&6
5037 # Is the header present?
5038 echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
5039 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6
5040 cat >conftest.$ac_ext <<_ACEOF
5043 cat confdefs.h >>conftest.$ac_ext
5044 cat >>conftest.$ac_ext <<_ACEOF
5045 /* end confdefs.h. */
5046 #include <sys/mman.h>
5048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5051 grep -v '^ *+' conftest.er1 >conftest.err
5053 cat conftest.err >&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } >/dev/null; then
5056 if test -s conftest.err; then
5057 ac_cpp_err=$ac_c_preproc_warn_flag
5058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5065 if test -z "$ac_cpp_err"; then
5066 ac_header_preproc=yes
5068 echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5071 ac_header_preproc=no
5073 rm -f conftest.err conftest.$ac_ext
5074 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5075 echo "${ECHO_T}$ac_header_preproc" >&6
5077 # So? What about this header?
5078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5080 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
5081 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5082 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
5083 echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
5084 ac_header_preproc=yes
5087 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
5088 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
5089 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
5090 echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
5091 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
5092 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
5093 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
5094 echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
5095 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
5096 echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
5097 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
5098 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
5101 ## -------------------------------------- ##
5102 ## Report this to the fixincludes lists. ##
5103 ## -------------------------------------- ##
5106 sed "s/^/$as_me: WARNING: /" >&2
5109 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
5110 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
5111 if test "${ac_cv_header_sys_mman_h+set}" = set; then
5112 echo $ECHO_N "(cached) $ECHO_C" >&6
5114 ac_cv_header_sys_mman_h=$ac_header_preproc
5116 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
5117 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
5120 if test $ac_cv_header_sys_mman_h = yes; then
5121 gcc_header_sys_mman_h=yes
5123 gcc_header_sys_mman_h=no
5127 echo "$as_me:$LINENO: checking for mmap" >&5
5128 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
5129 if test "${ac_cv_func_mmap+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 cat >conftest.$ac_ext <<_ACEOF
5135 cat confdefs.h >>conftest.$ac_ext
5136 cat >>conftest.$ac_ext <<_ACEOF
5137 /* end confdefs.h. */
5138 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
5139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5140 #define mmap innocuous_mmap
5142 /* System header to define __stub macros and hopefully few prototypes,
5143 which can conflict with char mmap (); below.
5144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5145 <limits.h> exists even on freestanding compilers. */
5148 # include <limits.h>
5150 # include <assert.h>
5155 /* Override any gcc2 internal prototype to avoid an error. */
5160 /* We use char because int might match the return type of a gcc2
5161 builtin and then its argument prototype would still apply. */
5163 /* The GNU C library defines this for functions which it implements
5164 to always fail with ENOSYS. Some functions are actually named
5165 something starting with __ and the normal name is an alias. */
5166 #if defined (__stub_mmap) || defined (__stub___mmap)
5169 char (*f) () = mmap;
5183 rm -f conftest.$ac_objext conftest$ac_exeext
5184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5185 (eval $ac_link) 2>conftest.er1
5187 grep -v '^ *+' conftest.er1 >conftest.err
5189 cat conftest.err >&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } &&
5192 { ac_try='test -z "$ac_c_werror_flag"
5193 || test ! -s conftest.err'
5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); }; } &&
5199 { ac_try='test -s conftest$ac_exeext'
5200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); }; }; then
5207 echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5212 rm -f conftest.err conftest.$ac_objext \
5213 conftest$ac_exeext conftest.$ac_ext
5215 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
5216 echo "${ECHO_T}$ac_cv_func_mmap" >&6
5217 if test $ac_cv_func_mmap = yes; then
5223 if test "$gcc_header_sys_mman_h" != yes \
5224 || test "$gcc_func_mmap" != yes; then
5225 gcc_cv_func_mmap_file=no
5226 gcc_cv_func_mmap_dev_zero=no
5227 gcc_cv_func_mmap_anon=no
5229 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
5230 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
5231 if test "${gcc_cv_func_mmap_file+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5234 # Add a system to this blacklist if
5235 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
5236 # memory area containing the same data that you'd get if you applied
5237 # read() to the same fd. The only system known to have a problem here
5238 # is VMS, where text files have record structure.
5241 gcc_cv_func_mmap_file=no ;;
5243 gcc_cv_func_mmap_file=yes;;
5246 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
5247 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
5248 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
5249 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
5250 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5253 # Add a system to this blacklist if it has mmap() but /dev/zero
5254 # does not exist, or if mmapping /dev/zero does not give anonymous
5255 # zeroed pages with both the following properties:
5256 # 1. If you map N consecutive pages in with one call, and then
5257 # unmap any subset of those pages, the pages that were not
5258 # explicitly unmapped remain accessible.
5259 # 2. If you map two adjacent blocks of memory and then unmap them
5260 # both at once, they must both go away.
5261 # Systems known to be in this category are Windows (all variants),
5264 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
5265 gcc_cv_func_mmap_dev_zero=no ;;
5267 gcc_cv_func_mmap_dev_zero=yes;;
5270 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
5271 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
5273 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
5274 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
5275 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
5276 if test "${gcc_cv_decl_map_anon+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 cat >conftest.$ac_ext <<_ACEOF
5282 cat confdefs.h >>conftest.$ac_ext
5283 cat >>conftest.$ac_ext <<_ACEOF
5284 /* end confdefs.h. */
5285 #include <sys/types.h>
5286 #include <sys/mman.h>
5289 #ifndef MAP_ANONYMOUS
5290 #define MAP_ANONYMOUS MAP_ANON
5296 int n = MAP_ANONYMOUS;
5301 rm -f conftest.$ac_objext
5302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5303 (eval $ac_compile) 2>conftest.er1
5305 grep -v '^ *+' conftest.er1 >conftest.err
5307 cat conftest.err >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } &&
5310 { ac_try='test -z "$ac_c_werror_flag"
5311 || test ! -s conftest.err'
5312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; } &&
5317 { ac_try='test -s conftest.$ac_objext'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; }; then
5323 gcc_cv_decl_map_anon=yes
5325 echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5328 gcc_cv_decl_map_anon=no
5330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5332 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
5333 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
5335 if test $gcc_cv_decl_map_anon = no; then
5336 gcc_cv_func_mmap_anon=no
5338 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
5339 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
5340 if test "${gcc_cv_func_mmap_anon+set}" = set; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5343 # Add a system to this blacklist if it has mmap() and MAP_ANON or
5344 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
5345 # doesn't give anonymous zeroed pages with the same properties listed
5346 # above for use of /dev/zero.
5347 # Systems known to be in this category are Windows, VMS, and SCO Unix.
5349 vms* | cygwin* | pe | mingw* | sco* | udk* )
5350 gcc_cv_func_mmap_anon=no ;;
5352 gcc_cv_func_mmap_anon=yes;;
5355 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
5356 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
5360 if test $gcc_cv_func_mmap_file = yes; then
5362 cat >>confdefs.h <<\_ACEOF
5363 #define HAVE_MMAP_FILE 1
5367 if test $gcc_cv_func_mmap_dev_zero = yes; then
5369 cat >>confdefs.h <<\_ACEOF
5370 #define HAVE_MMAP_DEV_ZERO 1
5374 if test $gcc_cv_func_mmap_anon = yes; then
5376 cat >>confdefs.h <<\_ACEOF
5377 #define HAVE_MMAP_ANON 1
5383 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5384 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5385 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5386 if test "${enable_maintainer_mode+set}" = set; then
5387 enableval="$enable_maintainer_mode"
5388 USE_MAINTAINER_MODE=$enableval
5390 USE_MAINTAINER_MODE=no
5392 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5393 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5394 if test "$USE_MAINTAINER_MODE" = yes; then
5401 ac_config_headers="$ac_config_headers config.h"
5403 ac_config_files="$ac_config_files Makefile mkheaders.almost:mkheaders.in"
5405 cat >confcache <<\_ACEOF
5406 # This file is a shell script that caches the results of configure
5407 # tests run on this system so they can be shared between configure
5408 # scripts and configure runs, see configure's option --config-cache.
5409 # It is not useful on other systems. If it contains results you don't
5410 # want to keep, you may remove or edit it.
5412 # config.status only pays attention to the cache file if you give it
5413 # the --recheck option to rerun configure.
5415 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5416 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5421 # The following way of writing the cache mishandles newlines in values,
5422 # but we know of no workaround that is simple, portable, and efficient.
5423 # So, don't put newlines in cache variables' values.
5424 # Ultrix sh set writes to stderr and can't be redirected directly,
5425 # and sets the high bit in the cache file unless we assign to the vars.
5428 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5430 # `set' does not quote correctly, so add quotes (double-quote
5431 # substitution turns \\\\ into \\, and sed turns \\ into \).
5434 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5437 # `set' quotes correctly as required by POSIX, so do not add quotes.
5439 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5446 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5448 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5450 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5451 if test -w $cache_file; then
5452 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5453 cat confcache >$cache_file
5455 echo "not updating unwritable cache $cache_file"
5460 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5461 # Let make expand exec_prefix.
5462 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5464 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5465 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5466 # trailing colons and then remove the whole line if VPATH becomes empty
5467 # (actually we leave an empty line to preserve line numbers).
5468 if test "x$srcdir" = x.; then
5469 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5470 s/:*\$(srcdir):*/:/;
5471 s/:*\${srcdir}:*/:/;
5473 s/^\([^=]*=[ ]*\):*/\1/;
5479 DEFS=-DHAVE_CONFIG_H
5483 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5484 # 1. Remove the extension, and $U if already installed.
5485 ac_i=`echo "$ac_i" |
5486 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5488 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5489 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5493 LTLIBOBJS=$ac_ltlibobjs
5497 : ${CONFIG_STATUS=./config.status}
5498 ac_clean_files_save=$ac_clean_files
5499 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5500 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5501 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5502 cat >$CONFIG_STATUS <<_ACEOF
5504 # Generated by $as_me.
5505 # Run this file to recreate the current configuration.
5506 # Compiler output produced by configure, useful for debugging
5507 # configure, is in config.log if it exists.
5512 SHELL=\${CONFIG_SHELL-$SHELL}
5515 cat >>$CONFIG_STATUS <<\_ACEOF
5516 ## --------------------- ##
5517 ## M4sh Initialization. ##
5518 ## --------------------- ##
5520 # Be Bourne compatible
5521 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5524 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5525 # is contrary to our usage. Disable this feature.
5526 alias -g '${1+"$@"}'='"$@"'
5527 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5530 DUALCASE=1; export DUALCASE # for MKS sh
5532 # Support unset when possible.
5533 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5540 # Work around bugs in pre-3.0 UWIN ksh.
5541 $as_unset ENV MAIL MAILPATH
5548 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5549 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5550 LC_TELEPHONE LC_TIME
5552 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5553 eval $as_var=C; export $as_var
5559 # Required to use basename.
5560 if expr a : '\(a\)' >/dev/null 2>&1; then
5566 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5567 as_basename=basename
5573 # Name of the executable.
5574 as_me=`$as_basename "$0" ||
5575 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5576 X"$0" : 'X\(//\)$' \| \
5577 X"$0" : 'X\(/\)$' \| \
5578 . : '\(.\)' 2>/dev/null ||
5580 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5581 /^X\/\(\/\/\)$/{ s//\1/; q; }
5582 /^X\/\(\/\).*/{ s//\1/; q; }
5586 # PATH needs CR, and LINENO needs CR and PATH.
5587 # Avoid depending upon Character Ranges.
5588 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5589 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5590 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5591 as_cr_digits='0123456789'
5592 as_cr_alnum=$as_cr_Letters$as_cr_digits
5594 # The user is always right.
5595 if test "${PATH_SEPARATOR+set}" != set; then
5596 echo "#! /bin/sh" >conf$$.sh
5597 echo "exit 0" >>conf$$.sh
5599 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5610 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5611 test "x$as_lineno_1" != "x$as_lineno_2" &&
5612 test "x$as_lineno_3" = "x$as_lineno_2" || {
5613 # Find who we are. Look in the path if we contain no path at all
5616 *[\\/]* ) as_myself=$0 ;;
5617 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 test -z "$as_dir" && as_dir=.
5622 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5627 # We did not find ourselves, most probably we were run as `sh COMMAND'
5628 # in which case we are not to be found in the path.
5629 if test "x$as_myself" = x; then
5632 if test ! -f "$as_myself"; then
5633 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5634 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5635 { (exit 1); exit 1; }; }
5637 case $CONFIG_SHELL in
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5643 test -z "$as_dir" && as_dir=.
5644 for as_base in sh bash ksh sh5; do
5647 if ("$as_dir/$as_base" -c '
5650 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5651 test "x$as_lineno_1" != "x$as_lineno_2" &&
5652 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5653 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5654 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5655 CONFIG_SHELL=$as_dir/$as_base
5657 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5665 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5666 # uniformly replaced by the line number. The first 'sed' inserts a
5667 # line-number line before each line; the second 'sed' does the real
5668 # work. The second script uses 'N' to pair each line-number line
5669 # with the numbered line, and appends trailing '-' during
5670 # substitution so that $LINENO is not a special case at line end.
5671 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5672 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5673 sed '=' <$as_myself |
5678 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5681 s,^['$as_cr_digits']*\n,,
5683 chmod +x $as_me.lineno ||
5684 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5685 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5686 { (exit 1); exit 1; }; }
5688 # Don't try to exec as it changes $[0], causing all sort of problems
5689 # (the dirname of $[0] is not the place where we might find the
5690 # original and so on. Autoconf is especially sensible to this).
5692 # Exit status is that of the last command.
5697 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5698 *c*,-n*) ECHO_N= ECHO_C='
5700 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5701 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5704 if expr a : '\(a\)' >/dev/null 2>&1; then
5710 rm -f conf$$ conf$$.exe conf$$.file
5712 if ln -s conf$$.file conf$$ 2>/dev/null; then
5713 # We could just check for DJGPP; but this test a) works b) is more generic
5714 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5715 if test -f conf$$.exe; then
5716 # Don't use ln at all; we don't have any links
5721 elif ln conf$$.file conf$$ 2>/dev/null; then
5726 rm -f conf$$ conf$$.exe conf$$.file
5728 if mkdir -p . 2>/dev/null; then
5731 test -d ./-p && rmdir ./-p
5735 as_executable_p="test -f"
5737 # Sed expression to map a string onto a valid CPP name.
5738 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5740 # Sed expression to map a string onto a valid variable name.
5741 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5745 # We need space, tab and new line, in precisely that order.
5755 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5756 # report actual input values of CONFIG_FILES etc. instead of their
5757 # values after options handling. Logging --version etc. is OK.
5761 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5762 ## Running $as_me. ##
5767 This file was extended by fixincludes $as_me , which was
5768 generated by GNU Autoconf 2.59. Invocation command line was
5770 CONFIG_FILES = $CONFIG_FILES
5771 CONFIG_HEADERS = $CONFIG_HEADERS
5772 CONFIG_LINKS = $CONFIG_LINKS
5773 CONFIG_COMMANDS = $CONFIG_COMMANDS
5777 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5781 # Files that config.status was made for.
5782 if test -n "$ac_config_files"; then
5783 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5786 if test -n "$ac_config_headers"; then
5787 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5790 if test -n "$ac_config_links"; then
5791 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5794 if test -n "$ac_config_commands"; then
5795 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5798 cat >>$CONFIG_STATUS <<\_ACEOF
5801 \`$as_me' instantiates files from templates according to the
5802 current configuration.
5804 Usage: $0 [OPTIONS] [FILE]...
5806 -h, --help print this help, then exit
5807 -V, --version print version number, then exit
5808 -q, --quiet do not print progress messages
5809 -d, --debug don't remove temporary files
5810 --recheck update $as_me by reconfiguring in the same conditions
5811 --file=FILE[:TEMPLATE]
5812 instantiate the configuration file FILE
5813 --header=FILE[:TEMPLATE]
5814 instantiate the configuration header FILE
5816 Configuration files:
5819 Configuration headers:
5822 Report bugs to <bug-autoconf@gnu.org>."
5825 cat >>$CONFIG_STATUS <<_ACEOF
5827 fixincludes config.status
5828 configured by $0, generated by GNU Autoconf 2.59,
5829 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5831 Copyright (C) 2003 Free Software Foundation, Inc.
5832 This config.status script is free software; the Free Software Foundation
5833 gives unlimited permission to copy, distribute and modify it."
5837 cat >>$CONFIG_STATUS <<\_ACEOF
5838 # If no file are specified by the user, then we need to provide default
5839 # value. By we need to know if files were specified by the user.
5845 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5846 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5854 *) # This is not an option, so the user has probably given explicit
5857 ac_need_defaults=false;;
5861 # Handling of the options.
5863 cat >>$CONFIG_STATUS <<\_ACEOF
5864 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5866 --version | --vers* | -V )
5867 echo "$ac_cs_version"; exit 0 ;;
5869 # Conflict between --help and --header
5870 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5871 Try \`$0 --help' for more information." >&5
5872 echo "$as_me: error: ambiguous option: $1
5873 Try \`$0 --help' for more information." >&2;}
5874 { (exit 1); exit 1; }; };;
5875 --help | --hel | -h )
5876 echo "$ac_cs_usage"; exit 0 ;;
5877 --debug | --d* | -d )
5879 --file | --fil | --fi | --f )
5881 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5882 ac_need_defaults=false;;
5883 --header | --heade | --head | --hea )
5885 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5886 ac_need_defaults=false;;
5887 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5888 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5892 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5893 Try \`$0 --help' for more information." >&5
5894 echo "$as_me: error: unrecognized option: $1
5895 Try \`$0 --help' for more information." >&2;}
5896 { (exit 1); exit 1; }; } ;;
5898 *) ac_config_targets="$ac_config_targets $1" ;;
5904 ac_configure_extra_args=
5906 if $ac_cs_silent; then
5908 ac_configure_extra_args="$ac_configure_extra_args --silent"
5912 cat >>$CONFIG_STATUS <<_ACEOF
5913 if \$ac_cs_recheck; then
5914 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5915 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5924 cat >>$CONFIG_STATUS <<\_ACEOF
5925 for ac_config_target in $ac_config_targets
5927 case "$ac_config_target" in
5928 # Handling of arguments.
5929 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5930 "mkheaders.almost" ) CONFIG_FILES="$CONFIG_FILES mkheaders.almost:mkheaders.in" ;;
5931 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5932 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5933 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5934 { (exit 1); exit 1; }; };;
5938 # If the user did not use the arguments to specify the items to instantiate,
5939 # then the envvar interface is used. Set only those that are not.
5940 # We use the long form for the default assignment because of an extremely
5941 # bizarre bug on SunOS 4.1.3.
5942 if $ac_need_defaults; then
5943 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5944 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5947 # Have a temporary directory for convenience. Make it in the build tree
5948 # simply because there is no reason to put it here, and in addition,
5949 # creating and moving files from /tmp can sometimes cause problems.
5950 # Create a temporary directory, and hook for its removal unless debugging.
5953 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5954 trap '{ (exit 1); exit 1; }' 1 2 13 15
5957 # Create a (secure) tmp directory for tmp files.
5960 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5961 test -n "$tmp" && test -d "$tmp"
5964 tmp=./confstat$$-$RANDOM
5965 (umask 077 && mkdir $tmp)
5968 echo "$me: cannot create a temporary directory in ." >&2
5969 { (exit 1); exit 1; }
5974 cat >>$CONFIG_STATUS <<_ACEOF
5977 # CONFIG_FILES section.
5980 # No need to generate the scripts if there are no CONFIG_FILES.
5981 # This happens for instance when ./config.status config.h
5982 if test -n "\$CONFIG_FILES"; then
5983 # Protect against being on the right side of a sed subst in config.status.
5984 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5985 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5986 s,@SHELL@,$SHELL,;t t
5987 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5988 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5989 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5990 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5991 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5992 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5993 s,@exec_prefix@,$exec_prefix,;t t
5994 s,@prefix@,$prefix,;t t
5995 s,@program_transform_name@,$program_transform_name,;t t
5996 s,@bindir@,$bindir,;t t
5997 s,@sbindir@,$sbindir,;t t
5998 s,@libexecdir@,$libexecdir,;t t
5999 s,@datadir@,$datadir,;t t
6000 s,@sysconfdir@,$sysconfdir,;t t
6001 s,@sharedstatedir@,$sharedstatedir,;t t
6002 s,@localstatedir@,$localstatedir,;t t
6003 s,@libdir@,$libdir,;t t
6004 s,@includedir@,$includedir,;t t
6005 s,@oldincludedir@,$oldincludedir,;t t
6006 s,@infodir@,$infodir,;t t
6007 s,@mandir@,$mandir,;t t
6008 s,@build_alias@,$build_alias,;t t
6009 s,@host_alias@,$host_alias,;t t
6010 s,@target_alias@,$target_alias,;t t
6012 s,@ECHO_C@,$ECHO_C,;t t
6013 s,@ECHO_N@,$ECHO_N,;t t
6014 s,@ECHO_T@,$ECHO_T,;t t
6016 s,@build@,$build,;t t
6017 s,@build_cpu@,$build_cpu,;t t
6018 s,@build_vendor@,$build_vendor,;t t
6019 s,@build_os@,$build_os,;t t
6021 s,@host_cpu@,$host_cpu,;t t
6022 s,@host_vendor@,$host_vendor,;t t
6023 s,@host_os@,$host_os,;t t
6024 s,@target@,$target,;t t
6025 s,@target_cpu@,$target_cpu,;t t
6026 s,@target_vendor@,$target_vendor,;t t
6027 s,@target_os@,$target_os,;t t
6029 s,@CFLAGS@,$CFLAGS,;t t
6030 s,@LDFLAGS@,$LDFLAGS,;t t
6031 s,@CPPFLAGS@,$CPPFLAGS,;t t
6032 s,@ac_ct_CC@,$ac_ct_CC,;t t
6033 s,@EXEEXT@,$EXEEXT,;t t
6034 s,@OBJEXT@,$OBJEXT,;t t
6035 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
6036 s,@WARN_PEDANTIC@,$WARN_PEDANTIC,;t t
6037 s,@WERROR@,$WERROR,;t t
6038 s,@target_noncanonical@,$target_noncanonical,;t t
6039 s,@TARGET@,$TARGET,;t t
6041 s,@EGREP@,$EGREP,;t t
6042 s,@MAINT@,$MAINT,;t t
6043 s,@LIBOBJS@,$LIBOBJS,;t t
6044 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6049 cat >>$CONFIG_STATUS <<\_ACEOF
6050 # Split the substitutions into bite-sized pieces for seds with
6051 # small command number limits, like on Digital OSF/1 and HP-UX.
6053 ac_sed_frag=1 # Number of current file.
6054 ac_beg=1 # First line for current file.
6055 ac_end=$ac_max_sed_lines # Line after last line for current file.
6058 while $ac_more_lines; do
6059 if test $ac_beg -gt 1; then
6060 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6062 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6064 if test ! -s $tmp/subs.frag; then
6067 # The purpose of the label and of the branching condition is to
6068 # speed up the sed processing (if there are no `@' at all, there
6069 # is no need to browse any of the substitutions).
6070 # These are the two extra sed commands mentioned above.
6072 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6073 if test -z "$ac_sed_cmds"; then
6074 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6076 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6078 ac_sed_frag=`expr $ac_sed_frag + 1`
6080 ac_end=`expr $ac_end + $ac_max_sed_lines`
6083 if test -z "$ac_sed_cmds"; then
6086 fi # test -n "$CONFIG_FILES"
6089 cat >>$CONFIG_STATUS <<\_ACEOF
6090 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6091 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6093 - | *:- | *:-:* ) # input from stdin
6095 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6096 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6097 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6098 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6099 * ) ac_file_in=$ac_file.in ;;
6102 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6103 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6104 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6105 X"$ac_file" : 'X\(//\)[^/]' \| \
6106 X"$ac_file" : 'X\(//\)$' \| \
6107 X"$ac_file" : 'X\(/\)' \| \
6108 . : '\(.\)' 2>/dev/null ||
6110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6111 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6112 /^X\(\/\/\)$/{ s//\1/; q; }
6113 /^X\(\/\).*/{ s//\1/; q; }
6115 { if $as_mkdir_p; then
6120 while test ! -d "$as_dir"; do
6121 as_dirs="$as_dir $as_dirs"
6122 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6123 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6124 X"$as_dir" : 'X\(//\)[^/]' \| \
6125 X"$as_dir" : 'X\(//\)$' \| \
6126 X"$as_dir" : 'X\(/\)' \| \
6127 . : '\(.\)' 2>/dev/null ||
6129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6130 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6131 /^X\(\/\/\)$/{ s//\1/; q; }
6132 /^X\(\/\).*/{ s//\1/; q; }
6135 test ! -n "$as_dirs" || mkdir $as_dirs
6136 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6137 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6138 { (exit 1); exit 1; }; }; }
6142 if test "$ac_dir" != .; then
6143 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6144 # A "../" for each directory in $ac_dir_suffix.
6145 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6147 ac_dir_suffix= ac_top_builddir=
6151 .) # No --srcdir option. We are building in place.
6153 if test -z "$ac_top_builddir"; then
6156 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6158 [\\/]* | ?:[\\/]* ) # Absolute path.
6159 ac_srcdir=$srcdir$ac_dir_suffix;
6160 ac_top_srcdir=$srcdir ;;
6162 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6163 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6166 # Do not use `cd foo && pwd` to compute absolute paths, because
6167 # the directories may not exist.
6169 .) ac_abs_builddir="$ac_dir";;
6172 .) ac_abs_builddir=`pwd`;;
6173 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6174 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6177 case $ac_abs_builddir in
6178 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6180 case ${ac_top_builddir}. in
6181 .) ac_abs_top_builddir=$ac_abs_builddir;;
6182 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6183 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6186 case $ac_abs_builddir in
6187 .) ac_abs_srcdir=$ac_srcdir;;
6190 .) ac_abs_srcdir=$ac_abs_builddir;;
6191 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6192 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6195 case $ac_abs_builddir in
6196 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6198 case $ac_top_srcdir in
6199 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6200 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6201 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6207 if test x"$ac_file" != x-; then
6208 { echo "$as_me:$LINENO: creating $ac_file" >&5
6209 echo "$as_me: creating $ac_file" >&6;}
6212 # Let's still pretend it is `configure' which instantiates (i.e., don't
6213 # use $as_me), people would be surprised to read:
6214 # /* config.h. Generated by config.status. */
6215 if test x"$ac_file" = x-; then
6218 configure_input="$ac_file. "
6220 configure_input=$configure_input"Generated from `echo $ac_file_in |
6221 sed 's,.*/,,'` by configure."
6223 # First look for the input files in the build tree, otherwise in the
6225 ac_file_inputs=`IFS=:
6226 for f in $ac_file_in; do
6228 -) echo $tmp/stdin ;;
6230 # Absolute (can't be DOS-style, as IFS=:)
6231 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6232 echo "$as_me: error: cannot find input file: $f" >&2;}
6233 { (exit 1); exit 1; }; }
6236 if test -f "$f"; then
6239 elif test -f "$srcdir/$f"; then
6244 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6245 echo "$as_me: error: cannot find input file: $f" >&2;}
6246 { (exit 1); exit 1; }; }
6249 done` || { (exit 1); exit 1; }
6251 cat >>$CONFIG_STATUS <<_ACEOF
6255 cat >>$CONFIG_STATUS <<\_ACEOF
6257 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6258 s,@configure_input@,$configure_input,;t t
6259 s,@srcdir@,$ac_srcdir,;t t
6260 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6261 s,@top_srcdir@,$ac_top_srcdir,;t t
6262 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6263 s,@builddir@,$ac_builddir,;t t
6264 s,@abs_builddir@,$ac_abs_builddir,;t t
6265 s,@top_builddir@,$ac_top_builddir,;t t
6266 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6267 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6269 if test x"$ac_file" != x-; then
6270 mv $tmp/out $ac_file
6278 cat >>$CONFIG_STATUS <<\_ACEOF
6281 # CONFIG_HEADER section.
6284 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6285 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6287 # ac_d sets the value in "#define NAME VALUE" lines.
6288 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6289 ac_dB='[ ].*$,\1#\2'
6292 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6293 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6294 ac_uB='$,\1#\2define\3'
6298 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6299 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6301 - | *:- | *:-:* ) # input from stdin
6303 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6304 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6305 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6306 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6307 * ) ac_file_in=$ac_file.in ;;
6310 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6311 echo "$as_me: creating $ac_file" >&6;}
6313 # First look for the input files in the build tree, otherwise in the
6315 ac_file_inputs=`IFS=:
6316 for f in $ac_file_in; do
6318 -) echo $tmp/stdin ;;
6320 # Absolute (can't be DOS-style, as IFS=:)
6321 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6322 echo "$as_me: error: cannot find input file: $f" >&2;}
6323 { (exit 1); exit 1; }; }
6324 # Do quote $f, to prevent DOS paths from being IFS'd.
6327 if test -f "$f"; then
6330 elif test -f "$srcdir/$f"; then
6335 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6336 echo "$as_me: error: cannot find input file: $f" >&2;}
6337 { (exit 1); exit 1; }; }
6340 done` || { (exit 1); exit 1; }
6341 # Remove the trailing spaces.
6342 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6346 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6347 # `conftest.undefs', that substitutes the proper values into
6348 # config.h.in to produce config.h. The first handles `#define'
6349 # templates, and the second `#undef' templates.
6350 # And first: Protect against being on the right side of a sed subst in
6351 # config.status. Protect against being in an unquoted here document
6353 rm -f conftest.defines conftest.undefs
6354 # Using a here document instead of a string reduces the quoting nightmare.
6355 # Putting comments in sed scripts is not portable.
6357 # `end' is used to avoid that the second main sed command (meant for
6358 # 0-ary CPP macros) applies to n-ary macro definitions.
6359 # See the Autoconf documentation for `clear'.
6360 cat >confdef2sed.sed <<\_ACEOF
6365 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6367 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6370 # If some macros were called several times there might be several times
6371 # the same #defines, which is useless. Nevertheless, we may not want to
6372 # sort them, since we want the *last* AC-DEFINE to be honored.
6373 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6374 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6375 rm -f confdef2sed.sed
6377 # This sed command replaces #undef with comments. This is necessary, for
6378 # example, in the case of _POSIX_SOURCE, which is predefined and required
6379 # on some systems where configure will not decide to define it.
6380 cat >>conftest.undefs <<\_ACEOF
6381 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6384 # Break up conftest.defines because some shells have a limit on the size
6385 # of here documents, and old seds have small limits too (100 cmds).
6386 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6387 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6388 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6389 echo ' :' >>$CONFIG_STATUS
6391 while grep . conftest.defines >/dev/null
6393 # Write a limited-size here document to $tmp/defines.sed.
6394 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6395 # Speed up: don't consider the non `#define' lines.
6396 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6397 # Work around the forget-to-reset-the-flag bug.
6398 echo 't clr' >>$CONFIG_STATUS
6399 echo ': clr' >>$CONFIG_STATUS
6400 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6402 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6406 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6407 rm -f conftest.defines
6408 mv conftest.tail conftest.defines
6410 rm -f conftest.defines
6411 echo ' fi # grep' >>$CONFIG_STATUS
6412 echo >>$CONFIG_STATUS
6414 # Break up conftest.undefs because some shells have a limit on the size
6415 # of here documents, and old seds have small limits too (100 cmds).
6416 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6418 while grep . conftest.undefs >/dev/null
6420 # Write a limited-size here document to $tmp/undefs.sed.
6421 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6422 # Speed up: don't consider the non `#undef'
6423 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6424 # Work around the forget-to-reset-the-flag bug.
6425 echo 't clr' >>$CONFIG_STATUS
6426 echo ': clr' >>$CONFIG_STATUS
6427 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6429 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6433 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6434 rm -f conftest.undefs
6435 mv conftest.tail conftest.undefs
6437 rm -f conftest.undefs
6439 cat >>$CONFIG_STATUS <<\_ACEOF
6440 # Let's still pretend it is `configure' which instantiates (i.e., don't
6441 # use $as_me), people would be surprised to read:
6442 # /* config.h. Generated by config.status. */
6443 if test x"$ac_file" = x-; then
6444 echo "/* Generated by configure. */" >$tmp/config.h
6446 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6448 cat $tmp/in >>$tmp/config.h
6450 if test x"$ac_file" != x-; then
6451 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6452 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6453 echo "$as_me: $ac_file is unchanged" >&6;}
6455 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6456 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6457 X"$ac_file" : 'X\(//\)[^/]' \| \
6458 X"$ac_file" : 'X\(//\)$' \| \
6459 X"$ac_file" : 'X\(/\)' \| \
6460 . : '\(.\)' 2>/dev/null ||
6462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6463 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6464 /^X\(\/\/\)$/{ s//\1/; q; }
6465 /^X\(\/\).*/{ s//\1/; q; }
6467 { if $as_mkdir_p; then
6472 while test ! -d "$as_dir"; do
6473 as_dirs="$as_dir $as_dirs"
6474 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6475 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6476 X"$as_dir" : 'X\(//\)[^/]' \| \
6477 X"$as_dir" : 'X\(//\)$' \| \
6478 X"$as_dir" : 'X\(/\)' \| \
6479 . : '\(.\)' 2>/dev/null ||
6481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6482 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6483 /^X\(\/\/\)$/{ s//\1/; q; }
6484 /^X\(\/\).*/{ s//\1/; q; }
6487 test ! -n "$as_dirs" || mkdir $as_dirs
6488 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6489 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6490 { (exit 1); exit 1; }; }; }
6493 mv $tmp/config.h $ac_file
6499 # Run the commands associated with the file.
6501 config.h ) echo timestamp > stamp-h ;;
6506 cat >>$CONFIG_STATUS <<\_ACEOF
6508 { (exit 0); exit 0; }
6510 chmod +x $CONFIG_STATUS
6511 ac_clean_files=$ac_clean_files_save
6514 # configure is writing to config.log, and then calls config.status.
6515 # config.status does its own redirection, appending to config.log.
6516 # Unfortunately, on DOS this fails, as config.log is still kept open
6517 # by configure, so config.status won't be able to write to it; its
6518 # output is simply discarded. So we exec the FD to /dev/null,
6519 # effectively closing config.log, so it can be properly (re)opened and
6520 # appended to by config.status. When coming back to configure, we
6521 # need to make the FD available again.
6522 if test "$no_create" != yes; then
6524 ac_config_status_args=
6525 test "$silent" = yes &&
6526 ac_config_status_args="$ac_config_status_args --quiet"
6528 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6530 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6531 # would make configure fail if this is the last instruction.
6532 $ac_cs_success || { (exit 1); exit 1; }