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