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