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