]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/configure
std_complex.h: _GLIBCXX_USE_C99_COMPLEX_MATH to _GLIBCXX_USE_C99_COMPLEX.
[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
825bd0e1 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 glibcxx_thread_h DEBUG_FLAGS GLIBCXX_BUILD_DEBUG_TRUE GLIBCXX_BUILD_DEBUG_FALSE EXTRA_CXX_FLAGS 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]
872 --enable-c-mbchar enable multibyte (wide) characters
873 [default=yes]
874 --enable-c99 turns on ISO/IEC 9899:1999 support
875 [default=yes]
876 --enable-long-long enables I/O support for 'long long'
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
72730fdb 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
ff66d28f
PE
1965# Runs configure.host, finds CC, CXX, and assorted other critical bits. Sets
1966# up critical shell variables.
1967
82ba99d5
PE
1968 # Keep these sync'd with the list in Makefile.am. The first provides an
1969 # expandable list at autoconf time; the second provides an expandable list
1970 # (i.e., shell variable) at configure time.
1971
1972 SUBDIRS='include libmath libsupc++ src po testsuite'
1973
ff66d28f
PE
1974 # These need to be absolute paths, yet at the same time need to
1975 # canonicalize only relative paths, because then amd will not unmount
1976 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1977 glibcxx_builddir=`${PWDCMD-pwd}`
1978 case $srcdir in
1979 \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
1980 *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1981 esac
1982 toplevel_srcdir=${glibcxx_srcdir}/..
1983
1984
1985
1986
1987 # We use these options to decide which functions to include. They are
1988 # set from the top level.
1989
1990# Check whether --with-target-subdir or --without-target-subdir was given.
1991if test "${with_target_subdir+set}" = set; then
1992 withval="$with_target_subdir"
1993
1994fi;
1995
1996
1997# Check whether --with-cross-host or --without-cross-host was given.
1998if test "${with_cross_host+set}" = set; then
1999 withval="$with_cross_host"
2000
2001fi;
2002
2003
2004# Check whether --with-newlib or --without-newlib was given.
2005if test "${with_newlib+set}" = set; then
2006 withval="$with_newlib"
2007
2008fi;
2009
f6dda651
PE
2010 # We're almost certainly being configured before anything else which uses
2011 # C++, so all of our AC_PROG_* discoveries will be cached. It's vital that
2012 # we not cache the value of CXX that we "discover" here, because it's set
2013 # to something unique for us and libjava. Other target libraries need to
2014 # find CXX for themselves. We yank the rug out from under the normal AC_*
2015 # process by sneakily renaming the cache variable. This also lets us debug
2016 # the value of "our" CXX in postmortems.
2017 #
2018 # We must also force CXX to /not/ be a precious variable, otherwise the
2019 # wrong (non-multilib-adjusted) value will be used in multilibs. This
2020 # little trick also affects CPPFLAGS, CXXFLAGS, and LDFLAGS. And as a side
2021 # effect, CXXFLAGS is no longer automagically subst'd, so we have to do
2022 # that ourselves. Un-preciousing AC_PROG_CC also affects CC and CFLAGS.
2023 #
2024 # -fno-builtin must be present here so that a non-conflicting form of
2025 # std::exit can be guessed by AC_PROG_CXX, and used in later tests.
2026
2027
2028
2029
2030 save_CXXFLAGS="$CXXFLAGS"
2031 CXXFLAGS="$CXXFLAGS -fno-builtin"
ff66d28f
PE
2032 ac_ext=c
2033ac_cpp='$CPP $CPPFLAGS'
2034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2036ac_compiler_gnu=$ac_cv_c_compiler_gnu
2037if test -n "$ac_tool_prefix"; then
2038 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2039set dummy ${ac_tool_prefix}gcc; ac_word=$2
2040echo "$as_me:$LINENO: checking for $ac_word" >&5
2041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2042if test "${ac_cv_prog_CC+set}" = set; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 2044else
ff66d28f
PE
2045 if test -n "$CC"; then
2046 ac_cv_prog_CC="$CC" # Let the user override the test.
b2dad0e3 2047else
ff66d28f
PE
2048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049for as_dir in $PATH
2050do
2051 IFS=$as_save_IFS
2052 test -z "$as_dir" && as_dir=.
2053 for ac_exec_ext in '' $ac_executable_extensions; do
2054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2055 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057 break 2
2058 fi
2059done
2060done
2061
b2dad0e3
BK
2062fi
2063fi
ff66d28f
PE
2064CC=$ac_cv_prog_CC
2065if test -n "$CC"; then
2066 echo "$as_me:$LINENO: result: $CC" >&5
2067echo "${ECHO_T}$CC" >&6
b2dad0e3 2068else
ff66d28f
PE
2069 echo "$as_me:$LINENO: result: no" >&5
2070echo "${ECHO_T}no" >&6
b2dad0e3
BK
2071fi
2072
ff66d28f
PE
2073fi
2074if test -z "$ac_cv_prog_CC"; then
2075 ac_ct_CC=$CC
2076 # Extract the first word of "gcc", so it can be a program name with args.
2077set dummy gcc; ac_word=$2
2078echo "$as_me:$LINENO: checking for $ac_word" >&5
2079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2080if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 2082else
ff66d28f
PE
2083 if test -n "$ac_ct_CC"; then
2084 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b2dad0e3 2085else
ff66d28f
PE
2086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087for as_dir in $PATH
2088do
2089 IFS=$as_save_IFS
2090 test -z "$as_dir" && as_dir=.
2091 for ac_exec_ext in '' $ac_executable_extensions; do
2092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2093 ac_cv_prog_ac_ct_CC="gcc"
2094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095 break 2
2096 fi
2097done
2098done
2099
b2dad0e3
BK
2100fi
2101fi
ff66d28f
PE
2102ac_ct_CC=$ac_cv_prog_ac_ct_CC
2103if test -n "$ac_ct_CC"; then
2104 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2105echo "${ECHO_T}$ac_ct_CC" >&6
b2dad0e3 2106else
ff66d28f
PE
2107 echo "$as_me:$LINENO: result: no" >&5
2108echo "${ECHO_T}no" >&6
b2dad0e3 2109fi
b2dad0e3 2110
ff66d28f
PE
2111 CC=$ac_ct_CC
2112else
2113 CC="$ac_cv_prog_CC"
b2dad0e3
BK
2114fi
2115
ff66d28f
PE
2116if test -z "$CC"; then
2117 if test -n "$ac_tool_prefix"; then
2118 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2119set dummy ${ac_tool_prefix}cc; ac_word=$2
2120echo "$as_me:$LINENO: checking for $ac_word" >&5
2121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2122if test "${ac_cv_prog_CC+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2124else
2125 if test -n "$CC"; then
2126 ac_cv_prog_CC="$CC" # Let the user override the test.
2127else
2128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129for as_dir in $PATH
2130do
2131 IFS=$as_save_IFS
2132 test -z "$as_dir" && as_dir=.
2133 for ac_exec_ext in '' $ac_executable_extensions; do
2134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2135 ac_cv_prog_CC="${ac_tool_prefix}cc"
2136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2137 break 2
b2dad0e3 2138 fi
ff66d28f
PE
2139done
2140done
93b85586 2141
ff66d28f
PE
2142fi
2143fi
2144CC=$ac_cv_prog_CC
2145if test -n "$CC"; then
2146 echo "$as_me:$LINENO: result: $CC" >&5
2147echo "${ECHO_T}$CC" >&6
974e336b 2148else
ff66d28f
PE
2149 echo "$as_me:$LINENO: result: no" >&5
2150echo "${ECHO_T}no" >&6
2151fi
974e336b 2152
974e336b 2153fi
ff66d28f
PE
2154if test -z "$ac_cv_prog_CC"; then
2155 ac_ct_CC=$CC
2156 # Extract the first word of "cc", so it can be a program name with args.
2157set dummy cc; ac_word=$2
2158echo "$as_me:$LINENO: checking for $ac_word" >&5
2159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2160if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2162else
2163 if test -n "$ac_ct_CC"; then
2164 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2165else
2166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167for as_dir in $PATH
2168do
2169 IFS=$as_save_IFS
2170 test -z "$as_dir" && as_dir=.
2171 for ac_exec_ext in '' $ac_executable_extensions; do
2172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2173 ac_cv_prog_ac_ct_CC="cc"
2174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175 break 2
2176 fi
2177done
2178done
33590f13 2179
974e336b 2180fi
ff66d28f
PE
2181fi
2182ac_ct_CC=$ac_cv_prog_ac_ct_CC
2183if test -n "$ac_ct_CC"; then
2184 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2185echo "${ECHO_T}$ac_ct_CC" >&6
33590f13 2186else
ff66d28f
PE
2187 echo "$as_me:$LINENO: result: no" >&5
2188echo "${ECHO_T}no" >&6
33590f13
BK
2189fi
2190
ff66d28f
PE
2191 CC=$ac_ct_CC
2192else
2193 CC="$ac_cv_prog_CC"
2194fi
33590f13 2195
ff66d28f
PE
2196fi
2197if test -z "$CC"; then
2198 # Extract the first word of "cc", so it can be a program name with args.
2199set dummy cc; ac_word=$2
2200echo "$as_me:$LINENO: checking for $ac_word" >&5
2201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2202if test "${ac_cv_prog_CC+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 2204else
ff66d28f
PE
2205 if test -n "$CC"; then
2206 ac_cv_prog_CC="$CC" # Let the user override the test.
b2dad0e3 2207else
ff66d28f
PE
2208 ac_prog_rejected=no
2209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210for as_dir in $PATH
2211do
2212 IFS=$as_save_IFS
2213 test -z "$as_dir" && as_dir=.
2214 for ac_exec_ext in '' $ac_executable_extensions; do
2215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2216 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2217 ac_prog_rejected=yes
2218 continue
2219 fi
2220 ac_cv_prog_CC="cc"
2221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2222 break 2
2223 fi
2224done
2225done
2226
2227if test $ac_prog_rejected = yes; then
2228 # We found a bogon in the path, so make sure we never use it.
2229 set dummy $ac_cv_prog_CC
2230 shift
2231 if test $# != 0; then
2232 # We chose a different compiler from the bogus one.
2233 # However, it has the same basename, so the bogon will be chosen
2234 # first if we set CC to just the basename; use the full file name.
2235 shift
2236 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2237 fi
b2dad0e3
BK
2238fi
2239fi
ff66d28f
PE
2240fi
2241CC=$ac_cv_prog_CC
2242if test -n "$CC"; then
2243 echo "$as_me:$LINENO: result: $CC" >&5
2244echo "${ECHO_T}$CC" >&6
b2dad0e3 2245else
ff66d28f
PE
2246 echo "$as_me:$LINENO: result: no" >&5
2247echo "${ECHO_T}no" >&6
b2dad0e3
BK
2248fi
2249
ff66d28f
PE
2250fi
2251if test -z "$CC"; then
2252 if test -n "$ac_tool_prefix"; then
2253 for ac_prog in cl
2254 do
2255 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2256set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2257echo "$as_me:$LINENO: checking for $ac_word" >&5
2258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2259if test "${ac_cv_prog_CC+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 2261else
ff66d28f
PE
2262 if test -n "$CC"; then
2263 ac_cv_prog_CC="$CC" # Let the user override the test.
b2dad0e3 2264else
ff66d28f
PE
2265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266for as_dir in $PATH
2267do
2268 IFS=$as_save_IFS
2269 test -z "$as_dir" && as_dir=.
2270 for ac_exec_ext in '' $ac_executable_extensions; do
2271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2272 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2274 break 2
2275 fi
2276done
2277done
2278
b2dad0e3
BK
2279fi
2280fi
ff66d28f
PE
2281CC=$ac_cv_prog_CC
2282if test -n "$CC"; then
2283 echo "$as_me:$LINENO: result: $CC" >&5
2284echo "${ECHO_T}$CC" >&6
b2dad0e3 2285else
ff66d28f
PE
2286 echo "$as_me:$LINENO: result: no" >&5
2287echo "${ECHO_T}no" >&6
b2dad0e3
BK
2288fi
2289
ff66d28f
PE
2290 test -n "$CC" && break
2291 done
2292fi
2293if test -z "$CC"; then
2294 ac_ct_CC=$CC
2295 for ac_prog in cl
2296do
2297 # Extract the first word of "$ac_prog", so it can be a program name with args.
2298set dummy $ac_prog; ac_word=$2
2299echo "$as_me:$LINENO: checking for $ac_word" >&5
2300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2301if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 2303else
ff66d28f
PE
2304 if test -n "$ac_ct_CC"; then
2305 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b2dad0e3 2306else
ff66d28f
PE
2307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308for as_dir in $PATH
2309do
2310 IFS=$as_save_IFS
2311 test -z "$as_dir" && as_dir=.
2312 for ac_exec_ext in '' $ac_executable_extensions; do
2313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2314 ac_cv_prog_ac_ct_CC="$ac_prog"
2315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2316 break 2
2317 fi
2318done
2319done
2320
b2dad0e3
BK
2321fi
2322fi
ff66d28f
PE
2323ac_ct_CC=$ac_cv_prog_ac_ct_CC
2324if test -n "$ac_ct_CC"; then
2325 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2326echo "${ECHO_T}$ac_ct_CC" >&6
b2dad0e3 2327else
ff66d28f
PE
2328 echo "$as_me:$LINENO: result: no" >&5
2329echo "${ECHO_T}no" >&6
b2dad0e3
BK
2330fi
2331
ff66d28f
PE
2332 test -n "$ac_ct_CC" && break
2333done
b2dad0e3 2334
ff66d28f
PE
2335 CC=$ac_ct_CC
2336fi
2337
2338fi
2339
2340
2341test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2342See \`config.log' for more details." >&5
2343echo "$as_me: error: no acceptable C compiler found in \$PATH
2344See \`config.log' for more details." >&2;}
2345 { (exit 1); exit 1; }; }
2346
2347# Provide some information about the compiler.
2348echo "$as_me:$LINENO:" \
2349 "checking for C compiler version" >&5
2350ac_compiler=`set X $ac_compile; echo $2`
2351{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2352 (eval $ac_compiler --version </dev/null >&5) 2>&5
2353 ac_status=$?
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }
2356{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2357 (eval $ac_compiler -v </dev/null >&5) 2>&5
2358 ac_status=$?
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }
2361{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2362 (eval $ac_compiler -V </dev/null >&5) 2>&5
2363 ac_status=$?
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }
2366
2367cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
2368/* confdefs.h. */
2369_ACEOF
2370cat confdefs.h >>conftest.$ac_ext
2371cat >>conftest.$ac_ext <<_ACEOF
2372/* end confdefs.h. */
2373
72730fdb
DJ
2374int
2375main ()
2376{
2377
2378 ;
2379 return 0;
2380}
2381_ACEOF
2382# FIXME: Cleanup?
2383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2384 (eval $ac_link) 2>&5
2385 ac_status=$?
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; then
2388 gcc_no_link=no
2389else
2390 gcc_no_link=yes
2391fi
2392
2393if test x$gcc_no_link = xyes; then
2394 # Setting cross_compile will disable run tests; it will
2395 # also disable AC_CHECK_FILE but that's generally
2396 # correct if we can't link.
2397 cross_compiling=yes
2398 EXEEXT=
2399else
2400 cat >conftest.$ac_ext <<_ACEOF
72730fdb
DJ
2401/* confdefs.h. */
2402_ACEOF
2403cat confdefs.h >>conftest.$ac_ext
2404cat >>conftest.$ac_ext <<_ACEOF
2405/* end confdefs.h. */
2406
ff66d28f
PE
2407int
2408main ()
2409{
2410
2411 ;
2412 return 0;
2413}
2414_ACEOF
2415ac_clean_files_save=$ac_clean_files
2416ac_clean_files="$ac_clean_files a.out a.exe b.out"
2417# Try to create an executable without -o first, disregard a.out.
2418# It will help us diagnose broken compilers, and finding out an intuition
2419# of exeext.
ec2075e9
BK
2420echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2421echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
ff66d28f
PE
2422ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2423if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2424 (eval $ac_link_default) 2>&5
2425 ac_status=$?
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }; then
2428 # Find the output, starting from the most likely. This scheme is
2429# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2430# resort.
2431
2432# Be careful to initialize this variable, since it used to be cached.
2433# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2434ac_cv_exeext=
2435# b.out is created by i960 compilers.
2436for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2437do
2438 test -f "$ac_file" || continue
2439 case $ac_file in
2440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ec2075e9 2441 ;;
ff66d28f 2442 conftest.$ac_ext )
ec2075e9
BK
2443 # This is the source file.
2444 ;;
ff66d28f 2445 [ab].out )
ec2075e9
BK
2446 # We found the default executable, but exeext='' is most
2447 # certainly right.
2448 break;;
ff66d28f 2449 *.* )
ec2075e9
BK
2450 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2451 # FIXME: I believe we export ac_cv_exeext for Libtool,
2452 # but it would be cool to find out if it's true. Does anybody
2453 # maintain Libtool? --akim.
2454 export ac_cv_exeext
2455 break;;
ff66d28f 2456 * )
ec2075e9 2457 break;;
ff66d28f
PE
2458 esac
2459done
b2dad0e3 2460else
ff66d28f
PE
2461 echo "$as_me: failed program was:" >&5
2462sed 's/^/| /' conftest.$ac_ext >&5
2463
2464{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2465See \`config.log' for more details." >&5
2466echo "$as_me: error: C compiler cannot create executables
2467See \`config.log' for more details." >&2;}
2468 { (exit 77); exit 77; }; }
2469fi
2470
2471ac_exeext=$ac_cv_exeext
2472echo "$as_me:$LINENO: result: $ac_file" >&5
2473echo "${ECHO_T}$ac_file" >&6
2474
2475# Check the compiler produces executables we can run. If not, either
2476# the compiler is broken, or we cross compile.
2477echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2478echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2479# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2480# If not cross compiling, check that we can run a simple program.
2481if test "$cross_compiling" != yes; then
2482 if { ac_try='./$ac_file'
2483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484 (eval $ac_try) 2>&5
2485 ac_status=$?
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; }; then
2488 cross_compiling=no
2489 else
2490 if test "$cross_compiling" = maybe; then
2491 cross_compiling=yes
2492 else
2493 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2494If you meant to cross compile, use \`--host'.
2495See \`config.log' for more details." >&5
2496echo "$as_me: error: cannot run C compiled programs.
2497If you meant to cross compile, use \`--host'.
2498See \`config.log' for more details." >&2;}
2499 { (exit 1); exit 1; }; }
b2dad0e3 2500 fi
ff66d28f 2501 fi
b2dad0e3 2502fi
ff66d28f
PE
2503echo "$as_me:$LINENO: result: yes" >&5
2504echo "${ECHO_T}yes" >&6
2505
2506rm -f a.out a.exe conftest$ac_cv_exeext b.out
2507ac_clean_files=$ac_clean_files_save
2508# Check the compiler produces executables we can run. If not, either
2509# the compiler is broken, or we cross compile.
2510echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2511echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2512echo "$as_me:$LINENO: result: $cross_compiling" >&5
2513echo "${ECHO_T}$cross_compiling" >&6
2514
2515echo "$as_me:$LINENO: checking for suffix of executables" >&5
2516echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2518 (eval $ac_link) 2>&5
2519 ac_status=$?
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; then
2522 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2523# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2524# work properly (i.e., refer to `conftest.exe'), while it won't with
2525# `rm'.
2526for ac_file in conftest.exe conftest conftest.*; do
2527 test -f "$ac_file" || continue
2528 case $ac_file in
2529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2530 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ec2075e9
BK
2531 export ac_cv_exeext
2532 break;;
ff66d28f
PE
2533 * ) break;;
2534 esac
2535done
b2dad0e3 2536else
ff66d28f
PE
2537 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2538See \`config.log' for more details." >&5
2539echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2540See \`config.log' for more details." >&2;}
2541 { (exit 1); exit 1; }; }
b2dad0e3
BK
2542fi
2543
ff66d28f
PE
2544rm -f conftest$ac_cv_exeext
2545echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2546echo "${ECHO_T}$ac_cv_exeext" >&6
2547
2548rm -f conftest.$ac_ext
2549EXEEXT=$ac_cv_exeext
2550ac_exeext=$EXEEXT
72730fdb 2551fi
ff66d28f
PE
2552echo "$as_me:$LINENO: checking for suffix of object files" >&5
2553echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2554if test "${ac_cv_objext+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2556else
2557 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
2558/* confdefs.h. */
2559_ACEOF
2560cat confdefs.h >>conftest.$ac_ext
2561cat >>conftest.$ac_ext <<_ACEOF
2562/* end confdefs.h. */
2563
2564int
2565main ()
2566{
2567
2568 ;
2569 return 0;
2570}
2571_ACEOF
2572rm -f conftest.o conftest.obj
2573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2574 (eval $ac_compile) 2>&5
2575 ac_status=$?
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; then
2578 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2579 case $ac_file in
2580 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2581 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2582 break;;
2583 esac
2584done
b2dad0e3 2585else
ff66d28f
PE
2586 echo "$as_me: failed program was:" >&5
2587sed 's/^/| /' conftest.$ac_ext >&5
2588
2589{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2590See \`config.log' for more details." >&5
2591echo "$as_me: error: cannot compute suffix of object files: cannot compile
2592See \`config.log' for more details." >&2;}
2593 { (exit 1); exit 1; }; }
46840bcd 2594fi
ff66d28f
PE
2595
2596rm -f conftest.$ac_cv_objext conftest.$ac_ext
46840bcd 2597fi
ff66d28f
PE
2598echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2599echo "${ECHO_T}$ac_cv_objext" >&6
2600OBJEXT=$ac_cv_objext
2601ac_objext=$OBJEXT
2602echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2603echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2604if test "${ac_cv_c_compiler_gnu+set}" = set; then
2605 echo $ECHO_N "(cached) $ECHO_C" >&6
2606else
2607 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
2608/* confdefs.h. */
2609_ACEOF
2610cat confdefs.h >>conftest.$ac_ext
2611cat >>conftest.$ac_ext <<_ACEOF
2612/* end confdefs.h. */
46840bcd 2613
ff66d28f
PE
2614int
2615main ()
2616{
2617#ifndef __GNUC__
2618 choke me
2619#endif
2620
2621 ;
2622 return 0;
2623}
2624_ACEOF
2625rm -f conftest.$ac_objext
2626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 2627 (eval $ac_compile) 2>conftest.er1
ff66d28f 2628 ac_status=$?
ec2075e9
BK
2629 grep -v '^ *+' conftest.er1 >conftest.err
2630 rm -f conftest.er1
2631 cat conftest.err >&5
ff66d28f
PE
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); } &&
780028b6
BK
2634 { ac_try='test -z "$ac_c_werror_flag"
2635 || test ! -s conftest.err'
ec2075e9
BK
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 (eval $ac_try) 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; } &&
2641 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643 (eval $ac_try) 2>&5
2644 ac_status=$?
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; }; then
2647 ac_compiler_gnu=yes
2648else
2649 echo "$as_me: failed program was:" >&5
2650sed 's/^/| /' conftest.$ac_ext >&5
2651
2652ac_compiler_gnu=no
2653fi
ec2075e9 2654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
2655ac_cv_c_compiler_gnu=$ac_compiler_gnu
2656
2657fi
2658echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2659echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2660GCC=`test $ac_compiler_gnu = yes && echo yes`
2661ac_test_CFLAGS=${CFLAGS+set}
2662ac_save_CFLAGS=$CFLAGS
2663CFLAGS="-g"
2664echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2665echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2666if test "${ac_cv_prog_cc_g+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2668else
2669 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
2670/* confdefs.h. */
2671_ACEOF
2672cat confdefs.h >>conftest.$ac_ext
2673cat >>conftest.$ac_ext <<_ACEOF
2674/* end confdefs.h. */
2675
2676int
2677main ()
2678{
2679
2680 ;
2681 return 0;
2682}
2683_ACEOF
2684rm -f conftest.$ac_objext
2685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 2686 (eval $ac_compile) 2>conftest.er1
ff66d28f 2687 ac_status=$?
ec2075e9
BK
2688 grep -v '^ *+' conftest.er1 >conftest.err
2689 rm -f conftest.er1
2690 cat conftest.err >&5
ff66d28f
PE
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); } &&
780028b6
BK
2693 { ac_try='test -z "$ac_c_werror_flag"
2694 || test ! -s conftest.err'
ec2075e9
BK
2695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696 (eval $ac_try) 2>&5
2697 ac_status=$?
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }; } &&
2700 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
2701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702 (eval $ac_try) 2>&5
2703 ac_status=$?
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }; }; then
2706 ac_cv_prog_cc_g=yes
b2dad0e3 2707else
ff66d28f
PE
2708 echo "$as_me: failed program was:" >&5
2709sed 's/^/| /' conftest.$ac_ext >&5
b2dad0e3 2710
ff66d28f 2711ac_cv_prog_cc_g=no
b2dad0e3 2712fi
ec2075e9 2713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
2714fi
2715echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2716echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2717if test "$ac_test_CFLAGS" = set; then
2718 CFLAGS=$ac_save_CFLAGS
2719elif test $ac_cv_prog_cc_g = yes; then
2720 if test "$GCC" = yes; then
2721 CFLAGS="-g -O2"
b2dad0e3 2722 else
ff66d28f 2723 CFLAGS="-g"
b2dad0e3 2724 fi
ff66d28f
PE
2725else
2726 if test "$GCC" = yes; then
2727 CFLAGS="-O2"
2728 else
2729 CFLAGS=
2730 fi
2731fi
2732echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2733echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2734if test "${ac_cv_prog_cc_stdc+set}" = set; then
2735 echo $ECHO_N "(cached) $ECHO_C" >&6
2736else
2737 ac_cv_prog_cc_stdc=no
2738ac_save_CC=$CC
2739cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
2740/* confdefs.h. */
2741_ACEOF
2742cat confdefs.h >>conftest.$ac_ext
2743cat >>conftest.$ac_ext <<_ACEOF
2744/* end confdefs.h. */
2745#include <stdarg.h>
2746#include <stdio.h>
2747#include <sys/types.h>
2748#include <sys/stat.h>
2749/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2750struct buf { int x; };
2751FILE * (*rcsopen) (struct buf *, struct stat *, int);
2752static char *e (p, i)
2753 char **p;
2754 int i;
2755{
2756 return p[i];
2757}
2758static char *f (char * (*g) (char **, int), char **p, ...)
2759{
2760 char *s;
2761 va_list v;
2762 va_start (v,p);
2763 s = g (p, va_arg (v,int));
2764 va_end (v);
2765 return s;
2766}
ec2075e9
BK
2767
2768/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2769 function prototypes and stuff, but not '\xHH' hex character constants.
2770 These don't provoke an error unfortunately, instead are silently treated
2771 as 'x'. The following induces an error, until -std1 is added to get
2772 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2773 array size at least. It's necessary to write '\x00'==0 to get something
2774 that's true only with -std1. */
2775int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2776
ff66d28f
PE
2777int test (int i, double x);
2778struct s1 {int (*f) (int a);};
2779struct s2 {int (*f) (double a);};
2780int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2781int argc;
2782char **argv;
2783int
2784main ()
2785{
2786return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2787 ;
2788 return 0;
2789}
2790_ACEOF
2791# Don't try gcc -ansi; that turns off useful extensions and
2792# breaks some systems' header files.
2793# AIX -qlanglvl=ansi
2794# Ultrix and OSF/1 -std1
2795# HP-UX 10.20 and later -Ae
2796# HP-UX older versions -Aa -D_HPUX_SOURCE
2797# SVR4 -Xc -D__EXTENSIONS__
2798for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2799do
2800 CC="$ac_save_CC $ac_arg"
2801 rm -f conftest.$ac_objext
2802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 2803 (eval $ac_compile) 2>conftest.er1
ff66d28f 2804 ac_status=$?
ec2075e9
BK
2805 grep -v '^ *+' conftest.er1 >conftest.err
2806 rm -f conftest.er1
2807 cat conftest.err >&5
ff66d28f
PE
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); } &&
780028b6
BK
2810 { ac_try='test -z "$ac_c_werror_flag"
2811 || test ! -s conftest.err'
ec2075e9
BK
2812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 (eval $ac_try) 2>&5
2814 ac_status=$?
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; } &&
2817 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
2818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819 (eval $ac_try) 2>&5
2820 ac_status=$?
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); }; }; then
2823 ac_cv_prog_cc_stdc=$ac_arg
2824break
2825else
2826 echo "$as_me: failed program was:" >&5
2827sed 's/^/| /' conftest.$ac_ext >&5
2828
b2dad0e3 2829fi
ec2075e9 2830rm -f conftest.err conftest.$ac_objext
ff66d28f
PE
2831done
2832rm -f conftest.$ac_ext conftest.$ac_objext
2833CC=$ac_save_CC
b2dad0e3 2834
ff66d28f 2835fi
b2dad0e3 2836
ff66d28f
PE
2837case "x$ac_cv_prog_cc_stdc" in
2838 x|xno)
2839 echo "$as_me:$LINENO: result: none needed" >&5
2840echo "${ECHO_T}none needed" >&6 ;;
2841 *)
2842 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2843echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2844 CC="$CC $ac_cv_prog_cc_stdc" ;;
2845esac
b2dad0e3 2846
ff66d28f
PE
2847# Some people use a C++ compiler to compile C. Since we use `exit',
2848# in C++ we need to declare it. In case someone uses the same compiler
2849# for both compiling C and C++ we need to have the C++ compiler decide
2850# the declaration of exit, since it's the most demanding environment.
2851cat >conftest.$ac_ext <<_ACEOF
2852#ifndef __cplusplus
2853 choke me
2854#endif
2855_ACEOF
2856rm -f conftest.$ac_objext
2857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 2858 (eval $ac_compile) 2>conftest.er1
ff66d28f 2859 ac_status=$?
ec2075e9
BK
2860 grep -v '^ *+' conftest.er1 >conftest.err
2861 rm -f conftest.er1
2862 cat conftest.err >&5
ff66d28f
PE
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); } &&
780028b6
BK
2865 { ac_try='test -z "$ac_c_werror_flag"
2866 || test ! -s conftest.err'
ec2075e9
BK
2867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868 (eval $ac_try) 2>&5
2869 ac_status=$?
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); }; } &&
2872 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
2873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874 (eval $ac_try) 2>&5
2875 ac_status=$?
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); }; }; then
2878 for ac_declaration in \
ec2075e9 2879 '' \
ff66d28f
PE
2880 'extern "C" void std::exit (int) throw (); using std::exit;' \
2881 'extern "C" void std::exit (int); using std::exit;' \
2882 'extern "C" void exit (int) throw ();' \
2883 'extern "C" void exit (int);' \
2884 'void exit (int);'
2885do
2886 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
2887/* confdefs.h. */
2888_ACEOF
2889cat confdefs.h >>conftest.$ac_ext
2890cat >>conftest.$ac_ext <<_ACEOF
2891/* end confdefs.h. */
158960ba 2892$ac_declaration
ec2075e9 2893#include <stdlib.h>
ff66d28f
PE
2894int
2895main ()
2896{
2897exit (42);
2898 ;
2899 return 0;
2900}
2901_ACEOF
2902rm -f conftest.$ac_objext
2903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 2904 (eval $ac_compile) 2>conftest.er1
ff66d28f 2905 ac_status=$?
ec2075e9
BK
2906 grep -v '^ *+' conftest.er1 >conftest.err
2907 rm -f conftest.er1
2908 cat conftest.err >&5
ff66d28f
PE
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); } &&
780028b6
BK
2911 { ac_try='test -z "$ac_c_werror_flag"
2912 || test ! -s conftest.err'
ec2075e9
BK
2913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914 (eval $ac_try) 2>&5
2915 ac_status=$?
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }; } &&
2918 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
2919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2920 (eval $ac_try) 2>&5
2921 ac_status=$?
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); }; }; then
2924 :
2925else
2926 echo "$as_me: failed program was:" >&5
2927sed 's/^/| /' conftest.$ac_ext >&5
b2dad0e3 2928
ff66d28f
PE
2929continue
2930fi
ec2075e9 2931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f 2932 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
2933/* confdefs.h. */
2934_ACEOF
2935cat confdefs.h >>conftest.$ac_ext
2936cat >>conftest.$ac_ext <<_ACEOF
2937/* end confdefs.h. */
2938$ac_declaration
2939int
2940main ()
2941{
2942exit (42);
2943 ;
2944 return 0;
2945}
2946_ACEOF
2947rm -f conftest.$ac_objext
2948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 2949 (eval $ac_compile) 2>conftest.er1
ff66d28f 2950 ac_status=$?
ec2075e9
BK
2951 grep -v '^ *+' conftest.er1 >conftest.err
2952 rm -f conftest.er1
2953 cat conftest.err >&5
ff66d28f
PE
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } &&
780028b6
BK
2956 { ac_try='test -z "$ac_c_werror_flag"
2957 || test ! -s conftest.err'
ec2075e9
BK
2958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959 (eval $ac_try) 2>&5
2960 ac_status=$?
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; } &&
2963 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
2964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965 (eval $ac_try) 2>&5
2966 ac_status=$?
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; }; then
2969 break
2970else
2971 echo "$as_me: failed program was:" >&5
2972sed 's/^/| /' conftest.$ac_ext >&5
2973
2974fi
ec2075e9 2975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
2976done
2977rm -f conftest*
2978if test -n "$ac_declaration"; then
2979 echo '#ifdef __cplusplus' >>confdefs.h
2980 echo $ac_declaration >>confdefs.h
2981 echo '#endif' >>confdefs.h
2982fi
b2dad0e3 2983
b2dad0e3 2984else
ff66d28f
PE
2985 echo "$as_me: failed program was:" >&5
2986sed 's/^/| /' conftest.$ac_ext >&5
2987
b2dad0e3 2988fi
ec2075e9 2989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
2990ac_ext=c
2991ac_cpp='$CPP $CPPFLAGS'
2992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994ac_compiler_gnu=$ac_cv_c_compiler_gnu
2995
ff66d28f
PE
2996 ac_ext=cc
2997ac_cpp='$CXXCPP $CPPFLAGS'
2998ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2999ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3000ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3001if test -n "$ac_tool_prefix"; then
3002 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3003 do
3004 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3005set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3006echo "$as_me:$LINENO: checking for $ac_word" >&5
3007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3008if test "${glibcxx_cv_prog_CXX+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3010else
3011 if test -n "$CXX"; then
3012 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
3013else
3014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015for as_dir in $PATH
3016do
3017 IFS=$as_save_IFS
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3021 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 break 2
3024 fi
3025done
3026done
3027
3028fi
3029fi
3030CXX=$glibcxx_cv_prog_CXX
3031if test -n "$CXX"; then
3032 echo "$as_me:$LINENO: result: $CXX" >&5
3033echo "${ECHO_T}$CXX" >&6
b2dad0e3 3034else
ff66d28f
PE
3035 echo "$as_me:$LINENO: result: no" >&5
3036echo "${ECHO_T}no" >&6
b2dad0e3 3037fi
b2dad0e3 3038
ff66d28f
PE
3039 test -n "$CXX" && break
3040 done
3041fi
3042if test -z "$CXX"; then
3043 ac_ct_CXX=$CXX
3044 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3045do
3046 # Extract the first word of "$ac_prog", so it can be a program name with args.
3047set dummy $ac_prog; ac_word=$2
3048echo "$as_me:$LINENO: checking for $ac_word" >&5
3049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3050if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
3052else
3053 if test -n "$ac_ct_CXX"; then
3054 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3055else
3056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057for as_dir in $PATH
3058do
3059 IFS=$as_save_IFS
3060 test -z "$as_dir" && as_dir=.
3061 for ac_exec_ext in '' $ac_executable_extensions; do
3062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3063 ac_cv_prog_ac_ct_CXX="$ac_prog"
3064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 break 2
b2dad0e3 3066 fi
ff66d28f
PE
3067done
3068done
3069
b2dad0e3 3070fi
ff66d28f
PE
3071fi
3072ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3073if test -n "$ac_ct_CXX"; then
3074 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3075echo "${ECHO_T}$ac_ct_CXX" >&6
3076else
3077 echo "$as_me:$LINENO: result: no" >&5
3078echo "${ECHO_T}no" >&6
b2dad0e3
BK
3079fi
3080
ff66d28f
PE
3081 test -n "$ac_ct_CXX" && break
3082done
3083test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3084
3085 CXX=$ac_ct_CXX
3086fi
3087
3088
3089# Provide some information about the compiler.
3090echo "$as_me:$LINENO:" \
3091 "checking for C++ compiler version" >&5
3092ac_compiler=`set X $ac_compile; echo $2`
3093{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3094 (eval $ac_compiler --version </dev/null >&5) 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }
3098{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3099 (eval $ac_compiler -v </dev/null >&5) 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }
3103{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3104 (eval $ac_compiler -V </dev/null >&5) 2>&5
3105 ac_status=$?
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }
3108
3109echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3110echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3111if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3113else
3114 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3115/* confdefs.h. */
3116_ACEOF
3117cat confdefs.h >>conftest.$ac_ext
3118cat >>conftest.$ac_ext <<_ACEOF
3119/* end confdefs.h. */
3120
3121int
3122main ()
3123{
3124#ifndef __GNUC__
3125 choke me
3126#endif
3127
3128 ;
3129 return 0;
3130}
3131_ACEOF
3132rm -f conftest.$ac_objext
3133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 3134 (eval $ac_compile) 2>conftest.er1
ff66d28f 3135 ac_status=$?
ec2075e9
BK
3136 grep -v '^ *+' conftest.er1 >conftest.err
3137 rm -f conftest.er1
3138 cat conftest.err >&5
ff66d28f
PE
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } &&
780028b6
BK
3141 { ac_try='test -z "$ac_cxx_werror_flag"
3142 || test ! -s conftest.err'
ec2075e9
BK
3143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3144 (eval $ac_try) 2>&5
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; } &&
3148 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
3149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3150 (eval $ac_try) 2>&5
3151 ac_status=$?
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; }; then
3154 ac_compiler_gnu=yes
3155else
3156 echo "$as_me: failed program was:" >&5
3157sed 's/^/| /' conftest.$ac_ext >&5
3158
3159ac_compiler_gnu=no
3160fi
ec2075e9 3161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
3162ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3163
3164fi
3165echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3166echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3167GXX=`test $ac_compiler_gnu = yes && echo yes`
3168ac_test_CXXFLAGS=${CXXFLAGS+set}
3169ac_save_CXXFLAGS=$CXXFLAGS
3170CXXFLAGS="-g"
3171echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3172echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3173if test "${ac_cv_prog_cxx_g+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3175else
3176 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3177/* confdefs.h. */
3178_ACEOF
3179cat confdefs.h >>conftest.$ac_ext
3180cat >>conftest.$ac_ext <<_ACEOF
3181/* end confdefs.h. */
3182
3183int
3184main ()
3185{
b2dad0e3 3186
ff66d28f
PE
3187 ;
3188 return 0;
3189}
3190_ACEOF
3191rm -f conftest.$ac_objext
3192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 3193 (eval $ac_compile) 2>conftest.er1
ff66d28f 3194 ac_status=$?
ec2075e9
BK
3195 grep -v '^ *+' conftest.er1 >conftest.err
3196 rm -f conftest.er1
3197 cat conftest.err >&5
ff66d28f
PE
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } &&
780028b6
BK
3200 { ac_try='test -z "$ac_cxx_werror_flag"
3201 || test ! -s conftest.err'
ec2075e9
BK
3202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3203 (eval $ac_try) 2>&5
3204 ac_status=$?
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); }; } &&
3207 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
3208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3209 (eval $ac_try) 2>&5
3210 ac_status=$?
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); }; }; then
3213 ac_cv_prog_cxx_g=yes
3214else
3215 echo "$as_me: failed program was:" >&5
3216sed 's/^/| /' conftest.$ac_ext >&5
3217
3218ac_cv_prog_cxx_g=no
3219fi
ec2075e9 3220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
3221fi
3222echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3223echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3224if test "$ac_test_CXXFLAGS" = set; then
3225 CXXFLAGS=$ac_save_CXXFLAGS
3226elif test $ac_cv_prog_cxx_g = yes; then
3227 if test "$GXX" = yes; then
3228 CXXFLAGS="-g -O2"
3229 else
3230 CXXFLAGS="-g"
3231 fi
3232else
3233 if test "$GXX" = yes; then
3234 CXXFLAGS="-O2"
3235 else
3236 CXXFLAGS=
5780a46b 3237 fi
ff66d28f
PE
3238fi
3239for ac_declaration in \
ec2075e9 3240 '' \
ff66d28f
PE
3241 'extern "C" void std::exit (int) throw (); using std::exit;' \
3242 'extern "C" void std::exit (int); using std::exit;' \
3243 'extern "C" void exit (int) throw ();' \
3244 'extern "C" void exit (int);' \
3245 'void exit (int);'
3246do
3247 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3248/* confdefs.h. */
3249_ACEOF
3250cat confdefs.h >>conftest.$ac_ext
3251cat >>conftest.$ac_ext <<_ACEOF
3252/* end confdefs.h. */
158960ba 3253$ac_declaration
ec2075e9 3254#include <stdlib.h>
ff66d28f
PE
3255int
3256main ()
3257{
3258exit (42);
3259 ;
3260 return 0;
3261}
3262_ACEOF
3263rm -f conftest.$ac_objext
3264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 3265 (eval $ac_compile) 2>conftest.er1
ff66d28f 3266 ac_status=$?
ec2075e9
BK
3267 grep -v '^ *+' conftest.er1 >conftest.err
3268 rm -f conftest.er1
3269 cat conftest.err >&5
ff66d28f
PE
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); } &&
780028b6
BK
3272 { ac_try='test -z "$ac_cxx_werror_flag"
3273 || test ! -s conftest.err'
ec2075e9
BK
3274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275 (eval $ac_try) 2>&5
3276 ac_status=$?
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; } &&
3279 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
3280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3281 (eval $ac_try) 2>&5
3282 ac_status=$?
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); }; }; then
3285 :
3286else
3287 echo "$as_me: failed program was:" >&5
3288sed 's/^/| /' conftest.$ac_ext >&5
b2dad0e3 3289
ff66d28f
PE
3290continue
3291fi
ec2075e9 3292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f 3293 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3294/* confdefs.h. */
3295_ACEOF
3296cat confdefs.h >>conftest.$ac_ext
3297cat >>conftest.$ac_ext <<_ACEOF
3298/* end confdefs.h. */
3299$ac_declaration
3300int
3301main ()
3302{
3303exit (42);
3304 ;
3305 return 0;
3306}
3307_ACEOF
3308rm -f conftest.$ac_objext
3309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 3310 (eval $ac_compile) 2>conftest.er1
ff66d28f 3311 ac_status=$?
ec2075e9
BK
3312 grep -v '^ *+' conftest.er1 >conftest.err
3313 rm -f conftest.er1
3314 cat conftest.err >&5
ff66d28f
PE
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); } &&
780028b6
BK
3317 { ac_try='test -z "$ac_cxx_werror_flag"
3318 || test ! -s conftest.err'
ec2075e9
BK
3319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320 (eval $ac_try) 2>&5
3321 ac_status=$?
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); }; } &&
3324 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
3325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3326 (eval $ac_try) 2>&5
3327 ac_status=$?
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); }; }; then
3330 break
3331else
3332 echo "$as_me: failed program was:" >&5
3333sed 's/^/| /' conftest.$ac_ext >&5
3334
3335fi
ec2075e9 3336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
3337done
3338rm -f conftest*
3339if test -n "$ac_declaration"; then
3340 echo '#ifdef __cplusplus' >>confdefs.h
3341 echo $ac_declaration >>confdefs.h
3342 echo '#endif' >>confdefs.h
3343fi
3840fa2a 3344
ff66d28f
PE
3345ac_ext=c
3346ac_cpp='$CPP $CPPFLAGS'
3347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3349ac_compiler_gnu=$ac_cv_c_compiler_gnu
16da539b 3350
ff66d28f 3351 CXXFLAGS="$save_CXXFLAGS"
d0941a31
PE
3352
3353
33590f13 3354
f6dda651 3355
ff66d28f
PE
3356 # For directory versioning (e.g., headers) and other variables.
3357 echo "$as_me:$LINENO: checking for GCC version number" >&5
3358echo $ECHO_N "checking for GCC version number... $ECHO_C" >&6
3359 gcc_version=`$CXX -dumpversion`
3360 echo "$as_me:$LINENO: result: $gcc_version" >&5
3361echo "${ECHO_T}$gcc_version" >&6
2f235b6d 3362
ff66d28f
PE
3363 # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't
3364 # available). Uncomment the next line to force a particular method.
3365 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3366echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3367LN_S=$as_ln_s
3368if test "$LN_S" = "ln -s"; then
3369 echo "$as_me:$LINENO: result: yes" >&5
3370echo "${ECHO_T}yes" >&6
2f235b6d 3371else
ff66d28f
PE
3372 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3373echo "${ECHO_T}no, using $LN_S" >&6
2f235b6d 3374fi
2f235b6d 3375
ff66d28f 3376 #LN_S='cp -p'
2f235b6d 3377
ff66d28f
PE
3378 if test -n "$ac_tool_prefix"; then
3379 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3380set dummy ${ac_tool_prefix}as; ac_word=$2
3381echo "$as_me:$LINENO: checking for $ac_word" >&5
3382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3383if test "${ac_cv_prog_AS+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
2f235b6d 3385else
ff66d28f
PE
3386 if test -n "$AS"; then
3387 ac_cv_prog_AS="$AS" # Let the user override the test.
2f235b6d 3388else
ff66d28f
PE
3389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390for as_dir in $PATH
3391do
3392 IFS=$as_save_IFS
3393 test -z "$as_dir" && as_dir=.
3394 for ac_exec_ext in '' $ac_executable_extensions; do
3395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3396 ac_cv_prog_AS="${ac_tool_prefix}as"
3397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3398 break 2
3399 fi
3400done
3401done
3402
2f235b6d 3403fi
2f235b6d 3404fi
ff66d28f
PE
3405AS=$ac_cv_prog_AS
3406if test -n "$AS"; then
3407 echo "$as_me:$LINENO: result: $AS" >&5
3408echo "${ECHO_T}$AS" >&6
2f235b6d 3409else
ff66d28f
PE
3410 echo "$as_me:$LINENO: result: no" >&5
3411echo "${ECHO_T}no" >&6
2f235b6d
PE
3412fi
3413
ff66d28f
PE
3414fi
3415if test -z "$ac_cv_prog_AS"; then
3416 ac_ct_AS=$AS
3417 # Extract the first word of "as", so it can be a program name with args.
3418set dummy as; ac_word=$2
3419echo "$as_me:$LINENO: checking for $ac_word" >&5
3420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3421if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3423else
3424 if test -n "$ac_ct_AS"; then
3425 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3426else
3427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428for as_dir in $PATH
3429do
3430 IFS=$as_save_IFS
3431 test -z "$as_dir" && as_dir=.
3432 for ac_exec_ext in '' $ac_executable_extensions; do
3433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434 ac_cv_prog_ac_ct_AS="as"
3435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3436 break 2
3437 fi
3438done
3439done
2f235b6d 3440
ff66d28f
PE
3441fi
3442fi
3443ac_ct_AS=$ac_cv_prog_ac_ct_AS
3444if test -n "$ac_ct_AS"; then
3445 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3446echo "${ECHO_T}$ac_ct_AS" >&6
3447else
3448 echo "$as_me:$LINENO: result: no" >&5
3449echo "${ECHO_T}no" >&6
3450fi
2f235b6d 3451
ff66d28f
PE
3452 AS=$ac_ct_AS
3453else
3454 AS="$ac_cv_prog_AS"
2f235b6d 3455fi
2f235b6d 3456
ff66d28f
PE
3457 if test -n "$ac_tool_prefix"; then
3458 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3459set dummy ${ac_tool_prefix}ar; ac_word=$2
3460echo "$as_me:$LINENO: checking for $ac_word" >&5
3461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462if test "${ac_cv_prog_AR+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3464else
3465 if test -n "$AR"; then
3466 ac_cv_prog_AR="$AR" # Let the user override the test.
3467else
3468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469for as_dir in $PATH
3470do
3471 IFS=$as_save_IFS
3472 test -z "$as_dir" && as_dir=.
3473 for ac_exec_ext in '' $ac_executable_extensions; do
3474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3475 ac_cv_prog_AR="${ac_tool_prefix}ar"
3476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3477 break 2
3478 fi
3479done
3480done
2f235b6d 3481
ff66d28f
PE
3482fi
3483fi
3484AR=$ac_cv_prog_AR
3485if test -n "$AR"; then
3486 echo "$as_me:$LINENO: result: $AR" >&5
3487echo "${ECHO_T}$AR" >&6
3488else
3489 echo "$as_me:$LINENO: result: no" >&5
3490echo "${ECHO_T}no" >&6
3491fi
2f235b6d 3492
ff66d28f
PE
3493fi
3494if test -z "$ac_cv_prog_AR"; then
3495 ac_ct_AR=$AR
3496 # Extract the first word of "ar", so it can be a program name with args.
3497set dummy ar; ac_word=$2
3498echo "$as_me:$LINENO: checking for $ac_word" >&5
3499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3500if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502else
3503 if test -n "$ac_ct_AR"; then
3504 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3505else
3506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507for as_dir in $PATH
3508do
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513 ac_cv_prog_ac_ct_AR="ar"
3514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 break 2
3516 fi
3517done
3518done
2f235b6d 3519
ff66d28f
PE
3520fi
3521fi
3522ac_ct_AR=$ac_cv_prog_ac_ct_AR
3523if test -n "$ac_ct_AR"; then
3524 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3525echo "${ECHO_T}$ac_ct_AR" >&6
2f235b6d 3526else
ff66d28f
PE
3527 echo "$as_me:$LINENO: result: no" >&5
3528echo "${ECHO_T}no" >&6
2f235b6d
PE
3529fi
3530
ff66d28f 3531 AR=$ac_ct_AR
2f235b6d 3532else
ff66d28f 3533 AR="$ac_cv_prog_AR"
2f235b6d
PE
3534fi
3535
ff66d28f
PE
3536 if test -n "$ac_tool_prefix"; then
3537 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3538set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3539echo "$as_me:$LINENO: checking for $ac_word" >&5
3540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3541if test "${ac_cv_prog_RANLIB+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3543else
3544 if test -n "$RANLIB"; then
3545 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3546else
3547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548for as_dir in $PATH
3549do
3550 IFS=$as_save_IFS
3551 test -z "$as_dir" && as_dir=.
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3554 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3556 break 2
3557 fi
3558done
3559done
3560
3561fi
3562fi
3563RANLIB=$ac_cv_prog_RANLIB
3564if test -n "$RANLIB"; then
3565 echo "$as_me:$LINENO: result: $RANLIB" >&5
3566echo "${ECHO_T}$RANLIB" >&6
2f235b6d 3567else
ff66d28f
PE
3568 echo "$as_me:$LINENO: result: no" >&5
3569echo "${ECHO_T}no" >&6
2f235b6d
PE
3570fi
3571
ff66d28f
PE
3572fi
3573if test -z "$ac_cv_prog_RANLIB"; then
3574 ac_ct_RANLIB=$RANLIB
3575 # Extract the first word of "ranlib", so it can be a program name with args.
3576set dummy ranlib; ac_word=$2
3577echo "$as_me:$LINENO: checking for $ac_word" >&5
3578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3579if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3581else
3582 if test -n "$ac_ct_RANLIB"; then
3583 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2f235b6d 3584else
ff66d28f
PE
3585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586for as_dir in $PATH
3587do
3588 IFS=$as_save_IFS
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3592 ac_cv_prog_ac_ct_RANLIB="ranlib"
3593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 break 2
3595 fi
3596done
3597done
3598
3599 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3600fi
3601fi
3602ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3603if test -n "$ac_ct_RANLIB"; then
3604 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3605echo "${ECHO_T}$ac_ct_RANLIB" >&6
3606else
3607 echo "$as_me:$LINENO: result: no" >&5
3608echo "${ECHO_T}no" >&6
2f235b6d
PE
3609fi
3610
ff66d28f 3611 RANLIB=$ac_ct_RANLIB
2f235b6d 3612else
ff66d28f 3613 RANLIB="$ac_cv_prog_RANLIB"
2f235b6d
PE
3614fi
3615
3616
ff66d28f
PE
3617 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3618echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3619 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3620if test "${enable_maintainer_mode+set}" = set; then
3621 enableval="$enable_maintainer_mode"
3622 USE_MAINTAINER_MODE=$enableval
3623else
3624 USE_MAINTAINER_MODE=no
3625fi;
3626 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3627echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2f235b6d
PE
3628
3629
ff66d28f
PE
3630if test $USE_MAINTAINER_MODE = yes; then
3631 MAINTAINER_MODE_TRUE=
3632 MAINTAINER_MODE_FALSE='#'
3633else
3634 MAINTAINER_MODE_TRUE='#'
3635 MAINTAINER_MODE_FALSE=
3636fi
3637
3638 MAINT=$MAINTAINER_MODE_TRUE
2f235b6d 3639
5780a46b 3640
f4c79fef 3641
92eabea2
PE
3642 # Set up safe default values for all subsequent AM_CONDITIONAL tests
3643 # which are themselves conditionally expanded.
3644 ## (Right now, this only matters for enable_wchar_t, but nothing prevents
3645 ## other macros from doing the same. This should be automated.) -pme
ff66d28f
PE
3646 need_libmath=no
3647 enable_wchar_t=no
3648 #enable_libstdcxx_debug=no
3649 #enable_libstdcxx_pch=no
3650 #enable_cheaders=c
3651 #c_compatibility=no
3652 #enable_abi_check=no
3653 #enable_symvers=no
92eabea2 3654 #enable_hosted_libstdcxx=yes
ff66d28f
PE
3655
3656 # Find platform-specific directories containing configuration info.
3657 # Also possibly modify flags used elsewhere, as needed by the platform.
3658
3659 . $glibcxx_srcdir/configure.host
3660 { echo "$as_me:$LINENO: CPU config directory is $cpu_include_dir" >&5
3661echo "$as_me: CPU config directory is $cpu_include_dir" >&6;}
3662 { echo "$as_me:$LINENO: OS config directory is $os_include_dir" >&5
3663echo "$as_me: OS config directory is $os_include_dir" >&6;}
3664
3665
3666
3667#AC_MSG_NOTICE([====== Starting libtool configuration])
3668
b2dad0e3
BK
3669# Check whether --enable-shared or --disable-shared was given.
3670if test "${enable_shared+set}" = set; then
3671 enableval="$enable_shared"
3672 p=${PACKAGE-default}
c21b6f87 3673case $enableval in
b2dad0e3
BK
3674yes) enable_shared=yes ;;
3675no) enable_shared=no ;;
3676*)
3677 enable_shared=no
3678 # Look at the argument we got. We use all the common list separators.
3679 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3680 for pkg in $enableval; do
3681 if test "X$pkg" = "X$p"; then
3682 enable_shared=yes
3683 fi
3684 done
3685 IFS="$ac_save_ifs"
3686 ;;
3687esac
3688else
3689 enable_shared=yes
ff66d28f 3690fi;
b2dad0e3
BK
3691# Check whether --enable-static or --disable-static was given.
3692if test "${enable_static+set}" = set; then
3693 enableval="$enable_static"
3694 p=${PACKAGE-default}
c21b6f87 3695case $enableval in
b2dad0e3
BK
3696yes) enable_static=yes ;;
3697no) enable_static=no ;;
3698*)
3699 enable_static=no
3700 # Look at the argument we got. We use all the common list separators.
3701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3702 for pkg in $enableval; do
3703 if test "X$pkg" = "X$p"; then
3704 enable_static=yes
3705 fi
3706 done
3707 IFS="$ac_save_ifs"
3708 ;;
3709esac
3710else
3711 enable_static=yes
ff66d28f 3712fi;
b2dad0e3
BK
3713# Check whether --enable-fast-install or --disable-fast-install was given.
3714if test "${enable_fast_install+set}" = set; then
3715 enableval="$enable_fast_install"
3716 p=${PACKAGE-default}
c21b6f87 3717case $enableval in
b2dad0e3
BK
3718yes) enable_fast_install=yes ;;
3719no) enable_fast_install=no ;;
3720*)
3721 enable_fast_install=no
3722 # Look at the argument we got. We use all the common list separators.
3723 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3724 for pkg in $enableval; do
3725 if test "X$pkg" = "X$p"; then
3726 enable_fast_install=yes
3727 fi
3728 done
3729 IFS="$ac_save_ifs"
3730 ;;
3731esac
3732else
3733 enable_fast_install=yes
ff66d28f 3734fi;
b2dad0e3 3735
b2dad0e3
BK
3736# Check whether --with-gnu-ld or --without-gnu-ld was given.
3737if test "${with_gnu_ld+set}" = set; then
3738 withval="$with_gnu_ld"
3739 test "$withval" = no || with_gnu_ld=yes
3740else
3741 with_gnu_ld=no
ff66d28f 3742fi;
b2dad0e3 3743ac_prog=ld
c21b6f87 3744if test "$GCC" = yes; then
b2dad0e3 3745 # Check if gcc -print-prog-name=ld gives a path.
ff66d28f
PE
3746 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3747echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3df64633
AO
3748 case $host in
3749 *-*-mingw*)
3750 # gcc leaves a trailing carriage return which upsets mingw
3751 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3752 *)
3753 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3754 esac
c21b6f87 3755 case $ac_prog in
b2dad0e3 3756 # Accept absolute paths.
3840fa2a 3757 [\\/]* | [A-Za-z]:[\\/]*)
b2dad0e3
BK
3758 re_direlt='/[^/][^/]*/\.\./'
3759 # Canonicalize the path of ld
3760 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3761 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3762 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3763 done
3764 test -z "$LD" && LD="$ac_prog"
3765 ;;
3766 "")
3767 # If it fails, then pretend we aren't using GCC.
3768 ac_prog=ld
3769 ;;
3770 *)
3771 # If it is relative, then search for the first ld in PATH.
3772 with_gnu_ld=unknown
3773 ;;
3774 esac
3775elif test "$with_gnu_ld" = yes; then
ff66d28f
PE
3776 echo "$as_me:$LINENO: checking for GNU ld" >&5
3777echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
b2dad0e3 3778else
ff66d28f
PE
3779 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3780echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
b2dad0e3 3781fi
ff66d28f
PE
3782if test "${lt_cv_path_LD+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3
BK
3784else
3785 if test -z "$LD"; then
3840fa2a 3786 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
b2dad0e3
BK
3787 for ac_dir in $PATH; do
3788 test -z "$ac_dir" && ac_dir=.
3840fa2a 3789 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
c21b6f87 3790 lt_cv_path_LD="$ac_dir/$ac_prog"
b2dad0e3
BK
3791 # Check to see if the program is GNU ld. I'd rather use --version,
3792 # but apparently some GNU ld's only accept -v.
3793 # Break only if it was the GNU/non-GNU ld that we prefer.
c21b6f87 3794 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
b2dad0e3
BK
3795 test "$with_gnu_ld" != no && break
3796 else
3797 test "$with_gnu_ld" != yes && break
3798 fi
3799 fi
3800 done
3801 IFS="$ac_save_ifs"
3802else
c21b6f87 3803 lt_cv_path_LD="$LD" # Let the user override the test with a path.
b2dad0e3
BK
3804fi
3805fi
3806
c21b6f87 3807LD="$lt_cv_path_LD"
b2dad0e3 3808if test -n "$LD"; then
ff66d28f
PE
3809 echo "$as_me:$LINENO: result: $LD" >&5
3810echo "${ECHO_T}$LD" >&6
b2dad0e3 3811else
ff66d28f
PE
3812 echo "$as_me:$LINENO: result: no" >&5
3813echo "${ECHO_T}no" >&6
b2dad0e3 3814fi
ff66d28f
PE
3815test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3816echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3817 { (exit 1); exit 1; }; }
3818echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3819echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3820if test "${lt_cv_prog_gnu_ld+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3
BK
3822else
3823 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3824if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
c21b6f87 3825 lt_cv_prog_gnu_ld=yes
b2dad0e3 3826else
c21b6f87 3827 lt_cv_prog_gnu_ld=no
b2dad0e3
BK
3828fi
3829fi
ff66d28f
PE
3830echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3831echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
c21b6f87 3832with_gnu_ld=$lt_cv_prog_gnu_ld
3df64633 3833
b2dad0e3 3834
ff66d28f
PE
3835echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3836echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3837if test "${lt_cv_ld_reload_flag+set}" = set; then
3838 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633
AO
3839else
3840 lt_cv_ld_reload_flag='-r'
3841fi
ff66d28f
PE
3842echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3843echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3df64633
AO
3844reload_flag=$lt_cv_ld_reload_flag
3845test -n "$reload_flag" && reload_flag=" $reload_flag"
b2dad0e3 3846
ff66d28f
PE
3847echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3848echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3849if test "${lt_cv_path_NM+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3
BK
3851else
3852 if test -n "$NM"; then
3853 # Let the user override the test.
c21b6f87 3854 lt_cv_path_NM="$NM"
b2dad0e3 3855else
3840fa2a 3856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
b2dad0e3
BK
3857 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3858 test -z "$ac_dir" && ac_dir=.
3df64633
AO
3859 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3860 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
b2dad0e3
BK
3861 # Check to see if the nm accepts a BSD-compat flag.
3862 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3863 # nm: unknown option "B" ignored
6d93bca4
AO
3864 # Tru64's nm complains that /dev/null is an invalid object file
3865 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
c21b6f87 3866 lt_cv_path_NM="$tmp_nm -B"
b2dad0e3 3867 break
3df64633 3868 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
c21b6f87 3869 lt_cv_path_NM="$tmp_nm -p"
b2dad0e3
BK
3870 break
3871 else
c21b6f87 3872 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
b2dad0e3
BK
3873 continue # so that we can try to find one that supports BSD flags
3874 fi
3875 fi
3876 done
3877 IFS="$ac_save_ifs"
c21b6f87 3878 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
b2dad0e3
BK
3879fi
3880fi
3881
c21b6f87 3882NM="$lt_cv_path_NM"
ff66d28f
PE
3883echo "$as_me:$LINENO: result: $NM" >&5
3884echo "${ECHO_T}$NM" >&6
b2dad0e3 3885
ff66d28f
PE
3886echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3887echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3888if test "${lt_cv_deplibs_check_method+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 3890else
3dd7094e 3891 lt_cv_file_magic_cmd='$MAGIC_CMD'
3df64633
AO
3892lt_cv_file_magic_test_file=
3893lt_cv_deplibs_check_method='unknown'
3894# Need to set the preceding variable on all platforms that support
3895# interlibrary dependencies.
3896# 'none' -- dependencies not supported.
3897# `unknown' -- same as none, but documents that we really don't know.
3898# 'pass_all' -- all dependencies passed with no checks.
3899# 'test_compile' -- check by making test program.
3900# 'file_magic [regex]' -- check by looking for files in library path
3901# which responds to the $file_magic_cmd with a given egrep regex.
3902# If you have `file' or equivalent on your system and you're not sure
3903# whether `pass_all' will *always* work, you probably want this one.
3904
c21b6f87
PE
3905case $host_os in
3906aix*)
3df64633
AO
3907 lt_cv_deplibs_check_method=pass_all
3908 ;;
3909
3910beos*)
3911 lt_cv_deplibs_check_method=pass_all
3912 ;;
3913
3914bsdi4*)
c21b6f87
PE
3915 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3916 lt_cv_file_magic_cmd='/usr/bin/file -L'
3df64633
AO
3917 lt_cv_file_magic_test_file=/shlib/libc.so
3918 ;;
3919
3dd7094e 3920cygwin* | mingw* |pw32*)
3df64633 3921 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3dd7094e 3922 lt_cv_file_magic_cmd='$OBJDUMP -f'
3df64633
AO
3923 ;;
3924
c21b6f87 3925darwin* | rhapsody*)
29d4adf4 3926 # this will be overwritten by pass_all, but leave it in just in case
c21b6f87 3927 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
47e982b2
BK
3928 lt_cv_file_magic_cmd='/usr/bin/file -L'
3929 case "$host_os" in
3930 rhapsody* | darwin1.012)
3931 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3932 ;;
3933 *) # Darwin 1.3 on
3934 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3935 ;;
3936 esac
29d4adf4 3937 lt_cv_deplibs_check_method=pass_all
c21b6f87
PE
3938 ;;
3939
dc7c62ae 3940freebsd* | kfreebsd*-gnu)
3df64633 3941 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
c21b6f87 3942 case $host_cpu in
3df64633 3943 i*86 )
6d93bca4
AO
3944 # Not sure whether the presence of OpenBSD here was a mistake.
3945 # Let's accept both of them until this is cleared up.
c21b6f87
PE
3946 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3947 lt_cv_file_magic_cmd=/usr/bin/file
3df64633
AO
3948 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3949 ;;
3950 esac
3951 else
3952 lt_cv_deplibs_check_method=pass_all
3953 fi
3954 ;;
3955
3956gnu*)
3957 lt_cv_deplibs_check_method=pass_all
3958 ;;
3959
c21b6f87 3960hpux10.20*|hpux11*)
38cca750
BK
3961 case $host_cpu in
3962 hppa*)
3963 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3964 lt_cv_file_magic_cmd=/usr/bin/file
3965 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3966 ;;
3967 ia64*)
3968 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3969 lt_cv_file_magic_cmd=/usr/bin/file
3970 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3971 ;;
3972 esac
3df64633
AO
3973 ;;
3974
3975irix5* | irix6*)
c21b6f87 3976 case $host_os in
3df64633
AO
3977 irix5*)
3978 # this will be overridden with pass_all, but let us keep it just in case
3979 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3980 ;;
3981 *)
c21b6f87 3982 case $LD in
3df64633
AO
3983 *-32|*"-32 ") libmagic=32-bit;;
3984 *-n32|*"-n32 ") libmagic=N32;;
3985 *-64|*"-64 ") libmagic=64-bit;;
3986 *) libmagic=never-match;;
3987 esac
3988 # this will be overridden with pass_all, but let us keep it just in case
c21b6f87
PE
3989 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3990 ;;
3df64633
AO
3991 esac
3992 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3993 lt_cv_deplibs_check_method=pass_all
3994 ;;
3995
3996# This must be Linux ELF.
6d93bca4 3997linux-gnu*)
2c92e90f 3998 lt_cv_deplibs_check_method=pass_all
3df64633
AO
3999 ;;
4000
dc7c62ae 4001netbsd* | knetbsd*-gnu)
c21b6f87 4002 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
47e982b2 4003 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3df64633 4004 else
47e982b2 4005 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3df64633 4006 fi
c21b6f87
PE
4007 ;;
4008
4009newsos6)
4010 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4011 lt_cv_file_magic_cmd=/usr/bin/file
4012 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3df64633
AO
4013 ;;
4014
4015osf3* | osf4* | osf5*)
4016 # this will be overridden with pass_all, but let us keep it just in case
4017 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4018 lt_cv_file_magic_test_file=/shlib/libc.so
4019 lt_cv_deplibs_check_method=pass_all
4020 ;;
4021
4022sco3.2v5*)
4023 lt_cv_deplibs_check_method=pass_all
4024 ;;
4025
4026solaris*)
4027 lt_cv_deplibs_check_method=pass_all
4028 lt_cv_file_magic_test_file=/lib/libc.so
4029 ;;
4030
bfa1e6b1
BK
4031sysv5uw[78]* | sysv4*uw2*)
4032 lt_cv_deplibs_check_method=pass_all
4033 ;;
4034
3df64633 4035sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
c21b6f87 4036 case $host_vendor in
3df64633
AO
4037 ncr)
4038 lt_cv_deplibs_check_method=pass_all
4039 ;;
4040 motorola)
c21b6f87
PE
4041 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]'
4042 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3df64633
AO
4043 ;;
4044 esac
4045 ;;
4046esac
4047
4048fi
ff66d28f
PE
4049echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4050echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3df64633
AO
4051file_magic_cmd=$lt_cv_file_magic_cmd
4052deplibs_check_method=$lt_cv_deplibs_check_method
4053
3df64633 4054
ff66d28f 4055
3df64633 4056
ec0d7421 4057
3df64633
AO
4058# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4059
4060# Only perform the check for file, if the check method requires it
c21b6f87 4061case $deplibs_check_method in
3df64633 4062file_magic*)
3dd7094e 4063 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
ff66d28f
PE
4064 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4065echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4066if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 4068else
c21b6f87 4069 case $MAGIC_CMD in
3df64633 4070 /*)
3dd7094e 4071 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3df64633
AO
4072 ;;
4073 ?:/*)
3dd7094e 4074 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3df64633
AO
4075 ;;
4076 *)
3dd7094e 4077 ac_save_MAGIC_CMD="$MAGIC_CMD"
3df64633
AO
4078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4079 ac_dummy="/usr/bin:$PATH"
4080 for ac_dir in $ac_dummy; do
4081 test -z "$ac_dir" && ac_dir=.
4082 if test -f $ac_dir/${ac_tool_prefix}file; then
3dd7094e 4083 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3df64633 4084 if test -n "$file_magic_test_file"; then
c21b6f87 4085 case $deplibs_check_method in
3df64633
AO
4086 "file_magic "*)
4087 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3dd7094e 4088 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3df64633
AO
4089 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4090 egrep "$file_magic_regex" > /dev/null; then
4091 :
4092 else
4093 cat <<EOF 1>&2
4094
4095*** Warning: the command libtool uses to detect shared libraries,
4096*** $file_magic_cmd, produces output that libtool cannot recognize.
4097*** The result is that libtool may fail to recognize shared libraries
4098*** as such. This will affect the creation of libtool libraries that
4099*** depend on shared libraries, but programs linked with such libtool
4100*** libraries will work regardless of this problem. Nevertheless, you
4101*** may want to report the problem to your system manager and/or to
4102*** bug-libtool@gnu.org
4103
4104EOF
4105 fi ;;
4106 esac
4107 fi
4108 break
4109 fi
4110 done
4111 IFS="$ac_save_ifs"
3dd7094e 4112 MAGIC_CMD="$ac_save_MAGIC_CMD"
3df64633
AO
4113 ;;
4114esac
4115fi
4116
3dd7094e
AO
4117MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4118if test -n "$MAGIC_CMD"; then
ff66d28f
PE
4119 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4120echo "${ECHO_T}$MAGIC_CMD" >&6
3df64633 4121else
ff66d28f
PE
4122 echo "$as_me:$LINENO: result: no" >&5
4123echo "${ECHO_T}no" >&6
3df64633
AO
4124fi
4125
3dd7094e 4126if test -z "$lt_cv_path_MAGIC_CMD"; then
3df64633 4127 if test -n "$ac_tool_prefix"; then
ff66d28f
PE
4128 echo "$as_me:$LINENO: checking for file" >&5
4129echo $ECHO_N "checking for file... $ECHO_C" >&6
4130if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 4132else
c21b6f87 4133 case $MAGIC_CMD in
3df64633 4134 /*)
3dd7094e 4135 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3df64633
AO
4136 ;;
4137 ?:/*)
3dd7094e 4138 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3df64633
AO
4139 ;;
4140 *)
3dd7094e 4141 ac_save_MAGIC_CMD="$MAGIC_CMD"
3df64633
AO
4142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4143 ac_dummy="/usr/bin:$PATH"
4144 for ac_dir in $ac_dummy; do
4145 test -z "$ac_dir" && ac_dir=.
4146 if test -f $ac_dir/file; then
3dd7094e 4147 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3df64633 4148 if test -n "$file_magic_test_file"; then
c21b6f87 4149 case $deplibs_check_method in
3df64633
AO
4150 "file_magic "*)
4151 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3dd7094e 4152 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3df64633
AO
4153 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4154 egrep "$file_magic_regex" > /dev/null; then
4155 :
4156 else
4157 cat <<EOF 1>&2
4158
4159*** Warning: the command libtool uses to detect shared libraries,
4160*** $file_magic_cmd, produces output that libtool cannot recognize.
4161*** The result is that libtool may fail to recognize shared libraries
4162*** as such. This will affect the creation of libtool libraries that
4163*** depend on shared libraries, but programs linked with such libtool
4164*** libraries will work regardless of this problem. Nevertheless, you
4165*** may want to report the problem to your system manager and/or to
4166*** bug-libtool@gnu.org
4167
4168EOF
4169 fi ;;
4170 esac
4171 fi
4172 break
4173 fi
4174 done
4175 IFS="$ac_save_ifs"
3dd7094e 4176 MAGIC_CMD="$ac_save_MAGIC_CMD"
3df64633
AO
4177 ;;
4178esac
4179fi
4180
3dd7094e
AO
4181MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4182if test -n "$MAGIC_CMD"; then
ff66d28f
PE
4183 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4184echo "${ECHO_T}$MAGIC_CMD" >&6
3df64633 4185else
ff66d28f
PE
4186 echo "$as_me:$LINENO: result: no" >&5
4187echo "${ECHO_T}no" >&6
3df64633
AO
4188fi
4189
4190 else
3dd7094e 4191 MAGIC_CMD=:
3df64633
AO
4192 fi
4193fi
4194
4195 fi
4196 ;;
4197esac
4198
ff66d28f
PE
4199if test -n "$ac_tool_prefix"; then
4200 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3df64633 4201set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ff66d28f
PE
4202echo "$as_me:$LINENO: checking for $ac_word" >&5
4203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4204if test "${ac_cv_prog_RANLIB+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633
AO
4206else
4207 if test -n "$RANLIB"; then
4208 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4209else
ff66d28f
PE
4210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211for as_dir in $PATH
4212do
4213 IFS=$as_save_IFS
4214 test -z "$as_dir" && as_dir=.
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4217 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4219 break 2
4220 fi
4221done
4222done
4223
3df64633
AO
4224fi
4225fi
ff66d28f 4226RANLIB=$ac_cv_prog_RANLIB
3df64633 4227if test -n "$RANLIB"; then
ff66d28f
PE
4228 echo "$as_me:$LINENO: result: $RANLIB" >&5
4229echo "${ECHO_T}$RANLIB" >&6
3df64633 4230else
ff66d28f
PE
4231 echo "$as_me:$LINENO: result: no" >&5
4232echo "${ECHO_T}no" >&6
3df64633
AO
4233fi
4234
ff66d28f 4235fi
3df64633 4236if test -z "$ac_cv_prog_RANLIB"; then
ff66d28f 4237 ac_ct_RANLIB=$RANLIB
3df64633
AO
4238 # Extract the first word of "ranlib", so it can be a program name with args.
4239set dummy ranlib; ac_word=$2
ff66d28f
PE
4240echo "$as_me:$LINENO: checking for $ac_word" >&5
4241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4242if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 4244else
ff66d28f
PE
4245 if test -n "$ac_ct_RANLIB"; then
4246 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3df64633 4247else
ff66d28f
PE
4248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249for as_dir in $PATH
4250do
4251 IFS=$as_save_IFS
4252 test -z "$as_dir" && as_dir=.
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4255 ac_cv_prog_ac_ct_RANLIB="ranlib"
4256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 break 2
4258 fi
4259done
4260done
4261
4262 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3df64633
AO
4263fi
4264fi
ff66d28f
PE
4265ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4266if test -n "$ac_ct_RANLIB"; then
4267 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4268echo "${ECHO_T}$ac_ct_RANLIB" >&6
3df64633 4269else
ff66d28f
PE
4270 echo "$as_me:$LINENO: result: no" >&5
4271echo "${ECHO_T}no" >&6
3df64633
AO
4272fi
4273
ff66d28f 4274 RANLIB=$ac_ct_RANLIB
3df64633 4275else
ff66d28f 4276 RANLIB="$ac_cv_prog_RANLIB"
3df64633
AO
4277fi
4278
ff66d28f
PE
4279if test -n "$ac_tool_prefix"; then
4280 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3df64633 4281set dummy ${ac_tool_prefix}strip; ac_word=$2
ff66d28f
PE
4282echo "$as_me:$LINENO: checking for $ac_word" >&5
4283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4284if test "${ac_cv_prog_STRIP+set}" = set; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633
AO
4286else
4287 if test -n "$STRIP"; then
4288 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4289else
ff66d28f
PE
4290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291for as_dir in $PATH
4292do
4293 IFS=$as_save_IFS
4294 test -z "$as_dir" && as_dir=.
4295 for ac_exec_ext in '' $ac_executable_extensions; do
4296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4297 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 break 2
4300 fi
4301done
4302done
4303
3df64633
AO
4304fi
4305fi
ff66d28f 4306STRIP=$ac_cv_prog_STRIP
3df64633 4307if test -n "$STRIP"; then
ff66d28f
PE
4308 echo "$as_me:$LINENO: result: $STRIP" >&5
4309echo "${ECHO_T}$STRIP" >&6
3df64633 4310else
ff66d28f
PE
4311 echo "$as_me:$LINENO: result: no" >&5
4312echo "${ECHO_T}no" >&6
3df64633
AO
4313fi
4314
ff66d28f 4315fi
3df64633 4316if test -z "$ac_cv_prog_STRIP"; then
ff66d28f 4317 ac_ct_STRIP=$STRIP
3df64633
AO
4318 # Extract the first word of "strip", so it can be a program name with args.
4319set dummy strip; ac_word=$2
ff66d28f
PE
4320echo "$as_me:$LINENO: checking for $ac_word" >&5
4321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4322if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4323 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 4324else
ff66d28f
PE
4325 if test -n "$ac_ct_STRIP"; then
4326 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3df64633 4327else
ff66d28f
PE
4328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329for as_dir in $PATH
4330do
4331 IFS=$as_save_IFS
4332 test -z "$as_dir" && as_dir=.
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4335 ac_cv_prog_ac_ct_STRIP="strip"
4336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4337 break 2
4338 fi
4339done
4340done
4341
4342 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3df64633
AO
4343fi
4344fi
ff66d28f
PE
4345ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4346if test -n "$ac_ct_STRIP"; then
4347 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4348echo "${ECHO_T}$ac_ct_STRIP" >&6
3df64633 4349else
ff66d28f
PE
4350 echo "$as_me:$LINENO: result: no" >&5
4351echo "${ECHO_T}no" >&6
3df64633
AO
4352fi
4353
ff66d28f 4354 STRIP=$ac_ct_STRIP
3df64633 4355else
ff66d28f 4356 STRIP="$ac_cv_prog_STRIP"
3df64633
AO
4357fi
4358
b2dad0e3 4359
b2dad0e3
BK
4360# Check for any special flags to pass to ltconfig.
4361libtool_flags="--cache-file=$cache_file"
4362test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4363test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4364test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
c21b6f87
PE
4365test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4366test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
ff66d28f 4367
3840fa2a
BK
4368
4369# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4370if test "${enable_libtool_lock+set}" = set; then
4371 enableval="$enable_libtool_lock"
3840fa2a 4372
ff66d28f 4373fi;
3840fa2a
BK
4374test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4375test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
b2dad0e3 4376
ff66d28f 4377
3df64633
AO
4378# Check whether --with-pic or --without-pic was given.
4379if test "${with_pic+set}" = set; then
4380 withval="$with_pic"
4381 pic_mode="$withval"
4382else
4383 pic_mode=default
ff66d28f 4384fi;
3df64633
AO
4385test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4386test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4387
b2dad0e3
BK
4388# Some flags need to be propagated to the compiler or linker for good
4389# libtool support.
c21b6f87 4390case $host in
b2dad0e3
BK
4391*-*-irix6*)
4392 # Find out which ABI we are using.
2c92e90f 4393 echo '#line 4393 "configure"' > conftest.$ac_ext
ff66d28f
PE
4394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4395 (eval $ac_compile) 2>&5
4396 ac_status=$?
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; then
3a15abf1
BK
4399 if test "$lt_cv_prog_gnu_ld" = yes; then
4400 case `/usr/bin/file conftest.$ac_objext` in
4401 *32-bit*)
4402 LD="${LD-ld} -melf32bsmip"
4403 ;;
4404 *N32*)
4405 LD="${LD-ld} -melf32bmipn32"
4406 ;;
4407 *64-bit*)
4408 LD="${LD-ld} -melf64bmip"
4409 ;;
4410 esac
4411 else
c21b6f87 4412 case `/usr/bin/file conftest.$ac_objext` in
b2dad0e3
BK
4413 *32-bit*)
4414 LD="${LD-ld} -32"
4415 ;;
4416 *N32*)
4417 LD="${LD-ld} -n32"
4418 ;;
4419 *64-bit*)
4420 LD="${LD-ld} -64"
4421 ;;
4422 esac
3a15abf1 4423 fi
b2dad0e3
BK
4424 fi
4425 rm -rf conftest*
4426 ;;
4427
38cca750
BK
4428ia64-*-hpux*)
4429 # Find out which ABI we are using.
4430 echo 'int i;' > conftest.$ac_ext
ff66d28f
PE
4431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4432 (eval $ac_compile) 2>&5
4433 ac_status=$?
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); }; then
38cca750
BK
4436 case "`/usr/bin/file conftest.o`" in
4437 *ELF-32*)
4438 HPUX_IA64_MODE="32"
4439 ;;
4440 *ELF-64*)
4441 HPUX_IA64_MODE="64"
4442 ;;
4443 esac
4444 fi
4445 rm -rf conftest*
4446 ;;
4447
162c7cd9
SW
4448x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4449 # Find out which ABI we are using.
4450 echo 'int i;' > conftest.$ac_ext
ff66d28f
PE
4451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4452 (eval $ac_compile) 2>&5
4453 ac_status=$?
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; then
162c7cd9
SW
4456 case "`/usr/bin/file conftest.o`" in
4457 *32-bit*)
4458 case $host in
4459 x86_64-*linux*)
4460 LD="${LD-ld} -m elf_i386"
4461 ;;
e517f636 4462 ppc64-*linux*|powerpc64-*linux*)
162c7cd9
SW
4463 LD="${LD-ld} -m elf32ppclinux"
4464 ;;
4465 s390x-*linux*)
4466 LD="${LD-ld} -m elf_s390"
4467 ;;
4468 sparc64-*linux*)
4469 LD="${LD-ld} -m elf32_sparc"
4470 ;;
4471 esac
4472 ;;
4473 *64-bit*)
4474 case $host in
4475 x86_64-*linux*)
4476 LD="${LD-ld} -m elf_x86_64"
4477 ;;
4478 ppc*-*linux*|powerpc*-*linux*)
4479 LD="${LD-ld} -m elf64ppc"
4480 ;;
4481 s390*-*linux*)
4482 LD="${LD-ld} -m elf64_s390"
4483 ;;
4484 sparc*-*linux*)
4485 LD="${LD-ld} -m elf64_sparc"
4486 ;;
4487 esac
4488 ;;
4489 esac
4490 fi
4491 rm -rf conftest*
4492 ;;
4493
b2dad0e3
BK
4494*-*-sco3.2v5*)
4495 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4496 SAVE_CFLAGS="$CFLAGS"
4497 CFLAGS="$CFLAGS -belf"
ff66d28f
PE
4498 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4499echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4500if test "${lt_cv_cc_needs_belf+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 4502else
ff66d28f
PE
4503
4504
3df64633 4505 ac_ext=c
3df64633 4506ac_cpp='$CPP $CPPFLAGS'
ff66d28f
PE
4507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4509ac_compiler_gnu=$ac_cv_c_compiler_gnu
4510
72730fdb
DJ
4511 if test x$gcc_no_link = xyes; then
4512 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4513echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4514 { (exit 1); exit 1; }; }
4515fi
4516cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
4517/* confdefs.h. */
4518_ACEOF
4519cat confdefs.h >>conftest.$ac_ext
4520cat >>conftest.$ac_ext <<_ACEOF
4521/* end confdefs.h. */
3df64633 4522
ff66d28f
PE
4523int
4524main ()
4525{
b2dad0e3 4526
ff66d28f
PE
4527 ;
4528 return 0;
4529}
4530_ACEOF
4531rm -f conftest.$ac_objext conftest$ac_exeext
4532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ec2075e9 4533 (eval $ac_link) 2>conftest.er1
ff66d28f 4534 ac_status=$?
ec2075e9
BK
4535 grep -v '^ *+' conftest.er1 >conftest.err
4536 rm -f conftest.er1
4537 cat conftest.err >&5
ff66d28f
PE
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } &&
780028b6
BK
4540 { ac_try='test -z "$ac_c_werror_flag"
4541 || test ! -s conftest.err'
ec2075e9
BK
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543 (eval $ac_try) 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; } &&
4547 { ac_try='test -s conftest$ac_exeext'
ff66d28f
PE
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 (eval $ac_try) 2>&5
4550 ac_status=$?
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
b2dad0e3
BK
4553 lt_cv_cc_needs_belf=yes
4554else
ff66d28f
PE
4555 echo "$as_me: failed program was:" >&5
4556sed 's/^/| /' conftest.$ac_ext >&5
4557
4558lt_cv_cc_needs_belf=no
b2dad0e3 4559fi
ec2075e9
BK
4560rm -f conftest.err conftest.$ac_objext \
4561 conftest$ac_exeext conftest.$ac_ext
3df64633 4562 ac_ext=c
3df64633 4563ac_cpp='$CPP $CPPFLAGS'
ff66d28f
PE
4564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4566ac_compiler_gnu=$ac_cv_c_compiler_gnu
3df64633 4567
b2dad0e3 4568fi
ff66d28f
PE
4569echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4570echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
b2dad0e3
BK
4571 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4572 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4573 CFLAGS="$SAVE_CFLAGS"
4574 fi
4575 ;;
4576
4577
4578esac
4579
4580
4581# Save cache, so that ltconfig can load it
ff66d28f 4582cat >confcache <<\_ACEOF
b2dad0e3
BK
4583# This file is a shell script that caches the results of configure
4584# tests run on this system so they can be shared between configure
ff66d28f
PE
4585# scripts and configure runs, see configure's option --config-cache.
4586# It is not useful on other systems. If it contains results you don't
4587# want to keep, you may remove or edit it.
b2dad0e3 4588#
ff66d28f
PE
4589# config.status only pays attention to the cache file if you give it
4590# the --recheck option to rerun configure.
b2dad0e3 4591#
ff66d28f
PE
4592# `ac_cv_env_foo' variables (set or unset) will be overridden when
4593# loading this file, other *unset* `ac_cv_foo' will be assigned the
4594# following values.
4595
4596_ACEOF
4597
b2dad0e3
BK
4598# The following way of writing the cache mishandles newlines in values,
4599# but we know of no workaround that is simple, portable, and efficient.
4600# So, don't put newlines in cache variables' values.
4601# Ultrix sh set writes to stderr and can't be redirected directly,
4602# and sets the high bit in the cache file unless we assign to the vars.
ff66d28f
PE
4603{
4604 (set) 2>&1 |
4605 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4606 *ac_space=\ *)
4607 # `set' does not quote correctly, so add quotes (double-quote
4608 # substitution turns \\\\ into \\, and sed turns \\ into \).
4609 sed -n \
ec2075e9
BK
4610 "s/'/'\\\\''/g;
4611 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
ff66d28f
PE
4612 ;;
4613 *)
4614 # `set' quotes correctly as required by POSIX, so do not add quotes.
4615 sed -n \
ec2075e9 4616 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
ff66d28f
PE
4617 ;;
4618 esac;
4619} |
4620 sed '
4621 t clear
4622 : clear
4623 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4624 t end
4625 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4626 : end' >>confcache
4627if diff $cache_file confcache >/dev/null 2>&1; then :; else
b2dad0e3 4628 if test -w $cache_file; then
ff66d28f
PE
4629 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4630 cat confcache >$cache_file
b2dad0e3
BK
4631 else
4632 echo "not updating unwritable cache $cache_file"
4633 fi
4634fi
4635rm -f confcache
4636
b2dad0e3 4637# Actually configure libtool. ac_aux_dir is where install-sh is found.
3df64633 4638AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3dd7094e 4639MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3df64633
AO
4640LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4641AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4642objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4643deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
b2dad0e3 4644${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3df64633 4645$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
ff66d28f
PE
4646|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4647echo "$as_me: error: libtool configure failed" >&2;}
4648 { (exit 1); exit 1; }; }
b2dad0e3
BK
4649
4650# Reload cache, that may have been modified by ltconfig
4651if test -r "$cache_file"; then
ff66d28f
PE
4652 # Some versions of bash will fail to source /dev/null (special
4653 # files actually), so we avoid doing that.
4654 if test -f "$cache_file"; then
4655 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4656echo "$as_me: loading cache $cache_file" >&6;}
4657 case $cache_file in
4658 [\\/]* | ?:[\\/]* ) . $cache_file;;
4659 *) . ./$cache_file;;
4660 esac
4661 fi
b2dad0e3 4662else
ff66d28f
PE
4663 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4664echo "$as_me: creating cache $cache_file" >&6;}
4665 >$cache_file
b2dad0e3
BK
4666fi
4667
4668
4669# This can be used to rebuild libtool when needed
3df64633 4670LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
b2dad0e3
BK
4671
4672# Always use our own libtool.
4673LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4674
4675# Redirect the config.log output again, so that the ltconfig log is not
4676# clobbered by the next message.
4677exec 5>>./config.log
4678
ff66d28f
PE
4679ac_ext=cc
4680ac_cpp='$CXXCPP $CPPFLAGS'
4681ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4682ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4683ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4684echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4685echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4686if test -z "$CXXCPP"; then
4687 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4688 echo $ECHO_N "(cached) $ECHO_C" >&6
4689else
4690 # Double quotes because CXXCPP needs to be expanded
4691 for CXXCPP in "$CXX -E" "/lib/cpp"
4692 do
4693 ac_preproc_ok=false
4694for ac_cxx_preproc_warn_flag in '' yes
4695do
4696 # Use a header file that comes with gcc, so configuring glibc
4697 # with a fresh cross-compiler works.
4698 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4699 # <limits.h> exists even on freestanding compilers.
4700 # On the NeXT, cc -E runs the code through the compiler's parser,
4701 # not just through cpp. "Syntax error" is here to catch this case.
4702 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
4703/* confdefs.h. */
4704_ACEOF
4705cat confdefs.h >>conftest.$ac_ext
4706cat >>conftest.$ac_ext <<_ACEOF
4707/* end confdefs.h. */
4708#ifdef __STDC__
4709# include <limits.h>
4710#else
4711# include <assert.h>
4712#endif
ec2075e9 4713 Syntax error
ff66d28f
PE
4714_ACEOF
4715if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4717 ac_status=$?
4718 grep -v '^ *+' conftest.er1 >conftest.err
4719 rm -f conftest.er1
4720 cat conftest.err >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); } >/dev/null; then
4723 if test -s conftest.err; then
4724 ac_cpp_err=$ac_cxx_preproc_warn_flag
ec2075e9 4725 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
ff66d28f
PE
4726 else
4727 ac_cpp_err=
4728 fi
4729else
4730 ac_cpp_err=yes
4731fi
4732if test -z "$ac_cpp_err"; then
4733 :
4734else
4735 echo "$as_me: failed program was:" >&5
4736sed 's/^/| /' conftest.$ac_ext >&5
4737
4738 # Broken: fails on valid input.
4739continue
4740fi
4741rm -f conftest.err conftest.$ac_ext
4742
4743 # OK, works on sane cases. Now check whether non-existent headers
4744 # can be detected and how.
4745 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
4746/* confdefs.h. */
4747_ACEOF
4748cat confdefs.h >>conftest.$ac_ext
4749cat >>conftest.$ac_ext <<_ACEOF
4750/* end confdefs.h. */
4751#include <ac_nonexistent.h>
4752_ACEOF
4753if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4755 ac_status=$?
4756 grep -v '^ *+' conftest.er1 >conftest.err
4757 rm -f conftest.er1
4758 cat conftest.err >&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } >/dev/null; then
4761 if test -s conftest.err; then
4762 ac_cpp_err=$ac_cxx_preproc_warn_flag
ec2075e9 4763 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
ff66d28f
PE
4764 else
4765 ac_cpp_err=
4766 fi
4767else
4768 ac_cpp_err=yes
4769fi
4770if test -z "$ac_cpp_err"; then
4771 # Broken: success on invalid input.
4772continue
4773else
4774 echo "$as_me: failed program was:" >&5
4775sed 's/^/| /' conftest.$ac_ext >&5
4776
4777 # Passes both tests.
4778ac_preproc_ok=:
4779break
4780fi
4781rm -f conftest.err conftest.$ac_ext
4782
4783done
4784# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4785rm -f conftest.err conftest.$ac_ext
4786if $ac_preproc_ok; then
4787 break
4788fi
4789
4790 done
4791 ac_cv_prog_CXXCPP=$CXXCPP
4792
4793fi
4794 CXXCPP=$ac_cv_prog_CXXCPP
4795else
4796 ac_cv_prog_CXXCPP=$CXXCPP
4797fi
4798echo "$as_me:$LINENO: result: $CXXCPP" >&5
4799echo "${ECHO_T}$CXXCPP" >&6
4800ac_preproc_ok=false
4801for ac_cxx_preproc_warn_flag in '' yes
4802do
4803 # Use a header file that comes with gcc, so configuring glibc
4804 # with a fresh cross-compiler works.
4805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4806 # <limits.h> exists even on freestanding compilers.
4807 # On the NeXT, cc -E runs the code through the compiler's parser,
4808 # not just through cpp. "Syntax error" is here to catch this case.
4809 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
4810/* confdefs.h. */
4811_ACEOF
4812cat confdefs.h >>conftest.$ac_ext
4813cat >>conftest.$ac_ext <<_ACEOF
4814/* end confdefs.h. */
4815#ifdef __STDC__
4816# include <limits.h>
4817#else
4818# include <assert.h>
4819#endif
ec2075e9 4820 Syntax error
ff66d28f
PE
4821_ACEOF
4822if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4824 ac_status=$?
4825 grep -v '^ *+' conftest.er1 >conftest.err
4826 rm -f conftest.er1
4827 cat conftest.err >&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); } >/dev/null; then
4830 if test -s conftest.err; then
4831 ac_cpp_err=$ac_cxx_preproc_warn_flag
ec2075e9 4832 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
ff66d28f
PE
4833 else
4834 ac_cpp_err=
4835 fi
4836else
4837 ac_cpp_err=yes
4838fi
4839if test -z "$ac_cpp_err"; then
4840 :
4841else
4842 echo "$as_me: failed program was:" >&5
4843sed 's/^/| /' conftest.$ac_ext >&5
4844
4845 # Broken: fails on valid input.
4846continue
4847fi
4848rm -f conftest.err conftest.$ac_ext
4849
4850 # OK, works on sane cases. Now check whether non-existent headers
4851 # can be detected and how.
4852 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
4853/* confdefs.h. */
4854_ACEOF
4855cat confdefs.h >>conftest.$ac_ext
4856cat >>conftest.$ac_ext <<_ACEOF
4857/* end confdefs.h. */
4858#include <ac_nonexistent.h>
4859_ACEOF
4860if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4862 ac_status=$?
4863 grep -v '^ *+' conftest.er1 >conftest.err
4864 rm -f conftest.er1
4865 cat conftest.err >&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } >/dev/null; then
4868 if test -s conftest.err; then
4869 ac_cpp_err=$ac_cxx_preproc_warn_flag
ec2075e9 4870 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
ff66d28f
PE
4871 else
4872 ac_cpp_err=
4873 fi
4874else
4875 ac_cpp_err=yes
4876fi
4877if test -z "$ac_cpp_err"; then
4878 # Broken: success on invalid input.
4879continue
4880else
4881 echo "$as_me: failed program was:" >&5
4882sed 's/^/| /' conftest.$ac_ext >&5
4883
4884 # Passes both tests.
4885ac_preproc_ok=:
4886break
4887fi
4888rm -f conftest.err conftest.$ac_ext
4889
4890done
4891# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4892rm -f conftest.err conftest.$ac_ext
4893if $ac_preproc_ok; then
4894 :
4895else
4896 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4897See \`config.log' for more details." >&5
4898echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4899See \`config.log' for more details." >&2;}
4900 { (exit 1); exit 1; }; }
4901fi
4902
4903ac_ext=c
4904ac_cpp='$CPP $CPPFLAGS'
4905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4907ac_compiler_gnu=$ac_cv_c_compiler_gnu
4908
3df64633
AO
4909
4910
3df64633
AO
4911LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
4912lt_save_CC="$CC"
4913lt_save_CFLAGS="$CFLAGS"
4914AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
c21b6f87 4915MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3df64633
AO
4916LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4917AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4918objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4919deplibs_check_method="$deplibs_check_method" \
4920file_magic_cmd="$file_magic_cmd" \
4921${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4922--build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
ff66d28f
PE
4923|| { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
4924echo "$as_me: error: libtool tag configuration failed" >&2;}
4925 { (exit 1); exit 1; }; }
3df64633
AO
4926CC="$lt_save_CC"
4927CFLAGS="$lt_save_CFLAGS"
4928
4929# Redirect the config.log output again, so that the ltconfig log is not
4930# clobbered by the next message.
4931exec 5>>./config.log
4932
3df64633 4933
34791641
PE
4934
4935
33590f13 4936
ff66d28f
PE
4937
4938
4939
4940#AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4941
92eabea2
PE
4942# Possibly disable most of the library.
4943## XXX Consider skipping unncessary tests altogether in this case, rather
4944## than just ignoring the results. Faster /and/ more correct, win win.
4945
4946 # Check whether --enable-hosted-libstdcxx or --disable-hosted-libstdcxx was given.
4947if test "${enable_hosted_libstdcxx+set}" = set; then
4948 enableval="$enable_hosted_libstdcxx"
4949
4950else
4c24b21a
MM
4951 case "$host" in
4952 arm*-*-symbianelf*)
4953 enable_hosted_libstdcxx=no
4954 ;;
4955 *)
4956 enable_hosted_libstdcxx=yes
4957 ;;
4958 esac
92eabea2
PE
4959fi;
4960 if test "$enable_hosted_libstdcxx" = no; then
4961 { echo "$as_me:$LINENO: Only freestanding libraries will be built" >&5
4962echo "$as_me: Only freestanding libraries will be built" >&6;}
4963 is_hosted=no
3660e02f 4964 hosted_define=0
92eabea2
PE
4965 enable_abi_check=no
4966 enable_libstdcxx_pch=no
4967 else
4968 is_hosted=yes
3660e02f 4969 hosted_define=1
92eabea2
PE
4970 fi
4971
4972
3660e02f
PE
4973cat >>confdefs.h <<_ACEOF
4974#define _GLIBCXX_HOSTED $hosted_define
4975_ACEOF
4976
4977
92eabea2 4978
44f0760e 4979# Check for support bits and g++ features that don't require linking.
5780a46b 4980
ff66d28f
PE
4981 echo "$as_me:$LINENO: checking for exception model to use" >&5
4982echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
249ed716 4983
ff66d28f
PE
4984
4985 ac_ext=cc
44f0760e 4986ac_cpp='$CXXCPP $CPPFLAGS'
ff66d28f
PE
4987ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4988ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4989ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44f0760e 4990
ff66d28f 4991 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
44f0760e
BK
4992if test "${enable_sjlj_exceptions+set}" = set; then
4993 enableval="$enable_sjlj_exceptions"
1260d70f
PE
4994
4995 case "$enableval" in
4996 yes|no|auto) ;;
4997 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable sjlj-exceptions" >&5
4998echo "$as_me: error: Unknown argument to enable/disable sjlj-exceptions" >&2;}
4999 { (exit 1); exit 1; }; } ;;
5000 esac
5001
44f0760e 5002else
1260d70f 5003 enable_sjlj_exceptions=auto
ff66d28f 5004fi;
44f0760e 5005
1260d70f
PE
5006
5007 if test $enable_sjlj_exceptions = auto; then
5008 # Botheration. Now we've got to detect the exception model. Link tests
5009 # against libgcc.a are problematic since we've not been given proper -L
5010 # bits for single-tree newlib and libgloss.
5011 #
5012 # Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style.
5013 cat > conftest.$ac_ext << EOF
2c92e90f 5014#line 5014 "configure"
1260d70f
PE
5015struct S { ~S(); };
5016void bar();
5017void foo()
5018{
5019 S s;
5020 bar();
5021}
5022EOF
5023 old_CXXFLAGS="$CXXFLAGS"
5024 CXXFLAGS=-S
5025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5026 (eval $ac_compile) 2>&5
5027 ac_status=$?
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; then
5030 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5031 enable_sjlj_exceptions=yes
5032 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5033 enable_sjlj_exceptions=no
5034 fi
5035 fi
5036 CXXFLAGS="$old_CXXFLAGS"
5037 rm -f conftest*
5038 fi
5039
5040 # This is a tad weird, for hysterical raisins. We have to map enable/disable
5041 # to two different models.
5042 case $enable_sjlj_exceptions in
5043 yes)
44f0760e 5044
ff66d28f
PE
5045cat >>confdefs.h <<\_ACEOF
5046#define _GLIBCXX_SJLJ_EXCEPTIONS 1
5047_ACEOF
5048
1260d70f
PE
5049 ac_exception_model_name=sjlj
5050 ;;
5051 no)
5052 ac_exception_model_name="call frame"
5053 ;;
5054 *)
5055 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
ff66d28f
PE
5056echo "$as_me: error: unable to detect exception model" >&2;}
5057 { (exit 1); exit 1; }; }
1260d70f
PE
5058 ;;
5059 esac
ff66d28f 5060 ac_ext=c
44f0760e 5061ac_cpp='$CPP $CPPFLAGS'
ff66d28f
PE
5062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5064ac_compiler_gnu=$ac_cv_c_compiler_gnu
44f0760e 5065
ff66d28f
PE
5066 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5067echo "${ECHO_T}$ac_exception_model_name" >&6
44f0760e
BK
5068
5069
ff66d28f
PE
5070 echo "$as_me:$LINENO: checking for enabled PCH" >&5
5071echo $ECHO_N "checking for enabled PCH... $ECHO_C" >&6
5072 # Check whether --enable-libstdcxx-pch or --disable-libstdcxx-pch was given.
d8d81f62
BK
5073if test "${enable_libstdcxx_pch+set}" = set; then
5074 enableval="$enable_libstdcxx_pch"
ff66d28f
PE
5075
5076 case "$enableval" in
5077 yes|no) ;;
5078 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&5
5079echo "$as_me: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&2;}
5080 { (exit 1); exit 1; }; } ;;
5081 esac
5082
44f0760e 5083else
92eabea2 5084 enable_libstdcxx_pch=$is_hosted
ff66d28f 5085fi;
44f0760e 5086
ff66d28f
PE
5087 echo "$as_me:$LINENO: result: $enable_libstdcxx_pch" >&5
5088echo "${ECHO_T}$enable_libstdcxx_pch" >&6
5089
5090 if test $enable_libstdcxx_pch = yes; then
5091 echo "$as_me:$LINENO: checking for compiler with PCH support" >&5
5092echo $ECHO_N "checking for compiler with PCH support... $ECHO_C" >&6
5093if test "${glibcxx_cv_prog_CXX_pch+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
249ed716 5095else
ff66d28f
PE
5096 ac_save_CXXFLAGS="$CXXFLAGS"
5097 CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated"
5098
5099
5100 ac_ext=cc
249ed716 5101ac_cpp='$CXXCPP $CPPFLAGS'
ff66d28f
PE
5102ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5105
5106 echo '#include <math.h>' > conftest.h
5107 if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
5108 -o conftest.h.gch 1>&5 2>&1 &&
5109 echo '#error "pch failed"' > conftest.h &&
5110 echo '#include "conftest.h"' > conftest.cc &&
5111 $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ;
5112 then
5113 glibcxx_cv_prog_CXX_pch=yes
5114 else
5115 glibcxx_cv_prog_CXX_pch=no
5116 fi
5117 rm -f conftest*
5118 CXXFLAGS=$ac_save_CXXFLAGS
5119 ac_ext=c
249ed716 5120ac_cpp='$CPP $CPPFLAGS'
ff66d28f
PE
5121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123ac_compiler_gnu=$ac_cv_c_compiler_gnu
249ed716 5124
249ed716 5125
ff66d28f
PE
5126fi
5127echo "$as_me:$LINENO: result: $glibcxx_cv_prog_CXX_pch" >&5
5128echo "${ECHO_T}$glibcxx_cv_prog_CXX_pch" >&6
5129 enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch
44f0760e
BK
5130 fi
5131
44f0760e 5132
ff66d28f
PE
5133 if test $enable_libstdcxx_pch = yes; then
5134 glibcxx_PCHFLAGS="-include bits/stdc++.h"
bddc3107 5135 else
ff66d28f 5136 glibcxx_PCHFLAGS=""
bddc3107 5137 fi
249ed716 5138
04e78786 5139
ff66d28f
PE
5140
5141# Enable all the variable C++ runtime options.
44f0760e 5142# NB: C_MBCHAR must come early.
58ac1d7f 5143
ff66d28f
PE
5144 echo "$as_me:$LINENO: checking for underlying I/O to use" >&5
5145echo $ECHO_N "checking for underlying I/O to use... $ECHO_C" >&6
5146 # Check whether --enable-cstdio or --disable-cstdio was given.
58ac1d7f
BK
5147if test "${enable_cstdio+set}" = set; then
5148 enableval="$enable_cstdio"
ff66d28f
PE
5149
5150 case "$enableval" in
5151 stdio) ;;
5152 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cstdio" >&5
5153echo "$as_me: error: Unknown argument to enable/disable cstdio" >&2;}
5154 { (exit 1); exit 1; }; } ;;
5155 esac
5156
58ac1d7f
BK
5157else
5158 enable_cstdio=stdio
ff66d28f 5159fi;
58ac1d7f
BK
5160
5161
ff66d28f
PE
5162 # Now that libio has been removed, you can have any color you want as long
5163 # as it's black. This is one big no-op until other packages are added, but
5164 # showing the framework never hurts.
5165 case ${enable_cstdio} in
5166 stdio)
58ac1d7f
BK
5167 CSTDIO_H=config/io/c_io_stdio.h
5168 BASIC_FILE_H=config/io/basic_file_stdio.h
5169 BASIC_FILE_CC=config/io/basic_file_stdio.cc
ff66d28f
PE
5170 echo "$as_me:$LINENO: result: stdio" >&5
5171echo "${ECHO_T}stdio" >&6
58ac1d7f
BK
5172 ;;
5173 esac
cc5112c9 5174
ff66d28f
PE
5175
5176
5177
5178
5179ac_ext=c
5180ac_cpp='$CPP $CPPFLAGS'
5181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5183ac_compiler_gnu=$ac_cv_c_compiler_gnu
5184echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5185echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
c470c17d
BK
5186# On Suns, sometimes $CPP names a directory.
5187if test -n "$CPP" && test -d "$CPP"; then
5188 CPP=
5189fi
5190if test -z "$CPP"; then
ff66d28f
PE
5191 if test "${ac_cv_prog_CPP+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5193else
5194 # Double quotes because CPP needs to be expanded
5195 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5196 do
5197 ac_preproc_ok=false
5198for ac_c_preproc_warn_flag in '' yes
5199do
5200 # Use a header file that comes with gcc, so configuring glibc
5201 # with a fresh cross-compiler works.
5202 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5203 # <limits.h> exists even on freestanding compilers.
5204 # On the NeXT, cc -E runs the code through the compiler's parser,
5205 # not just through cpp. "Syntax error" is here to catch this case.
5206 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5207/* confdefs.h. */
5208_ACEOF
5209cat confdefs.h >>conftest.$ac_ext
5210cat >>conftest.$ac_ext <<_ACEOF
5211/* end confdefs.h. */
5212#ifdef __STDC__
5213# include <limits.h>
5214#else
5215# include <assert.h>
5216#endif
ec2075e9 5217 Syntax error
ff66d28f
PE
5218_ACEOF
5219if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5220 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5221 ac_status=$?
5222 grep -v '^ *+' conftest.er1 >conftest.err
5223 rm -f conftest.er1
5224 cat conftest.err >&5
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); } >/dev/null; then
5227 if test -s conftest.err; then
5228 ac_cpp_err=$ac_c_preproc_warn_flag
ec2075e9 5229 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ff66d28f
PE
5230 else
5231 ac_cpp_err=
5232 fi
5233else
5234 ac_cpp_err=yes
5235fi
5236if test -z "$ac_cpp_err"; then
5237 :
5238else
5239 echo "$as_me: failed program was:" >&5
5240sed 's/^/| /' conftest.$ac_ext >&5
5241
5242 # Broken: fails on valid input.
5243continue
5244fi
5245rm -f conftest.err conftest.$ac_ext
5246
5247 # OK, works on sane cases. Now check whether non-existent headers
5248 # can be detected and how.
5249 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5250/* confdefs.h. */
5251_ACEOF
5252cat confdefs.h >>conftest.$ac_ext
5253cat >>conftest.$ac_ext <<_ACEOF
5254/* end confdefs.h. */
5255#include <ac_nonexistent.h>
5256_ACEOF
5257if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5259 ac_status=$?
5260 grep -v '^ *+' conftest.er1 >conftest.err
5261 rm -f conftest.er1
5262 cat conftest.err >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); } >/dev/null; then
5265 if test -s conftest.err; then
5266 ac_cpp_err=$ac_c_preproc_warn_flag
ec2075e9 5267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ff66d28f
PE
5268 else
5269 ac_cpp_err=
5270 fi
5271else
5272 ac_cpp_err=yes
5273fi
5274if test -z "$ac_cpp_err"; then
5275 # Broken: success on invalid input.
5276continue
5277else
5278 echo "$as_me: failed program was:" >&5
5279sed 's/^/| /' conftest.$ac_ext >&5
5280
5281 # Passes both tests.
5282ac_preproc_ok=:
5283break
5284fi
5285rm -f conftest.err conftest.$ac_ext
5286
5287done
5288# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5289rm -f conftest.err conftest.$ac_ext
5290if $ac_preproc_ok; then
5291 break
5292fi
5293
5294 done
5295 ac_cv_prog_CPP=$CPP
5296
5297fi
5298 CPP=$ac_cv_prog_CPP
b2dad0e3 5299else
ff66d28f
PE
5300 ac_cv_prog_CPP=$CPP
5301fi
5302echo "$as_me:$LINENO: result: $CPP" >&5
5303echo "${ECHO_T}$CPP" >&6
5304ac_preproc_ok=false
5305for ac_c_preproc_warn_flag in '' yes
5306do
5307 # Use a header file that comes with gcc, so configuring glibc
5308 # with a fresh cross-compiler works.
5309 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5310 # <limits.h> exists even on freestanding compilers.
c470c17d 5311 # On the NeXT, cc -E runs the code through the compiler's parser,
ff66d28f
PE
5312 # not just through cpp. "Syntax error" is here to catch this case.
5313 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5314/* confdefs.h. */
5315_ACEOF
5316cat confdefs.h >>conftest.$ac_ext
5317cat >>conftest.$ac_ext <<_ACEOF
5318/* end confdefs.h. */
5319#ifdef __STDC__
5320# include <limits.h>
5321#else
5322# include <assert.h>
5323#endif
ec2075e9 5324 Syntax error
ff66d28f
PE
5325_ACEOF
5326if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5328 ac_status=$?
5329 grep -v '^ *+' conftest.er1 >conftest.err
5330 rm -f conftest.er1
5331 cat conftest.err >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } >/dev/null; then
5334 if test -s conftest.err; then
5335 ac_cpp_err=$ac_c_preproc_warn_flag
ec2075e9 5336 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ff66d28f
PE
5337 else
5338 ac_cpp_err=
5339 fi
5340else
5341 ac_cpp_err=yes
5342fi
5343if test -z "$ac_cpp_err"; then
b2dad0e3
BK
5344 :
5345else
ff66d28f
PE
5346 echo "$as_me: failed program was:" >&5
5347sed 's/^/| /' conftest.$ac_ext >&5
5348
5349 # Broken: fails on valid input.
5350continue
5351fi
5352rm -f conftest.err conftest.$ac_ext
5353
5354 # OK, works on sane cases. Now check whether non-existent headers
5355 # can be detected and how.
5356 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5357/* confdefs.h. */
5358_ACEOF
5359cat confdefs.h >>conftest.$ac_ext
5360cat >>conftest.$ac_ext <<_ACEOF
5361/* end confdefs.h. */
5362#include <ac_nonexistent.h>
5363_ACEOF
5364if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5366 ac_status=$?
5367 grep -v '^ *+' conftest.er1 >conftest.err
5368 rm -f conftest.er1
5369 cat conftest.err >&5
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); } >/dev/null; then
5372 if test -s conftest.err; then
5373 ac_cpp_err=$ac_c_preproc_warn_flag
ec2075e9 5374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ff66d28f
PE
5375 else
5376 ac_cpp_err=
5377 fi
5378else
5379 ac_cpp_err=yes
5380fi
5381if test -z "$ac_cpp_err"; then
5382 # Broken: success on invalid input.
5383continue
5384else
5385 echo "$as_me: failed program was:" >&5
5386sed 's/^/| /' conftest.$ac_ext >&5
5387
5388 # Passes both tests.
5389ac_preproc_ok=:
5390break
5391fi
5392rm -f conftest.err conftest.$ac_ext
5393
5394done
5395# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5396rm -f conftest.err conftest.$ac_ext
5397if $ac_preproc_ok; then
c470c17d
BK
5398 :
5399else
ff66d28f
PE
5400 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5401See \`config.log' for more details." >&5
5402echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5403See \`config.log' for more details." >&2;}
5404 { (exit 1); exit 1; }; }
5405fi
5406
5407ac_ext=c
5408ac_cpp='$CPP $CPPFLAGS'
5409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5411ac_compiler_gnu=$ac_cv_c_compiler_gnu
5412
5413
5414echo "$as_me:$LINENO: checking for egrep" >&5
5415echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5416if test "${ac_cv_prog_egrep+set}" = set; then
5417 echo $ECHO_N "(cached) $ECHO_C" >&6
5418else
5419 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5420 then ac_cv_prog_egrep='grep -E'
5421 else ac_cv_prog_egrep='egrep'
5422 fi
5423fi
5424echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5425echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5426 EGREP=$ac_cv_prog_egrep
5427
5428
5429echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5430echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5431if test "${ac_cv_header_stdc+set}" = set; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5433else
5434 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5435/* confdefs.h. */
5436_ACEOF
5437cat confdefs.h >>conftest.$ac_ext
5438cat >>conftest.$ac_ext <<_ACEOF
5439/* end confdefs.h. */
5440#include <stdlib.h>
5441#include <stdarg.h>
5442#include <string.h>
5443#include <float.h>
5444
5445int
5446main ()
5447{
5448
5449 ;
5450 return 0;
5451}
5452_ACEOF
5453rm -f conftest.$ac_objext
5454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 5455 (eval $ac_compile) 2>conftest.er1
ff66d28f 5456 ac_status=$?
ec2075e9
BK
5457 grep -v '^ *+' conftest.er1 >conftest.err
5458 rm -f conftest.er1
5459 cat conftest.err >&5
ff66d28f
PE
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } &&
780028b6
BK
5462 { ac_try='test -z "$ac_c_werror_flag"
5463 || test ! -s conftest.err'
ec2075e9
BK
5464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465 (eval $ac_try) 2>&5
5466 ac_status=$?
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; } &&
5469 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 (eval $ac_try) 2>&5
5472 ac_status=$?
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; }; then
5475 ac_cv_header_stdc=yes
5476else
5477 echo "$as_me: failed program was:" >&5
5478sed 's/^/| /' conftest.$ac_ext >&5
5479
5480ac_cv_header_stdc=no
5481fi
ec2075e9 5482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
5483
5484if test $ac_cv_header_stdc = yes; then
5485 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5486 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5487/* confdefs.h. */
5488_ACEOF
5489cat confdefs.h >>conftest.$ac_ext
5490cat >>conftest.$ac_ext <<_ACEOF
5491/* end confdefs.h. */
5492#include <string.h>
5493
5494_ACEOF
5495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5496 $EGREP "memchr" >/dev/null 2>&1; then
c470c17d
BK
5497 :
5498else
ff66d28f
PE
5499 ac_cv_header_stdc=no
5500fi
5501rm -f conftest*
5502
5503fi
5504
5505if test $ac_cv_header_stdc = yes; then
5506 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5507 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5508/* confdefs.h. */
5509_ACEOF
5510cat confdefs.h >>conftest.$ac_ext
5511cat >>conftest.$ac_ext <<_ACEOF
5512/* end confdefs.h. */
5513#include <stdlib.h>
5514
5515_ACEOF
5516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5517 $EGREP "free" >/dev/null 2>&1; then
5518 :
5519else
5520 ac_cv_header_stdc=no
5521fi
5522rm -f conftest*
5523
5524fi
5525
5526if test $ac_cv_header_stdc = yes; then
5527 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5528 if test "$cross_compiling" = yes; then
5529 :
5530else
5531 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5532/* confdefs.h. */
5533_ACEOF
5534cat confdefs.h >>conftest.$ac_ext
5535cat >>conftest.$ac_ext <<_ACEOF
5536/* end confdefs.h. */
5537#include <ctype.h>
5538#if ((' ' & 0x0FF) == 0x020)
5539# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5540# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5541#else
5542# define ISLOWER(c) \
ec2075e9
BK
5543 (('a' <= (c) && (c) <= 'i') \
5544 || ('j' <= (c) && (c) <= 'r') \
5545 || ('s' <= (c) && (c) <= 'z'))
ff66d28f
PE
5546# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5547#endif
5548
5549#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5550int
5551main ()
5552{
5553 int i;
5554 for (i = 0; i < 256; i++)
5555 if (XOR (islower (i), ISLOWER (i))
ec2075e9 5556 || toupper (i) != TOUPPER (i))
ff66d28f
PE
5557 exit(2);
5558 exit (0);
5559}
5560_ACEOF
5561rm -f conftest$ac_exeext
5562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5563 (eval $ac_link) 2>&5
5564 ac_status=$?
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 (eval $ac_try) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; }; then
5572 :
5573else
5574 echo "$as_me: program exited with status $ac_status" >&5
5575echo "$as_me: failed program was:" >&5
5576sed 's/^/| /' conftest.$ac_ext >&5
5577
5578( exit $ac_status )
5579ac_cv_header_stdc=no
b2dad0e3 5580fi
ec2075e9 5581rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b2dad0e3 5582fi
33590f13 5583fi
33590f13 5584fi
ff66d28f
PE
5585echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5586echo "${ECHO_T}$ac_cv_header_stdc" >&6
5587if test $ac_cv_header_stdc = yes; then
5588
5589cat >>confdefs.h <<\_ACEOF
5590#define STDC_HEADERS 1
5591_ACEOF
5592
5593fi
5594
5595# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ec2075e9 5606 inttypes.h stdint.h unistd.h
ff66d28f
PE
5607do
5608as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5609echo "$as_me:$LINENO: checking for $ac_header" >&5
5610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5611if eval "test \"\${$as_ac_Header+set}\" = set"; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5613else
5614 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5615/* confdefs.h. */
5616_ACEOF
5617cat confdefs.h >>conftest.$ac_ext
5618cat >>conftest.$ac_ext <<_ACEOF
5619/* end confdefs.h. */
5620$ac_includes_default
5621
5622#include <$ac_header>
5623_ACEOF
5624rm -f conftest.$ac_objext
5625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 5626 (eval $ac_compile) 2>conftest.er1
ff66d28f 5627 ac_status=$?
ec2075e9
BK
5628 grep -v '^ *+' conftest.er1 >conftest.err
5629 rm -f conftest.er1
5630 cat conftest.err >&5
ff66d28f
PE
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } &&
780028b6
BK
5633 { ac_try='test -z "$ac_c_werror_flag"
5634 || test ! -s conftest.err'
ec2075e9
BK
5635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636 (eval $ac_try) 2>&5
5637 ac_status=$?
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; } &&
5640 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
5641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642 (eval $ac_try) 2>&5
5643 ac_status=$?
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); }; }; then
5646 eval "$as_ac_Header=yes"
5647else
5648 echo "$as_me: failed program was:" >&5
5649sed 's/^/| /' conftest.$ac_ext >&5
5650
5651eval "$as_ac_Header=no"
5652fi
ec2075e9 5653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
5654fi
5655echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5656echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5657if test `eval echo '${'$as_ac_Header'}'` = yes; then
5658 cat >>confdefs.h <<_ACEOF
5659#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5660_ACEOF
5661
33590f13 5662fi
ff66d28f
PE
5663
5664done
5665
33590f13
BK
5666
5667
ff66d28f
PE
5668 echo "$as_me:$LINENO: checking for C locale to use" >&5
5669echo $ECHO_N "checking for C locale to use... $ECHO_C" >&6
5670 # Check whether --enable-clocale or --disable-clocale was given.
4e10943d
BK
5671if test "${enable_clocale+set}" = set; then
5672 enableval="$enable_clocale"
ff66d28f
PE
5673
5674 case "$enableval" in
5675 generic|gnu|ieee_1003.1-2001|yes|no|auto) ;;
5676 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5
5677echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;}
5678 { (exit 1); exit 1; }; } ;;
5679 esac
5680
b2dad0e3 5681else
ff66d28f
PE
5682 enable_clocale=auto
5683fi;
b2dad0e3 5684
20427c6b 5685
ff66d28f
PE
5686 # If they didn't use this option switch, or if they specified --enable
5687 # with no specific model, we'll have to look for one. If they
5688 # specified --disable (???), do likewise.
5689 if test $enable_clocale = no || test $enable_clocale = yes; then
5690 enable_clocale=auto
5691 fi
5692
5693 # Either a known package, or "auto"
4e10943d 5694 enable_clocale_flag=$enable_clocale
dd75251f 5695
ff66d28f
PE
5696 # Probe for locale support if no specific model is specified.
5697 # Default to "generic".
5698 if test $enable_clocale_flag = auto; then
7d3998a4
PE
5699 case ${target_os} in
5700 linux* | gnu* | kfreebsd*-gnu | knetbsd*-gnu)
ff66d28f 5701 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5702/* confdefs.h. */
5703_ACEOF
5704cat confdefs.h >>conftest.$ac_ext
5705cat >>conftest.$ac_ext <<_ACEOF
5706/* end confdefs.h. */
56deb74c
BK
5707
5708 #include <features.h>
37bc6ca2 5709 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
3d7c150e 5710 _GLIBCXX_ok
56deb74c 5711 #endif
ff66d28f
PE
5712
5713_ACEOF
56deb74c 5714if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ff66d28f 5715 $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then
56deb74c
BK
5716 enable_clocale_flag=gnu
5717else
56deb74c
BK
5718 enable_clocale_flag=generic
5719fi
5720rm -f conftest*
5721
1451a492 5722
ff66d28f 5723 # Test for bugs early in glibc-2.2.x series
7d3998a4 5724 if test $enable_clocale_flag = gnu; then
ff66d28f 5725 if test "$cross_compiling" = yes; then
1451a492
BK
5726 enable_clocale_flag=generic
5727else
ff66d28f 5728 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5729/* confdefs.h. */
5730_ACEOF
5731cat confdefs.h >>conftest.$ac_ext
5732cat >>conftest.$ac_ext <<_ACEOF
5733/* end confdefs.h. */
5734
5735 #define _GNU_SOURCE 1
5736 #include <locale.h>
5737 #include <string.h>
5738 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
5739 extern __typeof(newlocale) __newlocale;
5740 extern __typeof(duplocale) __duplocale;
5741 extern __typeof(strcoll_l) __strcoll_l;
5742 #endif
5743 int main()
5744 {
5745