2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for package-unused version-unused.
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='package-unused'
269 PACKAGE_TARNAME='libstdc++'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='package-unused version-unused'
274 ac_unique_file="src/ios.cc"
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 libtool_VERSION multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar glibcxx_builddir glibcxx_srcdir toplevel_srcdir CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LN_S AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CPP CPPFLAGS EGREP LIBTOOL CXXCPP enable_shared enable_static GLIBCXX_HOSTED_TRUE GLIBCXX_HOSTED_FALSE GLIBCXX_BUILD_PCH_TRUE GLIBCXX_BUILD_PCH_FALSE glibcxx_PCHFLAGS CSTDIO_H BASIC_FILE_H BASIC_FILE_CC check_msgfmt glibcxx_MOFILES glibcxx_POFILES glibcxx_localedir USE_NLS CLOCALE_H CMESSAGES_H CCODECVT_CC CCOLLATE_CC CCTYPE_CC CMESSAGES_CC CMONEY_CC CNUMERIC_CC CTIME_H CTIME_CC CLOCALE_CC CLOCALE_INTERNAL_H ALLOCATOR_H ALLOCATOR_NAME C_INCLUDE_DIR GLIBCXX_C_HEADERS_C_TRUE GLIBCXX_C_HEADERS_C_FALSE GLIBCXX_C_HEADERS_C_STD_TRUE GLIBCXX_C_HEADERS_C_STD_FALSE GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE DEBUG_FLAGS GLIBCXX_BUILD_DEBUG_TRUE GLIBCXX_BUILD_DEBUG_FALSE EXTRA_CXX_FLAGS glibcxx_thread_h WERROR SECTION_FLAGS SECTION_LDFLAGS OPT_LDFLAGS LIBMATHOBJS LIBICONV SYMVER_FILE port_specific_symbol_files ENABLE_SYMVERS_TRUE ENABLE_SYMVERS_FALSE ENABLE_SYMVERS_GNU_TRUE ENABLE_SYMVERS_GNU_FALSE ENABLE_SYMVERS_GNU_NAMESPACE_TRUE ENABLE_SYMVERS_GNU_NAMESPACE_FALSE ENABLE_SYMVERS_DARWIN_TRUE ENABLE_SYMVERS_DARWIN_FALSE ENABLE_VISIBILITY_TRUE ENABLE_VISIBILITY_FALSE GLIBCXX_LDBL_COMPAT_TRUE GLIBCXX_LDBL_COMPAT_FALSE baseline_dir ATOMICITY_SRCDIR ATOMIC_WORD_SRCDIR CPU_DEFINES_SRCDIR ABI_TWEAKS_SRCDIR OS_INC_SRCDIR glibcxx_prefixdir gxx_include_dir glibcxx_toolexecdir glibcxx_toolexeclibdir GLIBCXX_INCLUDES TOPLEVEL_INCLUDES OPTIMIZE_CXXFLAGS WARN_FLAGS LIBSUPCXX_PICFLAGS LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CPP_set=${CPP+set}
754 ac_env_CPP_value=$CPP
755 ac_cv_env_CPP_set=${CPP+set}
756 ac_cv_env_CPP_value=$CPP
757 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
758 ac_env_CPPFLAGS_value=$CPPFLAGS
759 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
760 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
761 ac_env_CXXCPP_set=${CXXCPP+set}
762 ac_env_CXXCPP_value=$CXXCPP
763 ac_cv_env_CXXCPP_set=${CXXCPP+set}
764 ac_cv_env_CXXCPP_value=$CXXCPP
767 # Report the --help message.
769 if test "$ac_init_help" = "long"; then
770 # Omit some internal or obsolete options to make the list less imposing.
771 # This message is too long to be a string in the A/UX 3.1 sh.
773 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
775 Usage: $0 [OPTION]... [VAR=VALUE]...
777 To assign environment variables (e.g., CC, CFLAGS...), specify them as
778 VAR=VALUE. See below for descriptions of some of the useful variables.
780 Defaults for the options are specified in brackets.
783 -h, --help display this help and exit
784 --help=short display options specific to this package
785 --help=recursive display the short help of all the included packages
786 -V, --version display version information and exit
787 -q, --quiet, --silent do not print \`checking...' messages
788 --cache-file=FILE cache test results in FILE [disabled]
789 -C, --config-cache alias for \`--cache-file=config.cache'
790 -n, --no-create do not create output files
791 --srcdir=DIR find the sources in DIR [configure dir or \`..']
796 Installation directories:
797 --prefix=PREFIX install architecture-independent files in PREFIX
799 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
802 By default, \`make install' will install all the files in
803 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
804 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
805 for instance \`--prefix=\$HOME'.
807 For better control, use the options below.
809 Fine tuning of the installation directories:
810 --bindir=DIR user executables [EPREFIX/bin]
811 --sbindir=DIR system admin executables [EPREFIX/sbin]
812 --libexecdir=DIR program executables [EPREFIX/libexec]
813 --datadir=DIR read-only architecture-independent data [PREFIX/share]
814 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
815 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
816 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
817 --libdir=DIR object code libraries [EPREFIX/lib]
818 --includedir=DIR C header files [PREFIX/include]
819 --oldincludedir=DIR C header files for non-gcc [/usr/include]
820 --infodir=DIR info documentation [PREFIX/info]
821 --mandir=DIR man documentation [PREFIX/man]
827 --program-prefix=PREFIX prepend PREFIX to installed program names
828 --program-suffix=SUFFIX append SUFFIX to installed program names
829 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
832 --build=BUILD configure for building on BUILD [guessed]
833 --host=HOST cross-compile to build programs to run on HOST [BUILD]
834 --target=TARGET configure for building compilers for TARGET [HOST]
838 if test -n "$ac_init_help"; then
839 case $ac_init_help in
840 short | recursive ) echo "Configuration of package-unused version-unused:";;
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847 --enable-multilib build many library versions (default)
848 --enable-maintainer-mode enable make rules and dependencies not useful
849 (and sometimes confusing) to the casual installer
850 --enable-shared=PKGS build shared libraries default=yes
851 --enable-static=PKGS build static libraries default=yes
852 --enable-fast-install=PKGS optimize for fast installation default=yes
853 --disable-libtool-lock avoid locking (might break parallel builds)
854 --disable-hosted-libstdcxx
855 only build freestanding C++ runtime support
856 --enable-sjlj-exceptions
857 force use of builtin_setjmp for exceptions
859 --enable-libstdcxx-pch build pre-compiled libstdc++ headers
861 --enable-cstdio=PACKAGE use target-specific I/O package
863 --enable-clocale[=MODEL]
864 use MODEL for target locale package
866 --enable-nls use Native Language Support (default)
867 --enable-libstdcxx-allocator=KIND
868 use KIND for target std::allocator base
870 --enable-cheaders=KIND construct "C" headers for g++
872 --enable-long-long enable template specializations for 'long long'
874 --enable-wchar_t enable template specializations for 'wchar_t'
876 --enable-c99 turns on ISO/IEC 9899:1999 support
878 --enable-concept-checks use Boost-derived template checks [default=no]
879 --enable-libstdcxx-debug-flags=FLAGS
880 pass compiler FLAGS when building debug library
882 --enable-libstdcxx-debug
883 build extra debug library [default=no]
884 --enable-cxx-flags=FLAGS
885 pass compiler FLAGS when building library
887 --enable-fully-dynamic-string
888 do not put empty strings in per-process static
890 --enable-tls Use thread-local storage [default=yes]
891 --enable-symvers=STYLE enables symbol versioning of the shared library
893 --enable-visibility enables visibility safe usage [default=yes]
894 --enable-version-specific-runtime-libs
895 Specify that runtime libraries should be installed
896 in a compiler-specific directory
899 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
900 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
901 --with-target-subdir=SUBDIR
902 configuring in a subdirectory
903 --with-cross-host=HOST configuring with a cross compiler
904 --with-newlib assume newlib as a system C library
905 --with-gnu-ld assume the C compiler uses GNU ld default=no
906 --with-pic try to use only PIC/non-PIC objects default=use both
907 --with-gxx-include-dir=DIR
908 installation directory for include files
910 Some influential environment variables:
911 CC C compiler command
912 CFLAGS C compiler flags
913 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
914 nonstandard directory <lib dir>
915 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
916 headers in a nonstandard directory <include dir>
917 CXX C++ compiler command
918 CXXFLAGS C++ compiler flags
920 CXXCPP C++ preprocessor
922 Use these variables to override the choices made by `configure' or to help
923 it to find libraries and programs with nonstandard names/locations.
928 if test "$ac_init_help" = "recursive"; then
929 # If there are subdirs, report their specific --help.
931 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
932 test -d $ac_dir || continue
935 if test "$ac_dir" != .; then
936 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
937 # A "../" for each directory in $ac_dir_suffix.
938 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
940 ac_dir_suffix= ac_top_builddir=
944 .) # No --srcdir option. We are building in place.
946 if test -z "$ac_top_builddir"; then
949 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
951 [\\/]* | ?:[\\/]* ) # Absolute path.
952 ac_srcdir=$srcdir$ac_dir_suffix;
953 ac_top_srcdir=$srcdir ;;
955 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
956 ac_top_srcdir=$ac_top_builddir$srcdir ;;
959 # Do not use `cd foo && pwd` to compute absolute paths, because
960 # the directories may not exist.
962 .) ac_abs_builddir="$ac_dir";;
965 .) ac_abs_builddir=`pwd`;;
966 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
967 *) ac_abs_builddir=`pwd`/"$ac_dir";;
970 case $ac_abs_builddir in
971 .) ac_abs_top_builddir=${ac_top_builddir}.;;
973 case ${ac_top_builddir}. in
974 .) ac_abs_top_builddir=$ac_abs_builddir;;
975 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
976 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
979 case $ac_abs_builddir in
980 .) ac_abs_srcdir=$ac_srcdir;;
983 .) ac_abs_srcdir=$ac_abs_builddir;;
984 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
985 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
988 case $ac_abs_builddir in
989 .) ac_abs_top_srcdir=$ac_top_srcdir;;
991 case $ac_top_srcdir in
992 .) ac_abs_top_srcdir=$ac_abs_builddir;;
993 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
994 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
999 # Check for guested configure; otherwise get Cygnus style configure.
1000 if test -f $ac_srcdir/configure.gnu; then
1002 $SHELL $ac_srcdir/configure.gnu --help=recursive
1003 elif test -f $ac_srcdir/configure; then
1005 $SHELL $ac_srcdir/configure --help=recursive
1006 elif test -f $ac_srcdir/configure.ac ||
1007 test -f $ac_srcdir/configure.in; then
1009 $ac_configure --help
1011 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1017 test -n "$ac_init_help" && exit 0
1018 if $ac_init_version; then
1020 package-unused configure version-unused
1021 generated by GNU Autoconf 2.59
1023 Copyright (C) 2003 Free Software Foundation, Inc.
1024 This configure script is free software; the Free Software Foundation
1025 gives unlimited permission to copy, distribute and modify it.
1031 This file contains any messages produced by compilers while
1032 running configure, to aid debugging if configure makes a mistake.
1034 It was created by package-unused $as_me version-unused, which was
1035 generated by GNU Autoconf 2.59. Invocation command line was
1046 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1047 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1048 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1049 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1050 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1052 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1053 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1055 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1056 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1057 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1058 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1059 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1060 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1061 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1069 test -z "$as_dir" && as_dir=.
1070 echo "PATH: $as_dir"
1085 # Keep a trace of the command line.
1086 # Strip out --no-create and --no-recursion so they do not pile up.
1087 # Strip out --silent because we don't want to record it for future runs.
1088 # Also quote any args containing shell meta-characters.
1089 # Make two passes to allow for proper duplicate-argument suppression.
1094 ac_must_keep_next=false
1100 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102 | -silent | --silent | --silen | --sile | --sil)
1104 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1105 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1108 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1110 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1111 if test $ac_must_keep_next = true; then
1112 ac_must_keep_next=false # Got value, back to normal.
1115 *=* | --config-cache | -C | -disable-* | --disable-* \
1116 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1117 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1118 | -with-* | --with-* | -without-* | --without-* | --x)
1119 case "$ac_configure_args0 " in
1120 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1123 -* ) ac_must_keep_next=true ;;
1126 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1127 # Get rid of the leading space.
1133 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1134 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1136 # When interrupted or exit'd, cleanup temporary files, and complete
1137 # config.log. We remove comments because anyway the quotes in there
1138 # would cause problems or look ugly.
1139 # WARNING: Be sure not to use single quotes in there, as some shells,
1140 # such as our DU 5.0 friend, will then `close' the trap.
1141 trap 'exit_status=$?
1142 # Save into config.log some information that might help in debugging.
1147 ## ---------------- ##
1148 ## Cache variables. ##
1149 ## ---------------- ##
1152 # The following way of writing the cache mishandles newlines in values,
1155 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1158 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1159 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1163 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1170 ## ----------------- ##
1171 ## Output variables. ##
1172 ## ----------------- ##
1175 for ac_var in $ac_subst_vars
1177 eval ac_val=$`echo $ac_var`
1178 echo "$ac_var='"'"'$ac_val'"'"'"
1182 if test -n "$ac_subst_files"; then
1189 for ac_var in $ac_subst_files
1191 eval ac_val=$`echo $ac_var`
1192 echo "$ac_var='"'"'$ac_val'"'"'"
1197 if test -s confdefs.h; then
1204 sed "/^$/d" confdefs.h | sort
1207 test "$ac_signal" != 0 &&
1208 echo "$as_me: caught signal $ac_signal"
1209 echo "$as_me: exit $exit_status"
1211 rm -f core *.core &&
1212 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1215 for ac_signal in 1 2 13 15; do
1216 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1220 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1221 rm -rf conftest* confdefs.h
1222 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1225 # Predefined preprocessor variables.
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_NAME "$PACKAGE_NAME"
1232 cat >>confdefs.h <<_ACEOF
1233 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1237 cat >>confdefs.h <<_ACEOF
1238 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1242 cat >>confdefs.h <<_ACEOF
1243 #define PACKAGE_STRING "$PACKAGE_STRING"
1247 cat >>confdefs.h <<_ACEOF
1248 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1252 # Let the site file select an alternate cache file if it wants to.
1253 # Prefer explicitly selected file to automatically selected ones.
1254 if test -z "$CONFIG_SITE"; then
1255 if test "x$prefix" != xNONE; then
1256 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1258 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1261 for ac_site_file in $CONFIG_SITE; do
1262 if test -r "$ac_site_file"; then
1263 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1264 echo "$as_me: loading site script $ac_site_file" >&6;}
1265 sed 's/^/| /' "$ac_site_file" >&5
1270 if test -r "$cache_file"; then
1271 # Some versions of bash will fail to source /dev/null (special
1272 # files actually), so we avoid doing that.
1273 if test -f "$cache_file"; then
1274 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1275 echo "$as_me: loading cache $cache_file" >&6;}
1277 [\\/]* | ?:[\\/]* ) . $cache_file;;
1278 *) . ./$cache_file;;
1282 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1283 echo "$as_me: creating cache $cache_file" >&6;}
1287 # Check that the precious variables saved in the cache have kept the same
1289 ac_cache_corrupted=false
1290 for ac_var in `(set) 2>&1 |
1291 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1292 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1293 eval ac_new_set=\$ac_env_${ac_var}_set
1294 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1295 eval ac_new_val="\$ac_env_${ac_var}_value"
1296 case $ac_old_set,$ac_new_set in
1298 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1299 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1300 ac_cache_corrupted=: ;;
1302 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1303 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1304 ac_cache_corrupted=: ;;
1307 if test "x$ac_old_val" != "x$ac_new_val"; then
1308 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1309 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1310 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1311 echo "$as_me: former value: $ac_old_val" >&2;}
1312 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1313 echo "$as_me: current value: $ac_new_val" >&2;}
1314 ac_cache_corrupted=:
1317 # Pass precious variables to config.status.
1318 if test "$ac_new_set" = set; then
1320 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1321 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1322 *) ac_arg=$ac_var=$ac_new_val ;;
1324 case " $ac_configure_args " in
1325 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1326 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1330 if $ac_cache_corrupted; then
1331 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1332 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1333 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1334 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1335 { (exit 1); exit 1; }; }
1339 ac_cpp='$CPP $CPPFLAGS'
1340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1371 ac_config_headers="$ac_config_headers config.h"
1374 # This works around the fact that libtool configuration may change LD
1375 # for this particular configuration, but some shells, instead of
1376 # keeping the changes in LD private, export them just because LD is
1377 # exported. Only used at the end of this file.
1378 ### am handles this now? ORIGINAL_LD_FOR_MULTILIBS=$LD
1380 # For libtool versioning info, format is CURRENT:REVISION:AGE
1381 libtool_VERSION=6:10:0
1384 # Find the rest of the source tree framework.
1385 # Default to --enable-multilib
1386 # Check whether --enable-multilib or --disable-multilib was given.
1387 if test "${enable_multilib+set}" = set; then
1388 enableval="$enable_multilib"
1389 case "$enableval" in
1390 yes) multilib=yes ;;
1392 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1393 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1394 { (exit 1); exit 1; }; } ;;
1400 # We may get other options which we leave undocumented:
1401 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1402 # See config-ml.in if you want the gory details.
1404 if test "$srcdir" = "."; then
1405 if test "$with_target_subdir" != "."; then
1406 multi_basedir="$srcdir/$with_multisrctop../.."
1408 multi_basedir="$srcdir/$with_multisrctop.."
1411 multi_basedir="$srcdir/.."
1415 # Even if the default multilib is not a cross compilation,
1416 # it may be that some of the other multilibs are.
1417 if test $cross_compiling = no && test $multilib = yes \
1418 && test "x${with_multisubdir}" != x ; then
1419 cross_compiling=maybe
1422 ac_config_commands="$ac_config_commands default-1"
1425 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1427 # You will slowly go insane if you do not grok the following fact: when
1428 # building v3 as part of the compiler, the top-level /target/ becomes the
1429 # library's /host/. configure then causes --target to default to --host,
1430 # exactly like any other package using autoconf. Therefore, 'target' and
1431 # 'host' will always be the same. This makes sense both for native and
1432 # cross compilers, just think about it for a little while. :-)
1434 # Also, if v3 is being configured as part of a cross compiler, the top-level
1435 # configure script will pass the "real" host as $with_cross_host.
1437 # Do not delete or change the following two lines. For why, see
1438 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1440 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1441 if test -f $ac_dir/install-sh; then
1443 ac_install_sh="$ac_aux_dir/install-sh -c"
1445 elif test -f $ac_dir/install.sh; then
1447 ac_install_sh="$ac_aux_dir/install.sh -c"
1449 elif test -f $ac_dir/shtool; then
1451 ac_install_sh="$ac_aux_dir/shtool install -c"
1455 if test -z "$ac_aux_dir"; then
1456 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1457 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1458 { (exit 1); exit 1; }; }
1460 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1461 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1462 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1464 # Make sure we can run config.sub.
1465 $ac_config_sub sun4 >/dev/null 2>&1 ||
1466 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1467 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1468 { (exit 1); exit 1; }; }
1470 echo "$as_me:$LINENO: checking build system type" >&5
1471 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1472 if test "${ac_cv_build+set}" = set; then
1473 echo $ECHO_N "(cached) $ECHO_C" >&6
1475 ac_cv_build_alias=$build_alias
1476 test -z "$ac_cv_build_alias" &&
1477 ac_cv_build_alias=`$ac_config_guess`
1478 test -z "$ac_cv_build_alias" &&
1479 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1480 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1481 { (exit 1); exit 1; }; }
1482 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1483 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1484 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1485 { (exit 1); exit 1; }; }
1488 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1489 echo "${ECHO_T}$ac_cv_build" >&6
1491 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1492 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1493 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1496 echo "$as_me:$LINENO: checking host system type" >&5
1497 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1498 if test "${ac_cv_host+set}" = set; then
1499 echo $ECHO_N "(cached) $ECHO_C" >&6
1501 ac_cv_host_alias=$host_alias
1502 test -z "$ac_cv_host_alias" &&
1503 ac_cv_host_alias=$ac_cv_build_alias
1504 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1505 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1506 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1507 { (exit 1); exit 1; }; }
1510 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1511 echo "${ECHO_T}$ac_cv_host" >&6
1513 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1514 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1515 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1518 echo "$as_me:$LINENO: checking target system type" >&5
1519 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1520 if test "${ac_cv_target+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1523 ac_cv_target_alias=$target_alias
1524 test "x$ac_cv_target_alias" = "x" &&
1525 ac_cv_target_alias=$ac_cv_host_alias
1526 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1527 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1528 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1529 { (exit 1); exit 1; }; }
1532 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1533 echo "${ECHO_T}$ac_cv_target" >&6
1534 target=$ac_cv_target
1535 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1536 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1537 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1540 # The aliases save the names the user supplied, while $host etc.
1541 # will get canonicalized.
1542 test -n "$target_alias" &&
1543 test "$program_prefix$program_suffix$program_transform_name" = \
1545 program_prefix=${target_alias}-
1546 target_alias=${target_alias-$host_alias}
1548 # Handy for debugging:
1549 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
1551 if test "$build" != "$host"; then
1552 # We are being configured with some form of cross compiler.
1553 GLIBCXX_IS_NATIVE=false
1554 case "$host","$target" in
1555 # Darwin crosses can use the host system's libraries and headers,
1556 # because of the fat library support. Of course, it must be the
1557 # same version of Darwin on both sides. Allow the user to
1558 # just say --target=foo-darwin without a version number to mean
1559 # "the version on this system".
1560 *-*-darwin*,*-*-darwin*)
1561 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
1562 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
1563 if test $hostos = $targetos -o $targetos = darwin ; then
1564 GLIBCXX_IS_NATIVE=true
1573 GLIBCXX_IS_NATIVE=true
1576 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1577 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1578 # 1.x: minimum required version
1579 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1580 # of other PACKAGE_* variables will, however, and there's nothing
1581 # we can do about that; they come from AC_INIT).
1582 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1583 # file in the top srcdir, etc, etc), so stop complaining.
1584 # no-dependencies: turns off auto dependency generation (just for now)
1585 # -Wall: turns on all automake warnings...
1586 # -Wno-portability: ...except this one, since GNU make is now required.
1587 am__api_version="1.9"
1588 # Find a good install program. We prefer a C program (faster),
1589 # so one script is as good as another. But avoid the broken or
1590 # incompatible versions:
1591 # SysV /etc/install, /usr/sbin/install
1592 # SunOS /usr/etc/install
1593 # IRIX /sbin/install
1595 # AmigaOS /C/install, which installs bootblocks on floppy discs
1596 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1597 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1598 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1599 # OS/2's system install, which has a completely different semantic
1600 # ./install, which can be erroneously created by make from ./install.sh.
1601 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1602 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1603 if test -z "$INSTALL"; then
1604 if test "${ac_cv_path_install+set}" = set; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
1607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611 test -z "$as_dir" && as_dir=.
1612 # Account for people who put trailing slashes in PATH elements.
1614 ./ | .// | /cC/* | \
1615 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1616 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1619 # OSF1 and SCO ODT 3.0 have their own names for install.
1620 # Don't use installbsd from OSF since it installs stuff as root
1622 for ac_prog in ginstall scoinst install; do
1623 for ac_exec_ext in '' $ac_executable_extensions; do
1624 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1625 if test $ac_prog = install &&
1626 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1627 # AIX install. It has an incompatible calling convention.
1629 elif test $ac_prog = install &&
1630 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1631 # program-specific install script used by HP pwplus--don't use.
1634 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1646 if test "${ac_cv_path_install+set}" = set; then
1647 INSTALL=$ac_cv_path_install
1649 # As a last resort, use the slow shell script. We don't cache a
1650 # path for INSTALL within a source directory, because that will
1651 # break other packages using the cache if that directory is
1652 # removed, or if the path is relative.
1653 INSTALL=$ac_install_sh
1656 echo "$as_me:$LINENO: result: $INSTALL" >&5
1657 echo "${ECHO_T}$INSTALL" >&6
1659 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1660 # It thinks the first close brace ends the variable substitution.
1661 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1663 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1665 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1667 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1668 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1671 echo timestamp > conftest.file
1672 # Do `set' in a subshell so we don't clobber the current shell's
1673 # arguments. Must try -L first in case configure is actually a
1674 # symlink; some systems play weird games with the mod time of symlinks
1675 # (eg FreeBSD returns the mod time of the symlink's containing
1678 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1679 if test "$*" = "X"; then
1681 set X `ls -t $srcdir/configure conftest.file`
1684 if test "$*" != "X $srcdir/configure conftest.file" \
1685 && test "$*" != "X conftest.file $srcdir/configure"; then
1687 # If neither matched, then we have a broken ls. This can happen
1688 # if, for instance, CONFIG_SHELL is bash and it inherits a
1689 # broken ls alias from the environment. This has actually
1690 # happened. Such a system could not be considered "sane".
1691 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1692 alias in your environment" >&5
1693 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1694 alias in your environment" >&2;}
1695 { (exit 1); exit 1; }; }
1698 test "$2" = conftest.file
1704 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1705 Check your system clock" >&5
1706 echo "$as_me: error: newly created file is older than distributed files!
1707 Check your system clock" >&2;}
1708 { (exit 1); exit 1; }; }
1710 echo "$as_me:$LINENO: result: yes" >&5
1711 echo "${ECHO_T}yes" >&6
1712 test "$program_prefix" != NONE &&
1713 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1714 # Use a double $ so make ignores it.
1715 test "$program_suffix" != NONE &&
1716 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1717 # Double any \ or $. echo might interpret backslashes.
1718 # By default was `s,x,x', remove it if useless.
1719 cat <<\_ACEOF >conftest.sed
1720 s/[\\$]/&&/g;s/;s,x,x,$//
1722 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1725 # expand $ac_aux_dir to an absolute path
1726 am_aux_dir=`cd $ac_aux_dir && pwd`
1728 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1729 # Use eval to expand $SHELL
1730 if eval "$MISSING --run true"; then
1731 am_missing_run="$MISSING --run "
1734 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1735 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1738 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1739 # We used to keeping the `.' as first argument, in order to
1740 # allow $(mkdir_p) to be used without argument. As in
1741 # $(mkdir_p) $(somedir)
1742 # where $(somedir) is conditionally defined. However this is wrong
1744 # 1. if the package is installed by a user who cannot write `.'
1745 # make install will fail,
1746 # 2. the above comment should most certainly read
1747 # $(mkdir_p) $(DESTDIR)$(somedir)
1748 # so it does not work when $(somedir) is undefined and
1749 # $(DESTDIR) is not.
1750 # To support the latter case, we have to write
1751 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1752 # so the `.' trick is pointless.
1753 mkdir_p='mkdir -p --'
1755 # On NextStep and OpenStep, the `mkdir' command does not
1756 # recognize any option. It will interpret all options as
1757 # directories to create, and then abort because `.' already
1759 for d in ./-p ./--version;
1761 test -d $d && rmdir $d
1763 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1764 if test -f "$ac_aux_dir/mkinstalldirs"; then
1765 mkdir_p='$(mkinstalldirs)'
1767 mkdir_p='$(install_sh) -d'
1771 for ac_prog in gawk mawk nawk awk
1773 # Extract the first word of "$ac_prog", so it can be a program name with args.
1774 set dummy $ac_prog; ac_word=$2
1775 echo "$as_me:$LINENO: checking for $ac_word" >&5
1776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1777 if test "${ac_cv_prog_AWK+set}" = set; then
1778 echo $ECHO_N "(cached) $ECHO_C" >&6
1780 if test -n "$AWK"; then
1781 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787 test -z "$as_dir" && as_dir=.
1788 for ac_exec_ext in '' $ac_executable_extensions; do
1789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1790 ac_cv_prog_AWK="$ac_prog"
1791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1800 if test -n "$AWK"; then
1801 echo "$as_me:$LINENO: result: $AWK" >&5
1802 echo "${ECHO_T}$AWK" >&6
1804 echo "$as_me:$LINENO: result: no" >&5
1805 echo "${ECHO_T}no" >&6
1808 test -n "$AWK" && break
1811 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1812 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1813 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1814 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1817 cat >conftest.make <<\_ACEOF
1819 @echo 'ac_maketemp="$(MAKE)"'
1821 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1822 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1823 if test -n "$ac_maketemp"; then
1824 eval ac_cv_prog_make_${ac_make}_set=yes
1826 eval ac_cv_prog_make_${ac_make}_set=no
1830 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1831 echo "$as_me:$LINENO: result: yes" >&5
1832 echo "${ECHO_T}yes" >&6
1835 echo "$as_me:$LINENO: result: no" >&5
1836 echo "${ECHO_T}no" >&6
1837 SET_MAKE="MAKE=${MAKE-make}"
1840 rm -rf .tst 2>/dev/null
1841 mkdir .tst 2>/dev/null
1842 if test -d .tst; then
1847 rmdir .tst 2>/dev/null
1849 # test to see if srcdir already configured
1850 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1851 test -f $srcdir/config.status; then
1852 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1853 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1854 { (exit 1); exit 1; }; }
1857 # test whether we have cygpath
1858 if test -z "$CYGPATH_W"; then
1859 if (cygpath --version) >/dev/null 2>/dev/null; then
1860 CYGPATH_W='cygpath -w'
1867 # Define the identity of the package.
1869 VERSION='version-unused'
1872 # Some tools Automake needs.
1874 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1877 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1880 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1883 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1886 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1888 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1890 # Installed binaries are usually stripped using `strip' when the user
1891 # run `make install-strip'. However `strip' might not be the right
1892 # tool to use in cross-compilation environments, therefore Automake
1893 # will honor the `STRIP' environment variable to overrule this program.
1894 if test "$cross_compiling" != no; then
1895 if test -n "$ac_tool_prefix"; then
1896 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1897 set dummy ${ac_tool_prefix}strip; ac_word=$2
1898 echo "$as_me:$LINENO: checking for $ac_word" >&5
1899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1900 if test "${ac_cv_prog_STRIP+set}" = set; then
1901 echo $ECHO_N "(cached) $ECHO_C" >&6
1903 if test -n "$STRIP"; then
1904 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1910 test -z "$as_dir" && as_dir=.
1911 for ac_exec_ext in '' $ac_executable_extensions; do
1912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1913 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1922 STRIP=$ac_cv_prog_STRIP
1923 if test -n "$STRIP"; then
1924 echo "$as_me:$LINENO: result: $STRIP" >&5
1925 echo "${ECHO_T}$STRIP" >&6
1927 echo "$as_me:$LINENO: result: no" >&5
1928 echo "${ECHO_T}no" >&6
1932 if test -z "$ac_cv_prog_STRIP"; then
1934 # Extract the first word of "strip", so it can be a program name with args.
1935 set dummy strip; ac_word=$2
1936 echo "$as_me:$LINENO: checking for $ac_word" >&5
1937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1938 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1939 echo $ECHO_N "(cached) $ECHO_C" >&6
1941 if test -n "$ac_ct_STRIP"; then
1942 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1948 test -z "$as_dir" && as_dir=.
1949 for ac_exec_ext in '' $ac_executable_extensions; do
1950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1951 ac_cv_prog_ac_ct_STRIP="strip"
1952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1958 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1961 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1962 if test -n "$ac_ct_STRIP"; then
1963 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1964 echo "${ECHO_T}$ac_ct_STRIP" >&6
1966 echo "$as_me:$LINENO: result: no" >&5
1967 echo "${ECHO_T}no" >&6
1972 STRIP="$ac_cv_prog_STRIP"
1976 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1978 # We need awk for the "check" target. The system "awk" is bad on
1980 # Always define AMTAR for backward compatibility.
1982 AMTAR=${AMTAR-"${am_missing_run}tar"}
1984 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1995 # Runs configure.host, finds CC, CXX, and assorted other critical bits. Sets
1996 # up critical shell variables.
1999 ac_cpp='$CPP $CPPFLAGS'
2000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2003 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2004 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2005 # On Suns, sometimes $CPP names a directory.
2006 if test -n "$CPP" && test -d "$CPP"; then
2009 if test -z "$CPP"; then
2010 if test "${ac_cv_prog_CPP+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 # Double quotes because CPP needs to be expanded
2014 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2017 for ac_c_preproc_warn_flag in '' yes
2019 # Use a header file that comes with gcc, so configuring glibc
2020 # with a fresh cross-compiler works.
2021 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2022 # <limits.h> exists even on freestanding compilers.
2023 # On the NeXT, cc -E runs the code through the compiler's parser,
2024 # not just through cpp. "Syntax error" is here to catch this case.
2025 cat >conftest.$ac_ext <<_ACEOF
2028 cat confdefs.h >>conftest.$ac_ext
2029 cat >>conftest.$ac_ext <<_ACEOF
2030 /* end confdefs.h. */
2032 # include <limits.h>
2034 # include <assert.h>
2038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2041 grep -v '^ *+' conftest.er1 >conftest.err
2043 cat conftest.err >&5
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); } >/dev/null; then
2046 if test -s conftest.err; then
2047 ac_cpp_err=$ac_c_preproc_warn_flag
2048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2055 if test -z "$ac_cpp_err"; then
2058 echo "$as_me: failed program was:" >&5
2059 sed 's/^/| /' conftest.$ac_ext >&5
2061 # Broken: fails on valid input.
2064 rm -f conftest.err conftest.$ac_ext
2066 # OK, works on sane cases. Now check whether non-existent headers
2067 # can be detected and how.
2068 cat >conftest.$ac_ext <<_ACEOF
2071 cat confdefs.h >>conftest.$ac_ext
2072 cat >>conftest.$ac_ext <<_ACEOF
2073 /* end confdefs.h. */
2074 #include <ac_nonexistent.h>
2076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2079 grep -v '^ *+' conftest.er1 >conftest.err
2081 cat conftest.err >&5
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); } >/dev/null; then
2084 if test -s conftest.err; then
2085 ac_cpp_err=$ac_c_preproc_warn_flag
2086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2093 if test -z "$ac_cpp_err"; then
2094 # Broken: success on invalid input.
2097 echo "$as_me: failed program was:" >&5
2098 sed 's/^/| /' conftest.$ac_ext >&5
2100 # Passes both tests.
2104 rm -f conftest.err conftest.$ac_ext
2107 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2108 rm -f conftest.err conftest.$ac_ext
2109 if $ac_preproc_ok; then
2121 echo "$as_me:$LINENO: result: $CPP" >&5
2122 echo "${ECHO_T}$CPP" >&6
2124 for ac_c_preproc_warn_flag in '' yes
2126 # Use a header file that comes with gcc, so configuring glibc
2127 # with a fresh cross-compiler works.
2128 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2129 # <limits.h> exists even on freestanding compilers.
2130 # On the NeXT, cc -E runs the code through the compiler's parser,
2131 # not just through cpp. "Syntax error" is here to catch this case.
2132 cat >conftest.$ac_ext <<_ACEOF
2135 cat confdefs.h >>conftest.$ac_ext
2136 cat >>conftest.$ac_ext <<_ACEOF
2137 /* end confdefs.h. */
2139 # include <limits.h>
2141 # include <assert.h>
2145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2148 grep -v '^ *+' conftest.er1 >conftest.err
2150 cat conftest.err >&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); } >/dev/null; then
2153 if test -s conftest.err; then
2154 ac_cpp_err=$ac_c_preproc_warn_flag
2155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2162 if test -z "$ac_cpp_err"; then
2165 echo "$as_me: failed program was:" >&5
2166 sed 's/^/| /' conftest.$ac_ext >&5
2168 # Broken: fails on valid input.
2171 rm -f conftest.err conftest.$ac_ext
2173 # OK, works on sane cases. Now check whether non-existent headers
2174 # can be detected and how.
2175 cat >conftest.$ac_ext <<_ACEOF
2178 cat confdefs.h >>conftest.$ac_ext
2179 cat >>conftest.$ac_ext <<_ACEOF
2180 /* end confdefs.h. */
2181 #include <ac_nonexistent.h>
2183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2186 grep -v '^ *+' conftest.er1 >conftest.err
2188 cat conftest.err >&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); } >/dev/null; then
2191 if test -s conftest.err; then
2192 ac_cpp_err=$ac_c_preproc_warn_flag
2193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2200 if test -z "$ac_cpp_err"; then
2201 # Broken: success on invalid input.
2204 echo "$as_me: failed program was:" >&5
2205 sed 's/^/| /' conftest.$ac_ext >&5
2207 # Passes both tests.
2211 rm -f conftest.err conftest.$ac_ext
2214 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2215 rm -f conftest.err conftest.$ac_ext
2216 if $ac_preproc_ok; then
2219 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2220 See \`config.log' for more details." >&5
2221 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2222 See \`config.log' for more details." >&2;}
2223 { (exit 1); exit 1; }; }
2227 ac_cpp='$CPP $CPPFLAGS'
2228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2233 echo "$as_me:$LINENO: checking for egrep" >&5
2234 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2235 if test "${ac_cv_prog_egrep+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2238 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2239 then ac_cv_prog_egrep='grep -E'
2240 else ac_cv_prog_egrep='egrep'
2243 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2244 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2245 EGREP=$ac_cv_prog_egrep
2249 # Keep these sync'd with the list in Makefile.am. The first provides an
2250 # expandable list at autoconf time; the second provides an expandable list
2251 # (i.e., shell variable) at configure time.
2253 SUBDIRS='include libmath libsupc++ src po testsuite'
2255 # These need to be absolute paths, yet at the same time need to
2256 # canonicalize only relative paths, because then amd will not unmount
2257 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
2258 glibcxx_builddir=`${PWDCMD-pwd}`
2260 \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
2261 *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
2263 toplevel_srcdir=${glibcxx_srcdir}/..
2268 # We use these options to decide which functions to include. They are
2269 # set from the top level.
2271 # Check whether --with-target-subdir or --without-target-subdir was given.
2272 if test "${with_target_subdir+set}" = set; then
2273 withval="$with_target_subdir"
2278 # Check whether --with-cross-host or --without-cross-host was given.
2279 if test "${with_cross_host+set}" = set; then
2280 withval="$with_cross_host"
2285 # Check whether --with-newlib or --without-newlib was given.
2286 if test "${with_newlib+set}" = set; then
2287 withval="$with_newlib"
2291 # We're almost certainly being configured before anything else which uses
2292 # C++, so all of our AC_PROG_* discoveries will be cached. It's vital that
2293 # we not cache the value of CXX that we "discover" here, because it's set
2294 # to something unique for us and libjava. Other target libraries need to
2295 # find CXX for themselves. We yank the rug out from under the normal AC_*
2296 # process by sneakily renaming the cache variable. This also lets us debug
2297 # the value of "our" CXX in postmortems.
2299 # We must also force CXX to /not/ be a precious variable, otherwise the
2300 # wrong (non-multilib-adjusted) value will be used in multilibs. This
2301 # little trick also affects CPPFLAGS, CXXFLAGS, and LDFLAGS. And as a side
2302 # effect, CXXFLAGS is no longer automagically subst'd, so we have to do
2303 # that ourselves. Un-preciousing AC_PROG_CC also affects CC and CFLAGS.
2305 # -fno-builtin must be present here so that a non-conflicting form of
2306 # std::exit can be guessed by AC_PROG_CXX, and used in later tests.
2311 save_CXXFLAGS="$CXXFLAGS"
2312 CXXFLAGS="$CXXFLAGS -fno-builtin"
2314 ac_cpp='$CPP $CPPFLAGS'
2315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2318 if test -n "$ac_tool_prefix"; then
2319 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2320 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2321 echo "$as_me:$LINENO: checking for $ac_word" >&5
2322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2323 if test "${ac_cv_prog_CC+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2326 if test -n "$CC"; then
2327 ac_cv_prog_CC="$CC" # Let the user override the test.
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 test -z "$as_dir" && as_dir=.
2334 for ac_exec_ext in '' $ac_executable_extensions; do
2335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2336 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2346 if test -n "$CC"; then
2347 echo "$as_me:$LINENO: result: $CC" >&5
2348 echo "${ECHO_T}$CC" >&6
2350 echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6
2355 if test -z "$ac_cv_prog_CC"; then
2357 # Extract the first word of "gcc", so it can be a program name with args.
2358 set dummy gcc; ac_word=$2
2359 echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2361 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 if test -n "$ac_ct_CC"; then
2365 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371 test -z "$as_dir" && as_dir=.
2372 for ac_exec_ext in '' $ac_executable_extensions; do
2373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2374 ac_cv_prog_ac_ct_CC="gcc"
2375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2383 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2384 if test -n "$ac_ct_CC"; then
2385 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2386 echo "${ECHO_T}$ac_ct_CC" >&6
2388 echo "$as_me:$LINENO: result: no" >&5
2389 echo "${ECHO_T}no" >&6
2397 if test -z "$CC"; then
2398 if test -n "$ac_tool_prefix"; then
2399 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2400 set dummy ${ac_tool_prefix}cc; ac_word=$2
2401 echo "$as_me:$LINENO: checking for $ac_word" >&5
2402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2403 if test "${ac_cv_prog_CC+set}" = set; then
2404 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 if test -n "$CC"; then
2407 ac_cv_prog_CC="$CC" # Let the user override the test.
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 test -z "$as_dir" && as_dir=.
2414 for ac_exec_ext in '' $ac_executable_extensions; do
2415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2416 ac_cv_prog_CC="${ac_tool_prefix}cc"
2417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426 if test -n "$CC"; then
2427 echo "$as_me:$LINENO: result: $CC" >&5
2428 echo "${ECHO_T}$CC" >&6
2430 echo "$as_me:$LINENO: result: no" >&5
2431 echo "${ECHO_T}no" >&6
2435 if test -z "$ac_cv_prog_CC"; then
2437 # Extract the first word of "cc", so it can be a program name with args.
2438 set dummy cc; ac_word=$2
2439 echo "$as_me:$LINENO: checking for $ac_word" >&5
2440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2441 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 if test -n "$ac_ct_CC"; then
2445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451 test -z "$as_dir" && as_dir=.
2452 for ac_exec_ext in '' $ac_executable_extensions; do
2453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2454 ac_cv_prog_ac_ct_CC="cc"
2455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2463 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2464 if test -n "$ac_ct_CC"; then
2465 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2466 echo "${ECHO_T}$ac_ct_CC" >&6
2468 echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6
2478 if test -z "$CC"; then
2479 # Extract the first word of "cc", so it can be a program name with args.
2480 set dummy cc; ac_word=$2
2481 echo "$as_me:$LINENO: checking for $ac_word" >&5
2482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2483 if test "${ac_cv_prog_CC+set}" = set; then
2484 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 if test -n "$CC"; then
2487 ac_cv_prog_CC="$CC" # Let the user override the test.
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2497 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2498 ac_prog_rejected=yes
2502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2508 if test $ac_prog_rejected = yes; then
2509 # We found a bogon in the path, so make sure we never use it.
2510 set dummy $ac_cv_prog_CC
2512 if test $# != 0; then
2513 # We chose a different compiler from the bogus one.
2514 # However, it has the same basename, so the bogon will be chosen
2515 # first if we set CC to just the basename; use the full file name.
2517 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2523 if test -n "$CC"; then
2524 echo "$as_me:$LINENO: result: $CC" >&5
2525 echo "${ECHO_T}$CC" >&6
2527 echo "$as_me:$LINENO: result: no" >&5
2528 echo "${ECHO_T}no" >&6
2532 if test -z "$CC"; then
2533 if test -n "$ac_tool_prefix"; then
2536 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2537 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2538 echo "$as_me:$LINENO: checking for $ac_word" >&5
2539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2540 if test "${ac_cv_prog_CC+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 if test -n "$CC"; then
2544 ac_cv_prog_CC="$CC" # Let the user override the test.
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2553 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 if test -n "$CC"; then
2564 echo "$as_me:$LINENO: result: $CC" >&5
2565 echo "${ECHO_T}$CC" >&6
2567 echo "$as_me:$LINENO: result: no" >&5
2568 echo "${ECHO_T}no" >&6
2571 test -n "$CC" && break
2574 if test -z "$CC"; then
2578 # Extract the first word of "$ac_prog", so it can be a program name with args.
2579 set dummy $ac_prog; ac_word=$2
2580 echo "$as_me:$LINENO: checking for $ac_word" >&5
2581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2582 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2583 echo $ECHO_N "(cached) $ECHO_C" >&6
2585 if test -n "$ac_ct_CC"; then
2586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2595 ac_cv_prog_ac_ct_CC="$ac_prog"
2596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2604 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2605 if test -n "$ac_ct_CC"; then
2606 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2607 echo "${ECHO_T}$ac_ct_CC" >&6
2609 echo "$as_me:$LINENO: result: no" >&5
2610 echo "${ECHO_T}no" >&6
2613 test -n "$ac_ct_CC" && break
2622 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2623 See \`config.log' for more details." >&5
2624 echo "$as_me: error: no acceptable C compiler found in \$PATH
2625 See \`config.log' for more details." >&2;}
2626 { (exit 1); exit 1; }; }
2628 # Provide some information about the compiler.
2629 echo "$as_me:$LINENO:" \
2630 "checking for C compiler version" >&5
2631 ac_compiler=`set X $ac_compile; echo $2`
2632 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2633 (eval $ac_compiler --version </dev/null >&5) 2>&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }
2637 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2638 (eval $ac_compiler -v </dev/null >&5) 2>&5
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }
2642 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2643 (eval $ac_compiler -V </dev/null >&5) 2>&5
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }
2648 cat >conftest.$ac_ext <<_ACEOF
2651 cat confdefs.h >>conftest.$ac_ext
2652 cat >>conftest.$ac_ext <<_ACEOF
2653 /* end confdefs.h. */
2664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2665 (eval $ac_link) 2>&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; then
2674 if test x$gcc_no_link = xyes; then
2675 # Setting cross_compile will disable run tests; it will
2676 # also disable AC_CHECK_FILE but that's generally
2677 # correct if we can't link.
2681 cat >conftest.$ac_ext <<_ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h. */
2696 ac_clean_files_save=$ac_clean_files
2697 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2698 # Try to create an executable without -o first, disregard a.out.
2699 # It will help us diagnose broken compilers, and finding out an intuition
2701 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2702 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2703 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2704 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2705 (eval $ac_link_default) 2>&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; then
2709 # Find the output, starting from the most likely. This scheme is
2710 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2713 # Be careful to initialize this variable, since it used to be cached.
2714 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2716 # b.out is created by i960 compilers.
2717 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2719 test -f "$ac_file" || continue
2721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2724 # This is the source file.
2727 # We found the default executable, but exeext='' is most
2731 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2732 # FIXME: I believe we export ac_cv_exeext for Libtool,
2733 # but it would be cool to find out if it's true. Does anybody
2734 # maintain Libtool? --akim.
2742 echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2745 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2746 See \`config.log' for more details." >&5
2747 echo "$as_me: error: C compiler cannot create executables
2748 See \`config.log' for more details." >&2;}
2749 { (exit 77); exit 77; }; }
2752 ac_exeext=$ac_cv_exeext
2753 echo "$as_me:$LINENO: result: $ac_file" >&5
2754 echo "${ECHO_T}$ac_file" >&6
2756 # Check the compiler produces executables we can run. If not, either
2757 # the compiler is broken, or we cross compile.
2758 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2759 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2760 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2761 # If not cross compiling, check that we can run a simple program.
2762 if test "$cross_compiling" != yes; then
2763 if { ac_try='./$ac_file'
2764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }; }; then
2771 if test "$cross_compiling" = maybe; then
2774 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2775 If you meant to cross compile, use \`--host'.
2776 See \`config.log' for more details." >&5
2777 echo "$as_me: error: cannot run C compiled programs.
2778 If you meant to cross compile, use \`--host'.
2779 See \`config.log' for more details." >&2;}
2780 { (exit 1); exit 1; }; }
2784 echo "$as_me:$LINENO: result: yes" >&5
2785 echo "${ECHO_T}yes" >&6
2787 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2788 ac_clean_files=$ac_clean_files_save
2789 # Check the compiler produces executables we can run. If not, either
2790 # the compiler is broken, or we cross compile.
2791 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2792 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2793 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2794 echo "${ECHO_T}$cross_compiling" >&6
2796 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2797 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2799 (eval $ac_link) 2>&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; then
2803 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2804 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2805 # work properly (i.e., refer to `conftest.exe'), while it won't with
2807 for ac_file in conftest.exe conftest conftest.*; do
2808 test -f "$ac_file" || continue
2810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2811 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2818 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2819 See \`config.log' for more details." >&5
2820 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2821 See \`config.log' for more details." >&2;}
2822 { (exit 1); exit 1; }; }
2825 rm -f conftest$ac_cv_exeext
2826 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2827 echo "${ECHO_T}$ac_cv_exeext" >&6
2829 rm -f conftest.$ac_ext
2830 EXEEXT=$ac_cv_exeext
2833 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2834 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2835 if test "${ac_cv_objext+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2838 cat >conftest.$ac_ext <<_ACEOF
2841 cat confdefs.h >>conftest.$ac_ext
2842 cat >>conftest.$ac_ext <<_ACEOF
2843 /* end confdefs.h. */
2853 rm -f conftest.o conftest.obj
2854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2855 (eval $ac_compile) 2>&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; then
2859 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2862 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2867 echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2870 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2871 See \`config.log' for more details." >&5
2872 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2873 See \`config.log' for more details." >&2;}
2874 { (exit 1); exit 1; }; }
2877 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2879 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2880 echo "${ECHO_T}$ac_cv_objext" >&6
2881 OBJEXT=$ac_cv_objext
2883 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2884 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2885 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2886 echo $ECHO_N "(cached) $ECHO_C" >&6
2888 cat >conftest.$ac_ext <<_ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2906 rm -f conftest.$ac_objext
2907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2908 (eval $ac_compile) 2>conftest.er1
2910 grep -v '^ *+' conftest.er1 >conftest.err
2912 cat conftest.err >&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); } &&
2915 { ac_try='test -z "$ac_c_werror_flag"
2916 || test ! -s conftest.err'
2917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; } &&
2922 { ac_try='test -s conftest.$ac_objext'
2923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; }; then
2930 echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2936 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2939 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2940 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2941 GCC=`test $ac_compiler_gnu = yes && echo yes`
2942 ac_test_CFLAGS=${CFLAGS+set}
2943 ac_save_CFLAGS=$CFLAGS
2945 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2946 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2947 if test "${ac_cv_prog_cc_g+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
2950 cat >conftest.$ac_ext <<_ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h. */
2965 rm -f conftest.$ac_objext
2966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2967 (eval $ac_compile) 2>conftest.er1
2969 grep -v '^ *+' conftest.er1 >conftest.err
2971 cat conftest.err >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } &&
2974 { ac_try='test -z "$ac_c_werror_flag"
2975 || test ! -s conftest.err'
2976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; } &&
2981 { ac_try='test -s conftest.$ac_objext'
2982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; }; then
2989 echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2996 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2997 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2998 if test "$ac_test_CFLAGS" = set; then
2999 CFLAGS=$ac_save_CFLAGS
3000 elif test $ac_cv_prog_cc_g = yes; then
3001 if test "$GCC" = yes; then
3007 if test "$GCC" = yes; then
3013 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3014 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3015 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3018 ac_cv_prog_cc_stdc=no
3020 cat >conftest.$ac_ext <<_ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3028 #include <sys/types.h>
3029 #include <sys/stat.h>
3030 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3031 struct buf { int x; };
3032 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3033 static char *e (p, i)
3039 static char *f (char * (*g) (char **, int), char **p, ...)
3044 s = g (p, va_arg (v,int));
3049 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3050 function prototypes and stuff, but not '\xHH' hex character constants.
3051 These don't provoke an error unfortunately, instead are silently treated
3052 as 'x'. The following induces an error, until -std1 is added to get
3053 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3054 array size at least. It's necessary to write '\x00'==0 to get something
3055 that's true only with -std1. */
3056 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3058 int test (int i, double x);
3059 struct s1 {int (*f) (int a);};
3060 struct s2 {int (*f) (double a);};
3061 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3067 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3072 # Don't try gcc -ansi; that turns off useful extensions and
3073 # breaks some systems' header files.
3074 # AIX -qlanglvl=ansi
3075 # Ultrix and OSF/1 -std1
3076 # HP-UX 10.20 and later -Ae
3077 # HP-UX older versions -Aa -D_HPUX_SOURCE
3078 # SVR4 -Xc -D__EXTENSIONS__
3079 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3081 CC="$ac_save_CC $ac_arg"
3082 rm -f conftest.$ac_objext
3083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3084 (eval $ac_compile) 2>conftest.er1
3086 grep -v '^ *+' conftest.er1 >conftest.err
3088 cat conftest.err >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } &&
3091 { ac_try='test -z "$ac_c_werror_flag"
3092 || test ! -s conftest.err'
3093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; } &&
3098 { ac_try='test -s conftest.$ac_objext'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3104 ac_cv_prog_cc_stdc=$ac_arg
3107 echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3111 rm -f conftest.err conftest.$ac_objext
3113 rm -f conftest.$ac_ext conftest.$ac_objext
3118 case "x$ac_cv_prog_cc_stdc" in
3120 echo "$as_me:$LINENO: result: none needed" >&5
3121 echo "${ECHO_T}none needed" >&6 ;;
3123 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3124 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3125 CC="$CC $ac_cv_prog_cc_stdc" ;;
3128 # Some people use a C++ compiler to compile C. Since we use `exit',
3129 # in C++ we need to declare it. In case someone uses the same compiler
3130 # for both compiling C and C++ we need to have the C++ compiler decide
3131 # the declaration of exit, since it's the most demanding environment.
3132 cat >conftest.$ac_ext <<_ACEOF
3137 rm -f conftest.$ac_objext
3138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3139 (eval $ac_compile) 2>conftest.er1
3141 grep -v '^ *+' conftest.er1 >conftest.err
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } &&
3146 { ac_try='test -z "$ac_c_werror_flag"
3147 || test ! -s conftest.err'
3148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; } &&
3153 { ac_try='test -s conftest.$ac_objext'
3154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3159 for ac_declaration in \
3161 'extern "C" void std::exit (int) throw (); using std::exit;' \
3162 'extern "C" void std::exit (int); using std::exit;' \
3163 'extern "C" void exit (int) throw ();' \
3164 'extern "C" void exit (int);' \
3167 cat >conftest.$ac_ext <<_ACEOF
3170 cat confdefs.h >>conftest.$ac_ext
3171 cat >>conftest.$ac_ext <<_ACEOF
3172 /* end confdefs.h. */
3183 rm -f conftest.$ac_objext
3184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3185 (eval $ac_compile) 2>conftest.er1
3187 grep -v '^ *+' conftest.er1 >conftest.err
3189 cat conftest.err >&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); } &&
3192 { ac_try='test -z "$ac_c_werror_flag"
3193 || test ! -s conftest.err'
3194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; } &&
3199 { ac_try='test -s conftest.$ac_objext'
3200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; }; then
3207 echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3213 cat >conftest.$ac_ext <<_ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3228 rm -f conftest.$ac_objext
3229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3230 (eval $ac_compile) 2>conftest.er1
3232 grep -v '^ *+' conftest.er1 >conftest.err
3234 cat conftest.err >&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } &&
3237 { ac_try='test -z "$ac_c_werror_flag"
3238 || test ! -s conftest.err'
3239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }; } &&
3244 { ac_try='test -s conftest.$ac_objext'
3245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; }; then
3252 echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3259 if test -n "$ac_declaration"; then
3260 echo '#ifdef __cplusplus' >>confdefs.h
3261 echo $ac_declaration >>confdefs.h
3262 echo '#endif' >>confdefs.h
3266 echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3272 ac_cpp='$CPP $CPPFLAGS'
3273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3278 ac_cpp='$CXXCPP $CPPFLAGS'
3279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3282 if test -n "$ac_tool_prefix"; then
3283 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3285 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3286 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3287 echo "$as_me:$LINENO: checking for $ac_word" >&5
3288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3289 if test "${glibcxx_cv_prog_CXX+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3292 if test -n "$CXX"; then
3293 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 test -z "$as_dir" && as_dir=.
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3302 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 CXX=$glibcxx_cv_prog_CXX
3312 if test -n "$CXX"; then
3313 echo "$as_me:$LINENO: result: $CXX" >&5
3314 echo "${ECHO_T}$CXX" >&6
3316 echo "$as_me:$LINENO: result: no" >&5
3317 echo "${ECHO_T}no" >&6
3320 test -n "$CXX" && break
3323 if test -z "$CXX"; then
3325 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3327 # Extract the first word of "$ac_prog", so it can be a program name with args.
3328 set dummy $ac_prog; ac_word=$2
3329 echo "$as_me:$LINENO: checking for $ac_word" >&5
3330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3331 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3332 echo $ECHO_N "(cached) $ECHO_C" >&6
3334 if test -n "$ac_ct_CXX"; then
3335 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 test -z "$as_dir" && as_dir=.
3342 for ac_exec_ext in '' $ac_executable_extensions; do
3343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3344 ac_cv_prog_ac_ct_CXX="$ac_prog"
3345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3353 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3354 if test -n "$ac_ct_CXX"; then
3355 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3356 echo "${ECHO_T}$ac_ct_CXX" >&6
3358 echo "$as_me:$LINENO: result: no" >&5
3359 echo "${ECHO_T}no" >&6
3362 test -n "$ac_ct_CXX" && break
3364 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3370 # Provide some information about the compiler.
3371 echo "$as_me:$LINENO:" \
3372 "checking for C++ compiler version" >&5
3373 ac_compiler=`set X $ac_compile; echo $2`
3374 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3375 (eval $ac_compiler --version </dev/null >&5) 2>&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }
3379 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3380 (eval $ac_compiler -v </dev/null >&5) 2>&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }
3384 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3385 (eval $ac_compiler -V </dev/null >&5) 2>&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }
3390 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3391 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3392 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 cat >conftest.$ac_ext <<_ACEOF
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h. */
3413 rm -f conftest.$ac_objext
3414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3415 (eval $ac_compile) 2>conftest.er1
3417 grep -v '^ *+' conftest.er1 >conftest.err
3419 cat conftest.err >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); } &&
3422 { ac_try='test -z "$ac_cxx_werror_flag"
3423 || test ! -s conftest.err'
3424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); }; } &&
3429 { ac_try='test -s conftest.$ac_objext'
3430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); }; }; then
3437 echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3443 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3446 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3447 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3448 GXX=`test $ac_compiler_gnu = yes && echo yes`
3449 ac_test_CXXFLAGS=${CXXFLAGS+set}
3450 ac_save_CXXFLAGS=$CXXFLAGS
3452 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3453 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3454 if test "${ac_cv_prog_cxx_g+set}" = set; then
3455 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 cat >conftest.$ac_ext <<_ACEOF
3460 cat confdefs.h >>conftest.$ac_ext
3461 cat >>conftest.$ac_ext <<_ACEOF
3462 /* end confdefs.h. */
3472 rm -f conftest.$ac_objext
3473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3474 (eval $ac_compile) 2>conftest.er1
3476 grep -v '^ *+' conftest.er1 >conftest.err
3478 cat conftest.err >&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); } &&
3481 { ac_try='test -z "$ac_cxx_werror_flag"
3482 || test ! -s conftest.err'
3483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); }; } &&
3488 { ac_try='test -s conftest.$ac_objext'
3489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); }; }; then
3494 ac_cv_prog_cxx_g=yes
3496 echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3503 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3504 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3505 if test "$ac_test_CXXFLAGS" = set; then
3506 CXXFLAGS=$ac_save_CXXFLAGS
3507 elif test $ac_cv_prog_cxx_g = yes; then
3508 if test "$GXX" = yes; then
3514 if test "$GXX" = yes; then
3520 for ac_declaration in \
3522 'extern "C" void std::exit (int) throw (); using std::exit;' \
3523 'extern "C" void std::exit (int); using std::exit;' \
3524 'extern "C" void exit (int) throw ();' \
3525 'extern "C" void exit (int);' \
3528 cat >conftest.$ac_ext <<_ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h. */
3544 rm -f conftest.$ac_objext
3545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3546 (eval $ac_compile) 2>conftest.er1
3548 grep -v '^ *+' conftest.er1 >conftest.err
3550 cat conftest.err >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); } &&
3553 { ac_try='test -z "$ac_cxx_werror_flag"
3554 || test ! -s conftest.err'
3555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }; } &&
3560 { ac_try='test -s conftest.$ac_objext'
3561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; }; then
3568 echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3574 cat >conftest.$ac_ext <<_ACEOF
3577 cat confdefs.h >>conftest.$ac_ext
3578 cat >>conftest.$ac_ext <<_ACEOF
3579 /* end confdefs.h. */