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 SED 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 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1360 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1361 # 2006, 2007 Free Software Foundation, Inc.
1363 # This file is part of GNU Libtool:
1364 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
1366 # This file is free software; the Free Software Foundation gives
1367 # unlimited permission to copy and/or distribute it, with or without
1368 # modifications, as long as this notice is preserved.
1375 # LT_PREREQ(VERSION)
1376 # ------------------
1377 # Complain and exit if this libtool version is less that VERSION.
1381 # LT_INIT([OPTIONS])
1382 # ------------------
1390 # _LT_CC_BASENAME(CC)
1391 # -------------------
1392 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
1396 # _LT_FILEUTILS_DEFAULTS
1397 # ----------------------
1398 # It is okay to use these file commands and assume they have been set
1399 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
1400 # _LT_FILEUTILS_DEFAULTS
1410 # Note that this code is called both from `configure', and `config.status'
1411 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
1412 # `config.status' has no value for ac_aux_dir unless we are using Automake,
1413 # so we pass a copy along to make sure it has a sensible value anyway.
1417 ## ------------------------------------- ##
1418 ## Accumulate code for creating libtool. ##
1419 ## ------------------------------------- ##
1421 # So that we can recreate a full libtool script including additional
1422 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
1423 # in macros and then make a single call at the end using the `libtool'
1427 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
1428 # ----------------------------------------
1429 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1436 # _LT_CONFIG_LIBTOOL([COMMANDS])
1437 # ------------------------------
1438 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1445 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
1446 # -----------------------------------------------------
1450 # _LT_FORMAT_COMMENT([COMMENT])
1451 # -----------------------------
1452 # Add leading comment marks to the start of each line, and a trailing
1453 # full-stop to the whole comment if one is not present already.
1458 ## ------------------------ ##
1459 ## FIXME: Eliminate VARNAME ##
1460 ## ------------------------ ##
1463 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
1464 # -------------------------------------------------------------------
1465 # CONFIGNAME is the name given to the value in the libtool script.
1466 # VARNAME is the (base) name used in the configure script.
1467 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1468 # VARNAME. Any other value will be used directly.
1472 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1473 # --------------------------------------------------------
1477 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1478 # ------------------------------------------------
1482 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1483 # ---------------------------------------------------------
1487 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1488 # --------------------------------------------------
1492 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1493 # ---------------------------------------------------
1497 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1498 # ---------------------------------------------------
1503 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1504 # ------------------------------------------------
1509 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
1510 # ------------------------------------
1511 # Quote a variable value, and forward it to `config.status' so that its
1512 # declaration there will have the same value as in `configure'. VARNAME
1513 # must have a single quote delimited value for this to work.
1517 # _LT_CONFIG_STATUS_DECLARATIONS
1518 # ------------------------------
1519 # We delimit libtool config variables with single quotes, so when
1520 # we write them to config.status, we have to be sure to quote all
1521 # embedded single quotes properly. In configure, this macro expands
1522 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1524 # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
1530 # Output comment and list of tags supported by the script
1534 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1535 # -----------------------------------
1536 # Extract the dictionary values for VARNAME (optionally with TAG) and
1537 # expand to a commented shell variable setting:
1539 # # Some comment about what VAR is for.
1540 # visible_name=$lt_internal_name
1544 # _LT_LIBTOOL_CONFIG_VARS
1545 # -----------------------
1546 # Produce commented declarations of non-tagged libtool config variables
1547 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1548 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
1549 # section) are produced by _LT_LIBTOOL_TAG_VARS.
1553 # _LT_LIBTOOL_TAG_VARS(TAG)
1554 # -------------------------
1558 # _LT_TAGVAR(VARNAME, [TAGNAME])
1559 # ------------------------------
1563 # _LT_CONFIG_COMMANDS
1564 # -------------------
1565 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
1566 # variables for single and double quote escaping we saved from calls
1567 # to _LT_DECL, we can put quote escaped variables declarations
1568 # into `config.status', and then the shell code to quote escape them in
1569 # for loops in `config.status'. Finally, any additional code accumulated
1570 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1571 #_LT_CONFIG_COMMANDS
1580 # This macro allows early generation of the libtool script (before
1581 # AC_OUTPUT is called), incase it is used in configure for compilation
1588 # If TAG is the built-in tag, create an initial libtool script with a
1589 # default configuration from the untagged config vars. Otherwise add code
1590 # to config.status for appending the configuration named by TAG from the
1591 # matching tagged config vars.
1595 # LT_SUPPORTED_TAG(TAG)
1596 # ---------------------
1597 # Trace this macro to discover what tags are supported by the libtool
1598 # --tag option, using:
1599 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
1603 # C support is built-in for now
1610 # Enable libtool support for the given language if not already enabled.
1614 # _LT_LANG(LANGNAME)
1615 # ------------------
1619 # _LT_LANG_DEFAULT_CONFIG
1620 # -----------------------
1621 # _LT_LANG_DEFAULT_CONFIG
1635 # _LT_COMPILER_BOILERPLATE
1636 # ------------------------
1637 # Check for compiler boilerplate output or warnings with
1638 # the simple compiler test code.
1639 # _LT_COMPILER_BOILERPLATE
1642 # _LT_LINKER_BOILERPLATE
1643 # ----------------------
1644 # Check for linker boilerplate output or warnings with
1645 # the simple link test code.
1646 # _LT_LINKER_BOILERPLATE
1649 # _LT_SYS_MODULE_PATH_AIX
1650 # -----------------------
1651 # Links a minimal program and checks the executable
1652 # for the system default hardcoded library path. In most cases,
1653 # this is /usr/lib:/lib, but when the MPI compilers are used
1654 # the location of the communication and MPI libs are included too.
1655 # If we don't find anything, use the default library path according
1656 # to the aix ld manual.
1657 # _LT_SYS_MODULE_PATH_AIX
1660 # _LT_SHELL_INIT(ARG)
1661 # -------------------
1665 # _LT_PROG_ECHO_BACKSLASH
1666 # -----------------------
1667 # Add some code to the start of the generated configure script which
1668 # will find an echo command which doesn't interpret backslashes.
1669 # _LT_PROG_ECHO_BACKSLASH
1677 # _LT_CMD_OLD_ARCHIVE
1678 # -------------------
1679 # _LT_CMD_OLD_ARCHIVE
1682 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1683 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1684 # ----------------------------------------------------------------
1685 # Check whether the given compiler option works
1686 # _LT_COMPILER_OPTION
1692 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1693 # [ACTION-SUCCESS], [ACTION-FAILURE])
1694 # ----------------------------------------------------
1695 # Check whether the given linker option works
1715 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1716 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1717 # ----------------------------------------------------------------
1718 # _LT_TRY_DLOPEN_SELF
1721 # LT_SYS_DLOPEN_SELF
1722 # ------------------
1723 # LT_SYS_DLOPEN_SELF
1729 # _LT_COMPILER_C_O([TAGNAME])
1730 # ---------------------------
1731 # Check to see if options -c and -o are simultaneously supported by compiler.
1732 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
1736 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
1737 # ----------------------------------
1738 # Check to see if we can do hard links to lock some files if needed
1739 # _LT_COMPILER_FILE_LOCKS
1747 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
1748 # --------------------------------------
1749 # Check hardcoding attributes.
1750 # _LT_LINKER_HARDCODE_LIBPATH
1758 # _LT_SYS_DYNAMIC_LINKER([TAG])
1759 # -----------------------------
1760 # PORTME Fill in your ld.so characteristics
1761 # _LT_SYS_DYNAMIC_LINKER
1764 # _LT_PATH_TOOL_PREFIX(TOOL)
1765 # --------------------------
1766 # find a file program which can recognize shared library
1767 # _LT_PATH_TOOL_PREFIX
1775 # find a file program which can recognize a shared library
1781 # find the pathname to the GNU or non-GNU linker
1796 # find reload flag for linker
1797 # -- PORTME Some linkers may need a different reload flag.
1801 # _LT_CHECK_MAGIC_METHOD
1802 # ----------------------
1803 # how to check for library dependencies
1804 # -- PORTME fill in with the dynamic library characteristics
1805 # _LT_CHECK_MAGIC_METHOD
1810 # find the pathname to a BSD- or MS-compatible name lister
1820 # check for math library
1827 # _LT_COMPILER_NO_RTTI([TAGNAME])
1828 # -------------------------------
1829 # _LT_COMPILER_NO_RTTI
1832 # _LT_CMD_GLOBAL_SYMBOLS
1833 # ----------------------
1834 # _LT_CMD_GLOBAL_SYMBOLS
1837 # _LT_COMPILER_PIC([TAGNAME])
1838 # ---------------------------
1842 # _LT_LINKER_SHLIBS([TAGNAME])
1843 # ----------------------------
1844 # See if the linker supports building shared libraries.
1848 # _LT_LANG_C_CONFIG([TAG])
1849 # ------------------------
1850 # Ensure that the configuration variables for a C compiler are suitably
1851 # defined. These variables are subsequently used by _LT_CONFIG to write
1852 # the compiler configuration to `libtool'.
1858 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
1859 # compiler, we have our own version here.
1864 # _LT_LANG_CXX_CONFIG([TAG])
1865 # --------------------------
1866 # Ensure that the configuration variables for a C++ compiler are suitably
1867 # defined. These variables are subsequently used by _LT_CONFIG to write
1868 # the compiler configuration to `libtool'.
1869 # _LT_LANG_CXX_CONFIG
1872 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
1873 # ---------------------------------
1874 # Figure out "hidden" library dependencies from verbose
1875 # compiler output when linking a shared library.
1876 # Parse the compiler output and extract the necessary
1877 # objects, libraries and library flags.
1878 # _LT_SYS_HIDDEN_LIBDEPS
1883 # Since AC_PROG_F77 is broken, in that it returns the empty string
1884 # if there is no fortran compiler, we have our own version here.
1889 # _LT_LANG_F77_CONFIG([TAG])
1890 # --------------------------
1891 # Ensure that the configuration variables for a Fortran 77 compiler are
1892 # suitably defined. These variables are subsequently used by _LT_CONFIG
1893 # to write the compiler configuration to `libtool'.
1894 # _LT_LANG_F77_CONFIG
1899 # Since AC_PROG_FC is broken, in that it returns the empty string
1900 # if there is no fortran compiler, we have our own version here.
1905 # _LT_LANG_FC_CONFIG([TAG])
1906 # -------------------------
1907 # Ensure that the configuration variables for a Fortran compiler are
1908 # suitably defined. These variables are subsequently used by _LT_CONFIG
1909 # to write the compiler configuration to `libtool'.
1910 # _LT_LANG_FC_CONFIG
1913 # _LT_LANG_GCJ_CONFIG([TAG])
1914 # --------------------------
1915 # Ensure that the configuration variables for the GNU Java Compiler compiler
1916 # are suitably defined. These variables are subsequently used by _LT_CONFIG
1917 # to write the compiler configuration to `libtool'.
1918 # _LT_LANG_GCJ_CONFIG
1921 # _LT_LANG_RC_CONFIG([TAG])
1922 # -------------------------
1923 # Ensure that the configuration variables for the Windows resource compiler
1924 # are suitably defined. These variables are subsequently used by _LT_CONFIG
1925 # to write the compiler configuration to `libtool'.
1926 # _LT_LANG_RC_CONFIG
1947 # If we don't have a new enough Autoconf to choose the best grep
1948 # available, choose the one first in the user's PATH.
1954 # Check for a fully-functional sed program, that truncates
1955 # as few characters as possible. Prefer GNU sed if found.
1959 ############################################################
1960 # NOTE: This macro has been submitted for inclusion into #
1961 # GNU Autoconf as AC_PROG_SED. When it is available in #
1962 # a released version of Autoconf we should remove this #
1963 # macro and use it instead. #
1964 ############################################################
1973 # _LT_CHECK_SHELL_FEATURES
1974 # ------------------------
1975 # Find out whether the shell is Bourne or XSI compatible,
1976 # or has some other useful features.
1977 # _LT_CHECK_SHELL_FEATURES
1980 # _LT_PROG_XSI_SHELLFNS
1981 # ---------------------
1982 # Bourne and XSI compatible variants of some useful shell functions.
1985 # Make sure we can run config.sub.
1986 $ac_config_sub sun4 >/dev/null 2>&1 ||
1987 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1988 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1989 { (exit 1); exit 1; }; }
1991 echo "$as_me:$LINENO: checking build system type" >&5
1992 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1993 if test "${ac_cv_build+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1996 ac_cv_build_alias=$build_alias
1997 test -z "$ac_cv_build_alias" &&
1998 ac_cv_build_alias=`$ac_config_guess`
1999 test -z "$ac_cv_build_alias" &&
2000 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2001 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2002 { (exit 1); exit 1; }; }
2003 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2004 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2005 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2006 { (exit 1); exit 1; }; }
2009 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2010 echo "${ECHO_T}$ac_cv_build" >&6
2012 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2013 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2014 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2017 echo "$as_me:$LINENO: checking host system type" >&5
2018 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2019 if test "${ac_cv_host+set}" = set; then
2020 echo $ECHO_N "(cached) $ECHO_C" >&6
2022 ac_cv_host_alias=$host_alias
2023 test -z "$ac_cv_host_alias" &&
2024 ac_cv_host_alias=$ac_cv_build_alias
2025 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2026 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2027 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2028 { (exit 1); exit 1; }; }
2031 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2032 echo "${ECHO_T}$ac_cv_host" >&6
2034 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2035 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2036 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2039 echo "$as_me:$LINENO: checking target system type" >&5
2040 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2041 if test "${ac_cv_target+set}" = set; then
2042 echo $ECHO_N "(cached) $ECHO_C" >&6
2044 ac_cv_target_alias=$target_alias
2045 test "x$ac_cv_target_alias" = "x" &&
2046 ac_cv_target_alias=$ac_cv_host_alias
2047 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2048 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2049 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2050 { (exit 1); exit 1; }; }
2053 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2054 echo "${ECHO_T}$ac_cv_target" >&6
2055 target=$ac_cv_target
2056 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2057 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2058 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2061 # The aliases save the names the user supplied, while $host etc.
2062 # will get canonicalized.
2063 test -n "$target_alias" &&
2064 test "$program_prefix$program_suffix$program_transform_name" = \
2066 program_prefix=${target_alias}-
2068 ac_cpp='$CPP $CPPFLAGS'
2069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2072 if test -n "$ac_tool_prefix"; then
2073 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2074 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2075 echo "$as_me:$LINENO: checking for $ac_word" >&5
2076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2077 if test "${ac_cv_prog_CC+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2080 if test -n "$CC"; then
2081 ac_cv_prog_CC="$CC" # Let the user override the test.
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 test -z "$as_dir" && as_dir=.
2088 for ac_exec_ext in '' $ac_executable_extensions; do
2089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2090 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100 if test -n "$CC"; then
2101 echo "$as_me:$LINENO: result: $CC" >&5
2102 echo "${ECHO_T}$CC" >&6
2104 echo "$as_me:$LINENO: result: no" >&5
2105 echo "${ECHO_T}no" >&6
2109 if test -z "$ac_cv_prog_CC"; then
2111 # Extract the first word of "gcc", so it can be a program name with args.
2112 set dummy gcc; ac_word=$2
2113 echo "$as_me:$LINENO: checking for $ac_word" >&5
2114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2115 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 if test -n "$ac_ct_CC"; then
2119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 test -z "$as_dir" && as_dir=.
2126 for ac_exec_ext in '' $ac_executable_extensions; do
2127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2128 ac_cv_prog_ac_ct_CC="gcc"
2129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2137 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2138 if test -n "$ac_ct_CC"; then
2139 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2140 echo "${ECHO_T}$ac_ct_CC" >&6
2142 echo "$as_me:$LINENO: result: no" >&5
2143 echo "${ECHO_T}no" >&6
2151 if test -z "$CC"; then
2152 if test -n "$ac_tool_prefix"; then
2153 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2154 set dummy ${ac_tool_prefix}cc; ac_word=$2
2155 echo "$as_me:$LINENO: checking for $ac_word" >&5
2156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2157 if test "${ac_cv_prog_CC+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2160 if test -n "$CC"; then
2161 ac_cv_prog_CC="$CC" # Let the user override the test.
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167 test -z "$as_dir" && as_dir=.
2168 for ac_exec_ext in '' $ac_executable_extensions; do
2169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2170 ac_cv_prog_CC="${ac_tool_prefix}cc"
2171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2180 if test -n "$CC"; then
2181 echo "$as_me:$LINENO: result: $CC" >&5
2182 echo "${ECHO_T}$CC" >&6
2184 echo "$as_me:$LINENO: result: no" >&5
2185 echo "${ECHO_T}no" >&6
2189 if test -z "$ac_cv_prog_CC"; then
2191 # Extract the first word of "cc", so it can be a program name with args.
2192 set dummy cc; ac_word=$2
2193 echo "$as_me:$LINENO: checking for $ac_word" >&5
2194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2195 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2196 echo $ECHO_N "(cached) $ECHO_C" >&6
2198 if test -n "$ac_ct_CC"; then
2199 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205 test -z "$as_dir" && as_dir=.
2206 for ac_exec_ext in '' $ac_executable_extensions; do
2207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2208 ac_cv_prog_ac_ct_CC="cc"
2209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2217 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2218 if test -n "$ac_ct_CC"; then
2219 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2220 echo "${ECHO_T}$ac_ct_CC" >&6
2222 echo "$as_me:$LINENO: result: no" >&5
2223 echo "${ECHO_T}no" >&6
2232 if test -z "$CC"; then
2233 # Extract the first word of "cc", so it can be a program name with args.
2234 set dummy cc; ac_word=$2
2235 echo "$as_me:$LINENO: checking for $ac_word" >&5
2236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2237 if test "${ac_cv_prog_CC+set}" = set; then
2238 echo $ECHO_N "(cached) $ECHO_C" >&6
2240 if test -n "$CC"; then
2241 ac_cv_prog_CC="$CC" # Let the user override the test.
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 test -z "$as_dir" && as_dir=.
2249 for ac_exec_ext in '' $ac_executable_extensions; do
2250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2251 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2252 ac_prog_rejected=yes
2256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2262 if test $ac_prog_rejected = yes; then
2263 # We found a bogon in the path, so make sure we never use it.
2264 set dummy $ac_cv_prog_CC
2266 if test $# != 0; then
2267 # We chose a different compiler from the bogus one.
2268 # However, it has the same basename, so the bogon will be chosen
2269 # first if we set CC to just the basename; use the full file name.
2271 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2277 if test -n "$CC"; then
2278 echo "$as_me:$LINENO: result: $CC" >&5
2279 echo "${ECHO_T}$CC" >&6
2281 echo "$as_me:$LINENO: result: no" >&5
2282 echo "${ECHO_T}no" >&6
2286 if test -z "$CC"; then
2287 if test -n "$ac_tool_prefix"; then
2290 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2291 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2292 echo "$as_me:$LINENO: checking for $ac_word" >&5
2293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2294 if test "${ac_cv_prog_CC+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 if test -n "$CC"; then
2298 ac_cv_prog_CC="$CC" # Let the user override the test.
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2307 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2317 if test -n "$CC"; then
2318 echo "$as_me:$LINENO: result: $CC" >&5
2319 echo "${ECHO_T}$CC" >&6
2321 echo "$as_me:$LINENO: result: no" >&5
2322 echo "${ECHO_T}no" >&6
2325 test -n "$CC" && break
2328 if test -z "$CC"; then
2332 # Extract the first word of "$ac_prog", so it can be a program name with args.
2333 set dummy $ac_prog; ac_word=$2
2334 echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2336 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 if test -n "$ac_ct_CC"; then
2340 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2349 ac_cv_prog_ac_ct_CC="$ac_prog"
2350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2358 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2359 if test -n "$ac_ct_CC"; then
2360 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2361 echo "${ECHO_T}$ac_ct_CC" >&6
2363 echo "$as_me:$LINENO: result: no" >&5
2364 echo "${ECHO_T}no" >&6
2367 test -n "$ac_ct_CC" && break
2376 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2377 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2378 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2379 See \`config.log' for more details." >&5
2380 echo "$as_me: error: no acceptable C compiler found in \$PATH
2381 See \`config.log' for more details." >&2;}
2382 { (exit 1); exit 1; }; }; }
2384 # Provide some information about the compiler.
2385 echo "$as_me:$LINENO:" \
2386 "checking for C compiler version" >&5
2387 ac_compiler=`set X $ac_compile; echo $2`
2388 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2389 (eval $ac_compiler --version </dev/null >&5) 2>&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }
2393 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2394 (eval $ac_compiler -v </dev/null >&5) 2>&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }
2398 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2399 (eval $ac_compiler -V </dev/null >&5) 2>&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }
2404 cat >conftest.$ac_ext <<_ACEOF
2407 cat confdefs.h >>conftest.$ac_ext
2408 cat >>conftest.$ac_ext <<_ACEOF
2409 /* end confdefs.h. */
2419 ac_clean_files_save=$ac_clean_files
2420 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2421 # Try to create an executable without -o first, disregard a.out.
2422 # It will help us diagnose broken compilers, and finding out an intuition
2424 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2425 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2426 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2427 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2428 (eval $ac_link_default) 2>&5
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }; then
2432 # Find the output, starting from the most likely. This scheme is
2433 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2436 # Be careful to initialize this variable, since it used to be cached.
2437 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2439 # b.out is created by i960 compilers.
2440 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2442 test -f "$ac_file" || continue
2444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2447 # This is the source file.
2450 # We found the default executable, but exeext='' is most
2454 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2455 # FIXME: I believe we export ac_cv_exeext for Libtool,
2456 # but it would be cool to find out if it's true. Does anybody
2457 # maintain Libtool? --akim.
2465 echo "$as_me: failed program was:" >&5
2466 sed 's/^/| /' conftest.$ac_ext >&5
2468 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2469 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2470 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2471 See \`config.log' for more details." >&5
2472 echo "$as_me: error: C compiler cannot create executables
2473 See \`config.log' for more details." >&2;}
2474 { (exit 77); exit 77; }; }; }
2477 ac_exeext=$ac_cv_exeext
2478 echo "$as_me:$LINENO: result: $ac_file" >&5
2479 echo "${ECHO_T}$ac_file" >&6
2481 # Check the compiler produces executables we can run. If not, either
2482 # the compiler is broken, or we cross compile.
2483 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2484 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2485 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2486 # If not cross compiling, check that we can run a simple program.
2487 if test "$cross_compiling" != yes; then
2488 if { ac_try='./$ac_file'
2489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }; }; then
2496 if test "$cross_compiling" = maybe; then
2499 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2500 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2501 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2502 If you meant to cross compile, use \`--host'.
2503 See \`config.log' for more details." >&5
2504 echo "$as_me: error: cannot run C compiled programs.
2505 If you meant to cross compile, use \`--host'.
2506 See \`config.log' for more details." >&2;}
2507 { (exit 1); exit 1; }; }; }
2511 echo "$as_me:$LINENO: result: yes" >&5
2512 echo "${ECHO_T}yes" >&6
2514 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2515 ac_clean_files=$ac_clean_files_save
2516 # Check the compiler produces executables we can run. If not, either
2517 # the compiler is broken, or we cross compile.
2518 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2519 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2520 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2521 echo "${ECHO_T}$cross_compiling" >&6
2523 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2524 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2526 (eval $ac_link) 2>&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; then
2530 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2531 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2532 # work properly (i.e., refer to `conftest.exe'), while it won't with
2534 for ac_file in conftest.exe conftest conftest.*; do
2535 test -f "$ac_file" || continue
2537 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2538 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2545 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2546 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2547 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2548 See \`config.log' for more details." >&5
2549 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2550 See \`config.log' for more details." >&2;}
2551 { (exit 1); exit 1; }; }; }
2554 rm -f conftest$ac_cv_exeext
2555 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2556 echo "${ECHO_T}$ac_cv_exeext" >&6
2558 rm -f conftest.$ac_ext
2559 EXEEXT=$ac_cv_exeext
2561 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2562 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2563 if test "${ac_cv_objext+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2566 cat >conftest.$ac_ext <<_ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h. */
2581 rm -f conftest.o conftest.obj
2582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2583 (eval $ac_compile) 2>&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; then
2587 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2590 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2595 echo "$as_me: failed program was:" >&5
2596 sed 's/^/| /' conftest.$ac_ext >&5
2598 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2599 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2600 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2601 See \`config.log' for more details." >&5
2602 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2603 See \`config.log' for more details." >&2;}
2604 { (exit 1); exit 1; }; }; }
2607 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2609 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2610 echo "${ECHO_T}$ac_cv_objext" >&6
2611 OBJEXT=$ac_cv_objext
2613 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2614 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2615 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2618 cat >conftest.$ac_ext <<_ACEOF
2621 cat confdefs.h >>conftest.$ac_ext
2622 cat >>conftest.$ac_ext <<_ACEOF
2623 /* end confdefs.h. */
2636 rm -f conftest.$ac_objext
2637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2638 (eval $ac_compile) 2>conftest.er1
2640 grep -v '^ *+' conftest.er1 >conftest.err
2642 cat conftest.err >&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); } &&
2645 { ac_try='test -z "$ac_c_werror_flag"
2646 || test ! -s conftest.err'
2647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; } &&
2652 { ac_try='test -s conftest.$ac_objext'
2653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; }; then
2660 echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2666 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2669 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2670 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2671 GCC=`test $ac_compiler_gnu = yes && echo yes`
2672 ac_test_CFLAGS=${CFLAGS+set}
2673 ac_save_CFLAGS=$CFLAGS
2675 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2676 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2677 if test "${ac_cv_prog_cc_g+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2680 cat >conftest.$ac_ext <<_ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h. */
2695 rm -f conftest.$ac_objext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697 (eval $ac_compile) 2>conftest.er1
2699 grep -v '^ *+' conftest.er1 >conftest.err
2701 cat conftest.err >&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); } &&
2704 { ac_try='test -z "$ac_c_werror_flag"
2705 || test ! -s conftest.err'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; } &&
2711 { ac_try='test -s conftest.$ac_objext'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; }; then
2719 echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2726 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2727 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2728 if test "$ac_test_CFLAGS" = set; then
2729 CFLAGS=$ac_save_CFLAGS
2730 elif test $ac_cv_prog_cc_g = yes; then
2731 if test "$GCC" = yes; then
2737 if test "$GCC" = yes; then
2743 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2744 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2745 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2748 ac_cv_prog_cc_stdc=no
2750 cat >conftest.$ac_ext <<_ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2758 #include <sys/types.h>
2759 #include <sys/stat.h>
2760 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2761 struct buf { int x; };
2762 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2763 static char *e (p, i)
2769 static char *f (char * (*g) (char **, int), char **p, ...)
2774 s = g (p, va_arg (v,int));
2779 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2780 function prototypes and stuff, but not '\xHH' hex character constants.
2781 These don't provoke an error unfortunately, instead are silently treated
2782 as 'x'. The following induces an error, until -std1 is added to get
2783 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2784 array size at least. It's necessary to write '\x00'==0 to get something
2785 that's true only with -std1. */
2786 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2788 int test (int i, double x);
2789 struct s1 {int (*f) (int a);};
2790 struct s2 {int (*f) (double a);};
2791 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2797 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2802 # Don't try gcc -ansi; that turns off useful extensions and
2803 # breaks some systems' header files.
2804 # AIX -qlanglvl=ansi
2805 # Ultrix and OSF/1 -std1
2806 # HP-UX 10.20 and later -Ae
2807 # HP-UX older versions -Aa -D_HPUX_SOURCE
2808 # SVR4 -Xc -D__EXTENSIONS__
2809 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2811 CC="$ac_save_CC $ac_arg"
2812 rm -f conftest.$ac_objext
2813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2814 (eval $ac_compile) 2>conftest.er1
2816 grep -v '^ *+' conftest.er1 >conftest.err
2818 cat conftest.err >&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); } &&
2821 { ac_try='test -z "$ac_c_werror_flag"
2822 || test ! -s conftest.err'
2823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }; } &&
2828 { ac_try='test -s conftest.$ac_objext'
2829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; }; then
2834 ac_cv_prog_cc_stdc=$ac_arg
2837 echo "$as_me: failed program was:" >&5
2838 sed 's/^/| /' conftest.$ac_ext >&5
2841 rm -f conftest.err conftest.$ac_objext
2843 rm -f conftest.$ac_ext conftest.$ac_objext
2848 case "x$ac_cv_prog_cc_stdc" in
2850 echo "$as_me:$LINENO: result: none needed" >&5
2851 echo "${ECHO_T}none needed" >&6 ;;
2853 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2854 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2855 CC="$CC $ac_cv_prog_cc_stdc" ;;
2858 # Some people use a C++ compiler to compile C. Since we use `exit',
2859 # in C++ we need to declare it. In case someone uses the same compiler
2860 # for both compiling C and C++ we need to have the C++ compiler decide
2861 # the declaration of exit, since it's the most demanding environment.
2862 cat >conftest.$ac_ext <<_ACEOF
2867 rm -f conftest.$ac_objext
2868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2869 (eval $ac_compile) 2>conftest.er1
2871 grep -v '^ *+' conftest.er1 >conftest.err
2873 cat conftest.err >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); } &&
2876 { ac_try='test -z "$ac_c_werror_flag"
2877 || test ! -s conftest.err'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; } &&
2883 { ac_try='test -s conftest.$ac_objext'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; }; then
2889 for ac_declaration in \
2891 'extern "C" void std::exit (int) throw (); using std::exit;' \
2892 'extern "C" void std::exit (int); using std::exit;' \
2893 'extern "C" void exit (int) throw ();' \
2894 'extern "C" void exit (int);' \
2897 cat >conftest.$ac_ext <<_ACEOF
2900 cat confdefs.h >>conftest.$ac_ext
2901 cat >>conftest.$ac_ext <<_ACEOF
2902 /* end confdefs.h. */
2913 rm -f conftest.$ac_objext
2914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2915 (eval $ac_compile) 2>conftest.er1
2917 grep -v '^ *+' conftest.er1 >conftest.err
2919 cat conftest.err >&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); } &&
2922 { ac_try='test -z "$ac_c_werror_flag"
2923 || test ! -s conftest.err'
2924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); }; } &&
2929 { ac_try='test -s conftest.$ac_objext'
2930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }; }; then
2937 echo "$as_me: failed program was:" >&5
2938 sed 's/^/| /' conftest.$ac_ext >&5
2942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2943 cat >conftest.$ac_ext <<_ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2958 rm -f conftest.$ac_objext
2959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2960 (eval $ac_compile) 2>conftest.er1
2962 grep -v '^ *+' conftest.er1 >conftest.err
2964 cat conftest.err >&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); } &&
2967 { ac_try='test -z "$ac_c_werror_flag"
2968 || test ! -s conftest.err'
2969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; } &&
2974 { ac_try='test -s conftest.$ac_objext'
2975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; }; then
2982 echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2989 if test -n "$ac_declaration"; then
2990 echo '#ifdef __cplusplus' >>confdefs.h
2991 echo $ac_declaration >>confdefs.h
2992 echo '#endif' >>confdefs.h
2996 echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
3000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3002 ac_cpp='$CPP $CPPFLAGS'
3003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3007 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3008 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3009 if test "${lt_cv_path_SED+set}" = set; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
3012 # Loop through the user's path and test for sed and gsed.
3013 # Then use that list of sed's as ones to test for truncation.
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 test -z "$as_dir" && as_dir=.
3019 for lt_ac_prog in sed gsed; do
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3022 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3030 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3031 # along with /bin/sed that truncates output.
3032 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3033 test ! -f $lt_ac_sed && continue
3034 cat /dev/null > conftest.in
3036 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3037 # Check for GNU sed and select it if it is found.
3038 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3039 lt_cv_path_SED=$lt_ac_sed
3043 cat conftest.in conftest.in >conftest.tmp
3044 mv conftest.tmp conftest.in
3045 cp conftest.in conftest.nl
3047 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3048 cmp -s conftest.out conftest.nl || break
3049 # 10000 chars as input seems more than enough
3050 test $lt_ac_count -gt 10 && break
3051 lt_ac_count=`expr $lt_ac_count + 1`
3052 if test $lt_ac_count -gt $lt_ac_max; then
3053 lt_ac_max=$lt_ac_count
3054 lt_cv_path_SED=$lt_ac_sed
3063 echo "$as_me:$LINENO: result: $SED" >&5
3064 echo "${ECHO_T}$SED" >&6
3067 # Figure out what compiler warnings we can enable.
3068 # See config/warnings.m4 for details.
3072 save_CFLAGS="$CFLAGS"
3073 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
3074 -Wmissing-prototypes -Wold-style-definition \
3075 -Wmissing-format-attribute -Wno-overlength-strings; do
3076 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
3078 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
3079 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
3080 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3084 cat >conftest.$ac_ext <<_ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3099 rm -f conftest.$ac_objext
3100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3101 (eval $ac_compile) 2>conftest.er1
3103 grep -v '^ *+' conftest.er1 >conftest.err
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } &&
3108 { ac_try='test -z "$ac_c_werror_flag"
3109 || test ! -s conftest.err'
3110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; } &&
3115 { ac_try='test -s conftest.$ac_objext'
3116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; }; then
3121 eval "$as_acx_Woption=yes"
3123 echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3126 eval "$as_acx_Woption=no"
3128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3131 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
3132 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
3133 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
3134 WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$option"
3138 CFLAGS="$save_CFLAGS"
3141 if test "$GCC" = yes; then
3142 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long" >&5
3143 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long... $ECHO_C" >&6
3144 if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3147 save_CFLAGS="$CFLAGS"
3148 CFLAGS="-pedantic -Wno-long-long"
3149 cat >conftest.$ac_ext <<_ACEOF
3152 cat confdefs.h >>conftest.$ac_ext
3153 cat >>conftest.$ac_ext <<_ACEOF
3154 /* end confdefs.h. */
3164 rm -f conftest.$ac_objext
3165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3166 (eval $ac_compile) 2>conftest.er1
3168 grep -v '^ *+' conftest.er1 >conftest.err
3170 cat conftest.err >&5
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); } &&
3173 { ac_try='test -z "$ac_c_werror_flag"
3174 || test ! -s conftest.err'
3175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; } &&
3180 { ac_try='test -s conftest.$ac_objext'
3181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; }; then
3186 acx_cv_prog_cc_pedantic__Wno_long_long=yes
3188 echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3191 acx_cv_prog_cc_pedantic__Wno_long_long=no
3193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3194 CFLAGS="$save_CFLAGS"
3196 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5
3197 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long" >&6
3198 if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then
3199 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
3207 # Only enable with --enable-werror-always until existing warnings are
3210 # Check whether --enable-werror-always or --disable-werror-always was given.
3211 if test "${enable_werror_always+set}" = set; then
3212 enableval="$enable_werror_always"
3215 enable_werror_always=no
3217 if test $enable_werror_always = yes; then
3218 WERROR="$WERROR${WERROR:+ }-Werror"
3224 # Determine the noncanonical target name, for directory use.
3225 case ${build_alias} in
3226 "") build_noncanonical=${build} ;;
3227 *) build_noncanonical=${build_alias} ;;
3230 case ${host_alias} in
3231 "") host_noncanonical=${build_noncanonical} ;;
3232 *) host_noncanonical=${host_alias} ;;
3235 case ${target_alias} in
3236 "") target_noncanonical=${host_noncanonical} ;;
3237 *) target_noncanonical=${target_alias} ;;
3243 # Specify the local prefix
3246 # Check whether --with-local-prefix or --without-local-prefix was given.
3247 if test "${with_local_prefix+set}" = set; then
3248 withval="$with_local_prefix"
3249 case "${withval}" in
3250 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
3251 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
3252 { (exit 1); exit 1; }; } ;;
3254 *) local_prefix=$with_local_prefix ;;
3258 # Default local prefix if it is empty
3259 if test x$local_prefix = x; then
3260 local_prefix=/usr/local
3263 # Choose one or two-process fix methodology. Systems that cannot handle
3264 # bi-directional pipes must use the two process method.
3266 # Check whether --enable-twoprocess or --disable-twoprocess was given.
3267 if test "${enable_twoprocess+set}" = set; then
3268 enableval="$enable_twoprocess"
3269 if test "x$enable_twoprocess" = xyes; then
3276 i?86-*-msdosdjgpp* | \
3278 x86_64-*-mingw32* | \
3290 if test $TARGET = twoprocess; then
3292 cat >>confdefs.h <<\_ACEOF
3293 #define SEPARATE_FIX_PROC 1
3301 cat >>confdefs.h <<\_ACEOF
3306 cat >>confdefs.h <<\_ACEOF
3307 #define atexit xatexit
3314 cat >>confdefs.h <<_ACEOF
3315 #define EXE_EXT "$ac_exeext"
3319 # Checks for header files.
3321 ac_cpp='$CPP $CPPFLAGS'
3322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3325 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3326 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3327 # On Suns, sometimes $CPP names a directory.
3328 if test -n "$CPP" && test -d "$CPP"; then
3331 if test -z "$CPP"; then
3332 if test "${ac_cv_prog_CPP+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3335 # Double quotes because CPP needs to be expanded
3336 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3339 for ac_c_preproc_warn_flag in '' yes
3341 # Use a header file that comes with gcc, so configuring glibc
3342 # with a fresh cross-compiler works.
3343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3344 # <limits.h> exists even on freestanding compilers.
3345 # On the NeXT, cc -E runs the code through the compiler's parser,
3346 # not just through cpp. "Syntax error" is here to catch this case.
3347 cat >conftest.$ac_ext <<_ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h. */
3354 # include <limits.h>
3356 # include <assert.h>
3360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3363 grep -v '^ *+' conftest.er1 >conftest.err
3365 cat conftest.err >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } >/dev/null; then
3368 if test -s conftest.err; then
3369 ac_cpp_err=$ac_c_preproc_warn_flag
3370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3377 if test -z "$ac_cpp_err"; then
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3383 # Broken: fails on valid input.
3386 rm -f conftest.err conftest.$ac_ext
3388 # OK, works on sane cases. Now check whether non-existent headers
3389 # can be detected and how.
3390 cat >conftest.$ac_ext <<_ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3396 #include <ac_nonexistent.h>
3398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3401 grep -v '^ *+' conftest.er1 >conftest.err
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } >/dev/null; then
3406 if test -s conftest.err; then
3407 ac_cpp_err=$ac_c_preproc_warn_flag
3408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3415 if test -z "$ac_cpp_err"; then
3416 # Broken: success on invalid input.
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3422 # Passes both tests.
3426 rm -f conftest.err conftest.$ac_ext
3429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3430 rm -f conftest.err conftest.$ac_ext
3431 if $ac_preproc_ok; then
3443 echo "$as_me:$LINENO: result: $CPP" >&5
3444 echo "${ECHO_T}$CPP" >&6
3446 for ac_c_preproc_warn_flag in '' yes
3448 # Use a header file that comes with gcc, so configuring glibc
3449 # with a fresh cross-compiler works.
3450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3451 # <limits.h> exists even on freestanding compilers.
3452 # On the NeXT, cc -E runs the code through the compiler's parser,
3453 # not just through cpp. "Syntax error" is here to catch this case.
3454 cat >conftest.$ac_ext <<_ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3461 # include <limits.h>
3463 # include <assert.h>
3467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3470 grep -v '^ *+' conftest.er1 >conftest.err
3472 cat conftest.err >&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); } >/dev/null; then
3475 if test -s conftest.err; then
3476 ac_cpp_err=$ac_c_preproc_warn_flag
3477 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3484 if test -z "$ac_cpp_err"; then
3487 echo "$as_me: failed program was:" >&5
3488 sed 's/^/| /' conftest.$ac_ext >&5
3490 # Broken: fails on valid input.
3493 rm -f conftest.err conftest.$ac_ext
3495 # OK, works on sane cases. Now check whether non-existent headers
3496 # can be detected and how.
3497 cat >conftest.$ac_ext <<_ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h. */
3503 #include <ac_nonexistent.h>
3505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3508 grep -v '^ *+' conftest.er1 >conftest.err
3510 cat conftest.err >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } >/dev/null; then
3513 if test -s conftest.err; then
3514 ac_cpp_err=$ac_c_preproc_warn_flag
3515 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3522 if test -z "$ac_cpp_err"; then
3523 # Broken: success on invalid input.
3526 echo "$as_me: failed program was:" >&5
3527 sed 's/^/| /' conftest.$ac_ext >&5
3529 # Passes both tests.
3533 rm -f conftest.err conftest.$ac_ext
3536 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3537 rm -f conftest.err conftest.$ac_ext
3538 if $ac_preproc_ok; then
3541 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3542 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3543 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3544 See \`config.log' for more details." >&5
3545 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3546 See \`config.log' for more details." >&2;}
3547 { (exit 1); exit 1; }; }; }
3551 ac_cpp='$CPP $CPPFLAGS'
3552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3557 echo "$as_me:$LINENO: checking for egrep" >&5
3558 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3559 if test "${ac_cv_prog_egrep+set}" = set; then
3560 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3563 then ac_cv_prog_egrep='grep -E'
3564 else ac_cv_prog_egrep='egrep'
3567 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3568 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3569 EGREP=$ac_cv_prog_egrep
3572 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3573 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3574 if test "${ac_cv_header_stdc+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3577 cat >conftest.$ac_ext <<_ACEOF
3580 cat confdefs.h >>conftest.$ac_ext
3581 cat >>conftest.$ac_ext <<_ACEOF
3582 /* end confdefs.h. */
3596 rm -f conftest.$ac_objext
3597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3598 (eval $ac_compile) 2>conftest.er1
3600 grep -v '^ *+' conftest.er1 >conftest.err
3602 cat conftest.err >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } &&
3605 { ac_try='test -z "$ac_c_werror_flag"
3606 || test ! -s conftest.err'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; } &&
3612 { ac_try='test -s conftest.$ac_objext'
3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; }; then
3618 ac_cv_header_stdc=yes
3620 echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3623 ac_cv_header_stdc=no
3625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3627 if test $ac_cv_header_stdc = yes; then
3628 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3629 cat >conftest.$ac_ext <<_ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h. */
3638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3639 $EGREP "memchr" >/dev/null 2>&1; then
3642 ac_cv_header_stdc=no
3648 if test $ac_cv_header_stdc = yes; then
3649 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3650 cat >conftest.$ac_ext <<_ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h. */
3659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3660 $EGREP "free" >/dev/null 2>&1; then
3663 ac_cv_header_stdc=no
3669 if test $ac_cv_header_stdc = yes; then
3670 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3671 if test "$cross_compiling" = yes; then
3674 cat >conftest.$ac_ext <<_ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h. */
3681 #if ((' ' & 0x0FF) == 0x020)
3682 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3683 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3685 # define ISLOWER(c) \
3686 (('a' <= (c) && (c) <= 'i') \
3687 || ('j' <= (c) && (c) <= 'r') \
3688 || ('s' <= (c) && (c) <= 'z'))
3689 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3692 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3697 for (i = 0; i < 256; i++)
3698 if (XOR (islower (i), ISLOWER (i))
3699 || toupper (i) != TOUPPER (i))
3704 rm -f conftest$ac_exeext
3705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3706 (eval $ac_link) 2>&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); }; }; then
3717 echo "$as_me: program exited with status $ac_status" >&5
3718 echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3722 ac_cv_header_stdc=no
3724 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3728 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3729 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3730 if test $ac_cv_header_stdc = yes; then
3732 cat >>confdefs.h <<\_ACEOF
3733 #define STDC_HEADERS 1
3738 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3748 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3749 inttypes.h stdint.h unistd.h
3751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3752 echo "$as_me:$LINENO: checking for $ac_header" >&5
3753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 cat >conftest.$ac_ext <<_ACEOF
3760 cat confdefs.h >>conftest.$ac_ext
3761 cat >>conftest.$ac_ext <<_ACEOF
3762 /* end confdefs.h. */
3763 $ac_includes_default
3765 #include <$ac_header>
3767 rm -f conftest.$ac_objext
3768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3769 (eval $ac_compile) 2>conftest.er1
3771 grep -v '^ *+' conftest.er1 >conftest.err
3773 cat conftest.err >&5
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); } &&
3776 { ac_try='test -z "$ac_c_werror_flag"
3777 || test ! -s conftest.err'
3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; } &&
3783 { ac_try='test -s conftest.$ac_objext'
3784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); }; }; then
3789 eval "$as_ac_Header=yes"
3791 echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3794 eval "$as_ac_Header=no"
3796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3801 cat >>confdefs.h <<_ACEOF
3802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3817 for ac_header in stddef.h stdlib.h strings.h unistd.h fcntl.h sys/file.h \
3820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3822 echo "$as_me:$LINENO: checking for $ac_header" >&5
3823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3830 # Is the header compilable?
3831 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3833 cat >conftest.$ac_ext <<_ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3839 $ac_includes_default
3840 #include <$ac_header>
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_header_compiler=yes
3866 echo "$as_me: failed program was:" >&5
3867 sed 's/^/| /' conftest.$ac_ext >&5
3869 ac_header_compiler=no
3871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3872 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3873 echo "${ECHO_T}$ac_header_compiler" >&6
3875 # Is the header present?
3876 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3877 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3878 cat >conftest.$ac_ext <<_ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h. */
3884 #include <$ac_header>
3886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3889 grep -v '^ *+' conftest.er1 >conftest.err
3891 cat conftest.err >&5
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); } >/dev/null; then
3894 if test -s conftest.err; then
3895 ac_cpp_err=$ac_c_preproc_warn_flag
3896 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3903 if test -z "$ac_cpp_err"; then
3904 ac_header_preproc=yes
3906 echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.$ac_ext >&5
3909 ac_header_preproc=no
3911 rm -f conftest.err conftest.$ac_ext
3912 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3913 echo "${ECHO_T}$ac_header_preproc" >&6
3915 # So? What about this header?
3916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3922 ac_header_preproc=yes
3925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3928 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3932 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3939 ## -------------------------------------- ##
3940 ## Report this to the fixincludes lists. ##
3941 ## -------------------------------------- ##
3944 sed "s/^/$as_me: WARNING: /" >&2
3947 echo "$as_me:$LINENO: checking for $ac_header" >&5
3948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3952 eval "$as_ac_Header=\$ac_header_preproc"
3954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3955 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3959 cat >>confdefs.h <<_ACEOF
3960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3984 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
3986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3987 echo "$as_me:$LINENO: checking for $ac_func" >&5
3988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3989 if eval "test \"\${$as_ac_var+set}\" = set"; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 cat >conftest.$ac_ext <<_ACEOF
3995 cat confdefs.h >>conftest.$ac_ext
3996 cat >>conftest.$ac_ext <<_ACEOF
3997 /* end confdefs.h. */
3998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4000 #define $ac_func innocuous_$ac_func
4002 /* System header to define __stub macros and hopefully few prototypes,
4003 which can conflict with char $ac_func (); below.
4004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4005 <limits.h> exists even on freestanding compilers. */
4008 # include <limits.h>
4010 # include <assert.h>
4015 /* Override any gcc2 internal prototype to avoid an error. */
4020 /* We use char because int might match the return type of a gcc2
4021 builtin and then its argument prototype would still apply. */
4023 /* The GNU C library defines this for functions which it implements
4024 to always fail with ENOSYS. Some functions are actually named
4025 something starting with __ and the normal name is an alias. */
4026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4029 char (*f) () = $ac_func;
4038 return f != $ac_func;
4043 rm -f conftest.$ac_objext conftest$ac_exeext
4044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4045 (eval $ac_link) 2>conftest.er1
4047 grep -v '^ *+' conftest.er1 >conftest.err
4049 cat conftest.err >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } &&
4052 { ac_try='test -z "$ac_c_werror_flag"
4053 || test ! -s conftest.err'
4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; } &&
4059 { ac_try='test -s conftest$ac_exeext'
4060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; }; then
4065 eval "$as_ac_var=yes"
4067 echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4070 eval "$as_ac_var=no"
4072 rm -f conftest.err conftest.$ac_objext \
4073 conftest$ac_exeext conftest.$ac_ext
4075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4076 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4077 if test `eval echo '${'$as_ac_var'}'` = yes; then
4078 cat >>confdefs.h <<_ACEOF
4079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4085 echo "$as_me:$LINENO: checking whether abort is declared" >&5
4086 echo $ECHO_N "checking whether abort is declared... $ECHO_C" >&6
4087 if test "${ac_cv_have_decl_abort+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 cat >conftest.$ac_ext <<_ACEOF
4093 cat confdefs.h >>conftest.$ac_ext
4094 cat >>conftest.$ac_ext <<_ACEOF
4095 /* end confdefs.h. */
4096 $ac_includes_default
4101 char *p = (char *) abort;
4108 rm -f conftest.$ac_objext
4109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4110 (eval $ac_compile) 2>conftest.er1
4112 grep -v '^ *+' conftest.er1 >conftest.err
4114 cat conftest.err >&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } &&
4117 { ac_try='test -z "$ac_c_werror_flag"
4118 || test ! -s conftest.err'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; } &&
4124 { ac_try='test -s conftest.$ac_objext'
4125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; }; then
4130 ac_cv_have_decl_abort=yes
4132 echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4135 ac_cv_have_decl_abort=no
4137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4139 echo "$as_me:$LINENO: result: $ac_cv_have_decl_abort" >&5
4140 echo "${ECHO_T}$ac_cv_have_decl_abort" >&6
4141 if test $ac_cv_have_decl_abort = yes; then
4143 cat >>confdefs.h <<_ACEOF
4144 #define HAVE_DECL_ABORT 1
4149 cat >>confdefs.h <<_ACEOF
4150 #define HAVE_DECL_ABORT 0
4155 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
4156 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
4157 if test "${ac_cv_have_decl_asprintf+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 cat >conftest.$ac_ext <<_ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h. */
4166 $ac_includes_default
4171 char *p = (char *) asprintf;
4178 rm -f conftest.$ac_objext
4179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4180 (eval $ac_compile) 2>conftest.er1
4182 grep -v '^ *+' conftest.er1 >conftest.err
4184 cat conftest.err >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } &&
4187 { ac_try='test -z "$ac_c_werror_flag"
4188 || test ! -s conftest.err'
4189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); }; } &&
4194 { ac_try='test -s conftest.$ac_objext'
4195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
4200 ac_cv_have_decl_asprintf=yes
4202 echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4205 ac_cv_have_decl_asprintf=no
4207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4209 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
4210 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
4211 if test $ac_cv_have_decl_asprintf = yes; then
4213 cat >>confdefs.h <<_ACEOF
4214 #define HAVE_DECL_ASPRINTF 1
4219 cat >>confdefs.h <<_ACEOF
4220 #define HAVE_DECL_ASPRINTF 0
4225 echo "$as_me:$LINENO: checking whether basename is declared" >&5
4226 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
4227 if test "${ac_cv_have_decl_basename+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 cat >conftest.$ac_ext <<_ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4236 $ac_includes_default
4241 char *p = (char *) basename;
4248 rm -f conftest.$ac_objext
4249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4250 (eval $ac_compile) 2>conftest.er1
4252 grep -v '^ *+' conftest.er1 >conftest.err
4254 cat conftest.err >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } &&
4257 { ac_try='test -z "$ac_c_werror_flag"
4258 || test ! -s conftest.err'
4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; } &&
4264 { ac_try='test -s conftest.$ac_objext'
4265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; }; then
4270 ac_cv_have_decl_basename=yes
4272 echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4275 ac_cv_have_decl_basename=no
4277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4279 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
4280 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
4281 if test $ac_cv_have_decl_basename = yes; then
4283 cat >>confdefs.h <<_ACEOF
4284 #define HAVE_DECL_BASENAME 1
4289 cat >>confdefs.h <<_ACEOF
4290 #define HAVE_DECL_BASENAME 0
4295 echo "$as_me:$LINENO: checking whether errno is declared" >&5
4296 echo $ECHO_N "checking whether errno is declared... $ECHO_C" >&6
4297 if test "${ac_cv_have_decl_errno+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 cat >conftest.$ac_ext <<_ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h. */
4306 $ac_includes_default
4311 char *p = (char *) errno;
4318 rm -f conftest.$ac_objext
4319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4320 (eval $ac_compile) 2>conftest.er1
4322 grep -v '^ *+' conftest.er1 >conftest.err
4324 cat conftest.err >&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } &&
4327 { ac_try='test -z "$ac_c_werror_flag"
4328 || test ! -s conftest.err'
4329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; } &&
4334 { ac_try='test -s conftest.$ac_objext'
4335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }; }; then
4340 ac_cv_have_decl_errno=yes
4342 echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4345 ac_cv_have_decl_errno=no
4347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4349 echo "$as_me:$LINENO: result: $ac_cv_have_decl_errno" >&5
4350 echo "${ECHO_T}$ac_cv_have_decl_errno" >&6
4351 if test $ac_cv_have_decl_errno = yes; then
4353 cat >>confdefs.h <<_ACEOF
4354 #define HAVE_DECL_ERRNO 1
4359 cat >>confdefs.h <<_ACEOF
4360 #define HAVE_DECL_ERRNO 0
4365 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
4366 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
4367 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4370 cat >conftest.$ac_ext <<_ACEOF
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h. */
4376 $ac_includes_default
4381 char *p = (char *) vasprintf;
4388 rm -f conftest.$ac_objext
4389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4390 (eval $ac_compile) 2>conftest.er1
4392 grep -v '^ *+' conftest.er1 >conftest.err
4394 cat conftest.err >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } &&
4397 { ac_try='test -z "$ac_c_werror_flag"
4398 || test ! -s conftest.err'
4399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); }; } &&
4404 { ac_try='test -s conftest.$ac_objext'
4405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; }; then
4410 ac_cv_have_decl_vasprintf=yes
4412 echo "$as_me: failed program was:" >&5
4413 sed 's/^/| /' conftest.$ac_ext >&5