]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/configure
genmodes.c (struct mode_data): Add contained and next_cont fields.
[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
4c4809c1 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 BASIC_FILE_H BASIC_FILE_CC CPP EGREP check_msgfmt glibcxx_MOFILES glibcxx_POFILES glibcxx_localedir USE_NLS CLOCALE_H CCODECVT_H CMESSAGES_H CCODECVT_CC CCOLLATE_CC CCTYPE_CC CMESSAGES_CC CMONEY_CC CNUMERIC_CC CTIME_H CTIME_CC CLOCALE_CC CLOCALE_INTERNAL_H C_INCLUDE_DIR GLIBCXX_C_HEADERS_C_TRUE GLIBCXX_C_HEADERS_C_FALSE GLIBCXX_C_HEADERS_C_STD_TRUE GLIBCXX_C_HEADERS_C_STD_FALSE GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE glibcxx_thread_h DEBUG_FLAGS GLIBCXX_BUILD_DEBUG_TRUE GLIBCXX_BUILD_DEBUG_FALSE EXTRA_CXX_FLAGS WERROR SECTION_FLAGS SECTION_LDFLAGS OPT_LDFLAGS LIBMATHOBJS SYMVER_MAP port_specific_symbol_files GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE baseline_dir GLIBCXX_TEST_WCHAR_T_TRUE GLIBCXX_TEST_WCHAR_T_FALSE GLIBCXX_TEST_ABI_TRUE GLIBCXX_TEST_ABI_FALSE ATOMICITY_INC_SRCDIR OS_INC_SRCDIR glibcxx_prefixdir gxx_include_dir glibcxx_toolexecdir glibcxx_toolexeclibdir GLIBCXX_INCLUDES TOPLEVEL_INCLUDES OPTIMIZE_CXXFLAGS WARN_FLAGS LIBSUPCXX_PICFLAGS LIBOBJS LTLIBOBJS'
ff66d28f 312ac_subst_files=''
b2dad0e3
BK
313
314# Initialize some variables set by options.
ff66d28f
PE
315ac_init_help=
316ac_init_version=false
b2dad0e3
BK
317# The variables have the same names as the options, with
318# dashes changed to underlines.
ff66d28f 319cache_file=/dev/null
b2dad0e3 320exec_prefix=NONE
b2dad0e3 321no_create=
b2dad0e3
BK
322no_recursion=
323prefix=NONE
324program_prefix=NONE
325program_suffix=NONE
326program_transform_name=s,x,x,
327silent=
328site=
329srcdir=
b2dad0e3
BK
330verbose=
331x_includes=NONE
332x_libraries=NONE
ff66d28f
PE
333
334# Installation directory options.
335# These are left unexpanded so users can "make install exec_prefix=/foo"
336# and all the variables that are supposed to be based on exec_prefix
337# by default will actually change.
338# Use braces instead of parens because sh, perl, etc. also accept them.
b2dad0e3
BK
339bindir='${exec_prefix}/bin'
340sbindir='${exec_prefix}/sbin'
341libexecdir='${exec_prefix}/libexec'
342datadir='${prefix}/share'
343sysconfdir='${prefix}/etc'
344sharedstatedir='${prefix}/com'
345localstatedir='${prefix}/var'
346libdir='${exec_prefix}/lib'
347includedir='${prefix}/include'
348oldincludedir='/usr/include'
349infodir='${prefix}/info'
350mandir='${prefix}/man'
351
b2dad0e3
BK
352ac_prev=
353for ac_option
354do
b2dad0e3
BK
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
360 fi
361
ff66d28f 362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
b2dad0e3
BK
363
364 # Accept the important Cygnus configure options, so we can diagnose typos.
365
ff66d28f 366 case $ac_option in
b2dad0e3
BK
367
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ff66d28f 371 bindir=$ac_optarg ;;
b2dad0e3
BK
372
373 -build | --build | --buil | --bui | --bu)
ff66d28f 374 ac_prev=build_alias ;;
b2dad0e3 375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ff66d28f 376 build_alias=$ac_optarg ;;
b2dad0e3
BK
377
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ff66d28f
PE
383 cache_file=$ac_optarg ;;
384
385 --config-cache | -C)
386 cache_file=config.cache ;;
b2dad0e3
BK
387
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
ff66d28f 392 datadir=$ac_optarg ;;
b2dad0e3
BK
393
394 -disable-* | --disable-*)
ff66d28f 395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
b2dad0e3 396 # Reject names that are not valid shell variable names.
ff66d28f
PE
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
b2dad0e3
BK
402
403 -enable-* | --enable-*)
ff66d28f 404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
b2dad0e3 405 # Reject names that are not valid shell variable names.
ff66d28f
PE
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
b2dad0e3
BK
412 *) ac_optarg=yes ;;
413 esac
ff66d28f 414 eval "enable_$ac_feature='$ac_optarg'" ;;
b2dad0e3
BK
415
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
ff66d28f 423 exec_prefix=$ac_optarg ;;
b2dad0e3
BK
424
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
428
ff66d28f
PE
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
b2dad0e3
BK
435
436 -host | --host | --hos | --ho)
ff66d28f 437 ac_prev=host_alias ;;
b2dad0e3 438 -host=* | --host=* | --hos=* | --ho=*)
ff66d28f 439 host_alias=$ac_optarg ;;
b2dad0e3
BK
440
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
ff66d28f 446 includedir=$ac_optarg ;;
b2dad0e3
BK
447
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ff66d28f 451 infodir=$ac_optarg ;;
b2dad0e3
BK
452
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ff66d28f 456 libdir=$ac_optarg ;;
b2dad0e3
BK
457
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
ff66d28f 463 libexecdir=$ac_optarg ;;
b2dad0e3
BK
464
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
ff66d28f 472 localstatedir=$ac_optarg ;;
b2dad0e3
BK
473
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ff66d28f 477 mandir=$ac_optarg ;;
b2dad0e3
BK
478
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
482
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ff66d28f 484 | --no-cr | --no-c | -n)
b2dad0e3
BK
485 no_create=yes ;;
486
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
490
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ff66d28f 498 oldincludedir=$ac_optarg ;;
b2dad0e3
BK
499
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ff66d28f 503 prefix=$ac_optarg ;;
b2dad0e3
BK
504
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ff66d28f 510 program_prefix=$ac_optarg ;;
b2dad0e3
BK
511
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ff66d28f 517 program_suffix=$ac_optarg ;;
b2dad0e3
BK
518
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
ff66d28f 534 program_transform_name=$ac_optarg ;;
b2dad0e3
BK
535
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
539
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
ff66d28f 544 sbindir=$ac_optarg ;;
b2dad0e3
BK
545
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
ff66d28f 555 sharedstatedir=$ac_optarg ;;
b2dad0e3
BK
556
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
ff66d28f 560 site=$ac_optarg ;;
b2dad0e3
BK
561
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ff66d28f 565 srcdir=$ac_optarg ;;
b2dad0e3
BK
566
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ff66d28f 572 sysconfdir=$ac_optarg ;;
b2dad0e3
BK
573
574 -target | --target | --targe | --targ | --tar | --ta | --t)
ff66d28f 575 ac_prev=target_alias ;;
b2dad0e3 576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ff66d28f 577 target_alias=$ac_optarg ;;
b2dad0e3
BK
578
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
581
ff66d28f
PE
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
b2dad0e3
BK
584
585 -with-* | --with-*)
ff66d28f 586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
b2dad0e3 587 # Reject names that are not valid shell variable names.
ff66d28f
PE
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
b2dad0e3 591 ac_package=`echo $ac_package| sed 's/-/_/g'`
ff66d28f
PE
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
b2dad0e3
BK
594 *) ac_optarg=yes ;;
595 esac
ff66d28f 596 eval "with_$ac_package='$ac_optarg'" ;;
b2dad0e3
BK
597
598 -without-* | --without-*)
ff66d28f 599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
b2dad0e3 600 # Reject names that are not valid shell variable names.
ff66d28f
PE
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
b2dad0e3
BK
606
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
610
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ff66d28f 616 x_includes=$ac_optarg ;;
b2dad0e3
BK
617
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ff66d28f 623 x_libraries=$ac_optarg ;;
b2dad0e3 624
ff66d28f
PE
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
b2dad0e3
BK
628 ;;
629
ff66d28f
PE
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
639
b2dad0e3 640 *)
ff66d28f
PE
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
b2dad0e3
BK
646 ;;
647
648 esac
649done
650
651if test -n "$ac_prev"; then
ff66d28f
PE
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
b2dad0e3 655fi
b2dad0e3 656
ff66d28f
PE
657# Be sure to have absolute paths.
658for ac_var in exec_prefix prefix
659do
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666done
b2dad0e3 667
ff66d28f
PE
668# Be sure to have absolute paths.
669for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
b2dad0e3 671do
ff66d28f
PE
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
b2dad0e3
BK
677 esac
678done
679
ff66d28f
PE
680# There might be people who depend on the old broken behavior: `$host'
681# used to hold the argument of --host etc.
682# FIXME: To remove some day.
683build=$build_alias
684host=$host_alias
685target=$target_alias
b2dad0e3 686
ff66d28f
PE
687# FIXME: To remove some day.
688if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
695 fi
696fi
697
698ac_tool_prefix=
699test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701test "$silent" = yes && exec 6>/dev/null
b2dad0e3 702
b2dad0e3
BK
703
704# Find the source files, if location was not specified.
705if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
ff66d28f
PE
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
b2dad0e3
BK
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
723 fi
724else
725 ac_srcdir_defaulted=no
726fi
727if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
ff66d28f
PE
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
b2dad0e3 731 else
ff66d28f
PE
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
734 fi
735fi
736(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740ac_env_build_alias_set=${build_alias+set}
741ac_env_build_alias_value=$build_alias
742ac_cv_env_build_alias_set=${build_alias+set}
743ac_cv_env_build_alias_value=$build_alias
744ac_env_host_alias_set=${host_alias+set}
745ac_env_host_alias_value=$host_alias
746ac_cv_env_host_alias_set=${host_alias+set}
747ac_cv_env_host_alias_value=$host_alias
748ac_env_target_alias_set=${target_alias+set}
749ac_env_target_alias_value=$target_alias
750ac_cv_env_target_alias_set=${target_alias+set}
751ac_cv_env_target_alias_value=$target_alias
ff66d28f
PE
752ac_env_CXXCPP_set=${CXXCPP+set}
753ac_env_CXXCPP_value=$CXXCPP
754ac_cv_env_CXXCPP_set=${CXXCPP+set}
755ac_cv_env_CXXCPP_value=$CXXCPP
f6dda651
PE
756ac_env_CPPFLAGS_set=${CPPFLAGS+set}
757ac_env_CPPFLAGS_value=$CPPFLAGS
758ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
759ac_cv_env_CPPFLAGS_value=$CPPFLAGS
ff66d28f
PE
760ac_env_CPP_set=${CPP+set}
761ac_env_CPP_value=$CPP
762ac_cv_env_CPP_set=${CPP+set}
763ac_cv_env_CPP_value=$CPP
764
765#
766# Report the --help message.
767#
768if test "$ac_init_help" = "long"; then
769 # Omit some internal or obsolete options to make the list less imposing.
770 # This message is too long to be a string in the A/UX 3.1 sh.
771 cat <<_ACEOF
fbe057bb 772\`configure' configures package-unused version-unused to adapt to many kinds of systems.
ff66d28f
PE
773
774Usage: $0 [OPTION]... [VAR=VALUE]...
775
776To assign environment variables (e.g., CC, CFLAGS...), specify them as
777VAR=VALUE. See below for descriptions of some of the useful variables.
778
779Defaults for the options are specified in brackets.
780
781Configuration:
782 -h, --help display this help and exit
783 --help=short display options specific to this package
784 --help=recursive display the short help of all the included packages
785 -V, --version display version information and exit
786 -q, --quiet, --silent do not print \`checking...' messages
787 --cache-file=FILE cache test results in FILE [disabled]
788 -C, --config-cache alias for \`--cache-file=config.cache'
789 -n, --no-create do not create output files
790 --srcdir=DIR find the sources in DIR [configure dir or \`..']
791
792_ACEOF
793
794 cat <<_ACEOF
795Installation directories:
796 --prefix=PREFIX install architecture-independent files in PREFIX
797 [$ac_default_prefix]
798 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
799 [PREFIX]
800
801By default, \`make install' will install all the files in
802\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
803an installation prefix other than \`$ac_default_prefix' using \`--prefix',
804for instance \`--prefix=\$HOME'.
805
806For better control, use the options below.
807
808Fine tuning of the installation directories:
809 --bindir=DIR user executables [EPREFIX/bin]
810 --sbindir=DIR system admin executables [EPREFIX/sbin]
811 --libexecdir=DIR program executables [EPREFIX/libexec]
812 --datadir=DIR read-only architecture-independent data [PREFIX/share]
813 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
814 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
815 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
816 --libdir=DIR object code libraries [EPREFIX/lib]
817 --includedir=DIR C header files [PREFIX/include]
818 --oldincludedir=DIR C header files for non-gcc [/usr/include]
819 --infodir=DIR info documentation [PREFIX/info]
820 --mandir=DIR man documentation [PREFIX/man]
821_ACEOF
822
823 cat <<\_ACEOF
824
825Program names:
826 --program-prefix=PREFIX prepend PREFIX to installed program names
827 --program-suffix=SUFFIX append SUFFIX to installed program names
828 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
829
830System types:
831 --build=BUILD configure for building on BUILD [guessed]
832 --host=HOST cross-compile to build programs to run on HOST [BUILD]
833 --target=TARGET configure for building compilers for TARGET [HOST]
834_ACEOF
835fi
836
837if test -n "$ac_init_help"; then
838 case $ac_init_help in
fbe057bb 839 short | recursive ) echo "Configuration of package-unused version-unused:";;
ff66d28f
PE
840 esac
841 cat <<\_ACEOF
842
843Optional Features:
844 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
845 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
846 --enable-multilib build many library versions (default)
847 --enable-maintainer-mode enable make rules and dependencies not useful
848 (and sometimes confusing) to the casual installer
849 --enable-shared=PKGS build shared libraries default=yes
850 --enable-static=PKGS build static libraries default=yes
851 --enable-fast-install=PKGS optimize for fast installation default=yes
852 --disable-libtool-lock avoid locking (might break parallel builds)
92eabea2
PE
853 --disable-hosted-libstdcxx
854 only build freestanding C++ runtime support
ff66d28f
PE
855 --enable-sjlj-exceptions
856 force use of builtin_setjmp for exceptions
1260d70f 857 [default=auto]
ff66d28f
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
3d05b345 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
3d05b345 1173 rm -f core 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 \
3d05b345
PC
2803 ''\
2804 '#include <stdlib.h>' \
ff66d28f
PE
2805 'extern "C" void std::exit (int) throw (); using std::exit;' \
2806 'extern "C" void std::exit (int); using std::exit;' \
2807 'extern "C" void exit (int) throw ();' \
2808 'extern "C" void exit (int);' \
2809 'void exit (int);'
2810do
2811 cat >conftest.$ac_ext <<_ACEOF
2812#line $LINENO "configure"
2813/* confdefs.h. */
2814_ACEOF
2815cat confdefs.h >>conftest.$ac_ext
2816cat >>conftest.$ac_ext <<_ACEOF
2817/* end confdefs.h. */
65fc9769 2818#include <stdlib.h>
3d05b345 2819$ac_declaration
ff66d28f
PE
2820int
2821main ()
2822{
2823exit (42);
2824 ;
2825 return 0;
2826}
2827_ACEOF
2828rm -f conftest.$ac_objext
2829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830 (eval $ac_compile) 2>&5
2831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } &&
2834 { ac_try='test -s conftest.$ac_objext'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 (eval $ac_try) 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; }; then
2840 :
2841else
2842 echo "$as_me: failed program was:" >&5
2843sed 's/^/| /' conftest.$ac_ext >&5
b2dad0e3 2844
ff66d28f
PE
2845continue
2846fi
2847rm -f conftest.$ac_objext conftest.$ac_ext
2848 cat >conftest.$ac_ext <<_ACEOF
2849#line $LINENO "configure"
2850/* confdefs.h. */
2851_ACEOF
2852cat confdefs.h >>conftest.$ac_ext
2853cat >>conftest.$ac_ext <<_ACEOF
2854/* end confdefs.h. */
2855$ac_declaration
2856int
2857main ()
2858{
2859exit (42);
2860 ;
2861 return 0;
2862}
2863_ACEOF
2864rm -f conftest.$ac_objext
2865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2866 (eval $ac_compile) 2>&5
2867 ac_status=$?
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } &&
2870 { ac_try='test -s conftest.$ac_objext'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 (eval $ac_try) 2>&5
2873 ac_status=$?
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; }; then
2876 break
2877else
2878 echo "$as_me: failed program was:" >&5
2879sed 's/^/| /' conftest.$ac_ext >&5
2880
2881fi
2882rm -f conftest.$ac_objext conftest.$ac_ext
2883done
2884rm -f conftest*
2885if test -n "$ac_declaration"; then
2886 echo '#ifdef __cplusplus' >>confdefs.h
2887 echo $ac_declaration >>confdefs.h
2888 echo '#endif' >>confdefs.h
2889fi
b2dad0e3 2890
b2dad0e3 2891else
ff66d28f
PE
2892 echo "$as_me: failed program was:" >&5
2893sed 's/^/| /' conftest.$ac_ext >&5
2894
b2dad0e3 2895fi
ff66d28f
PE
2896rm -f conftest.$ac_objext conftest.$ac_ext
2897ac_ext=c
2898ac_cpp='$CPP $CPPFLAGS'
2899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2901ac_compiler_gnu=$ac_cv_c_compiler_gnu
2902
ff66d28f
PE
2903 ac_ext=cc
2904ac_cpp='$CXXCPP $CPPFLAGS'
2905ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2908if test -n "$ac_tool_prefix"; then
2909 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2910 do
2911 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2912set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2913echo "$as_me:$LINENO: checking for $ac_word" >&5
2914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2915if test "${glibcxx_cv_prog_CXX+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2917else
2918 if test -n "$CXX"; then
2919 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2920else
2921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922for as_dir in $PATH
2923do
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2928 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 break 2
2931 fi
2932done
2933done
2934
2935fi
2936fi
2937CXX=$glibcxx_cv_prog_CXX
2938if test -n "$CXX"; then
2939 echo "$as_me:$LINENO: result: $CXX" >&5
2940echo "${ECHO_T}$CXX" >&6
b2dad0e3 2941else
ff66d28f
PE
2942 echo "$as_me:$LINENO: result: no" >&5
2943echo "${ECHO_T}no" >&6
b2dad0e3 2944fi
b2dad0e3 2945
ff66d28f
PE
2946 test -n "$CXX" && break
2947 done
2948fi
2949if test -z "$CXX"; then
2950 ac_ct_CXX=$CXX
2951 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2952do
2953 # Extract the first word of "$ac_prog", so it can be a program name with args.
2954set dummy $ac_prog; ac_word=$2
2955echo "$as_me:$LINENO: checking for $ac_word" >&5
2956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2957if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2959else
2960 if test -n "$ac_ct_CXX"; then
2961 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2962else
2963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964for as_dir in $PATH
2965do
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2970 ac_cv_prog_ac_ct_CXX="$ac_prog"
2971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 break 2
b2dad0e3 2973 fi
ff66d28f
PE
2974done
2975done
2976
b2dad0e3 2977fi
ff66d28f
PE
2978fi
2979ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2980if test -n "$ac_ct_CXX"; then
2981 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2982echo "${ECHO_T}$ac_ct_CXX" >&6
2983else
2984 echo "$as_me:$LINENO: result: no" >&5
2985echo "${ECHO_T}no" >&6
b2dad0e3
BK
2986fi
2987
ff66d28f
PE
2988 test -n "$ac_ct_CXX" && break
2989done
2990test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2991
2992 CXX=$ac_ct_CXX
2993fi
2994
2995
2996# Provide some information about the compiler.
2997echo "$as_me:$LINENO:" \
2998 "checking for C++ compiler version" >&5
2999ac_compiler=`set X $ac_compile; echo $2`
3000{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3001 (eval $ac_compiler --version </dev/null >&5) 2>&5
3002 ac_status=$?
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }
3005{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3006 (eval $ac_compiler -v </dev/null >&5) 2>&5
3007 ac_status=$?
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }
3010{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3011 (eval $ac_compiler -V </dev/null >&5) 2>&5
3012 ac_status=$?
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }
3015
3016echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3017echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3018if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3020else
3021 cat >conftest.$ac_ext <<_ACEOF
3022#line $LINENO "configure"
3023/* confdefs.h. */
3024_ACEOF
3025cat confdefs.h >>conftest.$ac_ext
3026cat >>conftest.$ac_ext <<_ACEOF
3027/* end confdefs.h. */
3028
3029int
3030main ()
3031{
3032#ifndef __GNUC__
3033 choke me
3034#endif
3035
3036 ;
3037 return 0;
3038}
3039_ACEOF
3040rm -f conftest.$ac_objext
3041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3042 (eval $ac_compile) 2>&5
3043 ac_status=$?
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); } &&
3046 { ac_try='test -s conftest.$ac_objext'
3047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048 (eval $ac_try) 2>&5
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; }; then
3052 ac_compiler_gnu=yes
3053else
3054 echo "$as_me: failed program was:" >&5
3055sed 's/^/| /' conftest.$ac_ext >&5
3056
3057ac_compiler_gnu=no
3058fi
3059rm -f conftest.$ac_objext conftest.$ac_ext
3060ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3061
3062fi
3063echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3064echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3065GXX=`test $ac_compiler_gnu = yes && echo yes`
3066ac_test_CXXFLAGS=${CXXFLAGS+set}
3067ac_save_CXXFLAGS=$CXXFLAGS
3068CXXFLAGS="-g"
3069echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3070echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3071if test "${ac_cv_prog_cxx_g+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3073else
3074 cat >conftest.$ac_ext <<_ACEOF
3075#line $LINENO "configure"
3076/* confdefs.h. */
3077_ACEOF
3078cat confdefs.h >>conftest.$ac_ext
3079cat >>conftest.$ac_ext <<_ACEOF
3080/* end confdefs.h. */
3081
3082int
3083main ()
3084{
b2dad0e3 3085
ff66d28f
PE
3086 ;
3087 return 0;
3088}
3089_ACEOF
3090rm -f conftest.$ac_objext
3091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3092 (eval $ac_compile) 2>&5
3093 ac_status=$?
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } &&
3096 { ac_try='test -s conftest.$ac_objext'
3097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3098 (eval $ac_try) 2>&5
3099 ac_status=$?
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; }; then
3102 ac_cv_prog_cxx_g=yes
3103else
3104 echo "$as_me: failed program was:" >&5
3105sed 's/^/| /' conftest.$ac_ext >&5
3106
3107ac_cv_prog_cxx_g=no
3108fi
3109rm -f conftest.$ac_objext conftest.$ac_ext
3110fi
3111echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3112echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3113if test "$ac_test_CXXFLAGS" = set; then
3114 CXXFLAGS=$ac_save_CXXFLAGS
3115elif test $ac_cv_prog_cxx_g = yes; then
3116 if test "$GXX" = yes; then
3117 CXXFLAGS="-g -O2"
3118 else
3119 CXXFLAGS="-g"
3120 fi
3121else
3122 if test "$GXX" = yes; then
3123 CXXFLAGS="-O2"
3124 else
3125 CXXFLAGS=
5780a46b 3126 fi
ff66d28f
PE
3127fi
3128for ac_declaration in \
3d05b345
PC
3129 ''\
3130 '#include <stdlib.h>' \
ff66d28f
PE
3131 'extern "C" void std::exit (int) throw (); using std::exit;' \
3132 'extern "C" void std::exit (int); using std::exit;' \
3133 'extern "C" void exit (int) throw ();' \
3134 'extern "C" void exit (int);' \
3135 'void exit (int);'
3136do
3137 cat >conftest.$ac_ext <<_ACEOF
3138#line $LINENO "configure"
3139/* confdefs.h. */
3140_ACEOF
3141cat confdefs.h >>conftest.$ac_ext
3142cat >>conftest.$ac_ext <<_ACEOF
3143/* end confdefs.h. */
65fc9769 3144#include <stdlib.h>
3d05b345 3145$ac_declaration
ff66d28f
PE
3146int
3147main ()
3148{
3149exit (42);
3150 ;
3151 return 0;
3152}
3153_ACEOF
3154rm -f conftest.$ac_objext
3155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3156 (eval $ac_compile) 2>&5
3157 ac_status=$?
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } &&
3160 { ac_try='test -s conftest.$ac_objext'
3161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3162 (eval $ac_try) 2>&5
3163 ac_status=$?
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; }; then
3166 :
3167else
3168 echo "$as_me: failed program was:" >&5
3169sed 's/^/| /' conftest.$ac_ext >&5
b2dad0e3 3170
ff66d28f
PE
3171continue
3172fi
3173rm -f conftest.$ac_objext conftest.$ac_ext
3174 cat >conftest.$ac_ext <<_ACEOF
3175#line $LINENO "configure"
3176/* confdefs.h. */
3177_ACEOF
3178cat confdefs.h >>conftest.$ac_ext
3179cat >>conftest.$ac_ext <<_ACEOF
3180/* end confdefs.h. */
3181$ac_declaration
3182int
3183main ()
3184{
3185exit (42);
3186 ;
3187 return 0;
3188}
3189_ACEOF
3190rm -f conftest.$ac_objext
3191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3192 (eval $ac_compile) 2>&5
3193 ac_status=$?
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } &&
3196 { ac_try='test -s conftest.$ac_objext'
3197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198 (eval $ac_try) 2>&5
3199 ac_status=$?
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; }; then
3202 break
3203else
3204 echo "$as_me: failed program was:" >&5
3205sed 's/^/| /' conftest.$ac_ext >&5
3206
3207fi
3208rm -f conftest.$ac_objext conftest.$ac_ext
3209done
3210rm -f conftest*
3211if test -n "$ac_declaration"; then
3212 echo '#ifdef __cplusplus' >>confdefs.h
3213 echo $ac_declaration >>confdefs.h
3214 echo '#endif' >>confdefs.h
3215fi
3840fa2a 3216
ff66d28f
PE
3217ac_ext=c
3218ac_cpp='$CPP $CPPFLAGS'
3219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221ac_compiler_gnu=$ac_cv_c_compiler_gnu
16da539b 3222
ff66d28f 3223 CXXFLAGS="$save_CXXFLAGS"
d0941a31
PE
3224
3225
33590f13 3226
f6dda651 3227
ff66d28f
PE
3228 # For directory versioning (e.g., headers) and other variables.
3229 echo "$as_me:$LINENO: checking for GCC version number" >&5
3230echo $ECHO_N "checking for GCC version number... $ECHO_C" >&6
3231 gcc_version=`$CXX -dumpversion`
3232 echo "$as_me:$LINENO: result: $gcc_version" >&5
3233echo "${ECHO_T}$gcc_version" >&6
2f235b6d 3234
ff66d28f
PE
3235 # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't
3236 # available). Uncomment the next line to force a particular method.
3237 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3238echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3239LN_S=$as_ln_s
3240if test "$LN_S" = "ln -s"; then
3241 echo "$as_me:$LINENO: result: yes" >&5
3242echo "${ECHO_T}yes" >&6
2f235b6d 3243else
ff66d28f
PE
3244 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3245echo "${ECHO_T}no, using $LN_S" >&6
2f235b6d 3246fi
2f235b6d 3247
ff66d28f 3248 #LN_S='cp -p'
2f235b6d 3249
ff66d28f
PE
3250 if test -n "$ac_tool_prefix"; then
3251 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3252set dummy ${ac_tool_prefix}as; ac_word=$2
3253echo "$as_me:$LINENO: checking for $ac_word" >&5
3254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3255if test "${ac_cv_prog_AS+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
2f235b6d 3257else
ff66d28f
PE
3258 if test -n "$AS"; then
3259 ac_cv_prog_AS="$AS" # Let the user override the test.
2f235b6d 3260else
ff66d28f
PE
3261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262for as_dir in $PATH
3263do
3264 IFS=$as_save_IFS
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268 ac_cv_prog_AS="${ac_tool_prefix}as"
3269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 break 2
3271 fi
3272done
3273done
3274
2f235b6d 3275fi
2f235b6d 3276fi
ff66d28f
PE
3277AS=$ac_cv_prog_AS
3278if test -n "$AS"; then
3279 echo "$as_me:$LINENO: result: $AS" >&5
3280echo "${ECHO_T}$AS" >&6
2f235b6d 3281else
ff66d28f
PE
3282 echo "$as_me:$LINENO: result: no" >&5
3283echo "${ECHO_T}no" >&6
2f235b6d
PE
3284fi
3285
ff66d28f
PE
3286fi
3287if test -z "$ac_cv_prog_AS"; then
3288 ac_ct_AS=$AS
3289 # Extract the first word of "as", so it can be a program name with args.
3290set dummy as; ac_word=$2
3291echo "$as_me:$LINENO: checking for $ac_word" >&5
3292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3293if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3295else
3296 if test -n "$ac_ct_AS"; then
3297 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3298else
3299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300for as_dir in $PATH
3301do
3302 IFS=$as_save_IFS
3303 test -z "$as_dir" && as_dir=.
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3306 ac_cv_prog_ac_ct_AS="as"
3307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 break 2
3309 fi
3310done
3311done
2f235b6d 3312
ff66d28f
PE
3313fi
3314fi
3315ac_ct_AS=$ac_cv_prog_ac_ct_AS
3316if test -n "$ac_ct_AS"; then
3317 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3318echo "${ECHO_T}$ac_ct_AS" >&6
3319else
3320 echo "$as_me:$LINENO: result: no" >&5
3321echo "${ECHO_T}no" >&6
3322fi
2f235b6d 3323
ff66d28f
PE
3324 AS=$ac_ct_AS
3325else
3326 AS="$ac_cv_prog_AS"
2f235b6d 3327fi
2f235b6d 3328
ff66d28f
PE
3329 if test -n "$ac_tool_prefix"; then
3330 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3331set dummy ${ac_tool_prefix}ar; ac_word=$2
3332echo "$as_me:$LINENO: checking for $ac_word" >&5
3333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3334if test "${ac_cv_prog_AR+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3336else
3337 if test -n "$AR"; then
3338 ac_cv_prog_AR="$AR" # Let the user override the test.
3339else
3340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341for as_dir in $PATH
3342do
3343 IFS=$as_save_IFS
3344 test -z "$as_dir" && as_dir=.
3345 for ac_exec_ext in '' $ac_executable_extensions; do
3346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347 ac_cv_prog_AR="${ac_tool_prefix}ar"
3348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3349 break 2
3350 fi
3351done
3352done
2f235b6d 3353
ff66d28f
PE
3354fi
3355fi
3356AR=$ac_cv_prog_AR
3357if test -n "$AR"; then
3358 echo "$as_me:$LINENO: result: $AR" >&5
3359echo "${ECHO_T}$AR" >&6
3360else
3361 echo "$as_me:$LINENO: result: no" >&5
3362echo "${ECHO_T}no" >&6
3363fi
2f235b6d 3364
ff66d28f
PE
3365fi
3366if test -z "$ac_cv_prog_AR"; then
3367 ac_ct_AR=$AR
3368 # Extract the first word of "ar", so it can be a program name with args.
3369set dummy ar; ac_word=$2
3370echo "$as_me:$LINENO: checking for $ac_word" >&5
3371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3372if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3374else
3375 if test -n "$ac_ct_AR"; then
3376 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3377else
3378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379for as_dir in $PATH
3380do
3381 IFS=$as_save_IFS
3382 test -z "$as_dir" && as_dir=.
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3385 ac_cv_prog_ac_ct_AR="ar"
3386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 break 2
3388 fi
3389done
3390done
2f235b6d 3391
ff66d28f
PE
3392fi
3393fi
3394ac_ct_AR=$ac_cv_prog_ac_ct_AR
3395if test -n "$ac_ct_AR"; then
3396 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3397echo "${ECHO_T}$ac_ct_AR" >&6
2f235b6d 3398else
ff66d28f
PE
3399 echo "$as_me:$LINENO: result: no" >&5
3400echo "${ECHO_T}no" >&6
2f235b6d
PE
3401fi
3402
ff66d28f 3403 AR=$ac_ct_AR
2f235b6d 3404else
ff66d28f 3405 AR="$ac_cv_prog_AR"
2f235b6d
PE
3406fi
3407
ff66d28f
PE
3408 if test -n "$ac_tool_prefix"; then
3409 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3410set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3411echo "$as_me:$LINENO: checking for $ac_word" >&5
3412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3413if test "${ac_cv_prog_RANLIB+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3415else
3416 if test -n "$RANLIB"; then
3417 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3418else
3419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420for as_dir in $PATH
3421do
3422 IFS=$as_save_IFS
3423 test -z "$as_dir" && as_dir=.
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3426 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3428 break 2
3429 fi
3430done
3431done
3432
3433fi
3434fi
3435RANLIB=$ac_cv_prog_RANLIB
3436if test -n "$RANLIB"; then
3437 echo "$as_me:$LINENO: result: $RANLIB" >&5
3438echo "${ECHO_T}$RANLIB" >&6
2f235b6d 3439else
ff66d28f
PE
3440 echo "$as_me:$LINENO: result: no" >&5
3441echo "${ECHO_T}no" >&6
2f235b6d
PE
3442fi
3443
ff66d28f
PE
3444fi
3445if test -z "$ac_cv_prog_RANLIB"; then
3446 ac_ct_RANLIB=$RANLIB
3447 # Extract the first word of "ranlib", so it can be a program name with args.
3448set dummy ranlib; ac_word=$2
3449echo "$as_me:$LINENO: checking for $ac_word" >&5
3450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3451if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3453else
3454 if test -n "$ac_ct_RANLIB"; then
3455 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2f235b6d 3456else
ff66d28f
PE
3457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458for as_dir in $PATH
3459do
3460 IFS=$as_save_IFS
3461 test -z "$as_dir" && as_dir=.
3462 for ac_exec_ext in '' $ac_executable_extensions; do
3463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3464 ac_cv_prog_ac_ct_RANLIB="ranlib"
3465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3466 break 2
3467 fi
3468done
3469done
3470
3471 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3472fi
3473fi
3474ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3475if test -n "$ac_ct_RANLIB"; then
3476 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3477echo "${ECHO_T}$ac_ct_RANLIB" >&6
3478else
3479 echo "$as_me:$LINENO: result: no" >&5
3480echo "${ECHO_T}no" >&6
2f235b6d
PE
3481fi
3482
ff66d28f 3483 RANLIB=$ac_ct_RANLIB
2f235b6d 3484else
ff66d28f 3485 RANLIB="$ac_cv_prog_RANLIB"
2f235b6d
PE
3486fi
3487
3488
ff66d28f
PE
3489 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3490echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3491 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3492if test "${enable_maintainer_mode+set}" = set; then
3493 enableval="$enable_maintainer_mode"
3494 USE_MAINTAINER_MODE=$enableval
3495else
3496 USE_MAINTAINER_MODE=no
3497fi;
3498 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3499echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2f235b6d
PE
3500
3501
ff66d28f
PE
3502if test $USE_MAINTAINER_MODE = yes; then
3503 MAINTAINER_MODE_TRUE=
3504 MAINTAINER_MODE_FALSE='#'
3505else
3506 MAINTAINER_MODE_TRUE='#'
3507 MAINTAINER_MODE_FALSE=
3508fi
3509
3510 MAINT=$MAINTAINER_MODE_TRUE
2f235b6d 3511
5780a46b 3512
f4c79fef 3513
92eabea2
PE
3514 # Set up safe default values for all subsequent AM_CONDITIONAL tests
3515 # which are themselves conditionally expanded.
3516 ## (Right now, this only matters for enable_wchar_t, but nothing prevents
3517 ## other macros from doing the same. This should be automated.) -pme
ff66d28f
PE
3518 need_libmath=no
3519 enable_wchar_t=no
3520 #enable_libstdcxx_debug=no
3521 #enable_libstdcxx_pch=no
3522 #enable_cheaders=c
3523 #c_compatibility=no
3524 #enable_abi_check=no
3525 #enable_symvers=no
92eabea2 3526 #enable_hosted_libstdcxx=yes
ff66d28f
PE
3527
3528 # Find platform-specific directories containing configuration info.
3529 # Also possibly modify flags used elsewhere, as needed by the platform.
3530
3531 . $glibcxx_srcdir/configure.host
3532 { echo "$as_me:$LINENO: CPU config directory is $cpu_include_dir" >&5
3533echo "$as_me: CPU config directory is $cpu_include_dir" >&6;}
3534 { echo "$as_me:$LINENO: OS config directory is $os_include_dir" >&5
3535echo "$as_me: OS config directory is $os_include_dir" >&6;}
3536
3537
3538
3539#AC_MSG_NOTICE([====== Starting libtool configuration])
3540
b2dad0e3
BK
3541# Check whether --enable-shared or --disable-shared was given.
3542if test "${enable_shared+set}" = set; then
3543 enableval="$enable_shared"
3544 p=${PACKAGE-default}
c21b6f87 3545case $enableval in
b2dad0e3
BK
3546yes) enable_shared=yes ;;
3547no) enable_shared=no ;;
3548*)
3549 enable_shared=no
3550 # Look at the argument we got. We use all the common list separators.
3551 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3552 for pkg in $enableval; do
3553 if test "X$pkg" = "X$p"; then
3554 enable_shared=yes
3555 fi
3556 done
3557 IFS="$ac_save_ifs"
3558 ;;
3559esac
3560else
3561 enable_shared=yes
ff66d28f 3562fi;
b2dad0e3
BK
3563# Check whether --enable-static or --disable-static was given.
3564if test "${enable_static+set}" = set; then
3565 enableval="$enable_static"
3566 p=${PACKAGE-default}
c21b6f87 3567case $enableval in
b2dad0e3
BK
3568yes) enable_static=yes ;;
3569no) enable_static=no ;;
3570*)
3571 enable_static=no
3572 # Look at the argument we got. We use all the common list separators.
3573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3574 for pkg in $enableval; do
3575 if test "X$pkg" = "X$p"; then
3576 enable_static=yes
3577 fi
3578 done
3579 IFS="$ac_save_ifs"
3580 ;;
3581esac
3582else
3583 enable_static=yes
ff66d28f 3584fi;
b2dad0e3
BK
3585# Check whether --enable-fast-install or --disable-fast-install was given.
3586if test "${enable_fast_install+set}" = set; then
3587 enableval="$enable_fast_install"
3588 p=${PACKAGE-default}
c21b6f87 3589case $enableval in
b2dad0e3
BK
3590yes) enable_fast_install=yes ;;
3591no) enable_fast_install=no ;;
3592*)
3593 enable_fast_install=no
3594 # Look at the argument we got. We use all the common list separators.
3595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3596 for pkg in $enableval; do
3597 if test "X$pkg" = "X$p"; then
3598 enable_fast_install=yes
3599 fi
3600 done
3601 IFS="$ac_save_ifs"
3602 ;;
3603esac
3604else
3605 enable_fast_install=yes
ff66d28f 3606fi;
b2dad0e3 3607
b2dad0e3
BK
3608# Check whether --with-gnu-ld or --without-gnu-ld was given.
3609if test "${with_gnu_ld+set}" = set; then
3610 withval="$with_gnu_ld"
3611 test "$withval" = no || with_gnu_ld=yes
3612else
3613 with_gnu_ld=no
ff66d28f 3614fi;
b2dad0e3 3615ac_prog=ld
c21b6f87 3616if test "$GCC" = yes; then
b2dad0e3 3617 # Check if gcc -print-prog-name=ld gives a path.
ff66d28f
PE
3618 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3619echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3df64633
AO
3620 case $host in
3621 *-*-mingw*)
3622 # gcc leaves a trailing carriage return which upsets mingw
3623 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3624 *)
3625 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3626 esac
c21b6f87 3627 case $ac_prog in
b2dad0e3 3628 # Accept absolute paths.
3840fa2a 3629 [\\/]* | [A-Za-z]:[\\/]*)
b2dad0e3
BK
3630 re_direlt='/[^/][^/]*/\.\./'
3631 # Canonicalize the path of ld
3632 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3633 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3634 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3635 done
3636 test -z "$LD" && LD="$ac_prog"
3637 ;;
3638 "")
3639 # If it fails, then pretend we aren't using GCC.
3640 ac_prog=ld
3641 ;;
3642 *)
3643 # If it is relative, then search for the first ld in PATH.
3644 with_gnu_ld=unknown
3645 ;;
3646 esac
3647elif test "$with_gnu_ld" = yes; then
ff66d28f
PE
3648 echo "$as_me:$LINENO: checking for GNU ld" >&5
3649echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
b2dad0e3 3650else
ff66d28f
PE
3651 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3652echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
b2dad0e3 3653fi
ff66d28f
PE
3654if test "${lt_cv_path_LD+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3
BK
3656else
3657 if test -z "$LD"; then
3840fa2a 3658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
b2dad0e3
BK
3659 for ac_dir in $PATH; do
3660 test -z "$ac_dir" && ac_dir=.
3840fa2a 3661 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
c21b6f87 3662 lt_cv_path_LD="$ac_dir/$ac_prog"
b2dad0e3
BK
3663 # Check to see if the program is GNU ld. I'd rather use --version,
3664 # but apparently some GNU ld's only accept -v.
3665 # Break only if it was the GNU/non-GNU ld that we prefer.
c21b6f87 3666 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
b2dad0e3
BK
3667 test "$with_gnu_ld" != no && break
3668 else
3669 test "$with_gnu_ld" != yes && break
3670 fi
3671 fi
3672 done
3673 IFS="$ac_save_ifs"
3674else
c21b6f87 3675 lt_cv_path_LD="$LD" # Let the user override the test with a path.
b2dad0e3
BK
3676fi
3677fi
3678
c21b6f87 3679LD="$lt_cv_path_LD"
b2dad0e3 3680if test -n "$LD"; then
ff66d28f
PE
3681 echo "$as_me:$LINENO: result: $LD" >&5
3682echo "${ECHO_T}$LD" >&6
b2dad0e3 3683else
ff66d28f
PE
3684 echo "$as_me:$LINENO: result: no" >&5
3685echo "${ECHO_T}no" >&6
b2dad0e3 3686fi
ff66d28f
PE
3687test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3688echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3689 { (exit 1); exit 1; }; }
3690echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3691echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3692if test "${lt_cv_prog_gnu_ld+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3
BK
3694else
3695 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3696if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
c21b6f87 3697 lt_cv_prog_gnu_ld=yes
b2dad0e3 3698else
c21b6f87 3699 lt_cv_prog_gnu_ld=no
b2dad0e3
BK
3700fi
3701fi
ff66d28f
PE
3702echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3703echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
c21b6f87 3704with_gnu_ld=$lt_cv_prog_gnu_ld
3df64633 3705
b2dad0e3 3706
ff66d28f
PE
3707echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3708echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3709if test "${lt_cv_ld_reload_flag+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633
AO
3711else
3712 lt_cv_ld_reload_flag='-r'
3713fi
ff66d28f
PE
3714echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3715echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3df64633
AO
3716reload_flag=$lt_cv_ld_reload_flag
3717test -n "$reload_flag" && reload_flag=" $reload_flag"
b2dad0e3 3718
ff66d28f
PE
3719echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3720echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3721if test "${lt_cv_path_NM+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3
BK
3723else
3724 if test -n "$NM"; then
3725 # Let the user override the test.
c21b6f87 3726 lt_cv_path_NM="$NM"
b2dad0e3 3727else
3840fa2a 3728 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
b2dad0e3
BK
3729 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3730 test -z "$ac_dir" && ac_dir=.
3df64633
AO
3731 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3732 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
b2dad0e3
BK
3733 # Check to see if the nm accepts a BSD-compat flag.
3734 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3735 # nm: unknown option "B" ignored
6d93bca4
AO
3736 # Tru64's nm complains that /dev/null is an invalid object file
3737 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
c21b6f87 3738 lt_cv_path_NM="$tmp_nm -B"
b2dad0e3 3739 break
3df64633 3740 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
c21b6f87 3741 lt_cv_path_NM="$tmp_nm -p"
b2dad0e3
BK
3742 break
3743 else
c21b6f87 3744 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
b2dad0e3
BK
3745 continue # so that we can try to find one that supports BSD flags
3746 fi
3747 fi
3748 done
3749 IFS="$ac_save_ifs"
c21b6f87 3750 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
b2dad0e3
BK
3751fi
3752fi
3753
c21b6f87 3754NM="$lt_cv_path_NM"
ff66d28f
PE
3755echo "$as_me:$LINENO: result: $NM" >&5
3756echo "${ECHO_T}$NM" >&6
b2dad0e3 3757
ff66d28f
PE
3758echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3759echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3760if test "${lt_cv_deplibs_check_method+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 3762else
3dd7094e 3763 lt_cv_file_magic_cmd='$MAGIC_CMD'
3df64633
AO
3764lt_cv_file_magic_test_file=
3765lt_cv_deplibs_check_method='unknown'
3766# Need to set the preceding variable on all platforms that support
3767# interlibrary dependencies.
3768# 'none' -- dependencies not supported.
3769# `unknown' -- same as none, but documents that we really don't know.
3770# 'pass_all' -- all dependencies passed with no checks.
3771# 'test_compile' -- check by making test program.
3772# 'file_magic [regex]' -- check by looking for files in library path
3773# which responds to the $file_magic_cmd with a given egrep regex.
3774# If you have `file' or equivalent on your system and you're not sure
3775# whether `pass_all' will *always* work, you probably want this one.
3776
c21b6f87
PE
3777case $host_os in
3778aix*)
3df64633
AO
3779 lt_cv_deplibs_check_method=pass_all
3780 ;;
3781
3782beos*)
3783 lt_cv_deplibs_check_method=pass_all
3784 ;;
3785
3786bsdi4*)
c21b6f87
PE
3787 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3788 lt_cv_file_magic_cmd='/usr/bin/file -L'
3df64633
AO
3789 lt_cv_file_magic_test_file=/shlib/libc.so
3790 ;;
3791
3dd7094e 3792cygwin* | mingw* |pw32*)
3df64633 3793 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3dd7094e 3794 lt_cv_file_magic_cmd='$OBJDUMP -f'
3df64633
AO
3795 ;;
3796
c21b6f87
PE
3797darwin* | rhapsody*)
3798 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
47e982b2
BK
3799 lt_cv_file_magic_cmd='/usr/bin/file -L'
3800 case "$host_os" in
3801 rhapsody* | darwin1.012)
3802 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3803 ;;
3804 *) # Darwin 1.3 on
3805 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3806 ;;
3807 esac
c21b6f87
PE
3808 ;;
3809
3df64633
AO
3810freebsd* )
3811 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
c21b6f87 3812 case $host_cpu in
3df64633 3813 i*86 )
6d93bca4
AO
3814 # Not sure whether the presence of OpenBSD here was a mistake.
3815 # Let's accept both of them until this is cleared up.
c21b6f87
PE
3816 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3817 lt_cv_file_magic_cmd=/usr/bin/file
3df64633
AO
3818 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3819 ;;
3820 esac
3821 else
3822 lt_cv_deplibs_check_method=pass_all
3823 fi
3824 ;;
3825
3826gnu*)
3827 lt_cv_deplibs_check_method=pass_all
3828 ;;
3829
c21b6f87 3830hpux10.20*|hpux11*)
38cca750
BK
3831 case $host_cpu in
3832 hppa*)
3833 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3834 lt_cv_file_magic_cmd=/usr/bin/file
3835 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3836 ;;
3837 ia64*)
3838 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3839 lt_cv_file_magic_cmd=/usr/bin/file
3840 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3841 ;;
3842 esac
3df64633
AO
3843 ;;
3844
3845irix5* | irix6*)
c21b6f87 3846 case $host_os in
3df64633
AO
3847 irix5*)
3848 # this will be overridden with pass_all, but let us keep it just in case
3849 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3850 ;;
3851 *)
c21b6f87 3852 case $LD in
3df64633
AO
3853 *-32|*"-32 ") libmagic=32-bit;;
3854 *-n32|*"-n32 ") libmagic=N32;;
3855 *-64|*"-64 ") libmagic=64-bit;;
3856 *) libmagic=never-match;;
3857 esac
3858 # this will be overridden with pass_all, but let us keep it just in case
c21b6f87
PE
3859 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3860 ;;
3df64633
AO
3861 esac
3862 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3863 lt_cv_deplibs_check_method=pass_all
3864 ;;
3865
3866# This must be Linux ELF.
6d93bca4 3867linux-gnu*)
c21b6f87 3868 case $host_cpu in
b1e0a93e 3869 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3df64633
AO
3870 lt_cv_deplibs_check_method=pass_all ;;
3871 *)
3872 # glibc up to 2.1.1 does not perform some relocations on ARM
c21b6f87
PE
3873 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3874 esac
3df64633
AO
3875 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3876 ;;
3877
3878netbsd*)
c21b6f87 3879 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
47e982b2 3880 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3df64633 3881 else
47e982b2 3882 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3df64633 3883 fi
c21b6f87
PE
3884 ;;
3885
3886newsos6)
3887 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3888 lt_cv_file_magic_cmd=/usr/bin/file
3889 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3df64633
AO
3890 ;;
3891
3892osf3* | osf4* | osf5*)
3893 # this will be overridden with pass_all, but let us keep it just in case
3894 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3895 lt_cv_file_magic_test_file=/shlib/libc.so
3896 lt_cv_deplibs_check_method=pass_all
3897 ;;
3898
3899sco3.2v5*)
3900 lt_cv_deplibs_check_method=pass_all
3901 ;;
3902
3903solaris*)
3904 lt_cv_deplibs_check_method=pass_all
3905 lt_cv_file_magic_test_file=/lib/libc.so
3906 ;;
3907
bfa1e6b1
BK
3908sysv5uw[78]* | sysv4*uw2*)
3909 lt_cv_deplibs_check_method=pass_all
3910 ;;
3911
3df64633 3912sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
c21b6f87 3913 case $host_vendor in
3df64633
AO
3914 ncr)
3915 lt_cv_deplibs_check_method=pass_all
3916 ;;
3917 motorola)
c21b6f87
PE
3918 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]'
3919 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3df64633
AO
3920 ;;
3921 esac
3922 ;;
3923esac
3924
3925fi
ff66d28f
PE
3926echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3927echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3df64633
AO
3928file_magic_cmd=$lt_cv_file_magic_cmd
3929deplibs_check_method=$lt_cv_deplibs_check_method
3930
3df64633 3931
ff66d28f 3932
3df64633 3933
ec0d7421 3934
3df64633
AO
3935# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3936
3937# Only perform the check for file, if the check method requires it
c21b6f87 3938case $deplibs_check_method in
3df64633 3939file_magic*)
3dd7094e 3940 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
ff66d28f
PE
3941 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3942echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3943if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 3945else
c21b6f87 3946 case $MAGIC_CMD in
3df64633 3947 /*)
3dd7094e 3948 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3df64633
AO
3949 ;;
3950 ?:/*)
3dd7094e 3951 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3df64633
AO
3952 ;;
3953 *)
3dd7094e 3954 ac_save_MAGIC_CMD="$MAGIC_CMD"
3df64633
AO
3955 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3956 ac_dummy="/usr/bin:$PATH"
3957 for ac_dir in $ac_dummy; do
3958 test -z "$ac_dir" && ac_dir=.
3959 if test -f $ac_dir/${ac_tool_prefix}file; then
3dd7094e 3960 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3df64633 3961 if test -n "$file_magic_test_file"; then
c21b6f87 3962 case $deplibs_check_method in
3df64633
AO
3963 "file_magic "*)
3964 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3dd7094e 3965 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3df64633
AO
3966 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3967 egrep "$file_magic_regex" > /dev/null; then
3968 :
3969 else
3970 cat <<EOF 1>&2
3971
3972*** Warning: the command libtool uses to detect shared libraries,
3973*** $file_magic_cmd, produces output that libtool cannot recognize.
3974*** The result is that libtool may fail to recognize shared libraries
3975*** as such. This will affect the creation of libtool libraries that
3976*** depend on shared libraries, but programs linked with such libtool
3977*** libraries will work regardless of this problem. Nevertheless, you
3978*** may want to report the problem to your system manager and/or to
3979*** bug-libtool@gnu.org
3980
3981EOF
3982 fi ;;
3983 esac
3984 fi
3985 break
3986 fi
3987 done
3988 IFS="$ac_save_ifs"
3dd7094e 3989 MAGIC_CMD="$ac_save_MAGIC_CMD"
3df64633
AO
3990 ;;
3991esac
3992fi
3993
3dd7094e
AO
3994MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3995if test -n "$MAGIC_CMD"; then
ff66d28f
PE
3996 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3997echo "${ECHO_T}$MAGIC_CMD" >&6
3df64633 3998else
ff66d28f
PE
3999 echo "$as_me:$LINENO: result: no" >&5
4000echo "${ECHO_T}no" >&6
3df64633
AO
4001fi
4002
3dd7094e 4003if test -z "$lt_cv_path_MAGIC_CMD"; then
3df64633 4004 if test -n "$ac_tool_prefix"; then
ff66d28f
PE
4005 echo "$as_me:$LINENO: checking for file" >&5
4006echo $ECHO_N "checking for file... $ECHO_C" >&6
4007if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 4009else
c21b6f87 4010 case $MAGIC_CMD in
3df64633 4011 /*)
3dd7094e 4012 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3df64633
AO
4013 ;;
4014 ?:/*)
3dd7094e 4015 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3df64633
AO
4016 ;;
4017 *)
3dd7094e 4018 ac_save_MAGIC_CMD="$MAGIC_CMD"
3df64633
AO
4019 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4020 ac_dummy="/usr/bin:$PATH"
4021 for ac_dir in $ac_dummy; do
4022 test -z "$ac_dir" && ac_dir=.
4023 if test -f $ac_dir/file; then
3dd7094e 4024 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3df64633 4025 if test -n "$file_magic_test_file"; then
c21b6f87 4026 case $deplibs_check_method in
3df64633
AO
4027 "file_magic "*)
4028 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3dd7094e 4029 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3df64633
AO
4030 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4031 egrep "$file_magic_regex" > /dev/null; then
4032 :
4033 else
4034 cat <<EOF 1>&2
4035
4036*** Warning: the command libtool uses to detect shared libraries,
4037*** $file_magic_cmd, produces output that libtool cannot recognize.
4038*** The result is that libtool may fail to recognize shared libraries
4039*** as such. This will affect the creation of libtool libraries that
4040*** depend on shared libraries, but programs linked with such libtool
4041*** libraries will work regardless of this problem. Nevertheless, you
4042*** may want to report the problem to your system manager and/or to
4043*** bug-libtool@gnu.org
4044
4045EOF
4046 fi ;;
4047 esac
4048 fi
4049 break
4050 fi
4051 done
4052 IFS="$ac_save_ifs"
3dd7094e 4053 MAGIC_CMD="$ac_save_MAGIC_CMD"
3df64633
AO
4054 ;;
4055esac
4056fi
4057
3dd7094e
AO
4058MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4059if test -n "$MAGIC_CMD"; then
ff66d28f
PE
4060 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4061echo "${ECHO_T}$MAGIC_CMD" >&6
3df64633 4062else
ff66d28f
PE
4063 echo "$as_me:$LINENO: result: no" >&5
4064echo "${ECHO_T}no" >&6
3df64633
AO
4065fi
4066
4067 else
3dd7094e 4068 MAGIC_CMD=:
3df64633
AO
4069 fi
4070fi
4071
4072 fi
4073 ;;
4074esac
4075
ff66d28f
PE
4076if test -n "$ac_tool_prefix"; then
4077 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3df64633 4078set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ff66d28f
PE
4079echo "$as_me:$LINENO: checking for $ac_word" >&5
4080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4081if test "${ac_cv_prog_RANLIB+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633
AO
4083else
4084 if test -n "$RANLIB"; then
4085 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4086else
ff66d28f
PE
4087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088for as_dir in $PATH
4089do
4090 IFS=$as_save_IFS
4091 test -z "$as_dir" && as_dir=.
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4094 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4096 break 2
4097 fi
4098done
4099done
4100
3df64633
AO
4101fi
4102fi
ff66d28f 4103RANLIB=$ac_cv_prog_RANLIB
3df64633 4104if test -n "$RANLIB"; then
ff66d28f
PE
4105 echo "$as_me:$LINENO: result: $RANLIB" >&5
4106echo "${ECHO_T}$RANLIB" >&6
3df64633 4107else
ff66d28f
PE
4108 echo "$as_me:$LINENO: result: no" >&5
4109echo "${ECHO_T}no" >&6
3df64633
AO
4110fi
4111
ff66d28f 4112fi
3df64633 4113if test -z "$ac_cv_prog_RANLIB"; then
ff66d28f 4114 ac_ct_RANLIB=$RANLIB
3df64633
AO
4115 # Extract the first word of "ranlib", so it can be a program name with args.
4116set dummy ranlib; ac_word=$2
ff66d28f
PE
4117echo "$as_me:$LINENO: checking for $ac_word" >&5
4118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4119if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 4121else
ff66d28f
PE
4122 if test -n "$ac_ct_RANLIB"; then
4123 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3df64633 4124else
ff66d28f
PE
4125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126for as_dir in $PATH
4127do
4128 IFS=$as_save_IFS
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132 ac_cv_prog_ac_ct_RANLIB="ranlib"
4133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4134 break 2
4135 fi
4136done
4137done
4138
4139 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3df64633
AO
4140fi
4141fi
ff66d28f
PE
4142ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4143if test -n "$ac_ct_RANLIB"; then
4144 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4145echo "${ECHO_T}$ac_ct_RANLIB" >&6
3df64633 4146else
ff66d28f
PE
4147 echo "$as_me:$LINENO: result: no" >&5
4148echo "${ECHO_T}no" >&6
3df64633
AO
4149fi
4150
ff66d28f 4151 RANLIB=$ac_ct_RANLIB
3df64633 4152else
ff66d28f 4153 RANLIB="$ac_cv_prog_RANLIB"
3df64633
AO
4154fi
4155
ff66d28f
PE
4156if test -n "$ac_tool_prefix"; then
4157 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3df64633 4158set dummy ${ac_tool_prefix}strip; ac_word=$2
ff66d28f
PE
4159echo "$as_me:$LINENO: checking for $ac_word" >&5
4160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4161if test "${ac_cv_prog_STRIP+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633
AO
4163else
4164 if test -n "$STRIP"; then
4165 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4166else
ff66d28f
PE
4167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168for as_dir in $PATH
4169do
4170 IFS=$as_save_IFS
4171 test -z "$as_dir" && as_dir=.
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4174 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4176 break 2
4177 fi
4178done
4179done
4180
3df64633
AO
4181fi
4182fi
ff66d28f 4183STRIP=$ac_cv_prog_STRIP
3df64633 4184if test -n "$STRIP"; then
ff66d28f
PE
4185 echo "$as_me:$LINENO: result: $STRIP" >&5
4186echo "${ECHO_T}$STRIP" >&6
3df64633 4187else
ff66d28f
PE
4188 echo "$as_me:$LINENO: result: no" >&5
4189echo "${ECHO_T}no" >&6
3df64633
AO
4190fi
4191
ff66d28f 4192fi
3df64633 4193if test -z "$ac_cv_prog_STRIP"; then
ff66d28f 4194 ac_ct_STRIP=$STRIP
3df64633
AO
4195 # Extract the first word of "strip", so it can be a program name with args.
4196set dummy strip; ac_word=$2
ff66d28f
PE
4197echo "$as_me:$LINENO: checking for $ac_word" >&5
4198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4199if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 4201else
ff66d28f
PE
4202 if test -n "$ac_ct_STRIP"; then
4203 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3df64633 4204else
ff66d28f
PE
4205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206for as_dir in $PATH
4207do
4208 IFS=$as_save_IFS
4209 test -z "$as_dir" && as_dir=.
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4212 ac_cv_prog_ac_ct_STRIP="strip"
4213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4214 break 2
4215 fi
4216done
4217done
4218
4219 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3df64633
AO
4220fi
4221fi
ff66d28f
PE
4222ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4223if test -n "$ac_ct_STRIP"; then
4224 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4225echo "${ECHO_T}$ac_ct_STRIP" >&6
3df64633 4226else
ff66d28f
PE
4227 echo "$as_me:$LINENO: result: no" >&5
4228echo "${ECHO_T}no" >&6
3df64633
AO
4229fi
4230
ff66d28f 4231 STRIP=$ac_ct_STRIP
3df64633 4232else
ff66d28f 4233 STRIP="$ac_cv_prog_STRIP"
3df64633
AO
4234fi
4235
b2dad0e3 4236
b2dad0e3
BK
4237# Check for any special flags to pass to ltconfig.
4238libtool_flags="--cache-file=$cache_file"
4239test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4240test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4241test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
c21b6f87
PE
4242test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4243test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
ff66d28f 4244
3840fa2a
BK
4245
4246# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4247if test "${enable_libtool_lock+set}" = set; then
4248 enableval="$enable_libtool_lock"
3840fa2a 4249
ff66d28f 4250fi;
3840fa2a
BK
4251test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4252test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
b2dad0e3 4253
ff66d28f 4254
3df64633
AO
4255# Check whether --with-pic or --without-pic was given.
4256if test "${with_pic+set}" = set; then
4257 withval="$with_pic"
4258 pic_mode="$withval"
4259else
4260 pic_mode=default
ff66d28f 4261fi;
3df64633
AO
4262test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4263test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4264
b2dad0e3
BK
4265# Some flags need to be propagated to the compiler or linker for good
4266# libtool support.
c21b6f87 4267case $host in
b2dad0e3
BK
4268*-*-irix6*)
4269 # Find out which ABI we are using.
3d05b345 4270 echo '#line 4270 "configure"' > conftest.$ac_ext
ff66d28f
PE
4271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4272 (eval $ac_compile) 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; then
3a15abf1
BK
4276 if test "$lt_cv_prog_gnu_ld" = yes; then
4277 case `/usr/bin/file conftest.$ac_objext` in
4278 *32-bit*)
4279 LD="${LD-ld} -melf32bsmip"
4280 ;;
4281 *N32*)
4282 LD="${LD-ld} -melf32bmipn32"
4283 ;;
4284 *64-bit*)
4285 LD="${LD-ld} -melf64bmip"
4286 ;;
4287 esac
4288 else
c21b6f87 4289 case `/usr/bin/file conftest.$ac_objext` in
b2dad0e3
BK
4290 *32-bit*)
4291 LD="${LD-ld} -32"
4292 ;;
4293 *N32*)
4294 LD="${LD-ld} -n32"
4295 ;;
4296 *64-bit*)
4297 LD="${LD-ld} -64"
4298 ;;
4299 esac
3a15abf1 4300 fi
b2dad0e3
BK
4301 fi
4302 rm -rf conftest*
4303 ;;
4304
38cca750
BK
4305ia64-*-hpux*)
4306 # Find out which ABI we are using.
4307 echo 'int i;' > conftest.$ac_ext
ff66d28f
PE
4308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4309 (eval $ac_compile) 2>&5
4310 ac_status=$?
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }; then
38cca750
BK
4313 case "`/usr/bin/file conftest.o`" in
4314 *ELF-32*)
4315 HPUX_IA64_MODE="32"
4316 ;;
4317 *ELF-64*)
4318 HPUX_IA64_MODE="64"
4319 ;;
4320 esac
4321 fi
4322 rm -rf conftest*
4323 ;;
4324
162c7cd9
SW
4325x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4326 # Find out which ABI we are using.
4327 echo 'int i;' > conftest.$ac_ext
ff66d28f
PE
4328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4329 (eval $ac_compile) 2>&5
4330 ac_status=$?
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; then
162c7cd9
SW
4333 case "`/usr/bin/file conftest.o`" in
4334 *32-bit*)
4335 case $host in
4336 x86_64-*linux*)
4337 LD="${LD-ld} -m elf_i386"
4338 ;;
e517f636 4339 ppc64-*linux*|powerpc64-*linux*)
162c7cd9
SW
4340 LD="${LD-ld} -m elf32ppclinux"
4341 ;;
4342 s390x-*linux*)
4343 LD="${LD-ld} -m elf_s390"
4344 ;;
4345 sparc64-*linux*)
4346 LD="${LD-ld} -m elf32_sparc"
4347 ;;
4348 esac
4349 ;;
4350 *64-bit*)
4351 case $host in
4352 x86_64-*linux*)
4353 LD="${LD-ld} -m elf_x86_64"
4354 ;;
4355 ppc*-*linux*|powerpc*-*linux*)
4356 LD="${LD-ld} -m elf64ppc"
4357 ;;
4358 s390*-*linux*)
4359 LD="${LD-ld} -m elf64_s390"
4360 ;;
4361 sparc*-*linux*)
4362 LD="${LD-ld} -m elf64_sparc"
4363 ;;
4364 esac
4365 ;;
4366 esac
4367 fi
4368 rm -rf conftest*
4369 ;;
4370
b2dad0e3
BK
4371*-*-sco3.2v5*)
4372 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4373 SAVE_CFLAGS="$CFLAGS"
4374 CFLAGS="$CFLAGS -belf"
ff66d28f
PE
4375 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4376echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4377if test "${lt_cv_cc_needs_belf+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 4379else
ff66d28f
PE
4380
4381
3df64633 4382 ac_ext=c
3df64633 4383ac_cpp='$CPP $CPPFLAGS'
ff66d28f
PE
4384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386ac_compiler_gnu=$ac_cv_c_compiler_gnu
4387
72730fdb
DJ
4388 if test x$gcc_no_link = xyes; then
4389 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4390echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4391 { (exit 1); exit 1; }; }
4392fi
4393cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
4394#line $LINENO "configure"
4395/* confdefs.h. */
4396_ACEOF
4397cat confdefs.h >>conftest.$ac_ext
4398cat >>conftest.$ac_ext <<_ACEOF
4399/* end confdefs.h. */
3df64633 4400
ff66d28f
PE
4401int
4402main ()
4403{
b2dad0e3 4404
ff66d28f
PE
4405 ;
4406 return 0;
4407}
4408_ACEOF
4409rm -f conftest.$ac_objext conftest$ac_exeext
4410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4411 (eval $ac_link) 2>&5
4412 ac_status=$?
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); } &&
4415 { ac_try='test -s conftest$ac_exeext'
4416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417 (eval $ac_try) 2>&5
4418 ac_status=$?
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; }; then
b2dad0e3
BK
4421 lt_cv_cc_needs_belf=yes
4422else
ff66d28f
PE
4423 echo "$as_me: failed program was:" >&5
4424sed 's/^/| /' conftest.$ac_ext >&5
4425
4426lt_cv_cc_needs_belf=no
b2dad0e3 4427fi
ff66d28f 4428rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3df64633 4429 ac_ext=c
3df64633 4430ac_cpp='$CPP $CPPFLAGS'
ff66d28f
PE
4431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4433ac_compiler_gnu=$ac_cv_c_compiler_gnu
3df64633 4434
b2dad0e3 4435fi
ff66d28f
PE
4436echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4437echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
b2dad0e3
BK
4438 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4439 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4440 CFLAGS="$SAVE_CFLAGS"
4441 fi
4442 ;;
4443
4444
4445esac
4446
4447
4448# Save cache, so that ltconfig can load it
ff66d28f 4449cat >confcache <<\_ACEOF
b2dad0e3
BK
4450# This file is a shell script that caches the results of configure
4451# tests run on this system so they can be shared between configure
ff66d28f
PE
4452# scripts and configure runs, see configure's option --config-cache.
4453# It is not useful on other systems. If it contains results you don't
4454# want to keep, you may remove or edit it.
b2dad0e3 4455#
ff66d28f
PE
4456# config.status only pays attention to the cache file if you give it
4457# the --recheck option to rerun configure.
b2dad0e3 4458#
ff66d28f
PE
4459# `ac_cv_env_foo' variables (set or unset) will be overridden when
4460# loading this file, other *unset* `ac_cv_foo' will be assigned the
4461# following values.
4462
4463_ACEOF
4464
b2dad0e3
BK
4465# The following way of writing the cache mishandles newlines in values,
4466# but we know of no workaround that is simple, portable, and efficient.
4467# So, don't put newlines in cache variables' values.
4468# Ultrix sh set writes to stderr and can't be redirected directly,
4469# and sets the high bit in the cache file unless we assign to the vars.
ff66d28f
PE
4470{
4471 (set) 2>&1 |
4472 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4473 *ac_space=\ *)
4474 # `set' does not quote correctly, so add quotes (double-quote
4475 # substitution turns \\\\ into \\, and sed turns \\ into \).
4476 sed -n \
4477 "s/'/'\\\\''/g;
4478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4479 ;;
4480 *)
4481 # `set' quotes correctly as required by POSIX, so do not add quotes.
4482 sed -n \
4483 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4484 ;;
4485 esac;
4486} |
4487 sed '
4488 t clear
4489 : clear
4490 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4491 t end
4492 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4493 : end' >>confcache
4494if diff $cache_file confcache >/dev/null 2>&1; then :; else
b2dad0e3 4495 if test -w $cache_file; then
ff66d28f
PE
4496 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4497 cat confcache >$cache_file
b2dad0e3
BK
4498 else
4499 echo "not updating unwritable cache $cache_file"
4500 fi
4501fi
4502rm -f confcache
4503
b2dad0e3 4504# Actually configure libtool. ac_aux_dir is where install-sh is found.
3df64633 4505AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3dd7094e 4506MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3df64633
AO
4507LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4508AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4509objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4510deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
b2dad0e3 4511${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3df64633 4512$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
ff66d28f
PE
4513|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4514echo "$as_me: error: libtool configure failed" >&2;}
4515 { (exit 1); exit 1; }; }
b2dad0e3
BK
4516
4517# Reload cache, that may have been modified by ltconfig
4518if test -r "$cache_file"; then
ff66d28f
PE
4519 # Some versions of bash will fail to source /dev/null (special
4520 # files actually), so we avoid doing that.
4521 if test -f "$cache_file"; then
4522 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4523echo "$as_me: loading cache $cache_file" >&6;}
4524 case $cache_file in
4525 [\\/]* | ?:[\\/]* ) . $cache_file;;
4526 *) . ./$cache_file;;
4527 esac
4528 fi
b2dad0e3 4529else
ff66d28f
PE
4530 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4531echo "$as_me: creating cache $cache_file" >&6;}
4532 >$cache_file
b2dad0e3
BK
4533fi
4534
4535
4536# This can be used to rebuild libtool when needed
3df64633 4537LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
b2dad0e3
BK
4538
4539# Always use our own libtool.
4540LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4541
4542# Redirect the config.log output again, so that the ltconfig log is not
4543# clobbered by the next message.
4544exec 5>>./config.log
4545
ff66d28f
PE
4546ac_ext=cc
4547ac_cpp='$CXXCPP $CPPFLAGS'
4548ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4551echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4552echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4553if test -z "$CXXCPP"; then
4554 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4556else
4557 # Double quotes because CXXCPP needs to be expanded
4558 for CXXCPP in "$CXX -E" "/lib/cpp"
4559 do
4560 ac_preproc_ok=false
4561for ac_cxx_preproc_warn_flag in '' yes
4562do
4563 # Use a header file that comes with gcc, so configuring glibc
4564 # with a fresh cross-compiler works.
4565 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4566 # <limits.h> exists even on freestanding compilers.
4567 # On the NeXT, cc -E runs the code through the compiler's parser,
4568 # not just through cpp. "Syntax error" is here to catch this case.
4569 cat >conftest.$ac_ext <<_ACEOF
4570#line $LINENO "configure"
4571/* confdefs.h. */
4572_ACEOF
4573cat confdefs.h >>conftest.$ac_ext
4574cat >>conftest.$ac_ext <<_ACEOF
4575/* end confdefs.h. */
4576#ifdef __STDC__
4577# include <limits.h>
4578#else
4579# include <assert.h>
4580#endif
4581 Syntax error
4582_ACEOF
4583if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4584 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4585 ac_status=$?
4586 grep -v '^ *+' conftest.er1 >conftest.err
4587 rm -f conftest.er1
4588 cat conftest.err >&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } >/dev/null; then
4591 if test -s conftest.err; then
4592 ac_cpp_err=$ac_cxx_preproc_warn_flag
4593 else
4594 ac_cpp_err=
4595 fi
4596else
4597 ac_cpp_err=yes
4598fi
4599if test -z "$ac_cpp_err"; then
4600 :
4601else
4602 echo "$as_me: failed program was:" >&5
4603sed 's/^/| /' conftest.$ac_ext >&5
4604
4605 # Broken: fails on valid input.
4606continue
4607fi
4608rm -f conftest.err conftest.$ac_ext
4609
4610 # OK, works on sane cases. Now check whether non-existent headers
4611 # can be detected and how.
4612 cat >conftest.$ac_ext <<_ACEOF
4613#line $LINENO "configure"
4614/* confdefs.h. */
4615_ACEOF
4616cat confdefs.h >>conftest.$ac_ext
4617cat >>conftest.$ac_ext <<_ACEOF
4618/* end confdefs.h. */
4619#include <ac_nonexistent.h>
4620_ACEOF
4621if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4622 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4623 ac_status=$?
4624 grep -v '^ *+' conftest.er1 >conftest.err
4625 rm -f conftest.er1
4626 cat conftest.err >&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); } >/dev/null; then
4629 if test -s conftest.err; then
4630 ac_cpp_err=$ac_cxx_preproc_warn_flag
4631 else
4632 ac_cpp_err=
4633 fi
4634else
4635 ac_cpp_err=yes
4636fi
4637if test -z "$ac_cpp_err"; then
4638 # Broken: success on invalid input.
4639continue
4640else
4641 echo "$as_me: failed program was:" >&5
4642sed 's/^/| /' conftest.$ac_ext >&5
4643
4644 # Passes both tests.
4645ac_preproc_ok=:
4646break
4647fi
4648rm -f conftest.err conftest.$ac_ext
4649
4650done
4651# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4652rm -f conftest.err conftest.$ac_ext
4653if $ac_preproc_ok; then
4654 break
4655fi
4656
4657 done
4658 ac_cv_prog_CXXCPP=$CXXCPP
4659
4660fi
4661 CXXCPP=$ac_cv_prog_CXXCPP
4662else
4663 ac_cv_prog_CXXCPP=$CXXCPP
4664fi
4665echo "$as_me:$LINENO: result: $CXXCPP" >&5
4666echo "${ECHO_T}$CXXCPP" >&6
4667ac_preproc_ok=false
4668for ac_cxx_preproc_warn_flag in '' yes
4669do
4670 # Use a header file that comes with gcc, so configuring glibc
4671 # with a fresh cross-compiler works.
4672 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4673 # <limits.h> exists even on freestanding compilers.
4674 # On the NeXT, cc -E runs the code through the compiler's parser,
4675 # not just through cpp. "Syntax error" is here to catch this case.
4676 cat >conftest.$ac_ext <<_ACEOF
4677#line $LINENO "configure"
4678/* confdefs.h. */
4679_ACEOF
4680cat confdefs.h >>conftest.$ac_ext
4681cat >>conftest.$ac_ext <<_ACEOF
4682/* end confdefs.h. */
4683#ifdef __STDC__
4684# include <limits.h>
4685#else
4686# include <assert.h>
4687#endif
4688 Syntax error
4689_ACEOF
4690if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4691 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4692 ac_status=$?
4693 grep -v '^ *+' conftest.er1 >conftest.err
4694 rm -f conftest.er1
4695 cat conftest.err >&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); } >/dev/null; then
4698 if test -s conftest.err; then
4699 ac_cpp_err=$ac_cxx_preproc_warn_flag
4700 else
4701 ac_cpp_err=
4702 fi
4703else
4704 ac_cpp_err=yes
4705fi
4706if test -z "$ac_cpp_err"; then
4707 :
4708else
4709 echo "$as_me: failed program was:" >&5
4710sed 's/^/| /' conftest.$ac_ext >&5
4711
4712 # Broken: fails on valid input.
4713continue
4714fi
4715rm -f conftest.err conftest.$ac_ext
4716
4717 # OK, works on sane cases. Now check whether non-existent headers
4718 # can be detected and how.
4719 cat >conftest.$ac_ext <<_ACEOF
4720#line $LINENO "configure"
4721/* confdefs.h. */
4722_ACEOF
4723cat confdefs.h >>conftest.$ac_ext
4724cat >>conftest.$ac_ext <<_ACEOF
4725/* end confdefs.h. */
4726#include <ac_nonexistent.h>
4727_ACEOF
4728if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4730 ac_status=$?
4731 grep -v '^ *+' conftest.er1 >conftest.err
4732 rm -f conftest.er1
4733 cat conftest.err >&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } >/dev/null; then
4736 if test -s conftest.err; then
4737 ac_cpp_err=$ac_cxx_preproc_warn_flag
4738 else
4739 ac_cpp_err=
4740 fi
4741else
4742 ac_cpp_err=yes
4743fi
4744if test -z "$ac_cpp_err"; then
4745 # Broken: success on invalid input.
4746continue
4747else
4748 echo "$as_me: failed program was:" >&5
4749sed 's/^/| /' conftest.$ac_ext >&5
4750
4751 # Passes both tests.
4752ac_preproc_ok=:
4753break
4754fi
4755rm -f conftest.err conftest.$ac_ext
4756
4757done
4758# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4759rm -f conftest.err conftest.$ac_ext
4760if $ac_preproc_ok; then
4761 :
4762else
4763 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4764See \`config.log' for more details." >&5
4765echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4766See \`config.log' for more details." >&2;}
4767 { (exit 1); exit 1; }; }
4768fi
4769
4770ac_ext=c
4771ac_cpp='$CPP $CPPFLAGS'
4772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4774ac_compiler_gnu=$ac_cv_c_compiler_gnu
4775
3df64633
AO
4776
4777
3df64633
AO
4778LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
4779lt_save_CC="$CC"
4780lt_save_CFLAGS="$CFLAGS"
4781AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
c21b6f87 4782MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3df64633
AO
4783LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4784AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4785objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4786deplibs_check_method="$deplibs_check_method" \
4787file_magic_cmd="$file_magic_cmd" \
4788${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4789--build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
ff66d28f
PE
4790|| { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
4791echo "$as_me: error: libtool tag configuration failed" >&2;}
4792 { (exit 1); exit 1; }; }
3df64633
AO
4793CC="$lt_save_CC"
4794CFLAGS="$lt_save_CFLAGS"
4795
4796# Redirect the config.log output again, so that the ltconfig log is not
4797# clobbered by the next message.
4798exec 5>>./config.log
4799
3df64633 4800
34791641
PE
4801
4802
33590f13 4803
ff66d28f
PE
4804
4805
4806
4807#AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4808
92eabea2
PE
4809# Possibly disable most of the library.
4810## XXX Consider skipping unncessary tests altogether in this case, rather
4811## than just ignoring the results. Faster /and/ more correct, win win.
4812
4813 # Check whether --enable-hosted-libstdcxx or --disable-hosted-libstdcxx was given.
4814if test "${enable_hosted_libstdcxx+set}" = set; then
4815 enableval="$enable_hosted_libstdcxx"
4816
4817else
4818 enable_hosted_libstdcxx=yes
4819fi;
4820 if test "$enable_hosted_libstdcxx" = no; then
4821 { echo "$as_me:$LINENO: Only freestanding libraries will be built" >&5
4822echo "$as_me: Only freestanding libraries will be built" >&6;}
4823 is_hosted=no
3660e02f 4824 hosted_define=0
92eabea2
PE
4825 enable_abi_check=no
4826 enable_libstdcxx_pch=no
4827 else
4828 is_hosted=yes
3660e02f 4829 hosted_define=1
92eabea2
PE
4830 fi
4831
4832
3660e02f
PE
4833cat >>confdefs.h <<_ACEOF
4834#define _GLIBCXX_HOSTED $hosted_define
4835_ACEOF
4836
4837
92eabea2 4838
44f0760e 4839# Check for support bits and g++ features that don't require linking.
5780a46b 4840
ff66d28f
PE
4841 echo "$as_me:$LINENO: checking for exception model to use" >&5
4842echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
249ed716 4843
ff66d28f
PE
4844
4845 ac_ext=cc
44f0760e 4846ac_cpp='$CXXCPP $CPPFLAGS'
ff66d28f
PE
4847ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44f0760e 4850
ff66d28f 4851 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
44f0760e
BK
4852if test "${enable_sjlj_exceptions+set}" = set; then
4853 enableval="$enable_sjlj_exceptions"
1260d70f
PE
4854
4855 case "$enableval" in
4856 yes|no|auto) ;;
4857 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable sjlj-exceptions" >&5
4858echo "$as_me: error: Unknown argument to enable/disable sjlj-exceptions" >&2;}
4859 { (exit 1); exit 1; }; } ;;
4860 esac
4861
44f0760e 4862else
1260d70f 4863 enable_sjlj_exceptions=auto
ff66d28f 4864fi;
44f0760e 4865
1260d70f
PE
4866
4867 if test $enable_sjlj_exceptions = auto; then
4868 # Botheration. Now we've got to detect the exception model. Link tests
4869 # against libgcc.a are problematic since we've not been given proper -L
4870 # bits for single-tree newlib and libgloss.
4871 #
4872 # Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style.
4873 cat > conftest.$ac_ext << EOF
3d05b345 4874#line 4874 "configure"
1260d70f
PE
4875struct S { ~S(); };
4876void bar();
4877void foo()
4878{
4879 S s;
4880 bar();
4881}
4882EOF
4883 old_CXXFLAGS="$CXXFLAGS"
4884 CXXFLAGS=-S
4885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4886 (eval $ac_compile) 2>&5
4887 ac_status=$?
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); }; then
4890 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
4891 enable_sjlj_exceptions=yes
4892 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
4893 enable_sjlj_exceptions=no
4894 fi
4895 fi
4896 CXXFLAGS="$old_CXXFLAGS"
4897 rm -f conftest*
4898 fi
4899
4900 # This is a tad weird, for hysterical raisins. We have to map enable/disable
4901 # to two different models.
4902 case $enable_sjlj_exceptions in
4903 yes)
44f0760e 4904
ff66d28f
PE
4905cat >>confdefs.h <<\_ACEOF
4906#define _GLIBCXX_SJLJ_EXCEPTIONS 1
4907_ACEOF
4908
1260d70f
PE
4909 ac_exception_model_name=sjlj
4910 ;;
4911 no)
4912 ac_exception_model_name="call frame"
4913 ;;
4914 *)
4915 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
ff66d28f
PE
4916echo "$as_me: error: unable to detect exception model" >&2;}
4917 { (exit 1); exit 1; }; }
1260d70f
PE
4918 ;;
4919 esac
ff66d28f 4920 ac_ext=c
44f0760e 4921ac_cpp='$CPP $CPPFLAGS'
ff66d28f
PE
4922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4924ac_compiler_gnu=$ac_cv_c_compiler_gnu
44f0760e 4925
ff66d28f
PE
4926 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
4927echo "${ECHO_T}$ac_exception_model_name" >&6
44f0760e
BK
4928
4929
ff66d28f
PE
4930 echo "$as_me:$LINENO: checking for use of libunwind" >&5
4931echo $ECHO_N "checking for use of libunwind... $ECHO_C" >&6
4932 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
44f0760e
BK
4933if test "${enable_libunwind_exceptions+set}" = set; then
4934 enableval="$enable_libunwind_exceptions"
ff66d28f
PE
4935
4936 case "$enableval" in
4937 yes|no) ;;
4938 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libunwind-exceptions must be yes or no" >&5
4939echo "$as_me: error: Argument to enable/disable libunwind-exceptions must be yes or no" >&2;}
4940 { (exit 1); exit 1; }; } ;;
4941 esac
4942
44f0760e 4943else
ff66d28f
PE
4944 enable_libunwind_exceptions=no
4945fi;
44f0760e 4946
ff66d28f
PE
4947 echo "$as_me:$LINENO: result: $use_libunwind_exceptions" >&5
4948echo "${ECHO_T}$use_libunwind_exceptions" >&6
4949 if test $enable_libunwind_exceptions = yes; then
44f0760e
BK
4950 LIBUNWIND_FLAG="-lunwind"
4951 else
4952 LIBUNWIND_FLAG=""
4953 fi
44f0760e 4954
ff66d28f
PE
4955
4956
4957 echo "$as_me:$LINENO: checking for enabled PCH" >&5
4958echo $ECHO_N "checking for enabled PCH... $ECHO_C" >&6
4959 # Check whether --enable-libstdcxx-pch or --disable-libstdcxx-pch was given.
d8d81f62
BK
4960if test "${enable_libstdcxx_pch+set}" = set; then
4961 enableval="$enable_libstdcxx_pch"
ff66d28f
PE
4962
4963 case "$enableval" in
4964 yes|no) ;;
4965 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&5
4966echo "$as_me: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&2;}
4967 { (exit 1); exit 1; }; } ;;
4968 esac
4969
44f0760e 4970else
92eabea2 4971 enable_libstdcxx_pch=$is_hosted
ff66d28f 4972fi;
44f0760e 4973
ff66d28f
PE
4974 echo "$as_me:$LINENO: result: $enable_libstdcxx_pch" >&5
4975echo "${ECHO_T}$enable_libstdcxx_pch" >&6
4976
4977 if test $enable_libstdcxx_pch = yes; then
4978 echo "$as_me:$LINENO: checking for compiler with PCH support" >&5
4979echo $ECHO_N "checking for compiler with PCH support... $ECHO_C" >&6
4980if test "${glibcxx_cv_prog_CXX_pch+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
249ed716 4982else
ff66d28f
PE
4983 ac_save_CXXFLAGS="$CXXFLAGS"
4984 CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated"
4985
4986
4987 ac_ext=cc
249ed716 4988ac_cpp='$CXXCPP $CPPFLAGS'
ff66d28f
PE
4989ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4990ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4991ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4992
4993 echo '#include <math.h>' > conftest.h
4994 if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
4995 -o conftest.h.gch 1>&5 2>&1 &&
4996 echo '#error "pch failed"' > conftest.h &&
4997 echo '#include "conftest.h"' > conftest.cc &&
4998 $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ;
4999 then
5000 glibcxx_cv_prog_CXX_pch=yes
5001 else
5002 glibcxx_cv_prog_CXX_pch=no
5003 fi
5004 rm -f conftest*
5005 CXXFLAGS=$ac_save_CXXFLAGS
5006 ac_ext=c
249ed716 5007ac_cpp='$CPP $CPPFLAGS'
ff66d28f
PE
5008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5010ac_compiler_gnu=$ac_cv_c_compiler_gnu
249ed716 5011
249ed716 5012
ff66d28f
PE
5013fi
5014echo "$as_me:$LINENO: result: $glibcxx_cv_prog_CXX_pch" >&5
5015echo "${ECHO_T}$glibcxx_cv_prog_CXX_pch" >&6
5016 enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch
44f0760e
BK
5017 fi
5018
44f0760e 5019
ff66d28f
PE
5020 if test $enable_libstdcxx_pch = yes; then
5021 glibcxx_PCHFLAGS="-include bits/stdc++.h"
bddc3107 5022 else
ff66d28f 5023 glibcxx_PCHFLAGS=""
bddc3107 5024 fi
249ed716 5025
04e78786 5026
ff66d28f
PE
5027
5028# Enable all the variable C++ runtime options.
44f0760e 5029# NB: C_MBCHAR must come early.
58ac1d7f 5030
ff66d28f
PE
5031 echo "$as_me:$LINENO: checking for underlying I/O to use" >&5
5032echo $ECHO_N "checking for underlying I/O to use... $ECHO_C" >&6
5033 # Check whether --enable-cstdio or --disable-cstdio was given.
58ac1d7f
BK
5034if test "${enable_cstdio+set}" = set; then
5035 enableval="$enable_cstdio"
ff66d28f
PE
5036
5037 case "$enableval" in
5038 stdio) ;;
5039 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cstdio" >&5
5040echo "$as_me: error: Unknown argument to enable/disable cstdio" >&2;}
5041 { (exit 1); exit 1; }; } ;;
5042 esac
5043
58ac1d7f
BK
5044else
5045 enable_cstdio=stdio
ff66d28f 5046fi;
58ac1d7f
BK
5047
5048
ff66d28f
PE
5049 # Now that libio has been removed, you can have any color you want as long
5050 # as it's black. This is one big no-op until other packages are added, but
5051 # showing the framework never hurts.
5052 case ${enable_cstdio} in
5053 stdio)
58ac1d7f
BK
5054 CSTDIO_H=config/io/c_io_stdio.h
5055 BASIC_FILE_H=config/io/basic_file_stdio.h
5056 BASIC_FILE_CC=config/io/basic_file_stdio.cc
ff66d28f
PE
5057 echo "$as_me:$LINENO: result: stdio" >&5
5058echo "${ECHO_T}stdio" >&6
58ac1d7f
BK
5059 ;;
5060 esac
cc5112c9 5061
ff66d28f
PE
5062
5063
5064
5065
5066ac_ext=c
5067ac_cpp='$CPP $CPPFLAGS'
5068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5070ac_compiler_gnu=$ac_cv_c_compiler_gnu
5071echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5072echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
c470c17d
BK
5073# On Suns, sometimes $CPP names a directory.
5074if test -n "$CPP" && test -d "$CPP"; then
5075 CPP=
5076fi
5077if test -z "$CPP"; then
ff66d28f
PE
5078 if test "${ac_cv_prog_CPP+set}" = set; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5080else
5081 # Double quotes because CPP needs to be expanded
5082 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5083 do
5084 ac_preproc_ok=false
5085for ac_c_preproc_warn_flag in '' yes
5086do
5087 # Use a header file that comes with gcc, so configuring glibc
5088 # with a fresh cross-compiler works.
5089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5090 # <limits.h> exists even on freestanding compilers.
5091 # On the NeXT, cc -E runs the code through the compiler's parser,
5092 # not just through cpp. "Syntax error" is here to catch this case.
5093 cat >conftest.$ac_ext <<_ACEOF
5094#line $LINENO "configure"
5095/* confdefs.h. */
5096_ACEOF
5097cat confdefs.h >>conftest.$ac_ext
5098cat >>conftest.$ac_ext <<_ACEOF
5099/* end confdefs.h. */
5100#ifdef __STDC__
5101# include <limits.h>
5102#else
5103# include <assert.h>
5104#endif
5105 Syntax error
5106_ACEOF
5107if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5109 ac_status=$?
5110 grep -v '^ *+' conftest.er1 >conftest.err
5111 rm -f conftest.er1
5112 cat conftest.err >&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); } >/dev/null; then
5115 if test -s conftest.err; then
5116 ac_cpp_err=$ac_c_preproc_warn_flag
5117 else
5118 ac_cpp_err=
5119 fi
5120else
5121 ac_cpp_err=yes
5122fi
5123if test -z "$ac_cpp_err"; then
5124 :
5125else
5126 echo "$as_me: failed program was:" >&5
5127sed 's/^/| /' conftest.$ac_ext >&5
5128
5129 # Broken: fails on valid input.
5130continue
5131fi
5132rm -f conftest.err conftest.$ac_ext
5133
5134 # OK, works on sane cases. Now check whether non-existent headers
5135 # can be detected and how.
5136 cat >conftest.$ac_ext <<_ACEOF
5137#line $LINENO "configure"
5138/* confdefs.h. */
5139_ACEOF
5140cat confdefs.h >>conftest.$ac_ext
5141cat >>conftest.$ac_ext <<_ACEOF
5142/* end confdefs.h. */
5143#include <ac_nonexistent.h>
5144_ACEOF
5145if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5147 ac_status=$?
5148 grep -v '^ *+' conftest.er1 >conftest.err
5149 rm -f conftest.er1
5150 cat conftest.err >&5
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); } >/dev/null; then
5153 if test -s conftest.err; then
5154 ac_cpp_err=$ac_c_preproc_warn_flag
5155 else
5156 ac_cpp_err=
5157 fi
5158else
5159 ac_cpp_err=yes
5160fi
5161if test -z "$ac_cpp_err"; then
5162 # Broken: success on invalid input.
5163continue
5164else
5165 echo "$as_me: failed program was:" >&5
5166sed 's/^/| /' conftest.$ac_ext >&5
5167
5168 # Passes both tests.
5169ac_preproc_ok=:
5170break
5171fi
5172rm -f conftest.err conftest.$ac_ext
5173
5174done
5175# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5176rm -f conftest.err conftest.$ac_ext
5177if $ac_preproc_ok; then
5178 break
5179fi
5180
5181 done
5182 ac_cv_prog_CPP=$CPP
5183
5184fi
5185 CPP=$ac_cv_prog_CPP
b2dad0e3 5186else
ff66d28f
PE
5187 ac_cv_prog_CPP=$CPP
5188fi
5189echo "$as_me:$LINENO: result: $CPP" >&5
5190echo "${ECHO_T}$CPP" >&6
5191ac_preproc_ok=false
5192for ac_c_preproc_warn_flag in '' yes
5193do
5194 # Use a header file that comes with gcc, so configuring glibc
5195 # with a fresh cross-compiler works.
5196 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5197 # <limits.h> exists even on freestanding compilers.
c470c17d 5198 # On the NeXT, cc -E runs the code through the compiler's parser,
ff66d28f
PE
5199 # not just through cpp. "Syntax error" is here to catch this case.
5200 cat >conftest.$ac_ext <<_ACEOF
5201#line $LINENO "configure"
5202/* confdefs.h. */
5203_ACEOF
5204cat confdefs.h >>conftest.$ac_ext
5205cat >>conftest.$ac_ext <<_ACEOF
5206/* end confdefs.h. */
5207#ifdef __STDC__
5208# include <limits.h>
5209#else
5210# include <assert.h>
5211#endif
5212 Syntax error
5213_ACEOF
5214if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5216 ac_status=$?
5217 grep -v '^ *+' conftest.er1 >conftest.err
5218 rm -f conftest.er1
5219 cat conftest.err >&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); } >/dev/null; then
5222 if test -s conftest.err; then
5223 ac_cpp_err=$ac_c_preproc_warn_flag
5224 else
5225 ac_cpp_err=
5226 fi
5227else
5228 ac_cpp_err=yes
5229fi
5230if test -z "$ac_cpp_err"; then
b2dad0e3
BK
5231 :
5232else
ff66d28f
PE
5233 echo "$as_me: failed program was:" >&5
5234sed 's/^/| /' conftest.$ac_ext >&5
5235
5236 # Broken: fails on valid input.
5237continue
5238fi
5239rm -f conftest.err conftest.$ac_ext
5240
5241 # OK, works on sane cases. Now check whether non-existent headers
5242 # can be detected and how.
5243 cat >conftest.$ac_ext <<_ACEOF
5244#line $LINENO "configure"
5245/* confdefs.h. */
5246_ACEOF
5247cat confdefs.h >>conftest.$ac_ext
5248cat >>conftest.$ac_ext <<_ACEOF
5249/* end confdefs.h. */
5250#include <ac_nonexistent.h>
5251_ACEOF
5252if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5254 ac_status=$?
5255 grep -v '^ *+' conftest.er1 >conftest.err
5256 rm -f conftest.er1
5257 cat conftest.err >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } >/dev/null; then
5260 if test -s conftest.err; then
5261 ac_cpp_err=$ac_c_preproc_warn_flag
5262 else
5263 ac_cpp_err=
5264 fi
5265else
5266 ac_cpp_err=yes
5267fi
5268if test -z "$ac_cpp_err"; then
5269 # Broken: success on invalid input.
5270continue
5271else
5272 echo "$as_me: failed program was:" >&5
5273sed 's/^/| /' conftest.$ac_ext >&5
5274
5275 # Passes both tests.
5276ac_preproc_ok=:
5277break
5278fi
5279rm -f conftest.err conftest.$ac_ext
5280
5281done
5282# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5283rm -f conftest.err conftest.$ac_ext
5284if $ac_preproc_ok; then
c470c17d
BK
5285 :
5286else
ff66d28f
PE
5287 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5288See \`config.log' for more details." >&5
5289echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5290See \`config.log' for more details." >&2;}
5291 { (exit 1); exit 1; }; }
5292fi
5293
5294ac_ext=c
5295ac_cpp='$CPP $CPPFLAGS'
5296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5298ac_compiler_gnu=$ac_cv_c_compiler_gnu
5299
5300
5301echo "$as_me:$LINENO: checking for egrep" >&5
5302echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5303if test "${ac_cv_prog_egrep+set}" = set; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5305else
5306 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5307 then ac_cv_prog_egrep='grep -E'
5308 else ac_cv_prog_egrep='egrep'
5309 fi
5310fi
5311echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5312echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5313 EGREP=$ac_cv_prog_egrep
5314
5315
5316echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5317echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5318if test "${ac_cv_header_stdc+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5320else
5321 cat >conftest.$ac_ext <<_ACEOF
5322#line $LINENO "configure"
5323/* confdefs.h. */
5324_ACEOF
5325cat confdefs.h >>conftest.$ac_ext
5326cat >>conftest.$ac_ext <<_ACEOF
5327/* end confdefs.h. */
5328#include <stdlib.h>
5329#include <stdarg.h>
5330#include <string.h>
5331#include <float.h>
5332
5333int
5334main ()
5335{
5336
5337 ;
5338 return 0;
5339}
5340_ACEOF
5341rm -f conftest.$ac_objext
5342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5343 (eval $ac_compile) 2>&5
5344 ac_status=$?
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } &&
5347 { ac_try='test -s conftest.$ac_objext'
5348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349 (eval $ac_try) 2>&5
5350 ac_status=$?
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); }; }; then
5353 ac_cv_header_stdc=yes
5354else
5355 echo "$as_me: failed program was:" >&5
5356sed 's/^/| /' conftest.$ac_ext >&5
5357
5358ac_cv_header_stdc=no
5359fi
5360rm -f conftest.$ac_objext conftest.$ac_ext
5361
5362if test $ac_cv_header_stdc = yes; then
5363 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5364 cat >conftest.$ac_ext <<_ACEOF
5365#line $LINENO "configure"
5366/* confdefs.h. */
5367_ACEOF
5368cat confdefs.h >>conftest.$ac_ext
5369cat >>conftest.$ac_ext <<_ACEOF
5370/* end confdefs.h. */
5371#include <string.h>
5372
5373_ACEOF
5374if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5375 $EGREP "memchr" >/dev/null 2>&1; then
c470c17d
BK
5376 :
5377else
ff66d28f
PE
5378 ac_cv_header_stdc=no
5379fi
5380rm -f conftest*
5381
5382fi
5383
5384if test $ac_cv_header_stdc = yes; then
5385 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5386 cat >conftest.$ac_ext <<_ACEOF
5387#line $LINENO "configure"
5388/* confdefs.h. */
5389_ACEOF
5390cat confdefs.h >>conftest.$ac_ext
5391cat >>conftest.$ac_ext <<_ACEOF
5392/* end confdefs.h. */
5393#include <stdlib.h>
5394
5395_ACEOF
5396if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5397 $EGREP "free" >/dev/null 2>&1; then
5398 :
5399else
5400 ac_cv_header_stdc=no
5401fi
5402rm -f conftest*
5403
5404fi
5405
5406if test $ac_cv_header_stdc = yes; then
5407 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5408 if test "$cross_compiling" = yes; then
5409 :
5410else
5411 cat >conftest.$ac_ext <<_ACEOF
5412#line $LINENO "configure"
5413/* confdefs.h. */
5414_ACEOF
5415cat confdefs.h >>conftest.$ac_ext
5416cat >>conftest.$ac_ext <<_ACEOF
5417/* end confdefs.h. */
5418#include <ctype.h>
5419#if ((' ' & 0x0FF) == 0x020)
5420# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5421# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5422#else
5423# define ISLOWER(c) \
5424 (('a' <= (c) && (c) <= 'i') \
5425 || ('j' <= (c) && (c) <= 'r') \
5426 || ('s' <= (c) && (c) <= 'z'))
5427# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5428#endif
5429
5430#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5431int
5432main ()
5433{
5434 int i;
5435 for (i = 0; i < 256; i++)
5436 if (XOR (islower (i), ISLOWER (i))
5437 || toupper (i) != TOUPPER (i))
5438 exit(2);
5439 exit (0);
5440}
5441_ACEOF
5442rm -f conftest$ac_exeext
5443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5444 (eval $ac_link) 2>&5
5445 ac_status=$?
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449 (eval $ac_try) 2>&5
5450 ac_status=$?
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; }; then
5453 :
5454else
5455 echo "$as_me: program exited with status $ac_status" >&5
5456echo "$as_me: failed program was:" >&5
5457sed 's/^/| /' conftest.$ac_ext >&5
5458
5459( exit $ac_status )
5460ac_cv_header_stdc=no
b2dad0e3 5461fi
3d05b345 5462rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b2dad0e3 5463fi
33590f13 5464fi
33590f13 5465fi
ff66d28f
PE
5466echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5467echo "${ECHO_T}$ac_cv_header_stdc" >&6
5468if test $ac_cv_header_stdc = yes; then
5469
5470cat >>confdefs.h <<\_ACEOF
5471#define STDC_HEADERS 1
5472_ACEOF
5473
5474fi
5475
5476# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5487 inttypes.h stdint.h unistd.h
5488do
5489as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5490echo "$as_me:$LINENO: checking for $ac_header" >&5
5491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5492if eval "test \"\${$as_ac_Header+set}\" = set"; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5494else
5495 cat >conftest.$ac_ext <<_ACEOF
5496#line $LINENO "configure"
5497/* confdefs.h. */
5498_ACEOF
5499cat confdefs.h >>conftest.$ac_ext
5500cat >>conftest.$ac_ext <<_ACEOF
5501/* end confdefs.h. */
5502$ac_includes_default
5503
5504#include <$ac_header>
5505_ACEOF
5506rm -f conftest.$ac_objext
5507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5508 (eval $ac_compile) 2>&5
5509 ac_status=$?
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } &&
5512 { ac_try='test -s conftest.$ac_objext'
5513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514 (eval $ac_try) 2>&5
5515 ac_status=$?
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; }; then
5518 eval "$as_ac_Header=yes"
5519else
5520 echo "$as_me: failed program was:" >&5
5521sed 's/^/| /' conftest.$ac_ext >&5
5522
5523eval "$as_ac_Header=no"
5524fi
5525rm -f conftest.$ac_objext conftest.$ac_ext
5526fi
5527echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5528echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5529if test `eval echo '${'$as_ac_Header'}'` = yes; then
5530 cat >>confdefs.h <<_ACEOF
5531#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5532_ACEOF
5533
33590f13 5534fi
ff66d28f
PE
5535
5536done
5537
33590f13
BK
5538
5539
ff66d28f
PE
5540 echo "$as_me:$LINENO: checking for C locale to use" >&5
5541echo $ECHO_N "checking for C locale to use... $ECHO_C" >&6
5542 # Check whether --enable-clocale or --disable-clocale was given.
4e10943d
BK
5543if test "${enable_clocale+set}" = set; then
5544 enableval="$enable_clocale"
ff66d28f
PE
5545
5546 case "$enableval" in
5547 generic|gnu|ieee_1003.1-2001|yes|no|auto) ;;
5548 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5
5549echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;}
5550 { (exit 1); exit 1; }; } ;;
5551 esac
5552
b2dad0e3 5553else
ff66d28f
PE
5554 enable_clocale=auto
5555fi;
b2dad0e3 5556
20427c6b 5557
ff66d28f
PE
5558 # If they didn't use this option switch, or if they specified --enable
5559 # with no specific model, we'll have to look for one. If they
5560 # specified --disable (???), do likewise.
5561 if test $enable_clocale = no || test $enable_clocale = yes; then
5562 enable_clocale=auto
5563 fi
5564
5565 # Either a known package, or "auto"
4e10943d 5566 enable_clocale_flag=$enable_clocale
dd75251f 5567
ff66d28f
PE
5568 # Probe for locale support if no specific model is specified.
5569 # Default to "generic".
5570 if test $enable_clocale_flag = auto; then
56deb74c
BK
5571 case x${target_os} in
5572 xlinux* | xgnu*)
ff66d28f
PE
5573 cat >conftest.$ac_ext <<_ACEOF
5574#line $LINENO "configure"
5575/* confdefs.h. */
5576_ACEOF
5577cat confdefs.h >>conftest.$ac_ext
5578cat >>conftest.$ac_ext <<_ACEOF
5579/* end confdefs.h. */
56deb74c
BK
5580
5581 #include <features.h>
37bc6ca2 5582 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
3d7c150e 5583 _GLIBCXX_ok
56deb74c 5584 #endif
ff66d28f
PE
5585
5586_ACEOF
56deb74c 5587if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ff66d28f 5588 $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then
56deb74c
BK
5589 enable_clocale_flag=gnu
5590else
56deb74c
BK
5591 enable_clocale_flag=generic
5592fi
5593rm -f conftest*
5594
1451a492 5595
ff66d28f
PE
5596 # Test for bugs early in glibc-2.2.x series
5597 if test x$enable_clocale_flag = xgnu; then
5598 if test "$cross_compiling" = yes; then
1451a492
BK
5599 enable_clocale_flag=generic
5600else
ff66d28f
PE
5601 cat >conftest.$ac_ext <<_ACEOF
5602#line $LINENO "configure"
5603/* confdefs.h. */
5604_ACEOF
5605cat confdefs.h >>conftest.$ac_ext
5606cat >>conftest.$ac_ext <<_ACEOF
5607/* end confdefs.h. */
5608
5609 #define _GNU_SOURCE 1
5610 #include <locale.h>
5611 #include <string.h>
5612 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
5613 extern __typeof(newlocale) __newlocale;
5614 extern __typeof(duplocale) __duplocale;
5615 extern __typeof(strcoll_l) __strcoll_l;
5616 #endif
5617 int main()
5618 {
5619