source: trunk/src/gcc/boehm-gc/configure@ 1036

Last change on this file since 1036 was 80, checked in by bird, 22 years ago

Regenerated configure on OS/2.

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