]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/configure
Makefile.in: Allow for PWDCMD to override hardcoded pwd.
[thirdparty/gcc.git] / libstdc++-v3 / configure
CommitLineData
b2dad0e3
BK
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
33590f13
BK
14ac_help="$ac_help
15 --enable-multilib build hella library versions (default)"
b2dad0e3
BK
16ac_help="$ac_help
17 --with-target-subdir=SUBDIR
d2caef2e 18 configuring in a subdirectory"
b2dad0e3
BK
19ac_help="$ac_help
20 --with-cross-host=HOST configuring with a cross compiler"
b2dad0e3
BK
21ac_help="$ac_help
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
24ac_help="$ac_help
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
26ac_help="$ac_help
27 --enable-static[=PKGS] build static libraries [default=yes]"
28ac_help="$ac_help
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
30ac_help="$ac_help
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
32ac_help="$ac_help
3840fa2a 33 --disable-libtool-lock avoid locking (might break parallel builds)"
3df64633
AO
34ac_help="$ac_help
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
b2dad0e3
BK
36ac_help="$ac_help
37 --enable-debug extra debugging, turn off optimization [default=no]"
38ac_help="$ac_help
572051a2
PE
39 --enable-cstdio enable stdio for target io package.
40 --enable-cstdio=LIB use LIB target-speific io package. [default=stdio]
36e40658 41 "
0214010c 42ac_help="$ac_help
572051a2
PE
43 --enable-clocale enable model for target locale package.
44 --enable-clocale=MODEL use MODEL target-speific locale package. [default=generic]
0214010c 45 "
501e321e
BK
46ac_help="$ac_help
47 --enable-nls use Native Language Support (default)"
e26cb7ab
MM
48ac_help="$ac_help
49 --enable-c-mbchar enable multibyte (wide) characters [default=yes]"
b2dad0e3 50ac_help="$ac_help
4d16bdbb 51 --enable-c99 turns on 'ISO/IEC 9899:1999 support' [default=yes]"
7cda84dc
BK
52ac_help="$ac_help
53 --enable-long-long turns on 'long long' [default=yes]"
99246c90 54ac_help="$ac_help
572051a2 55 --enable-cheaders construct "C" header files for g++ [default=c_std]"
dcfa0bc8
PE
56ac_help="$ac_help
57 --enable-cxx-flags=FLAGS pass compiler FLAGS when building library;
32a4595e 58 [default=none]"
52a11cbf
RH
59ac_help="$ac_help
60 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
263c6fa8
SE
61ac_help="$ac_help
62 --enable-libunwind-exceptions force use of libunwind for exceptions"
4d16bdbb
PE
63ac_help="$ac_help
64 --enable-concept-checks use Boost-derived template checks [default=no]"
530539d9 65ac_help="$ac_help
ab3bc736 66 --enable-symvers=style enables symbol versioning of the shared library [default=yes]"
1fd2f510 67ac_help="$ac_help
572051a2 68 --with-gxx-include-dir the installation directory for include files"
1fd2f510
BK
69ac_help="$ac_help
70 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
b2dad0e3
BK
71
72# Initialize some variables set by options.
73# The variables have the same names as the options, with
74# dashes changed to underlines.
75build=NONE
76cache_file=./config.cache
77exec_prefix=NONE
78host=NONE
79no_create=
80nonopt=NONE
81no_recursion=
82prefix=NONE
83program_prefix=NONE
84program_suffix=NONE
85program_transform_name=s,x,x,
86silent=
87site=
6706f116 88sitefile=
b2dad0e3
BK
89srcdir=
90target=NONE
91verbose=
92x_includes=NONE
93x_libraries=NONE
94bindir='${exec_prefix}/bin'
95sbindir='${exec_prefix}/sbin'
96libexecdir='${exec_prefix}/libexec'
97datadir='${prefix}/share'
98sysconfdir='${prefix}/etc'
99sharedstatedir='${prefix}/com'
100localstatedir='${prefix}/var'
101libdir='${exec_prefix}/lib'
102includedir='${prefix}/include'
103oldincludedir='/usr/include'
104infodir='${prefix}/info'
105mandir='${prefix}/man'
106
107# Initialize some other variables.
108subdirs=
109MFLAGS= MAKEFLAGS=
110SHELL=${CONFIG_SHELL-/bin/sh}
111# Maximum number of lines to put in a shell here document.
112ac_max_here_lines=12
113
114ac_prev=
115for ac_option
116do
117
118 # If the previous option needs an argument, assign it.
119 if test -n "$ac_prev"; then
120 eval "$ac_prev=\$ac_option"
121 ac_prev=
122 continue
123 fi
124
125 case "$ac_option" in
126 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
127 *) ac_optarg= ;;
128 esac
129
130 # Accept the important Cygnus configure options, so we can diagnose typos.
131
132 case "$ac_option" in
133
134 -bindir | --bindir | --bindi | --bind | --bin | --bi)
135 ac_prev=bindir ;;
136 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
137 bindir="$ac_optarg" ;;
138
139 -build | --build | --buil | --bui | --bu)
140 ac_prev=build ;;
141 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
142 build="$ac_optarg" ;;
143
144 -cache-file | --cache-file | --cache-fil | --cache-fi \
145 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
146 ac_prev=cache_file ;;
147 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
148 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
149 cache_file="$ac_optarg" ;;
150
151 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
152 ac_prev=datadir ;;
153 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
154 | --da=*)
155 datadir="$ac_optarg" ;;
156
157 -disable-* | --disable-*)
158 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
159 # Reject names that are not valid shell variable names.
160 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
161 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 fi
163 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
164 eval "enable_${ac_feature}=no" ;;
165
166 -enable-* | --enable-*)
167 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
168 # Reject names that are not valid shell variable names.
169 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
170 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 fi
172 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
173 case "$ac_option" in
174 *=*) ;;
175 *) ac_optarg=yes ;;
176 esac
177 eval "enable_${ac_feature}='$ac_optarg'" ;;
178
179 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
180 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
181 | --exec | --exe | --ex)
182 ac_prev=exec_prefix ;;
183 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
184 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
185 | --exec=* | --exe=* | --ex=*)
186 exec_prefix="$ac_optarg" ;;
187
188 -gas | --gas | --ga | --g)
189 # Obsolete; use --with-gas.
190 with_gas=yes ;;
191
192 -help | --help | --hel | --he)
193 # Omit some internal or obsolete options to make the list less imposing.
194 # This message is too long to be a string in the A/UX 3.1 sh.
195 cat << EOF
196Usage: configure [options] [host]
197Options: [defaults in brackets after descriptions]
198Configuration:
199 --cache-file=FILE cache test results in FILE
200 --help print this message
201 --no-create do not create output files
202 --quiet, --silent do not print \`checking...' messages
6706f116 203 --site-file=FILE use FILE as the site file
b2dad0e3
BK
204 --version print the version of autoconf that created configure
205Directory and file names:
206 --prefix=PREFIX install architecture-independent files in PREFIX
207 [$ac_default_prefix]
208 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
209 [same as prefix]
210 --bindir=DIR user executables in DIR [EPREFIX/bin]
211 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
212 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
213 --datadir=DIR read-only architecture-independent data in DIR
214 [PREFIX/share]
215 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
216 --sharedstatedir=DIR modifiable architecture-independent data in DIR
217 [PREFIX/com]
218 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
219 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
220 --includedir=DIR C header files in DIR [PREFIX/include]
221 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
222 --infodir=DIR info documentation in DIR [PREFIX/info]
223 --mandir=DIR man documentation in DIR [PREFIX/man]
224 --srcdir=DIR find the sources in DIR [configure dir or ..]
225 --program-prefix=PREFIX prepend PREFIX to installed program names
226 --program-suffix=SUFFIX append SUFFIX to installed program names
227 --program-transform-name=PROGRAM
228 run sed PROGRAM on installed program names
229EOF
230 cat << EOF
231Host type:
232 --build=BUILD configure for building on BUILD [BUILD=HOST]
233 --host=HOST configure for HOST [guessed]
234 --target=TARGET configure for TARGET [TARGET=HOST]
235Features and packages:
236 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
237 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
238 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
239 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
240 --x-includes=DIR X include files are in DIR
241 --x-libraries=DIR X library files are in DIR
242EOF
243 if test -n "$ac_help"; then
244 echo "--enable and --with options recognized:$ac_help"
245 fi
246 exit 0 ;;
247
248 -host | --host | --hos | --ho)
249 ac_prev=host ;;
250 -host=* | --host=* | --hos=* | --ho=*)
251 host="$ac_optarg" ;;
252
253 -includedir | --includedir | --includedi | --included | --include \
254 | --includ | --inclu | --incl | --inc)
255 ac_prev=includedir ;;
256 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
257 | --includ=* | --inclu=* | --incl=* | --inc=*)
258 includedir="$ac_optarg" ;;
259
260 -infodir | --infodir | --infodi | --infod | --info | --inf)
261 ac_prev=infodir ;;
262 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
263 infodir="$ac_optarg" ;;
264
265 -libdir | --libdir | --libdi | --libd)
266 ac_prev=libdir ;;
267 -libdir=* | --libdir=* | --libdi=* | --libd=*)
268 libdir="$ac_optarg" ;;
269
270 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
271 | --libexe | --libex | --libe)
272 ac_prev=libexecdir ;;
273 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
274 | --libexe=* | --libex=* | --libe=*)
275 libexecdir="$ac_optarg" ;;
276
277 -localstatedir | --localstatedir | --localstatedi | --localstated \
278 | --localstate | --localstat | --localsta | --localst \
279 | --locals | --local | --loca | --loc | --lo)
280 ac_prev=localstatedir ;;
281 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
282 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
283 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
284 localstatedir="$ac_optarg" ;;
285
286 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
287 ac_prev=mandir ;;
288 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
289 mandir="$ac_optarg" ;;
290
291 -nfp | --nfp | --nf)
292 # Obsolete; use --without-fp.
293 with_fp=no ;;
294
295 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
296 | --no-cr | --no-c)
297 no_create=yes ;;
298
299 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
300 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
301 no_recursion=yes ;;
302
303 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
304 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
305 | --oldin | --oldi | --old | --ol | --o)
306 ac_prev=oldincludedir ;;
307 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
308 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
309 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
310 oldincludedir="$ac_optarg" ;;
311
312 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
313 ac_prev=prefix ;;
314 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
315 prefix="$ac_optarg" ;;
316
317 -program-prefix | --program-prefix | --program-prefi | --program-pref \
318 | --program-pre | --program-pr | --program-p)
319 ac_prev=program_prefix ;;
320 -program-prefix=* | --program-prefix=* | --program-prefi=* \
321 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
322 program_prefix="$ac_optarg" ;;
323
324 -program-suffix | --program-suffix | --program-suffi | --program-suff \
325 | --program-suf | --program-su | --program-s)
326 ac_prev=program_suffix ;;
327 -program-suffix=* | --program-suffix=* | --program-suffi=* \
328 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
329 program_suffix="$ac_optarg" ;;
330
331 -program-transform-name | --program-transform-name \
332 | --program-transform-nam | --program-transform-na \
333 | --program-transform-n | --program-transform- \
334 | --program-transform | --program-transfor \
335 | --program-transfo | --program-transf \
336 | --program-trans | --program-tran \
337 | --progr-tra | --program-tr | --program-t)
338 ac_prev=program_transform_name ;;
339 -program-transform-name=* | --program-transform-name=* \
340 | --program-transform-nam=* | --program-transform-na=* \
341 | --program-transform-n=* | --program-transform-=* \
342 | --program-transform=* | --program-transfor=* \
343 | --program-transfo=* | --program-transf=* \
344 | --program-trans=* | --program-tran=* \
345 | --progr-tra=* | --program-tr=* | --program-t=*)
346 program_transform_name="$ac_optarg" ;;
347
348 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
349 | -silent | --silent | --silen | --sile | --sil)
350 silent=yes ;;
351
352 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
353 ac_prev=sbindir ;;
354 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
355 | --sbi=* | --sb=*)
356 sbindir="$ac_optarg" ;;
357
358 -sharedstatedir | --sharedstatedir | --sharedstatedi \
359 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
360 | --sharedst | --shareds | --shared | --share | --shar \
361 | --sha | --sh)
362 ac_prev=sharedstatedir ;;
363 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
364 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
365 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
366 | --sha=* | --sh=*)
367 sharedstatedir="$ac_optarg" ;;
368
369 -site | --site | --sit)
370 ac_prev=site ;;
371 -site=* | --site=* | --sit=*)
372 site="$ac_optarg" ;;
373
6706f116
AO
374 -site-file | --site-file | --site-fil | --site-fi | --site-f)
375 ac_prev=sitefile ;;
376 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
377 sitefile="$ac_optarg" ;;
378
b2dad0e3
BK
379 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
380 ac_prev=srcdir ;;
381 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
382 srcdir="$ac_optarg" ;;
383
384 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
385 | --syscon | --sysco | --sysc | --sys | --sy)
386 ac_prev=sysconfdir ;;
387 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
388 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
389 sysconfdir="$ac_optarg" ;;
390
391 -target | --target | --targe | --targ | --tar | --ta | --t)
392 ac_prev=target ;;
393 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
394 target="$ac_optarg" ;;
395
396 -v | -verbose | --verbose | --verbos | --verbo | --verb)
397 verbose=yes ;;
398
399 -version | --version | --versio | --versi | --vers)
400 echo "configure generated by autoconf version 2.13"
401 exit 0 ;;
402
403 -with-* | --with-*)
404 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
405 # Reject names that are not valid shell variable names.
406 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
407 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
408 fi
409 ac_package=`echo $ac_package| sed 's/-/_/g'`
410 case "$ac_option" in
411 *=*) ;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "with_${ac_package}='$ac_optarg'" ;;
415
416 -without-* | --without-*)
417 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
418 # Reject names that are not valid shell variable names.
419 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
420 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
421 fi
422 ac_package=`echo $ac_package| sed 's/-/_/g'`
423 eval "with_${ac_package}=no" ;;
424
425 --x)
426 # Obsolete; use --with-x.
427 with_x=yes ;;
428
429 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
430 | --x-incl | --x-inc | --x-in | --x-i)
431 ac_prev=x_includes ;;
432 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
433 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
434 x_includes="$ac_optarg" ;;
435
436 -x-libraries | --x-libraries | --x-librarie | --x-librari \
437 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
438 ac_prev=x_libraries ;;
439 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
440 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
441 x_libraries="$ac_optarg" ;;
442
443 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
444 ;;
445
446 *)
447 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
448 echo "configure: warning: $ac_option: invalid host type" 1>&2
449 fi
450 if test "x$nonopt" != xNONE; then
451 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
452 fi
453 nonopt="$ac_option"
454 ;;
455
456 esac
457done
458
459if test -n "$ac_prev"; then
460 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
461fi
462
463trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
464
465# File descriptor usage:
466# 0 standard input
467# 1 file creation
468# 2 errors and warnings
469# 3 some systems may open it to /dev/tty
470# 4 used on the Kubota Titan
471# 6 checking for... messages and results
472# 5 compiler messages saved in config.log
473if test "$silent" = yes; then
474 exec 6>/dev/null
475else
476 exec 6>&1
477fi
478exec 5>./config.log
479
480echo "\
481This file contains any messages produced by compilers while
482running configure, to aid debugging if configure makes a mistake.
483" 1>&5
484
485# Strip out --no-create and --no-recursion so they do not pile up.
486# Also quote any args containing shell metacharacters.
487ac_configure_args=
488for ac_arg
489do
490 case "$ac_arg" in
491 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
492 | --no-cr | --no-c) ;;
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
495 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
496 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
497 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
498 esac
499done
500
501# NLS nuisances.
502# Only set these to C if already set. These must not be set unconditionally
503# because not all systems understand e.g. LANG=C (notably SCO).
504# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
505# Non-C LC_CTYPE values break the ctype check.
506if test "${LANG+set}" = set; then LANG=C; export LANG; fi
507if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
508if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
509if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
510
511# confdefs.h avoids OS command line length limits that DEFS can exceed.
512rm -rf conftest* confdefs.h
513# AIX cpp loses on an empty file, so make sure it contains at least a newline.
514echo > confdefs.h
515
516# A filename unique to this package, relative to the directory that
517# configure is in, which we can look for to find out if srcdir is correct.
1228c7b6 518ac_unique_file=src/ios.cc
b2dad0e3
BK
519
520# Find the source files, if location was not specified.
521if test -z "$srcdir"; then
522 ac_srcdir_defaulted=yes
523 # Try the directory containing this script, then its parent.
524 ac_prog=$0
525 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
526 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
527 srcdir=$ac_confdir
528 if test ! -r $srcdir/$ac_unique_file; then
529 srcdir=..
530 fi
531else
532 ac_srcdir_defaulted=no
533fi
534if test ! -r $srcdir/$ac_unique_file; then
535 if test "$ac_srcdir_defaulted" = yes; then
536 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
537 else
538 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
539 fi
540fi
541srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
542
543# Prefer explicitly selected file to automatically selected ones.
6706f116
AO
544if test -z "$sitefile"; then
545 if test -z "$CONFIG_SITE"; then
546 if test "x$prefix" != xNONE; then
547 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
548 else
549 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
550 fi
b2dad0e3 551 fi
6706f116
AO
552else
553 CONFIG_SITE="$sitefile"
b2dad0e3
BK
554fi
555for ac_site_file in $CONFIG_SITE; do
556 if test -r "$ac_site_file"; then
557 echo "loading site script $ac_site_file"
558 . "$ac_site_file"
559 fi
560done
561
562if test -r "$cache_file"; then
563 echo "loading cache $cache_file"
564 . $cache_file
565else
566 echo "creating cache $cache_file"
567 > $cache_file
568fi
569
570ac_ext=c
571# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
572ac_cpp='$CPP $CPPFLAGS'
573ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
574ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
575cross_compiling=$ac_cv_prog_cc_cross
576
577ac_exeext=
578ac_objext=o
579if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
580 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
581 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
582 ac_n= ac_c='
583' ac_t=' '
584 else
585 ac_n=-n ac_c= ac_t=
586 fi
587else
588 ac_n= ac_c='\c' ac_t=
589fi
590
591
e2c20fae 592
6706f116
AO
593# This works around the fact that libtool configuration may change LD
594# for this particular configuration, but some shells, instead of
595# keeping the changes in LD private, export them just because LD is
596# exported.
597ORIGINAL_LD_FOR_MULTILIBS=$LD
598
33590f13 599PACKAGE=libstdc++
33590f13 600
4e10943d
BK
601# For typical GNU versioning info, format is MAJOR.MINOR.MICRO
602release_VERSION=3.1.0
603
604# For libtool versioning info, format is CURRENT:REVISION:AGE
605libtool_VERSION=4:0:0
33590f13
BK
606
607
58b08ac3 608# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
d2caef2e
PE
609# AC 2.5x sets target_alias iff the user specified --target, but we use it
610# everywhere, so we set it here just to be sure. In AC 2.13
611# AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
b2dad0e3 612ac_aux_dir=
33590f13 613for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
b2dad0e3
BK
614 if test -f $ac_dir/install-sh; then
615 ac_aux_dir=$ac_dir
616 ac_install_sh="$ac_aux_dir/install-sh -c"
617 break
618 elif test -f $ac_dir/install.sh; then
619 ac_aux_dir=$ac_dir
620 ac_install_sh="$ac_aux_dir/install.sh -c"
621 break
622 fi
623done
624if test -z "$ac_aux_dir"; then
33590f13 625 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
b2dad0e3
BK
626fi
627ac_config_guess=$ac_aux_dir/config.guess
628ac_config_sub=$ac_aux_dir/config.sub
629ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
630
b2dad0e3
BK
631
632# Do some error checking and defaulting for the host and target type.
633# The inputs are:
634# configure --host=HOST --target=TARGET --build=BUILD NONOPT
635#
636# The rules are:
637# 1. You are not allowed to specify --host, --target, and nonopt at the
638# same time.
639# 2. Host defaults to nonopt.
640# 3. If nonopt is not specified, then host defaults to the current host,
641# as determined by config.guess.
642# 4. Target and build default to nonopt.
643# 5. If nonopt is not specified, then target and build default to host.
644
645# The aliases save the names the user supplied, while $host etc.
646# will get canonicalized.
647case $host---$target---$nonopt in
648NONE---*---* | *---NONE---* | *---*---NONE) ;;
649*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
650esac
651
652
653# Make sure we can run config.sub.
654if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
655else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
656fi
657
658echo $ac_n "checking host system type""... $ac_c" 1>&6
6706f116 659echo "configure:660: checking host system type" >&5
b2dad0e3
BK
660
661host_alias=$host
662case "$host_alias" in
663NONE)
664 case $nonopt in
665 NONE)
666 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
667 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
668 fi ;;
669 *) host_alias=$nonopt ;;
670 esac ;;
671esac
672
673host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
674host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
675host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
676host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
677echo "$ac_t""$host" 1>&6
678
679echo $ac_n "checking target system type""... $ac_c" 1>&6
6706f116 680echo "configure:681: checking target system type" >&5
b2dad0e3
BK
681
682target_alias=$target
683case "$target_alias" in
684NONE)
685 case $nonopt in
686 NONE) target_alias=$host_alias ;;
687 *) target_alias=$nonopt ;;
688 esac ;;
689esac
690
691target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
692target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
693target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
694target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
695echo "$ac_t""$target" 1>&6
696
697echo $ac_n "checking build system type""... $ac_c" 1>&6
6706f116 698echo "configure:699: checking build system type" >&5
b2dad0e3
BK
699
700build_alias=$build
701case "$build_alias" in
702NONE)
703 case $nonopt in
704 NONE) build_alias=$host_alias ;;
705 *) build_alias=$nonopt ;;
706 esac ;;
707esac
708
709build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
710build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
711build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
712build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
713echo "$ac_t""$build" 1>&6
714
715test "$host_alias" != "$target_alias" &&
716 test "$program_prefix$program_suffix$program_transform_name" = \
717 NONENONEs,x,x, &&
718 program_prefix=${target_alias}-
719
52b55e7d
PE
720target_alias=${target_alias-$target}
721
b2dad0e3 722
b2dad0e3
BK
723# Find a good install program. We prefer a C program (faster),
724# so one script is as good as another. But avoid the broken or
725# incompatible versions:
726# SysV /etc/install, /usr/sbin/install
727# SunOS /usr/etc/install
728# IRIX /sbin/install
729# AIX /bin/install
730# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
731# AFS /usr/afsws/bin/install, which mishandles nonexistent args
732# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
733# ./install, which can be erroneously created by make from ./install.sh.
734echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
6706f116 735echo "configure:736: checking for a BSD compatible install" >&5
b2dad0e3
BK
736if test -z "$INSTALL"; then
737if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
738 echo $ac_n "(cached) $ac_c" 1>&6
739else
740 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
741 for ac_dir in $PATH; do
742 # Account for people who put trailing slashes in PATH elements.
743 case "$ac_dir/" in
744 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
745 *)
746 # OSF1 and SCO ODT 3.0 have their own names for install.
747 # Don't use installbsd from OSF since it installs stuff as root
748 # by default.
749 for ac_prog in ginstall scoinst install; do
750 if test -f $ac_dir/$ac_prog; then
751 if test $ac_prog = install &&
752 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
753 # AIX install. It has an incompatible calling convention.
754 :
755 else
756 ac_cv_path_install="$ac_dir/$ac_prog -c"
757 break 2
758 fi
759 fi
760 done
761 ;;
762 esac
763 done
764 IFS="$ac_save_IFS"
765
766fi
767 if test "${ac_cv_path_install+set}" = set; then
768 INSTALL="$ac_cv_path_install"
769 else
770 # As a last resort, use the slow shell script. We don't cache a
771 # path for INSTALL within a source directory, because that will
772 # break other packages using the cache if that directory is
773 # removed, or if the path is relative.
774 INSTALL="$ac_install_sh"
775 fi
776fi
777echo "$ac_t""$INSTALL" 1>&6
778
779# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
780# It thinks the first close brace ends the variable substitution.
781test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
782
783test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
784
785test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
786
787echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
6706f116 788echo "configure:789: checking whether build environment is sane" >&5
b2dad0e3
BK
789# Just in case
790sleep 1
791echo timestamp > conftestfile
792# Do `set' in a subshell so we don't clobber the current shell's
793# arguments. Must try -L first in case configure is actually a
794# symlink; some systems play weird games with the mod time of symlinks
795# (eg FreeBSD returns the mod time of the symlink's containing
796# directory).
797if (
798 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
799 if test "$*" = "X"; then
800 # -L didn't work.
801 set X `ls -t $srcdir/configure conftestfile`
802 fi
803 if test "$*" != "X $srcdir/configure conftestfile" \
804 && test "$*" != "X conftestfile $srcdir/configure"; then
805
806 # If neither matched, then we have a broken ls. This can happen
807 # if, for instance, CONFIG_SHELL is bash and it inherits a
808 # broken ls alias from the environment. This has actually
809 # happened. Such a system could not be considered "sane".
810 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
811alias in your environment" 1>&2; exit 1; }
812 fi
813
814 test "$2" = conftestfile
815 )
816then
817 # Ok.
818 :
819else
820 { echo "configure: error: newly created file is older than distributed files!
821Check your system clock" 1>&2; exit 1; }
822fi
823rm -f conftest*
824echo "$ac_t""yes" 1>&6
825if test "$program_transform_name" = s,x,x,; then
826 program_transform_name=
827else
828 # Double any \ or $. echo might interpret backslashes.
829 cat <<\EOF_SED > conftestsed
830s,\\,\\\\,g; s,\$,$$,g
831EOF_SED
832 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
833 rm -f conftestsed
834fi
835test "$program_prefix" != NONE &&
836 program_transform_name="s,^,${program_prefix},; $program_transform_name"
837# Use a double $ so make ignores it.
838test "$program_suffix" != NONE &&
839 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
840
841# sed with no file args requires a program.
842test "$program_transform_name" = "" && program_transform_name="s,x,x,"
843
844echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
6706f116 845echo "configure:846: checking whether ${MAKE-make} sets \${MAKE}" >&5
b2dad0e3
BK
846set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
847if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
848 echo $ac_n "(cached) $ac_c" 1>&6
849else
850 cat > conftestmake <<\EOF
851all:
852 @echo 'ac_maketemp="${MAKE}"'
853EOF
854# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
855eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
856if test -n "$ac_maketemp"; then
857 eval ac_cv_prog_make_${ac_make}_set=yes
858else
859 eval ac_cv_prog_make_${ac_make}_set=no
860fi
861rm -f conftestmake
862fi
863if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
864 echo "$ac_t""yes" 1>&6
865 SET_MAKE=
866else
867 echo "$ac_t""no" 1>&6
868 SET_MAKE="MAKE=${MAKE-make}"
869fi
870
b2dad0e3 871
33590f13 872PACKAGE=$PACKAGE
b2dad0e3 873
4e10943d 874VERSION=$release_VERSION
b2dad0e3
BK
875
876if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
877 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
878fi
879cat >> confdefs.h <<EOF
880#define PACKAGE "$PACKAGE"
881EOF
882
883cat >> confdefs.h <<EOF
884#define VERSION "$VERSION"
885EOF
886
887
888
889missing_dir=`cd $ac_aux_dir && pwd`
890echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
6706f116 891echo "configure:892: checking for working aclocal" >&5
b2dad0e3
BK
892# Run test in a subshell; some versions of sh will print an error if
893# an executable is not found, even if stderr is redirected.
894# Redirect stdin to placate older versions of autoconf. Sigh.
895if (aclocal --version) < /dev/null > /dev/null 2>&1; then
896 ACLOCAL=aclocal
897 echo "$ac_t""found" 1>&6
898else
899 ACLOCAL="$missing_dir/missing aclocal"
900 echo "$ac_t""missing" 1>&6
901fi
902
903echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
6706f116 904echo "configure:905: checking for working autoconf" >&5
b2dad0e3
BK
905# Run test in a subshell; some versions of sh will print an error if
906# an executable is not found, even if stderr is redirected.
907# Redirect stdin to placate older versions of autoconf. Sigh.
908if (autoconf --version) < /dev/null > /dev/null 2>&1; then
909 AUTOCONF=autoconf
910 echo "$ac_t""found" 1>&6
911else
912 AUTOCONF="$missing_dir/missing autoconf"
913 echo "$ac_t""missing" 1>&6
914fi
915
916echo $ac_n "checking for working automake""... $ac_c" 1>&6
6706f116 917echo "configure:918: checking for working automake" >&5
b2dad0e3
BK
918# Run test in a subshell; some versions of sh will print an error if
919# an executable is not found, even if stderr is redirected.
920# Redirect stdin to placate older versions of autoconf. Sigh.
921if (automake --version) < /dev/null > /dev/null 2>&1; then
922 AUTOMAKE=automake
923 echo "$ac_t""found" 1>&6
924else
925 AUTOMAKE="$missing_dir/missing automake"
926 echo "$ac_t""missing" 1>&6
927fi
928
929echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
6706f116 930echo "configure:931: checking for working autoheader" >&5
b2dad0e3
BK
931# Run test in a subshell; some versions of sh will print an error if
932# an executable is not found, even if stderr is redirected.
933# Redirect stdin to placate older versions of autoconf. Sigh.
934if (autoheader --version) < /dev/null > /dev/null 2>&1; then
935 AUTOHEADER=autoheader
936 echo "$ac_t""found" 1>&6
937else
938 AUTOHEADER="$missing_dir/missing autoheader"
939 echo "$ac_t""missing" 1>&6
940fi
941
942echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
6706f116 943echo "configure:944: checking for working makeinfo" >&5
b2dad0e3
BK
944# Run test in a subshell; some versions of sh will print an error if
945# an executable is not found, even if stderr is redirected.
946# Redirect stdin to placate older versions of autoconf. Sigh.
947if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
948 MAKEINFO=makeinfo
949 echo "$ac_t""found" 1>&6
950else
951 MAKEINFO="$missing_dir/missing makeinfo"
952 echo "$ac_t""missing" 1>&6
953fi
954
955
956
b2dad0e3
BK
957
958
959
33590f13 960# Runs configure.host and configure.target, as well as finds CC, CXX
d2caef2e 961# and assorted other critical bits. Have to run this before the
33590f13
BK
962# GLIBCPP_ENABLE_* macros below.
963if test $host != $build; then
964 ac_tool_prefix=${host_alias}-
965else
966 ac_tool_prefix=
967fi
b2dad0e3 968
33590f13 969echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
6706f116 970echo "configure:971: checking for Cygwin environment" >&5
33590f13 971if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
b2dad0e3
BK
972 echo $ac_n "(cached) $ac_c" 1>&6
973else
33590f13 974 cat > conftest.$ac_ext <<EOF
6706f116 975#line 976 "configure"
33590f13
BK
976#include "confdefs.h"
977
978int main() {
979
980#ifndef __CYGWIN__
981#define __CYGWIN__ __CYGWIN32__
982#endif
983return __CYGWIN__;
984; return 0; }
985EOF
6706f116 986if { (eval echo configure:987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
33590f13
BK
987 rm -rf conftest*
988 ac_cv_cygwin=yes
b2dad0e3 989else
33590f13
BK
990 echo "configure: failed program was:" >&5
991 cat conftest.$ac_ext >&5
992 rm -rf conftest*
993 ac_cv_cygwin=no
b2dad0e3 994fi
33590f13
BK
995rm -f conftest*
996rm -f conftest*
b2dad0e3
BK
997fi
998
33590f13
BK
999echo "$ac_t""$ac_cv_cygwin" 1>&6
1000CYGWIN=
1001test "$ac_cv_cygwin" = yes && CYGWIN=yes
1002echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
6706f116 1003echo "configure:1004: checking for mingw32 environment" >&5
33590f13 1004if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
b2dad0e3
BK
1005 echo $ac_n "(cached) $ac_c" 1>&6
1006else
33590f13 1007 cat > conftest.$ac_ext <<EOF
6706f116 1008#line 1009 "configure"
33590f13
BK
1009#include "confdefs.h"
1010
1011int main() {
1012return __MINGW32__;
1013; return 0; }
1014EOF
6706f116 1015if { (eval echo configure:1016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
33590f13
BK
1016 rm -rf conftest*
1017 ac_cv_mingw32=yes
b2dad0e3 1018else
33590f13
BK
1019 echo "configure: failed program was:" >&5
1020 cat conftest.$ac_ext >&5
1021 rm -rf conftest*
1022 ac_cv_mingw32=no
1023fi
1024rm -f conftest*
1025rm -f conftest*
1026fi
1027
1028echo "$ac_t""$ac_cv_mingw32" 1>&6
1029MINGW32=
1030test "$ac_cv_mingw32" = yes && MINGW32=yes
1031
1032 # Check whether --enable-multilib or --disable-multilib was given.
1033if test "${enable_multilib+set}" = set; then
1034 enableval="$enable_multilib"
1035 case "${enableval}" in
1036 yes) multilib=yes ;;
1037 no) multilib=no ;;
1038 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
1039 esac
1040else
1041 multilib=yes
1042fi
1043
d2caef2e
PE
1044 # When building with srcdir == objdir, links to the source files will
1045 # be created in directories within the target_subdir. We have to
1046 # adjust toplevel_srcdir accordingly, so that configure finds
1047 # install-sh and other auxiliary files that live in the top-level
1048 # source directory.
1049 if test "${srcdir}" = "."; then
1050 if test -z "${with_target_subdir}"; then
1051 toprel=".."
33590f13 1052 else
d2caef2e
PE
1053 if test "${with_target_subdir}" != "."; then
1054 toprel="${with_multisrctop}../.."
1055 else
1056 toprel="${with_multisrctop}.."
1057 fi
33590f13 1058 fi
d2caef2e
PE
1059 else
1060 toprel=".."
33590f13 1061 fi
d2caef2e 1062 ac_aux_dir=
33590f13
BK
1063for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1064 if test -f $ac_dir/install-sh; then
1065 ac_aux_dir=$ac_dir
1066 ac_install_sh="$ac_aux_dir/install-sh -c"
1067 break
1068 elif test -f $ac_dir/install.sh; then
1069 ac_aux_dir=$ac_dir
1070 ac_install_sh="$ac_aux_dir/install.sh -c"
1071 break
1072 fi
1073done
1074if test -z "$ac_aux_dir"; then
1075 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
1076fi
1077ac_config_guess=$ac_aux_dir/config.guess
1078ac_config_sub=$ac_aux_dir/config.sub
1079ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1080
d2caef2e
PE
1081 toplevel_srcdir=\${top_srcdir}/$toprel
1082
33590f13 1083
d2caef2e
PE
1084 # Export build and source directories.
1085 # These need to be absolute paths, yet at the same time need to
1086 # canonicalize only relative paths, because then amd will not unmount
1087 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1e6347d8 1088 glibcpp_builddir=`${PWDCMD-pwd}`
d2caef2e
PE
1089 case $srcdir in
1090 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1091 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1092 esac
1093
1094
33590f13 1095
d2caef2e 1096
33590f13 1097
6706f116 1098 for ac_prog in mawk gawk nawk awk
c98b201b
PE
1099do
1100# Extract the first word of "$ac_prog", so it can be a program name with args.
1101set dummy $ac_prog; ac_word=$2
1102echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6706f116 1103echo "configure:1104: checking for $ac_word" >&5
c98b201b
PE
1104if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1105 echo $ac_n "(cached) $ac_c" 1>&6
1106else
1107 if test -n "$AWK"; then
1108 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1109else
1110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1111 ac_dummy="$PATH"
1112 for ac_dir in $ac_dummy; do
1113 test -z "$ac_dir" && ac_dir=.
1114 if test -f $ac_dir/$ac_word; then
1115 ac_cv_prog_AWK="$ac_prog"
1116 break
1117 fi
1118 done
1119 IFS="$ac_save_ifs"
1120fi
1121fi
1122AWK="$ac_cv_prog_AWK"
1123if test -n "$AWK"; then
1124 echo "$ac_t""$AWK" 1>&6
1125else
1126 echo "$ac_t""no" 1>&6
1127fi
1128
1129test -n "$AWK" && break
1130done
1131
d2caef2e
PE
1132 # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.5x, can also
1133 # be 'cp -p' if linking isn't available.
1134 #ac_cv_prog_LN_S='cp -p'
1135 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
6706f116 1136echo "configure:1137: checking whether ln -s works" >&5
33590f13
BK
1137if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1138 echo $ac_n "(cached) $ac_c" 1>&6
1139else
1140 rm -f conftestdata
1141if ln -s X conftestdata 2>/dev/null
1142then
1143 rm -f conftestdata
1144 ac_cv_prog_LN_S="ln -s"
1145else
1146 ac_cv_prog_LN_S=ln
1147fi
1148fi
1149LN_S="$ac_cv_prog_LN_S"
1150if test "$ac_cv_prog_LN_S" = "ln -s"; then
1151 echo "$ac_t""yes" 1>&6
1152else
1153 echo "$ac_t""no" 1>&6
1154fi
1155
1156
d2caef2e
PE
1157 # We use these options to decide which functions to include.
1158 # Check whether --with-target-subdir or --without-target-subdir was given.
33590f13
BK
1159if test "${with_target_subdir+set}" = set; then
1160 withval="$with_target_subdir"
1161 :
1162fi
1163
d2caef2e 1164 # Check whether --with-cross-host or --without-cross-host was given.
33590f13
BK
1165if test "${with_cross_host+set}" = set; then
1166 withval="$with_cross_host"
1167 :
1168fi
1169
1170
1171 glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
1172
1173
1174 # Never versions of autoconf add an underscore to these functions.
1175 # Prevent future problems ...
1176
1177
1178
1179
1180
d2caef2e
PE
1181 # AC_PROG_CC
1182 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1183 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1184 # are probably using a cross compiler, which will not be able to fully
1185 # link an executable. This is addressed in later versions of autoconf.
33590f13 1186
d2caef2e 1187
33590f13 1188
d2caef2e
PE
1189
1190 # Extract the first word of "gcc", so it can be a program name with args.
33590f13
BK
1191set dummy gcc; ac_word=$2
1192echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6706f116 1193echo "configure:1194: checking for $ac_word" >&5
33590f13
BK
1194if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1195 echo $ac_n "(cached) $ac_c" 1>&6
1196else
1197 if test -n "$CC"; then
1198 ac_cv_prog_CC="$CC" # Let the user override the test.
1199else
1200 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1201 ac_dummy="$PATH"
1202 for ac_dir in $ac_dummy; do
1203 test -z "$ac_dir" && ac_dir=.
1204 if test -f $ac_dir/$ac_word; then
1205 ac_cv_prog_CC="gcc"
1206 break
1207 fi
1208 done
1209 IFS="$ac_save_ifs"
1210fi
1211fi
1212CC="$ac_cv_prog_CC"
1213if test -n "$CC"; then
1214 echo "$ac_t""$CC" 1>&6
1215else
1216 echo "$ac_t""no" 1>&6
1217fi
1218
d2caef2e
PE
1219 if test -z "$CC"; then
1220 # Extract the first word of "cc", so it can be a program name with args.
33590f13
BK
1221set dummy cc; ac_word=$2
1222echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6706f116 1223echo "configure:1224: checking for $ac_word" >&5
33590f13
BK
1224if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1225 echo $ac_n "(cached) $ac_c" 1>&6
1226else
1227 if test -n "$CC"; then
1228 ac_cv_prog_CC="$CC" # Let the user override the test.
1229else
1230 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1231 ac_prog_rejected=no
1232 ac_dummy="$PATH"
1233 for ac_dir in $ac_dummy; do
1234 test -z "$ac_dir" && ac_dir=.
1235 if test -f $ac_dir/$ac_word; then
1236 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1237 ac_prog_rejected=yes
1238 continue
b2dad0e3
BK
1239 fi
1240 ac_cv_prog_CC="cc"
1241 break
1242 fi
1243 done
1244 IFS="$ac_save_ifs"
1245if test $ac_prog_rejected = yes; then
1246 # We found a bogon in the path, so make sure we never use it.
1247 set dummy $ac_cv_prog_CC
1248 shift
1249 if test $# -gt 0; then
1250 # We chose a different compiler from the bogus one.
1251 # However, it has the same basename, so the bogon will be chosen
1252 # first if we set CC to just the basename; use the full file name.
1253 shift
1254 set dummy "$ac_dir/$ac_word" "$@"
1255 shift
1256 ac_cv_prog_CC="$@"
1257 fi
1258fi
1259fi
1260fi
1261CC="$ac_cv_prog_CC"
1262if test -n "$CC"; then
1263 echo "$ac_t""$CC" 1>&6
1264else
1265 echo "$ac_t""no" 1>&6
1266fi
1267
d2caef2e
PE
1268 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1269 fi
b2dad0e3 1270
d2caef2e 1271 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
6706f116 1272echo "configure:1273: checking whether we are using GNU C" >&5
b2dad0e3
BK
1273if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1274 echo $ac_n "(cached) $ac_c" 1>&6
1275else
1276 cat > conftest.c <<EOF
1277#ifdef __GNUC__
1278 yes;
1279#endif
1280EOF
6706f116 1281if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
b2dad0e3
BK
1282 ac_cv_prog_gcc=yes
1283else
1284 ac_cv_prog_gcc=no
1285fi
1286fi
1287
1288echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1289
d2caef2e
PE
1290 if test $ac_cv_prog_gcc = yes; then
1291 GCC=yes
1292 ac_test_CFLAGS="${CFLAGS+set}"
1293 ac_save_CFLAGS="$CFLAGS"
1294 CFLAGS=
1295 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
6706f116 1296echo "configure:1297: checking whether ${CC-cc} accepts -g" >&5
b2dad0e3
BK
1297if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&6
1299else
1300 echo 'void f(){}' > conftest.c
1301if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1302 ac_cv_prog_cc_g=yes
1303else
1304 ac_cv_prog_cc_g=no
1305fi
1306rm -f conftest*
1307
1308fi
1309
1310echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
d2caef2e
PE
1311 if test "$ac_test_CFLAGS" = set; then
1312 CFLAGS="$ac_save_CFLAGS"
1313 elif test $ac_cv_prog_cc_g = yes; then
1314 CFLAGS="-g -O2"
1315 else
1316 CFLAGS="-O2"
1317 fi
b2dad0e3 1318 else
d2caef2e
PE
1319 GCC=
1320 test "${CFLAGS+set}" = set || CFLAGS="-g"
b2dad0e3 1321 fi
d2caef2e 1322
b2dad0e3 1323
d2caef2e
PE
1324 # Likewise for AC_PROG_CXX. We can't just call it directly because g++
1325 # will try to link in libstdc++.
1326
b2dad0e3 1327
d2caef2e
PE
1328
1329 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1330 # flags that come in CXX while configuring libstdc++. They're different
1331 # from those used for all other target libraries. If CXX is set in
1332 # the environment, respect that here.
1333 glibcpp_CXX=$CXX
1334 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
b2dad0e3
BK
1335do
1336# Extract the first word of "$ac_prog", so it can be a program name with args.
1337set dummy $ac_prog; ac_word=$2
1338echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6706f116 1339echo "configure:1340: checking for $ac_word" >&5
46840bcd 1340if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
b2dad0e3
BK
1341 echo $ac_n "(cached) $ac_c" 1>&6
1342else
46840bcd
BK
1343 if test -n "$glibcpp_CXX"; then
1344 ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
b2dad0e3
BK
1345else
1346 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1347 ac_dummy="$PATH"
1348 for ac_dir in $ac_dummy; do
1349 test -z "$ac_dir" && ac_dir=.
1350 if test -f $ac_dir/$ac_word; then
46840bcd 1351 ac_cv_prog_glibcpp_CXX="$ac_prog"
b2dad0e3
BK
1352 break
1353 fi
1354 done
1355 IFS="$ac_save_ifs"
1356fi
1357fi
46840bcd
BK
1358glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1359if test -n "$glibcpp_CXX"; then
1360 echo "$ac_t""$glibcpp_CXX" 1>&6
b2dad0e3
BK
1361else
1362 echo "$ac_t""no" 1>&6
1363fi
1364
46840bcd 1365test -n "$glibcpp_CXX" && break
b2dad0e3 1366done
46840bcd 1367test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
de9aefe0 1368
d2caef2e
PE
1369
1370 CXX=$glibcpp_CXX
1371 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
b2dad0e3 1372
d2caef2e 1373 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
6706f116 1374echo "configure:1375: checking whether we are using GNU C++" >&5
b2dad0e3
BK
1375if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1377else
1378 cat > conftest.C <<EOF
1379#ifdef __GNUC__
1380 yes;
1381#endif
1382EOF
6706f116 1383if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
b2dad0e3
BK
1384 ac_cv_prog_gxx=yes
1385else
1386 ac_cv_prog_gxx=no
1387fi
1388fi
1389
1390echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1391
d2caef2e
PE
1392 if test $ac_cv_prog_gxx = yes; then
1393 GXX=yes
1394 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1395 ac_save_CXXFLAGS="$CXXFLAGS"
1396 CXXFLAGS=
1397 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
6706f116 1398echo "configure:1399: checking whether ${CXX-g++} accepts -g" >&5
b2dad0e3
BK
1399if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1400 echo $ac_n "(cached) $ac_c" 1>&6
1401else
1402 echo 'void f(){}' > conftest.cc
1403if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1404 ac_cv_prog_cxx_g=yes
1405else
1406 ac_cv_prog_cxx_g=no
1407fi
1408rm -f conftest*
1409
1410fi
1411
1412echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
d2caef2e
PE
1413 if test "$ac_test_CXXFLAGS" = set; then
1414 CXXFLAGS="$ac_save_CXXFLAGS"
1415 elif test $ac_cv_prog_cxx_g = yes; then
1416 CXXFLAGS="-g -O2"
1417 else
1418 CXXFLAGS="-O2"
1419 fi
b2dad0e3 1420 else
d2caef2e
PE
1421 GXX=
1422 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
b2dad0e3 1423 fi
d2caef2e 1424
ab3bc736 1425
d2caef2e 1426 # For some reason, gettext needs this.
263c6fa8
SE
1427
1428 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6706f116 1429echo "configure:1430: checking for strerror in -lcposix" >&5
263c6fa8
SE
1430ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1431if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1432 echo $ac_n "(cached) $ac_c" 1>&6
1433else
1434 ac_save_LIBS="$LIBS"
1435LIBS="-lcposix $LIBS"
1436cat > conftest.$ac_ext <<EOF
6706f116 1437#line 1438 "configure"
263c6fa8
SE
1438#include "confdefs.h"
1439/* Override any gcc2 internal prototype to avoid an error. */
1440/* We use char because int might match the return type of a gcc2
1441 builtin and then its argument prototype would still apply. */
1442char strerror();
1443
1444int main() {
1445strerror()
1446; return 0; }
33590f13 1447EOF
6706f116 1448if { (eval echo configure:1449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
263c6fa8
SE
1449 rm -rf conftest*
1450 eval "ac_cv_lib_$ac_lib_var=yes"
1451else
1452 echo "configure: failed program was:" >&5
1453 cat conftest.$ac_ext >&5
1454 rm -rf conftest*
1455 eval "ac_cv_lib_$ac_lib_var=no"
1456fi
1457rm -f conftest*
1458LIBS="$ac_save_LIBS"
33590f13 1459
263c6fa8
SE
1460fi
1461if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1462 echo "$ac_t""yes" 1>&6
1463 LIBS="$LIBS -lcposix"
33590f13
BK
1464else
1465 echo "$ac_t""no" 1>&6
33590f13
BK
1466fi
1467
263c6fa8
SE
1468
1469
33590f13 1470
5780a46b 1471 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
b2dad0e3
BK
1472set dummy ${ac_tool_prefix}as; ac_word=$2
1473echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6706f116 1474echo "configure:1475: checking for $ac_word" >&5
b2dad0e3
BK
1475if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1476 echo $ac_n "(cached) $ac_c" 1>&6
1477else
1478 if test -n "$AS"; then
1479 ac_cv_prog_AS="$AS" # Let the user override the test.
1480else
1481 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1482 ac_dummy="$PATH"
1483 for ac_dir in $ac_dummy; do
1484 test -z "$ac_dir" && ac_dir=.
1485 if test -f $ac_dir/$ac_word; then
1486 ac_cv_prog_AS="${ac_tool_prefix}as"
1487 break
1488 fi
1489 done
1490 IFS="$ac_save_ifs"
1491 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1492fi
1493fi
1494AS="$ac_cv_prog_AS"
1495if test -n "$AS"; then
1496 echo "$ac_t""$AS" 1>&6
1497else
1498 echo "$ac_t""no" 1>&6
1499fi
1500
1501
1502
5780a46b 1503 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
b2dad0e3
BK
1504set dummy ${ac_tool_prefix}ar; ac_word=$2
1505echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6706f116 1506echo "configure:1507: checking for $ac_word" >&5
b2dad0e3
BK
1507if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1508 echo $ac_n "(cached) $ac_c" 1>&6
1509else
1510 if test -n "$AR"; then
1511 ac_cv_prog_AR="$AR" # Let the user override the test.
1512else
1513 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1514 ac_dummy="$PATH"
1515 for ac_dir in $ac_dummy; do
1516 test -z "$ac_dir" && ac_dir=.
1517 if test -f $ac_dir/$ac_word; then
1518 ac_cv_prog_AR="${ac_tool_prefix}ar"
1519 break
1520 fi
1521 done
1522 IFS="$ac_save_ifs"
1523 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1524fi
1525fi
1526AR="$ac_cv_prog_AR"
1527if test -n "$AR"; then
1528 echo "$ac_t""$AR" 1>&6
1529else
1530 echo "$ac_t""no" 1>&6
1531fi
1532
1533
1534
5780a46b 1535 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
b2dad0e3
BK
1536set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1537echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6706f116 1538echo "configure:1539: checking for $ac_word" >&5
b2dad0e3
BK
1539if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1540 echo $ac_n "(cached) $ac_c" 1>&6
1541else
1542 if test -n "$RANLIB"; then
1543 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1544else
1545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1546 ac_dummy="$PATH"
1547 for ac_dir in $ac_dummy; do
1548 test -z "$ac_dir" && ac_dir=.
1549 if test -f $ac_dir/$ac_word; then
1550 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1551 break
1552 fi
1553 done
1554 IFS="$ac_save_ifs"
1555fi
1556fi
1557RANLIB="$ac_cv_prog_RANLIB"
1558if test -n "$RANLIB"; then
1559 echo "$ac_t""$RANLIB" 1>&6
1560else
1561 echo "$ac_t""no" 1>&6
1562fi
1563
1564
1565if test -z "$ac_cv_prog_RANLIB"; then
1566if test -n "$ac_tool_prefix"; then
1567 # Extract the first word of "ranlib", so it can be a program name with args.
1568set dummy ranlib; ac_word=$2
1569echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6706f116 1570echo "configure:1571: checking for $ac_word" >&5
b2dad0e3
BK
1571if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1572 echo $ac_n "(cached) $ac_c" 1>&6
1573else
1574 if test -n "$RANLIB"; then
1575 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1576else
1577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1578 ac_dummy="$PATH"
1579 for ac_dir in $ac_dummy; do
1580 test -z "$ac_dir" && ac_dir=.
1581 if test -f $ac_dir/$ac_word; then
1582 ac_cv_prog_RANLIB="ranlib"
1583 break
1584 fi
1585 done
1586 IFS="$ac_save_ifs"
46840bcd 1587 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
b2dad0e3
BK
1588fi
1589fi
1590RANLIB="$ac_cv_prog_RANLIB"
1591if test -n "$RANLIB"; then
1592 echo "$ac_t""$RANLIB" 1>&6
1593else
1594 echo "$ac_t""no" 1>&6
1595fi
1596
1597else
46840bcd
BK
1598 RANLIB="ranlib-not-found-in-path-error"
1599fi
1600fi
1601
5780a46b 1602 # Find a good install program. We prefer a C program (faster),
b2dad0e3
BK
1603# so one script is as good as another. But avoid the broken or
1604# incompatible versions:
1605# SysV /etc/install, /usr/sbin/install
1606# SunOS /usr/etc/install
1607# IRIX /sbin/install
1608# AIX /bin/install
1609# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1610# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1611# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1612# ./install, which can be erroneously created by make from ./install.sh.
1613echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
6706f116 1614echo "configure:1615: checking for a BSD compatible install" >&5
b2dad0e3
BK
1615if test -z "$INSTALL"; then
1616if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1617 echo $ac_n "(cached) $ac_c" 1>&6
1618else
1619 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1620 for ac_dir in $PATH; do
1621 # Account for people who put trailing slashes in PATH elements.
1622 case "$ac_dir/" in
1623 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1624 *)
1625 # OSF1 and SCO ODT 3.0 have their own names for install.
1626 # Don't use installbsd from OSF since it installs stuff as root
1627 # by default.
1628 for ac_prog in ginstall scoinst install; do
1629 if test -f $ac_dir/$ac_prog; then
1630 if test $ac_prog = install &&
1631 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1632 # AIX install. It has an incompatible calling convention.
1633 :
1634 else
1635 ac_cv_path_install="$ac_dir/$ac_prog -c"
1636 break 2
1637 fi
1638 fi
1639 done
1640 ;;
1641 esac
1642 done
1643 IFS="$ac_save_IFS"
1644
1645fi
1646 if test "${ac_cv_path_install+set}" = set; then
1647 INSTALL="$ac_cv_path_install"
1648 else
1649 # As a last resort, use the slow shell script. We don't cache a
1650 # path for INSTALL within a source directory, because that will
1651 # break other packages using the cache if that directory is
1652 # removed, or if the path is relative.
1653 INSTALL="$ac_install_sh"
1654 fi
1655fi
1656echo "$ac_t""$INSTALL" 1>&6
1657
1658# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1659# It thinks the first close brace ends the variable substitution.
1660test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1661
1662test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1663
1664test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1665
1666
5780a46b 1667 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
6706f116 1668echo "configure:1669: checking whether to enable maintainer-specific portions of Makefiles" >&5
b2dad0e3
BK
1669 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1670if test "${enable_maintainer_mode+set}" = set; then
1671 enableval="$enable_maintainer_mode"
1672 USE_MAINTAINER_MODE=$enableval
1673else
1674 USE_MAINTAINER_MODE=no
1675fi
1676
1677 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1678
1679
1680if test $USE_MAINTAINER_MODE = yes; then
1681 MAINTAINER_MODE_TRUE=
1682 MAINTAINER_MODE_FALSE='#'
1683else
1684 MAINTAINER_MODE_TRUE='#'
1685 MAINTAINER_MODE_FALSE=
1686fi
1687 MAINT=$MAINTAINER_MODE_TRUE
1688
1689
1690
5780a46b
BK
1691 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1692 # at least currently, we never actually build a program, so we never
1693 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1694 # fails, because we are probably configuring with a cross compiler
c5504edb
JM
1695 # which can't create executables. So we include AC_EXEEXT to keep
1696 # automake happy, but we don't execute it, since we don't care about
4d0e4296 1697 # the result.
5780a46b 1698 if false; then
61c71946
BK
1699 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1700 # to nothing, so nothing would remain between `then' and `fi' if it
1701 # were not for the `:' below.
1702 :
5780a46b 1703
b2dad0e3
BK
1704
1705echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
6706f116 1706echo "configure:1707: checking for executable suffix" >&5
b2dad0e3
BK
1707if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1708 echo $ac_n "(cached) $ac_c" 1>&6
1709else
1710 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1711 ac_cv_exeext=.exe
1712else
1713 rm -f conftest*
1714 echo 'int main () { return 0; }' > conftest.$ac_ext
1715 ac_cv_exeext=
6706f116 1716 if { (eval echo configure:1717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
b2dad0e3
BK
1717 for file in conftest.*; do
1718 case $file in
6706f116 1719 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
b2dad0e3
BK
1720 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1721 esac
1722 done
1723 else
1724 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1725 fi
1726 rm -f conftest*
1727 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1728fi
1729fi
1730
1731EXEEXT=""
1732test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1733echo "$ac_t""${ac_cv_exeext}" 1>&6
1734ac_exeext=$EXEEXT
1735
5780a46b 1736 fi
b2dad0e3 1737
5780a46b 1738 . ${glibcpp_basedir}/configure.host
b2dad0e3 1739
5780a46b 1740 case ${glibcpp_basedir} in
56c1d2ee 1741 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
5780a46b
BK
1742 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1743 esac
3840fa2a 1744
d0941a31 1745 # This does for the target what configure.host does for the host. In
5e3cbe0b 1746 # addition to possibly modifying the same flags, it also sets up symlinks.
d0941a31
PE
1747
1748 . ${glibcpp_basedir}/configure.target
1749 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1750 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
d0941a31
PE
1751
1752
33590f13 1753
5780a46b 1754
f4c79fef 1755
b2dad0e3
BK
1756# Check whether --enable-shared or --disable-shared was given.
1757if test "${enable_shared+set}" = set; then
1758 enableval="$enable_shared"
1759 p=${PACKAGE-default}
c21b6f87 1760case $enableval in
b2dad0e3
BK
1761yes) enable_shared=yes ;;
1762no) enable_shared=no ;;
1763*)
1764 enable_shared=no
1765 # Look at the argument we got. We use all the common list separators.
1766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1767 for pkg in $enableval; do
1768 if test "X$pkg" = "X$p"; then
1769 enable_shared=yes
1770 fi
1771 done
1772 IFS="$ac_save_ifs"
1773 ;;
1774esac
1775else
1776 enable_shared=yes
1777fi
1778
1779# Check whether --enable-static or --disable-static was given.
1780if test "${enable_static+set}" = set; then
1781 enableval="$enable_static"
1782 p=${PACKAGE-default}
c21b6f87 1783case $enableval in
b2dad0e3
BK
1784yes) enable_static=yes ;;
1785no) enable_static=no ;;
1786*)
1787 enable_static=no
1788 # Look at the argument we got. We use all the common list separators.
1789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1790 for pkg in $enableval; do
1791 if test "X$pkg" = "X$p"; then
1792 enable_static=yes
1793 fi
1794 done
1795 IFS="$ac_save_ifs"
1796 ;;
1797esac
1798else
1799 enable_static=yes
1800fi
1801
1802# Check whether --enable-fast-install or --disable-fast-install was given.
1803if test "${enable_fast_install+set}" = set; then
1804 enableval="$enable_fast_install"
1805 p=${PACKAGE-default}
c21b6f87 1806case $enableval in
b2dad0e3
BK
1807yes) enable_fast_install=yes ;;
1808no) enable_fast_install=no ;;
1809*)
1810 enable_fast_install=no
1811 # Look at the argument we got. We use all the common list separators.
1812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1813 for pkg in $enableval; do
1814 if test "X$pkg" = "X$p"; then
1815 enable_fast_install=yes
1816 fi
1817 done
1818 IFS="$ac_save_ifs"
1819 ;;
1820esac
1821else
1822 enable_fast_install=yes
1823fi
1824
b2dad0e3
BK
1825# Check whether --with-gnu-ld or --without-gnu-ld was given.
1826if test "${with_gnu_ld+set}" = set; then
1827 withval="$with_gnu_ld"
1828 test "$withval" = no || with_gnu_ld=yes
1829else
1830 with_gnu_ld=no
1831fi
1832
1833ac_prog=ld
c21b6f87 1834if test "$GCC" = yes; then
b2dad0e3
BK
1835 # Check if gcc -print-prog-name=ld gives a path.
1836 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
6706f116 1837echo "configure:1838: checking for ld used by GCC" >&5
3df64633
AO
1838 case $host in
1839 *-*-mingw*)
1840 # gcc leaves a trailing carriage return which upsets mingw
1841 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1842 *)
1843 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1844 esac
c21b6f87 1845 case $ac_prog in
b2dad0e3 1846 # Accept absolute paths.
3840fa2a 1847 [\\/]* | [A-Za-z]:[\\/]*)
b2dad0e3
BK
1848 re_direlt='/[^/][^/]*/\.\./'
1849 # Canonicalize the path of ld
1850 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1851 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1852 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1853 done
1854 test -z "$LD" && LD="$ac_prog"
1855 ;;
1856 "")
1857 # If it fails, then pretend we aren't using GCC.
1858 ac_prog=ld
1859 ;;
1860 *)
1861 # If it is relative, then search for the first ld in PATH.
1862 with_gnu_ld=unknown
1863 ;;
1864 esac
1865elif test "$with_gnu_ld" = yes; then
1866 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
6706f116 1867echo "configure:1868: checking for GNU ld" >&5
b2dad0e3
BK
1868else
1869 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
6706f116 1870echo "configure:1871: checking for non-GNU ld" >&5
b2dad0e3 1871fi
c21b6f87 1872if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
b2dad0e3
BK
1873 echo $ac_n "(cached) $ac_c" 1>&6
1874else
1875 if test -z "$LD"; then
3840fa2a 1876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
b2dad0e3
BK
1877 for ac_dir in $PATH; do
1878 test -z "$ac_dir" && ac_dir=.
3840fa2a 1879 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
c21b6f87 1880 lt_cv_path_LD="$ac_dir/$ac_prog"
b2dad0e3
BK
1881 # Check to see if the program is GNU ld. I'd rather use --version,
1882 # but apparently some GNU ld's only accept -v.
1883 # Break only if it was the GNU/non-GNU ld that we prefer.
c21b6f87 1884 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
b2dad0e3
BK
1885 test "$with_gnu_ld" != no && break
1886 else
1887 test "$with_gnu_ld" != yes && break
1888 fi
1889 fi
1890 done
1891 IFS="$ac_save_ifs"
1892else
c21b6f87 1893 lt_cv_path_LD="$LD" # Let the user override the test with a path.
b2dad0e3
BK
1894fi
1895fi
1896
c21b6f87 1897LD="$lt_cv_path_LD"
b2dad0e3
BK
1898if test -n "$LD"; then
1899 echo "$ac_t""$LD" 1>&6
1900else
1901 echo "$ac_t""no" 1>&6
1902fi
1903test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1904echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
6706f116 1905echo "configure:1906: checking if the linker ($LD) is GNU ld" >&5
c21b6f87 1906if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
b2dad0e3
BK
1907 echo $ac_n "(cached) $ac_c" 1>&6
1908else
1909 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1910if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
c21b6f87 1911 lt_cv_prog_gnu_ld=yes
b2dad0e3 1912else
c21b6f87 1913 lt_cv_prog_gnu_ld=no
b2dad0e3
BK
1914fi
1915fi
1916
c21b6f87
PE
1917echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1918with_gnu_ld=$lt_cv_prog_gnu_ld
3df64633 1919
b2dad0e3 1920
3df64633 1921echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
6706f116 1922echo "configure:1923: checking for $LD option to reload object files" >&5
3df64633
AO
1923if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1924 echo $ac_n "(cached) $ac_c" 1>&6
1925else
1926 lt_cv_ld_reload_flag='-r'
1927fi
1928
1929echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1930reload_flag=$lt_cv_ld_reload_flag
1931test -n "$reload_flag" && reload_flag=" $reload_flag"
b2dad0e3
BK
1932
1933echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
6706f116 1934echo "configure:1935: checking for BSD-compatible nm" >&5
c21b6f87 1935if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
b2dad0e3
BK
1936 echo $ac_n "(cached) $ac_c" 1>&6
1937else
1938 if test -n "$NM"; then
1939 # Let the user override the test.
c21b6f87 1940 lt_cv_path_NM="$NM"
b2dad0e3 1941else
3840fa2a 1942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
b2dad0e3
BK
1943 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1944 test -z "$ac_dir" && ac_dir=.
3df64633
AO
1945 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1946 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
b2dad0e3
BK
1947 # Check to see if the nm accepts a BSD-compat flag.
1948 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1949 # nm: unknown option "B" ignored
6d93bca4
AO
1950 # Tru64's nm complains that /dev/null is an invalid object file
1951 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
c21b6f87 1952 lt_cv_path_NM="$tmp_nm -B"
b2dad0e3 1953 break
3df64633 1954 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
c21b6f87 1955 lt_cv_path_NM="$tmp_nm -p"
b2dad0e3
BK
1956 break
1957 else
c21b6f87 1958 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
b2dad0e3
BK
1959 continue # so that we can try to find one that supports BSD flags
1960 fi
1961 fi
1962 done
1963 IFS="$ac_save_ifs"
c21b6f87 1964 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
b2dad0e3
BK
1965fi
1966fi
1967
c21b6f87 1968NM="$lt_cv_path_NM"
b2dad0e3
BK
1969echo "$ac_t""$NM" 1>&6
1970
3df64633 1971echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
6706f116 1972echo "configure:1973: checking how to recognise dependant libraries" >&5
3df64633
AO
1973if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1974 echo $ac_n "(cached) $ac_c" 1>&6
1975else
3dd7094e 1976 lt_cv_file_magic_cmd='$MAGIC_CMD'
3df64633
AO
1977lt_cv_file_magic_test_file=
1978lt_cv_deplibs_check_method='unknown'
1979# Need to set the preceding variable on all platforms that support
1980# interlibrary dependencies.
1981# 'none' -- dependencies not supported.
1982# `unknown' -- same as none, but documents that we really don't know.
1983# 'pass_all' -- all dependencies passed with no checks.
1984# 'test_compile' -- check by making test program.
1985# 'file_magic [regex]' -- check by looking for files in library path
1986# which responds to the $file_magic_cmd with a given egrep regex.
1987# If you have `file' or equivalent on your system and you're not sure
1988# whether `pass_all' will *always* work, you probably want this one.
1989
c21b6f87
PE
1990case $host_os in
1991aix*)
3df64633
AO
1992 lt_cv_deplibs_check_method=pass_all
1993 ;;
1994
1995beos*)
1996 lt_cv_deplibs_check_method=pass_all
1997 ;;
1998
1999bsdi4*)
c21b6f87
PE
2000 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2001 lt_cv_file_magic_cmd='/usr/bin/file -L'
3df64633
AO
2002 lt_cv_file_magic_test_file=/shlib/libc.so
2003 ;;
2004
3dd7094e 2005cygwin* | mingw* |pw32*)
3df64633 2006 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3dd7094e 2007 lt_cv_file_magic_cmd='$OBJDUMP -f'
3df64633
AO
2008 ;;
2009
c21b6f87
PE
2010darwin* | rhapsody*)
2011 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
47e982b2
BK
2012 lt_cv_file_magic_cmd='/usr/bin/file -L'
2013 case "$host_os" in
2014 rhapsody* | darwin1.012)
2015 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
2016 ;;
2017 *) # Darwin 1.3 on
2018 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2019 ;;
2020 esac
c21b6f87
PE
2021 ;;
2022
3df64633
AO
2023freebsd* )
2024 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
c21b6f87 2025 case $host_cpu in
3df64633 2026 i*86 )
6d93bca4
AO
2027 # Not sure whether the presence of OpenBSD here was a mistake.
2028 # Let's accept both of them until this is cleared up.
c21b6f87
PE
2029 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2030 lt_cv_file_magic_cmd=/usr/bin/file
3df64633
AO
2031 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2032 ;;
2033 esac
2034 else
2035 lt_cv_deplibs_check_method=pass_all
2036 fi
2037 ;;
2038
2039gnu*)
2040 lt_cv_deplibs_check_method=pass_all
2041 ;;
2042
c21b6f87
PE
2043hpux10.20*|hpux11*)
2044 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3df64633
AO
2045 lt_cv_file_magic_cmd=/usr/bin/file
2046 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2047 ;;
2048
2049irix5* | irix6*)
c21b6f87 2050 case $host_os in
3df64633
AO
2051 irix5*)
2052 # this will be overridden with pass_all, but let us keep it just in case
2053 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2054 ;;
2055 *)
c21b6f87 2056 case $LD in
3df64633
AO
2057 *-32|*"-32 ") libmagic=32-bit;;
2058 *-n32|*"-n32 ") libmagic=N32;;
2059 *-64|*"-64 ") libmagic=64-bit;;
2060 *) libmagic=never-match;;
2061 esac
2062 # this will be overridden with pass_all, but let us keep it just in case
c21b6f87
PE
2063 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2064 ;;
3df64633
AO
2065 esac
2066 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2067 lt_cv_deplibs_check_method=pass_all
2068 ;;
2069
2070# This must be Linux ELF.
6d93bca4 2071linux-gnu*)
c21b6f87 2072 case $host_cpu in
bfa1e6b1 2073 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3df64633
AO
2074 lt_cv_deplibs_check_method=pass_all ;;
2075 *)
2076 # glibc up to 2.1.1 does not perform some relocations on ARM
c21b6f87
PE
2077 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2078 esac
3df64633
AO
2079 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2080 ;;
2081
2082netbsd*)
c21b6f87 2083 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
47e982b2 2084 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3df64633 2085 else
47e982b2 2086 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3df64633 2087 fi
c21b6f87
PE
2088 ;;
2089
2090newsos6)
2091 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2092 lt_cv_file_magic_cmd=/usr/bin/file
2093 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3df64633
AO
2094 ;;
2095
2096osf3* | osf4* | osf5*)
2097 # this will be overridden with pass_all, but let us keep it just in case
2098 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2099 lt_cv_file_magic_test_file=/shlib/libc.so
2100 lt_cv_deplibs_check_method=pass_all
2101 ;;
2102
2103sco3.2v5*)
2104 lt_cv_deplibs_check_method=pass_all
2105 ;;
2106
2107solaris*)
2108 lt_cv_deplibs_check_method=pass_all
2109 lt_cv_file_magic_test_file=/lib/libc.so
2110 ;;
2111
bfa1e6b1
BK
2112sysv5uw[78]* | sysv4*uw2*)
2113 lt_cv_deplibs_check_method=pass_all
2114 ;;
2115
3df64633 2116sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
c21b6f87 2117 case $host_vendor in
3df64633
AO
2118 ncr)
2119 lt_cv_deplibs_check_method=pass_all
2120 ;;
2121 motorola)
c21b6f87
PE
2122 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]'
2123 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3df64633
AO
2124 ;;
2125 esac
2126 ;;
2127esac
2128
2129fi
2130
2131echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2132file_magic_cmd=$lt_cv_file_magic_cmd
2133deplibs_check_method=$lt_cv_deplibs_check_method
2134
2135echo $ac_n "checking for object suffix""... $ac_c" 1>&6
6706f116 2136echo "configure:2137: checking for object suffix" >&5
3df64633
AO
2137if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2138 echo $ac_n "(cached) $ac_c" 1>&6
2139else
2140 rm -f conftest*
2141echo 'int i = 1;' > conftest.$ac_ext
6706f116 2142if { (eval echo configure:2143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3df64633
AO
2143 for ac_file in conftest.*; do
2144 case $ac_file in
2145 *.c) ;;
2146 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2147 esac
2148 done
2149else
2150 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2151fi
2152rm -f conftest*
2153fi
2154
2155echo "$ac_t""$ac_cv_objext" 1>&6
2156OBJEXT=$ac_cv_objext
2157ac_objext=$ac_cv_objext
2158
2159# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2160
2161# Only perform the check for file, if the check method requires it
c21b6f87 2162case $deplibs_check_method in
3df64633 2163file_magic*)
3dd7094e 2164 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3df64633 2165 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
6706f116 2166echo "configure:2167: checking for ${ac_tool_prefix}file" >&5
3dd7094e 2167if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
3df64633
AO
2168 echo $ac_n "(cached) $ac_c" 1>&6
2169else
c21b6f87 2170 case $MAGIC_CMD in
3df64633 2171 /*)
3dd7094e 2172 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3df64633
AO
2173 ;;
2174 ?:/*)
3dd7094e 2175 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3df64633
AO
2176 ;;
2177 *)
3dd7094e 2178 ac_save_MAGIC_CMD="$MAGIC_CMD"
3df64633
AO
2179 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2180 ac_dummy="/usr/bin:$PATH"
2181 for ac_dir in $ac_dummy; do
2182 test -z "$ac_dir" && ac_dir=.
2183 if test -f $ac_dir/${ac_tool_prefix}file; then
3dd7094e 2184 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3df64633 2185 if test -n "$file_magic_test_file"; then
c21b6f87 2186 case $deplibs_check_method in
3df64633
AO
2187 "file_magic "*)
2188 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3dd7094e 2189 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3df64633
AO
2190 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2191 egrep "$file_magic_regex" > /dev/null; then
2192 :
2193 else
2194 cat <<EOF 1>&2
2195
2196*** Warning: the command libtool uses to detect shared libraries,
2197*** $file_magic_cmd, produces output that libtool cannot recognize.
2198*** The result is that libtool may fail to recognize shared libraries
2199*** as such. This will affect the creation of libtool libraries that
2200*** depend on shared libraries, but programs linked with such libtool
2201*** libraries will work regardless of this problem. Nevertheless, you
2202*** may want to report the problem to your system manager and/or to
2203*** bug-libtool@gnu.org
2204
2205EOF
2206 fi ;;
2207 esac
2208 fi
2209 break
2210 fi
2211 done
2212 IFS="$ac_save_ifs"
3dd7094e 2213 MAGIC_CMD="$ac_save_MAGIC_CMD"
3df64633
AO
2214 ;;
2215esac
2216fi
2217
3dd7094e
AO
2218MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2219if test -n "$MAGIC_CMD"; then
2220 echo "$ac_t""$MAGIC_CMD" 1>&6
3df64633
AO
2221else
2222 echo "$ac_t""no" 1>&6
2223fi
2224
3dd7094e 2225if test -z "$lt_cv_path_MAGIC_CMD"; then
3df64633
AO
2226 if test -n "$ac_tool_prefix"; then
2227 echo $ac_n "checking for file""... $ac_c" 1>&6
6706f116 2228echo "configure:2229: checking for file" >&5
3dd7094e 2229if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
3df64633
AO
2230 echo $ac_n "(cached) $ac_c" 1>&6
2231else
c21b6f87 2232 case $MAGIC_CMD in
3df64633 2233 /*)
3dd7094e 2234 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3df64633
AO
2235 ;;
2236 ?:/*)
3dd7094e 2237 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3df64633
AO
2238 ;;
2239 *)
3dd7094e 2240 ac_save_MAGIC_CMD="$MAGIC_CMD"
3df64633
AO
2241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2242 ac_dummy="/usr/bin:$PATH"
2243 for ac_dir in $ac_dummy; do
2244 test -z "$ac_dir" && ac_dir=.
2245 if test -f $ac_dir/file; then
3dd7094e 2246 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3df64633 2247 if test -n "$file_magic_test_file"; then
c21b6f87 2248 case $deplibs_check_method in
3df64633
AO
2249 "file_magic "*)
2250 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3dd7094e 2251 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3df64633
AO
2252 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2253 egrep "$file_magic_regex" > /dev/null; then
2254 :
2255 else
2256 cat <<EOF 1>&2
2257
2258*** Warning: the command libtool uses to detect shared libraries,
2259*** $file_magic_cmd, produces output that libtool cannot recognize.
2260*** The result is that libtool may fail to recognize shared libraries
2261*** as such. This will affect the creation of libtool libraries that
2262*** depend on shared libraries, but programs linked with such libtool
2263*** libraries will work regardless of this problem. Nevertheless, you
2264*** may want to report the problem to your system manager and/or to
2265*** bug-libtool@gnu.org
2266
2267EOF
2268 fi ;;
2269 esac
2270 fi
2271 break
2272 fi
2273 done
2274 IFS="$ac_save_ifs"
3dd7094e 2275 MAGIC_CMD="$ac_save_MAGIC_CMD"
3df64633
AO
2276 ;;
2277esac
2278fi
2279
3dd7094e
AO
2280MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2281if test -n "$MAGIC_CMD"; then
2282 echo "$ac_t""$MAGIC_CMD" 1>&6
3df64633
AO
2283else
2284 echo "$ac_t""no" 1>&6
2285fi
2286
2287 else
3dd7094e 2288 MAGIC_CMD=:
3df64633
AO
2289 fi
2290fi
2291
2292 fi
2293 ;;
2294esac
2295
2296# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2297set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2298echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6706f116 2299echo "configure:2300: checking for $ac_word" >&5
3df64633
AO
2300if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2302else
2303 if test -n "$RANLIB"; then
2304 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2305else
2306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2307 ac_dummy="$PATH"
2308 for ac_dir in $ac_dummy; do
2309 test -z "$ac_dir" && ac_dir=.
2310 if test -f $ac_dir/$ac_word; then
2311 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2312 break
2313 fi
2314 done
2315 IFS="$ac_save_ifs"
2316fi
2317fi
2318RANLIB="$ac_cv_prog_RANLIB"
2319if test -n "$RANLIB"; then
2320 echo "$ac_t""$RANLIB" 1>&6
2321else
2322 echo "$ac_t""no" 1>&6
2323fi
2324
2325
2326if test -z "$ac_cv_prog_RANLIB"; then
2327if test -n "$ac_tool_prefix"; then
2328 # Extract the first word of "ranlib", so it can be a program name with args.
2329set dummy ranlib; ac_word=$2
2330echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6706f116 2331echo "configure:2332: checking for $ac_word" >&5
3df64633
AO
2332if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2334else
2335 if test -n "$RANLIB"; then
2336 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2337else
2338 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2339 ac_dummy="$PATH"
2340 for ac_dir in $ac_dummy; do
2341 test -z "$ac_dir" && ac_dir=.
2342 if test -f $ac_dir/$ac_word; then
2343 ac_cv_prog_RANLIB="ranlib"
2344 break
2345 fi
2346 done
2347 IFS="$ac_save_ifs"
2348 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2349fi
2350fi
2351RANLIB="$ac_cv_prog_RANLIB"
2352if test -n "$RANLIB"; then
2353 echo "$ac_t""$RANLIB" 1>&6
2354else
2355 echo "$ac_t""no" 1>&6
2356fi
2357
2358else
2359 RANLIB=":"
2360fi
2361fi
2362
2363# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2364set dummy ${ac_tool_prefix}strip; ac_word=$2
2365echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6706f116 2366echo "configure:2367: checking for $ac_word" >&5
3df64633
AO
2367if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2368 echo $ac_n "(cached) $ac_c" 1>&6
2369else
2370 if test -n "$STRIP"; then
2371 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2372else
2373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2374 ac_dummy="$PATH"
2375 for ac_dir in $ac_dummy; do
2376 test -z "$ac_dir" && ac_dir=.
2377 if test -f $ac_dir/$ac_word; then
2378 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2379 break
2380 fi
2381 done
2382 IFS="$ac_save_ifs"
2383fi
2384fi
2385STRIP="$ac_cv_prog_STRIP"
2386if test -n "$STRIP"; then
2387 echo "$ac_t""$STRIP" 1>&6
2388else
2389 echo "$ac_t""no" 1>&6
2390fi
2391
2392
2393if test -z "$ac_cv_prog_STRIP"; then
2394if test -n "$ac_tool_prefix"; then
2395 # Extract the first word of "strip", so it can be a program name with args.
2396set dummy strip; ac_word=$2
2397echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6706f116 2398echo "configure:2399: checking for $ac_word" >&5
3df64633
AO
2399if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2400 echo $ac_n "(cached) $ac_c" 1>&6
2401else
2402 if test -n "$STRIP"; then
2403 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2404else
2405 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2406 ac_dummy="$PATH"
2407 for ac_dir in $ac_dummy; do
2408 test -z "$ac_dir" && ac_dir=.
2409 if test -f $ac_dir/$ac_word; then
2410 ac_cv_prog_STRIP="strip"
2411 break
2412 fi
2413 done
2414 IFS="$ac_save_ifs"
2415 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2416fi
2417fi
2418STRIP="$ac_cv_prog_STRIP"
2419if test -n "$STRIP"; then
2420 echo "$ac_t""$STRIP" 1>&6
2421else
2422 echo "$ac_t""no" 1>&6
2423fi
2424
2425else
2426 STRIP=":"
2427fi
2428fi
2429
b2dad0e3 2430
b2dad0e3
BK
2431# Check for any special flags to pass to ltconfig.
2432libtool_flags="--cache-file=$cache_file"
2433test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2434test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2435test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
c21b6f87
PE
2436test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2437test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3840fa2a
BK
2438libtool_flags="$libtool_flags --enable-dlopen"
2439
2440# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2441if test "${enable_libtool_lock+set}" = set; then
2442 enableval="$enable_libtool_lock"
2443 :
2444fi
2445
2446test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2447test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
b2dad0e3 2448
3df64633
AO
2449# Check whether --with-pic or --without-pic was given.
2450if test "${with_pic+set}" = set; then
2451 withval="$with_pic"
2452 pic_mode="$withval"
2453else
2454 pic_mode=default
2455fi
2456
2457test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2458test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2459
b2dad0e3
BK
2460# Some flags need to be propagated to the compiler or linker for good
2461# libtool support.
c21b6f87 2462case $host in
b2dad0e3
BK
2463*-*-irix6*)
2464 # Find out which ABI we are using.
6706f116
AO
2465 echo '#line 2466 "configure"' > conftest.$ac_ext
2466 if { (eval echo configure:2467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c21b6f87 2467 case `/usr/bin/file conftest.$ac_objext` in
b2dad0e3
BK
2468 *32-bit*)
2469 LD="${LD-ld} -32"
2470 ;;
2471 *N32*)
2472 LD="${LD-ld} -n32"
2473 ;;
2474 *64-bit*)
2475 LD="${LD-ld} -64"
2476 ;;
2477 esac
2478 fi
2479 rm -rf conftest*
2480 ;;
2481
2482*-*-sco3.2v5*)
2483 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2484 SAVE_CFLAGS="$CFLAGS"
2485 CFLAGS="$CFLAGS -belf"
2486 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
6706f116 2487echo "configure:2488: checking whether the C compiler needs -belf" >&5
b2dad0e3
BK
2488if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2489 echo $ac_n "(cached) $ac_c" 1>&6
2490else
3df64633
AO
2491
2492 ac_ext=c
2493# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2494ac_cpp='$CPP $CPPFLAGS'
2495ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2496ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2497cross_compiling=$ac_cv_prog_cc_cross
2498
2499 cat > conftest.$ac_ext <<EOF
6706f116 2500#line 2501 "configure"
b2dad0e3
BK
2501#include "confdefs.h"
2502
2503int main() {
2504
2505; return 0; }
2506EOF
6706f116 2507if { (eval echo configure:2508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b2dad0e3
BK
2508 rm -rf conftest*
2509 lt_cv_cc_needs_belf=yes
2510else
2511 echo "configure: failed program was:" >&5
2512 cat conftest.$ac_ext >&5
2513 rm -rf conftest*
2514 lt_cv_cc_needs_belf=no
2515fi
2516rm -f conftest*
3df64633
AO
2517 ac_ext=c
2518# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2519ac_cpp='$CPP $CPPFLAGS'
2520ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2521ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2522cross_compiling=$ac_cv_prog_cc_cross
2523
b2dad0e3
BK
2524fi
2525
2526echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2527 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2528 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2529 CFLAGS="$SAVE_CFLAGS"
2530 fi
2531 ;;
2532
2533
2534esac
2535
3df64633 2536echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
6706f116 2537echo "configure:2538: checking how to run the C++ preprocessor" >&5
3df64633
AO
2538if test -z "$CXXCPP"; then
2539if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2540 echo $ac_n "(cached) $ac_c" 1>&6
2541else
2542 ac_ext=C
2543# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2544ac_cpp='$CXXCPP $CPPFLAGS'
2545ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2546ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2547cross_compiling=$ac_cv_prog_cxx_cross
2548 CXXCPP="${CXX-g++} -E"
2549 cat > conftest.$ac_ext <<EOF
6706f116 2550#line 2551 "configure"
3df64633
AO
2551#include "confdefs.h"
2552#include <stdlib.h>
2553EOF
2554ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6706f116 2555{ (eval echo configure:2556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3df64633
AO
2556ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2557if test -z "$ac_err"; then
2558 :
2559else
2560 echo "$ac_err" >&5
2561 echo "configure: failed program was:" >&5
2562 cat conftest.$ac_ext >&5
2563 rm -rf conftest*
2564 CXXCPP=/lib/cpp
2565fi
2566rm -f conftest*
2567 ac_cv_prog_CXXCPP="$CXXCPP"
2568ac_ext=c
2569# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2570ac_cpp='$CPP $CPPFLAGS'
2571ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2572ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2573cross_compiling=$ac_cv_prog_cc_cross
2574fi
2575fi
2576CXXCPP="$ac_cv_prog_CXXCPP"
2577echo "$ac_t""$CXXCPP" 1>&6
2578
b2dad0e3
BK
2579
2580# Save cache, so that ltconfig can load it
2581cat > confcache <<\EOF
2582# This file is a shell script that caches the results of configure
2583# tests run on this system so they can be shared between configure
2584# scripts and configure runs. It is not useful on other systems.
2585# If it contains results you don't want to keep, you may remove or edit it.
2586#
2587# By default, configure uses ./config.cache as the cache file,
2588# creating it if it does not exist already. You can give configure
2589# the --cache-file=FILE option to use a different cache file; that is
2590# what configure does when it calls configure scripts in
2591# subdirectories, so they share the cache.
2592# Giving --cache-file=/dev/null disables caching, for debugging configure.
2593# config.status only pays attention to the cache file if you give it the
2594# --recheck option to rerun configure.
2595#
2596EOF
2597# The following way of writing the cache mishandles newlines in values,
2598# but we know of no workaround that is simple, portable, and efficient.
2599# So, don't put newlines in cache variables' values.
2600# Ultrix sh set writes to stderr and can't be redirected directly,
2601# and sets the high bit in the cache file unless we assign to the vars.
2602(set) 2>&1 |
2603 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2604 *ac_space=\ *)
2605 # `set' does not quote correctly, so add quotes (double-quote substitution
2606 # turns \\\\ into \\, and sed turns \\ into \).
2607 sed -n \
2608 -e "s/'/'\\\\''/g" \
2609 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2610 ;;
2611 *)
2612 # `set' quotes correctly as required by POSIX, so do not add quotes.
2613 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2614 ;;
2615 esac >> confcache
2616if cmp -s $cache_file confcache; then
2617 :
2618else
2619 if test -w $cache_file; then
2620 echo "updating cache $cache_file"
2621 cat confcache > $cache_file
2622 else
2623 echo "not updating unwritable cache $cache_file"
2624 fi
2625fi
2626rm -f confcache
2627
2628
2629# Actually configure libtool. ac_aux_dir is where install-sh is found.
3df64633 2630AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3dd7094e 2631MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3df64633
AO
2632LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2633AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2634objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2635deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
b2dad0e3 2636${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3df64633 2637$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
b2dad0e3
BK
2638|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2639
2640# Reload cache, that may have been modified by ltconfig
2641if test -r "$cache_file"; then
2642 echo "loading cache $cache_file"
2643 . $cache_file
2644else
2645 echo "creating cache $cache_file"
2646 > $cache_file
2647fi
2648
2649
2650# This can be used to rebuild libtool when needed
3df64633 2651LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
b2dad0e3
BK
2652
2653# Always use our own libtool.
2654LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2655
2656# Redirect the config.log output again, so that the ltconfig log is not
2657# clobbered by the next message.
2658exec 5>>./config.log
2659
3df64633
AO
2660
2661
3df64633
AO
2662LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2663lt_save_CC="$CC"
2664lt_save_CFLAGS="$CFLAGS"
2665AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
c21b6f87 2666MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3df64633
AO
2667LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2668AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2669objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2670deplibs_check_method="$deplibs_check_method" \
2671file_magic_cmd="$file_magic_cmd" \
2672${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2673--build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2674|| { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2675CC="$lt_save_CC"
2676CFLAGS="$lt_save_CFLAGS"
2677
2678# Redirect the config.log output again, so that the ltconfig log is not
2679# clobbered by the next message.
2680exec 5>>./config.log
2681
3df64633
AO
2682
2683
2684
2685
3dd7094e 2686
34791641
PE
2687
2688
33590f13 2689
33590f13
BK
2690# Check for c++ or library specific bits that don't require linking.
2691#GLIBCPP_CHECK_COMPILER_VERSION
5780a46b 2692echo $ac_n "checking for GNU make""... $ac_c" 1>&6
6706f116 2693echo "configure:2694: checking for GNU make" >&5
5780a46b
BK
2694if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2695 echo $ac_n "(cached) $ac_c" 1>&6
2696else
2697 _cv_gnu_make_command='' ;
57d278be 2698 for a in "${MAKE-make}" make gmake gnumake ; do
ea0c0b6e 2699 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
79f5e38e 2700 then
5780a46b
BK
2701 _cv_gnu_make_command=$a ;
2702 break;
2703 fi
2704 done ;
2705
2706fi
2707
2708echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2709 if test "x$_cv_gnu_make_command" != "x" ; then
2710 ifGNUmake='' ;
2711 else
2712 ifGNUmake='#' ;
2713 fi
2714
2715
04e78786 2716
33590f13 2717# Enable all the variable C++ stuff. C_MBCHAR must come early.
44382959
BK
2718# Check whether --enable-debug or --disable-debug was given.
2719if test "${enable_debug+set}" = set; then
2720 enableval="$enable_debug"
2721 case "${enableval}" in
2722 yes) enable_debug=yes ;;
2723 no) enable_debug=no ;;
2724 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2725 esac
2726else
2727 enable_debug=no
2728fi
2729
2730case "${enable_debug}" in
2731 yes)
2732 DEBUG_FLAGS='-O0 -ggdb3'
6abd2230 2733 ;;
44382959
BK
2734 no)
2735 DEBUG_FLAGS='-g'
2736 ;;
2737esac
2738
2739
c470c17d 2740echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
6706f116 2741echo "configure:2742: checking how to run the C preprocessor" >&5
c470c17d
BK
2742# On Suns, sometimes $CPP names a directory.
2743if test -n "$CPP" && test -d "$CPP"; then
2744 CPP=
2745fi
2746if test -z "$CPP"; then
2747if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
b2dad0e3
BK
2748 echo $ac_n "(cached) $ac_c" 1>&6
2749else
c470c17d
BK
2750 # This must be in double quotes, not single quotes, because CPP may get
2751 # substituted into the Makefile and "${CC-cc}" will confuse make.
2752 CPP="${CC-cc} -E"
2753 # On the NeXT, cc -E runs the code through the compiler's parser,
2754 # not just through cpp.
b2dad0e3 2755 cat > conftest.$ac_ext <<EOF
6706f116 2756#line 2757 "configure"
b2dad0e3 2757#include "confdefs.h"
c470c17d
BK
2758#include <assert.h>
2759Syntax Error
b2dad0e3
BK
2760EOF
2761ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6706f116 2762{ (eval echo configure:2763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
b2dad0e3
BK
2763ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2764if test -z "$ac_err"; then
2765 :
2766else
2767 echo "$ac_err" >&5
2768 echo "configure: failed program was:" >&5
2769 cat conftest.$ac_ext >&5
2770 rm -rf conftest*
c470c17d
BK
2771 CPP="${CC-cc} -E -traditional-cpp"
2772 cat > conftest.$ac_ext <<EOF
6706f116 2773#line 2774 "configure"
c470c17d
BK
2774#include "confdefs.h"
2775#include <assert.h>
2776Syntax Error
2777EOF
2778ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6706f116 2779{ (eval echo configure:2780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c470c17d
BK
2780ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2781if test -z "$ac_err"; then
2782 :
2783else
2784 echo "$ac_err" >&5
2785 echo "configure: failed program was:" >&5
2786 cat conftest.$ac_ext >&5
2787 rm -rf conftest*
2788 CPP="${CC-cc} -nologo -E"
2789 cat > conftest.$ac_ext <<EOF
6706f116 2790#line 2791 "configure"
c470c17d
BK
2791#include "confdefs.h"
2792#include <assert.h>
2793Syntax Error
2794EOF
2795ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6706f116 2796{ (eval echo configure:2797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c470c17d
BK
2797ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2798if test -z "$ac_err"; then
2799 :
2800else
2801 echo "$ac_err" >&5
2802 echo "configure: failed program was:" >&5
2803 cat conftest.$ac_ext >&5
2804 rm -rf conftest*
2805 CPP=/lib/cpp
b2dad0e3
BK
2806fi
2807rm -f conftest*
2808fi
33590f13
BK
2809rm -f conftest*
2810fi
2811rm -f conftest*
2812 ac_cv_prog_CPP="$CPP"
2813fi
2814 CPP="$ac_cv_prog_CPP"
2815else
2816 ac_cv_prog_CPP="$CPP"
2817fi
2818echo "$ac_t""$CPP" 1>&6
2819
2820
2821 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
6706f116 2822echo "configure:2823: checking for cstdio to use" >&5
33590f13
BK
2823 # Check whether --enable-cstdio or --disable-cstdio was given.
2824if test "${enable_cstdio+set}" = set; then
2825 enableval="$enable_cstdio"
2826 if test x$enable_cstdio = xno; then
2827 enable_cstdio=stdio
2828 fi
2829else
2830 enable_cstdio=stdio
2831fi
2832
2833
2834 enable_cstdio_flag=$enable_cstdio
2835
2836 case x${enable_cstdio_flag} in
2837 xlibio)
2838 CSTDIO_H=config/io/c_io_libio.h
2839 BASIC_FILE_H=config/io/basic_file_libio.h
2840 BASIC_FILE_CC=config/io/basic_file_libio.cc
2841 echo "$ac_t""libio" 1>&6
2842
2843 # see if we are on a system with libio native (ie, linux)
2844 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2845echo $ac_n "checking for libio.h""... $ac_c" 1>&6
6706f116 2846echo "configure:2847: checking for libio.h" >&5
33590f13
BK
2847if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2848 echo $ac_n "(cached) $ac_c" 1>&6
2849else
2850 cat > conftest.$ac_ext <<EOF
6706f116 2851#line 2852 "configure"
33590f13
BK
2852#include "confdefs.h"
2853#include <libio.h>
2854EOF
2855ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6706f116 2856{ (eval echo configure:2857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
33590f13
BK
2857ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2858if test -z "$ac_err"; then
2859 rm -rf conftest*
2860 eval "ac_cv_header_$ac_safe=yes"
2861else
2862 echo "$ac_err" >&5
2863 echo "configure: failed program was:" >&5
2864 cat conftest.$ac_ext >&5
2865 rm -rf conftest*
2866 eval "ac_cv_header_$ac_safe=no"
2867fi
2868rm -f conftest*
2869fi
2870if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2871 echo "$ac_t""yes" 1>&6
2872 has_libio=yes
2873else
2874 echo "$ac_t""no" 1>&6
2875has_libio=no
2876fi
2877
2878
2879 # Need to check and see what version of glibc is being used. If
2880 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2881 # compile most of libio for linux systems.
2882 if test x$has_libio = x"yes"; then
2883 case "$target" in
2884 *-*-linux*)
2885 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
6706f116 2886echo "configure:2887: checking for glibc version >= 2.2" >&5
33590f13 2887 cat > conftest.$ac_ext <<EOF
6706f116 2888#line 2889 "configure"
33590f13
BK
2889#include "confdefs.h"
2890
2891 #include <features.h>
2892 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2893 ok
2894 #endif
2895
2896EOF
2897if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2898 egrep "ok" >/dev/null 2>&1; then
2899 rm -rf conftest*
2900 glibc_satisfactory=yes
2901else
2902 rm -rf conftest*
2903 glibc_satisfactory=no
2904fi
2905rm -f conftest*
2906
2907 echo "$ac_t""$glibc_satisfactory" 1>&6
2908 ;;
2909 esac
2910
2911 # XXX at the moment, admit defeat and force the recompilation
2912 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2913 glibc_satisfactory=no
2914
2915 if test x$glibc_satisfactory = x"yes"; then
2916 need_libio=no
2917 need_wlibio=no
2918 else
2919 need_libio=yes
2920 # bkoz XXX need to add checks to enable this
2921 # pme XXX here's a first pass at such a check
2922 if test x$enable_c_mbchar != xno; then
2923 need_wlibio=yes
2924 else
2925 need_wlibio=no
2926 fi
2927 fi
2928
2929 else
2930 # Using libio, but <libio.h> doesn't exist on the target system. . .
2931 need_libio=yes
2932 # bkoz XXX need to add checks to enable this
2933 # pme XXX here's a first pass at such a check
2934 if test x$enable_c_mbchar != xno; then
2935 need_wlibio=yes
2936 else
2937 need_wlibio=no
2938 fi
2939 fi
2940 ;;
2941 xstdio | x | xno | xnone | xyes)
2942 # default
2943 CSTDIO_H=config/io/c_io_stdio.h
2944 BASIC_FILE_H=config/io/basic_file_stdio.h
2945 BASIC_FILE_CC=config/io/basic_file_stdio.cc
2946 echo "$ac_t""stdio" 1>&6
2947
2948 # We're not using stdio.
2949 need_libio=no
2950 need_wlibio=no
2951 ;;
2952 *)
2953 echo "$enable_cstdio is an unknown io package" 1>&2
2954 exit 1
2955 ;;
2956 esac
2957
2958
2959
2960
2961 # 2000-08-04 bkoz hack
2962 CCODECVT_C=config/io/c_io_libio_codecvt.c
2963
2964 # 2000-08-04 bkoz hack
2965
2966
2967
4e10943d
BK
2968if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2969 GLIBCPP_BUILD_LIBIO_TRUE=
2970 GLIBCPP_BUILD_LIBIO_FALSE='#'
b2dad0e3 2971else
4e10943d
BK
2972 GLIBCPP_BUILD_LIBIO_TRUE='#'
2973 GLIBCPP_BUILD_LIBIO_FALSE=
2974fi
2975
2976
2977if test "$need_libio" = yes; then
2978 GLIBCPP_NEED_LIBIO_TRUE=
2979 GLIBCPP_NEED_LIBIO_FALSE='#'
b2dad0e3 2980else
4e10943d
BK
2981 GLIBCPP_NEED_LIBIO_TRUE='#'
2982 GLIBCPP_NEED_LIBIO_FALSE=
b2dad0e3 2983fi
4e10943d
BK
2984
2985
2986if test "$need_wlibio" = yes; then
2987 GLIBCPP_NEED_WLIBIO_TRUE=
2988 GLIBCPP_NEED_WLIBIO_FALSE='#'
2989else
2990 GLIBCPP_NEED_WLIBIO_TRUE='#'
2991 GLIBCPP_NEED_WLIBIO_FALSE=
b2dad0e3 2992fi
4e10943d
BK
2993 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2994 libio_la=../libio/libio.la
2995 else
2996 libio_la=
2997 fi
2998
2999
3000
3001 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
6706f116 3002echo "configure:3003: checking for clocale to use" >&5
4e10943d
BK
3003 # Check whether --enable-clocale or --disable-clocale was given.
3004if test "${enable_clocale+set}" = set; then
3005 enableval="$enable_clocale"
3006 if test x$enable_clocale = xno; then
56deb74c 3007 enable_clocale=no
4e10943d 3008 fi
b2dad0e3 3009else
56deb74c 3010 enable_clocale=no
b2dad0e3
BK
3011fi
3012
20427c6b 3013
4e10943d 3014 enable_clocale_flag=$enable_clocale
dd75251f 3015
56deb74c
BK
3016 if test x$enable_clocale_flag = xno; then
3017 case x${target_os} in
3018 xlinux* | xgnu*)
3019 cat > conftest.$ac_ext <<EOF
6706f116 3020#line 3021 "configure"
56deb74c
BK
3021#include "confdefs.h"
3022
3023 #include <features.h>
3024 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
1451a492 3025 _GLIBCPP_ok
56deb74c
BK
3026 #endif
3027
3028EOF
3029if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1451a492 3030 egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
56deb74c
BK
3031 rm -rf conftest*
3032 enable_clocale_flag=gnu
3033else
3034 rm -rf conftest*
3035 enable_clocale_flag=generic
3036fi
3037rm -f conftest*
3038
1451a492
BK
3039
3040 # Test for bugs early in glibc-2.2.x series
3041 if test x$enable_clocale_flag = xgnu; then
3042 if test "$cross_compiling" = yes; then
3043 enable_clocale_flag=generic
3044else
3045 cat > conftest.$ac_ext <<EOF
6706f116 3046#line 3047 "configure"
1451a492
BK
3047#include "confdefs.h"
3048
3049 #define _GNU_SOURCE 1
3050 #include <locale.h>
3051 int main()
3052 {
3053