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