]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/configure
* libtool.m4: Update AC_LIBTOOL_SYS_MAX_CMD_LEN bits from upstream.
[thirdparty/gcc.git] / libstdc++-v3 / configure
CommitLineData
b2dad0e3 1#! /bin/sh
b2dad0e3 2# Guess values for system-dependent variables and create Makefiles.
ec2075e9 3# Generated by GNU Autoconf 2.59 for package-unused version-unused.
b2dad0e3 4#
ec2075e9 5# Copyright (C) 2003 Free Software Foundation, Inc.
b2dad0e3
BK
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
ff66d28f
PE
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
ec2075e9 22DUALCASE=1; export DUALCASE # for MKS sh
ff66d28f
PE
23
24# Support unset when possible.
ec2075e9 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ff66d28f
PE
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
ec2075e9 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
ff66d28f
PE
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
b2dad0e3 116
ff66d28f
PE
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
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; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
ec2075e9 221 test -d ./-p && rmdir ./-p
ff66d28f
PE
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
ec2075e9 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ff66d28f
PE
229
230# Sed expression to map a string onto a valid variable name.
ec2075e9 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ff66d28f
PE
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
b2dad0e3 254ac_default_prefix=/usr/local
ff66d28f
PE
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
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}
266
267# Identity of this package.
fbe057bb
PE
268PACKAGE_NAME='package-unused'
269PACKAGE_TARNAME='libstdc++'
ff66d28f 270PACKAGE_VERSION='version-unused'
fbe057bb 271PACKAGE_STRING='package-unused version-unused'
ff66d28f
PE
272PACKAGE_BUGREPORT=''
273
274ac_unique_file="src/ios.cc"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
347669a0 312ac_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 LIBTOOL CXXCPP CPPFLAGS 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 CPP EGREP 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_MAP port_specific_symbol_files GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE baseline_dir GLIBCXX_TEST_WCHAR_T_TRUE GLIBCXX_TEST_WCHAR_T_FALSE GLIBCXX_TEST_THREAD_TRUE GLIBCXX_TEST_THREAD_FALSE GLIBCXX_TEST_ABI_TRUE GLIBCXX_TEST_ABI_FALSE ATOMICITY_SRCDIR ATOMIC_WORD_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'
ff66d28f 313ac_subst_files=''
b2dad0e3
BK
314
315# Initialize some variables set by options.
ff66d28f
PE
316ac_init_help=
317ac_init_version=false
b2dad0e3
BK
318# The variables have the same names as the options, with
319# dashes changed to underlines.
ff66d28f 320cache_file=/dev/null
b2dad0e3 321exec_prefix=NONE
b2dad0e3 322no_create=
b2dad0e3
BK
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
b2dad0e3
BK
331verbose=
332x_includes=NONE
333x_libraries=NONE
ff66d28f
PE
334
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.
b2dad0e3
BK
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
b2dad0e3
BK
353ac_prev=
354for ac_option
355do
b2dad0e3
BK
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
ff66d28f 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
b2dad0e3
BK
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
ff66d28f 367 case $ac_option in
b2dad0e3
BK
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ff66d28f 372 bindir=$ac_optarg ;;
b2dad0e3
BK
373
374 -build | --build | --buil | --bui | --bu)
ff66d28f 375 ac_prev=build_alias ;;
b2dad0e3 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ff66d28f 377 build_alias=$ac_optarg ;;
b2dad0e3
BK
378
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=*)
ff66d28f
PE
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
b2dad0e3
BK
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
ff66d28f 393 datadir=$ac_optarg ;;
b2dad0e3
BK
394
395 -disable-* | --disable-*)
ff66d28f 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
b2dad0e3 397 # Reject names that are not valid shell variable names.
ff66d28f
PE
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" ;;
b2dad0e3
BK
403
404 -enable-* | --enable-*)
ff66d28f 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
b2dad0e3 406 # Reject names that are not valid shell variable names.
ff66d28f
PE
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
b2dad0e3
BK
413 *) ac_optarg=yes ;;
414 esac
ff66d28f 415 eval "enable_$ac_feature='$ac_optarg'" ;;
b2dad0e3
BK
416
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=*)
ff66d28f 424 exec_prefix=$ac_optarg ;;
b2dad0e3
BK
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
ff66d28f
PE
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
b2dad0e3
BK
436
437 -host | --host | --hos | --ho)
ff66d28f 438 ac_prev=host_alias ;;
b2dad0e3 439 -host=* | --host=* | --hos=* | --ho=*)
ff66d28f 440 host_alias=$ac_optarg ;;
b2dad0e3
BK
441
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=*)
ff66d28f 447 includedir=$ac_optarg ;;
b2dad0e3
BK
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ff66d28f 452 infodir=$ac_optarg ;;
b2dad0e3
BK
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ff66d28f 457 libdir=$ac_optarg ;;
b2dad0e3
BK
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
ff66d28f 464 libexecdir=$ac_optarg ;;
b2dad0e3
BK
465
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=*)
ff66d28f 473 localstatedir=$ac_optarg ;;
b2dad0e3
BK
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ff66d28f 478 mandir=$ac_optarg ;;
b2dad0e3
BK
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ff66d28f 485 | --no-cr | --no-c | -n)
b2dad0e3
BK
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
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=*)
ff66d28f 499 oldincludedir=$ac_optarg ;;
b2dad0e3
BK
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ff66d28f 504 prefix=$ac_optarg ;;
b2dad0e3
BK
505
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=*)
ff66d28f 511 program_prefix=$ac_optarg ;;
b2dad0e3
BK
512
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=*)
ff66d28f 518 program_suffix=$ac_optarg ;;
b2dad0e3
BK
519
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=*)
ff66d28f 535 program_transform_name=$ac_optarg ;;
b2dad0e3
BK
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
ff66d28f 545 sbindir=$ac_optarg ;;
b2dad0e3
BK
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
ff66d28f 556 sharedstatedir=$ac_optarg ;;
b2dad0e3
BK
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
ff66d28f 561 site=$ac_optarg ;;
b2dad0e3
BK
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ff66d28f 566 srcdir=$ac_optarg ;;
b2dad0e3
BK
567
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=*)
ff66d28f 573 sysconfdir=$ac_optarg ;;
b2dad0e3
BK
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
ff66d28f 576 ac_prev=target_alias ;;
b2dad0e3 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ff66d28f 578 target_alias=$ac_optarg ;;
b2dad0e3
BK
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
ff66d28f
PE
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
b2dad0e3
BK
585
586 -with-* | --with-*)
ff66d28f 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
b2dad0e3 588 # Reject names that are not valid shell variable names.
ff66d28f
PE
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; }; }
b2dad0e3 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
ff66d28f
PE
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
b2dad0e3
BK
595 *) ac_optarg=yes ;;
596 esac
ff66d28f 597 eval "with_$ac_package='$ac_optarg'" ;;
b2dad0e3
BK
598
599 -without-* | --without-*)
ff66d28f 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
b2dad0e3 601 # Reject names that are not valid shell variable names.
ff66d28f
PE
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" ;;
b2dad0e3
BK
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
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=*)
ff66d28f 617 x_includes=$ac_optarg ;;
b2dad0e3
BK
618
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=*)
ff66d28f 624 x_libraries=$ac_optarg ;;
b2dad0e3 625
ff66d28f
PE
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
b2dad0e3
BK
629 ;;
630
ff66d28f
PE
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
b2dad0e3 641 *)
ff66d28f
PE
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}
b2dad0e3
BK
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
ff66d28f
PE
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; }; }
b2dad0e3 656fi
b2dad0e3 657
ff66d28f
PE
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
b2dad0e3 668
ff66d28f
PE
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ec2075e9 671 localstatedir libdir includedir oldincludedir infodir mandir
b2dad0e3 672do
ff66d28f
PE
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
b2dad0e3
BK
678 esac
679done
680
ff66d28f
PE
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.
684build=$build_alias
685host=$host_alias
686target=$target_alias
b2dad0e3 687
ff66d28f
PE
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
b2dad0e3 703
b2dad0e3
BK
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
ff66d28f
PE
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ec2075e9
BK
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
ff66d28f
PE
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
b2dad0e3
BK
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
ff66d28f
PE
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
b2dad0e3 732 else
ff66d28f
PE
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736fi
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; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
ff66d28f
PE
753ac_env_CXXCPP_set=${CXXCPP+set}
754ac_env_CXXCPP_value=$CXXCPP
755ac_cv_env_CXXCPP_set=${CXXCPP+set}
756ac_cv_env_CXXCPP_value=$CXXCPP
f6dda651
PE
757ac_env_CPPFLAGS_set=${CPPFLAGS+set}
758ac_env_CPPFLAGS_value=$CPPFLAGS
759ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
760ac_cv_env_CPPFLAGS_value=$CPPFLAGS
ff66d28f
PE
761ac_env_CPP_set=${CPP+set}
762ac_env_CPP_value=$CPP
763ac_cv_env_CPP_set=${CPP+set}
764ac_cv_env_CPP_value=$CPP
765
766#
767# Report the --help message.
768#
769if 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.
772 cat <<_ACEOF
fbe057bb 773\`configure' configures package-unused version-unused to adapt to many kinds of systems.
ff66d28f
PE
774
775Usage: $0 [OPTION]... [VAR=VALUE]...
776
777To assign environment variables (e.g., CC, CFLAGS...), specify them as
778VAR=VALUE. See below for descriptions of some of the useful variables.
779
780Defaults for the options are specified in brackets.
781
782Configuration:
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 \`..']
792
793_ACEOF
794
795 cat <<_ACEOF
796Installation directories:
797 --prefix=PREFIX install architecture-independent files in PREFIX
ec2075e9 798 [$ac_default_prefix]
ff66d28f 799 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec2075e9 800 [PREFIX]
ff66d28f
PE
801
802By default, \`make install' will install all the files in
803\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
804an installation prefix other than \`$ac_default_prefix' using \`--prefix',
805for instance \`--prefix=\$HOME'.
806
807For better control, use the options below.
808
809Fine 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]
822_ACEOF
823
824 cat <<\_ACEOF
825
826Program names:
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
830
831System types:
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]
835_ACEOF
836fi
837
838if test -n "$ac_init_help"; then
839 case $ac_init_help in
fbe057bb 840 short | recursive ) echo "Configuration of package-unused version-unused:";;
ff66d28f
PE
841 esac
842 cat <<\_ACEOF
843
844Optional Features:
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
7eaf73d7
KC
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
ff66d28f
PE
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)
92eabea2
PE
854 --disable-hosted-libstdcxx
855 only build freestanding C++ runtime support
ff66d28f 856 --enable-sjlj-exceptions
517da0ce
MM
857 force use of builtin_setjmp for exceptions
858 [default=auto]
859 --enable-libstdcxx-pch build pre-compiled libstdc++ headers
860 [default=$is_hosted]
861 --enable-cstdio=PACKAGE use target-specific I/O package
862 [default=stdio]
ff66d28f 863 --enable-clocale[=MODEL]
517da0ce
MM
864 use MODEL for target locale package
865 [default=auto]
866 --enable-nls use Native Language Support (default)
8b0d6051
BK
867 --enable-libstdcxx-allocator=KIND
868 use KIND for target std::allocator base
869 [default=auto]
517da0ce
MM
870 --enable-cheaders=KIND construct "C" headers for g++
871 [default=$c_model]
517da0ce
MM
872 --enable-c99 turns on ISO/IEC 9899:1999 support
873 [default=yes]
347669a0
BK
874 --enable-long-long enable template specializations for 'long long'
875 [default=yes]
876 --enable-wchar_t enable template specializations for 'wchar_t'
517da0ce
MM
877 [default=yes]
878 --enable-concept-checks use Boost-derived template checks [default=no]
ff66d28f 879 --enable-libstdcxx-debug-flags=FLAGS
517da0ce
MM
880 pass compiler FLAGS when building debug library
881 [default="-g3 -O0"]
ff66d28f
PE
882 --enable-libstdcxx-debug
883 build extra debug library [default=no]
884 --enable-cxx-flags=FLAGS
517da0ce
MM
885 pass compiler FLAGS when building library
886 [default=]
1165dc50
PC
887 --enable-fully-dynamic-string
888 do not put empty strings in per-process static
889 memory [default=no]
517da0ce
MM
890 --enable-symvers=STYLE enables symbol versioning of the shared library
891 [default=yes]
ff66d28f 892 --enable-version-specific-runtime-libs
517da0ce
MM
893 Specify that runtime libraries should be installed
894 in a compiler-specific directory
ff66d28f
PE
895
896Optional Packages:
897 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
898 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
899 --with-target-subdir=SUBDIR
900 configuring in a subdirectory
517da0ce
MM
901 --with-cross-host=HOST configuring with a cross compiler
902 --with-newlib assume newlib as a system C library
ff66d28f
PE
903 --with-gnu-ld assume the C compiler uses GNU ld default=no
904 --with-pic try to use only PIC/non-PIC objects default=use both
905 --with-gxx-include-dir=DIR
906 installation directory for include files
907
908Some influential environment variables:
517da0ce
MM
909 CC C compiler command
910 CFLAGS C compiler flags
911 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
912 nonstandard directory <lib dir>
913 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
914 headers in a nonstandard directory <include dir>
915 CXX C++ compiler command
916 CXXFLAGS C++ compiler flags
917 CXXCPP C++ preprocessor
918 CPP C preprocessor
ff66d28f
PE
919
920Use these variables to override the choices made by `configure' or to help
921it to find libraries and programs with nonstandard names/locations.
922
923_ACEOF
924fi
925
926if test "$ac_init_help" = "recursive"; then
927 # If there are subdirs, report their specific --help.
928 ac_popdir=`pwd`
929 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
930 test -d $ac_dir || continue
931 ac_builddir=.
932
933if test "$ac_dir" != .; then
934 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
935 # A "../" for each directory in $ac_dir_suffix.
936 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
937else
938 ac_dir_suffix= ac_top_builddir=
939fi
940
941case $srcdir in
942 .) # No --srcdir option. We are building in place.
943 ac_srcdir=.
944 if test -z "$ac_top_builddir"; then
945 ac_top_srcdir=.
946 else
947 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
948 fi ;;
949 [\\/]* | ?:[\\/]* ) # Absolute path.
950 ac_srcdir=$srcdir$ac_dir_suffix;
951 ac_top_srcdir=$srcdir ;;
952 *) # Relative path.
953 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
954 ac_top_srcdir=$ac_top_builddir$srcdir ;;
955esac
ec2075e9
BK
956
957# Do not use `cd foo && pwd` to compute absolute paths, because
958# the directories may not exist.
959case `pwd` in
960.) ac_abs_builddir="$ac_dir";;
961*)
962 case "$ac_dir" in
963 .) ac_abs_builddir=`pwd`;;
964 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
965 *) ac_abs_builddir=`pwd`/"$ac_dir";;
966 esac;;
967esac
968case $ac_abs_builddir in
969.) ac_abs_top_builddir=${ac_top_builddir}.;;
970*)
971 case ${ac_top_builddir}. in
972 .) ac_abs_top_builddir=$ac_abs_builddir;;
973 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
974 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
975 esac;;
976esac
977case $ac_abs_builddir in
978.) ac_abs_srcdir=$ac_srcdir;;
979*)
980 case $ac_srcdir in
981 .) ac_abs_srcdir=$ac_abs_builddir;;
982 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
983 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
984 esac;;
985esac
986case $ac_abs_builddir in
987.) ac_abs_top_srcdir=$ac_top_srcdir;;
988*)
989 case $ac_top_srcdir in
990 .) ac_abs_top_srcdir=$ac_abs_builddir;;
991 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
992 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
993 esac;;
994esac
ff66d28f
PE
995
996 cd $ac_dir
997 # Check for guested configure; otherwise get Cygnus style configure.
998 if test -f $ac_srcdir/configure.gnu; then
999 echo
1000 $SHELL $ac_srcdir/configure.gnu --help=recursive
1001 elif test -f $ac_srcdir/configure; then
1002 echo
1003 $SHELL $ac_srcdir/configure --help=recursive
1004 elif test -f $ac_srcdir/configure.ac ||
ec2075e9 1005 test -f $ac_srcdir/configure.in; then
ff66d28f
PE
1006 echo
1007 $ac_configure --help
1008 else
1009 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1010 fi
780028b6 1011 cd $ac_popdir
ff66d28f
PE
1012 done
1013fi
1014
1015test -n "$ac_init_help" && exit 0
1016if $ac_init_version; then
1017 cat <<\_ACEOF
fbe057bb 1018package-unused configure version-unused
ec2075e9 1019generated by GNU Autoconf 2.59
ff66d28f 1020
ec2075e9 1021Copyright (C) 2003 Free Software Foundation, Inc.
ff66d28f
PE
1022This configure script is free software; the Free Software Foundation
1023gives unlimited permission to copy, distribute and modify it.
1024_ACEOF
1025 exit 0
b2dad0e3 1026fi
ff66d28f
PE
1027exec 5>config.log
1028cat >&5 <<_ACEOF
1029This file contains any messages produced by compilers while
1030running configure, to aid debugging if configure makes a mistake.
1031
fbe057bb 1032It was created by package-unused $as_me version-unused, which was
ec2075e9 1033generated by GNU Autoconf 2.59. Invocation command line was
ff66d28f
PE
1034
1035 $ $0 $@
1036
1037_ACEOF
1038{
1039cat <<_ASUNAME
1040## --------- ##
1041## Platform. ##
1042## --------- ##
1043
1044hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1045uname -m = `(uname -m) 2>/dev/null || echo unknown`
1046uname -r = `(uname -r) 2>/dev/null || echo unknown`
1047uname -s = `(uname -s) 2>/dev/null || echo unknown`
1048uname -v = `(uname -v) 2>/dev/null || echo unknown`
1049
1050/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1051/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1052
1053/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1054/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1055/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1056hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1057/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1058/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1059/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1060
1061_ASUNAME
1062
1063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1064for as_dir in $PATH
1065do
1066 IFS=$as_save_IFS
1067 test -z "$as_dir" && as_dir=.
1068 echo "PATH: $as_dir"
1069done
1070
1071} >&5
1072
1073cat >&5 <<_ACEOF
1074
1075
1076## ----------- ##
1077## Core tests. ##
1078## ----------- ##
1079
1080_ACEOF
1081
1082
1083# Keep a trace of the command line.
1084# Strip out --no-create and --no-recursion so they do not pile up.
1085# Strip out --silent because we don't want to record it for future runs.
1086# Also quote any args containing shell meta-characters.
1087# Make two passes to allow for proper duplicate-argument suppression.
1088ac_configure_args=
1089ac_configure_args0=
1090ac_configure_args1=
1091ac_sep=
1092ac_must_keep_next=false
1093for ac_pass in 1 2
1094do
1095 for ac_arg
1096 do
1097 case $ac_arg in
1098 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1101 continue ;;
1102 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1103 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1104 esac
1105 case $ac_pass in
1106 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1107 2)
1108 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1109 if test $ac_must_keep_next = true; then
ec2075e9 1110 ac_must_keep_next=false # Got value, back to normal.
ff66d28f 1111 else
ec2075e9
BK
1112 case $ac_arg in
1113 *=* | --config-cache | -C | -disable-* | --disable-* \
1114 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1115 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1116 | -with-* | --with-* | -without-* | --without-* | --x)
1117 case "$ac_configure_args0 " in
1118 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1119 esac
1120 ;;
1121 -* ) ac_must_keep_next=true ;;
1122 esac
ff66d28f
PE
1123 fi
1124 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1125 # Get rid of the leading space.
1126 ac_sep=" "
1127 ;;
1128 esac
1129 done
1130done
1131$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1132$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1133
1134# When interrupted or exit'd, cleanup temporary files, and complete
1135# config.log. We remove comments because anyway the quotes in there
1136# would cause problems or look ugly.
1137# WARNING: Be sure not to use single quotes in there, as some shells,
1138# such as our DU 5.0 friend, will then `close' the trap.
1139trap 'exit_status=$?
1140 # Save into config.log some information that might help in debugging.
1141 {
1142 echo
1143
1144 cat <<\_ASBOX
1145## ---------------- ##
1146## Cache variables. ##
1147## ---------------- ##
1148_ASBOX
1149 echo
1150 # The following way of writing the cache mishandles newlines in values,
1151{
1152 (set) 2>&1 |
1153 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1154 *ac_space=\ *)
1155 sed -n \
ec2075e9
BK
1156 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1157 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
ff66d28f
PE
1158 ;;
1159 *)
1160 sed -n \
ec2075e9 1161 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
ff66d28f
PE
1162 ;;
1163 esac;
1164}
1165 echo
1166
1167 cat <<\_ASBOX
1168## ----------------- ##
1169## Output variables. ##
1170## ----------------- ##
1171_ASBOX
1172 echo
1173 for ac_var in $ac_subst_vars
1174 do
1175 eval ac_val=$`echo $ac_var`
1176 echo "$ac_var='"'"'$ac_val'"'"'"
1177 done | sort
1178 echo
1179
1180 if test -n "$ac_subst_files"; then
1181 cat <<\_ASBOX
1182## ------------- ##
1183## Output files. ##
1184## ------------- ##
1185_ASBOX
1186 echo
1187 for ac_var in $ac_subst_files
1188 do
1189 eval ac_val=$`echo $ac_var`
ec2075e9 1190 echo "$ac_var='"'"'$ac_val'"'"'"
ff66d28f
PE
1191 done | sort
1192 echo
1193 fi
1194
1195 if test -s confdefs.h; then
1196 cat <<\_ASBOX
1197## ----------- ##
1198## confdefs.h. ##
1199## ----------- ##
1200_ASBOX
1201 echo
1202 sed "/^$/d" confdefs.h | sort
1203 echo
1204 fi
1205 test "$ac_signal" != 0 &&
1206 echo "$as_me: caught signal $ac_signal"
1207 echo "$as_me: exit $exit_status"
1208 } >&5
ec2075e9 1209 rm -f core *.core &&
ff66d28f
PE
1210 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1211 exit $exit_status
1212 ' 0
1213for ac_signal in 1 2 13 15; do
1214 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1215done
1216ac_signal=0
1217
1218# confdefs.h avoids OS command line length limits that DEFS can exceed.
1219rm -rf conftest* confdefs.h
1220# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1221echo >confdefs.h
1222
1223# Predefined preprocessor variables.
1224
1225cat >>confdefs.h <<_ACEOF
1226#define PACKAGE_NAME "$PACKAGE_NAME"
1227_ACEOF
1228
1229
1230cat >>confdefs.h <<_ACEOF
1231#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1232_ACEOF
1233
1234
1235cat >>confdefs.h <<_ACEOF
1236#define PACKAGE_VERSION "$PACKAGE_VERSION"
1237_ACEOF
1238
b2dad0e3 1239
ff66d28f
PE
1240cat >>confdefs.h <<_ACEOF
1241#define PACKAGE_STRING "$PACKAGE_STRING"
1242_ACEOF
1243
1244
1245cat >>confdefs.h <<_ACEOF
1246#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1247_ACEOF
1248
1249
1250# Let the site file select an alternate cache file if it wants to.
b2dad0e3 1251# Prefer explicitly selected file to automatically selected ones.
a0f27776
PE
1252if test -z "$CONFIG_SITE"; then
1253 if test "x$prefix" != xNONE; then
1254 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1255 else
1256 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
b2dad0e3
BK
1257 fi
1258fi
1259for ac_site_file in $CONFIG_SITE; do
1260 if test -r "$ac_site_file"; then
ff66d28f
PE
1261 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1262echo "$as_me: loading site script $ac_site_file" >&6;}
1263 sed 's/^/| /' "$ac_site_file" >&5
b2dad0e3
BK
1264 . "$ac_site_file"
1265 fi
1266done
1267
1268if test -r "$cache_file"; then
ff66d28f
PE
1269 # Some versions of bash will fail to source /dev/null (special
1270 # files actually), so we avoid doing that.
1271 if test -f "$cache_file"; then
1272 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1273echo "$as_me: loading cache $cache_file" >&6;}
1274 case $cache_file in
1275 [\\/]* | ?:[\\/]* ) . $cache_file;;
1276 *) . ./$cache_file;;
1277 esac
1278 fi
b2dad0e3 1279else
ff66d28f
PE
1280 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1281echo "$as_me: creating cache $cache_file" >&6;}
1282 >$cache_file
1283fi
1284
1285# Check that the precious variables saved in the cache have kept the same
1286# value.
1287ac_cache_corrupted=false
1288for ac_var in `(set) 2>&1 |
ec2075e9 1289 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
ff66d28f
PE
1290 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1291 eval ac_new_set=\$ac_env_${ac_var}_set
1292 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1293 eval ac_new_val="\$ac_env_${ac_var}_value"
1294 case $ac_old_set,$ac_new_set in
1295 set,)
1296 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1297echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1298 ac_cache_corrupted=: ;;
1299 ,set)
1300 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1301echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1302 ac_cache_corrupted=: ;;
1303 ,);;
1304 *)
1305 if test "x$ac_old_val" != "x$ac_new_val"; then
ec2075e9 1306 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
ff66d28f 1307echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ec2075e9 1308 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
ff66d28f 1309echo "$as_me: former value: $ac_old_val" >&2;}
ec2075e9 1310 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
ff66d28f 1311echo "$as_me: current value: $ac_new_val" >&2;}
ec2075e9 1312 ac_cache_corrupted=:
ff66d28f
PE
1313 fi;;
1314 esac
1315 # Pass precious variables to config.status.
1316 if test "$ac_new_set" = set; then
1317 case $ac_new_val in
1318 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1319 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1320 *) ac_arg=$ac_var=$ac_new_val ;;
1321 esac
1322 case " $ac_configure_args " in
1323 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1324 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1325 esac
1326 fi
1327done
1328if $ac_cache_corrupted; then
1329 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1330echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1331 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1332echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1333 { (exit 1); exit 1; }; }
b2dad0e3
BK
1334fi
1335
1336ac_ext=c
b2dad0e3 1337ac_cpp='$CPP $CPPFLAGS'
ff66d28f
PE
1338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1340ac_compiler_gnu=$ac_cv_c_compiler_gnu
b2dad0e3
BK
1341
1342
e2c20fae 1343
6706f116 1344
33590f13
BK
1345
1346
1347
aebb8c22 1348
aebb8c22 1349
ff66d28f
PE
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369 ac_config_headers="$ac_config_headers config.h"
1370
1371
1372# This works around the fact that libtool configuration may change LD
1373# for this particular configuration, but some shells, instead of
1374# keeping the changes in LD private, export them just because LD is
1375# exported. Only used at the end of this file.
1376### am handles this now? ORIGINAL_LD_FOR_MULTILIBS=$LD
1377
1378# For libtool versioning info, format is CURRENT:REVISION:AGE
8736cbe6 1379libtool_VERSION=6:4:0
ff66d28f
PE
1380
1381
1382# Find the rest of the source tree framework.
076e5443 1383# Default to --enable-multilib
ff66d28f
PE
1384# Check whether --enable-multilib or --disable-multilib was given.
1385if test "${enable_multilib+set}" = set; then
1386 enableval="$enable_multilib"
1387 case "$enableval" in
1388 yes) multilib=yes ;;
1389 no) multilib=no ;;
1390 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1391echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1392 { (exit 1); exit 1; }; } ;;
1393 esac
1394else
1395 multilib=yes
1396fi;
1397
1398# We may get other options which we leave undocumented:
1399# --with-target-subdir, --with-multisrctop, --with-multisubdir
1400# See config-ml.in if you want the gory details.
1401
1402if test "$srcdir" = "."; then
1403 if test "$with_target_subdir" != "."; then
1404 multi_basedir="$srcdir/$with_multisrctop../.."
1405 else
1406 multi_basedir="$srcdir/$with_multisrctop.."
1407 fi
1408else
1409 multi_basedir="$srcdir/.."
1410fi
1411
1412
1413 ac_config_commands="$ac_config_commands default-1"
1414
1415
076e5443
PB
1416# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1417#
1418# You will slowly go insane if you do not grok the following fact: when
1419# building v3 as part of the compiler, the top-level /target/ becomes the
1420# library's /host/. configure then causes --target to default to --host,
1421# exactly like any other package using autoconf. Therefore, 'target' and
1422# 'host' will always be the same. This makes sense both for native and
1423# cross compilers, just think about it for a little while. :-)
1424#
1425# Also, if v3 is being configured as part of a cross compiler, the top-level
1426# configure script will pass the "real" host as $with_cross_host.
1427#
1428# Do not delete or change the following two lines. For why, see
1429# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1430ac_aux_dir=
1431for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
ff66d28f
PE
1432 if test -f $ac_dir/install-sh; then
1433 ac_aux_dir=$ac_dir
1434 ac_install_sh="$ac_aux_dir/install-sh -c"
1435 break
1436 elif test -f $ac_dir/install.sh; then
1437 ac_aux_dir=$ac_dir
b2dad0e3
BK
1438 ac_install_sh="$ac_aux_dir/install.sh -c"
1439 break
ff66d28f
PE
1440 elif test -f $ac_dir/shtool; then
1441 ac_aux_dir=$ac_dir
1442 ac_install_sh="$ac_aux_dir/shtool install -c"
1443 break
b2dad0e3
BK
1444 fi
1445done
1446if test -z "$ac_aux_dir"; then
076e5443
PB
1447 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1448echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
ff66d28f 1449 { (exit 1); exit 1; }; }
b2dad0e3 1450fi
ff66d28f
PE
1451ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1452ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1453ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1454
ff66d28f
PE
1455# Make sure we can run config.sub.
1456$ac_config_sub sun4 >/dev/null 2>&1 ||
1457 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1458echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1459 { (exit 1); exit 1; }; }
1460
1461echo "$as_me:$LINENO: checking build system type" >&5
1462echo $ECHO_N "checking build system type... $ECHO_C" >&6
1463if test "${ac_cv_build+set}" = set; then
1464 echo $ECHO_N "(cached) $ECHO_C" >&6
1465else
1466 ac_cv_build_alias=$build_alias
1467test -z "$ac_cv_build_alias" &&
1468 ac_cv_build_alias=`$ac_config_guess`
1469test -z "$ac_cv_build_alias" &&
1470 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1471echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1472 { (exit 1); exit 1; }; }
1473ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1474 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1475echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1476 { (exit 1); exit 1; }; }
1477
1478fi
1479echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1480echo "${ECHO_T}$ac_cv_build" >&6
1481build=$ac_cv_build
1482build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1483build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1484build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1485
1486
1487echo "$as_me:$LINENO: checking host system type" >&5
1488echo $ECHO_N "checking host system type... $ECHO_C" >&6
1489if test "${ac_cv_host+set}" = set; then
1490 echo $ECHO_N "(cached) $ECHO_C" >&6
1491else
1492 ac_cv_host_alias=$host_alias
1493test -z "$ac_cv_host_alias" &&
1494 ac_cv_host_alias=$ac_cv_build_alias
1495ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1496 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1497echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1498 { (exit 1); exit 1; }; }
1499
1500fi
1501echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1502echo "${ECHO_T}$ac_cv_host" >&6
1503host=$ac_cv_host
1504host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1505host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1506host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1507
1508
1509echo "$as_me:$LINENO: checking target system type" >&5
1510echo $ECHO_N "checking target system type... $ECHO_C" >&6
1511if test "${ac_cv_target+set}" = set; then
1512 echo $ECHO_N "(cached) $ECHO_C" >&6
1513else
1514 ac_cv_target_alias=$target_alias
1515test "x$ac_cv_target_alias" = "x" &&
1516 ac_cv_target_alias=$ac_cv_host_alias
1517ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1518 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1519echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1520 { (exit 1); exit 1; }; }
1521
1522fi
1523echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1524echo "${ECHO_T}$ac_cv_target" >&6
1525target=$ac_cv_target
1526target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1527target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1528target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
b2dad0e3 1529
b2dad0e3
BK
1530
1531# The aliases save the names the user supplied, while $host etc.
1532# will get canonicalized.
ff66d28f
PE
1533test -n "$target_alias" &&
1534 test "$program_prefix$program_suffix$program_transform_name" = \
1535 NONENONEs,x,x, &&
1536 program_prefix=${target_alias}-
1537target_alias=${target_alias-$host_alias}
1538
1539# Handy for debugging:
1540#AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
1541
0df3f383
PE
1542if test "$build" != "$host"; then
1543 # We are being configured with some form of cross compiler.
1544 GLIBCXX_IS_NATIVE=false
3a24bf5d 1545
0df3f383
PE
1546else
1547 GLIBCXX_IS_NATIVE=true
1548fi
1549
ff66d28f
PE
1550# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1551# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1552# 1.x: minimum required version
1553# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1554# of other PACKAGE_* variables will, however, and there's nothing
fbe057bb 1555# we can do about that; they come from AC_INIT).
ff66d28f
PE
1556# foreign: we don't follow the normal rules for GNU packages (no COPYING
1557# file in the top srcdir, etc, etc), so stop complaining.
1558# no-dependencies: turns off auto dependency generation (just for now)
2d52e9e3
PE
1559# -Wall: turns on all automake warnings...
1560# -Wno-portability: ...except this one, since GNU make is now required.
a60945f8 1561am__api_version="1.9"
ff66d28f
PE
1562# Find a good install program. We prefer a C program (faster),
1563# so one script is as good as another. But avoid the broken or
1564# incompatible versions:
1565# SysV /etc/install, /usr/sbin/install
1566# SunOS /usr/etc/install
1567# IRIX /sbin/install
1568# AIX /bin/install
1569# AmigaOS /C/install, which installs bootblocks on floppy discs
1570# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1571# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1572# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ec2075e9 1573# OS/2's system install, which has a completely different semantic
ff66d28f
PE
1574# ./install, which can be erroneously created by make from ./install.sh.
1575echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1576echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1577if test -z "$INSTALL"; then
1578if test "${ac_cv_path_install+set}" = set; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1580else
1581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582for as_dir in $PATH
1583do
1584 IFS=$as_save_IFS
1585 test -z "$as_dir" && as_dir=.
1586 # Account for people who put trailing slashes in PATH elements.
1587case $as_dir/ in
1588 ./ | .// | /cC/* | \
1589 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ec2075e9 1590 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
ff66d28f
PE
1591 /usr/ucb/* ) ;;
1592 *)
1593 # OSF1 and SCO ODT 3.0 have their own names for install.
1594 # Don't use installbsd from OSF since it installs stuff as root
1595 # by default.
1596 for ac_prog in ginstall scoinst install; do
1597 for ac_exec_ext in '' $ac_executable_extensions; do
ec2075e9
BK
1598 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1599 if test $ac_prog = install &&
1600 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1601 # AIX install. It has an incompatible calling convention.
1602 :
1603 elif test $ac_prog = install &&
1604 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1605 # program-specific install script used by HP pwplus--don't use.
1606 :
1607 else
1608 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1609 break 3
1610 fi
1611 fi
ff66d28f
PE
1612 done
1613 done
1614 ;;
b2dad0e3 1615esac
ff66d28f 1616done
b2dad0e3
BK
1617
1618
b2dad0e3 1619fi
ff66d28f
PE
1620 if test "${ac_cv_path_install+set}" = set; then
1621 INSTALL=$ac_cv_path_install
1622 else
1623 # As a last resort, use the slow shell script. We don't cache a
1624 # path for INSTALL within a source directory, because that will
1625 # break other packages using the cache if that directory is
1626 # removed, or if the path is relative.
1627 INSTALL=$ac_install_sh
1628 fi
1629fi
1630echo "$as_me:$LINENO: result: $INSTALL" >&5
1631echo "${ECHO_T}$INSTALL" >&6
b2dad0e3 1632
ff66d28f
PE
1633# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1634# It thinks the first close brace ends the variable substitution.
1635test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
b2dad0e3 1636
ff66d28f 1637test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
b2dad0e3 1638
ff66d28f 1639test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
b2dad0e3 1640
ff66d28f
PE
1641echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1642echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1643# Just in case
1644sleep 1
1645echo timestamp > conftest.file
1646# Do `set' in a subshell so we don't clobber the current shell's
1647# arguments. Must try -L first in case configure is actually a
1648# symlink; some systems play weird games with the mod time of symlinks
1649# (eg FreeBSD returns the mod time of the symlink's containing
1650# directory).
1651if (
1652 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1653 if test "$*" = "X"; then
1654 # -L didn't work.
1655 set X `ls -t $srcdir/configure conftest.file`
1656 fi
1657 rm -f conftest.file
1658 if test "$*" != "X $srcdir/configure conftest.file" \
1659 && test "$*" != "X conftest.file $srcdir/configure"; then
b2dad0e3 1660
ff66d28f
PE
1661 # If neither matched, then we have a broken ls. This can happen
1662 # if, for instance, CONFIG_SHELL is bash and it inherits a
1663 # broken ls alias from the environment. This has actually
1664 # happened. Such a system could not be considered "sane".
1665 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1666alias in your environment" >&5
1667echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1668alias in your environment" >&2;}
1669 { (exit 1); exit 1; }; }
1670 fi
b2dad0e3 1671
ff66d28f
PE
1672 test "$2" = conftest.file
1673 )
1674then
1675 # Ok.
1676 :
33590f13 1677else
ff66d28f
PE
1678 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1679Check your system clock" >&5
1680echo "$as_me: error: newly created file is older than distributed files!
1681Check your system clock" >&2;}
1682 { (exit 1); exit 1; }; }
33590f13 1683fi
ff66d28f
PE
1684echo "$as_me:$LINENO: result: yes" >&5
1685echo "${ECHO_T}yes" >&6
1686test "$program_prefix" != NONE &&
1687 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1688# Use a double $ so make ignores it.
1689test "$program_suffix" != NONE &&
1690 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1691# Double any \ or $. echo might interpret backslashes.
1692# By default was `s,x,x', remove it if useless.
1693cat <<\_ACEOF >conftest.sed
1694s/[\\$]/&&/g;s/;s,x,x,$//
1695_ACEOF
1696program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1697rm conftest.sed
b2dad0e3 1698
ff66d28f
PE
1699# expand $ac_aux_dir to an absolute path
1700am_aux_dir=`cd $ac_aux_dir && pwd`
33590f13 1701
ff66d28f
PE
1702test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1703# Use eval to expand $SHELL
1704if eval "$MISSING --run true"; then
1705 am_missing_run="$MISSING --run "
b2dad0e3 1706else
ff66d28f
PE
1707 am_missing_run=
1708 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1709echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
33590f13
BK
1710fi
1711
7eaf73d7 1712if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
a60945f8
PC
1713 # We used to keeping the `.' as first argument, in order to
1714 # allow $(mkdir_p) to be used without argument. As in
7eaf73d7 1715 # $(mkdir_p) $(somedir)
a60945f8
PC
1716 # where $(somedir) is conditionally defined. However this is wrong
1717 # for two reasons:
1718 # 1. if the package is installed by a user who cannot write `.'
1719 # make install will fail,
1720 # 2. the above comment should most certainly read
1721 # $(mkdir_p) $(DESTDIR)$(somedir)
1722 # so it does not work when $(somedir) is undefined and
1723 # $(DESTDIR) is not.
1724 # To support the latter case, we have to write
1725 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1726 # so the `.' trick is pointless.
1727 mkdir_p='mkdir -p --'
7eaf73d7
KC
1728else
1729 # On NextStep and OpenStep, the `mkdir' command does not
1730 # recognize any option. It will interpret all options as
1731 # directories to create, and then abort because `.' already
1732 # exists.
1733 for d in ./-p ./--version;
1734 do
1735 test -d $d && rmdir $d
1736 done
1737 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1738 if test -f "$ac_aux_dir/mkinstalldirs"; then
1739 mkdir_p='$(mkinstalldirs)'
1740 else
1741 mkdir_p='$(install_sh) -d'
1742 fi
1743fi
1744
ff66d28f 1745for ac_prog in gawk mawk nawk awk
c98b201b 1746do
ff66d28f 1747 # Extract the first word of "$ac_prog", so it can be a program name with args.
c98b201b 1748set dummy $ac_prog; ac_word=$2
ff66d28f
PE
1749echo "$as_me:$LINENO: checking for $ac_word" >&5
1750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1751if test "${ac_cv_prog_AWK+set}" = set; then
1752 echo $ECHO_N "(cached) $ECHO_C" >&6
c98b201b
PE
1753else
1754 if test -n "$AWK"; then
1755 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1756else
ff66d28f
PE
1757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758for as_dir in $PATH
1759do
1760 IFS=$as_save_IFS
1761 test -z "$as_dir" && as_dir=.
1762 for ac_exec_ext in '' $ac_executable_extensions; do
1763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1764 ac_cv_prog_AWK="$ac_prog"
1765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1766 break 2
1767 fi
1768done
1769done
1770
c98b201b
PE
1771fi
1772fi
ff66d28f 1773AWK=$ac_cv_prog_AWK
c98b201b 1774if test -n "$AWK"; then
ff66d28f
PE
1775 echo "$as_me:$LINENO: result: $AWK" >&5
1776echo "${ECHO_T}$AWK" >&6
c98b201b 1777else
ff66d28f
PE
1778 echo "$as_me:$LINENO: result: no" >&5
1779echo "${ECHO_T}no" >&6
c98b201b
PE
1780fi
1781
ff66d28f 1782 test -n "$AWK" && break
c98b201b
PE
1783done
1784
ff66d28f
PE
1785echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1786echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ec2075e9 1787set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
ff66d28f
PE
1788if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1789 echo $ECHO_N "(cached) $ECHO_C" >&6
1790else
1791 cat >conftest.make <<\_ACEOF
1792all:
1793 @echo 'ac_maketemp="$(MAKE)"'
1794_ACEOF
1795# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1796eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1797if test -n "$ac_maketemp"; then
1798 eval ac_cv_prog_make_${ac_make}_set=yes
33590f13 1799else
ff66d28f 1800 eval ac_cv_prog_make_${ac_make}_set=no
33590f13 1801fi
ff66d28f 1802rm -f conftest.make
33590f13 1803fi
ff66d28f
PE
1804if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1805 echo "$as_me:$LINENO: result: yes" >&5
1806echo "${ECHO_T}yes" >&6
1807 SET_MAKE=
33590f13 1808else
ff66d28f
PE
1809 echo "$as_me:$LINENO: result: no" >&5
1810echo "${ECHO_T}no" >&6
1811 SET_MAKE="MAKE=${MAKE-make}"
33590f13
BK
1812fi
1813
ff66d28f
PE
1814rm -rf .tst 2>/dev/null
1815mkdir .tst 2>/dev/null
1816if test -d .tst; then
1817 am__leading_dot=.
1818else
1819 am__leading_dot=_
1820fi
1821rmdir .tst 2>/dev/null
33590f13 1822
7eaf73d7 1823# test to see if srcdir already configured
ff66d28f
PE
1824if test "`cd $srcdir && pwd`" != "`pwd`" &&
1825 test -f $srcdir/config.status; then
1826 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1827echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1828 { (exit 1); exit 1; }; }
33590f13
BK
1829fi
1830
ff66d28f
PE
1831# test whether we have cygpath
1832if test -z "$CYGPATH_W"; then
1833 if (cygpath --version) >/dev/null 2>/dev/null; then
1834 CYGPATH_W='cygpath -w'
1835 else
1836 CYGPATH_W=echo
1837 fi
33590f13
BK
1838fi
1839
1840
ff66d28f 1841# Define the identity of the package.
fbe057bb 1842 PACKAGE='libstdc++'
ff66d28f 1843 VERSION='version-unused'
b731048b
BK
1844
1845
ff66d28f 1846# Some tools Automake needs.
33590f13 1847
ff66d28f 1848ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
33590f13 1849
33590f13 1850
ff66d28f 1851AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
33590f13 1852
ff66d28f
PE
1853
1854AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1855
1856
1857AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1858
1859
1860MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1861
ff66d28f
PE
1862install_sh=${install_sh-"$am_aux_dir/install-sh"}
1863
1864# Installed binaries are usually stripped using `strip' when the user
1865# run `make install-strip'. However `strip' might not be the right
1866# tool to use in cross-compilation environments, therefore Automake
1867# will honor the `STRIP' environment variable to overrule this program.
1868if test "$cross_compiling" != no; then
1869 if test -n "$ac_tool_prefix"; then
1870 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1871set dummy ${ac_tool_prefix}strip; ac_word=$2
1872echo "$as_me:$LINENO: checking for $ac_word" >&5
1873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1874if test "${ac_cv_prog_STRIP+set}" = set; then
1875 echo $ECHO_N "(cached) $ECHO_C" >&6
33590f13 1876else
ff66d28f
PE
1877 if test -n "$STRIP"; then
1878 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
33590f13 1879else
ff66d28f
PE
1880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1881for as_dir in $PATH
1882do
1883 IFS=$as_save_IFS
1884 test -z "$as_dir" && as_dir=.
1885 for ac_exec_ext in '' $ac_executable_extensions; do
1886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1887 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1889 break 2
1890 fi
1891done
1892done
1893
33590f13
BK
1894fi
1895fi
ff66d28f
PE
1896STRIP=$ac_cv_prog_STRIP
1897if test -n "$STRIP"; then
1898 echo "$as_me:$LINENO: result: $STRIP" >&5
1899echo "${ECHO_T}$STRIP" >&6
33590f13 1900else
ff66d28f
PE
1901 echo "$as_me:$LINENO: result: no" >&5
1902echo "${ECHO_T}no" >&6
33590f13
BK
1903fi
1904
ff66d28f
PE
1905fi
1906if test -z "$ac_cv_prog_STRIP"; then
1907 ac_ct_STRIP=$STRIP
1908 # Extract the first word of "strip", so it can be a program name with args.
1909set dummy strip; ac_word=$2
1910echo "$as_me:$LINENO: checking for $ac_word" >&5
1911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1913 echo $ECHO_N "(cached) $ECHO_C" >&6
33590f13 1914else
ff66d28f
PE
1915 if test -n "$ac_ct_STRIP"; then
1916 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
33590f13 1917else
ff66d28f
PE
1918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919for as_dir in $PATH
1920do
1921 IFS=$as_save_IFS
1922 test -z "$as_dir" && as_dir=.
1923 for ac_exec_ext in '' $ac_executable_extensions; do
1924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1925 ac_cv_prog_ac_ct_STRIP="strip"
1926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927 break 2
b2dad0e3 1928 fi
ff66d28f
PE
1929done
1930done
1931
1932 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
b2dad0e3
BK
1933fi
1934fi
ff66d28f
PE
1935ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1936if test -n "$ac_ct_STRIP"; then
1937 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1938echo "${ECHO_T}$ac_ct_STRIP" >&6
b2dad0e3 1939else
ff66d28f
PE
1940 echo "$as_me:$LINENO: result: no" >&5
1941echo "${ECHO_T}no" >&6
b2dad0e3
BK
1942fi
1943
ff66d28f 1944 STRIP=$ac_ct_STRIP
b2dad0e3 1945else
ff66d28f 1946 STRIP="$ac_cv_prog_STRIP"
b2dad0e3 1947fi
ff66d28f 1948
b2dad0e3 1949fi
ff66d28f 1950INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
b2dad0e3 1951
ff66d28f
PE
1952# We need awk for the "check" target. The system "awk" is bad on
1953# some platforms.
a60945f8
PC
1954# Always define AMTAR for backward compatibility.
1955
1956AMTAR=${AMTAR-"${am_missing_run}tar"}
1957
1958am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1959
1960
b2dad0e3 1961
b2dad0e3 1962
b2dad0e3 1963
ff66d28f 1964
3a24bf5d
KC
1965
1966
1967
1968
ff66d28f
PE
1969# Runs configure.host, finds CC, CXX, and assorted other critical bits. Sets
1970# up critical shell variables.
1971
82ba99d5
PE
1972 # Keep these sync'd with the list in Makefile.am. The first provides an
1973 # expandable list at autoconf time; the second provides an expandable list
1974 # (i.e., shell variable) at configure time.
1975
1976 SUBDIRS='include libmath libsupc++ src po testsuite'
1977
ff66d28f
PE
1978 # These need to be absolute paths, yet at the same time need to
1979 # canonicalize only relative paths, because then amd will not unmount
1980 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1981 glibcxx_builddir=`${PWDCMD-pwd}`
1982 case $srcdir in
1983 \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
1984 *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1985 esac
1986 toplevel_srcdir=${glibcxx_srcdir}/..
1987
1988
1989
1990
1991 # We use these options to decide which functions to include. They are
1992 # set from the top level.
1993
1994# Check whether --with-target-subdir or --without-target-subdir was given.
1995if test "${with_target_subdir+set}" = set; then
1996 withval="$with_target_subdir"
1997
1998fi;
1999
2000
2001# Check whether --with-cross-host or --without-cross-host was given.
2002if test "${with_cross_host+set}" = set; then
2003 withval="$with_cross_host"
2004
2005fi;
2006
2007
2008# Check whether --with-newlib or --without-newlib was given.
2009if test "${with_newlib+set}" = set; then
2010 withval="$with_newlib"
2011
2012fi;
2013
f6dda651
PE
2014 # We're almost certainly being configured before anything else which uses
2015 # C++, so all of our AC_PROG_* discoveries will be cached. It's vital that
2016 # we not cache the value of CXX that we "discover" here, because it's set
2017 # to something unique for us and libjava. Other target libraries need to
2018 # find CXX for themselves. We yank the rug out from under the normal AC_*
2019 # process by sneakily renaming the cache variable. This also lets us debug
2020 # the value of "our" CXX in postmortems.
2021 #
2022 # We must also force CXX to /not/ be a precious variable, otherwise the
2023 # wrong (non-multilib-adjusted) value will be used in multilibs. This
2024 # little trick also affects CPPFLAGS, CXXFLAGS, and LDFLAGS. And as a side
2025 # effect, CXXFLAGS is no longer automagically subst'd, so we have to do
2026 # that ourselves. Un-preciousing AC_PROG_CC also affects CC and CFLAGS.
2027 #
2028 # -fno-builtin must be present here so that a non-conflicting form of
2029 # std::exit can be guessed by AC_PROG_CXX, and used in later tests.
2030
2031
2032
2033
2034 save_CXXFLAGS="$CXXFLAGS"
2035 CXXFLAGS="$CXXFLAGS -fno-builtin"
ff66d28f
PE
2036 ac_ext=c
2037ac_cpp='$CPP $CPPFLAGS'
2038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2040ac_compiler_gnu=$ac_cv_c_compiler_gnu
2041if test -n "$ac_tool_prefix"; then
2042 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2043set dummy ${ac_tool_prefix}gcc; ac_word=$2
2044echo "$as_me:$LINENO: checking for $ac_word" >&5
2045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2046if test "${ac_cv_prog_CC+set}" = set; then
2047 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 2048else
ff66d28f
PE
2049 if test -n "$CC"; then
2050 ac_cv_prog_CC="$CC" # Let the user override the test.
b2dad0e3 2051else
ff66d28f
PE
2052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053for as_dir in $PATH
2054do
2055 IFS=$as_save_IFS
2056 test -z "$as_dir" && as_dir=.
2057 for ac_exec_ext in '' $ac_executable_extensions; do
2058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2059 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2061 break 2
2062 fi
2063done
2064done
2065
b2dad0e3
BK
2066fi
2067fi
ff66d28f
PE
2068CC=$ac_cv_prog_CC
2069if test -n "$CC"; then
2070 echo "$as_me:$LINENO: result: $CC" >&5
2071echo "${ECHO_T}$CC" >&6
b2dad0e3 2072else
ff66d28f
PE
2073 echo "$as_me:$LINENO: result: no" >&5
2074echo "${ECHO_T}no" >&6
b2dad0e3
BK
2075fi
2076
ff66d28f
PE
2077fi
2078if test -z "$ac_cv_prog_CC"; then
2079 ac_ct_CC=$CC
2080 # Extract the first word of "gcc", so it can be a program name with args.
2081set dummy gcc; ac_word=$2
2082echo "$as_me:$LINENO: checking for $ac_word" >&5
2083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2084if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 2086else
ff66d28f
PE
2087 if test -n "$ac_ct_CC"; then
2088 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b2dad0e3 2089else
ff66d28f
PE
2090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091for as_dir in $PATH
2092do
2093 IFS=$as_save_IFS
2094 test -z "$as_dir" && as_dir=.
2095 for ac_exec_ext in '' $ac_executable_extensions; do
2096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2097 ac_cv_prog_ac_ct_CC="gcc"
2098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2099 break 2
2100 fi
2101done
2102done
2103
b2dad0e3
BK
2104fi
2105fi
ff66d28f
PE
2106ac_ct_CC=$ac_cv_prog_ac_ct_CC
2107if test -n "$ac_ct_CC"; then
2108 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2109echo "${ECHO_T}$ac_ct_CC" >&6
b2dad0e3 2110else
ff66d28f
PE
2111 echo "$as_me:$LINENO: result: no" >&5
2112echo "${ECHO_T}no" >&6
b2dad0e3 2113fi
b2dad0e3 2114
ff66d28f
PE
2115 CC=$ac_ct_CC
2116else
2117 CC="$ac_cv_prog_CC"
b2dad0e3
BK
2118fi
2119
ff66d28f
PE
2120if test -z "$CC"; then
2121 if test -n "$ac_tool_prefix"; then
2122 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2123set dummy ${ac_tool_prefix}cc; ac_word=$2
2124echo "$as_me:$LINENO: checking for $ac_word" >&5
2125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2126if test "${ac_cv_prog_CC+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2128else
2129 if test -n "$CC"; then
2130 ac_cv_prog_CC="$CC" # Let the user override the test.
2131else
2132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133for as_dir in $PATH
2134do
2135 IFS=$as_save_IFS
2136 test -z "$as_dir" && as_dir=.
2137 for ac_exec_ext in '' $ac_executable_extensions; do
2138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2139 ac_cv_prog_CC="${ac_tool_prefix}cc"
2140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141 break 2
b2dad0e3 2142 fi
ff66d28f
PE
2143done
2144done
93b85586 2145
ff66d28f
PE
2146fi
2147fi
2148CC=$ac_cv_prog_CC
2149if test -n "$CC"; then
2150 echo "$as_me:$LINENO: result: $CC" >&5
2151echo "${ECHO_T}$CC" >&6
974e336b 2152else
ff66d28f
PE
2153 echo "$as_me:$LINENO: result: no" >&5
2154echo "${ECHO_T}no" >&6
2155fi
974e336b 2156
974e336b 2157fi
ff66d28f
PE
2158if test -z "$ac_cv_prog_CC"; then
2159 ac_ct_CC=$CC
2160 # Extract the first word of "cc", so it can be a program name with args.
2161set dummy cc; ac_word=$2
2162echo "$as_me:$LINENO: checking for $ac_word" >&5
2163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2164if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2166else
2167 if test -n "$ac_ct_CC"; then
2168 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2169else
2170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171for as_dir in $PATH
2172do
2173 IFS=$as_save_IFS
2174 test -z "$as_dir" && as_dir=.
2175 for ac_exec_ext in '' $ac_executable_extensions; do
2176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2177 ac_cv_prog_ac_ct_CC="cc"
2178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2179 break 2
2180 fi
2181done
2182done
33590f13 2183
974e336b 2184fi
ff66d28f
PE
2185fi
2186ac_ct_CC=$ac_cv_prog_ac_ct_CC
2187if test -n "$ac_ct_CC"; then
2188 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2189echo "${ECHO_T}$ac_ct_CC" >&6
33590f13 2190else
ff66d28f
PE
2191 echo "$as_me:$LINENO: result: no" >&5
2192echo "${ECHO_T}no" >&6
33590f13
BK
2193fi
2194
ff66d28f
PE
2195 CC=$ac_ct_CC
2196else
2197 CC="$ac_cv_prog_CC"
2198fi
33590f13 2199
ff66d28f
PE
2200fi
2201if test -z "$CC"; then
2202 # Extract the first word of "cc", so it can be a program name with args.
2203set dummy cc; ac_word=$2
2204echo "$as_me:$LINENO: checking for $ac_word" >&5
2205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2206if test "${ac_cv_prog_CC+set}" = set; then
2207 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 2208else
ff66d28f
PE
2209 if test -n "$CC"; then
2210 ac_cv_prog_CC="$CC" # Let the user override the test.
b2dad0e3 2211else
ff66d28f
PE
2212 ac_prog_rejected=no
2213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2214for as_dir in $PATH
2215do
2216 IFS=$as_save_IFS
2217 test -z "$as_dir" && as_dir=.
2218 for ac_exec_ext in '' $ac_executable_extensions; do
2219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2220 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2221 ac_prog_rejected=yes
2222 continue
2223 fi
2224 ac_cv_prog_CC="cc"
2225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2226 break 2
2227 fi
2228done
2229done
2230
2231if test $ac_prog_rejected = yes; then
2232 # We found a bogon in the path, so make sure we never use it.
2233 set dummy $ac_cv_prog_CC
2234 shift
2235 if test $# != 0; then
2236 # We chose a different compiler from the bogus one.
2237 # However, it has the same basename, so the bogon will be chosen
2238 # first if we set CC to just the basename; use the full file name.
2239 shift
2240 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2241 fi
b2dad0e3
BK
2242fi
2243fi
ff66d28f
PE
2244fi
2245CC=$ac_cv_prog_CC
2246if test -n "$CC"; then
2247 echo "$as_me:$LINENO: result: $CC" >&5
2248echo "${ECHO_T}$CC" >&6
b2dad0e3 2249else
ff66d28f
PE
2250 echo "$as_me:$LINENO: result: no" >&5
2251echo "${ECHO_T}no" >&6
b2dad0e3
BK
2252fi
2253
ff66d28f
PE
2254fi
2255if test -z "$CC"; then
2256 if test -n "$ac_tool_prefix"; then
2257 for ac_prog in cl
2258 do
2259 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2260set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2261echo "$as_me:$LINENO: checking for $ac_word" >&5
2262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2263if test "${ac_cv_prog_CC+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 2265else
ff66d28f
PE
2266 if test -n "$CC"; then
2267 ac_cv_prog_CC="$CC" # Let the user override the test.
b2dad0e3 2268else
ff66d28f
PE
2269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270for as_dir in $PATH
2271do
2272 IFS=$as_save_IFS
2273 test -z "$as_dir" && as_dir=.
2274 for ac_exec_ext in '' $ac_executable_extensions; do
2275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2276 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278 break 2
2279 fi
2280done
2281done
2282
b2dad0e3
BK
2283fi
2284fi
ff66d28f
PE
2285CC=$ac_cv_prog_CC
2286if test -n "$CC"; then
2287 echo "$as_me:$LINENO: result: $CC" >&5
2288echo "${ECHO_T}$CC" >&6
b2dad0e3 2289else
ff66d28f
PE
2290 echo "$as_me:$LINENO: result: no" >&5
2291echo "${ECHO_T}no" >&6
b2dad0e3
BK
2292fi
2293
ff66d28f
PE
2294 test -n "$CC" && break
2295 done
2296fi
2297if test -z "$CC"; then
2298 ac_ct_CC=$CC
2299 for ac_prog in cl
2300do
2301 # Extract the first word of "$ac_prog", so it can be a program name with args.
2302set dummy $ac_prog; ac_word=$2
2303echo "$as_me:$LINENO: checking for $ac_word" >&5
2304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2305if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 2307else
ff66d28f
PE
2308 if test -n "$ac_ct_CC"; then
2309 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b2dad0e3 2310else
ff66d28f
PE
2311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312for as_dir in $PATH
2313do
2314 IFS=$as_save_IFS
2315 test -z "$as_dir" && as_dir=.
2316 for ac_exec_ext in '' $ac_executable_extensions; do
2317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2318 ac_cv_prog_ac_ct_CC="$ac_prog"
2319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2320 break 2
2321 fi
2322done
2323done
2324
b2dad0e3
BK
2325fi
2326fi
ff66d28f
PE
2327ac_ct_CC=$ac_cv_prog_ac_ct_CC
2328if test -n "$ac_ct_CC"; then
2329 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2330echo "${ECHO_T}$ac_ct_CC" >&6
b2dad0e3 2331else
ff66d28f
PE
2332 echo "$as_me:$LINENO: result: no" >&5
2333echo "${ECHO_T}no" >&6
b2dad0e3
BK
2334fi
2335
ff66d28f
PE
2336 test -n "$ac_ct_CC" && break
2337done
b2dad0e3 2338
ff66d28f
PE
2339 CC=$ac_ct_CC
2340fi
2341
2342fi
2343
2344
2345test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2346See \`config.log' for more details." >&5
2347echo "$as_me: error: no acceptable C compiler found in \$PATH
2348See \`config.log' for more details." >&2;}
2349 { (exit 1); exit 1; }; }
2350
2351# Provide some information about the compiler.
2352echo "$as_me:$LINENO:" \
2353 "checking for C compiler version" >&5
2354ac_compiler=`set X $ac_compile; echo $2`
2355{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2356 (eval $ac_compiler --version </dev/null >&5) 2>&5
2357 ac_status=$?
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }
2360{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2361 (eval $ac_compiler -v </dev/null >&5) 2>&5
2362 ac_status=$?
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }
2365{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2366 (eval $ac_compiler -V </dev/null >&5) 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }
2370
2371cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
2372/* confdefs.h. */
2373_ACEOF
2374cat confdefs.h >>conftest.$ac_ext
2375cat >>conftest.$ac_ext <<_ACEOF
2376/* end confdefs.h. */
2377
3a24bf5d
KC
2378int
2379main ()
2380{
2381
2382 ;
2383 return 0;
2384}
2385_ACEOF
2386# FIXME: Cleanup?
2387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2388 (eval $ac_link) 2>&5
2389 ac_status=$?
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; then
2392 gcc_no_link=no
2393else
2394 gcc_no_link=yes
2395fi
2396
2397if test x$gcc_no_link = xyes; then
2398 # Setting cross_compile will disable run tests; it will
2399 # also disable AC_CHECK_FILE but that's generally
2400 # correct if we can't link.
2401 cross_compiling=yes
2402 EXEEXT=
2403else
2404 cat >conftest.$ac_ext <<_ACEOF
2405/* confdefs.h. */
2406_ACEOF
2407cat confdefs.h >>conftest.$ac_ext
2408cat >>conftest.$ac_ext <<_ACEOF
2409/* end confdefs.h. */
2410
ff66d28f
PE
2411int
2412main ()
2413{
2414
2415 ;
2416 return 0;
2417}
2418_ACEOF
2419ac_clean_files_save=$ac_clean_files
2420ac_clean_files="$ac_clean_files a.out a.exe b.out"
2421# Try to create an executable without -o first, disregard a.out.
2422# It will help us diagnose broken compilers, and finding out an intuition
2423# of exeext.
ec2075e9
BK
2424echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2425echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
ff66d28f
PE
2426ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2427if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2428 (eval $ac_link_default) 2>&5
2429 ac_status=$?
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }; then
2432 # Find the output, starting from the most likely. This scheme is
2433# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2434# resort.
2435
2436# Be careful to initialize this variable, since it used to be cached.
2437# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2438ac_cv_exeext=
2439# b.out is created by i960 compilers.
2440for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2441do
2442 test -f "$ac_file" || continue
2443 case $ac_file in
2444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ec2075e9 2445 ;;
ff66d28f 2446 conftest.$ac_ext )
ec2075e9
BK
2447 # This is the source file.
2448 ;;
ff66d28f 2449 [ab].out )
ec2075e9
BK
2450 # We found the default executable, but exeext='' is most
2451 # certainly right.
2452 break;;
ff66d28f 2453 *.* )
ec2075e9
BK
2454 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2455 # FIXME: I believe we export ac_cv_exeext for Libtool,
2456 # but it would be cool to find out if it's true. Does anybody
2457 # maintain Libtool? --akim.
2458 export ac_cv_exeext
2459 break;;
ff66d28f 2460 * )
ec2075e9 2461 break;;
ff66d28f
PE
2462 esac
2463done
b2dad0e3 2464else
ff66d28f
PE
2465 echo "$as_me: failed program was:" >&5
2466sed 's/^/| /' conftest.$ac_ext >&5
2467
2468{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2469See \`config.log' for more details." >&5
2470echo "$as_me: error: C compiler cannot create executables
2471See \`config.log' for more details." >&2;}
2472 { (exit 77); exit 77; }; }
2473fi
2474
2475ac_exeext=$ac_cv_exeext
2476echo "$as_me:$LINENO: result: $ac_file" >&5
2477echo "${ECHO_T}$ac_file" >&6
2478
2479# Check the compiler produces executables we can run. If not, either
2480# the compiler is broken, or we cross compile.
2481echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2482echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2483# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2484# If not cross compiling, check that we can run a simple program.
2485if test "$cross_compiling" != yes; then
2486 if { ac_try='./$ac_file'
2487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488 (eval $ac_try) 2>&5
2489 ac_status=$?
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; }; then
2492 cross_compiling=no
2493 else
2494 if test "$cross_compiling" = maybe; then
2495 cross_compiling=yes
2496 else
2497 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2498If you meant to cross compile, use \`--host'.
2499See \`config.log' for more details." >&5
2500echo "$as_me: error: cannot run C compiled programs.
2501If you meant to cross compile, use \`--host'.
2502See \`config.log' for more details." >&2;}
2503 { (exit 1); exit 1; }; }
b2dad0e3 2504 fi
ff66d28f 2505 fi
b2dad0e3 2506fi
ff66d28f
PE
2507echo "$as_me:$LINENO: result: yes" >&5
2508echo "${ECHO_T}yes" >&6
2509
2510rm -f a.out a.exe conftest$ac_cv_exeext b.out
2511ac_clean_files=$ac_clean_files_save
2512# Check the compiler produces executables we can run. If not, either
2513# the compiler is broken, or we cross compile.
2514echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2515echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2516echo "$as_me:$LINENO: result: $cross_compiling" >&5
2517echo "${ECHO_T}$cross_compiling" >&6
2518
2519echo "$as_me:$LINENO: checking for suffix of executables" >&5
2520echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2522 (eval $ac_link) 2>&5
2523 ac_status=$?
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; then
2526 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2527# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2528# work properly (i.e., refer to `conftest.exe'), while it won't with
2529# `rm'.
2530for ac_file in conftest.exe conftest conftest.*; do
2531 test -f "$ac_file" || continue
2532 case $ac_file in
2533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2534 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ec2075e9
BK
2535 export ac_cv_exeext
2536 break;;
ff66d28f
PE
2537 * ) break;;
2538 esac
2539done
b2dad0e3 2540else
ff66d28f
PE
2541 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2542See \`config.log' for more details." >&5
2543echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2544See \`config.log' for more details." >&2;}
2545 { (exit 1); exit 1; }; }
b2dad0e3
BK
2546fi
2547
ff66d28f
PE
2548rm -f conftest$ac_cv_exeext
2549echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2550echo "${ECHO_T}$ac_cv_exeext" >&6
2551
2552rm -f conftest.$ac_ext
2553EXEEXT=$ac_cv_exeext
2554ac_exeext=$EXEEXT
3a24bf5d 2555fi
ff66d28f
PE
2556echo "$as_me:$LINENO: checking for suffix of object files" >&5
2557echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2558if test "${ac_cv_objext+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2560else
2561 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
2562/* confdefs.h. */
2563_ACEOF
2564cat confdefs.h >>conftest.$ac_ext
2565cat >>conftest.$ac_ext <<_ACEOF
2566/* end confdefs.h. */
2567
2568int
2569main ()
2570{
2571
2572 ;
2573 return 0;
2574}
2575_ACEOF
2576rm -f conftest.o conftest.obj
2577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2578 (eval $ac_compile) 2>&5
2579 ac_status=$?
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; then
2582 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2583 case $ac_file in
2584 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2585 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2586 break;;
2587 esac
2588done
b2dad0e3 2589else
ff66d28f
PE
2590 echo "$as_me: failed program was:" >&5
2591sed 's/^/| /' conftest.$ac_ext >&5
2592
2593{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2594See \`config.log' for more details." >&5
2595echo "$as_me: error: cannot compute suffix of object files: cannot compile
2596See \`config.log' for more details." >&2;}
2597 { (exit 1); exit 1; }; }
46840bcd 2598fi
ff66d28f
PE
2599
2600rm -f conftest.$ac_cv_objext conftest.$ac_ext
46840bcd 2601fi
ff66d28f
PE
2602echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2603echo "${ECHO_T}$ac_cv_objext" >&6
2604OBJEXT=$ac_cv_objext
2605ac_objext=$OBJEXT
2606echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2607echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2608if test "${ac_cv_c_compiler_gnu+set}" = set; then
2609 echo $ECHO_N "(cached) $ECHO_C" >&6
2610else
2611 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
2612/* confdefs.h. */
2613_ACEOF
2614cat confdefs.h >>conftest.$ac_ext
2615cat >>conftest.$ac_ext <<_ACEOF
2616/* end confdefs.h. */
46840bcd 2617
ff66d28f
PE
2618int
2619main ()
2620{
2621#ifndef __GNUC__
2622 choke me
2623#endif
2624
2625 ;
2626 return 0;
2627}
2628_ACEOF
2629rm -f conftest.$ac_objext
2630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 2631 (eval $ac_compile) 2>conftest.er1
ff66d28f 2632 ac_status=$?
ec2075e9
BK
2633 grep -v '^ *+' conftest.er1 >conftest.err
2634 rm -f conftest.er1
2635 cat conftest.err >&5
ff66d28f
PE
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); } &&
780028b6
BK
2638 { ac_try='test -z "$ac_c_werror_flag"
2639 || test ! -s conftest.err'
ec2075e9
BK
2640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641 (eval $ac_try) 2>&5
2642 ac_status=$?
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }; } &&
2645 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
2646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647 (eval $ac_try) 2>&5
2648 ac_status=$?
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }; }; then
2651 ac_compiler_gnu=yes
2652else
2653 echo "$as_me: failed program was:" >&5
2654sed 's/^/| /' conftest.$ac_ext >&5
2655
2656ac_compiler_gnu=no
2657fi
ec2075e9 2658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
2659ac_cv_c_compiler_gnu=$ac_compiler_gnu
2660
2661fi
2662echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2663echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2664GCC=`test $ac_compiler_gnu = yes && echo yes`
2665ac_test_CFLAGS=${CFLAGS+set}
2666ac_save_CFLAGS=$CFLAGS
2667CFLAGS="-g"
2668echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2669echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2670if test "${ac_cv_prog_cc_g+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2672else
2673 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
2674/* confdefs.h. */
2675_ACEOF
2676cat confdefs.h >>conftest.$ac_ext
2677cat >>conftest.$ac_ext <<_ACEOF
2678/* end confdefs.h. */
2679
2680int
2681main ()
2682{
2683
2684 ;
2685 return 0;
2686}
2687_ACEOF
2688rm -f conftest.$ac_objext
2689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 2690 (eval $ac_compile) 2>conftest.er1
ff66d28f 2691 ac_status=$?
ec2075e9
BK
2692 grep -v '^ *+' conftest.er1 >conftest.err
2693 rm -f conftest.er1
2694 cat conftest.err >&5
ff66d28f
PE
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); } &&
780028b6
BK
2697 { ac_try='test -z "$ac_c_werror_flag"
2698 || test ! -s conftest.err'
ec2075e9
BK
2699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700 (eval $ac_try) 2>&5
2701 ac_status=$?
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; } &&
2704 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
2705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706 (eval $ac_try) 2>&5
2707 ac_status=$?
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }; }; then
2710 ac_cv_prog_cc_g=yes
b2dad0e3 2711else
ff66d28f
PE
2712 echo "$as_me: failed program was:" >&5
2713sed 's/^/| /' conftest.$ac_ext >&5
b2dad0e3 2714
ff66d28f 2715ac_cv_prog_cc_g=no
b2dad0e3 2716fi
ec2075e9 2717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
2718fi
2719echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2720echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2721if test "$ac_test_CFLAGS" = set; then
2722 CFLAGS=$ac_save_CFLAGS
2723elif test $ac_cv_prog_cc_g = yes; then
2724 if test "$GCC" = yes; then
2725 CFLAGS="-g -O2"
b2dad0e3 2726 else
ff66d28f 2727 CFLAGS="-g"
b2dad0e3 2728 fi
ff66d28f
PE
2729else
2730 if test "$GCC" = yes; then
2731 CFLAGS="-O2"
2732 else
2733 CFLAGS=
2734 fi
2735fi
2736echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2737echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2738if test "${ac_cv_prog_cc_stdc+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2740else
2741 ac_cv_prog_cc_stdc=no
2742ac_save_CC=$CC
2743cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
2744/* confdefs.h. */
2745_ACEOF
2746cat confdefs.h >>conftest.$ac_ext
2747cat >>conftest.$ac_ext <<_ACEOF
2748/* end confdefs.h. */
2749#include <stdarg.h>
2750#include <stdio.h>
2751#include <sys/types.h>
2752#include <sys/stat.h>
2753/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2754struct buf { int x; };
2755FILE * (*rcsopen) (struct buf *, struct stat *, int);
2756static char *e (p, i)
2757 char **p;
2758 int i;
2759{
2760 return p[i];
2761}
2762static char *f (char * (*g) (char **, int), char **p, ...)
2763{
2764 char *s;
2765 va_list v;
2766 va_start (v,p);
2767 s = g (p, va_arg (v,int));
2768 va_end (v);
2769 return s;
2770}
ec2075e9
BK
2771
2772/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2773 function prototypes and stuff, but not '\xHH' hex character constants.
2774 These don't provoke an error unfortunately, instead are silently treated
2775 as 'x'. The following induces an error, until -std1 is added to get
2776 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2777 array size at least. It's necessary to write '\x00'==0 to get something
2778 that's true only with -std1. */
2779int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2780
ff66d28f
PE
2781int test (int i, double x);
2782struct s1 {int (*f) (int a);};
2783struct s2 {int (*f) (double a);};
2784int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2785int argc;
2786char **argv;
2787int
2788main ()
2789{
2790return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2791 ;
2792 return 0;
2793}
2794_ACEOF
2795# Don't try gcc -ansi; that turns off useful extensions and
2796# breaks some systems' header files.
2797# AIX -qlanglvl=ansi
2798# Ultrix and OSF/1 -std1
2799# HP-UX 10.20 and later -Ae
2800# HP-UX older versions -Aa -D_HPUX_SOURCE
2801# SVR4 -Xc -D__EXTENSIONS__
2802for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2803do
2804 CC="$ac_save_CC $ac_arg"
2805 rm -f conftest.$ac_objext
2806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 2807 (eval $ac_compile) 2>conftest.er1
ff66d28f 2808 ac_status=$?
ec2075e9
BK
2809 grep -v '^ *+' conftest.er1 >conftest.err
2810 rm -f conftest.er1
2811 cat conftest.err >&5
ff66d28f
PE
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); } &&
780028b6
BK
2814 { ac_try='test -z "$ac_c_werror_flag"
2815 || test ! -s conftest.err'
ec2075e9
BK
2816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 (eval $ac_try) 2>&5
2818 ac_status=$?
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; } &&
2821 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
2822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823 (eval $ac_try) 2>&5
2824 ac_status=$?
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; }; then
2827 ac_cv_prog_cc_stdc=$ac_arg
2828break
2829else
2830 echo "$as_me: failed program was:" >&5
2831sed 's/^/| /' conftest.$ac_ext >&5
2832
b2dad0e3 2833fi
ec2075e9 2834rm -f conftest.err conftest.$ac_objext
ff66d28f
PE
2835done
2836rm -f conftest.$ac_ext conftest.$ac_objext
2837CC=$ac_save_CC
b2dad0e3 2838
ff66d28f 2839fi
b2dad0e3 2840
ff66d28f
PE
2841case "x$ac_cv_prog_cc_stdc" in
2842 x|xno)
2843 echo "$as_me:$LINENO: result: none needed" >&5
2844echo "${ECHO_T}none needed" >&6 ;;
2845 *)
2846 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2847echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2848 CC="$CC $ac_cv_prog_cc_stdc" ;;
2849esac
b2dad0e3 2850
ff66d28f
PE
2851# Some people use a C++ compiler to compile C. Since we use `exit',
2852# in C++ we need to declare it. In case someone uses the same compiler
2853# for both compiling C and C++ we need to have the C++ compiler decide
2854# the declaration of exit, since it's the most demanding environment.
2855cat >conftest.$ac_ext <<_ACEOF
2856#ifndef __cplusplus
2857 choke me
2858#endif
2859_ACEOF
2860rm -f conftest.$ac_objext
2861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 2862 (eval $ac_compile) 2>conftest.er1
ff66d28f 2863 ac_status=$?
ec2075e9
BK
2864 grep -v '^ *+' conftest.er1 >conftest.err
2865 rm -f conftest.er1
2866 cat conftest.err >&5
ff66d28f
PE
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); } &&
780028b6
BK
2869 { ac_try='test -z "$ac_c_werror_flag"
2870 || test ! -s conftest.err'
ec2075e9
BK
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 (eval $ac_try) 2>&5
2873 ac_status=$?
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; } &&
2876 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878 (eval $ac_try) 2>&5
2879 ac_status=$?
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; }; then
2882 for ac_declaration in \
ec2075e9 2883 '' \
ff66d28f
PE
2884 'extern "C" void std::exit (int) throw (); using std::exit;' \
2885 'extern "C" void std::exit (int); using std::exit;' \
2886 'extern "C" void exit (int) throw ();' \
2887 'extern "C" void exit (int);' \
2888 'void exit (int);'
2889do
2890 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
2891/* confdefs.h. */
2892_ACEOF
2893cat confdefs.h >>conftest.$ac_ext
2894cat >>conftest.$ac_ext <<_ACEOF
2895/* end confdefs.h. */
158960ba 2896$ac_declaration
ec2075e9 2897#include <stdlib.h>
ff66d28f
PE
2898int
2899main ()
2900{
2901exit (42);
2902 ;
2903 return 0;
2904}
2905_ACEOF
2906rm -f conftest.$ac_objext
2907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 2908 (eval $ac_compile) 2>conftest.er1
ff66d28f 2909 ac_status=$?
ec2075e9
BK
2910 grep -v '^ *+' conftest.er1 >conftest.err
2911 rm -f conftest.er1
2912 cat conftest.err >&5
ff66d28f
PE
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); } &&
780028b6
BK
2915 { ac_try='test -z "$ac_c_werror_flag"
2916 || test ! -s conftest.err'
ec2075e9
BK
2917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918 (eval $ac_try) 2>&5
2919 ac_status=$?
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; } &&
2922 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
2923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924 (eval $ac_try) 2>&5
2925 ac_status=$?
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; }; then
2928 :
2929else
2930 echo "$as_me: failed program was:" >&5
2931sed 's/^/| /' conftest.$ac_ext >&5
b2dad0e3 2932
ff66d28f
PE
2933continue
2934fi
ec2075e9 2935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f 2936 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
2937/* confdefs.h. */
2938_ACEOF
2939cat confdefs.h >>conftest.$ac_ext
2940cat >>conftest.$ac_ext <<_ACEOF
2941/* end confdefs.h. */
2942$ac_declaration
2943int
2944main ()
2945{
2946exit (42);
2947 ;
2948 return 0;
2949}
2950_ACEOF
2951rm -f conftest.$ac_objext
2952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 2953 (eval $ac_compile) 2>conftest.er1
ff66d28f 2954 ac_status=$?
ec2075e9
BK
2955 grep -v '^ *+' conftest.er1 >conftest.err
2956 rm -f conftest.er1
2957 cat conftest.err >&5
ff66d28f
PE
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } &&
780028b6
BK
2960 { ac_try='test -z "$ac_c_werror_flag"
2961 || test ! -s conftest.err'
ec2075e9
BK
2962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963 (eval $ac_try) 2>&5
2964 ac_status=$?
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }; } &&
2967 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
2968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969 (eval $ac_try) 2>&5
2970 ac_status=$?
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }; }; then
2973 break
2974else
2975 echo "$as_me: failed program was:" >&5
2976sed 's/^/| /' conftest.$ac_ext >&5
2977
2978fi
ec2075e9 2979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
2980done
2981rm -f conftest*
2982if test -n "$ac_declaration"; then
2983 echo '#ifdef __cplusplus' >>confdefs.h
2984 echo $ac_declaration >>confdefs.h
2985 echo '#endif' >>confdefs.h
2986fi
b2dad0e3 2987
b2dad0e3 2988else
ff66d28f
PE
2989 echo "$as_me: failed program was:" >&5
2990sed 's/^/| /' conftest.$ac_ext >&5
2991
b2dad0e3 2992fi
ec2075e9 2993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
2994ac_ext=c
2995ac_cpp='$CPP $CPPFLAGS'
2996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999
ff66d28f
PE
3000 ac_ext=cc
3001ac_cpp='$CXXCPP $CPPFLAGS'
3002ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3003ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3004ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3005if test -n "$ac_tool_prefix"; then
3006 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3007 do
3008 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3009set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3010echo "$as_me:$LINENO: checking for $ac_word" >&5
3011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3012if test "${glibcxx_cv_prog_CXX+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3014else
3015 if test -n "$CXX"; then
3016 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
3017else
3018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019for as_dir in $PATH
3020do
3021 IFS=$as_save_IFS
3022 test -z "$as_dir" && as_dir=.
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3025 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 break 2
3028 fi
3029done
3030done
3031
3032fi
3033fi
3034CXX=$glibcxx_cv_prog_CXX
3035if test -n "$CXX"; then
3036 echo "$as_me:$LINENO: result: $CXX" >&5
3037echo "${ECHO_T}$CXX" >&6
b2dad0e3 3038else
ff66d28f
PE
3039 echo "$as_me:$LINENO: result: no" >&5
3040echo "${ECHO_T}no" >&6
b2dad0e3 3041fi
b2dad0e3 3042
ff66d28f
PE
3043 test -n "$CXX" && break
3044 done
3045fi
3046if test -z "$CXX"; then
3047 ac_ct_CXX=$CXX
3048 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3049do
3050 # Extract the first word of "$ac_prog", so it can be a program name with args.
3051set dummy $ac_prog; ac_word=$2
3052echo "$as_me:$LINENO: checking for $ac_word" >&5
3053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3054if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3055 echo $ECHO_N "(cached) $ECHO_C" >&6
3056else
3057 if test -n "$ac_ct_CXX"; then
3058 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3059else
3060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061for as_dir in $PATH
3062do
3063 IFS=$as_save_IFS
3064 test -z "$as_dir" && as_dir=.
3065 for ac_exec_ext in '' $ac_executable_extensions; do
3066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3067 ac_cv_prog_ac_ct_CXX="$ac_prog"
3068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3069 break 2
b2dad0e3 3070 fi
ff66d28f
PE
3071done
3072done
3073
b2dad0e3 3074fi
ff66d28f
PE
3075fi
3076ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3077if test -n "$ac_ct_CXX"; then
3078 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3079echo "${ECHO_T}$ac_ct_CXX" >&6
3080else
3081 echo "$as_me:$LINENO: result: no" >&5
3082echo "${ECHO_T}no" >&6
b2dad0e3
BK
3083fi
3084
ff66d28f
PE
3085 test -n "$ac_ct_CXX" && break
3086done
3087test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3088
3089 CXX=$ac_ct_CXX
3090fi
3091
3092
3093# Provide some information about the compiler.
3094echo "$as_me:$LINENO:" \
3095 "checking for C++ compiler version" >&5
3096ac_compiler=`set X $ac_compile; echo $2`
3097{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3098 (eval $ac_compiler --version </dev/null >&5) 2>&5
3099 ac_status=$?
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }
3102{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3103 (eval $ac_compiler -v </dev/null >&5) 2>&5
3104 ac_status=$?
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }
3107{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3108 (eval $ac_compiler -V </dev/null >&5) 2>&5
3109 ac_status=$?
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }
3112
3113echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3114echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3115if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3116 echo $ECHO_N "(cached) $ECHO_C" >&6
3117else
3118 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3119/* confdefs.h. */
3120_ACEOF
3121cat confdefs.h >>conftest.$ac_ext
3122cat >>conftest.$ac_ext <<_ACEOF
3123/* end confdefs.h. */
3124
3125int
3126main ()
3127{
3128#ifndef __GNUC__
3129 choke me
3130#endif
3131
3132 ;
3133 return 0;
3134}
3135_ACEOF
3136rm -f conftest.$ac_objext
3137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 3138 (eval $ac_compile) 2>conftest.er1
ff66d28f 3139 ac_status=$?
ec2075e9
BK
3140 grep -v '^ *+' conftest.er1 >conftest.err
3141 rm -f conftest.er1
3142 cat conftest.err >&5
ff66d28f
PE
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } &&
780028b6
BK
3145 { ac_try='test -z "$ac_cxx_werror_flag"
3146 || test ! -s conftest.err'
ec2075e9
BK
3147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3148 (eval $ac_try) 2>&5
3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; } &&
3152 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
3153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3154 (eval $ac_try) 2>&5
3155 ac_status=$?
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3158 ac_compiler_gnu=yes
3159else
3160 echo "$as_me: failed program was:" >&5
3161sed 's/^/| /' conftest.$ac_ext >&5
3162
3163ac_compiler_gnu=no
3164fi
ec2075e9 3165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
3166ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3167
3168fi
3169echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3170echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3171GXX=`test $ac_compiler_gnu = yes && echo yes`
3172ac_test_CXXFLAGS=${CXXFLAGS+set}
3173ac_save_CXXFLAGS=$CXXFLAGS
3174CXXFLAGS="-g"
3175echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3176echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3177if test "${ac_cv_prog_cxx_g+set}" = set; then
3178 echo $ECHO_N "(cached) $ECHO_C" >&6
3179else
3180 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3181/* confdefs.h. */
3182_ACEOF
3183cat confdefs.h >>conftest.$ac_ext
3184cat >>conftest.$ac_ext <<_ACEOF
3185/* end confdefs.h. */
3186
3187int
3188main ()
3189{
b2dad0e3 3190
ff66d28f
PE
3191 ;
3192 return 0;
3193}
3194_ACEOF
3195rm -f conftest.$ac_objext
3196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 3197 (eval $ac_compile) 2>conftest.er1
ff66d28f 3198 ac_status=$?
ec2075e9
BK
3199 grep -v '^ *+' conftest.er1 >conftest.err
3200 rm -f conftest.er1
3201 cat conftest.err >&5
ff66d28f
PE
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); } &&
780028b6
BK
3204 { ac_try='test -z "$ac_cxx_werror_flag"
3205 || test ! -s conftest.err'
ec2075e9
BK
3206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207 (eval $ac_try) 2>&5
3208 ac_status=$?
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }; } &&
3211 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
3212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3213 (eval $ac_try) 2>&5
3214 ac_status=$?
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }; }; then
3217 ac_cv_prog_cxx_g=yes
3218else
3219 echo "$as_me: failed program was:" >&5
3220sed 's/^/| /' conftest.$ac_ext >&5
3221
3222ac_cv_prog_cxx_g=no
3223fi
ec2075e9 3224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
3225fi
3226echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3227echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3228if test "$ac_test_CXXFLAGS" = set; then
3229 CXXFLAGS=$ac_save_CXXFLAGS
3230elif test $ac_cv_prog_cxx_g = yes; then
3231 if test "$GXX" = yes; then
3232 CXXFLAGS="-g -O2"
3233 else
3234 CXXFLAGS="-g"
3235 fi
3236else
3237 if test "$GXX" = yes; then
3238 CXXFLAGS="-O2"
3239 else
3240 CXXFLAGS=
5780a46b 3241 fi
ff66d28f
PE
3242fi
3243for ac_declaration in \
ec2075e9 3244 '' \
ff66d28f
PE
3245 'extern "C" void std::exit (int) throw (); using std::exit;' \
3246 'extern "C" void std::exit (int); using std::exit;' \
3247 'extern "C" void exit (int) throw ();' \
3248 'extern "C" void exit (int);' \
3249 'void exit (int);'
3250do
3251 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3252/* confdefs.h. */
3253_ACEOF
3254cat confdefs.h >>conftest.$ac_ext
3255cat >>conftest.$ac_ext <<_ACEOF
3256/* end confdefs.h. */
158960ba 3257$ac_declaration
ec2075e9 3258#include <stdlib.h>
ff66d28f
PE
3259int
3260main ()
3261{
3262exit (42);
3263 ;
3264 return 0;
3265}
3266_ACEOF
3267rm -f conftest.$ac_objext
3268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 3269 (eval $ac_compile) 2>conftest.er1
ff66d28f 3270 ac_status=$?
ec2075e9
BK
3271 grep -v '^ *+' conftest.er1 >conftest.err
3272 rm -f conftest.er1
3273 cat conftest.err >&5
ff66d28f
PE
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); } &&
780028b6
BK
3276 { ac_try='test -z "$ac_cxx_werror_flag"
3277 || test ! -s conftest.err'
ec2075e9
BK
3278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3279 (eval $ac_try) 2>&5
3280 ac_status=$?
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }; } &&
3283 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
3284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285 (eval $ac_try) 2>&5
3286 ac_status=$?
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; }; then
3289 :
3290else
3291 echo "$as_me: failed program was:" >&5
3292sed 's/^/| /' conftest.$ac_ext >&5
b2dad0e3 3293
ff66d28f
PE
3294continue
3295fi
ec2075e9 3296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f 3297 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3298/* confdefs.h. */
3299_ACEOF
3300cat confdefs.h >>conftest.$ac_ext
3301cat >>conftest.$ac_ext <<_ACEOF
3302/* end confdefs.h. */
3303$ac_declaration
3304int
3305main ()
3306{
3307exit (42);
3308 ;
3309 return 0;
3310}
3311_ACEOF
3312rm -f conftest.$ac_objext
3313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 3314 (eval $ac_compile) 2>conftest.er1
ff66d28f 3315 ac_status=$?
ec2075e9
BK
3316 grep -v '^ *+' conftest.er1 >conftest.err
3317 rm -f conftest.er1
3318 cat conftest.err >&5
ff66d28f
PE
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } &&
780028b6
BK
3321 { ac_try='test -z "$ac_cxx_werror_flag"
3322 || test ! -s conftest.err'
ec2075e9
BK
3323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324 (eval $ac_try) 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; } &&
3328 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330 (eval $ac_try) 2>&5
3331 ac_status=$?
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; }; then
3334 break
3335else
3336 echo "$as_me: failed program was:" >&5
3337sed 's/^/| /' conftest.$ac_ext >&5
3338
3339fi
ec2075e9 3340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
3341done
3342rm -f conftest*
3343if test -n "$ac_declaration"; then
3344 echo '#ifdef __cplusplus' >>confdefs.h
3345 echo $ac_declaration >>confdefs.h
3346 echo '#endif' >>confdefs.h
3347fi
3840fa2a 3348
ff66d28f
PE
3349ac_ext=c
3350ac_cpp='$CPP $CPPFLAGS'
3351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3353ac_compiler_gnu=$ac_cv_c_compiler_gnu
16da539b 3354
ff66d28f 3355 CXXFLAGS="$save_CXXFLAGS"
d0941a31
PE
3356
3357
33590f13 3358
f6dda651 3359
ff66d28f
PE
3360 # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't
3361 # available). Uncomment the next line to force a particular method.
3362 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3363echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3364LN_S=$as_ln_s
3365if test "$LN_S" = "ln -s"; then
3366 echo "$as_me:$LINENO: result: yes" >&5
3367echo "${ECHO_T}yes" >&6
2f235b6d 3368else
ff66d28f
PE
3369 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3370echo "${ECHO_T}no, using $LN_S" >&6
2f235b6d 3371fi
2f235b6d 3372
ff66d28f 3373 #LN_S='cp -p'
2f235b6d 3374
ff66d28f
PE
3375 if test -n "$ac_tool_prefix"; then
3376 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3377set dummy ${ac_tool_prefix}as; ac_word=$2
3378echo "$as_me:$LINENO: checking for $ac_word" >&5
3379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3380if test "${ac_cv_prog_AS+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
2f235b6d 3382else
ff66d28f
PE
3383 if test -n "$AS"; then
3384 ac_cv_prog_AS="$AS" # Let the user override the test.
2f235b6d 3385else
ff66d28f
PE
3386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387for as_dir in $PATH
3388do
3389 IFS=$as_save_IFS
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393 ac_cv_prog_AS="${ac_tool_prefix}as"
3394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3395 break 2
3396 fi
3397done
3398done
3399
2f235b6d 3400fi
2f235b6d 3401fi
ff66d28f
PE
3402AS=$ac_cv_prog_AS
3403if test -n "$AS"; then
3404 echo "$as_me:$LINENO: result: $AS" >&5
3405echo "${ECHO_T}$AS" >&6
2f235b6d 3406else
ff66d28f
PE
3407 echo "$as_me:$LINENO: result: no" >&5
3408echo "${ECHO_T}no" >&6
2f235b6d
PE
3409fi
3410
ff66d28f
PE
3411fi
3412if test -z "$ac_cv_prog_AS"; then
3413 ac_ct_AS=$AS
3414 # Extract the first word of "as", so it can be a program name with args.
3415set dummy as; ac_word=$2
3416echo "$as_me:$LINENO: checking for $ac_word" >&5
3417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3418if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3419 echo $ECHO_N "(cached) $ECHO_C" >&6
3420else
3421 if test -n "$ac_ct_AS"; then
3422 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3423else
3424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425for as_dir in $PATH
3426do
3427 IFS=$as_save_IFS
3428 test -z "$as_dir" && as_dir=.
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3431 ac_cv_prog_ac_ct_AS="as"
3432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3433 break 2
3434 fi
3435done
3436done
2f235b6d 3437
ff66d28f
PE
3438fi
3439fi
3440ac_ct_AS=$ac_cv_prog_ac_ct_AS
3441if test -n "$ac_ct_AS"; then
3442 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3443echo "${ECHO_T}$ac_ct_AS" >&6
3444else
3445 echo "$as_me:$LINENO: result: no" >&5
3446echo "${ECHO_T}no" >&6
3447fi
2f235b6d 3448
ff66d28f
PE
3449 AS=$ac_ct_AS
3450else
3451 AS="$ac_cv_prog_AS"
2f235b6d 3452fi
2f235b6d 3453
ff66d28f
PE
3454 if test -n "$ac_tool_prefix"; then
3455 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3456set dummy ${ac_tool_prefix}ar; ac_word=$2
3457echo "$as_me:$LINENO: checking for $ac_word" >&5
3458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3459if test "${ac_cv_prog_AR+set}" = set; then
3460 echo $ECHO_N "(cached) $ECHO_C" >&6
3461else
3462 if test -n "$AR"; then
3463 ac_cv_prog_AR="$AR" # Let the user override the test.
3464else
3465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466for as_dir in $PATH
3467do
3468 IFS=$as_save_IFS
3469 test -z "$as_dir" && as_dir=.
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472 ac_cv_prog_AR="${ac_tool_prefix}ar"
3473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 break 2
3475 fi
3476done
3477done
2f235b6d 3478
ff66d28f
PE
3479fi
3480fi
3481AR=$ac_cv_prog_AR
3482if test -n "$AR"; then
3483 echo "$as_me:$LINENO: result: $AR" >&5
3484echo "${ECHO_T}$AR" >&6
3485else
3486 echo "$as_me:$LINENO: result: no" >&5
3487echo "${ECHO_T}no" >&6
3488fi
2f235b6d 3489
ff66d28f
PE
3490fi
3491if test -z "$ac_cv_prog_AR"; then
3492 ac_ct_AR=$AR
3493 # Extract the first word of "ar", so it can be a program name with args.
3494set dummy ar; ac_word=$2
3495echo "$as_me:$LINENO: checking for $ac_word" >&5
3496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3497if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3499else
3500 if test -n "$ac_ct_AR"; then
3501 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3502else
3503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504for as_dir in $PATH
3505do
3506 IFS=$as_save_IFS
3507 test -z "$as_dir" && as_dir=.
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3510 ac_cv_prog_ac_ct_AR="ar"
3511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 break 2
3513 fi
3514done
3515done
2f235b6d 3516
ff66d28f
PE
3517fi
3518fi
3519ac_ct_AR=$ac_cv_prog_ac_ct_AR
3520if test -n "$ac_ct_AR"; then
3521 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3522echo "${ECHO_T}$ac_ct_AR" >&6
2f235b6d 3523else
ff66d28f
PE
3524 echo "$as_me:$LINENO: result: no" >&5
3525echo "${ECHO_T}no" >&6
2f235b6d
PE
3526fi
3527
ff66d28f 3528 AR=$ac_ct_AR
2f235b6d 3529else
ff66d28f 3530 AR="$ac_cv_prog_AR"
2f235b6d
PE
3531fi
3532
ff66d28f
PE
3533 if test -n "$ac_tool_prefix"; then
3534 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3535set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3536echo "$as_me:$LINENO: checking for $ac_word" >&5
3537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3538if test "${ac_cv_prog_RANLIB+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3540else
3541 if test -n "$RANLIB"; then
3542 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3543else
3544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545for as_dir in $PATH
3546do
3547 IFS=$as_save_IFS
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3551 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3553 break 2
3554 fi
3555done
3556done
3557
3558fi
3559fi
3560RANLIB=$ac_cv_prog_RANLIB
3561if test -n "$RANLIB"; then
3562 echo "$as_me:$LINENO: result: $RANLIB" >&5
3563echo "${ECHO_T}$RANLIB" >&6
2f235b6d 3564else
ff66d28f
PE
3565 echo "$as_me:$LINENO: result: no" >&5
3566echo "${ECHO_T}no" >&6
2f235b6d
PE
3567fi
3568
ff66d28f
PE
3569fi
3570if test -z "$ac_cv_prog_RANLIB"; then
3571 ac_ct_RANLIB=$RANLIB
3572 # Extract the first word of "ranlib", so it can be a program name with args.
3573set dummy ranlib; ac_word=$2
3574echo "$as_me:$LINENO: checking for $ac_word" >&5
3575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3576if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3578else
3579 if test -n "$ac_ct_RANLIB"; then
3580 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2f235b6d 3581else
ff66d28f
PE
3582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583for as_dir in $PATH
3584do
3585 IFS=$as_save_IFS
3586 test -z "$as_dir" && as_dir=.
3587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3589 ac_cv_prog_ac_ct_RANLIB="ranlib"
3590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3591 break 2
3592 fi
3593done
3594done
3595
3596 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3597fi
3598fi
3599ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3600if test -n "$ac_ct_RANLIB"; then
3601 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3602echo "${ECHO_T}$ac_ct_RANLIB" >&6
3603else
3604 echo "$as_me:$LINENO: result: no" >&5
3605echo "${ECHO_T}no" >&6
2f235b6d
PE
3606fi
3607
ff66d28f 3608 RANLIB=$ac_ct_RANLIB
2f235b6d 3609else
ff66d28f 3610 RANLIB="$ac_cv_prog_RANLIB"
2f235b6d
PE
3611fi
3612
3613
ff66d28f
PE
3614 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3615echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3616 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3617if test "${enable_maintainer_mode+set}" = set; then
3618 enableval="$enable_maintainer_mode"
3619 USE_MAINTAINER_MODE=$enableval
3620else
3621 USE_MAINTAINER_MODE=no
3622fi;
3623 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3624echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2f235b6d
PE
3625
3626
ff66d28f
PE
3627if test $USE_MAINTAINER_MODE = yes; then
3628 MAINTAINER_MODE_TRUE=
3629 MAINTAINER_MODE_FALSE='#'
3630else
3631 MAINTAINER_MODE_TRUE='#'
3632 MAINTAINER_MODE_FALSE=
3633fi
3634
3635 MAINT=$MAINTAINER_MODE_TRUE
2f235b6d 3636
5780a46b 3637
f4c79fef 3638
92eabea2
PE
3639 # Set up safe default values for all subsequent AM_CONDITIONAL tests
3640 # which are themselves conditionally expanded.
3641 ## (Right now, this only matters for enable_wchar_t, but nothing prevents
3642 ## other macros from doing the same. This should be automated.) -pme
ff66d28f 3643 need_libmath=no
ff66d28f
PE
3644
3645 # Find platform-specific directories containing configuration info.
3646 # Also possibly modify flags used elsewhere, as needed by the platform.
3647
3648 . $glibcxx_srcdir/configure.host
3649 { echo "$as_me:$LINENO: CPU config directory is $cpu_include_dir" >&5
3650echo "$as_me: CPU config directory is $cpu_include_dir" >&6;}
3651 { echo "$as_me:$LINENO: OS config directory is $os_include_dir" >&5
3652echo "$as_me: OS config directory is $os_include_dir" >&6;}
3653
3654
3655
ff66d28f 3656
b2dad0e3
BK
3657# Check whether --enable-shared or --disable-shared was given.
3658if test "${enable_shared+set}" = set; then
3659 enableval="$enable_shared"
3660 p=${PACKAGE-default}
c21b6f87 3661case $enableval in
b2dad0e3
BK
3662yes) enable_shared=yes ;;
3663no) enable_shared=no ;;
3664*)
3665 enable_shared=no
3666 # Look at the argument we got. We use all the common list separators.
3667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3668 for pkg in $enableval; do
3669 if test "X$pkg" = "X$p"; then
3670 enable_shared=yes
3671 fi
3672 done
3673 IFS="$ac_save_ifs"
3674 ;;
3675esac
3676else
3677 enable_shared=yes
ff66d28f 3678fi;
b2dad0e3
BK
3679# Check whether --enable-static or --disable-static was given.
3680if test "${enable_static+set}" = set; then
3681 enableval="$enable_static"
3682 p=${PACKAGE-default}
c21b6f87 3683case $enableval in
b2dad0e3
BK
3684yes) enable_static=yes ;;
3685no) enable_static=no ;;
3686*)
3687 enable_static=no
3688 # Look at the argument we got. We use all the common list separators.
3689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3690 for pkg in $enableval; do
3691 if test "X$pkg" = "X$p"; then
3692 enable_static=yes
3693 fi
3694 done
3695 IFS="$ac_save_ifs"
3696 ;;
3697esac
3698else
3699 enable_static=yes
ff66d28f 3700fi;
b2dad0e3
BK
3701# Check whether --enable-fast-install or --disable-fast-install was given.
3702if test "${enable_fast_install+set}" = set; then
3703 enableval="$enable_fast_install"
3704 p=${PACKAGE-default}
c21b6f87 3705case $enableval in
b2dad0e3
BK
3706yes) enable_fast_install=yes ;;
3707no) enable_fast_install=no ;;
3708*)
3709 enable_fast_install=no
3710 # Look at the argument we got. We use all the common list separators.
3711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3712 for pkg in $enableval; do
3713 if test "X$pkg" = "X$p"; then
3714 enable_fast_install=yes
3715 fi
3716 done
3717 IFS="$ac_save_ifs"
3718 ;;
3719esac
3720else
3721 enable_fast_install=yes
ff66d28f 3722fi;
b2dad0e3 3723
b2dad0e3
BK
3724# Check whether --with-gnu-ld or --without-gnu-ld was given.
3725if test "${with_gnu_ld+set}" = set; then
3726 withval="$with_gnu_ld"
3727 test "$withval" = no || with_gnu_ld=yes
3728else
3729 with_gnu_ld=no
ff66d28f 3730fi;
b2dad0e3 3731ac_prog=ld
c21b6f87 3732if test "$GCC" = yes; then
b2dad0e3 3733 # Check if gcc -print-prog-name=ld gives a path.
ff66d28f
PE
3734 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3735echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3df64633
AO
3736 case $host in
3737 *-*-mingw*)
3738 # gcc leaves a trailing carriage return which upsets mingw
3739 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3740 *)
3741 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3742 esac
c21b6f87 3743 case $ac_prog in
b2dad0e3 3744 # Accept absolute paths.
3840fa2a 3745 [\\/]* | [A-Za-z]:[\\/]*)
b2dad0e3
BK
3746 re_direlt='/[^/][^/]*/\.\./'
3747 # Canonicalize the path of ld
3748 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3749 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3750 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3751 done
3752 test -z "$LD" && LD="$ac_prog"
3753 ;;
3754 "")
3755 # If it fails, then pretend we aren't using GCC.
3756 ac_prog=ld
3757 ;;
3758 *)
3759 # If it is relative, then search for the first ld in PATH.
3760 with_gnu_ld=unknown
3761 ;;
3762 esac
3763elif test "$with_gnu_ld" = yes; then
ff66d28f
PE
3764 echo "$as_me:$LINENO: checking for GNU ld" >&5
3765echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
b2dad0e3 3766else
ff66d28f
PE
3767 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3768echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
b2dad0e3 3769fi
ff66d28f
PE
3770if test "${lt_cv_path_LD+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3
BK
3772else
3773 if test -z "$LD"; then
3840fa2a 3774 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
b2dad0e3
BK
3775 for ac_dir in $PATH; do
3776 test -z "$ac_dir" && ac_dir=.
3840fa2a 3777 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
c21b6f87 3778 lt_cv_path_LD="$ac_dir/$ac_prog"
b2dad0e3
BK
3779 # Check to see if the program is GNU ld. I'd rather use --version,
3780 # but apparently some GNU ld's only accept -v.
3781 # Break only if it was the GNU/non-GNU ld that we prefer.
c21b6f87 3782 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
b2dad0e3
BK
3783 test "$with_gnu_ld" != no && break
3784 else
3785 test "$with_gnu_ld" != yes && break
3786 fi
3787 fi
3788 done
3789 IFS="$ac_save_ifs"
3790else
c21b6f87 3791 lt_cv_path_LD="$LD" # Let the user override the test with a path.
b2dad0e3
BK
3792fi
3793fi
3794
c21b6f87 3795LD="$lt_cv_path_LD"
b2dad0e3 3796if test -n "$LD"; then
ff66d28f
PE
3797 echo "$as_me:$LINENO: result: $LD" >&5
3798echo "${ECHO_T}$LD" >&6
b2dad0e3 3799else
ff66d28f
PE
3800 echo "$as_me:$LINENO: result: no" >&5
3801echo "${ECHO_T}no" >&6
b2dad0e3 3802fi
ff66d28f
PE
3803test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3804echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3805 { (exit 1); exit 1; }; }
3806echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3807echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3808if test "${lt_cv_prog_gnu_ld+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3
BK
3810else
3811 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3812if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
c21b6f87 3813 lt_cv_prog_gnu_ld=yes
b2dad0e3 3814else
c21b6f87 3815 lt_cv_prog_gnu_ld=no
b2dad0e3
BK
3816fi
3817fi
ff66d28f
PE
3818echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3819echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
c21b6f87 3820with_gnu_ld=$lt_cv_prog_gnu_ld
3df64633 3821
b2dad0e3 3822
ff66d28f
PE
3823echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3824echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3825if test "${lt_cv_ld_reload_flag+set}" = set; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633
AO
3827else
3828 lt_cv_ld_reload_flag='-r'
3829fi
ff66d28f
PE
3830echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3831echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3df64633
AO
3832reload_flag=$lt_cv_ld_reload_flag
3833test -n "$reload_flag" && reload_flag=" $reload_flag"
b2dad0e3 3834
ff66d28f
PE
3835echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3836echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3837if test "${lt_cv_path_NM+set}" = set; then
3838 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3
BK
3839else
3840 if test -n "$NM"; then
3841 # Let the user override the test.
c21b6f87 3842 lt_cv_path_NM="$NM"
b2dad0e3 3843else
3840fa2a 3844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
b2dad0e3
BK
3845 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3846 test -z "$ac_dir" && ac_dir=.
3df64633
AO
3847 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3848 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
b2dad0e3
BK
3849 # Check to see if the nm accepts a BSD-compat flag.
3850 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3851 # nm: unknown option "B" ignored
6d93bca4
AO
3852 # Tru64's nm complains that /dev/null is an invalid object file
3853 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
c21b6f87 3854 lt_cv_path_NM="$tmp_nm -B"
b2dad0e3 3855 break
3df64633 3856 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
c21b6f87 3857 lt_cv_path_NM="$tmp_nm -p"
b2dad0e3
BK
3858 break
3859 else
c21b6f87 3860 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
b2dad0e3
BK
3861 continue # so that we can try to find one that supports BSD flags
3862 fi
3863 fi
3864 done
3865 IFS="$ac_save_ifs"
c21b6f87 3866 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
b2dad0e3
BK
3867fi
3868fi
3869
c21b6f87 3870NM="$lt_cv_path_NM"
ff66d28f
PE
3871echo "$as_me:$LINENO: result: $NM" >&5
3872echo "${ECHO_T}$NM" >&6
b2dad0e3 3873
ff66d28f
PE
3874echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3875echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3876if test "${lt_cv_deplibs_check_method+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 3878else
3dd7094e 3879 lt_cv_file_magic_cmd='$MAGIC_CMD'
3df64633
AO
3880lt_cv_file_magic_test_file=
3881lt_cv_deplibs_check_method='unknown'
3882# Need to set the preceding variable on all platforms that support
3883# interlibrary dependencies.
3884# 'none' -- dependencies not supported.
3885# `unknown' -- same as none, but documents that we really don't know.
3886# 'pass_all' -- all dependencies passed with no checks.
3887# 'test_compile' -- check by making test program.
3888# 'file_magic [regex]' -- check by looking for files in library path
3889# which responds to the $file_magic_cmd with a given egrep regex.
3890# If you have `file' or equivalent on your system and you're not sure
3891# whether `pass_all' will *always* work, you probably want this one.
3892
c21b6f87
PE
3893case $host_os in
3894aix*)
3df64633
AO
3895 lt_cv_deplibs_check_method=pass_all
3896 ;;
3897
3898beos*)
3899 lt_cv_deplibs_check_method=pass_all
3900 ;;
3901
3902bsdi4*)
c21b6f87
PE
3903 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3904 lt_cv_file_magic_cmd='/usr/bin/file -L'
3df64633
AO
3905 lt_cv_file_magic_test_file=/shlib/libc.so
3906 ;;
3907
3dd7094e 3908cygwin* | mingw* |pw32*)
3df64633 3909 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3dd7094e 3910 lt_cv_file_magic_cmd='$OBJDUMP -f'
3df64633
AO
3911 ;;
3912
c21b6f87 3913darwin* | rhapsody*)
29d4adf4 3914 # this will be overwritten by pass_all, but leave it in just in case
c21b6f87 3915 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
47e982b2
BK
3916 lt_cv_file_magic_cmd='/usr/bin/file -L'
3917 case "$host_os" in
3918 rhapsody* | darwin1.012)
3919 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3920 ;;
3921 *) # Darwin 1.3 on
3922 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3923 ;;
3924 esac
29d4adf4 3925 lt_cv_deplibs_check_method=pass_all
c21b6f87
PE
3926 ;;
3927
dc7c62ae 3928freebsd* | kfreebsd*-gnu)
3df64633 3929 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
c21b6f87 3930 case $host_cpu in
3df64633 3931 i*86 )
6d93bca4
AO
3932 # Not sure whether the presence of OpenBSD here was a mistake.
3933 # Let's accept both of them until this is cleared up.
c21b6f87
PE
3934 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3935 lt_cv_file_magic_cmd=/usr/bin/file
3df64633
AO
3936 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3937 ;;
3938 esac
3939 else
3940 lt_cv_deplibs_check_method=pass_all
3941 fi
3942 ;;
3943
3944gnu*)
3945 lt_cv_deplibs_check_method=pass_all
3946 ;;
3947
c21b6f87 3948hpux10.20*|hpux11*)
38cca750
BK
3949 case $host_cpu in
3950 hppa*)
3951 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3952 lt_cv_file_magic_cmd=/usr/bin/file
3953 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3954 ;;
3955 ia64*)
3956 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3957 lt_cv_file_magic_cmd=/usr/bin/file
3958 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3959 ;;
3960 esac
3df64633
AO
3961 ;;
3962
3963irix5* | irix6*)
c21b6f87 3964 case $host_os in
3df64633
AO
3965 irix5*)
3966 # this will be overridden with pass_all, but let us keep it just in case
3967 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3968 ;;
3969 *)
c21b6f87 3970 case $LD in
3df64633
AO
3971 *-32|*"-32 ") libmagic=32-bit;;
3972 *-n32|*"-n32 ") libmagic=N32;;
3973 *-64|*"-64 ") libmagic=64-bit;;
3974 *) libmagic=never-match;;
3975 esac
3976 # this will be overridden with pass_all, but let us keep it just in case
c21b6f87
PE
3977 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3978 ;;
3df64633
AO
3979 esac
3980 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3981 lt_cv_deplibs_check_method=pass_all
3982 ;;
3983
3984# This must be Linux ELF.
6d93bca4 3985linux-gnu*)
2c92e90f 3986 lt_cv_deplibs_check_method=pass_all
3df64633
AO
3987 ;;
3988
dc7c62ae 3989netbsd* | knetbsd*-gnu)
c21b6f87 3990 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
47e982b2 3991 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3df64633 3992 else
47e982b2 3993 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3df64633 3994 fi
c21b6f87
PE
3995 ;;
3996
3997newsos6)
3998 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3999 lt_cv_file_magic_cmd=/usr/bin/file
4000 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3df64633
AO
4001 ;;
4002
4003osf3* | osf4* | osf5*)
4004 # this will be overridden with pass_all, but let us keep it just in case
4005 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4006 lt_cv_file_magic_test_file=/shlib/libc.so
4007 lt_cv_deplibs_check_method=pass_all
4008 ;;
4009
4010sco3.2v5*)
4011 lt_cv_deplibs_check_method=pass_all
4012 ;;
4013
4014solaris*)
4015 lt_cv_deplibs_check_method=pass_all
4016 lt_cv_file_magic_test_file=/lib/libc.so
4017 ;;
4018
bfa1e6b1
BK
4019sysv5uw[78]* | sysv4*uw2*)
4020 lt_cv_deplibs_check_method=pass_all
4021 ;;
4022
3df64633 4023sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
c21b6f87 4024 case $host_vendor in
3df64633
AO
4025 ncr)
4026 lt_cv_deplibs_check_method=pass_all
4027 ;;
4028 motorola)
c21b6f87
PE
4029 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4030 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3df64633
AO
4031 ;;
4032 esac
4033 ;;
4034esac
4035
4036fi
ff66d28f
PE
4037echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4038echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3df64633
AO
4039file_magic_cmd=$lt_cv_file_magic_cmd
4040deplibs_check_method=$lt_cv_deplibs_check_method
4041
3df64633 4042
ff66d28f 4043
3df64633 4044
ec0d7421 4045
3df64633
AO
4046# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4047
4048# Only perform the check for file, if the check method requires it
c21b6f87 4049case $deplibs_check_method in
3df64633 4050file_magic*)
3dd7094e 4051 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
ff66d28f
PE
4052 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4053echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4054if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 4056else
c21b6f87 4057 case $MAGIC_CMD in
3df64633 4058 /*)
3dd7094e 4059 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3df64633
AO
4060 ;;
4061 ?:/*)
3dd7094e 4062 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3df64633
AO
4063 ;;
4064 *)
3dd7094e 4065 ac_save_MAGIC_CMD="$MAGIC_CMD"
3df64633
AO
4066 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4067 ac_dummy="/usr/bin:$PATH"
4068 for ac_dir in $ac_dummy; do
4069 test -z "$ac_dir" && ac_dir=.
4070 if test -f $ac_dir/${ac_tool_prefix}file; then
3dd7094e 4071 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3df64633 4072 if test -n "$file_magic_test_file"; then
c21b6f87 4073 case $deplibs_check_method in
3df64633
AO
4074 "file_magic "*)
4075 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3dd7094e 4076 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3df64633
AO
4077 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4078 egrep "$file_magic_regex" > /dev/null; then
4079 :
4080 else
4081 cat <<EOF 1>&2
4082
4083*** Warning: the command libtool uses to detect shared libraries,
4084*** $file_magic_cmd, produces output that libtool cannot recognize.
4085*** The result is that libtool may fail to recognize shared libraries
4086*** as such. This will affect the creation of libtool libraries that
4087*** depend on shared libraries, but programs linked with such libtool
4088*** libraries will work regardless of this problem. Nevertheless, you
4089*** may want to report the problem to your system manager and/or to
4090*** bug-libtool@gnu.org
4091
4092EOF
4093 fi ;;
4094 esac
4095 fi
4096 break
4097 fi
4098 done
4099 IFS="$ac_save_ifs"
3dd7094e 4100 MAGIC_CMD="$ac_save_MAGIC_CMD"
3df64633
AO
4101 ;;
4102esac
4103fi
4104
3dd7094e
AO
4105MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4106if test -n "$MAGIC_CMD"; then
ff66d28f
PE
4107 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4108echo "${ECHO_T}$MAGIC_CMD" >&6
3df64633 4109else
ff66d28f
PE
4110 echo "$as_me:$LINENO: result: no" >&5
4111echo "${ECHO_T}no" >&6
3df64633
AO
4112fi
4113
3dd7094e 4114if test -z "$lt_cv_path_MAGIC_CMD"; then
3df64633 4115 if test -n "$ac_tool_prefix"; then
ff66d28f
PE
4116 echo "$as_me:$LINENO: checking for file" >&5
4117echo $ECHO_N "checking for file... $ECHO_C" >&6
4118if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 4120else
c21b6f87 4121 case $MAGIC_CMD in
3df64633 4122 /*)
3dd7094e 4123 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3df64633
AO
4124 ;;
4125 ?:/*)
3dd7094e 4126 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3df64633
AO
4127 ;;
4128 *)
3dd7094e 4129 ac_save_MAGIC_CMD="$MAGIC_CMD"
3df64633
AO
4130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4131 ac_dummy="/usr/bin:$PATH"
4132 for ac_dir in $ac_dummy; do
4133 test -z "$ac_dir" && ac_dir=.
4134 if test -f $ac_dir/file; then
3dd7094e 4135 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3df64633 4136 if test -n "$file_magic_test_file"; then
c21b6f87 4137 case $deplibs_check_method in
3df64633
AO
4138 "file_magic "*)
4139 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3dd7094e 4140 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3df64633
AO
4141 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4142 egrep "$file_magic_regex" > /dev/null; then
4143 :
4144 else
4145 cat <<EOF 1>&2
4146
4147*** Warning: the command libtool uses to detect shared libraries,
4148*** $file_magic_cmd, produces output that libtool cannot recognize.
4149*** The result is that libtool may fail to recognize shared libraries
4150*** as such. This will affect the creation of libtool libraries that
4151*** depend on shared libraries, but programs linked with such libtool
4152*** libraries will work regardless of this problem. Nevertheless, you
4153*** may want to report the problem to your system manager and/or to
4154*** bug-libtool@gnu.org
4155
4156EOF
4157 fi ;;
4158 esac
4159 fi
4160 break
4161 fi
4162 done
4163 IFS="$ac_save_ifs"
3dd7094e 4164 MAGIC_CMD="$ac_save_MAGIC_CMD"
3df64633
AO
4165 ;;
4166esac
4167fi
4168
3dd7094e
AO
4169MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4170if test -n "$MAGIC_CMD"; then
ff66d28f
PE
4171 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4172echo "${ECHO_T}$MAGIC_CMD" >&6
3df64633 4173else
ff66d28f
PE
4174 echo "$as_me:$LINENO: result: no" >&5
4175echo "${ECHO_T}no" >&6
3df64633
AO
4176fi
4177
4178 else
3dd7094e 4179 MAGIC_CMD=:
3df64633
AO
4180 fi
4181fi
4182
4183 fi
4184 ;;
4185esac
4186
ff66d28f
PE
4187if test -n "$ac_tool_prefix"; then
4188 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3df64633 4189set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ff66d28f
PE
4190echo "$as_me:$LINENO: checking for $ac_word" >&5
4191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4192if test "${ac_cv_prog_RANLIB+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633
AO
4194else
4195 if test -n "$RANLIB"; then
4196 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4197else
ff66d28f
PE
4198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199for as_dir in $PATH
4200do
4201 IFS=$as_save_IFS
4202 test -z "$as_dir" && as_dir=.
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4205 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4207 break 2
4208 fi
4209done
4210done
4211
3df64633
AO
4212fi
4213fi
ff66d28f 4214RANLIB=$ac_cv_prog_RANLIB
3df64633 4215if test -n "$RANLIB"; then
ff66d28f
PE
4216 echo "$as_me:$LINENO: result: $RANLIB" >&5
4217echo "${ECHO_T}$RANLIB" >&6
3df64633 4218else
ff66d28f
PE
4219 echo "$as_me:$LINENO: result: no" >&5
4220echo "${ECHO_T}no" >&6
3df64633
AO
4221fi
4222
ff66d28f 4223fi
3df64633 4224if test -z "$ac_cv_prog_RANLIB"; then
ff66d28f 4225 ac_ct_RANLIB=$RANLIB
3df64633
AO
4226 # Extract the first word of "ranlib", so it can be a program name with args.
4227set dummy ranlib; ac_word=$2
ff66d28f
PE
4228echo "$as_me:$LINENO: checking for $ac_word" >&5
4229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4230if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 4232else
ff66d28f
PE
4233 if test -n "$ac_ct_RANLIB"; then
4234 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3df64633 4235else
ff66d28f
PE
4236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237for as_dir in $PATH
4238do
4239 IFS=$as_save_IFS
4240 test -z "$as_dir" && as_dir=.
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4243 ac_cv_prog_ac_ct_RANLIB="ranlib"
4244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4245 break 2
4246 fi
4247done
4248done
4249
4250 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3df64633
AO
4251fi
4252fi
ff66d28f
PE
4253ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4254if test -n "$ac_ct_RANLIB"; then
4255 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4256echo "${ECHO_T}$ac_ct_RANLIB" >&6
3df64633 4257else
ff66d28f
PE
4258 echo "$as_me:$LINENO: result: no" >&5
4259echo "${ECHO_T}no" >&6
3df64633
AO
4260fi
4261
ff66d28f 4262 RANLIB=$ac_ct_RANLIB
3df64633 4263else
ff66d28f 4264 RANLIB="$ac_cv_prog_RANLIB"
3df64633
AO
4265fi
4266
ff66d28f
PE
4267if test -n "$ac_tool_prefix"; then
4268 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3df64633 4269set dummy ${ac_tool_prefix}strip; ac_word=$2
ff66d28f
PE
4270echo "$as_me:$LINENO: checking for $ac_word" >&5
4271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4272if test "${ac_cv_prog_STRIP+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633
AO
4274else
4275 if test -n "$STRIP"; then
4276 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4277else
ff66d28f
PE
4278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279for as_dir in $PATH
4280do
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4285 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 break 2
4288 fi
4289done
4290done
4291
3df64633
AO
4292fi
4293fi
ff66d28f 4294STRIP=$ac_cv_prog_STRIP
3df64633 4295if test -n "$STRIP"; then
ff66d28f
PE
4296 echo "$as_me:$LINENO: result: $STRIP" >&5
4297echo "${ECHO_T}$STRIP" >&6
3df64633 4298else
ff66d28f
PE
4299 echo "$as_me:$LINENO: result: no" >&5
4300echo "${ECHO_T}no" >&6
3df64633
AO
4301fi
4302
ff66d28f 4303fi
3df64633 4304if test -z "$ac_cv_prog_STRIP"; then
ff66d28f 4305 ac_ct_STRIP=$STRIP
3df64633
AO
4306 # Extract the first word of "strip", so it can be a program name with args.
4307set dummy strip; ac_word=$2
ff66d28f
PE
4308echo "$as_me:$LINENO: checking for $ac_word" >&5
4309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4310if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 4312else
ff66d28f
PE
4313 if test -n "$ac_ct_STRIP"; then
4314 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3df64633 4315else
ff66d28f
PE
4316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317for as_dir in $PATH
4318do
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4323 ac_cv_prog_ac_ct_STRIP="strip"
4324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4325 break 2
4326 fi
4327done
4328done
4329
4330 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3df64633
AO
4331fi
4332fi
ff66d28f
PE
4333ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4334if test -n "$ac_ct_STRIP"; then
4335 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4336echo "${ECHO_T}$ac_ct_STRIP" >&6
3df64633 4337else
ff66d28f
PE
4338 echo "$as_me:$LINENO: result: no" >&5
4339echo "${ECHO_T}no" >&6
3df64633
AO
4340fi
4341
ff66d28f 4342 STRIP=$ac_ct_STRIP
3df64633 4343else
ff66d28f 4344 STRIP="$ac_cv_prog_STRIP"
3df64633
AO
4345fi
4346
b2dad0e3 4347
b2dad0e3
BK
4348# Check for any special flags to pass to ltconfig.
4349libtool_flags="--cache-file=$cache_file"
4350test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4351test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4352test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
c21b6f87
PE
4353test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4354test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
ff66d28f 4355
3840fa2a
BK
4356
4357# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4358if test "${enable_libtool_lock+set}" = set; then
4359 enableval="$enable_libtool_lock"
3840fa2a 4360
ff66d28f 4361fi;
3840fa2a
BK
4362test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4363test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
b2dad0e3 4364
ff66d28f 4365
3df64633
AO
4366# Check whether --with-pic or --without-pic was given.
4367if test "${with_pic+set}" = set; then
4368 withval="$with_pic"
4369 pic_mode="$withval"
4370else
4371 pic_mode=default
ff66d28f 4372fi;
3df64633
AO
4373test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4374test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4375
b2dad0e3
BK
4376# Some flags need to be propagated to the compiler or linker for good
4377# libtool support.
c21b6f87 4378case $host in
b2dad0e3
BK
4379*-*-irix6*)
4380 # Find out which ABI we are using.
3a24bf5d 4381 echo '#line 4381 "configure"' > conftest.$ac_ext
ff66d28f
PE
4382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4383 (eval $ac_compile) 2>&5
4384 ac_status=$?
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; then
3a15abf1
BK
4387 if test "$lt_cv_prog_gnu_ld" = yes; then
4388 case `/usr/bin/file conftest.$ac_objext` in
4389 *32-bit*)
4390 LD="${LD-ld} -melf32bsmip"
4391 ;;
4392 *N32*)
4393 LD="${LD-ld} -melf32bmipn32"
4394 ;;
4395 *64-bit*)
4396 LD="${LD-ld} -melf64bmip"
4397 ;;
4398 esac
4399 else
c21b6f87 4400 case `/usr/bin/file conftest.$ac_objext` in
b2dad0e3
BK
4401 *32-bit*)
4402 LD="${LD-ld} -32"
4403 ;;
4404 *N32*)
4405 LD="${LD-ld} -n32"
4406 ;;
4407 *64-bit*)
4408 LD="${LD-ld} -64"
4409 ;;
4410 esac
3a15abf1 4411 fi
b2dad0e3
BK
4412 fi
4413 rm -rf conftest*
4414 ;;
4415
38cca750
BK
4416ia64-*-hpux*)
4417 # Find out which ABI we are using.
4418 echo 'int i;' > conftest.$ac_ext
ff66d28f
PE
4419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420 (eval $ac_compile) 2>&5
4421 ac_status=$?
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }; then
38cca750
BK
4424 case "`/usr/bin/file conftest.o`" in
4425 *ELF-32*)
4426 HPUX_IA64_MODE="32"
4427 ;;
4428 *ELF-64*)
4429 HPUX_IA64_MODE="64"
4430 ;;
4431 esac
4432 fi
4433 rm -rf conftest*
4434 ;;
4435
162c7cd9
SW
4436x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4437 # Find out which ABI we are using.
4438 echo 'int i;' > conftest.$ac_ext
ff66d28f
PE
4439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4440 (eval $ac_compile) 2>&5
4441 ac_status=$?
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); }; then
162c7cd9
SW
4444 case "`/usr/bin/file conftest.o`" in
4445 *32-bit*)
4446 case $host in
4447 x86_64-*linux*)
4448 LD="${LD-ld} -m elf_i386"
4449 ;;
e517f636 4450 ppc64-*linux*|powerpc64-*linux*)
162c7cd9
SW
4451 LD="${LD-ld} -m elf32ppclinux"
4452 ;;
4453 s390x-*linux*)
4454 LD="${LD-ld} -m elf_s390"
4455 ;;
4456 sparc64-*linux*)
4457 LD="${LD-ld} -m elf32_sparc"
4458 ;;
4459 esac
4460 ;;
4461 *64-bit*)
4462 case $host in
4463 x86_64-*linux*)
4464 LD="${LD-ld} -m elf_x86_64"
4465 ;;
4466 ppc*-*linux*|powerpc*-*linux*)
4467 LD="${LD-ld} -m elf64ppc"
4468 ;;
4469 s390*-*linux*)
4470 LD="${LD-ld} -m elf64_s390"
4471 ;;
4472 sparc*-*linux*)
4473 LD="${LD-ld} -m elf64_sparc"
4474 ;;
4475 esac
4476 ;;
4477 esac
4478 fi
4479 rm -rf conftest*
4480 ;;
4481
b2dad0e3
BK
4482*-*-sco3.2v5*)
4483 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4484 SAVE_CFLAGS="$CFLAGS"
4485 CFLAGS="$CFLAGS -belf"
ff66d28f
PE
4486 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4487echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4488if test "${lt_cv_cc_needs_belf+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 4490else
ff66d28f
PE
4491
4492
3df64633 4493 ac_ext=c
3df64633 4494ac_cpp='$CPP $CPPFLAGS'
ff66d28f
PE
4495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4497ac_compiler_gnu=$ac_cv_c_compiler_gnu
4498
3a24bf5d
KC
4499 if test x$gcc_no_link = xyes; then
4500 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4501echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4502 { (exit 1); exit 1; }; }
4503fi
4504cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
4505/* confdefs.h. */
4506_ACEOF
4507cat confdefs.h >>conftest.$ac_ext
4508cat >>conftest.$ac_ext <<_ACEOF
4509/* end confdefs.h. */
3df64633 4510
ff66d28f
PE
4511int
4512main ()
4513{
b2dad0e3 4514
ff66d28f
PE
4515 ;
4516 return 0;
4517}
4518_ACEOF
4519rm -f conftest.$ac_objext conftest$ac_exeext
4520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ec2075e9 4521 (eval $ac_link) 2>conftest.er1
ff66d28f 4522 ac_status=$?
ec2075e9
BK
4523 grep -v '^ *+' conftest.er1 >conftest.err
4524 rm -f conftest.er1
4525 cat conftest.err >&5
ff66d28f
PE
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } &&
780028b6
BK
4528 { ac_try='test -z "$ac_c_werror_flag"
4529 || test ! -s conftest.err'
ec2075e9
BK
4530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531 (eval $ac_try) 2>&5
4532 ac_status=$?
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; } &&
4535 { ac_try='test -s conftest$ac_exeext'
ff66d28f
PE
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 (eval $ac_try) 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; }; then
b2dad0e3
BK
4541 lt_cv_cc_needs_belf=yes
4542else
ff66d28f
PE
4543 echo "$as_me: failed program was:" >&5
4544sed 's/^/| /' conftest.$ac_ext >&5
4545
4546lt_cv_cc_needs_belf=no
b2dad0e3 4547fi
ec2075e9
BK
4548rm -f conftest.err conftest.$ac_objext \
4549 conftest$ac_exeext conftest.$ac_ext
3df64633 4550 ac_ext=c
3df64633 4551ac_cpp='$CPP $CPPFLAGS'
ff66d28f
PE
4552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4554ac_compiler_gnu=$ac_cv_c_compiler_gnu
3df64633 4555
b2dad0e3 4556fi
ff66d28f
PE
4557echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4558echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
b2dad0e3
BK
4559 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4560 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4561 CFLAGS="$SAVE_CFLAGS"
4562 fi
4563 ;;
4564
4565
4566esac
4567
4568
4569# Save cache, so that ltconfig can load it
ff66d28f 4570cat >confcache <<\_ACEOF
b2dad0e3
BK
4571# This file is a shell script that caches the results of configure
4572# tests run on this system so they can be shared between configure
ff66d28f
PE
4573# scripts and configure runs, see configure's option --config-cache.
4574# It is not useful on other systems. If it contains results you don't
4575# want to keep, you may remove or edit it.
b2dad0e3 4576#
ff66d28f
PE
4577# config.status only pays attention to the cache file if you give it
4578# the --recheck option to rerun configure.
b2dad0e3 4579#
ff66d28f
PE
4580# `ac_cv_env_foo' variables (set or unset) will be overridden when
4581# loading this file, other *unset* `ac_cv_foo' will be assigned the
4582# following values.
4583
4584_ACEOF
4585
b2dad0e3
BK
4586# The following way of writing the cache mishandles newlines in values,
4587# but we know of no workaround that is simple, portable, and efficient.
4588# So, don't put newlines in cache variables' values.
4589# Ultrix sh set writes to stderr and can't be redirected directly,
4590# and sets the high bit in the cache file unless we assign to the vars.
ff66d28f
PE
4591{
4592 (set) 2>&1 |
4593 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4594 *ac_space=\ *)
4595 # `set' does not quote correctly, so add quotes (double-quote
4596 # substitution turns \\\\ into \\, and sed turns \\ into \).
4597 sed -n \
ec2075e9
BK
4598 "s/'/'\\\\''/g;
4599 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
ff66d28f
PE
4600 ;;
4601 *)
4602 # `set' quotes correctly as required by POSIX, so do not add quotes.
4603 sed -n \
ec2075e9 4604 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
ff66d28f
PE
4605 ;;
4606 esac;
4607} |
4608 sed '
4609 t clear
4610 : clear
4611 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4612 t end
4613 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4614 : end' >>confcache
4615if diff $cache_file confcache >/dev/null 2>&1; then :; else
b2dad0e3 4616 if test -w $cache_file; then
ff66d28f
PE
4617 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4618 cat confcache >$cache_file
b2dad0e3
BK
4619 else
4620 echo "not updating unwritable cache $cache_file"
4621 fi
4622fi
4623rm -f confcache
4624
b2dad0e3 4625# Actually configure libtool. ac_aux_dir is where install-sh is found.
3df64633 4626AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3dd7094e 4627MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3df64633
AO
4628LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4629AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4630objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4631deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
b2dad0e3 4632${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3df64633 4633$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
ff66d28f
PE
4634|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4635echo "$as_me: error: libtool configure failed" >&2;}
4636 { (exit 1); exit 1; }; }
b2dad0e3
BK
4637
4638# Reload cache, that may have been modified by ltconfig
4639if test -r "$cache_file"; then
ff66d28f
PE
4640 # Some versions of bash will fail to source /dev/null (special
4641 # files actually), so we avoid doing that.
4642 if test -f "$cache_file"; then
4643 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4644echo "$as_me: loading cache $cache_file" >&6;}
4645 case $cache_file in
4646 [\\/]* | ?:[\\/]* ) . $cache_file;;
4647 *) . ./$cache_file;;
4648 esac
4649 fi
b2dad0e3 4650else
ff66d28f
PE
4651 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4652echo "$as_me: creating cache $cache_file" >&6;}
4653 >$cache_file
b2dad0e3
BK
4654fi
4655
4656
4657# This can be used to rebuild libtool when needed
3df64633 4658LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
b2dad0e3
BK
4659
4660# Always use our own libtool.
4661LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4662
4663# Redirect the config.log output again, so that the ltconfig log is not
4664# clobbered by the next message.
4665exec 5>>./config.log
4666
ff66d28f
PE
4667ac_ext=cc
4668ac_cpp='$CXXCPP $CPPFLAGS'
4669ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4670ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4671ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4672echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4673echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4674if test -z "$CXXCPP"; then
4675 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4677else
4678 # Double quotes because CXXCPP needs to be expanded
4679 for CXXCPP in "$CXX -E" "/lib/cpp"
4680 do
4681 ac_preproc_ok=false
4682for ac_cxx_preproc_warn_flag in '' yes
4683do
4684 # Use a header file that comes with gcc, so configuring glibc
4685 # with a fresh cross-compiler works.
4686 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4687 # <limits.h> exists even on freestanding compilers.
4688 # On the NeXT, cc -E runs the code through the compiler's parser,
4689 # not just through cpp. "Syntax error" is here to catch this case.
4690 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
4691/* confdefs.h. */
4692_ACEOF
4693cat confdefs.h >>conftest.$ac_ext
4694cat >>conftest.$ac_ext <<_ACEOF
4695/* end confdefs.h. */
4696#ifdef __STDC__
4697# include <limits.h>
4698#else
4699# include <assert.h>
4700#endif
ec2075e9 4701 Syntax error
ff66d28f
PE
4702_ACEOF
4703if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4705 ac_status=$?
4706 grep -v '^ *+' conftest.er1 >conftest.err
4707 rm -f conftest.er1
4708 cat conftest.err >&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } >/dev/null; then
4711 if test -s conftest.err; then
4712 ac_cpp_err=$ac_cxx_preproc_warn_flag
ec2075e9 4713 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
ff66d28f
PE
4714 else
4715 ac_cpp_err=
4716 fi
4717else
4718 ac_cpp_err=yes
4719fi
4720if test -z "$ac_cpp_err"; then
4721 :
4722else
4723 echo "$as_me: failed program was:" >&5
4724sed 's/^/| /' conftest.$ac_ext >&5
4725
4726 # Broken: fails on valid input.
4727continue
4728fi
4729rm -f conftest.err conftest.$ac_ext
4730
4731 # OK, works on sane cases. Now check whether non-existent headers
4732 # can be detected and how.
4733 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
4734/* confdefs.h. */
4735_ACEOF
4736cat confdefs.h >>conftest.$ac_ext
4737cat >>conftest.$ac_ext <<_ACEOF
4738/* end confdefs.h. */
4739#include <ac_nonexistent.h>
4740_ACEOF
4741if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4743 ac_status=$?
4744 grep -v '^ *+' conftest.er1 >conftest.err
4745 rm -f conftest.er1
4746 cat conftest.err >&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } >/dev/null; then
4749 if test -s conftest.err; then
4750 ac_cpp_err=$ac_cxx_preproc_warn_flag
ec2075e9 4751 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
ff66d28f
PE
4752 else
4753 ac_cpp_err=
4754 fi
4755else
4756 ac_cpp_err=yes
4757fi
4758if test -z "$ac_cpp_err"; then
4759 # Broken: success on invalid input.
4760continue
4761else
4762 echo "$as_me: failed program was:" >&5
4763sed 's/^/| /' conftest.$ac_ext >&5
4764
4765 # Passes both tests.
4766ac_preproc_ok=:
4767break
4768fi
4769rm -f conftest.err conftest.$ac_ext
4770
4771done
4772# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4773rm -f conftest.err conftest.$ac_ext
4774if $ac_preproc_ok; then
4775 break
4776fi
4777
4778 done
4779 ac_cv_prog_CXXCPP=$CXXCPP
4780
4781fi
4782 CXXCPP=$ac_cv_prog_CXXCPP
4783else
4784 ac_cv_prog_CXXCPP=$CXXCPP
4785fi
4786echo "$as_me:$LINENO: result: $CXXCPP" >&5
4787echo "${ECHO_T}$CXXCPP" >&6
4788ac_preproc_ok=false
4789for ac_cxx_preproc_warn_flag in '' yes
4790do
4791 # Use a header file that comes with gcc, so configuring glibc
4792 # with a fresh cross-compiler works.
4793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4794 # <limits.h> exists even on freestanding compilers.
4795 # On the NeXT, cc -E runs the code through the compiler's parser,
4796 # not just through cpp. "Syntax error" is here to catch this case.
4797 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
4798/* confdefs.h. */
4799_ACEOF
4800cat confdefs.h >>conftest.$ac_ext
4801cat >>conftest.$ac_ext <<_ACEOF
4802/* end confdefs.h. */
4803#ifdef __STDC__
4804# include <limits.h>
4805#else
4806# include <assert.h>
4807#endif
ec2075e9 4808 Syntax error
ff66d28f
PE
4809_ACEOF
4810if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4812 ac_status=$?
4813 grep -v '^ *+' conftest.er1 >conftest.err
4814 rm -f conftest.er1
4815 cat conftest.err >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); } >/dev/null; then
4818 if test -s conftest.err; then
4819 ac_cpp_err=$ac_cxx_preproc_warn_flag
ec2075e9 4820 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
ff66d28f
PE
4821 else
4822 ac_cpp_err=
4823 fi
4824else
4825 ac_cpp_err=yes
4826fi
4827if test -z "$ac_cpp_err"; then
4828 :
4829else
4830 echo "$as_me: failed program was:" >&5
4831sed 's/^/| /' conftest.$ac_ext >&5
4832
4833 # Broken: fails on valid input.
4834continue
4835fi
4836rm -f conftest.err conftest.$ac_ext
4837
4838 # OK, works on sane cases. Now check whether non-existent headers
4839 # can be detected and how.
4840 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
4841/* confdefs.h. */
4842_ACEOF
4843cat confdefs.h >>conftest.$ac_ext
4844cat >>conftest.$ac_ext <<_ACEOF
4845/* end confdefs.h. */
4846#include <ac_nonexistent.h>
4847_ACEOF
4848if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4850 ac_status=$?
4851 grep -v '^ *+' conftest.er1 >conftest.err
4852 rm -f conftest.er1
4853 cat conftest.err >&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); } >/dev/null; then
4856 if test -s conftest.err; then
4857 ac_cpp_err=$ac_cxx_preproc_warn_flag
ec2075e9 4858 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
ff66d28f
PE
4859 else
4860 ac_cpp_err=
4861 fi
4862else
4863 ac_cpp_err=yes
4864fi
4865if test -z "$ac_cpp_err"; then
4866 # Broken: success on invalid input.
4867continue
4868else
4869 echo "$as_me: failed program was:" >&5
4870sed 's/^/| /' conftest.$ac_ext >&5
4871
4872 # Passes both tests.
4873ac_preproc_ok=:
4874break
4875fi
4876rm -f conftest.err conftest.$ac_ext
4877
4878done
4879# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4880rm -f conftest.err conftest.$ac_ext
4881if $ac_preproc_ok; then
4882 :
4883else
4884 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4885See \`config.log' for more details." >&5
4886echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4887See \`config.log' for more details." >&2;}
4888 { (exit 1); exit 1; }; }
4889fi
4890
4891ac_ext=c
4892ac_cpp='$CPP $CPPFLAGS'
4893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4895ac_compiler_gnu=$ac_cv_c_compiler_gnu
4896
3df64633
AO
4897
4898
3df64633
AO
4899LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
4900lt_save_CC="$CC"
4901lt_save_CFLAGS="$CFLAGS"
4902AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
c21b6f87 4903MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3df64633
AO
4904LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4905AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4906objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4907deplibs_check_method="$deplibs_check_method" \
4908file_magic_cmd="$file_magic_cmd" \
4909${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4910--build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
ff66d28f
PE
4911|| { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
4912echo "$as_me: error: libtool tag configuration failed" >&2;}
4913 { (exit 1); exit 1; }; }
3df64633
AO
4914CC="$lt_save_CC"
4915CFLAGS="$lt_save_CFLAGS"
4916
4917# Redirect the config.log output again, so that the ltconfig log is not
4918# clobbered by the next message.
4919exec 5>>./config.log
4920
3df64633 4921
34791641
PE
4922
4923
33590f13 4924
ff66d28f
PE
4925
4926
4927
ff66d28f 4928
92eabea2 4929# Possibly disable most of the library.
347669a0 4930## TODO: Consider skipping unncessary tests altogether in this case, rather
92eabea2
PE
4931## than just ignoring the results. Faster /and/ more correct, win win.
4932
4933 # Check whether --enable-hosted-libstdcxx or --disable-hosted-libstdcxx was given.
4934if test "${enable_hosted_libstdcxx+set}" = set; then
4935 enableval="$enable_hosted_libstdcxx"
4936
4937else
4c24b21a
MM
4938 case "$host" in
4939 arm*-*-symbianelf*)
4940 enable_hosted_libstdcxx=no
4941 ;;
4942 *)
4943 enable_hosted_libstdcxx=yes
4944 ;;
4945 esac
92eabea2
PE
4946fi;
4947 if test "$enable_hosted_libstdcxx" = no; then
4948 { echo "$as_me:$LINENO: Only freestanding libraries will be built" >&5
4949echo "$as_me: Only freestanding libraries will be built" >&6;}
4950 is_hosted=no
3660e02f 4951 hosted_define=0
92eabea2
PE
4952 enable_abi_check=no
4953 enable_libstdcxx_pch=no
4954 else
4955 is_hosted=yes
3660e02f 4956 hosted_define=1
92eabea2
PE
4957 fi
4958
4959
3660e02f
PE
4960cat >>confdefs.h <<_ACEOF
4961#define _GLIBCXX_HOSTED $hosted_define
4962_ACEOF
4963
4964
92eabea2 4965
347669a0 4966# Check for compiler support that doesn't require linking.
5780a46b 4967
ff66d28f
PE
4968 echo "$as_me:$LINENO: checking for exception model to use" >&5
4969echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
249ed716 4970
ff66d28f
PE
4971
4972 ac_ext=cc
44f0760e 4973ac_cpp='$CXXCPP $CPPFLAGS'
ff66d28f
PE
4974ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4975ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4976ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44f0760e 4977
ff66d28f 4978 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
44f0760e
BK
4979if test "${enable_sjlj_exceptions+set}" = set; then
4980 enableval="$enable_sjlj_exceptions"
1260d70f
PE
4981
4982 case "$enableval" in
4983 yes|no|auto) ;;
4984 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable sjlj-exceptions" >&5
4985echo "$as_me: error: Unknown argument to enable/disable sjlj-exceptions" >&2;}
4986 { (exit 1); exit 1; }; } ;;
4987 esac
4988
44f0760e 4989else
1260d70f 4990 enable_sjlj_exceptions=auto
ff66d28f 4991fi;
44f0760e 4992
1260d70f
PE
4993
4994 if test $enable_sjlj_exceptions = auto; then
4995 # Botheration. Now we've got to detect the exception model. Link tests
4996 # against libgcc.a are problematic since we've not been given proper -L
4997 # bits for single-tree newlib and libgloss.
4998 #
4999 # Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style.
5000 cat > conftest.$ac_ext << EOF
3a24bf5d 5001#line 5001 "configure"
1260d70f
PE
5002struct S { ~S(); };
5003void bar();
5004void foo()
5005{
5006 S s;
5007 bar();
5008}
5009EOF
5010 old_CXXFLAGS="$CXXFLAGS"
5011 CXXFLAGS=-S
5012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5013 (eval $ac_compile) 2>&5
5014 ac_status=$?
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); }; then
5017 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5018 enable_sjlj_exceptions=yes
5019 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5020 enable_sjlj_exceptions=no
5021 fi
5022 fi
5023 CXXFLAGS="$old_CXXFLAGS"
5024 rm -f conftest*
5025 fi
5026
5027 # This is a tad weird, for hysterical raisins. We have to map enable/disable
5028 # to two different models.
5029 case $enable_sjlj_exceptions in
5030 yes)
44f0760e 5031
ff66d28f
PE
5032cat >>confdefs.h <<\_ACEOF
5033#define _GLIBCXX_SJLJ_EXCEPTIONS 1
5034_ACEOF
5035
1260d70f
PE
5036 ac_exception_model_name=sjlj
5037 ;;
5038 no)
5039 ac_exception_model_name="call frame"
5040 ;;
5041 *)
5042 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
ff66d28f
PE
5043echo "$as_me: error: unable to detect exception model" >&2;}
5044 { (exit 1); exit 1; }; }
1260d70f
PE
5045 ;;
5046 esac
ff66d28f 5047 ac_ext=c
44f0760e 5048ac_cpp='$CPP $CPPFLAGS'
ff66d28f
PE
5049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5051ac_compiler_gnu=$ac_cv_c_compiler_gnu
44f0760e 5052
ff66d28f
PE
5053 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5054echo "${ECHO_T}$ac_exception_model_name" >&6
44f0760e
BK
5055
5056
ff66d28f
PE
5057 echo "$as_me:$LINENO: checking for enabled PCH" >&5
5058echo $ECHO_N "checking for enabled PCH... $ECHO_C" >&6
5059 # Check whether --enable-libstdcxx-pch or --disable-libstdcxx-pch was given.
d8d81f62
BK
5060if test "${enable_libstdcxx_pch+set}" = set; then
5061 enableval="$enable_libstdcxx_pch"
ff66d28f
PE
5062
5063 case "$enableval" in
5064 yes|no) ;;
5065 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&5
5066echo "$as_me: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&2;}
5067 { (exit 1); exit 1; }; } ;;
5068 esac
5069
44f0760e 5070else
92eabea2 5071 enable_libstdcxx_pch=$is_hosted
ff66d28f 5072fi;
44f0760e 5073
ff66d28f
PE
5074 echo "$as_me:$LINENO: result: $enable_libstdcxx_pch" >&5
5075echo "${ECHO_T}$enable_libstdcxx_pch" >&6
5076
5077 if test $enable_libstdcxx_pch = yes; then
5078 echo "$as_me:$LINENO: checking for compiler with PCH support" >&5
5079echo $ECHO_N "checking for compiler with PCH support... $ECHO_C" >&6
5080if test "${glibcxx_cv_prog_CXX_pch+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
249ed716 5082else
ff66d28f
PE
5083 ac_save_CXXFLAGS="$CXXFLAGS"
5084 CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated"
5085
5086
5087 ac_ext=cc
249ed716 5088ac_cpp='$CXXCPP $CPPFLAGS'
ff66d28f
PE
5089ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5090ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5091ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5092
5093 echo '#include <math.h>' > conftest.h
5094 if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
5095 -o conftest.h.gch 1>&5 2>&1 &&
5096 echo '#error "pch failed"' > conftest.h &&
5097 echo '#include "conftest.h"' > conftest.cc &&
5098 $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ;
5099 then
5100 glibcxx_cv_prog_CXX_pch=yes
5101 else
5102 glibcxx_cv_prog_CXX_pch=no
5103 fi
5104 rm -f conftest*
5105 CXXFLAGS=$ac_save_CXXFLAGS
5106 ac_ext=c
249ed716 5107ac_cpp='$CPP $CPPFLAGS'
ff66d28f
PE
5108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5110ac_compiler_gnu=$ac_cv_c_compiler_gnu
249ed716 5111
249ed716 5112
ff66d28f
PE
5113fi
5114echo "$as_me:$LINENO: result: $glibcxx_cv_prog_CXX_pch" >&5
5115echo "${ECHO_T}$glibcxx_cv_prog_CXX_pch" >&6
5116 enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch
44f0760e
BK
5117 fi
5118
44f0760e 5119
ff66d28f
PE
5120 if test $enable_libstdcxx_pch = yes; then
5121 glibcxx_PCHFLAGS="-include bits/stdc++.h"
bddc3107 5122 else
ff66d28f 5123 glibcxx_PCHFLAGS=""
bddc3107 5124 fi
249ed716 5125
04e78786 5126
ff66d28f
PE
5127
5128# Enable all the variable C++ runtime options.
58ac1d7f 5129
ff66d28f
PE
5130 echo "$as_me:$LINENO: checking for underlying I/O to use" >&5
5131echo $ECHO_N "checking for underlying I/O to use... $ECHO_C" >&6
5132 # Check whether --enable-cstdio or --disable-cstdio was given.
58ac1d7f
BK
5133if test "${enable_cstdio+set}" = set; then
5134 enableval="$enable_cstdio"
ff66d28f
PE
5135
5136 case "$enableval" in
5137 stdio) ;;
5138 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cstdio" >&5
5139echo "$as_me: error: Unknown argument to enable/disable cstdio" >&2;}
5140 { (exit 1); exit 1; }; } ;;
5141 esac
5142
58ac1d7f
BK
5143else
5144 enable_cstdio=stdio
ff66d28f 5145fi;
58ac1d7f
BK
5146
5147
ff66d28f
PE
5148 # Now that libio has been removed, you can have any color you want as long
5149 # as it's black. This is one big no-op until other packages are added, but
5150 # showing the framework never hurts.
5151 case ${enable_cstdio} in
5152 stdio)
58ac1d7f
BK
5153 CSTDIO_H=config/io/c_io_stdio.h
5154 BASIC_FILE_H=config/io/basic_file_stdio.h
5155 BASIC_FILE_CC=config/io/basic_file_stdio.cc
ff66d28f
PE
5156 echo "$as_me:$LINENO: result: stdio" >&5
5157echo "${ECHO_T}stdio" >&6
58ac1d7f
BK
5158 ;;
5159 esac
cc5112c9 5160
ff66d28f
PE
5161
5162
5163
5164
5165ac_ext=c
5166ac_cpp='$CPP $CPPFLAGS'
5167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5169ac_compiler_gnu=$ac_cv_c_compiler_gnu
5170echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5171echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
c470c17d
BK
5172# On Suns, sometimes $CPP names a directory.
5173if test -n "$CPP" && test -d "$CPP"; then
5174 CPP=
5175fi
5176if test -z "$CPP"; then
ff66d28f
PE
5177 if test "${ac_cv_prog_CPP+set}" = set; then
5178 echo $ECHO_N "(cached) $ECHO_C" >&6
5179else
5180 # Double quotes because CPP needs to be expanded
5181 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5182 do
5183 ac_preproc_ok=false
5184for ac_c_preproc_warn_flag in '' yes
5185do
5186 # Use a header file that comes with gcc, so configuring glibc
5187 # with a fresh cross-compiler works.
5188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5189 # <limits.h> exists even on freestanding compilers.
5190 # On the NeXT, cc -E runs the code through the compiler's parser,
5191 # not just through cpp. "Syntax error" is here to catch this case.
5192 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5193/* confdefs.h. */
5194_ACEOF
5195cat confdefs.h >>conftest.$ac_ext
5196cat >>conftest.$ac_ext <<_ACEOF
5197/* end confdefs.h. */
5198#ifdef __STDC__
5199# include <limits.h>
5200#else
5201# include <assert.h>
5202#endif
ec2075e9 5203 Syntax error
ff66d28f
PE
5204_ACEOF
5205if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5207 ac_status=$?
5208 grep -v '^ *+' conftest.er1 >conftest.err
5209 rm -f conftest.er1
5210 cat conftest.err >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } >/dev/null; then
5213 if test -s conftest.err; then
5214 ac_cpp_err=$ac_c_preproc_warn_flag
ec2075e9 5215 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ff66d28f
PE
5216 else
5217 ac_cpp_err=
5218 fi
5219else
5220 ac_cpp_err=yes
5221fi
5222if test -z "$ac_cpp_err"; then
5223 :
5224else
5225 echo "$as_me: failed program was:" >&5
5226sed 's/^/| /' conftest.$ac_ext >&5
5227
5228 # Broken: fails on valid input.
5229continue
5230fi
5231rm -f conftest.err conftest.$ac_ext
5232
5233 # OK, works on sane cases. Now check whether non-existent headers
5234 # can be detected and how.
5235 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5236/* confdefs.h. */
5237_ACEOF
5238cat confdefs.h >>conftest.$ac_ext
5239cat >>conftest.$ac_ext <<_ACEOF
5240/* end confdefs.h. */
5241#include <ac_nonexistent.h>
5242_ACEOF
5243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5245 ac_status=$?
5246 grep -v '^ *+' conftest.er1 >conftest.err
5247 rm -f conftest.er1
5248 cat conftest.err >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } >/dev/null; then
5251 if test -s conftest.err; then
5252 ac_cpp_err=$ac_c_preproc_warn_flag
ec2075e9 5253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ff66d28f
PE
5254 else
5255 ac_cpp_err=
5256 fi
5257else
5258 ac_cpp_err=yes
5259fi
5260if test -z "$ac_cpp_err"; then
5261 # Broken: success on invalid input.
5262continue
5263else
5264 echo "$as_me: failed program was:" >&5
5265sed 's/^/| /' conftest.$ac_ext >&5
5266
5267 # Passes both tests.
5268ac_preproc_ok=:
5269break
5270fi
5271rm -f conftest.err conftest.$ac_ext
5272
5273done
5274# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5275rm -f conftest.err conftest.$ac_ext
5276if $ac_preproc_ok; then
5277 break
5278fi
5279
5280 done
5281 ac_cv_prog_CPP=$CPP
5282
5283fi
5284 CPP=$ac_cv_prog_CPP
b2dad0e3 5285else
ff66d28f
PE
5286 ac_cv_prog_CPP=$CPP
5287fi
5288echo "$as_me:$LINENO: result: $CPP" >&5
5289echo "${ECHO_T}$CPP" >&6
5290ac_preproc_ok=false
5291for ac_c_preproc_warn_flag in '' yes
5292do
5293 # Use a header file that comes with gcc, so configuring glibc
5294 # with a fresh cross-compiler works.
5295 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5296 # <limits.h> exists even on freestanding compilers.
c470c17d 5297 # On the NeXT, cc -E runs the code through the compiler's parser,
ff66d28f
PE
5298 # not just through cpp. "Syntax error" is here to catch this case.
5299 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5300/* confdefs.h. */
5301_ACEOF
5302cat confdefs.h >>conftest.$ac_ext
5303cat >>conftest.$ac_ext <<_ACEOF
5304/* end confdefs.h. */
5305#ifdef __STDC__
5306# include <limits.h>
5307#else
5308# include <assert.h>
5309#endif
ec2075e9 5310 Syntax error
ff66d28f
PE
5311_ACEOF
5312if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5314 ac_status=$?
5315 grep -v '^ *+' conftest.er1 >conftest.err
5316 rm -f conftest.er1
5317 cat conftest.err >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); } >/dev/null; then
5320 if test -s conftest.err; then
5321 ac_cpp_err=$ac_c_preproc_warn_flag
ec2075e9 5322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ff66d28f
PE
5323 else
5324 ac_cpp_err=
5325 fi
5326else
5327 ac_cpp_err=yes
5328fi
5329if test -z "$ac_cpp_err"; then
b2dad0e3
BK
5330 :
5331else
ff66d28f
PE
5332 echo "$as_me: failed program was:" >&5
5333sed 's/^/| /' conftest.$ac_ext >&5
5334
5335 # Broken: fails on valid input.
5336continue
5337fi
5338rm -f conftest.err conftest.$ac_ext
5339
5340 # OK, works on sane cases. Now check whether non-existent headers
5341 # can be detected and how.
5342 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5343/* confdefs.h. */
5344_ACEOF
5345cat confdefs.h >>conftest.$ac_ext
5346cat >>conftest.$ac_ext <<_ACEOF
5347/* end confdefs.h. */
5348#include <ac_nonexistent.h>
5349_ACEOF
5350if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5352 ac_status=$?
5353 grep -v '^ *+' conftest.er1 >conftest.err
5354 rm -f conftest.er1
5355 cat conftest.err >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } >/dev/null; then
5358 if test -s conftest.err; then
5359 ac_cpp_err=$ac_c_preproc_warn_flag
ec2075e9 5360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ff66d28f
PE
5361 else
5362 ac_cpp_err=
5363 fi
5364else
5365 ac_cpp_err=yes
5366fi
5367if test -z "$ac_cpp_err"; then
5368 # Broken: success on invalid input.
5369continue
5370else
5371 echo "$as_me: failed program was:" >&5
5372sed 's/^/| /' conftest.$ac_ext >&5
5373
5374 # Passes both tests.
5375ac_preproc_ok=:
5376break
5377fi
5378rm -f conftest.err conftest.$ac_ext
5379
5380done
5381# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5382rm -f conftest.err conftest.$ac_ext
5383if $ac_preproc_ok; then
c470c17d
BK
5384 :
5385else
ff66d28f
PE
5386 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5387See \`config.log' for more details." >&5
5388echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5389See \`config.log' for more details." >&2;}
5390 { (exit 1); exit 1; }; }
5391fi
5392
5393ac_ext=c
5394ac_cpp='$CPP $CPPFLAGS'
5395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5397ac_compiler_gnu=$ac_cv_c_compiler_gnu
5398
5399
5400echo "$as_me:$LINENO: checking for egrep" >&5
5401echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5402if test "${ac_cv_prog_egrep+set}" = set; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5404else
5405 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5406 then ac_cv_prog_egrep='grep -E'
5407 else ac_cv_prog_egrep='egrep'
5408 fi
5409fi
5410echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5411echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5412 EGREP=$ac_cv_prog_egrep
5413
5414
5415echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5416echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5417if test "${ac_cv_header_stdc+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5419else
5420 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5421/* confdefs.h. */
5422_ACEOF
5423cat confdefs.h >>conftest.$ac_ext
5424cat >>conftest.$ac_ext <<_ACEOF
5425/* end confdefs.h. */
5426#include <stdlib.h>
5427#include <stdarg.h>
5428#include <string.h>
5429#include <float.h>
5430
5431int
5432main ()
5433{
5434
5435 ;
5436 return 0;
5437}
5438_ACEOF
5439rm -f conftest.$ac_objext
5440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 5441 (eval $ac_compile) 2>conftest.er1
ff66d28f 5442 ac_status=$?
ec2075e9
BK
5443 grep -v '^ *+' conftest.er1 >conftest.err
5444 rm -f conftest.er1
5445 cat conftest.err >&5
ff66d28f
PE
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } &&
780028b6
BK
5448 { ac_try='test -z "$ac_c_werror_flag"
5449 || test ! -s conftest.err'
ec2075e9
BK
5450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451 (eval $ac_try) 2>&5
5452 ac_status=$?
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }; } &&
5455 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
5456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457 (eval $ac_try) 2>&5
5458 ac_status=$?
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); }; }; then
5461 ac_cv_header_stdc=yes
5462else
5463 echo "$as_me: failed program was:" >&5
5464sed 's/^/| /' conftest.$ac_ext >&5
5465
5466ac_cv_header_stdc=no
5467fi
ec2075e9 5468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
5469
5470if test $ac_cv_header_stdc = yes; then
5471 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5472 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5473/* confdefs.h. */
5474_ACEOF
5475cat confdefs.h >>conftest.$ac_ext
5476cat >>conftest.$ac_ext <<_ACEOF
5477/* end confdefs.h. */
5478#include <string.h>
5479
5480_ACEOF
5481if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5482 $EGREP "memchr" >/dev/null 2>&1; then
c470c17d
BK
5483 :
5484else
ff66d28f
PE
5485 ac_cv_header_stdc=no
5486fi
5487rm -f conftest*
5488
5489fi
5490
5491if test $ac_cv_header_stdc = yes; then
5492 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5493 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5494/* confdefs.h. */
5495_ACEOF
5496cat confdefs.h >>conftest.$ac_ext
5497cat >>conftest.$ac_ext <<_ACEOF
5498/* end confdefs.h. */
5499#include <stdlib.h>
5500
5501_ACEOF
5502if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5503 $EGREP "free" >/dev/null 2>&1; then
5504 :
5505else
5506 ac_cv_header_stdc=no
5507fi
5508rm -f conftest*
5509
5510fi
5511
5512if test $ac_cv_header_stdc = yes; then
5513 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5514 if test "$cross_compiling" = yes; then
5515 :
5516else
5517 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5518/* confdefs.h. */
5519_ACEOF
5520cat confdefs.h >>conftest.$ac_ext
5521cat >>conftest.$ac_ext <<_ACEOF
5522/* end confdefs.h. */
5523#include <ctype.h>
5524#if ((' ' & 0x0FF) == 0x020)
5525# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5526# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5527#else
5528# define ISLOWER(c) \
ec2075e9
BK
5529 (('a' <= (c) && (c) <= 'i') \
5530 || ('j' <= (c) && (c) <= 'r') \
5531 || ('s' <= (c) && (c) <= 'z'))
ff66d28f
PE
5532# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5533#endif
5534
5535#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5536int
5537main ()
5538{
5539 int i;
5540 for (i = 0; i < 256; i++)
5541 if (XOR (islower (i), ISLOWER (i))
ec2075e9 5542 || toupper (i) != TOUPPER (i))
ff66d28f
PE
5543 exit(2);
5544 exit (0);
5545}
5546_ACEOF
5547rm -f conftest$ac_exeext
5548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5549 (eval $ac_link) 2>&5
5550 ac_status=$?
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5554 (eval $ac_try) 2>&5
5555 ac_status=$?
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); }; }; then
5558 :
5559else
5560 echo "$as_me: program exited with status $ac_status" >&5
5561echo "$as_me: failed program was:" >&5
5562sed 's/^/| /' conftest.$ac_ext >&5
5563
5564( exit $ac_status )
5565ac_cv_header_stdc=no
b2dad0e3 5566fi
ec2075e9 5567rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b2dad0e3 5568fi
33590f13 5569fi
33590f13 5570fi
ff66d28f
PE
5571echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5572echo "${ECHO_T}$ac_cv_header_stdc" >&6
5573if test $ac_cv_header_stdc = yes; then
5574
5575cat >>confdefs.h <<\_ACEOF
5576#define STDC_HEADERS 1
5577_ACEOF
5578
5579fi
5580
5581# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ec2075e9 5592 inttypes.h stdint.h unistd.h
ff66d28f
PE
5593do
5594as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5595echo "$as_me:$LINENO: checking for $ac_header" >&5
5596echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5597if eval "test \"\${$as_ac_Header+set}\" = set"; then
5598 echo $ECHO_N "(cached) $ECHO_C" >&6
5599else
5600 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5601/* confdefs.h. */
5602_ACEOF
5603cat confdefs.h >>conftest.$ac_ext
5604cat >>conftest.$ac_ext <<_ACEOF
5605/* end confdefs.h. */
5606$ac_includes_default
5607
5608#include <$ac_header>
5609_ACEOF
5610rm -f conftest.$ac_objext
5611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 5612 (eval $ac_compile) 2>conftest.er1
ff66d28f 5613 ac_status=$?
ec2075e9
BK
5614 grep -v '^ *+' conftest.er1 >conftest.err
5615 rm -f conftest.er1
5616 cat conftest.err >&5
ff66d28f
PE
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); } &&
780028b6
BK
5619 { ac_try='test -z "$ac_c_werror_flag"
5620 || test ! -s conftest.err'
ec2075e9
BK
5621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5622 (eval $ac_try) 2>&5
5623 ac_status=$?
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); }; } &&
5626 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
5627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628 (eval $ac_try) 2>&5
5629 ac_status=$?
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); }; }; then
5632 eval "$as_ac_Header=yes"
5633else
5634 echo "$as_me: failed program was:" >&5
5635sed 's/^/| /' conftest.$ac_ext >&5
5636
5637eval "$as_ac_Header=no"
5638fi
ec2075e9 5639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
5640fi
5641echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5642echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5643if test `eval echo '${'$as_ac_Header'}'` = yes; then
5644 cat >>confdefs.h <<_ACEOF
5645#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5646_ACEOF
5647
33590f13 5648fi
ff66d28f
PE
5649
5650done
5651
33590f13
BK
5652
5653
ff66d28f
PE
5654 echo "$as_me:$LINENO: checking for C locale to use" >&5
5655echo $ECHO_N "checking for C locale to use... $ECHO_C" >&6
5656 # Check whether --enable-clocale or --disable-clocale was given.
4e10943d
BK
5657if test "${enable_clocale+set}" = set; then
5658 enableval="$enable_clocale"
ff66d28f
PE
5659
5660 case "$enableval" in
5661 generic|gnu|ieee_1003.1-2001|yes|no|auto) ;;
5662 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5
5663echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;}
5664 { (exit 1); exit 1; }; } ;;
5665 esac
5666
b2dad0e3 5667else
ff66d28f
PE
5668 enable_clocale=auto
5669fi;
b2dad0e3 5670
20427c6b 5671
ff66d28f
PE
5672 # If they didn't use this option switch, or if they specified --enable
5673 # with no specific model, we'll have to look for one. If they
5674 # specified --disable (???), do likewise.
5675 if test $enable_clocale = no || test $enable_clocale = yes; then
5676 enable_clocale=auto
5677 fi
5678
5679 # Either a known package, or "auto"
4e10943d 5680 enable_clocale_flag=$enable_clocale
dd75251f 5681
ff66d28f
PE
5682 # Probe for locale support if no specific model is specified.
5683 # Default to "generic".
5684 if test $enable_clocale_flag = auto; then
7d3998a4
PE
5685 case ${target_os} in
5686 linux* | gnu* | kfreebsd*-gnu | knetbsd*-gnu)
ff66d28f 5687 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5688/* confdefs.h. */
5689_ACEOF
5690cat confdefs.h >>conftest.$ac_ext
5691cat >>conftest.$ac_ext <<_ACEOF
5692/* end confdefs.h. */
56deb74c
BK
5693
5694 #include <features.h>
37bc6ca2 5695 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
3d7c150e 5696 _GLIBCXX_ok
56deb74c 5697 #endif
ff66d28f
PE
5698
5699_ACEOF
56deb74c 5700if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ff66d28f 5701 $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then
56deb74c
BK
5702 enable_clocale_flag=gnu
5703else
56deb74c
BK
5704 enable_clocale_flag=generic
5705fi
5706rm -f conftest*
5707
1451a492 5708
ff66d28f 5709 # Test for bugs early in glibc-2.2.x series
7d3998a4 5710 if test $enable_clocale_flag = gnu; then
ff66d28f 5711 if test "$cross_compiling" = yes; then
1451a492
BK
5712 enable_clocale_flag=generic
5713else
ff66d28f 5714 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5715/* confdefs.h. */
5716_ACEOF
5717cat confdefs.h >>conftest.$ac_ext
5718cat >>conftest.$ac_ext <<_ACEOF
5719/* end confdefs.h. */
5720
5721 #define _GNU_SOURCE 1
5722 #include <locale.h>
5723 #include <string.h>
5724 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
5725 extern __typeof(newlocale) __newlocale;
5726 extern __typeof(duplocale) __duplocale;
5727 extern __typeof(strcoll_l) __strcoll_l;
5728 #endif
5729 int main()
5730 {
5731