2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / boehm-gc / configure
blob5cce0e9fd5919758f1cf6eb69c8bcfd9ff7e0791
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 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1869 lt_cv_file_magic_cmd='/usr/bin/file -L'
1870 case "$host_os" in
1871 rhapsody* | darwin1.012)
1872 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1874 *) # Darwin 1.3 on
1875 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1877 esac
1880 freebsd* )
1881 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1882 case $host_cpu in
1883 i*86 )
1884 # Not sure whether the presence of OpenBSD here was a mistake.
1885 # Let's accept both of them until this is cleared up.
1886 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1887 lt_cv_file_magic_cmd=/usr/bin/file
1888 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1890 esac
1891 else
1892 lt_cv_deplibs_check_method=pass_all
1896 gnu*)
1897 lt_cv_deplibs_check_method=pass_all
1900 hpux10.20*|hpux11*)
1901 case $host_cpu in
1902 hppa*)
1903 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1904 lt_cv_file_magic_cmd=/usr/bin/file
1905 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1907 ia64*)
1908 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1909 lt_cv_file_magic_cmd=/usr/bin/file
1910 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1912 esac
1915 irix5* | irix6*)
1916 case $host_os in
1917 irix5*)
1918 # this will be overridden with pass_all, but let us keep it just in case
1919 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1922 case $LD in
1923 *-32|*"-32 ") libmagic=32-bit;;
1924 *-n32|*"-n32 ") libmagic=N32;;
1925 *-64|*"-64 ") libmagic=64-bit;;
1926 *) libmagic=never-match;;
1927 esac
1928 # this will be overridden with pass_all, but let us keep it just in case
1929 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1931 esac
1932 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1933 lt_cv_deplibs_check_method=pass_all
1936 # This must be Linux ELF.
1937 linux-gnu*)
1938 case $host_cpu in
1939 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1940 lt_cv_deplibs_check_method=pass_all ;;
1942 # glibc up to 2.1.1 does not perform some relocations on ARM
1943 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1944 esac
1945 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1948 netbsd*)
1949 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1950 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1951 else
1952 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1956 newsos6)
1957 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1958 lt_cv_file_magic_cmd=/usr/bin/file
1959 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1962 osf3* | osf4* | osf5*)
1963 # this will be overridden with pass_all, but let us keep it just in case
1964 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1965 lt_cv_file_magic_test_file=/shlib/libc.so
1966 lt_cv_deplibs_check_method=pass_all
1969 sco3.2v5*)
1970 lt_cv_deplibs_check_method=pass_all
1973 solaris*)
1974 lt_cv_deplibs_check_method=pass_all
1975 lt_cv_file_magic_test_file=/lib/libc.so
1978 sysv5uw[78]* | sysv4*uw2*)
1979 lt_cv_deplibs_check_method=pass_all
1982 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1983 case $host_vendor in
1984 ncr)
1985 lt_cv_deplibs_check_method=pass_all
1987 motorola)
1988 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1989 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1991 esac
1993 esac
1997 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1998 file_magic_cmd=$lt_cv_file_magic_cmd
1999 deplibs_check_method=$lt_cv_deplibs_check_method
2001 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2002 echo "configure:2003: checking for object suffix" >&5
2003 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2004 echo $ac_n "(cached) $ac_c" 1>&6
2005 else
2006 rm -f conftest*
2007 echo 'int i = 1;' > conftest.$ac_ext
2008 if { (eval echo configure:2009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2009 for ac_file in conftest.*; do
2010 case $ac_file in
2011 *.c) ;;
2012 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2013 esac
2014 done
2015 else
2016 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2018 rm -f conftest*
2021 echo "$ac_t""$ac_cv_objext" 1>&6
2022 OBJEXT=$ac_cv_objext
2023 ac_objext=$ac_cv_objext
2025 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2027 # Only perform the check for file, if the check method requires it
2028 case $deplibs_check_method in
2029 file_magic*)
2030 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2031 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2032 echo "configure:2033: checking for ${ac_tool_prefix}file" >&5
2033 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2034 echo $ac_n "(cached) $ac_c" 1>&6
2035 else
2036 case $MAGIC_CMD in
2038 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2040 ?:/*)
2041 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2044 ac_save_MAGIC_CMD="$MAGIC_CMD"
2045 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2046 ac_dummy="/usr/bin:$PATH"
2047 for ac_dir in $ac_dummy; do
2048 test -z "$ac_dir" && ac_dir=.
2049 if test -f $ac_dir/${ac_tool_prefix}file; then
2050 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2051 if test -n "$file_magic_test_file"; then
2052 case $deplibs_check_method in
2053 "file_magic "*)
2054 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2055 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2056 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2057 egrep "$file_magic_regex" > /dev/null; then
2059 else
2060 cat <<EOF 1>&2
2062 *** Warning: the command libtool uses to detect shared libraries,
2063 *** $file_magic_cmd, produces output that libtool cannot recognize.
2064 *** The result is that libtool may fail to recognize shared libraries
2065 *** as such. This will affect the creation of libtool libraries that
2066 *** depend on shared libraries, but programs linked with such libtool
2067 *** libraries will work regardless of this problem. Nevertheless, you
2068 *** may want to report the problem to your system manager and/or to
2069 *** bug-libtool@gnu.org
2072 fi ;;
2073 esac
2075 break
2077 done
2078 IFS="$ac_save_ifs"
2079 MAGIC_CMD="$ac_save_MAGIC_CMD"
2081 esac
2084 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2085 if test -n "$MAGIC_CMD"; then
2086 echo "$ac_t""$MAGIC_CMD" 1>&6
2087 else
2088 echo "$ac_t""no" 1>&6
2091 if test -z "$lt_cv_path_MAGIC_CMD"; then
2092 if test -n "$ac_tool_prefix"; then
2093 echo $ac_n "checking for file""... $ac_c" 1>&6
2094 echo "configure:2095: checking for file" >&5
2095 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2096 echo $ac_n "(cached) $ac_c" 1>&6
2097 else
2098 case $MAGIC_CMD in
2100 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2102 ?:/*)
2103 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2106 ac_save_MAGIC_CMD="$MAGIC_CMD"
2107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2108 ac_dummy="/usr/bin:$PATH"
2109 for ac_dir in $ac_dummy; do
2110 test -z "$ac_dir" && ac_dir=.
2111 if test -f $ac_dir/file; then
2112 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2113 if test -n "$file_magic_test_file"; then
2114 case $deplibs_check_method in
2115 "file_magic "*)
2116 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2117 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2118 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2119 egrep "$file_magic_regex" > /dev/null; then
2121 else
2122 cat <<EOF 1>&2
2124 *** Warning: the command libtool uses to detect shared libraries,
2125 *** $file_magic_cmd, produces output that libtool cannot recognize.
2126 *** The result is that libtool may fail to recognize shared libraries
2127 *** as such. This will affect the creation of libtool libraries that
2128 *** depend on shared libraries, but programs linked with such libtool
2129 *** libraries will work regardless of this problem. Nevertheless, you
2130 *** may want to report the problem to your system manager and/or to
2131 *** bug-libtool@gnu.org
2134 fi ;;
2135 esac
2137 break
2139 done
2140 IFS="$ac_save_ifs"
2141 MAGIC_CMD="$ac_save_MAGIC_CMD"
2143 esac
2146 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2147 if test -n "$MAGIC_CMD"; then
2148 echo "$ac_t""$MAGIC_CMD" 1>&6
2149 else
2150 echo "$ac_t""no" 1>&6
2153 else
2154 MAGIC_CMD=:
2160 esac
2162 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2163 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2164 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2165 echo "configure:2166: checking for $ac_word" >&5
2166 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2167 echo $ac_n "(cached) $ac_c" 1>&6
2168 else
2169 if test -n "$RANLIB"; then
2170 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2171 else
2172 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2173 ac_dummy="$PATH"
2174 for ac_dir in $ac_dummy; do
2175 test -z "$ac_dir" && ac_dir=.
2176 if test -f $ac_dir/$ac_word; then
2177 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2178 break
2180 done
2181 IFS="$ac_save_ifs"
2184 RANLIB="$ac_cv_prog_RANLIB"
2185 if test -n "$RANLIB"; then
2186 echo "$ac_t""$RANLIB" 1>&6
2187 else
2188 echo "$ac_t""no" 1>&6
2192 if test -z "$ac_cv_prog_RANLIB"; then
2193 if test -n "$ac_tool_prefix"; then
2194 # Extract the first word of "ranlib", so it can be a program name with args.
2195 set dummy ranlib; ac_word=$2
2196 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2197 echo "configure:2198: checking for $ac_word" >&5
2198 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2199 echo $ac_n "(cached) $ac_c" 1>&6
2200 else
2201 if test -n "$RANLIB"; then
2202 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2203 else
2204 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2205 ac_dummy="$PATH"
2206 for ac_dir in $ac_dummy; do
2207 test -z "$ac_dir" && ac_dir=.
2208 if test -f $ac_dir/$ac_word; then
2209 ac_cv_prog_RANLIB="ranlib"
2210 break
2212 done
2213 IFS="$ac_save_ifs"
2214 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2217 RANLIB="$ac_cv_prog_RANLIB"
2218 if test -n "$RANLIB"; then
2219 echo "$ac_t""$RANLIB" 1>&6
2220 else
2221 echo "$ac_t""no" 1>&6
2224 else
2225 RANLIB=":"
2229 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2230 set dummy ${ac_tool_prefix}strip; ac_word=$2
2231 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2232 echo "configure:2233: checking for $ac_word" >&5
2233 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2234 echo $ac_n "(cached) $ac_c" 1>&6
2235 else
2236 if test -n "$STRIP"; then
2237 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2238 else
2239 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2240 ac_dummy="$PATH"
2241 for ac_dir in $ac_dummy; do
2242 test -z "$ac_dir" && ac_dir=.
2243 if test -f $ac_dir/$ac_word; then
2244 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2245 break
2247 done
2248 IFS="$ac_save_ifs"
2251 STRIP="$ac_cv_prog_STRIP"
2252 if test -n "$STRIP"; then
2253 echo "$ac_t""$STRIP" 1>&6
2254 else
2255 echo "$ac_t""no" 1>&6
2259 if test -z "$ac_cv_prog_STRIP"; then
2260 if test -n "$ac_tool_prefix"; then
2261 # Extract the first word of "strip", so it can be a program name with args.
2262 set dummy strip; ac_word=$2
2263 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2264 echo "configure:2265: checking for $ac_word" >&5
2265 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2266 echo $ac_n "(cached) $ac_c" 1>&6
2267 else
2268 if test -n "$STRIP"; then
2269 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2270 else
2271 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2272 ac_dummy="$PATH"
2273 for ac_dir in $ac_dummy; do
2274 test -z "$ac_dir" && ac_dir=.
2275 if test -f $ac_dir/$ac_word; then
2276 ac_cv_prog_STRIP="strip"
2277 break
2279 done
2280 IFS="$ac_save_ifs"
2281 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2284 STRIP="$ac_cv_prog_STRIP"
2285 if test -n "$STRIP"; then
2286 echo "$ac_t""$STRIP" 1>&6
2287 else
2288 echo "$ac_t""no" 1>&6
2291 else
2292 STRIP=":"
2297 # Check for any special flags to pass to ltconfig.
2298 libtool_flags="--cache-file=$cache_file"
2299 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2300 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2301 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2302 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2303 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2306 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2307 if test "${enable_libtool_lock+set}" = set; then
2308 enableval="$enable_libtool_lock"
2312 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2313 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2315 # Check whether --with-pic or --without-pic was given.
2316 if test "${with_pic+set}" = set; then
2317 withval="$with_pic"
2318 pic_mode="$withval"
2319 else
2320 pic_mode=default
2323 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2324 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2326 # Some flags need to be propagated to the compiler or linker for good
2327 # libtool support.
2328 case $host in
2329 *-*-irix6*)
2330 # Find out which ABI we are using.
2331 echo '#line 2332 "configure"' > conftest.$ac_ext
2332 if { (eval echo configure:2333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2333 if test "$lt_cv_prog_gnu_ld" = yes; then
2334 case `/usr/bin/file conftest.$ac_objext` in
2335 *32-bit*)
2336 LD="${LD-ld} -melf32bsmip"
2338 *N32*)
2339 LD="${LD-ld} -melf32bmipn32"
2341 *64-bit*)
2342 LD="${LD-ld} -melf64bmip"
2344 esac
2345 else
2346 case `/usr/bin/file conftest.$ac_objext` in
2347 *32-bit*)
2348 LD="${LD-ld} -32"
2350 *N32*)
2351 LD="${LD-ld} -n32"
2353 *64-bit*)
2354 LD="${LD-ld} -64"
2356 esac
2359 rm -rf conftest*
2362 ia64-*-hpux*)
2363 # Find out which ABI we are using.
2364 echo 'int i;' > conftest.$ac_ext
2365 if { (eval echo configure:2366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2366 case "`/usr/bin/file conftest.o`" in
2367 *ELF-32*)
2368 HPUX_IA64_MODE="32"
2370 *ELF-64*)
2371 HPUX_IA64_MODE="64"
2373 esac
2375 rm -rf conftest*
2378 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2379 # Find out which ABI we are using.
2380 echo 'int i;' > conftest.$ac_ext
2381 if { (eval echo configure:2382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2382 case "`/usr/bin/file conftest.o`" in
2383 *32-bit*)
2384 case $host in
2385 x86_64-*linux*)
2386 LD="${LD-ld} -m elf_i386"
2388 ppc64-*linux*|powerpc64-*linux*)
2389 LD="${LD-ld} -m elf32ppclinux"
2391 s390x-*linux*)
2392 LD="${LD-ld} -m elf_s390"
2394 sparc64-*linux*)
2395 LD="${LD-ld} -m elf32_sparc"
2397 esac
2399 *64-bit*)
2400 case $host in
2401 x86_64-*linux*)
2402 LD="${LD-ld} -m elf_x86_64"
2404 ppc*-*linux*|powerpc*-*linux*)
2405 LD="${LD-ld} -m elf64ppc"
2407 s390*-*linux*)
2408 LD="${LD-ld} -m elf64_s390"
2410 sparc*-*linux*)
2411 LD="${LD-ld} -m elf64_sparc"
2413 esac
2415 esac
2417 rm -rf conftest*
2420 *-*-sco3.2v5*)
2421 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2422 SAVE_CFLAGS="$CFLAGS"
2423 CFLAGS="$CFLAGS -belf"
2424 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2425 echo "configure:2426: checking whether the C compiler needs -belf" >&5
2426 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2427 echo $ac_n "(cached) $ac_c" 1>&6
2428 else
2430 ac_ext=c
2431 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2432 ac_cpp='$CPP $CPPFLAGS'
2433 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2434 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2435 cross_compiling=$ac_cv_prog_cc_cross
2437 cat > conftest.$ac_ext <<EOF
2438 #line 2439 "configure"
2439 #include "confdefs.h"
2441 int main() {
2443 ; return 0; }
2445 if { (eval echo configure:2446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2446 rm -rf conftest*
2447 lt_cv_cc_needs_belf=yes
2448 else
2449 echo "configure: failed program was:" >&5
2450 cat conftest.$ac_ext >&5
2451 rm -rf conftest*
2452 lt_cv_cc_needs_belf=no
2454 rm -f conftest*
2455 ac_ext=c
2456 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2457 ac_cpp='$CPP $CPPFLAGS'
2458 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2459 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2460 cross_compiling=$ac_cv_prog_cc_cross
2464 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2465 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2466 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2467 CFLAGS="$SAVE_CFLAGS"
2472 esac
2474 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2475 echo "configure:2476: checking how to run the C++ preprocessor" >&5
2476 if test -z "$CXXCPP"; then
2477 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2478 echo $ac_n "(cached) $ac_c" 1>&6
2479 else
2480 ac_ext=C
2481 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2482 ac_cpp='$CXXCPP $CPPFLAGS'
2483 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2484 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2485 cross_compiling=$ac_cv_prog_cxx_cross
2486 CXXCPP="${CXX-g++} -E"
2487 cat > conftest.$ac_ext <<EOF
2488 #line 2489 "configure"
2489 #include "confdefs.h"
2490 #include <stdlib.h>
2492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2493 { (eval echo configure:2494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2495 if test -z "$ac_err"; then
2497 else
2498 echo "$ac_err" >&5
2499 echo "configure: failed program was:" >&5
2500 cat conftest.$ac_ext >&5
2501 rm -rf conftest*
2502 CXXCPP=/lib/cpp
2504 rm -f conftest*
2505 ac_cv_prog_CXXCPP="$CXXCPP"
2506 ac_ext=c
2507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2508 ac_cpp='$CPP $CPPFLAGS'
2509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2511 cross_compiling=$ac_cv_prog_cc_cross
2514 CXXCPP="$ac_cv_prog_CXXCPP"
2515 echo "$ac_t""$CXXCPP" 1>&6
2518 # Save cache, so that ltconfig can load it
2519 cat > confcache <<\EOF
2520 # This file is a shell script that caches the results of configure
2521 # tests run on this system so they can be shared between configure
2522 # scripts and configure runs. It is not useful on other systems.
2523 # If it contains results you don't want to keep, you may remove or edit it.
2525 # By default, configure uses ./config.cache as the cache file,
2526 # creating it if it does not exist already. You can give configure
2527 # the --cache-file=FILE option to use a different cache file; that is
2528 # what configure does when it calls configure scripts in
2529 # subdirectories, so they share the cache.
2530 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2531 # config.status only pays attention to the cache file if you give it the
2532 # --recheck option to rerun configure.
2535 # The following way of writing the cache mishandles newlines in values,
2536 # but we know of no workaround that is simple, portable, and efficient.
2537 # So, don't put newlines in cache variables' values.
2538 # Ultrix sh set writes to stderr and can't be redirected directly,
2539 # and sets the high bit in the cache file unless we assign to the vars.
2540 (set) 2>&1 |
2541 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2542 *ac_space=\ *)
2543 # `set' does not quote correctly, so add quotes (double-quote substitution
2544 # turns \\\\ into \\, and sed turns \\ into \).
2545 sed -n \
2546 -e "s/'/'\\\\''/g" \
2547 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2550 # `set' quotes correctly as required by POSIX, so do not add quotes.
2551 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2553 esac >> confcache
2554 if cmp -s $cache_file confcache; then
2556 else
2557 if test -w $cache_file; then
2558 echo "updating cache $cache_file"
2559 cat confcache > $cache_file
2560 else
2561 echo "not updating unwritable cache $cache_file"
2564 rm -f confcache
2567 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2568 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2569 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2570 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2571 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2572 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2573 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2574 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2575 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2576 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2578 # Reload cache, that may have been modified by ltconfig
2579 if test -r "$cache_file"; then
2580 echo "loading cache $cache_file"
2581 . $cache_file
2582 else
2583 echo "creating cache $cache_file"
2584 > $cache_file
2588 # This can be used to rebuild libtool when needed
2589 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2591 # Always use our own libtool.
2592 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2594 # Redirect the config.log output again, so that the ltconfig log is not
2595 # clobbered by the next message.
2596 exec 5>>./config.log
2600 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2601 lt_save_CC="$CC"
2602 lt_save_CFLAGS="$CFLAGS"
2603 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2604 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2605 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2606 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2607 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2608 deplibs_check_method="$deplibs_check_method" \
2609 file_magic_cmd="$file_magic_cmd" \
2610 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2611 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2612 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2613 CC="$lt_save_CC"
2614 CFLAGS="$lt_save_CFLAGS"
2616 # Redirect the config.log output again, so that the ltconfig log is not
2617 # clobbered by the next message.
2618 exec 5>>./config.log
2626 # Check whether --with-target-subdir or --without-target-subdir was given.
2627 if test "${with_target_subdir+set}" = set; then
2628 withval="$with_target_subdir"
2632 # Check whether --with-cross-host or --without-cross-host was given.
2633 if test "${with_cross_host+set}" = set; then
2634 withval="$with_cross_host"
2639 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2640 echo "configure:2641: checking whether to enable maintainer-specific portions of Makefiles" >&5
2641 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2642 if test "${enable_maintainer_mode+set}" = set; then
2643 enableval="$enable_maintainer_mode"
2644 USE_MAINTAINER_MODE=$enableval
2645 else
2646 USE_MAINTAINER_MODE=no
2649 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2652 if test $USE_MAINTAINER_MODE = yes; then
2653 MAINTAINER_MODE_TRUE=
2654 MAINTAINER_MODE_FALSE='#'
2655 else
2656 MAINTAINER_MODE_TRUE='#'
2657 MAINTAINER_MODE_FALSE=
2659 MAINT=$MAINTAINER_MODE_TRUE
2662 # automake wants to see AC_EXEEXT. But we don't need it. And having
2663 # it is actually a problem, because the compiler we're passed can't
2664 # necessarily do a full link. So we fool automake here.
2665 if false; then
2666 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
2667 # to nothing, so nothing would remain between `then' and `fi' if it
2668 # were not for the `:' below.
2672 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2673 echo "configure:2674: checking for executable suffix" >&5
2674 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2676 else
2677 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2678 ac_cv_exeext=.exe
2679 else
2680 rm -f conftest*
2681 echo 'int main () { return 0; }' > conftest.$ac_ext
2682 ac_cv_exeext=
2683 if { (eval echo configure:2684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2684 for file in conftest.*; do
2685 case $file in
2686 *.c | *.o | *.obj) ;;
2687 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2688 esac
2689 done
2690 else
2691 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2693 rm -f conftest*
2694 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2698 EXEEXT=""
2699 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2700 echo "$ac_t""${ac_cv_exeext}" 1>&6
2701 ac_exeext=$EXEEXT
2705 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
2706 echo "configure:2707: checking for thread model used by GCC" >&5
2707 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
2708 if test -z "$THREADS"; then
2709 THREADS=no
2711 echo "$ac_t""$THREADS" 1>&6
2713 # Check whether --enable-parallel-mark or --disable-parallel-mark was given.
2714 if test "${enable_parallel_mark+set}" = set; then
2715 enableval="$enable_parallel_mark"
2716 case "$THREADS" in
2717 no | none | single)
2718 { echo "configure: error: Parallel mark requires --enable-threads=x spec" 1>&2; exit 1; }
2720 esac
2725 INCLUDES="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
2726 THREADLIBS=
2727 case "$THREADS" in
2728 no | none | single)
2729 THREADS=none
2731 posix | pthreads)
2732 THREADS=posix
2733 THREADLIBS=-lpthread
2734 case "$host" in
2735 x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
2736 cat >> confdefs.h <<\EOF
2737 #define GC_LINUX_THREADS 1
2740 cat >> confdefs.h <<\EOF
2741 #define _REENTRANT 1
2744 if test "${enable_parallel_mark}" = yes; then
2745 cat >> confdefs.h <<\EOF
2746 #define PARALLEL_MARK 1
2750 cat >> confdefs.h <<\EOF
2751 #define THREAD_LOCAL_ALLOC 1
2755 *-*-linux*)
2756 cat >> confdefs.h <<\EOF
2757 #define GC_LINUX_THREADS 1
2760 cat >> confdefs.h <<\EOF
2761 #define _REENTRANT 1
2765 *-*-aix*)
2766 cat >> confdefs.h <<\EOF
2767 #define GC_AIX_THREADS 1
2770 cat >> confdefs.h <<\EOF
2771 #define _REENTRANT 1
2775 *-*-hpux*)
2776 echo "configure: warning: "Only HP/UX 11 threads are supported."" 1>&2
2777 cat >> confdefs.h <<\EOF
2778 #define GC_HPUX_THREADS 1
2781 cat >> confdefs.h <<\EOF
2782 #define _POSIX_C_SOURCE 199506L
2785 if test "${enable_parallel_mark}" = yes; then
2786 cat >> confdefs.h <<\EOF
2787 #define PARALLEL_MARK 1
2791 cat >> confdefs.h <<\EOF
2792 #define THREAD_LOCAL_ALLOC 1
2795 THREADLIBS="-lpthread -lrt"
2797 *-*-freebsd*)
2798 echo "configure: warning: "FreeBSD does not yet fully support threads with Boehm GC."" 1>&2
2799 cat >> confdefs.h <<\EOF
2800 #define GC_FREEBSD_THREADS 1
2803 INCLUDES="$INCLUDES -pthread"
2804 THREADLIBS=-pthread
2806 *-*-solaris*)
2807 cat >> confdefs.h <<\EOF
2808 #define GC_SOLARIS_THREADS 1
2811 cat >> confdefs.h <<\EOF
2812 #define GC_SOLARIS_PTHREADS 1
2816 *-*-irix*)
2817 cat >> confdefs.h <<\EOF
2818 #define GC_IRIX_THREADS 1
2822 *-*-cygwin*)
2823 cat >> confdefs.h <<\EOF
2824 #define GC_WIN32_THREADS 1
2828 *-*-darwin*)
2829 cat >> confdefs.h <<\EOF
2830 #define GC_DARWIN_THREADS 1
2833 cat >> confdefs.h <<\EOF
2834 #define THREAD_LOCAL_ALLOC 1
2837 if test "${enable_parallel_mark}" = yes; then
2838 cat >> confdefs.h <<\EOF
2839 #define PARALLEL_MARK 1
2844 *-*-osf*)
2845 cat >> confdefs.h <<\EOF
2846 #define GC_OSF1_THREADS 1
2849 if test "${enable_parallel_mark}" = yes; then
2850 cat >> confdefs.h <<\EOF
2851 #define PARALLEL_MARK 1
2854 cat >> confdefs.h <<\EOF
2855 #define THREAD_LOCAL_ALLOC 1
2858 # May want to enable it in other cases, too.
2859 # Measurements havent yet been done.
2861 INCLUDES="$INCLUDES -pthread"
2862 THREADLIBS="-lpthread -lrt"
2864 esac
2866 win32)
2867 cat >> confdefs.h <<\EOF
2868 #define GC_WIN32_THREADS 1
2872 dgux386)
2873 THREADS=dgux386
2874 echo "$ac_t""$THREADLIBS" 1>&6
2875 # Use pthread GCC switch
2876 THREADLIBS=-pthread
2877 if test "${enable_parallel_mark}" = yes; then
2878 cat >> confdefs.h <<\EOF
2879 #define PARALLEL_MARK 1
2883 cat >> confdefs.h <<\EOF
2884 #define THREAD_LOCAL_ALLOC 1
2887 cat >> confdefs.h <<\EOF
2888 #define GC_DGUX386_THREADS 1
2891 cat >> confdefs.h <<\EOF
2892 #define DGUX_THREADS 1
2895 # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
2896 INCLUDES="-pthread $INCLUDES"
2898 aix)
2899 THREADS=posix
2900 THREADLIBS=-lpthread
2901 cat >> confdefs.h <<\EOF
2902 #define GC_AIX_THREADS 1
2905 cat >> confdefs.h <<\EOF
2906 #define _REENTRANT 1
2910 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
2911 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2914 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2916 esac
2919 case "$host" in
2920 powerpc-*-darwin*)
2921 powerpc_darwin=true
2923 esac
2926 if test x$powerpc_darwin = xtrue; then
2927 POWERPC_DARWIN_TRUE=
2928 POWERPC_DARWIN_FALSE='#'
2929 else
2930 POWERPC_DARWIN_TRUE='#'
2931 POWERPC_DARWIN_FALSE=
2934 # We never want libdl on darwin. It is a fake libdl that just ends up making
2935 # dyld calls anyway
2936 case "$host" in
2937 *-*-darwin*) ;;
2939 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2940 echo "configure:2941: checking for dlopen in -ldl" >&5
2941 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2942 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2943 echo $ac_n "(cached) $ac_c" 1>&6
2944 else
2945 ac_save_LIBS="$LIBS"
2946 LIBS="-ldl $LIBS"
2947 cat > conftest.$ac_ext <<EOF
2948 #line 2949 "configure"
2949 #include "confdefs.h"
2950 /* Override any gcc2 internal prototype to avoid an error. */
2951 /* We use char because int might match the return type of a gcc2
2952 builtin and then its argument prototype would still apply. */
2953 char dlopen();
2955 int main() {
2956 dlopen()
2957 ; return 0; }
2959 if { (eval echo configure:2960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2960 rm -rf conftest*
2961 eval "ac_cv_lib_$ac_lib_var=yes"
2962 else
2963 echo "configure: failed program was:" >&5
2964 cat conftest.$ac_ext >&5
2965 rm -rf conftest*
2966 eval "ac_cv_lib_$ac_lib_var=no"
2968 rm -f conftest*
2969 LIBS="$ac_save_LIBS"
2972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2973 echo "$ac_t""yes" 1>&6
2974 EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
2975 else
2976 echo "$ac_t""no" 1>&6
2980 esac
2984 target_all=libgcjgc.la
2988 TARGET_ECOS="no"
2989 # Check whether --with-ecos or --without-ecos was given.
2990 if test "${with_ecos+set}" = set; then
2991 withval="$with_ecos"
2992 TARGET_ECOS="$with_ecos"
2997 addobjs=
2998 addlibs=
2999 addincludes=
3000 addtests=
3001 CXXINCLUDES=
3002 case "$TARGET_ECOS" in
3006 cat >> confdefs.h <<\EOF
3007 #define ECOS 1
3010 CXXINCLUDES="-I${TARGET_ECOS}/include"
3011 addobjs="$addobjs ecos.lo"
3013 esac
3015 if test "${enable_cplusplus}" = yes; then
3016 addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
3017 addtests="$addtests test_cpp"
3022 if test "${enable_cplusplus}" = yes; then
3023 CPLUSPLUS_TRUE=
3024 CPLUSPLUS_FALSE='#'
3025 else
3026 CPLUSPLUS_TRUE='#'
3027 CPLUSPLUS_FALSE=
3035 # Configuration of shared libraries
3037 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
3038 echo "configure:3039: checking whether to build shared libraries" >&5
3039 # Check whether --enable-shared or --disable-shared was given.
3040 if test "${enable_shared+set}" = set; then
3041 enableval="$enable_shared"
3042 p=${PACKAGE-default}
3043 case $enableval in
3044 yes) enable_shared=yes ;;
3045 no) enable_shared=no ;;
3047 enable_shared=no
3048 # Look at the argument we got. We use all the common list separators.
3049 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3050 for pkg in $enableval; do
3051 if test "X$pkg" = "X$p"; then
3052 enable_shared=yes
3054 done
3055 IFS="$ac_save_ifs"
3057 esac
3058 else
3059 enable_shared=yes
3063 case "$host" in
3064 alpha-*-openbsd*)
3065 enable_shared=no
3066 echo "$ac_t""no" 1>&6
3069 echo "$ac_t""yes" 1>&6
3071 esac
3073 # Configuration of machine-dependent code
3075 echo $ac_n "checking which machine-dependent code should be used""... $ac_c" 1>&6
3076 echo "configure:3077: checking which machine-dependent code should be used" >&5
3077 machdep=
3078 case "$host" in
3079 alpha*-*-openbsd*)
3080 machdep="alpha_mach_dep.lo"
3081 if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
3082 echo "configure: warning: OpenBSD/Alpha without dlopen(). Shared library support is disabled" 1>&2
3085 alpha*-*-linux*)
3086 machdep="alpha_mach_dep.lo"
3088 i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
3089 cat >> confdefs.h <<\EOF
3090 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
3094 mipstx39-*-elf*)
3095 machdep="mips_ultrix_mach_dep.lo"
3096 cat >> confdefs.h <<\EOF
3097 #define STACKBASE __stackbase
3100 cat >> confdefs.h <<\EOF
3101 #define DATASTART_IS_ETEXT 1
3105 mips-dec-ultrix*)
3106 machdep="mips_ultrix_mach-dep.lo"
3108 mips-nec-sysv*|mips-unknown-sysv*)
3110 mips*-*-linux*)
3112 mips-*-*)
3113 machdep="mips_sgi_mach_dep.lo"
3114 cat >> confdefs.h <<\EOF
3115 #define NO_EXECUTE_PERMISSION 1
3119 sparc-*-netbsd*)
3120 machdep="sparc_netbsd_mach_dep.lo"
3122 sparc-sun-solaris2.3)
3123 machdep="sparc_mach_dep.lo"
3124 cat >> confdefs.h <<\EOF
3125 #define SUNOS53_SHARED_LIB 1
3129 sparc-sun-solaris2.*)
3130 machdep="sparc_mach_dep.lo"
3132 ia64-*-*)
3133 machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
3135 esac
3136 if test x"$machdep" = x; then
3137 echo "$ac_t""$machdep" 1>&6
3138 machdep="mach_dep.lo"
3140 addobjs="$addobjs $machdep"
3153 # Check for AViiON Machines running DGUX
3155 echo $ac_n "checking if host is AViiON running DGUX""... $ac_c" 1>&6
3156 echo "configure:3157: checking if host is AViiON running DGUX" >&5
3157 ac_is_dgux=no
3158 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3159 echo "configure:3160: checking how to run the C preprocessor" >&5
3160 # On Suns, sometimes $CPP names a directory.
3161 if test -n "$CPP" && test -d "$CPP"; then
3162 CPP=
3164 if test -z "$CPP"; then
3165 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3166 echo $ac_n "(cached) $ac_c" 1>&6
3167 else
3168 # This must be in double quotes, not single quotes, because CPP may get
3169 # substituted into the Makefile and "${CC-cc}" will confuse make.
3170 CPP="${CC-cc} -E"
3171 # On the NeXT, cc -E runs the code through the compiler's parser,
3172 # not just through cpp.
3173 cat > conftest.$ac_ext <<EOF
3174 #line 3175 "configure"
3175 #include "confdefs.h"
3176 #include <assert.h>
3177 Syntax Error
3179 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3180 { (eval echo configure:3181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3181 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3182 if test -z "$ac_err"; then
3184 else
3185 echo "$ac_err" >&5
3186 echo "configure: failed program was:" >&5
3187 cat conftest.$ac_ext >&5
3188 rm -rf conftest*
3189 CPP="${CC-cc} -E -traditional-cpp"
3190 cat > conftest.$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3193 #include <assert.h>
3194 Syntax Error
3196 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3197 { (eval echo configure:3198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3198 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3199 if test -z "$ac_err"; then
3201 else
3202 echo "$ac_err" >&5
3203 echo "configure: failed program was:" >&5
3204 cat conftest.$ac_ext >&5
3205 rm -rf conftest*
3206 CPP="${CC-cc} -nologo -E"
3207 cat > conftest.$ac_ext <<EOF
3208 #line 3209 "configure"
3209 #include "confdefs.h"
3210 #include <assert.h>
3211 Syntax Error
3213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3214 { (eval echo configure:3215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3216 if test -z "$ac_err"; then
3218 else
3219 echo "$ac_err" >&5
3220 echo "configure: failed program was:" >&5
3221 cat conftest.$ac_ext >&5
3222 rm -rf conftest*
3223 CPP=/lib/cpp
3225 rm -f conftest*
3227 rm -f conftest*
3229 rm -f conftest*
3230 ac_cv_prog_CPP="$CPP"
3232 CPP="$ac_cv_prog_CPP"
3233 else
3234 ac_cv_prog_CPP="$CPP"
3236 echo "$ac_t""$CPP" 1>&6
3238 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'`
3239 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6
3240 echo "configure:3241: checking for sys/dg_sys_info.h" >&5
3241 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3242 echo $ac_n "(cached) $ac_c" 1>&6
3243 else
3244 cat > conftest.$ac_ext <<EOF
3245 #line 3246 "configure"
3246 #include "confdefs.h"
3247 #include <sys/dg_sys_info.h>
3249 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3250 { (eval echo configure:3251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3251 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3252 if test -z "$ac_err"; then
3253 rm -rf conftest*
3254 eval "ac_cv_header_$ac_safe=yes"
3255 else
3256 echo "$ac_err" >&5
3257 echo "configure: failed program was:" >&5
3258 cat conftest.$ac_ext >&5
3259 rm -rf conftest*
3260 eval "ac_cv_header_$ac_safe=no"
3262 rm -f conftest*
3264 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3265 echo "$ac_t""yes" 1>&6
3266 ac_is_dgux=yes;
3267 else
3268 echo "$ac_t""no" 1>&6
3272 echo "$ac_t""$ac_is_dgux" 1>&6
3273 ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
3274 if test $ac_is_dgux = yes; then
3275 if test "$enable_full_debug" = "yes"; then
3276 CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
3277 CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
3278 else
3279 CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
3280 CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
3286 # Check whether --with-target-subdir or --without-target-subdir was given.
3287 if test "${with_target_subdir+set}" = set; then
3288 withval="$with_target_subdir"
3292 # Check whether --with-cross-host or --without-cross-host was given.
3293 if test "${with_cross_host+set}" = set; then
3294 withval="$with_cross_host"
3299 # automake wants to see AC_EXEEXT. But we don't need it. And having
3300 # it is actually a problem, because the compiler we're passed can't
3301 # necessarily do a full link. So we fool automake here.
3302 if false; then
3303 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
3304 # to nothing, so nothing would remain between `then' and `fi' if it
3305 # were not for the `:' below.
3309 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3310 echo "configure:3311: checking for executable suffix" >&5
3311 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3312 echo $ac_n "(cached) $ac_c" 1>&6
3313 else
3314 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
3315 ac_cv_exeext=.exe
3316 else
3317 rm -f conftest*
3318 echo 'int main () { return 0; }' > conftest.$ac_ext
3319 ac_cv_exeext=
3320 if { (eval echo configure:3321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3321 for file in conftest.*; do
3322 case $file in
3323 *.c | *.o | *.obj) ;;
3324 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3325 esac
3326 done
3327 else
3328 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3330 rm -f conftest*
3331 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3335 EXEEXT=""
3336 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3337 echo "$ac_t""${ac_cv_exeext}" 1>&6
3338 ac_exeext=$EXEEXT
3342 echo $ac_n "checking whether Solaris gcc optimization fix is necessary""... $ac_c" 1>&6
3343 echo "configure:3344: checking whether Solaris gcc optimization fix is necessary" >&5
3344 case "$host" in
3345 sparc-sun-solaris2*|*aix*)
3346 if test "$GCC" = yes; then
3347 echo "$ac_t""yes" 1>&6
3348 new_CFLAGS=
3349 for i in $CFLAGS; do
3350 case "$i" in
3351 -O*)
3354 new_CFLAGS="$new_CFLAGS $i"
3356 esac
3357 done
3358 CFLAGS="$new_CFLAGS"
3359 else
3360 echo "$ac_t""no" 1>&6
3363 *) echo "$ac_t""no" 1>&6 ;;
3364 esac
3366 MY_CFLAGS="$CFLAGS"
3369 cat >> confdefs.h <<\EOF
3370 #define SILENT 1
3373 cat >> confdefs.h <<\EOF
3374 #define NO_SIGNALS 1
3377 cat >> confdefs.h <<\EOF
3378 #define NO_EXECUTE_PERMISSION 1
3381 cat >> confdefs.h <<\EOF
3382 #define ALL_INTERIOR_POINTERS 1
3386 cat >> confdefs.h <<\EOF
3387 #define JAVA_FINALIZATION 1
3390 cat >> confdefs.h <<\EOF
3391 #define GC_GCJ_SUPPORT 1
3394 cat >> confdefs.h <<\EOF
3395 #define ATOMIC_UNCOLLECTABLE 1
3399 if test -n "${with_cross_host}"; then
3400 cat >> confdefs.h <<\EOF
3401 #define NO_SIGSET 1
3404 cat >> confdefs.h <<\EOF
3405 #define NO_DEBUGGING 1
3410 # Check whether --enable-full-debug or --disable-full-debug was given.
3411 if test "${enable_full_debug+set}" = set; then
3412 enableval="$enable_full_debug"
3413 if test "$enable_full_debug" = "yes"; then
3414 echo "configure: warning: "Must define GC_DEBUG and use debug alloc. in clients."" 1>&2
3415 cat >> confdefs.h <<\EOF
3416 #define KEEP_BACK_PTRS 1
3419 cat >> confdefs.h <<\EOF
3420 #define DBG_HDRS_ALL 1
3423 case $host in
3424 ia64-*-linux* )
3425 cat >> confdefs.h <<\EOF
3426 #define MAKE_BACK_GRAPH 1
3430 x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
3431 cat >> confdefs.h <<\EOF
3432 #define MAKE_BACK_GRAPH 1
3435 echo "configure: warning: "Client must not use -fomit-frame-pointer."" 1>&2
3436 cat >> confdefs.h <<\EOF
3437 #define SAVE_CALL_COUNT 8
3441 i345686-*-dgux*)
3442 cat >> confdefs.h <<\EOF
3443 #define MAKE_BACK_GRAPH 1
3447 esac
3452 if test -n "$with_cross_host" &&
3453 test x"$with_cross_host" != x"no"; then
3454 toolexecdir='$(exec_prefix)/$(target_alias)'
3455 toolexeclibdir='$(toolexecdir)/lib'
3456 else
3457 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3458 toolexeclibdir='$(libdir)'
3460 multi_os_directory=`$CC -print-multi-os-directory`
3461 case $multi_os_directory in
3462 .) ;; # Avoid trailing /.
3463 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3464 esac
3468 if test "${multilib}" = "yes"; then
3469 multilib_arg="--enable-multilib"
3470 else
3471 multilib_arg=
3474 trap '' 1 2 15
3475 cat > confcache <<\EOF
3476 # This file is a shell script that caches the results of configure
3477 # tests run on this system so they can be shared between configure
3478 # scripts and configure runs. It is not useful on other systems.
3479 # If it contains results you don't want to keep, you may remove or edit it.
3481 # By default, configure uses ./config.cache as the cache file,
3482 # creating it if it does not exist already. You can give configure
3483 # the --cache-file=FILE option to use a different cache file; that is
3484 # what configure does when it calls configure scripts in
3485 # subdirectories, so they share the cache.
3486 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3487 # config.status only pays attention to the cache file if you give it the
3488 # --recheck option to rerun configure.
3491 # The following way of writing the cache mishandles newlines in values,
3492 # but we know of no workaround that is simple, portable, and efficient.
3493 # So, don't put newlines in cache variables' values.
3494 # Ultrix sh set writes to stderr and can't be redirected directly,
3495 # and sets the high bit in the cache file unless we assign to the vars.
3496 (set) 2>&1 |
3497 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3498 *ac_space=\ *)
3499 # `set' does not quote correctly, so add quotes (double-quote substitution
3500 # turns \\\\ into \\, and sed turns \\ into \).
3501 sed -n \
3502 -e "s/'/'\\\\''/g" \
3503 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3506 # `set' quotes correctly as required by POSIX, so do not add quotes.
3507 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3509 esac >> confcache
3510 if cmp -s $cache_file confcache; then
3512 else
3513 if test -w $cache_file; then
3514 echo "updating cache $cache_file"
3515 cat confcache > $cache_file
3516 else
3517 echo "not updating unwritable cache $cache_file"
3520 rm -f confcache
3522 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3524 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3525 # Let make expand exec_prefix.
3526 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3528 # Any assignment to VPATH causes Sun make to only execute
3529 # the first set of double-colon rules, so remove it if not needed.
3530 # If there is a colon in the path, we need to keep it.
3531 if test "x$srcdir" = x.; then
3532 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3535 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3537 # Transform confdefs.h into DEFS.
3538 # Protect against shell expansion while executing Makefile rules.
3539 # Protect against Makefile macro expansion.
3540 cat > conftest.defs <<\EOF
3541 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3542 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
3543 s%\[%\\&%g
3544 s%\]%\\&%g
3545 s%\$%$$%g
3547 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
3548 rm -f conftest.defs
3551 # Without the "./", some shells look in PATH for config.status.
3552 : ${CONFIG_STATUS=./config.status}
3554 echo creating $CONFIG_STATUS
3555 rm -f $CONFIG_STATUS
3556 cat > $CONFIG_STATUS <<EOF
3557 #! /bin/sh
3558 # Generated automatically by configure.
3559 # Run this file to recreate the current configuration.
3560 # This directory was configured as follows,
3561 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3563 # $0 $ac_configure_args
3565 # Compiler output produced by configure, useful for debugging
3566 # configure, is in ./config.log if it exists.
3568 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3569 for ac_option
3571 case "\$ac_option" in
3572 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3573 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3574 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3575 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3576 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3577 exit 0 ;;
3578 -help | --help | --hel | --he | --h)
3579 echo "\$ac_cs_usage"; exit 0 ;;
3580 *) echo "\$ac_cs_usage"; exit 1 ;;
3581 esac
3582 done
3584 ac_given_srcdir=$srcdir
3585 ac_given_INSTALL="$INSTALL"
3587 trap 'rm -fr `echo "Makefile include/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3589 cat >> $CONFIG_STATUS <<EOF
3591 # Protect against being on the right side of a sed subst in config.status.
3592 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3593 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3594 $ac_vpsub
3595 $extrasub
3596 s%@SHELL@%$SHELL%g
3597 s%@CFLAGS@%$CFLAGS%g
3598 s%@CPPFLAGS@%$CPPFLAGS%g
3599 s%@CXXFLAGS@%$CXXFLAGS%g
3600 s%@FFLAGS@%$FFLAGS%g
3601 s%@DEFS@%$DEFS%g
3602 s%@LDFLAGS@%$LDFLAGS%g
3603 s%@LIBS@%$LIBS%g
3604 s%@exec_prefix@%$exec_prefix%g
3605 s%@prefix@%$prefix%g
3606 s%@program_transform_name@%$program_transform_name%g
3607 s%@bindir@%$bindir%g
3608 s%@sbindir@%$sbindir%g
3609 s%@libexecdir@%$libexecdir%g
3610 s%@datadir@%$datadir%g
3611 s%@sysconfdir@%$sysconfdir%g
3612 s%@sharedstatedir@%$sharedstatedir%g
3613 s%@localstatedir@%$localstatedir%g
3614 s%@libdir@%$libdir%g
3615 s%@includedir@%$includedir%g
3616 s%@oldincludedir@%$oldincludedir%g
3617 s%@infodir@%$infodir%g
3618 s%@mandir@%$mandir%g
3619 s%@gc_basedir@%$gc_basedir%g
3620 s%@host@%$host%g
3621 s%@host_alias@%$host_alias%g
3622 s%@host_cpu@%$host_cpu%g
3623 s%@host_vendor@%$host_vendor%g
3624 s%@host_os@%$host_os%g
3625 s%@target@%$target%g
3626 s%@target_alias@%$target_alias%g
3627 s%@target_cpu@%$target_cpu%g
3628 s%@target_vendor@%$target_vendor%g
3629 s%@target_os@%$target_os%g
3630 s%@build@%$build%g
3631 s%@build_alias@%$build_alias%g
3632 s%@build_cpu@%$build_cpu%g
3633 s%@build_vendor@%$build_vendor%g
3634 s%@build_os@%$build_os%g
3635 s%@mkinstalldirs@%$mkinstalldirs%g
3636 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3637 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3638 s%@INSTALL_DATA@%$INSTALL_DATA%g
3639 s%@PACKAGE@%$PACKAGE%g
3640 s%@VERSION@%$VERSION%g
3641 s%@ACLOCAL@%$ACLOCAL%g
3642 s%@AUTOCONF@%$AUTOCONF%g
3643 s%@AUTOMAKE@%$AUTOMAKE%g
3644 s%@AUTOHEADER@%$AUTOHEADER%g
3645 s%@MAKEINFO@%$MAKEINFO%g
3646 s%@SET_MAKE@%$SET_MAKE%g
3647 s%@CC@%$CC%g
3648 s%@CXX@%$CXX%g
3649 s%@AS@%$AS%g
3650 s%@AR@%$AR%g
3651 s%@RANLIB@%$RANLIB%g
3652 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3653 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3654 s%@MAINT@%$MAINT%g
3655 s%@EXEEXT@%$EXEEXT%g
3656 s%@GC_CFLAGS@%$GC_CFLAGS%g
3657 s%@LN_S@%$LN_S%g
3658 s%@OBJEXT@%$OBJEXT%g
3659 s%@STRIP@%$STRIP%g
3660 s%@LIBTOOL@%$LIBTOOL%g
3661 s%@CXXCPP@%$CXXCPP%g
3662 s%@THREADLIBS@%$THREADLIBS%g
3663 s%@POWERPC_DARWIN_TRUE@%$POWERPC_DARWIN_TRUE%g
3664 s%@POWERPC_DARWIN_FALSE@%$POWERPC_DARWIN_FALSE%g
3665 s%@EXTRA_TEST_LIBS@%$EXTRA_TEST_LIBS%g
3666 s%@target_all@%$target_all%g
3667 s%@CPLUSPLUS_TRUE@%$CPLUSPLUS_TRUE%g
3668 s%@CPLUSPLUS_FALSE@%$CPLUSPLUS_FALSE%g
3669 s%@INCLUDES@%$INCLUDES%g
3670 s%@CXXINCLUDES@%$CXXINCLUDES%g
3671 s%@addobjs@%$addobjs%g
3672 s%@addincludes@%$addincludes%g
3673 s%@addlibs@%$addlibs%g
3674 s%@addtests@%$addtests%g
3675 s%@CPP@%$CPP%g
3676 s%@MY_CFLAGS@%$MY_CFLAGS%g
3677 s%@toolexecdir@%$toolexecdir%g
3678 s%@toolexeclibdir@%$toolexeclibdir%g
3680 CEOF
3683 cat >> $CONFIG_STATUS <<\EOF
3685 # Split the substitutions into bite-sized pieces for seds with
3686 # small command number limits, like on Digital OSF/1 and HP-UX.
3687 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3688 ac_file=1 # Number of current file.
3689 ac_beg=1 # First line for current file.
3690 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3691 ac_more_lines=:
3692 ac_sed_cmds=""
3693 while $ac_more_lines; do
3694 if test $ac_beg -gt 1; then
3695 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3696 else
3697 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3699 if test ! -s conftest.s$ac_file; then
3700 ac_more_lines=false
3701 rm -f conftest.s$ac_file
3702 else
3703 if test -z "$ac_sed_cmds"; then
3704 ac_sed_cmds="sed -f conftest.s$ac_file"
3705 else
3706 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3708 ac_file=`expr $ac_file + 1`
3709 ac_beg=$ac_end
3710 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3712 done
3713 if test -z "$ac_sed_cmds"; then
3714 ac_sed_cmds=cat
3718 cat >> $CONFIG_STATUS <<EOF
3720 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/Makefile"}
3722 cat >> $CONFIG_STATUS <<\EOF
3723 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3724 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3725 case "$ac_file" in
3726 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3727 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3728 *) ac_file_in="${ac_file}.in" ;;
3729 esac
3731 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3733 # Remove last slash and all that follows it. Not all systems have dirname.
3734 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3735 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3736 # The file is in a subdirectory.
3737 test ! -d "$ac_dir" && mkdir "$ac_dir"
3738 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3739 # A "../" for each directory in $ac_dir_suffix.
3740 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3741 else
3742 ac_dir_suffix= ac_dots=
3745 case "$ac_given_srcdir" in
3746 .) srcdir=.
3747 if test -z "$ac_dots"; then top_srcdir=.
3748 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3749 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3750 *) # Relative path.
3751 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3752 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3753 esac
3755 case "$ac_given_INSTALL" in
3756 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3757 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3758 esac
3760 echo creating "$ac_file"
3761 rm -f "$ac_file"
3762 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3763 case "$ac_file" in
3764 *Makefile*) ac_comsub="1i\\
3765 # $configure_input" ;;
3766 *) ac_comsub= ;;
3767 esac
3769 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3770 sed -e "$ac_comsub
3771 s%@configure_input@%$configure_input%g
3772 s%@srcdir@%$srcdir%g
3773 s%@top_srcdir@%$top_srcdir%g
3774 s%@INSTALL@%$INSTALL%g
3775 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3776 fi; done
3777 rm -f conftest.s*
3780 cat >> $CONFIG_STATUS <<EOF
3781 srcdir=${srcdir}
3782 host=${host}
3783 target=${target}
3784 with_multisubdir=${with_multisubdir}
3785 ac_configure_args="${multilib_arg} ${ac_configure_args}"
3786 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3787 gc_basedir=${gc_basedir}
3788 CC="${CC}"
3789 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
3790 DEFS="$DEFS"
3791 INCLUDES="$INCLUDES"
3794 cat >> $CONFIG_STATUS <<\EOF
3796 echo "$INCLUDES $DEFS" > boehm-cflags
3798 if test -n "$CONFIG_FILES"; then
3799 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
3800 ac_file=Makefile . ${gc_basedir}/../config-ml.in
3802 exit 0
3804 chmod +x $CONFIG_STATUS
3805 rm -fr confdefs* $ac_clean_files
3806 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1