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