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