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