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