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