2001-11-21 Paolo Carlini <pcarlini@unitus.it>
[official-gcc.git] / boehm-gc / configure
blob6a82392666851cf07036279799843856df97ffb3
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=no]"
45 ac_help="$ac_help
46 --enable-full-debug include full support for pointer backtracing etc."
48 # Initialize some variables set by options.
49 # The variables have the same names as the options, with
50 # dashes changed to underlines.
51 build=NONE
52 cache_file=./config.cache
53 exec_prefix=NONE
54 host=NONE
55 no_create=
56 nonopt=NONE
57 no_recursion=
58 prefix=NONE
59 program_prefix=NONE
60 program_suffix=NONE
61 program_transform_name=s,x,x,
62 silent=
63 site=
64 srcdir=
65 target=NONE
66 verbose=
67 x_includes=NONE
68 x_libraries=NONE
69 bindir='${exec_prefix}/bin'
70 sbindir='${exec_prefix}/sbin'
71 libexecdir='${exec_prefix}/libexec'
72 datadir='${prefix}/share'
73 sysconfdir='${prefix}/etc'
74 sharedstatedir='${prefix}/com'
75 localstatedir='${prefix}/var'
76 libdir='${exec_prefix}/lib'
77 includedir='${prefix}/include'
78 oldincludedir='/usr/include'
79 infodir='${prefix}/info'
80 mandir='${prefix}/man'
82 # Initialize some other variables.
83 subdirs=
84 MFLAGS= MAKEFLAGS=
85 SHELL=${CONFIG_SHELL-/bin/sh}
86 # Maximum number of lines to put in a shell here document.
87 ac_max_here_lines=12
89 ac_prev=
90 for ac_option
93 # If the previous option needs an argument, assign it.
94 if test -n "$ac_prev"; then
95 eval "$ac_prev=\$ac_option"
96 ac_prev=
97 continue
100 case "$ac_option" in
101 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
102 *) ac_optarg= ;;
103 esac
105 # Accept the important Cygnus configure options, so we can diagnose typos.
107 case "$ac_option" in
109 -bindir | --bindir | --bindi | --bind | --bin | --bi)
110 ac_prev=bindir ;;
111 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
112 bindir="$ac_optarg" ;;
114 -build | --build | --buil | --bui | --bu)
115 ac_prev=build ;;
116 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
117 build="$ac_optarg" ;;
119 -cache-file | --cache-file | --cache-fil | --cache-fi \
120 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
121 ac_prev=cache_file ;;
122 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
123 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
124 cache_file="$ac_optarg" ;;
126 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
127 ac_prev=datadir ;;
128 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
129 | --da=*)
130 datadir="$ac_optarg" ;;
132 -disable-* | --disable-*)
133 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
134 # Reject names that are not valid shell variable names.
135 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
136 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
138 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
139 eval "enable_${ac_feature}=no" ;;
141 -enable-* | --enable-*)
142 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
143 # Reject names that are not valid shell variable names.
144 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
145 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
147 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
148 case "$ac_option" in
149 *=*) ;;
150 *) ac_optarg=yes ;;
151 esac
152 eval "enable_${ac_feature}='$ac_optarg'" ;;
154 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
155 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
156 | --exec | --exe | --ex)
157 ac_prev=exec_prefix ;;
158 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
159 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
160 | --exec=* | --exe=* | --ex=*)
161 exec_prefix="$ac_optarg" ;;
163 -gas | --gas | --ga | --g)
164 # Obsolete; use --with-gas.
165 with_gas=yes ;;
167 -help | --help | --hel | --he)
168 # Omit some internal or obsolete options to make the list less imposing.
169 # This message is too long to be a string in the A/UX 3.1 sh.
170 cat << EOF
171 Usage: configure [options] [host]
172 Options: [defaults in brackets after descriptions]
173 Configuration:
174 --cache-file=FILE cache test results in FILE
175 --help print this message
176 --no-create do not create output files
177 --quiet, --silent do not print \`checking...' messages
178 --version print the version of autoconf that created configure
179 Directory and file names:
180 --prefix=PREFIX install architecture-independent files in PREFIX
181 [$ac_default_prefix]
182 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
183 [same as prefix]
184 --bindir=DIR user executables in DIR [EPREFIX/bin]
185 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
186 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
187 --datadir=DIR read-only architecture-independent data in DIR
188 [PREFIX/share]
189 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
190 --sharedstatedir=DIR modifiable architecture-independent data in DIR
191 [PREFIX/com]
192 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
193 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
194 --includedir=DIR C header files in DIR [PREFIX/include]
195 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
196 --infodir=DIR info documentation in DIR [PREFIX/info]
197 --mandir=DIR man documentation in DIR [PREFIX/man]
198 --srcdir=DIR find the sources in DIR [configure dir or ..]
199 --program-prefix=PREFIX prepend PREFIX to installed program names
200 --program-suffix=SUFFIX append SUFFIX to installed program names
201 --program-transform-name=PROGRAM
202 run sed PROGRAM on installed program names
204 cat << EOF
205 Host type:
206 --build=BUILD configure for building on BUILD [BUILD=HOST]
207 --host=HOST configure for HOST [guessed]
208 --target=TARGET configure for TARGET [TARGET=HOST]
209 Features and packages:
210 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
211 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
212 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
213 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
214 --x-includes=DIR X include files are in DIR
215 --x-libraries=DIR X library files are in DIR
217 if test -n "$ac_help"; then
218 echo "--enable and --with options recognized:$ac_help"
220 exit 0 ;;
222 -host | --host | --hos | --ho)
223 ac_prev=host ;;
224 -host=* | --host=* | --hos=* | --ho=*)
225 host="$ac_optarg" ;;
227 -includedir | --includedir | --includedi | --included | --include \
228 | --includ | --inclu | --incl | --inc)
229 ac_prev=includedir ;;
230 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
231 | --includ=* | --inclu=* | --incl=* | --inc=*)
232 includedir="$ac_optarg" ;;
234 -infodir | --infodir | --infodi | --infod | --info | --inf)
235 ac_prev=infodir ;;
236 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
237 infodir="$ac_optarg" ;;
239 -libdir | --libdir | --libdi | --libd)
240 ac_prev=libdir ;;
241 -libdir=* | --libdir=* | --libdi=* | --libd=*)
242 libdir="$ac_optarg" ;;
244 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
245 | --libexe | --libex | --libe)
246 ac_prev=libexecdir ;;
247 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
248 | --libexe=* | --libex=* | --libe=*)
249 libexecdir="$ac_optarg" ;;
251 -localstatedir | --localstatedir | --localstatedi | --localstated \
252 | --localstate | --localstat | --localsta | --localst \
253 | --locals | --local | --loca | --loc | --lo)
254 ac_prev=localstatedir ;;
255 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
256 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
257 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
258 localstatedir="$ac_optarg" ;;
260 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
261 ac_prev=mandir ;;
262 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
263 mandir="$ac_optarg" ;;
265 -nfp | --nfp | --nf)
266 # Obsolete; use --without-fp.
267 with_fp=no ;;
269 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
270 | --no-cr | --no-c)
271 no_create=yes ;;
273 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
274 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
275 no_recursion=yes ;;
277 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
278 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
279 | --oldin | --oldi | --old | --ol | --o)
280 ac_prev=oldincludedir ;;
281 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
282 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
283 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
284 oldincludedir="$ac_optarg" ;;
286 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
287 ac_prev=prefix ;;
288 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
289 prefix="$ac_optarg" ;;
291 -program-prefix | --program-prefix | --program-prefi | --program-pref \
292 | --program-pre | --program-pr | --program-p)
293 ac_prev=program_prefix ;;
294 -program-prefix=* | --program-prefix=* | --program-prefi=* \
295 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
296 program_prefix="$ac_optarg" ;;
298 -program-suffix | --program-suffix | --program-suffi | --program-suff \
299 | --program-suf | --program-su | --program-s)
300 ac_prev=program_suffix ;;
301 -program-suffix=* | --program-suffix=* | --program-suffi=* \
302 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
303 program_suffix="$ac_optarg" ;;
305 -program-transform-name | --program-transform-name \
306 | --program-transform-nam | --program-transform-na \
307 | --program-transform-n | --program-transform- \
308 | --program-transform | --program-transfor \
309 | --program-transfo | --program-transf \
310 | --program-trans | --program-tran \
311 | --progr-tra | --program-tr | --program-t)
312 ac_prev=program_transform_name ;;
313 -program-transform-name=* | --program-transform-name=* \
314 | --program-transform-nam=* | --program-transform-na=* \
315 | --program-transform-n=* | --program-transform-=* \
316 | --program-transform=* | --program-transfor=* \
317 | --program-transfo=* | --program-transf=* \
318 | --program-trans=* | --program-tran=* \
319 | --progr-tra=* | --program-tr=* | --program-t=*)
320 program_transform_name="$ac_optarg" ;;
322 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
323 | -silent | --silent | --silen | --sile | --sil)
324 silent=yes ;;
326 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
327 ac_prev=sbindir ;;
328 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
329 | --sbi=* | --sb=*)
330 sbindir="$ac_optarg" ;;
332 -sharedstatedir | --sharedstatedir | --sharedstatedi \
333 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
334 | --sharedst | --shareds | --shared | --share | --shar \
335 | --sha | --sh)
336 ac_prev=sharedstatedir ;;
337 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
338 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
339 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
340 | --sha=* | --sh=*)
341 sharedstatedir="$ac_optarg" ;;
343 -site | --site | --sit)
344 ac_prev=site ;;
345 -site=* | --site=* | --sit=*)
346 site="$ac_optarg" ;;
348 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
349 ac_prev=srcdir ;;
350 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
351 srcdir="$ac_optarg" ;;
353 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
354 | --syscon | --sysco | --sysc | --sys | --sy)
355 ac_prev=sysconfdir ;;
356 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
357 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
358 sysconfdir="$ac_optarg" ;;
360 -target | --target | --targe | --targ | --tar | --ta | --t)
361 ac_prev=target ;;
362 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
363 target="$ac_optarg" ;;
365 -v | -verbose | --verbose | --verbos | --verbo | --verb)
366 verbose=yes ;;
368 -version | --version | --versio | --versi | --vers)
369 echo "configure generated by autoconf version 2.13"
370 exit 0 ;;
372 -with-* | --with-*)
373 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
374 # Reject names that are not valid shell variable names.
375 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
376 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
378 ac_package=`echo $ac_package| sed 's/-/_/g'`
379 case "$ac_option" in
380 *=*) ;;
381 *) ac_optarg=yes ;;
382 esac
383 eval "with_${ac_package}='$ac_optarg'" ;;
385 -without-* | --without-*)
386 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
387 # Reject names that are not valid shell variable names.
388 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
389 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
391 ac_package=`echo $ac_package| sed 's/-/_/g'`
392 eval "with_${ac_package}=no" ;;
394 --x)
395 # Obsolete; use --with-x.
396 with_x=yes ;;
398 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
399 | --x-incl | --x-inc | --x-in | --x-i)
400 ac_prev=x_includes ;;
401 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
402 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
403 x_includes="$ac_optarg" ;;
405 -x-libraries | --x-libraries | --x-librarie | --x-librari \
406 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
407 ac_prev=x_libraries ;;
408 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
409 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
410 x_libraries="$ac_optarg" ;;
412 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
416 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
417 echo "configure: warning: $ac_option: invalid host type" 1>&2
419 if test "x$nonopt" != xNONE; then
420 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
422 nonopt="$ac_option"
425 esac
426 done
428 if test -n "$ac_prev"; then
429 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
432 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
434 # File descriptor usage:
435 # 0 standard input
436 # 1 file creation
437 # 2 errors and warnings
438 # 3 some systems may open it to /dev/tty
439 # 4 used on the Kubota Titan
440 # 6 checking for... messages and results
441 # 5 compiler messages saved in config.log
442 if test "$silent" = yes; then
443 exec 6>/dev/null
444 else
445 exec 6>&1
447 exec 5>./config.log
449 echo "\
450 This file contains any messages produced by compilers while
451 running configure, to aid debugging if configure makes a mistake.
452 " 1>&5
454 # Strip out --no-create and --no-recursion so they do not pile up.
455 # Also quote any args containing shell metacharacters.
456 ac_configure_args=
457 for ac_arg
459 case "$ac_arg" in
460 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
461 | --no-cr | --no-c) ;;
462 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
463 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
464 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
465 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
466 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
467 esac
468 done
470 # NLS nuisances.
471 # Only set these to C if already set. These must not be set unconditionally
472 # because not all systems understand e.g. LANG=C (notably SCO).
473 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
474 # Non-C LC_CTYPE values break the ctype check.
475 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
476 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
477 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
478 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
480 # confdefs.h avoids OS command line length limits that DEFS can exceed.
481 rm -rf conftest* confdefs.h
482 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
483 echo > confdefs.h
485 # A filename unique to this package, relative to the directory that
486 # configure is in, which we can look for to find out if srcdir is correct.
487 ac_unique_file=gcj_mlc.c
489 # Find the source files, if location was not specified.
490 if test -z "$srcdir"; then
491 ac_srcdir_defaulted=yes
492 # Try the directory containing this script, then its parent.
493 ac_prog=$0
494 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
495 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
496 srcdir=$ac_confdir
497 if test ! -r $srcdir/$ac_unique_file; then
498 srcdir=..
500 else
501 ac_srcdir_defaulted=no
503 if test ! -r $srcdir/$ac_unique_file; then
504 if test "$ac_srcdir_defaulted" = yes; then
505 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
506 else
507 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
510 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
512 # Prefer explicitly selected file to automatically selected ones.
513 if test -z "$CONFIG_SITE"; then
514 if test "x$prefix" != xNONE; then
515 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
516 else
517 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
520 for ac_site_file in $CONFIG_SITE; do
521 if test -r "$ac_site_file"; then
522 echo "loading site script $ac_site_file"
523 . "$ac_site_file"
525 done
527 if test -r "$cache_file"; then
528 echo "loading cache $cache_file"
529 . $cache_file
530 else
531 echo "creating cache $cache_file"
532 > $cache_file
535 ac_ext=c
536 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
537 ac_cpp='$CPP $CPPFLAGS'
538 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
539 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
540 cross_compiling=$ac_cv_prog_cc_cross
542 ac_exeext=
543 ac_objext=o
544 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
545 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
546 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
547 ac_n= ac_c='
548 ' ac_t=' '
549 else
550 ac_n=-n ac_c= ac_t=
552 else
553 ac_n= ac_c='\c' ac_t=
558 ac_aux_dir=
559 for ac_dir in . $srcdir/.; do
560 if test -f $ac_dir/install-sh; then
561 ac_aux_dir=$ac_dir
562 ac_install_sh="$ac_aux_dir/install-sh -c"
563 break
564 elif test -f $ac_dir/install.sh; then
565 ac_aux_dir=$ac_dir
566 ac_install_sh="$ac_aux_dir/install.sh -c"
567 break
569 done
570 if test -z "$ac_aux_dir"; then
571 { echo "configure: error: can not find install-sh or install.sh in . $srcdir/." 1>&2; exit 1; }
573 ac_config_guess=$ac_aux_dir/config.guess
574 ac_config_sub=$ac_aux_dir/config.sub
575 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
578 # Find a good install program. We prefer a C program (faster),
579 # so one script is as good as another. But avoid the broken or
580 # incompatible versions:
581 # SysV /etc/install, /usr/sbin/install
582 # SunOS /usr/etc/install
583 # IRIX /sbin/install
584 # AIX /bin/install
585 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
586 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
587 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
588 # ./install, which can be erroneously created by make from ./install.sh.
589 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
590 echo "configure:591: checking for a BSD compatible install" >&5
591 if test -z "$INSTALL"; then
592 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
593 echo $ac_n "(cached) $ac_c" 1>&6
594 else
595 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
596 for ac_dir in $PATH; do
597 # Account for people who put trailing slashes in PATH elements.
598 case "$ac_dir/" in
599 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
601 # OSF1 and SCO ODT 3.0 have their own names for install.
602 # Don't use installbsd from OSF since it installs stuff as root
603 # by default.
604 for ac_prog in ginstall scoinst install; do
605 if test -f $ac_dir/$ac_prog; then
606 if test $ac_prog = install &&
607 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
608 # AIX install. It has an incompatible calling convention.
610 else
611 ac_cv_path_install="$ac_dir/$ac_prog -c"
612 break 2
615 done
617 esac
618 done
619 IFS="$ac_save_IFS"
622 if test "${ac_cv_path_install+set}" = set; then
623 INSTALL="$ac_cv_path_install"
624 else
625 # As a last resort, use the slow shell script. We don't cache a
626 # path for INSTALL within a source directory, because that will
627 # break other packages using the cache if that directory is
628 # removed, or if the path is relative.
629 INSTALL="$ac_install_sh"
632 echo "$ac_t""$INSTALL" 1>&6
634 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
635 # It thinks the first close brace ends the variable substitution.
636 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
638 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
640 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
642 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
643 echo "configure:644: checking whether build environment is sane" >&5
644 # Just in case
645 sleep 1
646 echo timestamp > conftestfile
647 # Do `set' in a subshell so we don't clobber the current shell's
648 # arguments. Must try -L first in case configure is actually a
649 # symlink; some systems play weird games with the mod time of symlinks
650 # (eg FreeBSD returns the mod time of the symlink's containing
651 # directory).
652 if (
653 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
654 if test "$*" = "X"; then
655 # -L didn't work.
656 set X `ls -t $srcdir/configure conftestfile`
658 if test "$*" != "X $srcdir/configure conftestfile" \
659 && test "$*" != "X conftestfile $srcdir/configure"; then
661 # If neither matched, then we have a broken ls. This can happen
662 # if, for instance, CONFIG_SHELL is bash and it inherits a
663 # broken ls alias from the environment. This has actually
664 # happened. Such a system could not be considered "sane".
665 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
666 alias in your environment" 1>&2; exit 1; }
669 test "$2" = conftestfile
671 then
672 # Ok.
674 else
675 { echo "configure: error: newly created file is older than distributed files!
676 Check your system clock" 1>&2; exit 1; }
678 rm -f conftest*
679 echo "$ac_t""yes" 1>&6
680 if test "$program_transform_name" = s,x,x,; then
681 program_transform_name=
682 else
683 # Double any \ or $. echo might interpret backslashes.
684 cat <<\EOF_SED > conftestsed
685 s,\\,\\\\,g; s,\$,$$,g
686 EOF_SED
687 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
688 rm -f conftestsed
690 test "$program_prefix" != NONE &&
691 program_transform_name="s,^,${program_prefix},; $program_transform_name"
692 # Use a double $ so make ignores it.
693 test "$program_suffix" != NONE &&
694 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
696 # sed with no file args requires a program.
697 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
699 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
700 echo "configure:701: checking whether ${MAKE-make} sets \${MAKE}" >&5
701 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
702 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
703 echo $ac_n "(cached) $ac_c" 1>&6
704 else
705 cat > conftestmake <<\EOF
706 all:
707 @echo 'ac_maketemp="${MAKE}"'
709 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
710 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
711 if test -n "$ac_maketemp"; then
712 eval ac_cv_prog_make_${ac_make}_set=yes
713 else
714 eval ac_cv_prog_make_${ac_make}_set=no
716 rm -f conftestmake
718 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
719 echo "$ac_t""yes" 1>&6
720 SET_MAKE=
721 else
722 echo "$ac_t""no" 1>&6
723 SET_MAKE="MAKE=${MAKE-make}"
726 if test $host != $build; then
727 ac_tool_prefix=${host_alias}-
728 else
729 ac_tool_prefix=
732 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
733 echo "configure:734: checking for Cygwin environment" >&5
734 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
735 echo $ac_n "(cached) $ac_c" 1>&6
736 else
737 cat > conftest.$ac_ext <<EOF
738 #line 739 "configure"
739 #include "confdefs.h"
741 int main() {
743 #ifndef __CYGWIN__
744 #define __CYGWIN__ __CYGWIN32__
745 #endif
746 return __CYGWIN__;
747 ; return 0; }
749 if { (eval echo configure:750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
750 rm -rf conftest*
751 ac_cv_cygwin=yes
752 else
753 echo "configure: failed program was:" >&5
754 cat conftest.$ac_ext >&5
755 rm -rf conftest*
756 ac_cv_cygwin=no
758 rm -f conftest*
759 rm -f conftest*
762 echo "$ac_t""$ac_cv_cygwin" 1>&6
763 CYGWIN=
764 test "$ac_cv_cygwin" = yes && CYGWIN=yes
765 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
766 echo "configure:767: checking for mingw32 environment" >&5
767 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
768 echo $ac_n "(cached) $ac_c" 1>&6
769 else
770 cat > conftest.$ac_ext <<EOF
771 #line 772 "configure"
772 #include "confdefs.h"
774 int main() {
775 return __MINGW32__;
776 ; return 0; }
778 if { (eval echo configure:779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
779 rm -rf conftest*
780 ac_cv_mingw32=yes
781 else
782 echo "configure: failed program was:" >&5
783 cat conftest.$ac_ext >&5
784 rm -rf conftest*
785 ac_cv_mingw32=no
787 rm -f conftest*
788 rm -f conftest*
791 echo "$ac_t""$ac_cv_mingw32" 1>&6
792 MINGW32=
793 test "$ac_cv_mingw32" = yes && MINGW32=yes
795 # Check whether --enable-multilib or --disable-multilib was given.
796 if test "${enable_multilib+set}" = set; then
797 enableval="$enable_multilib"
798 case "${enableval}" in
799 yes) multilib=yes ;;
800 no) multilib=no ;;
801 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
802 esac
803 else
804 multilib=yes
808 if test "${srcdir}" = "."; then
809 if test "${with_target_subdir}" != "." -a -n "${with_target_subdir}"; then
810 gc_basedir="${srcdir}/${with_multisrctop}../."
811 else
812 gc_basedir="${srcdir}/${with_multisrctop}."
814 else
815 gc_basedir="${srcdir}/."
818 ac_aux_dir=
819 for ac_dir in $gc_basedir/.. $srcdir/$gc_basedir/..; do
820 if test -f $ac_dir/install-sh; then
821 ac_aux_dir=$ac_dir
822 ac_install_sh="$ac_aux_dir/install-sh -c"
823 break
824 elif test -f $ac_dir/install.sh; then
825 ac_aux_dir=$ac_dir
826 ac_install_sh="$ac_aux_dir/install.sh -c"
827 break
829 done
830 if test -z "$ac_aux_dir"; then
831 { echo "configure: error: can not find install-sh or install.sh in $gc_basedir/.. $srcdir/$gc_basedir/.." 1>&2; exit 1; }
833 ac_config_guess=$ac_aux_dir/config.guess
834 ac_config_sub=$ac_aux_dir/config.sub
835 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
837 if :; then :; else
838 # This overrides the previous occurrence for automake, but not for
839 # autoconf, which is exactly what we want.
840 ac_aux_dir=
841 for ac_dir in .. $srcdir/..; do
842 if test -f $ac_dir/install-sh; then
843 ac_aux_dir=$ac_dir
844 ac_install_sh="$ac_aux_dir/install-sh -c"
845 break
846 elif test -f $ac_dir/install.sh; then
847 ac_aux_dir=$ac_dir
848 ac_install_sh="$ac_aux_dir/install.sh -c"
849 break
851 done
852 if test -z "$ac_aux_dir"; then
853 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
855 ac_config_guess=$ac_aux_dir/config.guess
856 ac_config_sub=$ac_aux_dir/config.sub
857 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
862 # Do some error checking and defaulting for the host and target type.
863 # The inputs are:
864 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
866 # The rules are:
867 # 1. You are not allowed to specify --host, --target, and nonopt at the
868 # same time.
869 # 2. Host defaults to nonopt.
870 # 3. If nonopt is not specified, then host defaults to the current host,
871 # as determined by config.guess.
872 # 4. Target and build default to nonopt.
873 # 5. If nonopt is not specified, then target and build default to host.
875 # The aliases save the names the user supplied, while $host etc.
876 # will get canonicalized.
877 case $host---$target---$nonopt in
878 NONE---*---* | *---NONE---* | *---*---NONE) ;;
879 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
880 esac
883 # Make sure we can run config.sub.
884 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
885 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
888 echo $ac_n "checking host system type""... $ac_c" 1>&6
889 echo "configure:890: checking host system type" >&5
891 host_alias=$host
892 case "$host_alias" in
893 NONE)
894 case $nonopt in
895 NONE)
896 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
897 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
898 fi ;;
899 *) host_alias=$nonopt ;;
900 esac ;;
901 esac
903 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
904 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
905 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
906 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
907 echo "$ac_t""$host" 1>&6
909 echo $ac_n "checking target system type""... $ac_c" 1>&6
910 echo "configure:911: checking target system type" >&5
912 target_alias=$target
913 case "$target_alias" in
914 NONE)
915 case $nonopt in
916 NONE) target_alias=$host_alias ;;
917 *) target_alias=$nonopt ;;
918 esac ;;
919 esac
921 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
922 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
923 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
924 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
925 echo "$ac_t""$target" 1>&6
927 echo $ac_n "checking build system type""... $ac_c" 1>&6
928 echo "configure:929: checking build system type" >&5
930 build_alias=$build
931 case "$build_alias" in
932 NONE)
933 case $nonopt in
934 NONE) build_alias=$host_alias ;;
935 *) build_alias=$nonopt ;;
936 esac ;;
937 esac
939 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
940 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
941 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
942 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
943 echo "$ac_t""$build" 1>&6
945 test "$host_alias" != "$target_alias" &&
946 test "$program_prefix$program_suffix$program_transform_name" = \
947 NONENONEs,x,x, &&
948 program_prefix=${target_alias}-
951 # This works around an automake problem.
952 mkinstalldirs="`cd $ac_aux_dir && pwd`/mkinstalldirs"
956 PACKAGE=gc
958 VERSION=6.0
960 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
961 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
966 missing_dir=`cd $ac_aux_dir && pwd`
967 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
968 echo "configure:969: checking for working aclocal" >&5
969 # Run test in a subshell; some versions of sh will print an error if
970 # an executable is not found, even if stderr is redirected.
971 # Redirect stdin to placate older versions of autoconf. Sigh.
972 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
973 ACLOCAL=aclocal
974 echo "$ac_t""found" 1>&6
975 else
976 ACLOCAL="$missing_dir/missing aclocal"
977 echo "$ac_t""missing" 1>&6
980 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
981 echo "configure:982: checking for working autoconf" >&5
982 # Run test in a subshell; some versions of sh will print an error if
983 # an executable is not found, even if stderr is redirected.
984 # Redirect stdin to placate older versions of autoconf. Sigh.
985 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
986 AUTOCONF=autoconf
987 echo "$ac_t""found" 1>&6
988 else
989 AUTOCONF="$missing_dir/missing autoconf"
990 echo "$ac_t""missing" 1>&6
993 echo $ac_n "checking for working automake""... $ac_c" 1>&6
994 echo "configure:995: checking for working automake" >&5
995 # Run test in a subshell; some versions of sh will print an error if
996 # an executable is not found, even if stderr is redirected.
997 # Redirect stdin to placate older versions of autoconf. Sigh.
998 if (automake --version) < /dev/null > /dev/null 2>&1; then
999 AUTOMAKE=automake
1000 echo "$ac_t""found" 1>&6
1001 else
1002 AUTOMAKE="$missing_dir/missing automake"
1003 echo "$ac_t""missing" 1>&6
1006 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1007 echo "configure:1008: checking for working autoheader" >&5
1008 # Run test in a subshell; some versions of sh will print an error if
1009 # an executable is not found, even if stderr is redirected.
1010 # Redirect stdin to placate older versions of autoconf. Sigh.
1011 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1012 AUTOHEADER=autoheader
1013 echo "$ac_t""found" 1>&6
1014 else
1015 AUTOHEADER="$missing_dir/missing autoheader"
1016 echo "$ac_t""missing" 1>&6
1019 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1020 echo "configure:1021: checking for working makeinfo" >&5
1021 # Run test in a subshell; some versions of sh will print an error if
1022 # an executable is not found, even if stderr is redirected.
1023 # Redirect stdin to placate older versions of autoconf. Sigh.
1024 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1025 MAKEINFO=makeinfo
1026 echo "$ac_t""found" 1>&6
1027 else
1028 MAKEINFO="$missing_dir/missing makeinfo"
1029 echo "$ac_t""missing" 1>&6
1034 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1035 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1036 # are probably using a cross compiler, which will not be able to fully
1037 # link an executable. This should really be fixed in autoconf
1038 # itself.
1043 # Extract the first word of "gcc", so it can be a program name with args.
1044 set dummy gcc; ac_word=$2
1045 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1046 echo "configure:1047: checking for $ac_word" >&5
1047 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1048 echo $ac_n "(cached) $ac_c" 1>&6
1049 else
1050 if test -n "$CC"; then
1051 ac_cv_prog_CC="$CC" # Let the user override the test.
1052 else
1053 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1054 ac_dummy="$PATH"
1055 for ac_dir in $ac_dummy; do
1056 test -z "$ac_dir" && ac_dir=.
1057 if test -f $ac_dir/$ac_word; then
1058 ac_cv_prog_CC="gcc"
1059 break
1061 done
1062 IFS="$ac_save_ifs"
1065 CC="$ac_cv_prog_CC"
1066 if test -n "$CC"; then
1067 echo "$ac_t""$CC" 1>&6
1068 else
1069 echo "$ac_t""no" 1>&6
1072 if test -z "$CC"; then
1073 # Extract the first word of "cc", so it can be a program name with args.
1074 set dummy cc; ac_word=$2
1075 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1076 echo "configure:1077: checking for $ac_word" >&5
1077 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1078 echo $ac_n "(cached) $ac_c" 1>&6
1079 else
1080 if test -n "$CC"; then
1081 ac_cv_prog_CC="$CC" # Let the user override the test.
1082 else
1083 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1084 ac_prog_rejected=no
1085 ac_dummy="$PATH"
1086 for ac_dir in $ac_dummy; do
1087 test -z "$ac_dir" && ac_dir=.
1088 if test -f $ac_dir/$ac_word; then
1089 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1090 ac_prog_rejected=yes
1091 continue
1093 ac_cv_prog_CC="cc"
1094 break
1096 done
1097 IFS="$ac_save_ifs"
1098 if test $ac_prog_rejected = yes; then
1099 # We found a bogon in the path, so make sure we never use it.
1100 set dummy $ac_cv_prog_CC
1101 shift
1102 if test $# -gt 0; then
1103 # We chose a different compiler from the bogus one.
1104 # However, it has the same basename, so the bogon will be chosen
1105 # first if we set CC to just the basename; use the full file name.
1106 shift
1107 set dummy "$ac_dir/$ac_word" "$@"
1108 shift
1109 ac_cv_prog_CC="$@"
1114 CC="$ac_cv_prog_CC"
1115 if test -n "$CC"; then
1116 echo "$ac_t""$CC" 1>&6
1117 else
1118 echo "$ac_t""no" 1>&6
1121 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1124 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1125 echo "configure:1126: checking whether we are using GNU C" >&5
1126 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1127 echo $ac_n "(cached) $ac_c" 1>&6
1128 else
1129 cat > conftest.c <<EOF
1130 #ifdef __GNUC__
1131 yes;
1132 #endif
1134 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1135 ac_cv_prog_gcc=yes
1136 else
1137 ac_cv_prog_gcc=no
1141 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1143 if test $ac_cv_prog_gcc = yes; then
1144 GCC=yes
1145 ac_test_CFLAGS="${CFLAGS+set}"
1146 ac_save_CFLAGS="$CFLAGS"
1147 CFLAGS=
1148 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1149 echo "configure:1150: checking whether ${CC-cc} accepts -g" >&5
1150 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1152 else
1153 echo 'void f(){}' > conftest.c
1154 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1155 ac_cv_prog_cc_g=yes
1156 else
1157 ac_cv_prog_cc_g=no
1159 rm -f conftest*
1163 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1164 if test "$ac_test_CFLAGS" = set; then
1165 CFLAGS="$ac_save_CFLAGS"
1166 elif test $ac_cv_prog_cc_g = yes; then
1167 CFLAGS="-g -O2"
1168 else
1169 CFLAGS="-O2"
1171 else
1172 GCC=
1173 test "${CFLAGS+set}" = set || CFLAGS="-g"
1177 # Likewise for AC_PROG_CXX.
1181 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1183 # Extract the first word of "$ac_prog", so it can be a program name with args.
1184 set dummy $ac_prog; ac_word=$2
1185 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1186 echo "configure:1187: checking for $ac_word" >&5
1187 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1188 echo $ac_n "(cached) $ac_c" 1>&6
1189 else
1190 if test -n "$CXX"; then
1191 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1192 else
1193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1194 ac_dummy="$PATH"
1195 for ac_dir in $ac_dummy; do
1196 test -z "$ac_dir" && ac_dir=.
1197 if test -f $ac_dir/$ac_word; then
1198 ac_cv_prog_CXX="$ac_prog"
1199 break
1201 done
1202 IFS="$ac_save_ifs"
1205 CXX="$ac_cv_prog_CXX"
1206 if test -n "$CXX"; then
1207 echo "$ac_t""$CXX" 1>&6
1208 else
1209 echo "$ac_t""no" 1>&6
1212 test -n "$CXX" && break
1213 done
1214 test -n "$CXX" || CXX="gcc"
1216 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1218 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1219 echo "configure:1220: checking whether we are using GNU C++" >&5
1220 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1222 else
1223 cat > conftest.C <<EOF
1224 #ifdef __GNUC__
1225 yes;
1226 #endif
1228 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1229 ac_cv_prog_gxx=yes
1230 else
1231 ac_cv_prog_gxx=no
1235 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1237 if test $ac_cv_prog_gxx = yes; then
1238 GXX=yes
1239 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1240 ac_save_CXXFLAGS="$CXXFLAGS"
1241 CXXFLAGS=
1242 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1243 echo "configure:1244: checking whether ${CXX-g++} accepts -g" >&5
1244 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1245 echo $ac_n "(cached) $ac_c" 1>&6
1246 else
1247 echo 'void f(){}' > conftest.cc
1248 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1249 ac_cv_prog_cxx_g=yes
1250 else
1251 ac_cv_prog_cxx_g=no
1253 rm -f conftest*
1257 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1258 if test "$ac_test_CXXFLAGS" = set; then
1259 CXXFLAGS="$ac_save_CXXFLAGS"
1260 elif test $ac_cv_prog_cxx_g = yes; then
1261 CXXFLAGS="-g -O2"
1262 else
1263 CXXFLAGS="-O2"
1265 else
1266 GXX=
1267 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1271 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1272 # run it explicitly here, it will be run implicitly before
1273 # NEWLIB_CONFIGURE, which doesn't work because that means that it will
1274 # be run before AC_CANONICAL_HOST.
1275 echo $ac_n "checking build system type""... $ac_c" 1>&6
1276 echo "configure:1277: checking build system type" >&5
1278 build_alias=$build
1279 case "$build_alias" in
1280 NONE)
1281 case $nonopt in
1282 NONE) build_alias=$host_alias ;;
1283 *) build_alias=$nonopt ;;
1284 esac ;;
1285 esac
1287 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1288 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1289 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1290 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1291 echo "$ac_t""$build" 1>&6
1294 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1295 set dummy ${ac_tool_prefix}as; ac_word=$2
1296 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1297 echo "configure:1298: checking for $ac_word" >&5
1298 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1299 echo $ac_n "(cached) $ac_c" 1>&6
1300 else
1301 if test -n "$AS"; then
1302 ac_cv_prog_AS="$AS" # Let the user override the test.
1303 else
1304 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1305 ac_dummy="$PATH"
1306 for ac_dir in $ac_dummy; do
1307 test -z "$ac_dir" && ac_dir=.
1308 if test -f $ac_dir/$ac_word; then
1309 ac_cv_prog_AS="${ac_tool_prefix}as"
1310 break
1312 done
1313 IFS="$ac_save_ifs"
1314 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1317 AS="$ac_cv_prog_AS"
1318 if test -n "$AS"; then
1319 echo "$ac_t""$AS" 1>&6
1320 else
1321 echo "$ac_t""no" 1>&6
1326 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1327 set dummy ${ac_tool_prefix}ar; ac_word=$2
1328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1329 echo "configure:1330: checking for $ac_word" >&5
1330 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1331 echo $ac_n "(cached) $ac_c" 1>&6
1332 else
1333 if test -n "$AR"; then
1334 ac_cv_prog_AR="$AR" # Let the user override the test.
1335 else
1336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1337 ac_dummy="$PATH"
1338 for ac_dir in $ac_dummy; do
1339 test -z "$ac_dir" && ac_dir=.
1340 if test -f $ac_dir/$ac_word; then
1341 ac_cv_prog_AR="${ac_tool_prefix}ar"
1342 break
1344 done
1345 IFS="$ac_save_ifs"
1346 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1349 AR="$ac_cv_prog_AR"
1350 if test -n "$AR"; then
1351 echo "$ac_t""$AR" 1>&6
1352 else
1353 echo "$ac_t""no" 1>&6
1358 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1359 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1360 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1361 echo "configure:1362: checking for $ac_word" >&5
1362 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1363 echo $ac_n "(cached) $ac_c" 1>&6
1364 else
1365 if test -n "$RANLIB"; then
1366 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1367 else
1368 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1369 ac_dummy="$PATH"
1370 for ac_dir in $ac_dummy; do
1371 test -z "$ac_dir" && ac_dir=.
1372 if test -f $ac_dir/$ac_word; then
1373 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1374 break
1376 done
1377 IFS="$ac_save_ifs"
1380 RANLIB="$ac_cv_prog_RANLIB"
1381 if test -n "$RANLIB"; then
1382 echo "$ac_t""$RANLIB" 1>&6
1383 else
1384 echo "$ac_t""no" 1>&6
1388 if test -z "$ac_cv_prog_RANLIB"; then
1389 if test -n "$ac_tool_prefix"; then
1390 # Extract the first word of "ranlib", so it can be a program name with args.
1391 set dummy ranlib; ac_word=$2
1392 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1393 echo "configure:1394: checking for $ac_word" >&5
1394 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1395 echo $ac_n "(cached) $ac_c" 1>&6
1396 else
1397 if test -n "$RANLIB"; then
1398 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1399 else
1400 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1401 ac_dummy="$PATH"
1402 for ac_dir in $ac_dummy; do
1403 test -z "$ac_dir" && ac_dir=.
1404 if test -f $ac_dir/$ac_word; then
1405 ac_cv_prog_RANLIB="ranlib"
1406 break
1408 done
1409 IFS="$ac_save_ifs"
1410 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1413 RANLIB="$ac_cv_prog_RANLIB"
1414 if test -n "$RANLIB"; then
1415 echo "$ac_t""$RANLIB" 1>&6
1416 else
1417 echo "$ac_t""no" 1>&6
1420 else
1421 RANLIB=":"
1426 # Find a good install program. We prefer a C program (faster),
1427 # so one script is as good as another. But avoid the broken or
1428 # incompatible versions:
1429 # SysV /etc/install, /usr/sbin/install
1430 # SunOS /usr/etc/install
1431 # IRIX /sbin/install
1432 # AIX /bin/install
1433 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1434 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1435 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1436 # ./install, which can be erroneously created by make from ./install.sh.
1437 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1438 echo "configure:1439: checking for a BSD compatible install" >&5
1439 if test -z "$INSTALL"; then
1440 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1441 echo $ac_n "(cached) $ac_c" 1>&6
1442 else
1443 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1444 for ac_dir in $PATH; do
1445 # Account for people who put trailing slashes in PATH elements.
1446 case "$ac_dir/" in
1447 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1449 # OSF1 and SCO ODT 3.0 have their own names for install.
1450 # Don't use installbsd from OSF since it installs stuff as root
1451 # by default.
1452 for ac_prog in ginstall scoinst install; do
1453 if test -f $ac_dir/$ac_prog; then
1454 if test $ac_prog = install &&
1455 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1456 # AIX install. It has an incompatible calling convention.
1458 else
1459 ac_cv_path_install="$ac_dir/$ac_prog -c"
1460 break 2
1463 done
1465 esac
1466 done
1467 IFS="$ac_save_IFS"
1470 if test "${ac_cv_path_install+set}" = set; then
1471 INSTALL="$ac_cv_path_install"
1472 else
1473 # As a last resort, use the slow shell script. We don't cache a
1474 # path for INSTALL within a source directory, because that will
1475 # break other packages using the cache if that directory is
1476 # removed, or if the path is relative.
1477 INSTALL="$ac_install_sh"
1480 echo "$ac_t""$INSTALL" 1>&6
1482 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1483 # It thinks the first close brace ends the variable substitution.
1484 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1486 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1488 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1491 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1492 echo "configure:1493: checking whether to enable maintainer-specific portions of Makefiles" >&5
1493 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1494 if test "${enable_maintainer_mode+set}" = set; then
1495 enableval="$enable_maintainer_mode"
1496 USE_MAINTAINER_MODE=$enableval
1497 else
1498 USE_MAINTAINER_MODE=no
1501 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1504 if test $USE_MAINTAINER_MODE = yes; then
1505 MAINTAINER_MODE_TRUE=
1506 MAINTAINER_MODE_FALSE='#'
1507 else
1508 MAINTAINER_MODE_TRUE='#'
1509 MAINTAINER_MODE_FALSE=
1511 MAINT=$MAINTAINER_MODE_TRUE
1515 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1516 # at least currently, we never actually build a program, so we never
1517 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1518 # fails, because we are probably configuring with a cross compiler
1519 # which can't create executables. So we include AC_EXEEXT to keep
1520 # automake happy, but we don't execute it, since we don't care about
1521 # the result.
1522 if false; then
1523 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1524 # to nothing, so nothing would remain between `then' and `fi' if it
1525 # were not for the `:' below.
1529 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1530 echo "configure:1531: checking for executable suffix" >&5
1531 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1532 echo $ac_n "(cached) $ac_c" 1>&6
1533 else
1534 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1535 ac_cv_exeext=.exe
1536 else
1537 rm -f conftest*
1538 echo 'int main () { return 0; }' > conftest.$ac_ext
1539 ac_cv_exeext=
1540 if { (eval echo configure:1541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1541 for file in conftest.*; do
1542 case $file in
1543 *.c | *.o | *.obj) ;;
1544 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1545 esac
1546 done
1547 else
1548 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1550 rm -f conftest*
1551 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1555 EXEEXT=""
1556 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1557 echo "$ac_t""${ac_cv_exeext}" 1>&6
1558 ac_exeext=$EXEEXT
1562 . ${srcdir}/configure.host
1564 case ${gc_basedir} in
1565 /* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
1566 *) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
1567 esac
1569 gc_cflags="${gc_cflags} -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
1570 case "${host}" in
1571 *-*-cygwin32*)
1572 gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
1574 esac
1577 GC_CFLAGS=${gc_cflags}
1581 # Check whether --enable-shared or --disable-shared was given.
1582 if test "${enable_shared+set}" = set; then
1583 enableval="$enable_shared"
1584 p=${PACKAGE-default}
1585 case $enableval in
1586 yes) enable_shared=yes ;;
1587 no) enable_shared=no ;;
1589 enable_shared=no
1590 # Look at the argument we got. We use all the common list separators.
1591 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1592 for pkg in $enableval; do
1593 if test "X$pkg" = "X$p"; then
1594 enable_shared=yes
1596 done
1597 IFS="$ac_save_ifs"
1599 esac
1600 else
1601 enable_shared=yes
1604 # Check whether --enable-static or --disable-static was given.
1605 if test "${enable_static+set}" = set; then
1606 enableval="$enable_static"
1607 p=${PACKAGE-default}
1608 case $enableval in
1609 yes) enable_static=yes ;;
1610 no) enable_static=no ;;
1612 enable_static=no
1613 # Look at the argument we got. We use all the common list separators.
1614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1615 for pkg in $enableval; do
1616 if test "X$pkg" = "X$p"; then
1617 enable_static=yes
1619 done
1620 IFS="$ac_save_ifs"
1622 esac
1623 else
1624 enable_static=yes
1627 # Check whether --enable-fast-install or --disable-fast-install was given.
1628 if test "${enable_fast_install+set}" = set; then
1629 enableval="$enable_fast_install"
1630 p=${PACKAGE-default}
1631 case $enableval in
1632 yes) enable_fast_install=yes ;;
1633 no) enable_fast_install=no ;;
1635 enable_fast_install=no
1636 # Look at the argument we got. We use all the common list separators.
1637 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1638 for pkg in $enableval; do
1639 if test "X$pkg" = "X$p"; then
1640 enable_fast_install=yes
1642 done
1643 IFS="$ac_save_ifs"
1645 esac
1646 else
1647 enable_fast_install=yes
1650 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1651 if test "${with_gnu_ld+set}" = set; then
1652 withval="$with_gnu_ld"
1653 test "$withval" = no || with_gnu_ld=yes
1654 else
1655 with_gnu_ld=no
1658 ac_prog=ld
1659 if test "$GCC" = yes; then
1660 # Check if gcc -print-prog-name=ld gives a path.
1661 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1662 echo "configure:1663: checking for ld used by GCC" >&5
1663 case $host in
1664 *-*-mingw*)
1665 # gcc leaves a trailing carriage return which upsets mingw
1666 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1668 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1669 esac
1670 case $ac_prog in
1671 # Accept absolute paths.
1672 [\\/]* | [A-Za-z]:[\\/]*)
1673 re_direlt='/[^/][^/]*/\.\./'
1674 # Canonicalize the path of ld
1675 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1676 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1677 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1678 done
1679 test -z "$LD" && LD="$ac_prog"
1682 # If it fails, then pretend we aren't using GCC.
1683 ac_prog=ld
1686 # If it is relative, then search for the first ld in PATH.
1687 with_gnu_ld=unknown
1689 esac
1690 elif test "$with_gnu_ld" = yes; then
1691 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1692 echo "configure:1693: checking for GNU ld" >&5
1693 else
1694 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1695 echo "configure:1696: checking for non-GNU ld" >&5
1697 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1698 echo $ac_n "(cached) $ac_c" 1>&6
1699 else
1700 if test -z "$LD"; then
1701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1702 for ac_dir in $PATH; do
1703 test -z "$ac_dir" && ac_dir=.
1704 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1705 lt_cv_path_LD="$ac_dir/$ac_prog"
1706 # Check to see if the program is GNU ld. I'd rather use --version,
1707 # but apparently some GNU ld's only accept -v.
1708 # Break only if it was the GNU/non-GNU ld that we prefer.
1709 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1710 test "$with_gnu_ld" != no && break
1711 else
1712 test "$with_gnu_ld" != yes && break
1715 done
1716 IFS="$ac_save_ifs"
1717 else
1718 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1722 LD="$lt_cv_path_LD"
1723 if test -n "$LD"; then
1724 echo "$ac_t""$LD" 1>&6
1725 else
1726 echo "$ac_t""no" 1>&6
1728 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1729 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1730 echo "configure:1731: checking if the linker ($LD) is GNU ld" >&5
1731 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1732 echo $ac_n "(cached) $ac_c" 1>&6
1733 else
1734 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1735 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1736 lt_cv_prog_gnu_ld=yes
1737 else
1738 lt_cv_prog_gnu_ld=no
1742 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1743 with_gnu_ld=$lt_cv_prog_gnu_ld
1746 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1747 echo "configure:1748: checking for $LD option to reload object files" >&5
1748 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1749 echo $ac_n "(cached) $ac_c" 1>&6
1750 else
1751 lt_cv_ld_reload_flag='-r'
1754 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1755 reload_flag=$lt_cv_ld_reload_flag
1756 test -n "$reload_flag" && reload_flag=" $reload_flag"
1758 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1759 echo "configure:1760: checking for BSD-compatible nm" >&5
1760 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1761 echo $ac_n "(cached) $ac_c" 1>&6
1762 else
1763 if test -n "$NM"; then
1764 # Let the user override the test.
1765 lt_cv_path_NM="$NM"
1766 else
1767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1768 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1769 test -z "$ac_dir" && ac_dir=.
1770 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1771 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1772 # Check to see if the nm accepts a BSD-compat flag.
1773 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1774 # nm: unknown option "B" ignored
1775 # Tru64's nm complains that /dev/null is an invalid object file
1776 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1777 lt_cv_path_NM="$tmp_nm -B"
1778 break
1779 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1780 lt_cv_path_NM="$tmp_nm -p"
1781 break
1782 else
1783 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1784 continue # so that we can try to find one that supports BSD flags
1787 done
1788 IFS="$ac_save_ifs"
1789 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1793 NM="$lt_cv_path_NM"
1794 echo "$ac_t""$NM" 1>&6
1796 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1797 echo "configure:1798: checking whether ln -s works" >&5
1798 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1799 echo $ac_n "(cached) $ac_c" 1>&6
1800 else
1801 rm -f conftestdata
1802 if ln -s X conftestdata 2>/dev/null
1803 then
1804 rm -f conftestdata
1805 ac_cv_prog_LN_S="ln -s"
1806 else
1807 ac_cv_prog_LN_S=ln
1810 LN_S="$ac_cv_prog_LN_S"
1811 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1812 echo "$ac_t""yes" 1>&6
1813 else
1814 echo "$ac_t""no" 1>&6
1817 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1818 echo "configure:1819: checking how to recognise dependant libraries" >&5
1819 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1821 else
1822 lt_cv_file_magic_cmd='$MAGIC_CMD'
1823 lt_cv_file_magic_test_file=
1824 lt_cv_deplibs_check_method='unknown'
1825 # Need to set the preceding variable on all platforms that support
1826 # interlibrary dependencies.
1827 # 'none' -- dependencies not supported.
1828 # `unknown' -- same as none, but documents that we really don't know.
1829 # 'pass_all' -- all dependencies passed with no checks.
1830 # 'test_compile' -- check by making test program.
1831 # 'file_magic [regex]' -- check by looking for files in library path
1832 # which responds to the $file_magic_cmd with a given egrep regex.
1833 # If you have `file' or equivalent on your system and you're not sure
1834 # whether `pass_all' will *always* work, you probably want this one.
1836 case $host_os in
1837 aix*)
1838 lt_cv_deplibs_check_method=pass_all
1841 beos*)
1842 lt_cv_deplibs_check_method=pass_all
1845 bsdi4*)
1846 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1847 lt_cv_file_magic_cmd='/usr/bin/file -L'
1848 lt_cv_file_magic_test_file=/shlib/libc.so
1851 cygwin* | mingw* |pw32*)
1852 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1853 lt_cv_file_magic_cmd='$OBJDUMP -f'
1856 darwin* | rhapsody*)
1857 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1858 lt_cv_file_magic_cmd='/usr/bin/file -L'
1859 case "$host_os" in
1860 rhapsody* | darwin1.012)
1861 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1863 *) # Darwin 1.3 on
1864 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1866 esac
1869 freebsd* )
1870 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1871 case $host_cpu in
1872 i*86 )
1873 # Not sure whether the presence of OpenBSD here was a mistake.
1874 # Let's accept both of them until this is cleared up.
1875 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1876 lt_cv_file_magic_cmd=/usr/bin/file
1877 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1879 esac
1880 else
1881 lt_cv_deplibs_check_method=pass_all
1885 gnu*)
1886 lt_cv_deplibs_check_method=pass_all
1889 hpux10.20*|hpux11*)
1890 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1891 lt_cv_file_magic_cmd=/usr/bin/file
1892 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1895 irix5* | irix6*)
1896 case $host_os in
1897 irix5*)
1898 # this will be overridden with pass_all, but let us keep it just in case
1899 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1902 case $LD in
1903 *-32|*"-32 ") libmagic=32-bit;;
1904 *-n32|*"-n32 ") libmagic=N32;;
1905 *-64|*"-64 ") libmagic=64-bit;;
1906 *) libmagic=never-match;;
1907 esac
1908 # this will be overridden with pass_all, but let us keep it just in case
1909 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1911 esac
1912 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1913 lt_cv_deplibs_check_method=pass_all
1916 # This must be Linux ELF.
1917 linux-gnu*)
1918 case $host_cpu in
1919 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1920 lt_cv_deplibs_check_method=pass_all ;;
1922 # glibc up to 2.1.1 does not perform some relocations on ARM
1923 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1924 esac
1925 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1928 netbsd*)
1929 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1930 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1931 else
1932 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1936 newsos6)
1937 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1938 lt_cv_file_magic_cmd=/usr/bin/file
1939 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1942 osf3* | osf4* | osf5*)
1943 # this will be overridden with pass_all, but let us keep it just in case
1944 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1945 lt_cv_file_magic_test_file=/shlib/libc.so
1946 lt_cv_deplibs_check_method=pass_all
1949 sco3.2v5*)
1950 lt_cv_deplibs_check_method=pass_all
1953 solaris*)
1954 lt_cv_deplibs_check_method=pass_all
1955 lt_cv_file_magic_test_file=/lib/libc.so
1958 sysv5uw[78]* | sysv4*uw2*)
1959 lt_cv_deplibs_check_method=pass_all
1962 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1963 case $host_vendor in
1964 ncr)
1965 lt_cv_deplibs_check_method=pass_all
1967 motorola)
1968 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]'
1969 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1971 esac
1973 esac
1977 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1978 file_magic_cmd=$lt_cv_file_magic_cmd
1979 deplibs_check_method=$lt_cv_deplibs_check_method
1981 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1982 echo "configure:1983: checking for object suffix" >&5
1983 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1984 echo $ac_n "(cached) $ac_c" 1>&6
1985 else
1986 rm -f conftest*
1987 echo 'int i = 1;' > conftest.$ac_ext
1988 if { (eval echo configure:1989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1989 for ac_file in conftest.*; do
1990 case $ac_file in
1991 *.c) ;;
1992 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1993 esac
1994 done
1995 else
1996 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1998 rm -f conftest*
2001 echo "$ac_t""$ac_cv_objext" 1>&6
2002 OBJEXT=$ac_cv_objext
2003 ac_objext=$ac_cv_objext
2005 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2007 # Only perform the check for file, if the check method requires it
2008 case $deplibs_check_method in
2009 file_magic*)
2010 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2011 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2012 echo "configure:2013: checking for ${ac_tool_prefix}file" >&5
2013 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2014 echo $ac_n "(cached) $ac_c" 1>&6
2015 else
2016 case $MAGIC_CMD in
2018 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2020 ?:/*)
2021 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2024 ac_save_MAGIC_CMD="$MAGIC_CMD"
2025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2026 ac_dummy="/usr/bin:$PATH"
2027 for ac_dir in $ac_dummy; do
2028 test -z "$ac_dir" && ac_dir=.
2029 if test -f $ac_dir/${ac_tool_prefix}file; then
2030 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2031 if test -n "$file_magic_test_file"; then
2032 case $deplibs_check_method in
2033 "file_magic "*)
2034 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2035 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2036 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2037 egrep "$file_magic_regex" > /dev/null; then
2039 else
2040 cat <<EOF 1>&2
2042 *** Warning: the command libtool uses to detect shared libraries,
2043 *** $file_magic_cmd, produces output that libtool cannot recognize.
2044 *** The result is that libtool may fail to recognize shared libraries
2045 *** as such. This will affect the creation of libtool libraries that
2046 *** depend on shared libraries, but programs linked with such libtool
2047 *** libraries will work regardless of this problem. Nevertheless, you
2048 *** may want to report the problem to your system manager and/or to
2049 *** bug-libtool@gnu.org
2052 fi ;;
2053 esac
2055 break
2057 done
2058 IFS="$ac_save_ifs"
2059 MAGIC_CMD="$ac_save_MAGIC_CMD"
2061 esac
2064 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2065 if test -n "$MAGIC_CMD"; then
2066 echo "$ac_t""$MAGIC_CMD" 1>&6
2067 else
2068 echo "$ac_t""no" 1>&6
2071 if test -z "$lt_cv_path_MAGIC_CMD"; then
2072 if test -n "$ac_tool_prefix"; then
2073 echo $ac_n "checking for file""... $ac_c" 1>&6
2074 echo "configure:2075: checking for file" >&5
2075 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2076 echo $ac_n "(cached) $ac_c" 1>&6
2077 else
2078 case $MAGIC_CMD in
2080 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2082 ?:/*)
2083 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2086 ac_save_MAGIC_CMD="$MAGIC_CMD"
2087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2088 ac_dummy="/usr/bin:$PATH"
2089 for ac_dir in $ac_dummy; do
2090 test -z "$ac_dir" && ac_dir=.
2091 if test -f $ac_dir/file; then
2092 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2093 if test -n "$file_magic_test_file"; then
2094 case $deplibs_check_method in
2095 "file_magic "*)
2096 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2097 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2098 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2099 egrep "$file_magic_regex" > /dev/null; then
2101 else
2102 cat <<EOF 1>&2
2104 *** Warning: the command libtool uses to detect shared libraries,
2105 *** $file_magic_cmd, produces output that libtool cannot recognize.
2106 *** The result is that libtool may fail to recognize shared libraries
2107 *** as such. This will affect the creation of libtool libraries that
2108 *** depend on shared libraries, but programs linked with such libtool
2109 *** libraries will work regardless of this problem. Nevertheless, you
2110 *** may want to report the problem to your system manager and/or to
2111 *** bug-libtool@gnu.org
2114 fi ;;
2115 esac
2117 break
2119 done
2120 IFS="$ac_save_ifs"
2121 MAGIC_CMD="$ac_save_MAGIC_CMD"
2123 esac
2126 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2127 if test -n "$MAGIC_CMD"; then
2128 echo "$ac_t""$MAGIC_CMD" 1>&6
2129 else
2130 echo "$ac_t""no" 1>&6
2133 else
2134 MAGIC_CMD=:
2140 esac
2142 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2143 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2144 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2145 echo "configure:2146: checking for $ac_word" >&5
2146 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2147 echo $ac_n "(cached) $ac_c" 1>&6
2148 else
2149 if test -n "$RANLIB"; then
2150 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2151 else
2152 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2153 ac_dummy="$PATH"
2154 for ac_dir in $ac_dummy; do
2155 test -z "$ac_dir" && ac_dir=.
2156 if test -f $ac_dir/$ac_word; then
2157 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2158 break
2160 done
2161 IFS="$ac_save_ifs"
2164 RANLIB="$ac_cv_prog_RANLIB"
2165 if test -n "$RANLIB"; then
2166 echo "$ac_t""$RANLIB" 1>&6
2167 else
2168 echo "$ac_t""no" 1>&6
2172 if test -z "$ac_cv_prog_RANLIB"; then
2173 if test -n "$ac_tool_prefix"; then
2174 # Extract the first word of "ranlib", so it can be a program name with args.
2175 set dummy ranlib; ac_word=$2
2176 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2177 echo "configure:2178: checking for $ac_word" >&5
2178 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2179 echo $ac_n "(cached) $ac_c" 1>&6
2180 else
2181 if test -n "$RANLIB"; then
2182 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2183 else
2184 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2185 ac_dummy="$PATH"
2186 for ac_dir in $ac_dummy; do
2187 test -z "$ac_dir" && ac_dir=.
2188 if test -f $ac_dir/$ac_word; then
2189 ac_cv_prog_RANLIB="ranlib"
2190 break
2192 done
2193 IFS="$ac_save_ifs"
2194 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2197 RANLIB="$ac_cv_prog_RANLIB"
2198 if test -n "$RANLIB"; then
2199 echo "$ac_t""$RANLIB" 1>&6
2200 else
2201 echo "$ac_t""no" 1>&6
2204 else
2205 RANLIB=":"
2209 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2210 set dummy ${ac_tool_prefix}strip; ac_word=$2
2211 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2212 echo "configure:2213: checking for $ac_word" >&5
2213 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
2215 else
2216 if test -n "$STRIP"; then
2217 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2218 else
2219 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2220 ac_dummy="$PATH"
2221 for ac_dir in $ac_dummy; do
2222 test -z "$ac_dir" && ac_dir=.
2223 if test -f $ac_dir/$ac_word; then
2224 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2225 break
2227 done
2228 IFS="$ac_save_ifs"
2231 STRIP="$ac_cv_prog_STRIP"
2232 if test -n "$STRIP"; then
2233 echo "$ac_t""$STRIP" 1>&6
2234 else
2235 echo "$ac_t""no" 1>&6
2239 if test -z "$ac_cv_prog_STRIP"; then
2240 if test -n "$ac_tool_prefix"; then
2241 # Extract the first word of "strip", so it can be a program name with args.
2242 set dummy strip; ac_word=$2
2243 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2244 echo "configure:2245: checking for $ac_word" >&5
2245 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2246 echo $ac_n "(cached) $ac_c" 1>&6
2247 else
2248 if test -n "$STRIP"; then
2249 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2250 else
2251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2252 ac_dummy="$PATH"
2253 for ac_dir in $ac_dummy; do
2254 test -z "$ac_dir" && ac_dir=.
2255 if test -f $ac_dir/$ac_word; then
2256 ac_cv_prog_STRIP="strip"
2257 break
2259 done
2260 IFS="$ac_save_ifs"
2261 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2264 STRIP="$ac_cv_prog_STRIP"
2265 if test -n "$STRIP"; then
2266 echo "$ac_t""$STRIP" 1>&6
2267 else
2268 echo "$ac_t""no" 1>&6
2271 else
2272 STRIP=":"
2277 # Check for any special flags to pass to ltconfig.
2278 libtool_flags="--cache-file=$cache_file"
2279 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2280 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2281 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2282 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2283 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2286 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2287 if test "${enable_libtool_lock+set}" = set; then
2288 enableval="$enable_libtool_lock"
2292 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2293 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2295 # Check whether --with-pic or --without-pic was given.
2296 if test "${with_pic+set}" = set; then
2297 withval="$with_pic"
2298 pic_mode="$withval"
2299 else
2300 pic_mode=default
2303 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2304 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2306 # Some flags need to be propagated to the compiler or linker for good
2307 # libtool support.
2308 case $host in
2309 *-*-irix6*)
2310 # Find out which ABI we are using.
2311 echo '#line 2312 "configure"' > conftest.$ac_ext
2312 if { (eval echo configure:2313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2313 case `/usr/bin/file conftest.$ac_objext` in
2314 *32-bit*)
2315 LD="${LD-ld} -32"
2317 *N32*)
2318 LD="${LD-ld} -n32"
2320 *64-bit*)
2321 LD="${LD-ld} -64"
2323 esac
2325 rm -rf conftest*
2328 *-*-sco3.2v5*)
2329 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2330 SAVE_CFLAGS="$CFLAGS"
2331 CFLAGS="$CFLAGS -belf"
2332 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2333 echo "configure:2334: checking whether the C compiler needs -belf" >&5
2334 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2335 echo $ac_n "(cached) $ac_c" 1>&6
2336 else
2338 ac_ext=c
2339 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2340 ac_cpp='$CPP $CPPFLAGS'
2341 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2342 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2343 cross_compiling=$ac_cv_prog_cc_cross
2345 cat > conftest.$ac_ext <<EOF
2346 #line 2347 "configure"
2347 #include "confdefs.h"
2349 int main() {
2351 ; return 0; }
2353 if { (eval echo configure:2354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2354 rm -rf conftest*
2355 lt_cv_cc_needs_belf=yes
2356 else
2357 echo "configure: failed program was:" >&5
2358 cat conftest.$ac_ext >&5
2359 rm -rf conftest*
2360 lt_cv_cc_needs_belf=no
2362 rm -f conftest*
2363 ac_ext=c
2364 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2365 ac_cpp='$CPP $CPPFLAGS'
2366 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2367 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2368 cross_compiling=$ac_cv_prog_cc_cross
2372 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2373 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2374 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2375 CFLAGS="$SAVE_CFLAGS"
2380 esac
2382 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2383 echo "configure:2384: checking how to run the C++ preprocessor" >&5
2384 if test -z "$CXXCPP"; then
2385 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2386 echo $ac_n "(cached) $ac_c" 1>&6
2387 else
2388 ac_ext=C
2389 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2390 ac_cpp='$CXXCPP $CPPFLAGS'
2391 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2392 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2393 cross_compiling=$ac_cv_prog_cxx_cross
2394 CXXCPP="${CXX-g++} -E"
2395 cat > conftest.$ac_ext <<EOF
2396 #line 2397 "configure"
2397 #include "confdefs.h"
2398 #include <stdlib.h>
2400 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2401 { (eval echo configure:2402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2402 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2403 if test -z "$ac_err"; then
2405 else
2406 echo "$ac_err" >&5
2407 echo "configure: failed program was:" >&5
2408 cat conftest.$ac_ext >&5
2409 rm -rf conftest*
2410 CXXCPP=/lib/cpp
2412 rm -f conftest*
2413 ac_cv_prog_CXXCPP="$CXXCPP"
2414 ac_ext=c
2415 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2416 ac_cpp='$CPP $CPPFLAGS'
2417 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2418 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2419 cross_compiling=$ac_cv_prog_cc_cross
2422 CXXCPP="$ac_cv_prog_CXXCPP"
2423 echo "$ac_t""$CXXCPP" 1>&6
2426 # Save cache, so that ltconfig can load it
2427 cat > confcache <<\EOF
2428 # This file is a shell script that caches the results of configure
2429 # tests run on this system so they can be shared between configure
2430 # scripts and configure runs. It is not useful on other systems.
2431 # If it contains results you don't want to keep, you may remove or edit it.
2433 # By default, configure uses ./config.cache as the cache file,
2434 # creating it if it does not exist already. You can give configure
2435 # the --cache-file=FILE option to use a different cache file; that is
2436 # what configure does when it calls configure scripts in
2437 # subdirectories, so they share the cache.
2438 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2439 # config.status only pays attention to the cache file if you give it the
2440 # --recheck option to rerun configure.
2443 # The following way of writing the cache mishandles newlines in values,
2444 # but we know of no workaround that is simple, portable, and efficient.
2445 # So, don't put newlines in cache variables' values.
2446 # Ultrix sh set writes to stderr and can't be redirected directly,
2447 # and sets the high bit in the cache file unless we assign to the vars.
2448 (set) 2>&1 |
2449 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2450 *ac_space=\ *)
2451 # `set' does not quote correctly, so add quotes (double-quote substitution
2452 # turns \\\\ into \\, and sed turns \\ into \).
2453 sed -n \
2454 -e "s/'/'\\\\''/g" \
2455 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2458 # `set' quotes correctly as required by POSIX, so do not add quotes.
2459 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2461 esac >> confcache
2462 if cmp -s $cache_file confcache; then
2464 else
2465 if test -w $cache_file; then
2466 echo "updating cache $cache_file"
2467 cat confcache > $cache_file
2468 else
2469 echo "not updating unwritable cache $cache_file"
2472 rm -f confcache
2475 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2476 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2477 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2478 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2479 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2480 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2481 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2482 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2483 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2484 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2486 # Reload cache, that may have been modified by ltconfig
2487 if test -r "$cache_file"; then
2488 echo "loading cache $cache_file"
2489 . $cache_file
2490 else
2491 echo "creating cache $cache_file"
2492 > $cache_file
2496 # This can be used to rebuild libtool when needed
2497 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2499 # Always use our own libtool.
2500 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2502 # Redirect the config.log output again, so that the ltconfig log is not
2503 # clobbered by the next message.
2504 exec 5>>./config.log
2508 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2509 lt_save_CC="$CC"
2510 lt_save_CFLAGS="$CFLAGS"
2511 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2512 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2513 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2514 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2515 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2516 deplibs_check_method="$deplibs_check_method" \
2517 file_magic_cmd="$file_magic_cmd" \
2518 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2519 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2520 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2521 CC="$lt_save_CC"
2522 CFLAGS="$lt_save_CFLAGS"
2524 # Redirect the config.log output again, so that the ltconfig log is not
2525 # clobbered by the next message.
2526 exec 5>>./config.log
2534 # Check whether --with-target-subdir or --without-target-subdir was given.
2535 if test "${with_target_subdir+set}" = set; then
2536 withval="$with_target_subdir"
2540 # Check whether --with-cross-host or --without-cross-host was given.
2541 if test "${with_cross_host+set}" = set; then
2542 withval="$with_cross_host"
2547 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2548 echo "configure:2549: checking whether to enable maintainer-specific portions of Makefiles" >&5
2549 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2550 if test "${enable_maintainer_mode+set}" = set; then
2551 enableval="$enable_maintainer_mode"
2552 USE_MAINTAINER_MODE=$enableval
2553 else
2554 USE_MAINTAINER_MODE=no
2557 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2560 if test $USE_MAINTAINER_MODE = yes; then
2561 MAINTAINER_MODE_TRUE=
2562 MAINTAINER_MODE_FALSE='#'
2563 else
2564 MAINTAINER_MODE_TRUE='#'
2565 MAINTAINER_MODE_FALSE=
2567 MAINT=$MAINTAINER_MODE_TRUE
2570 # automake wants to see AC_EXEEXT. But we don't need it. And having
2571 # it is actually a problem, because the compiler we're passed can't
2572 # necessarily do a full link. So we fool automake here.
2573 if false; then
2574 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
2575 # to nothing, so nothing would remain between `then' and `fi' if it
2576 # were not for the `:' below.
2580 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2581 echo "configure:2582: checking for executable suffix" >&5
2582 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2583 echo $ac_n "(cached) $ac_c" 1>&6
2584 else
2585 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2586 ac_cv_exeext=.exe
2587 else
2588 rm -f conftest*
2589 echo 'int main () { return 0; }' > conftest.$ac_ext
2590 ac_cv_exeext=
2591 if { (eval echo configure:2592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2592 for file in conftest.*; do
2593 case $file in
2594 *.c | *.o | *.obj) ;;
2595 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2596 esac
2597 done
2598 else
2599 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2601 rm -f conftest*
2602 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2606 EXEEXT=""
2607 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2608 echo "$ac_t""${ac_cv_exeext}" 1>&6
2609 ac_exeext=$EXEEXT
2613 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
2614 echo "configure:2615: checking for thread model used by GCC" >&5
2615 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
2616 if test -z "$THREADS"; then
2617 THREADS=no
2619 echo "$ac_t""$THREADS" 1>&6
2621 # Check whether --enable-parallel-mark or --disable-parallel-mark was given.
2622 if test "${enable_parallel_mark+set}" = set; then
2623 enableval="$enable_parallel_mark"
2624 case "$THREADS" in
2625 no | none | single)
2626 { echo "configure: error: Parallel mark requires --enable-threads=x spec" 1>&2; exit 1; }
2628 esac
2633 INCLUDES=-I${srcdir}/include
2634 THREADLIBS=
2635 case "$THREADS" in
2636 no | none | single)
2637 THREADS=none
2639 posix | pthreads)
2640 THREADS=posix
2641 THREADLIBS=-lpthread
2642 case "$host" in
2643 x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux*)
2644 cat >> confdefs.h <<\EOF
2645 #define GC_LINUX_THREADS 1
2648 cat >> confdefs.h <<\EOF
2649 #define _REENTRANT 1
2652 if test "${enable_parallel_mark}"; then
2653 cat >> confdefs.h <<\EOF
2654 #define PARALLEL_MARK 1
2658 cat >> confdefs.h <<\EOF
2659 #define THREAD_LOCAL_ALLOC 1
2663 *-*-linux*)
2664 cat >> confdefs.h <<\EOF
2665 #define GC_LINUX_THREADS 1
2668 cat >> confdefs.h <<\EOF
2669 #define _REENTRANT 1
2673 *-*-hpux*)
2674 echo "configure: warning: "Only HP/UX 11 threads are supported."" 1>&2
2675 cat >> confdefs.h <<\EOF
2676 #define GC_HPUX_THREADS 1
2679 cat >> confdefs.h <<\EOF
2680 #define _POSIX_C_SOURCE 199506L
2683 if test "${enable_parallel_mark}" = yes; then
2684 cat >> confdefs.h <<\EOF
2685 #define PARALLEL_MARK 1
2689 cat >> confdefs.h <<\EOF
2690 #define THREAD_LOCAL_ALLOC 1
2693 THREADLIBS="-lpthread -lrt"
2695 *-*-freebsd*)
2696 echo "configure: warning: "FreeBSD does not yet fully support threads with Boehm GC."" 1>&2
2697 cat >> confdefs.h <<\EOF
2698 #define GC_FREEBSD_THREADS 1
2701 INCLUDES="$INCLUDES -pthread"
2702 THREADLIBS=-pthread
2704 *-*-solaris*)
2705 cat >> confdefs.h <<\EOF
2706 #define GC_SOLARIS_THREADS 1
2709 cat >> confdefs.h <<\EOF
2710 #define GC_SOLARIS_PTHREADS 1
2714 *-*-irix*)
2715 cat >> confdefs.h <<\EOF
2716 #define GC_IRIX_THREADS 1
2720 *-*-cygwin*)
2721 THREADLIBS=
2723 esac
2725 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
2726 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2729 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2731 esac
2734 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2735 echo "configure:2736: checking for dlopen in -ldl" >&5
2736 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2737 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2738 echo $ac_n "(cached) $ac_c" 1>&6
2739 else
2740 ac_save_LIBS="$LIBS"
2741 LIBS="-ldl $LIBS"
2742 cat > conftest.$ac_ext <<EOF
2743 #line 2744 "configure"
2744 #include "confdefs.h"
2745 /* Override any gcc2 internal prototype to avoid an error. */
2746 /* We use char because int might match the return type of a gcc2
2747 builtin and then its argument prototype would still apply. */
2748 char dlopen();
2750 int main() {
2751 dlopen()
2752 ; return 0; }
2754 if { (eval echo configure:2755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2755 rm -rf conftest*
2756 eval "ac_cv_lib_$ac_lib_var=yes"
2757 else
2758 echo "configure: failed program was:" >&5
2759 cat conftest.$ac_ext >&5
2760 rm -rf conftest*
2761 eval "ac_cv_lib_$ac_lib_var=no"
2763 rm -f conftest*
2764 LIBS="$ac_save_LIBS"
2767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2768 echo "$ac_t""yes" 1>&6
2769 EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
2770 else
2771 echo "$ac_t""no" 1>&6
2776 target_all=libgcjgc.la
2779 TARGET_ECOS="no"
2780 # Check whether --with-ecos or --without-ecos was given.
2781 if test "${with_ecos+set}" = set; then
2782 withval="$with_ecos"
2783 TARGET_ECOS="$with_ecos"
2788 addobjs=
2789 CXXINCLUDES=
2790 case "$TARGET_ECOS" in
2794 cat >> confdefs.h <<\EOF
2795 #define ECOS 1
2798 CXXINCLUDES="-I${TARGET_ECOS}/include"
2799 addobjs="$addobjs ecos.lo"
2801 esac
2807 machdep=
2808 case "$host" in
2809 alpha*-*-*)
2810 machdep="alpha_mach_dep.lo"
2812 alpha-*-openbsd*)
2813 if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
2814 echo "configure: warning: OpenBSD/Alpha without dlopen(). Shared library support is disabled" 1>&2
2815 # Check whether --enable-shared or --disable-shared was given.
2816 if test "${enable_shared+set}" = set; then
2817 enableval="$enable_shared"
2818 p=${PACKAGE-default}
2819 case $enableval in
2820 yes) enable_shared=yes ;;
2821 no) enable_shared=no ;;
2823 enable_shared=no
2824 # Look at the argument we got. We use all the common list separators.
2825 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2826 for pkg in $enableval; do
2827 if test "X$pkg" = "X$p"; then
2828 enable_shared=yes
2830 done
2831 IFS="$ac_save_ifs"
2833 esac
2834 else
2835 enable_shared=no
2840 i?86-*-solaris2.[89]*)
2841 cat >> confdefs.h <<\EOF
2842 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
2846 mipstx39-*-elf*)
2847 machdep="mips_ultrix_mach_dep.lo"
2848 cat >> confdefs.h <<\EOF
2849 #define STACKBASE __stackbase
2852 cat >> confdefs.h <<\EOF
2853 #define DATASTART_IS_ETEXT 1
2857 mips-dec-ultrix*)
2858 machdep="mips_ultrix_mach-dep.lo"
2860 mips-*-*)
2861 machdep="mips_sgi_mach_dep.lo"
2862 cat >> confdefs.h <<\EOF
2863 #define NO_EXECUTE_PERMISSION 1
2867 sparc-sun-solaris2.3*)
2868 cat >> confdefs.h <<\EOF
2869 #define SUNOS53_SHARED_LIB 1
2873 ia64-*-hpux*)
2874 machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
2876 esac
2877 if test x"$machdep" = x; then
2878 machdep="mach_dep.lo"
2880 addobjs="$addobjs $machdep"
2883 case "$host" in
2884 sparc-sun-solaris2*)
2885 if test "$GCC" = yes; then
2886 new_CFLAGS=
2887 for i in $CFLAGS; do
2888 case "$i" in
2889 -O*)
2892 new_CFLAGS="$new_CFLAGS $i"
2894 esac
2895 done
2896 CFLAGS="$new_CFLAGS"
2899 esac
2901 MY_CFLAGS="$CFLAGS"
2904 cat >> confdefs.h <<\EOF
2905 #define SILENT 1
2908 cat >> confdefs.h <<\EOF
2909 #define NO_SIGNALS 1
2912 cat >> confdefs.h <<\EOF
2913 #define NO_EXECUTE_PERMISSION 1
2916 cat >> confdefs.h <<\EOF
2917 #define ALL_INTERIOR_POINTERS 1
2921 cat >> confdefs.h <<\EOF
2922 #define JAVA_FINALIZATION 1
2925 cat >> confdefs.h <<\EOF
2926 #define GC_GCJ_SUPPORT 1
2929 cat >> confdefs.h <<\EOF
2930 #define ATOMIC_UNCOLLECTABLE 1
2934 if test -n "${with_cross_host}"; then
2935 cat >> confdefs.h <<\EOF
2936 #define NO_SIGSET 1
2939 cat >> confdefs.h <<\EOF
2940 #define NO_CLOCK 1
2943 cat >> confdefs.h <<\EOF
2944 #define SMALL_CONFIG 1
2947 cat >> confdefs.h <<\EOF
2948 #define NO_DEBUGGING 1
2953 # Check whether --enable-full-debug or --disable-full-debug was given.
2954 if test "${enable_full_debug+set}" = set; then
2955 enableval="$enable_full_debug"
2956 if test "$enable_full_debug" = "yes"; then
2957 echo "configure: warning: "Must define GC_DEBUG and use debug alloc. in clients."" 1>&2
2958 cat >> confdefs.h <<\EOF
2959 #define KEEP_BACK_PTRS 1
2962 cat >> confdefs.h <<\EOF
2963 #define DBG_HDRS_ALL 1
2966 case $host in
2967 x86-*-linux* | i586-*-linux* | i686-*-linux* )
2968 echo "configure: warning: "Client must not use -fomit-frame-pointer."" 1>&2
2969 cat >> confdefs.h <<\EOF
2970 #define SAVE_CALL_COUNT 8
2974 esac
2981 if test -z "$with_cross_host"; then
2982 USE_LIBDIR_TRUE=
2983 USE_LIBDIR_FALSE='#'
2984 else
2985 USE_LIBDIR_TRUE='#'
2986 USE_LIBDIR_FALSE=
2989 if test "${multilib}" = "yes"; then
2990 multilib_arg="--enable-multilib"
2991 else
2992 multilib_arg=
2995 trap '' 1 2 15
2996 cat > confcache <<\EOF
2997 # This file is a shell script that caches the results of configure
2998 # tests run on this system so they can be shared between configure
2999 # scripts and configure runs. It is not useful on other systems.
3000 # If it contains results you don't want to keep, you may remove or edit it.
3002 # By default, configure uses ./config.cache as the cache file,
3003 # creating it if it does not exist already. You can give configure
3004 # the --cache-file=FILE option to use a different cache file; that is
3005 # what configure does when it calls configure scripts in
3006 # subdirectories, so they share the cache.
3007 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3008 # config.status only pays attention to the cache file if you give it the
3009 # --recheck option to rerun configure.
3012 # The following way of writing the cache mishandles newlines in values,
3013 # but we know of no workaround that is simple, portable, and efficient.
3014 # So, don't put newlines in cache variables' values.
3015 # Ultrix sh set writes to stderr and can't be redirected directly,
3016 # and sets the high bit in the cache file unless we assign to the vars.
3017 (set) 2>&1 |
3018 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3019 *ac_space=\ *)
3020 # `set' does not quote correctly, so add quotes (double-quote substitution
3021 # turns \\\\ into \\, and sed turns \\ into \).
3022 sed -n \
3023 -e "s/'/'\\\\''/g" \
3024 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3027 # `set' quotes correctly as required by POSIX, so do not add quotes.
3028 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3030 esac >> confcache
3031 if cmp -s $cache_file confcache; then
3033 else
3034 if test -w $cache_file; then
3035 echo "updating cache $cache_file"
3036 cat confcache > $cache_file
3037 else
3038 echo "not updating unwritable cache $cache_file"
3041 rm -f confcache
3043 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3045 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3046 # Let make expand exec_prefix.
3047 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3049 # Any assignment to VPATH causes Sun make to only execute
3050 # the first set of double-colon rules, so remove it if not needed.
3051 # If there is a colon in the path, we need to keep it.
3052 if test "x$srcdir" = x.; then
3053 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3056 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3058 # Transform confdefs.h into DEFS.
3059 # Protect against shell expansion while executing Makefile rules.
3060 # Protect against Makefile macro expansion.
3061 cat > conftest.defs <<\EOF
3062 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3063 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
3064 s%\[%\\&%g
3065 s%\]%\\&%g
3066 s%\$%$$%g
3068 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
3069 rm -f conftest.defs
3072 # Without the "./", some shells look in PATH for config.status.
3073 : ${CONFIG_STATUS=./config.status}
3075 echo creating $CONFIG_STATUS
3076 rm -f $CONFIG_STATUS
3077 cat > $CONFIG_STATUS <<EOF
3078 #! /bin/sh
3079 # Generated automatically by configure.
3080 # Run this file to recreate the current configuration.
3081 # This directory was configured as follows,
3082 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3084 # $0 $ac_configure_args
3086 # Compiler output produced by configure, useful for debugging
3087 # configure, is in ./config.log if it exists.
3089 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3090 for ac_option
3092 case "\$ac_option" in
3093 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3094 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3095 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3096 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3097 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3098 exit 0 ;;
3099 -help | --help | --hel | --he | --h)
3100 echo "\$ac_cs_usage"; exit 0 ;;
3101 *) echo "\$ac_cs_usage"; exit 1 ;;
3102 esac
3103 done
3105 ac_given_srcdir=$srcdir
3106 ac_given_INSTALL="$INSTALL"
3108 trap 'rm -fr `echo "Makefile include/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3110 cat >> $CONFIG_STATUS <<EOF
3112 # Protect against being on the right side of a sed subst in config.status.
3113 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3114 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3115 $ac_vpsub
3116 $extrasub
3117 s%@SHELL@%$SHELL%g
3118 s%@CFLAGS@%$CFLAGS%g
3119 s%@CPPFLAGS@%$CPPFLAGS%g
3120 s%@CXXFLAGS@%$CXXFLAGS%g
3121 s%@FFLAGS@%$FFLAGS%g
3122 s%@DEFS@%$DEFS%g
3123 s%@LDFLAGS@%$LDFLAGS%g
3124 s%@LIBS@%$LIBS%g
3125 s%@exec_prefix@%$exec_prefix%g
3126 s%@prefix@%$prefix%g
3127 s%@program_transform_name@%$program_transform_name%g
3128 s%@bindir@%$bindir%g
3129 s%@sbindir@%$sbindir%g
3130 s%@libexecdir@%$libexecdir%g
3131 s%@datadir@%$datadir%g
3132 s%@sysconfdir@%$sysconfdir%g
3133 s%@sharedstatedir@%$sharedstatedir%g
3134 s%@localstatedir@%$localstatedir%g
3135 s%@libdir@%$libdir%g
3136 s%@includedir@%$includedir%g
3137 s%@oldincludedir@%$oldincludedir%g
3138 s%@infodir@%$infodir%g
3139 s%@mandir@%$mandir%g
3140 s%@gc_basedir@%$gc_basedir%g
3141 s%@host@%$host%g
3142 s%@host_alias@%$host_alias%g
3143 s%@host_cpu@%$host_cpu%g
3144 s%@host_vendor@%$host_vendor%g
3145 s%@host_os@%$host_os%g
3146 s%@target@%$target%g
3147 s%@target_alias@%$target_alias%g
3148 s%@target_cpu@%$target_cpu%g
3149 s%@target_vendor@%$target_vendor%g
3150 s%@target_os@%$target_os%g
3151 s%@build@%$build%g
3152 s%@build_alias@%$build_alias%g
3153 s%@build_cpu@%$build_cpu%g
3154 s%@build_vendor@%$build_vendor%g
3155 s%@build_os@%$build_os%g
3156 s%@mkinstalldirs@%$mkinstalldirs%g
3157 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3158 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3159 s%@INSTALL_DATA@%$INSTALL_DATA%g
3160 s%@PACKAGE@%$PACKAGE%g
3161 s%@VERSION@%$VERSION%g
3162 s%@ACLOCAL@%$ACLOCAL%g
3163 s%@AUTOCONF@%$AUTOCONF%g
3164 s%@AUTOMAKE@%$AUTOMAKE%g
3165 s%@AUTOHEADER@%$AUTOHEADER%g
3166 s%@MAKEINFO@%$MAKEINFO%g
3167 s%@SET_MAKE@%$SET_MAKE%g
3168 s%@CC@%$CC%g
3169 s%@CXX@%$CXX%g
3170 s%@AS@%$AS%g
3171 s%@AR@%$AR%g
3172 s%@RANLIB@%$RANLIB%g
3173 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3174 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3175 s%@MAINT@%$MAINT%g
3176 s%@EXEEXT@%$EXEEXT%g
3177 s%@GC_CFLAGS@%$GC_CFLAGS%g
3178 s%@LN_S@%$LN_S%g
3179 s%@OBJEXT@%$OBJEXT%g
3180 s%@STRIP@%$STRIP%g
3181 s%@LIBTOOL@%$LIBTOOL%g
3182 s%@CXXCPP@%$CXXCPP%g
3183 s%@THREADLIBS@%$THREADLIBS%g
3184 s%@EXTRA_TEST_LIBS@%$EXTRA_TEST_LIBS%g
3185 s%@target_all@%$target_all%g
3186 s%@INCLUDES@%$INCLUDES%g
3187 s%@CXXINCLUDES@%$CXXINCLUDES%g
3188 s%@addobjs@%$addobjs%g
3189 s%@MY_CFLAGS@%$MY_CFLAGS%g
3190 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
3191 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
3193 CEOF
3196 cat >> $CONFIG_STATUS <<\EOF
3198 # Split the substitutions into bite-sized pieces for seds with
3199 # small command number limits, like on Digital OSF/1 and HP-UX.
3200 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3201 ac_file=1 # Number of current file.
3202 ac_beg=1 # First line for current file.
3203 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3204 ac_more_lines=:
3205 ac_sed_cmds=""
3206 while $ac_more_lines; do
3207 if test $ac_beg -gt 1; then
3208 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3209 else
3210 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3212 if test ! -s conftest.s$ac_file; then
3213 ac_more_lines=false
3214 rm -f conftest.s$ac_file
3215 else
3216 if test -z "$ac_sed_cmds"; then
3217 ac_sed_cmds="sed -f conftest.s$ac_file"
3218 else
3219 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3221 ac_file=`expr $ac_file + 1`
3222 ac_beg=$ac_end
3223 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3225 done
3226 if test -z "$ac_sed_cmds"; then
3227 ac_sed_cmds=cat
3231 cat >> $CONFIG_STATUS <<EOF
3233 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/Makefile"}
3235 cat >> $CONFIG_STATUS <<\EOF
3236 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3237 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3238 case "$ac_file" in
3239 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3240 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3241 *) ac_file_in="${ac_file}.in" ;;
3242 esac
3244 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3246 # Remove last slash and all that follows it. Not all systems have dirname.
3247 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3248 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3249 # The file is in a subdirectory.
3250 test ! -d "$ac_dir" && mkdir "$ac_dir"
3251 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3252 # A "../" for each directory in $ac_dir_suffix.
3253 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3254 else
3255 ac_dir_suffix= ac_dots=
3258 case "$ac_given_srcdir" in
3259 .) srcdir=.
3260 if test -z "$ac_dots"; then top_srcdir=.
3261 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3262 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3263 *) # Relative path.
3264 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3265 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3266 esac
3268 case "$ac_given_INSTALL" in
3269 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3270 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3271 esac
3273 echo creating "$ac_file"
3274 rm -f "$ac_file"
3275 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3276 case "$ac_file" in
3277 *Makefile*) ac_comsub="1i\\
3278 # $configure_input" ;;
3279 *) ac_comsub= ;;
3280 esac
3282 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3283 sed -e "$ac_comsub
3284 s%@configure_input@%$configure_input%g
3285 s%@srcdir@%$srcdir%g
3286 s%@top_srcdir@%$top_srcdir%g
3287 s%@INSTALL@%$INSTALL%g
3288 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3289 fi; done
3290 rm -f conftest.s*
3293 cat >> $CONFIG_STATUS <<EOF
3294 srcdir=${srcdir}
3295 host=${host}
3296 target=${target}
3297 with_multisubdir=${with_multisubdir}
3298 ac_configure_args="${multilib_arg} ${ac_configure_args}"
3299 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3300 gc_basedir=${gc_basedir}
3301 CC="${CC}"
3302 DEFS="$DEFS"
3305 cat >> $CONFIG_STATUS <<\EOF
3307 echo "$DEFS" > boehm-cflags
3309 if test -n "$CONFIG_FILES"; then
3310 ac_file=Makefile . ${gc_basedir}/../config-ml.in
3312 exit 0
3314 chmod +x $CONFIG_STATUS
3315 rm -fr confdefs* $ac_clean_files
3316 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1