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