Experiment:
[AROS-Contrib.git] / gc / configure
blob602a535143a6c728ba47d3c42b25ee62b488a701
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-target-subdir=SUBDIR
31 configuring with a cross compiler"
32 ac_help="$ac_help
33 --with-cross-host=HOST configuring with a cross compiler"
34 ac_help="$ac_help
35 --enable-maintainer-mode enable make rules and dependencies not useful
36 (and sometimes confusing) to the casual installer"
37 ac_help="$ac_help
38 --enable-threads=TYPE choose threading package"
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-full-debug include full support for pointer backtracing etc."
46 # Initialize some variables set by options.
47 # The variables have the same names as the options, with
48 # dashes changed to underlines.
49 build=NONE
50 cache_file=./config.cache
51 exec_prefix=NONE
52 host=NONE
53 no_create=
54 nonopt=NONE
55 no_recursion=
56 prefix=NONE
57 program_prefix=NONE
58 program_suffix=NONE
59 program_transform_name=s,x,x,
60 silent=
61 site=
62 srcdir=
63 target=NONE
64 verbose=
65 x_includes=NONE
66 x_libraries=NONE
67 bindir='${exec_prefix}/bin'
68 sbindir='${exec_prefix}/sbin'
69 libexecdir='${exec_prefix}/libexec'
70 datadir='${prefix}/share'
71 sysconfdir='${prefix}/etc'
72 sharedstatedir='${prefix}/com'
73 localstatedir='${prefix}/var'
74 libdir='${exec_prefix}/lib'
75 includedir='${prefix}/include'
76 oldincludedir='/usr/include'
77 infodir='${prefix}/info'
78 mandir='${prefix}/man'
80 # Initialize some other variables.
81 subdirs=
82 MFLAGS= MAKEFLAGS=
83 SHELL=${CONFIG_SHELL-/bin/sh}
84 # Maximum number of lines to put in a shell here document.
85 ac_max_here_lines=12
87 ac_prev=
88 for ac_option
91 # If the previous option needs an argument, assign it.
92 if test -n "$ac_prev"; then
93 eval "$ac_prev=\$ac_option"
94 ac_prev=
95 continue
98 case "$ac_option" in
99 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
100 *) ac_optarg= ;;
101 esac
103 # Accept the important Cygnus configure options, so we can diagnose typos.
105 case "$ac_option" in
107 -bindir | --bindir | --bindi | --bind | --bin | --bi)
108 ac_prev=bindir ;;
109 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
110 bindir="$ac_optarg" ;;
112 -build | --build | --buil | --bui | --bu)
113 ac_prev=build ;;
114 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
115 build="$ac_optarg" ;;
117 -cache-file | --cache-file | --cache-fil | --cache-fi \
118 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
119 ac_prev=cache_file ;;
120 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
121 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
122 cache_file="$ac_optarg" ;;
124 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
125 ac_prev=datadir ;;
126 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
127 | --da=*)
128 datadir="$ac_optarg" ;;
130 -disable-* | --disable-*)
131 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}=no" ;;
139 -enable-* | --enable-*)
140 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
141 # Reject names that are not valid shell variable names.
142 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
145 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
146 case "$ac_option" in
147 *=*) ;;
148 *) ac_optarg=yes ;;
149 esac
150 eval "enable_${ac_feature}='$ac_optarg'" ;;
152 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
153 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
154 | --exec | --exe | --ex)
155 ac_prev=exec_prefix ;;
156 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
157 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
158 | --exec=* | --exe=* | --ex=*)
159 exec_prefix="$ac_optarg" ;;
161 -gas | --gas | --ga | --g)
162 # Obsolete; use --with-gas.
163 with_gas=yes ;;
165 -help | --help | --hel | --he)
166 # Omit some internal or obsolete options to make the list less imposing.
167 # This message is too long to be a string in the A/UX 3.1 sh.
168 cat << EOF
169 Usage: configure [options] [host]
170 Options: [defaults in brackets after descriptions]
171 Configuration:
172 --cache-file=FILE cache test results in FILE
173 --help print this message
174 --no-create do not create output files
175 --quiet, --silent do not print \`checking...' messages
176 --version print the version of autoconf that created configure
177 Directory and file names:
178 --prefix=PREFIX install architecture-independent files in PREFIX
179 [$ac_default_prefix]
180 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
181 [same as prefix]
182 --bindir=DIR user executables in DIR [EPREFIX/bin]
183 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
184 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
185 --datadir=DIR read-only architecture-independent data in DIR
186 [PREFIX/share]
187 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
188 --sharedstatedir=DIR modifiable architecture-independent data in DIR
189 [PREFIX/com]
190 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
191 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
192 --includedir=DIR C header files in DIR [PREFIX/include]
193 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
194 --infodir=DIR info documentation in DIR [PREFIX/info]
195 --mandir=DIR man documentation in DIR [PREFIX/man]
196 --srcdir=DIR find the sources in DIR [configure dir or ..]
197 --program-prefix=PREFIX prepend PREFIX to installed program names
198 --program-suffix=SUFFIX append SUFFIX to installed program names
199 --program-transform-name=PROGRAM
200 run sed PROGRAM on installed program names
202 cat << EOF
203 Host type:
204 --build=BUILD configure for building on BUILD [BUILD=HOST]
205 --host=HOST configure for HOST [guessed]
206 --target=TARGET configure for TARGET [TARGET=HOST]
207 Features and packages:
208 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
209 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
210 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
211 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
212 --x-includes=DIR X include files are in DIR
213 --x-libraries=DIR X library files are in DIR
215 if test -n "$ac_help"; then
216 echo "--enable and --with options recognized:$ac_help"
218 exit 0 ;;
220 -host | --host | --hos | --ho)
221 ac_prev=host ;;
222 -host=* | --host=* | --hos=* | --ho=*)
223 host="$ac_optarg" ;;
225 -includedir | --includedir | --includedi | --included | --include \
226 | --includ | --inclu | --incl | --inc)
227 ac_prev=includedir ;;
228 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
229 | --includ=* | --inclu=* | --incl=* | --inc=*)
230 includedir="$ac_optarg" ;;
232 -infodir | --infodir | --infodi | --infod | --info | --inf)
233 ac_prev=infodir ;;
234 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
235 infodir="$ac_optarg" ;;
237 -libdir | --libdir | --libdi | --libd)
238 ac_prev=libdir ;;
239 -libdir=* | --libdir=* | --libdi=* | --libd=*)
240 libdir="$ac_optarg" ;;
242 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
243 | --libexe | --libex | --libe)
244 ac_prev=libexecdir ;;
245 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
246 | --libexe=* | --libex=* | --libe=*)
247 libexecdir="$ac_optarg" ;;
249 -localstatedir | --localstatedir | --localstatedi | --localstated \
250 | --localstate | --localstat | --localsta | --localst \
251 | --locals | --local | --loca | --loc | --lo)
252 ac_prev=localstatedir ;;
253 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
254 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
255 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
256 localstatedir="$ac_optarg" ;;
258 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
259 ac_prev=mandir ;;
260 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
261 mandir="$ac_optarg" ;;
263 -nfp | --nfp | --nf)
264 # Obsolete; use --without-fp.
265 with_fp=no ;;
267 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
268 | --no-cr | --no-c)
269 no_create=yes ;;
271 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
272 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
273 no_recursion=yes ;;
275 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
276 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
277 | --oldin | --oldi | --old | --ol | --o)
278 ac_prev=oldincludedir ;;
279 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
280 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
281 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
282 oldincludedir="$ac_optarg" ;;
284 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
285 ac_prev=prefix ;;
286 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
287 prefix="$ac_optarg" ;;
289 -program-prefix | --program-prefix | --program-prefi | --program-pref \
290 | --program-pre | --program-pr | --program-p)
291 ac_prev=program_prefix ;;
292 -program-prefix=* | --program-prefix=* | --program-prefi=* \
293 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
294 program_prefix="$ac_optarg" ;;
296 -program-suffix | --program-suffix | --program-suffi | --program-suff \
297 | --program-suf | --program-su | --program-s)
298 ac_prev=program_suffix ;;
299 -program-suffix=* | --program-suffix=* | --program-suffi=* \
300 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
301 program_suffix="$ac_optarg" ;;
303 -program-transform-name | --program-transform-name \
304 | --program-transform-nam | --program-transform-na \
305 | --program-transform-n | --program-transform- \
306 | --program-transform | --program-transfor \
307 | --program-transfo | --program-transf \
308 | --program-trans | --program-tran \
309 | --progr-tra | --program-tr | --program-t)
310 ac_prev=program_transform_name ;;
311 -program-transform-name=* | --program-transform-name=* \
312 | --program-transform-nam=* | --program-transform-na=* \
313 | --program-transform-n=* | --program-transform-=* \
314 | --program-transform=* | --program-transfor=* \
315 | --program-transfo=* | --program-transf=* \
316 | --program-trans=* | --program-tran=* \
317 | --progr-tra=* | --program-tr=* | --program-t=*)
318 program_transform_name="$ac_optarg" ;;
320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
321 | -silent | --silent | --silen | --sile | --sil)
322 silent=yes ;;
324 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
325 ac_prev=sbindir ;;
326 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
327 | --sbi=* | --sb=*)
328 sbindir="$ac_optarg" ;;
330 -sharedstatedir | --sharedstatedir | --sharedstatedi \
331 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
332 | --sharedst | --shareds | --shared | --share | --shar \
333 | --sha | --sh)
334 ac_prev=sharedstatedir ;;
335 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
336 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
337 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
338 | --sha=* | --sh=*)
339 sharedstatedir="$ac_optarg" ;;
341 -site | --site | --sit)
342 ac_prev=site ;;
343 -site=* | --site=* | --sit=*)
344 site="$ac_optarg" ;;
346 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
347 ac_prev=srcdir ;;
348 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
349 srcdir="$ac_optarg" ;;
351 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
352 | --syscon | --sysco | --sysc | --sys | --sy)
353 ac_prev=sysconfdir ;;
354 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
355 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
356 sysconfdir="$ac_optarg" ;;
358 -target | --target | --targe | --targ | --tar | --ta | --t)
359 ac_prev=target ;;
360 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
361 target="$ac_optarg" ;;
363 -v | -verbose | --verbose | --verbos | --verbo | --verb)
364 verbose=yes ;;
366 -version | --version | --versio | --versi | --vers)
367 echo "configure generated by autoconf version 2.13"
368 exit 0 ;;
370 -with-* | --with-*)
371 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 ac_package=`echo $ac_package| sed 's/-/_/g'`
377 case "$ac_option" in
378 *=*) ;;
379 *) ac_optarg=yes ;;
380 esac
381 eval "with_${ac_package}='$ac_optarg'" ;;
383 -without-* | --without-*)
384 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
385 # Reject names that are not valid shell variable names.
386 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
389 ac_package=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}=no" ;;
392 --x)
393 # Obsolete; use --with-x.
394 with_x=yes ;;
396 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
397 | --x-incl | --x-inc | --x-in | --x-i)
398 ac_prev=x_includes ;;
399 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
400 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
401 x_includes="$ac_optarg" ;;
403 -x-libraries | --x-libraries | --x-librarie | --x-librari \
404 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
405 ac_prev=x_libraries ;;
406 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
407 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
408 x_libraries="$ac_optarg" ;;
410 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
414 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
415 echo "configure: warning: $ac_option: invalid host type" 1>&2
417 if test "x$nonopt" != xNONE; then
418 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
420 nonopt="$ac_option"
423 esac
424 done
426 if test -n "$ac_prev"; then
427 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
430 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
432 # File descriptor usage:
433 # 0 standard input
434 # 1 file creation
435 # 2 errors and warnings
436 # 3 some systems may open it to /dev/tty
437 # 4 used on the Kubota Titan
438 # 6 checking for... messages and results
439 # 5 compiler messages saved in config.log
440 if test "$silent" = yes; then
441 exec 6>/dev/null
442 else
443 exec 6>&1
445 exec 5>./config.log
447 echo "\
448 This file contains any messages produced by compilers while
449 running configure, to aid debugging if configure makes a mistake.
450 " 1>&5
452 # Strip out --no-create and --no-recursion so they do not pile up.
453 # Also quote any args containing shell metacharacters.
454 ac_configure_args=
455 for ac_arg
457 case "$ac_arg" in
458 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
459 | --no-cr | --no-c) ;;
460 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
461 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
462 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
463 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
464 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
465 esac
466 done
468 # NLS nuisances.
469 # Only set these to C if already set. These must not be set unconditionally
470 # because not all systems understand e.g. LANG=C (notably SCO).
471 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
472 # Non-C LC_CTYPE values break the ctype check.
473 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
474 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
475 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
476 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
478 # confdefs.h avoids OS command line length limits that DEFS can exceed.
479 rm -rf conftest* confdefs.h
480 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
481 echo > confdefs.h
483 # A filename unique to this package, relative to the directory that
484 # configure is in, which we can look for to find out if srcdir is correct.
485 ac_unique_file=gcj_mlc.c
487 # Find the source files, if location was not specified.
488 if test -z "$srcdir"; then
489 ac_srcdir_defaulted=yes
490 # Try the directory containing this script, then its parent.
491 ac_prog=$0
492 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
493 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
494 srcdir=$ac_confdir
495 if test ! -r $srcdir/$ac_unique_file; then
496 srcdir=..
498 else
499 ac_srcdir_defaulted=no
501 if test ! -r $srcdir/$ac_unique_file; then
502 if test "$ac_srcdir_defaulted" = yes; then
503 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
504 else
505 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
508 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
510 # Prefer explicitly selected file to automatically selected ones.
511 if test -z "$CONFIG_SITE"; then
512 if test "x$prefix" != xNONE; then
513 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
514 else
515 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
518 for ac_site_file in $CONFIG_SITE; do
519 if test -r "$ac_site_file"; then
520 echo "loading site script $ac_site_file"
521 . "$ac_site_file"
523 done
525 if test -r "$cache_file"; then
526 echo "loading cache $cache_file"
527 . $cache_file
528 else
529 echo "creating cache $cache_file"
530 > $cache_file
533 ac_ext=c
534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
535 ac_cpp='$CPP $CPPFLAGS'
536 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
537 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
538 cross_compiling=$ac_cv_prog_cc_cross
540 ac_exeext=
541 ac_objext=o
542 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
543 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
544 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
545 ac_n= ac_c='
546 ' ac_t=' '
547 else
548 ac_n=-n ac_c= ac_t=
550 else
551 ac_n= ac_c='\c' ac_t=
556 ac_aux_dir=
557 for ac_dir in . $srcdir/.; do
558 if test -f $ac_dir/install-sh; then
559 ac_aux_dir=$ac_dir
560 ac_install_sh="$ac_aux_dir/install-sh -c"
561 break
562 elif test -f $ac_dir/install.sh; then
563 ac_aux_dir=$ac_dir
564 ac_install_sh="$ac_aux_dir/install.sh -c"
565 break
567 done
568 if test -z "$ac_aux_dir"; then
569 { echo "configure: error: can not find install-sh or install.sh in . $srcdir/." 1>&2; exit 1; }
571 ac_config_guess=$ac_aux_dir/config.guess
572 ac_config_sub=$ac_aux_dir/config.sub
573 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
577 # Do some error checking and defaulting for the host and target type.
578 # The inputs are:
579 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
581 # The rules are:
582 # 1. You are not allowed to specify --host, --target, and nonopt at the
583 # same time.
584 # 2. Host defaults to nonopt.
585 # 3. If nonopt is not specified, then host defaults to the current host,
586 # as determined by config.guess.
587 # 4. Target and build default to nonopt.
588 # 5. If nonopt is not specified, then target and build default to host.
590 # The aliases save the names the user supplied, while $host etc.
591 # will get canonicalized.
592 case $host---$target---$nonopt in
593 NONE---*---* | *---NONE---* | *---*---NONE) ;;
594 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
595 esac
598 # Make sure we can run config.sub.
599 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
600 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
603 echo $ac_n "checking host system type""... $ac_c" 1>&6
604 echo "configure:605: checking host system type" >&5
606 host_alias=$host
607 case "$host_alias" in
608 NONE)
609 case $nonopt in
610 NONE)
611 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
612 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
613 fi ;;
614 *) host_alias=$nonopt ;;
615 esac ;;
616 esac
618 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
619 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
620 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
621 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
622 echo "$ac_t""$host" 1>&6
624 echo $ac_n "checking target system type""... $ac_c" 1>&6
625 echo "configure:626: checking target system type" >&5
627 target_alias=$target
628 case "$target_alias" in
629 NONE)
630 case $nonopt in
631 NONE) target_alias=$host_alias ;;
632 *) target_alias=$nonopt ;;
633 esac ;;
634 esac
636 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
637 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
638 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
639 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
640 echo "$ac_t""$target" 1>&6
642 echo $ac_n "checking build system type""... $ac_c" 1>&6
643 echo "configure:644: checking build system type" >&5
645 build_alias=$build
646 case "$build_alias" in
647 NONE)
648 case $nonopt in
649 NONE) build_alias=$host_alias ;;
650 *) build_alias=$nonopt ;;
651 esac ;;
652 esac
654 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
655 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
656 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
657 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
658 echo "$ac_t""$build" 1>&6
660 test "$host_alias" != "$target_alias" &&
661 test "$program_prefix$program_suffix$program_transform_name" = \
662 NONENONEs,x,x, &&
663 program_prefix=${target_alias}-
666 # Find a good install program. We prefer a C program (faster),
667 # so one script is as good as another. But avoid the broken or
668 # incompatible versions:
669 # SysV /etc/install, /usr/sbin/install
670 # SunOS /usr/etc/install
671 # IRIX /sbin/install
672 # AIX /bin/install
673 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
674 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
675 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
676 # ./install, which can be erroneously created by make from ./install.sh.
677 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
678 echo "configure:679: checking for a BSD compatible install" >&5
679 if test -z "$INSTALL"; then
680 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
681 echo $ac_n "(cached) $ac_c" 1>&6
682 else
683 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
684 for ac_dir in $PATH; do
685 # Account for people who put trailing slashes in PATH elements.
686 case "$ac_dir/" in
687 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
689 # OSF1 and SCO ODT 3.0 have their own names for install.
690 # Don't use installbsd from OSF since it installs stuff as root
691 # by default.
692 for ac_prog in ginstall scoinst install; do
693 if test -f $ac_dir/$ac_prog; then
694 if test $ac_prog = install &&
695 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
696 # AIX install. It has an incompatible calling convention.
698 else
699 ac_cv_path_install="$ac_dir/$ac_prog -c"
700 break 2
703 done
705 esac
706 done
707 IFS="$ac_save_IFS"
710 if test "${ac_cv_path_install+set}" = set; then
711 INSTALL="$ac_cv_path_install"
712 else
713 # As a last resort, use the slow shell script. We don't cache a
714 # path for INSTALL within a source directory, because that will
715 # break other packages using the cache if that directory is
716 # removed, or if the path is relative.
717 INSTALL="$ac_install_sh"
720 echo "$ac_t""$INSTALL" 1>&6
722 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
723 # It thinks the first close brace ends the variable substitution.
724 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
726 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
728 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
730 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
731 echo "configure:732: checking whether build environment is sane" >&5
732 # Just in case
733 sleep 1
734 echo timestamp > conftestfile
735 # Do `set' in a subshell so we don't clobber the current shell's
736 # arguments. Must try -L first in case configure is actually a
737 # symlink; some systems play weird games with the mod time of symlinks
738 # (eg FreeBSD returns the mod time of the symlink's containing
739 # directory).
740 if (
741 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
742 if test "$*" = "X"; then
743 # -L didn't work.
744 set X `ls -t $srcdir/configure conftestfile`
746 if test "$*" != "X $srcdir/configure conftestfile" \
747 && test "$*" != "X conftestfile $srcdir/configure"; then
749 # If neither matched, then we have a broken ls. This can happen
750 # if, for instance, CONFIG_SHELL is bash and it inherits a
751 # broken ls alias from the environment. This has actually
752 # happened. Such a system could not be considered "sane".
753 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
754 alias in your environment" 1>&2; exit 1; }
757 test "$2" = conftestfile
759 then
760 # Ok.
762 else
763 { echo "configure: error: newly created file is older than distributed files!
764 Check your system clock" 1>&2; exit 1; }
766 rm -f conftest*
767 echo "$ac_t""yes" 1>&6
768 if test "$program_transform_name" = s,x,x,; then
769 program_transform_name=
770 else
771 # Double any \ or $. echo might interpret backslashes.
772 cat <<\EOF_SED > conftestsed
773 s,\\,\\\\,g; s,\$,$$,g
774 EOF_SED
775 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
776 rm -f conftestsed
778 test "$program_prefix" != NONE &&
779 program_transform_name="s,^,${program_prefix},; $program_transform_name"
780 # Use a double $ so make ignores it.
781 test "$program_suffix" != NONE &&
782 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
784 # sed with no file args requires a program.
785 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
787 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
788 echo "configure:789: checking whether ${MAKE-make} sets \${MAKE}" >&5
789 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
790 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
791 echo $ac_n "(cached) $ac_c" 1>&6
792 else
793 cat > conftestmake <<\EOF
794 all:
795 @echo 'ac_maketemp="${MAKE}"'
797 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
798 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
799 if test -n "$ac_maketemp"; then
800 eval ac_cv_prog_make_${ac_make}_set=yes
801 else
802 eval ac_cv_prog_make_${ac_make}_set=no
804 rm -f conftestmake
806 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
807 echo "$ac_t""yes" 1>&6
808 SET_MAKE=
809 else
810 echo "$ac_t""no" 1>&6
811 SET_MAKE="MAKE=${MAKE-make}"
814 if test $host != $build; then
815 ac_tool_prefix=${host_alias}-
816 else
817 ac_tool_prefix=
820 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
821 echo "configure:822: checking for Cygwin environment" >&5
822 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
823 echo $ac_n "(cached) $ac_c" 1>&6
824 else
825 cat > conftest.$ac_ext <<EOF
826 #line 827 "configure"
827 #include "confdefs.h"
829 int main() {
831 #ifndef __CYGWIN__
832 #define __CYGWIN__ __CYGWIN32__
833 #endif
834 return __CYGWIN__;
835 ; return 0; }
837 if { (eval echo configure:838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
838 rm -rf conftest*
839 ac_cv_cygwin=yes
840 else
841 echo "configure: failed program was:" >&5
842 cat conftest.$ac_ext >&5
843 rm -rf conftest*
844 ac_cv_cygwin=no
846 rm -f conftest*
847 rm -f conftest*
850 echo "$ac_t""$ac_cv_cygwin" 1>&6
851 CYGWIN=
852 test "$ac_cv_cygwin" = yes && CYGWIN=yes
853 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
854 echo "configure:855: checking for mingw32 environment" >&5
855 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
856 echo $ac_n "(cached) $ac_c" 1>&6
857 else
858 cat > conftest.$ac_ext <<EOF
859 #line 860 "configure"
860 #include "confdefs.h"
862 int main() {
863 return __MINGW32__;
864 ; return 0; }
866 if { (eval echo configure:867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
867 rm -rf conftest*
868 ac_cv_mingw32=yes
869 else
870 echo "configure: failed program was:" >&5
871 cat conftest.$ac_ext >&5
872 rm -rf conftest*
873 ac_cv_mingw32=no
875 rm -f conftest*
876 rm -f conftest*
879 echo "$ac_t""$ac_cv_mingw32" 1>&6
880 MINGW32=
881 test "$ac_cv_mingw32" = yes && MINGW32=yes
883 # Check whether --enable-multilib or --disable-multilib was given.
884 if test "${enable_multilib+set}" = set; then
885 enableval="$enable_multilib"
886 case "${enableval}" in
887 yes) multilib=yes ;;
888 no) multilib=no ;;
889 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
890 esac
891 else
892 multilib=yes
896 if test "${srcdir}" = "."; then
897 if test "${with_target_subdir}" != "." -a -n "${with_target_subdir}"; then
898 gc_basedir="${srcdir}/${with_multisrctop}../."
899 else
900 gc_basedir="${srcdir}/${with_multisrctop}."
902 else
903 gc_basedir="${srcdir}/."
906 ac_aux_dir=
907 for ac_dir in $gc_basedir $srcdir/$gc_basedir; do
908 if test -f $ac_dir/install-sh; then
909 ac_aux_dir=$ac_dir
910 ac_install_sh="$ac_aux_dir/install-sh -c"
911 break
912 elif test -f $ac_dir/install.sh; then
913 ac_aux_dir=$ac_dir
914 ac_install_sh="$ac_aux_dir/install.sh -c"
915 break
917 done
918 if test -z "$ac_aux_dir"; then
919 { echo "configure: error: can not find install-sh or install.sh in $gc_basedir $srcdir/$gc_basedir" 1>&2; exit 1; }
921 ac_config_guess=$ac_aux_dir/config.guess
922 ac_config_sub=$ac_aux_dir/config.sub
923 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
927 # Do some error checking and defaulting for the host and target type.
928 # The inputs are:
929 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
931 # The rules are:
932 # 1. You are not allowed to specify --host, --target, and nonopt at the
933 # same time.
934 # 2. Host defaults to nonopt.
935 # 3. If nonopt is not specified, then host defaults to the current host,
936 # as determined by config.guess.
937 # 4. Target and build default to nonopt.
938 # 5. If nonopt is not specified, then target and build default to host.
940 # The aliases save the names the user supplied, while $host etc.
941 # will get canonicalized.
942 case $host---$target---$nonopt in
943 NONE---*---* | *---NONE---* | *---*---NONE) ;;
944 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
945 esac
948 # Make sure we can run config.sub.
949 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
950 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
953 echo $ac_n "checking host system type""... $ac_c" 1>&6
954 echo "configure:955: checking host system type" >&5
956 host_alias=$host
957 case "$host_alias" in
958 NONE)
959 case $nonopt in
960 NONE)
961 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
962 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
963 fi ;;
964 *) host_alias=$nonopt ;;
965 esac ;;
966 esac
968 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
969 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
970 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
971 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
972 echo "$ac_t""$host" 1>&6
974 echo $ac_n "checking target system type""... $ac_c" 1>&6
975 echo "configure:976: checking target system type" >&5
977 target_alias=$target
978 case "$target_alias" in
979 NONE)
980 case $nonopt in
981 NONE) target_alias=$host_alias ;;
982 *) target_alias=$nonopt ;;
983 esac ;;
984 esac
986 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
987 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
988 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
989 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
990 echo "$ac_t""$target" 1>&6
992 echo $ac_n "checking build system type""... $ac_c" 1>&6
993 echo "configure:994: checking build system type" >&5
995 build_alias=$build
996 case "$build_alias" in
997 NONE)
998 case $nonopt in
999 NONE) build_alias=$host_alias ;;
1000 *) build_alias=$nonopt ;;
1001 esac ;;
1002 esac
1004 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1005 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1006 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1007 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1008 echo "$ac_t""$build" 1>&6
1010 test "$host_alias" != "$target_alias" &&
1011 test "$program_prefix$program_suffix$program_transform_name" = \
1012 NONENONEs,x,x, &&
1013 program_prefix=${target_alias}-
1017 PACKAGE=gc
1019 VERSION=6.0
1021 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1022 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1027 missing_dir=`cd $ac_aux_dir && pwd`
1028 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1029 echo "configure:1030: checking for working aclocal" >&5
1030 # Run test in a subshell; some versions of sh will print an error if
1031 # an executable is not found, even if stderr is redirected.
1032 # Redirect stdin to placate older versions of autoconf. Sigh.
1033 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1034 ACLOCAL=aclocal
1035 echo "$ac_t""found" 1>&6
1036 else
1037 ACLOCAL="$missing_dir/missing aclocal"
1038 echo "$ac_t""missing" 1>&6
1041 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1042 echo "configure:1043: checking for working autoconf" >&5
1043 # Run test in a subshell; some versions of sh will print an error if
1044 # an executable is not found, even if stderr is redirected.
1045 # Redirect stdin to placate older versions of autoconf. Sigh.
1046 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1047 AUTOCONF=autoconf
1048 echo "$ac_t""found" 1>&6
1049 else
1050 AUTOCONF="$missing_dir/missing autoconf"
1051 echo "$ac_t""missing" 1>&6
1054 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1055 echo "configure:1056: checking for working automake" >&5
1056 # Run test in a subshell; some versions of sh will print an error if
1057 # an executable is not found, even if stderr is redirected.
1058 # Redirect stdin to placate older versions of autoconf. Sigh.
1059 if (automake --version) < /dev/null > /dev/null 2>&1; then
1060 AUTOMAKE=automake
1061 echo "$ac_t""found" 1>&6
1062 else
1063 AUTOMAKE="$missing_dir/missing automake"
1064 echo "$ac_t""missing" 1>&6
1067 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1068 echo "configure:1069: checking for working autoheader" >&5
1069 # Run test in a subshell; some versions of sh will print an error if
1070 # an executable is not found, even if stderr is redirected.
1071 # Redirect stdin to placate older versions of autoconf. Sigh.
1072 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1073 AUTOHEADER=autoheader
1074 echo "$ac_t""found" 1>&6
1075 else
1076 AUTOHEADER="$missing_dir/missing autoheader"
1077 echo "$ac_t""missing" 1>&6
1080 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1081 echo "configure:1082: checking for working makeinfo" >&5
1082 # Run test in a subshell; some versions of sh will print an error if
1083 # an executable is not found, even if stderr is redirected.
1084 # Redirect stdin to placate older versions of autoconf. Sigh.
1085 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1086 MAKEINFO=makeinfo
1087 echo "$ac_t""found" 1>&6
1088 else
1089 MAKEINFO="$missing_dir/missing makeinfo"
1090 echo "$ac_t""missing" 1>&6
1095 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1096 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1097 # are probably using a cross compiler, which will not be able to fully
1098 # link an executable. This should really be fixed in autoconf
1099 # itself.
1104 # Extract the first word of "gcc", so it can be a program name with args.
1105 set dummy gcc; ac_word=$2
1106 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1107 echo "configure:1108: checking for $ac_word" >&5
1108 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1109 echo $ac_n "(cached) $ac_c" 1>&6
1110 else
1111 if test -n "$CC"; then
1112 ac_cv_prog_CC="$CC" # Let the user override the test.
1113 else
1114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1115 ac_dummy="$PATH"
1116 for ac_dir in $ac_dummy; do
1117 test -z "$ac_dir" && ac_dir=.
1118 if test -f $ac_dir/$ac_word; then
1119 ac_cv_prog_CC="gcc"
1120 break
1122 done
1123 IFS="$ac_save_ifs"
1126 CC="$ac_cv_prog_CC"
1127 if test -n "$CC"; then
1128 echo "$ac_t""$CC" 1>&6
1129 else
1130 echo "$ac_t""no" 1>&6
1133 if test -z "$CC"; then
1134 # Extract the first word of "cc", so it can be a program name with args.
1135 set dummy cc; ac_word=$2
1136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1137 echo "configure:1138: checking for $ac_word" >&5
1138 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1139 echo $ac_n "(cached) $ac_c" 1>&6
1140 else
1141 if test -n "$CC"; then
1142 ac_cv_prog_CC="$CC" # Let the user override the test.
1143 else
1144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1145 ac_prog_rejected=no
1146 ac_dummy="$PATH"
1147 for ac_dir in $ac_dummy; do
1148 test -z "$ac_dir" && ac_dir=.
1149 if test -f $ac_dir/$ac_word; then
1150 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1151 ac_prog_rejected=yes
1152 continue
1154 ac_cv_prog_CC="cc"
1155 break
1157 done
1158 IFS="$ac_save_ifs"
1159 if test $ac_prog_rejected = yes; then
1160 # We found a bogon in the path, so make sure we never use it.
1161 set dummy $ac_cv_prog_CC
1162 shift
1163 if test $# -gt 0; then
1164 # We chose a different compiler from the bogus one.
1165 # However, it has the same basename, so the bogon will be chosen
1166 # first if we set CC to just the basename; use the full file name.
1167 shift
1168 set dummy "$ac_dir/$ac_word" "$@"
1169 shift
1170 ac_cv_prog_CC="$@"
1175 CC="$ac_cv_prog_CC"
1176 if test -n "$CC"; then
1177 echo "$ac_t""$CC" 1>&6
1178 else
1179 echo "$ac_t""no" 1>&6
1182 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1185 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1186 echo "configure:1187: checking whether we are using GNU C" >&5
1187 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1188 echo $ac_n "(cached) $ac_c" 1>&6
1189 else
1190 cat > conftest.c <<EOF
1191 #ifdef __GNUC__
1192 yes;
1193 #endif
1195 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1196 ac_cv_prog_gcc=yes
1197 else
1198 ac_cv_prog_gcc=no
1202 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1204 if test $ac_cv_prog_gcc = yes; then
1205 GCC=yes
1206 ac_test_CFLAGS="${CFLAGS+set}"
1207 ac_save_CFLAGS="$CFLAGS"
1208 CFLAGS=
1209 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1210 echo "configure:1211: checking whether ${CC-cc} accepts -g" >&5
1211 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1212 echo $ac_n "(cached) $ac_c" 1>&6
1213 else
1214 echo 'void f(){}' > conftest.c
1215 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1216 ac_cv_prog_cc_g=yes
1217 else
1218 ac_cv_prog_cc_g=no
1220 rm -f conftest*
1224 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1225 if test "$ac_test_CFLAGS" = set; then
1226 CFLAGS="$ac_save_CFLAGS"
1227 elif test $ac_cv_prog_cc_g = yes; then
1228 CFLAGS="-g -O2"
1229 else
1230 CFLAGS="-O2"
1232 else
1233 GCC=
1234 test "${CFLAGS+set}" = set || CFLAGS="-g"
1238 # Likewise for AC_PROG_CXX.
1242 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1244 # Extract the first word of "$ac_prog", so it can be a program name with args.
1245 set dummy $ac_prog; ac_word=$2
1246 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1247 echo "configure:1248: checking for $ac_word" >&5
1248 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1249 echo $ac_n "(cached) $ac_c" 1>&6
1250 else
1251 if test -n "$CXX"; then
1252 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1253 else
1254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1255 ac_dummy="$PATH"
1256 for ac_dir in $ac_dummy; do
1257 test -z "$ac_dir" && ac_dir=.
1258 if test -f $ac_dir/$ac_word; then
1259 ac_cv_prog_CXX="$ac_prog"
1260 break
1262 done
1263 IFS="$ac_save_ifs"
1266 CXX="$ac_cv_prog_CXX"
1267 if test -n "$CXX"; then
1268 echo "$ac_t""$CXX" 1>&6
1269 else
1270 echo "$ac_t""no" 1>&6
1273 test -n "$CXX" && break
1274 done
1275 test -n "$CXX" || CXX="gcc"
1277 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1279 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1280 echo "configure:1281: checking whether we are using GNU C++" >&5
1281 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1282 echo $ac_n "(cached) $ac_c" 1>&6
1283 else
1284 cat > conftest.C <<EOF
1285 #ifdef __GNUC__
1286 yes;
1287 #endif
1289 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1290 ac_cv_prog_gxx=yes
1291 else
1292 ac_cv_prog_gxx=no
1296 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1298 if test $ac_cv_prog_gxx = yes; then
1299 GXX=yes
1300 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1301 ac_save_CXXFLAGS="$CXXFLAGS"
1302 CXXFLAGS=
1303 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1304 echo "configure:1305: checking whether ${CXX-g++} accepts -g" >&5
1305 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1307 else
1308 echo 'void f(){}' > conftest.cc
1309 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1310 ac_cv_prog_cxx_g=yes
1311 else
1312 ac_cv_prog_cxx_g=no
1314 rm -f conftest*
1318 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1319 if test "$ac_test_CXXFLAGS" = set; then
1320 CXXFLAGS="$ac_save_CXXFLAGS"
1321 elif test $ac_cv_prog_cxx_g = yes; then
1322 CXXFLAGS="-g -O2"
1323 else
1324 CXXFLAGS="-O2"
1326 else
1327 GXX=
1328 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1332 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1333 # run it explicitly here, it will be run implicitly before
1334 # NEWLIB_CONFIGURE, which doesn't work because that means that it will
1335 # be run before AC_CANONICAL_HOST.
1336 echo $ac_n "checking build system type""... $ac_c" 1>&6
1337 echo "configure:1338: checking build system type" >&5
1339 build_alias=$build
1340 case "$build_alias" in
1341 NONE)
1342 case $nonopt in
1343 NONE) build_alias=$host_alias ;;
1344 *) build_alias=$nonopt ;;
1345 esac ;;
1346 esac
1348 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1349 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1350 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1351 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1352 echo "$ac_t""$build" 1>&6
1355 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1356 set dummy ${ac_tool_prefix}as; ac_word=$2
1357 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1358 echo "configure:1359: checking for $ac_word" >&5
1359 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1361 else
1362 if test -n "$AS"; then
1363 ac_cv_prog_AS="$AS" # Let the user override the test.
1364 else
1365 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1366 ac_dummy="$PATH"
1367 for ac_dir in $ac_dummy; do
1368 test -z "$ac_dir" && ac_dir=.
1369 if test -f $ac_dir/$ac_word; then
1370 ac_cv_prog_AS="${ac_tool_prefix}as"
1371 break
1373 done
1374 IFS="$ac_save_ifs"
1375 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1378 AS="$ac_cv_prog_AS"
1379 if test -n "$AS"; then
1380 echo "$ac_t""$AS" 1>&6
1381 else
1382 echo "$ac_t""no" 1>&6
1387 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1388 set dummy ${ac_tool_prefix}ar; ac_word=$2
1389 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1390 echo "configure:1391: checking for $ac_word" >&5
1391 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1392 echo $ac_n "(cached) $ac_c" 1>&6
1393 else
1394 if test -n "$AR"; then
1395 ac_cv_prog_AR="$AR" # Let the user override the test.
1396 else
1397 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1398 ac_dummy="$PATH"
1399 for ac_dir in $ac_dummy; do
1400 test -z "$ac_dir" && ac_dir=.
1401 if test -f $ac_dir/$ac_word; then
1402 ac_cv_prog_AR="${ac_tool_prefix}ar"
1403 break
1405 done
1406 IFS="$ac_save_ifs"
1407 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1410 AR="$ac_cv_prog_AR"
1411 if test -n "$AR"; then
1412 echo "$ac_t""$AR" 1>&6
1413 else
1414 echo "$ac_t""no" 1>&6
1419 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1420 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1421 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1422 echo "configure:1423: checking for $ac_word" >&5
1423 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1424 echo $ac_n "(cached) $ac_c" 1>&6
1425 else
1426 if test -n "$RANLIB"; then
1427 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1428 else
1429 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1430 ac_dummy="$PATH"
1431 for ac_dir in $ac_dummy; do
1432 test -z "$ac_dir" && ac_dir=.
1433 if test -f $ac_dir/$ac_word; then
1434 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1435 break
1437 done
1438 IFS="$ac_save_ifs"
1441 RANLIB="$ac_cv_prog_RANLIB"
1442 if test -n "$RANLIB"; then
1443 echo "$ac_t""$RANLIB" 1>&6
1444 else
1445 echo "$ac_t""no" 1>&6
1449 if test -z "$ac_cv_prog_RANLIB"; then
1450 if test -n "$ac_tool_prefix"; then
1451 # Extract the first word of "ranlib", so it can be a program name with args.
1452 set dummy ranlib; ac_word=$2
1453 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1454 echo "configure:1455: checking for $ac_word" >&5
1455 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1456 echo $ac_n "(cached) $ac_c" 1>&6
1457 else
1458 if test -n "$RANLIB"; then
1459 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1460 else
1461 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1462 ac_dummy="$PATH"
1463 for ac_dir in $ac_dummy; do
1464 test -z "$ac_dir" && ac_dir=.
1465 if test -f $ac_dir/$ac_word; then
1466 ac_cv_prog_RANLIB="ranlib"
1467 break
1469 done
1470 IFS="$ac_save_ifs"
1471 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1474 RANLIB="$ac_cv_prog_RANLIB"
1475 if test -n "$RANLIB"; then
1476 echo "$ac_t""$RANLIB" 1>&6
1477 else
1478 echo "$ac_t""no" 1>&6
1481 else
1482 RANLIB=":"
1487 # Find a good install program. We prefer a C program (faster),
1488 # so one script is as good as another. But avoid the broken or
1489 # incompatible versions:
1490 # SysV /etc/install, /usr/sbin/install
1491 # SunOS /usr/etc/install
1492 # IRIX /sbin/install
1493 # AIX /bin/install
1494 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1495 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1496 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1497 # ./install, which can be erroneously created by make from ./install.sh.
1498 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1499 echo "configure:1500: checking for a BSD compatible install" >&5
1500 if test -z "$INSTALL"; then
1501 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1502 echo $ac_n "(cached) $ac_c" 1>&6
1503 else
1504 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1505 for ac_dir in $PATH; do
1506 # Account for people who put trailing slashes in PATH elements.
1507 case "$ac_dir/" in
1508 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1510 # OSF1 and SCO ODT 3.0 have their own names for install.
1511 # Don't use installbsd from OSF since it installs stuff as root
1512 # by default.
1513 for ac_prog in ginstall scoinst install; do
1514 if test -f $ac_dir/$ac_prog; then
1515 if test $ac_prog = install &&
1516 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1517 # AIX install. It has an incompatible calling convention.
1519 else
1520 ac_cv_path_install="$ac_dir/$ac_prog -c"
1521 break 2
1524 done
1526 esac
1527 done
1528 IFS="$ac_save_IFS"
1531 if test "${ac_cv_path_install+set}" = set; then
1532 INSTALL="$ac_cv_path_install"
1533 else
1534 # As a last resort, use the slow shell script. We don't cache a
1535 # path for INSTALL within a source directory, because that will
1536 # break other packages using the cache if that directory is
1537 # removed, or if the path is relative.
1538 INSTALL="$ac_install_sh"
1541 echo "$ac_t""$INSTALL" 1>&6
1543 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1544 # It thinks the first close brace ends the variable substitution.
1545 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1547 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1549 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1552 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1553 echo "configure:1554: checking whether to enable maintainer-specific portions of Makefiles" >&5
1554 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1555 if test "${enable_maintainer_mode+set}" = set; then
1556 enableval="$enable_maintainer_mode"
1557 USE_MAINTAINER_MODE=$enableval
1558 else
1559 USE_MAINTAINER_MODE=no
1562 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1565 if test $USE_MAINTAINER_MODE = yes; then
1566 MAINTAINER_MODE_TRUE=
1567 MAINTAINER_MODE_FALSE='#'
1568 else
1569 MAINTAINER_MODE_TRUE='#'
1570 MAINTAINER_MODE_FALSE=
1572 MAINT=$MAINTAINER_MODE_TRUE
1576 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1577 # at least currently, we never actually build a program, so we never
1578 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1579 # fails, because we are probably configuring with a cross compiler
1580 # which can't create executables. So we include AC_EXEEXT to keep
1581 # automake happy, but we don't execute it, since we don't care about
1582 # the result.
1583 if false; then
1584 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1585 # to nothing, so nothing would remain between `then' and `fi' if it
1586 # were not for the `:' below.
1590 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1591 echo "configure:1592: checking for executable suffix" >&5
1592 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1593 echo $ac_n "(cached) $ac_c" 1>&6
1594 else
1595 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1596 ac_cv_exeext=.exe
1597 else
1598 rm -f conftest*
1599 echo 'int main () { return 0; }' > conftest.$ac_ext
1600 ac_cv_exeext=
1601 if { (eval echo configure:1602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1602 for file in conftest.*; do
1603 case $file in
1604 *.c | *.o | *.obj) ;;
1605 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1606 esac
1607 done
1608 else
1609 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1611 rm -f conftest*
1612 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1616 EXEEXT=""
1617 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1618 echo "$ac_t""${ac_cv_exeext}" 1>&6
1619 ac_exeext=$EXEEXT
1623 . ${srcdir}/configure.host
1625 case ${gc_basedir} in
1626 /* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
1627 *) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
1628 esac
1630 gc_cflags="${gc_cflags} -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
1631 case "${host}" in
1632 *-*-cygwin32*)
1633 gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
1635 esac
1638 GC_CFLAGS=${gc_cflags}
1642 # Check whether --enable-shared or --disable-shared was given.
1643 if test "${enable_shared+set}" = set; then
1644 enableval="$enable_shared"
1645 p=${PACKAGE-default}
1646 case "$enableval" in
1647 yes) enable_shared=yes ;;
1648 no) enable_shared=no ;;
1650 enable_shared=no
1651 # Look at the argument we got. We use all the common list separators.
1652 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1653 for pkg in $enableval; do
1654 if test "X$pkg" = "X$p"; then
1655 enable_shared=yes
1657 done
1658 IFS="$ac_save_ifs"
1660 esac
1661 else
1662 enable_shared=yes
1665 # Check whether --enable-static or --disable-static was given.
1666 if test "${enable_static+set}" = set; then
1667 enableval="$enable_static"
1668 p=${PACKAGE-default}
1669 case "$enableval" in
1670 yes) enable_static=yes ;;
1671 no) enable_static=no ;;
1673 enable_static=no
1674 # Look at the argument we got. We use all the common list separators.
1675 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1676 for pkg in $enableval; do
1677 if test "X$pkg" = "X$p"; then
1678 enable_static=yes
1680 done
1681 IFS="$ac_save_ifs"
1683 esac
1684 else
1685 enable_static=yes
1688 # Check whether --enable-fast-install or --disable-fast-install was given.
1689 if test "${enable_fast_install+set}" = set; then
1690 enableval="$enable_fast_install"
1691 p=${PACKAGE-default}
1692 case "$enableval" in
1693 yes) enable_fast_install=yes ;;
1694 no) enable_fast_install=no ;;
1696 enable_fast_install=no
1697 # Look at the argument we got. We use all the common list separators.
1698 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1699 for pkg in $enableval; do
1700 if test "X$pkg" = "X$p"; then
1701 enable_fast_install=yes
1703 done
1704 IFS="$ac_save_ifs"
1706 esac
1707 else
1708 enable_fast_install=yes
1711 # Extract the first word of "ranlib", so it can be a program name with args.
1712 set dummy ranlib; ac_word=$2
1713 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1714 echo "configure:1715: checking for $ac_word" >&5
1715 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1716 echo $ac_n "(cached) $ac_c" 1>&6
1717 else
1718 if test -n "$RANLIB"; then
1719 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1720 else
1721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1722 ac_dummy="$PATH"
1723 for ac_dir in $ac_dummy; do
1724 test -z "$ac_dir" && ac_dir=.
1725 if test -f $ac_dir/$ac_word; then
1726 ac_cv_prog_RANLIB="ranlib"
1727 break
1729 done
1730 IFS="$ac_save_ifs"
1731 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1734 RANLIB="$ac_cv_prog_RANLIB"
1735 if test -n "$RANLIB"; then
1736 echo "$ac_t""$RANLIB" 1>&6
1737 else
1738 echo "$ac_t""no" 1>&6
1741 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1742 if test "${with_gnu_ld+set}" = set; then
1743 withval="$with_gnu_ld"
1744 test "$withval" = no || with_gnu_ld=yes
1745 else
1746 with_gnu_ld=no
1749 ac_prog=ld
1750 if test "$ac_cv_prog_gcc" = yes; then
1751 # Check if gcc -print-prog-name=ld gives a path.
1752 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1753 echo "configure:1754: checking for ld used by GCC" >&5
1754 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1755 case "$ac_prog" in
1756 # Accept absolute paths.
1757 [\\/]* | [A-Za-z]:[\\/]*)
1758 re_direlt='/[^/][^/]*/\.\./'
1759 # Canonicalize the path of ld
1760 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1761 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1762 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1763 done
1764 test -z "$LD" && LD="$ac_prog"
1767 # If it fails, then pretend we aren't using GCC.
1768 ac_prog=ld
1771 # If it is relative, then search for the first ld in PATH.
1772 with_gnu_ld=unknown
1774 esac
1775 elif test "$with_gnu_ld" = yes; then
1776 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1777 echo "configure:1778: checking for GNU ld" >&5
1778 else
1779 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1780 echo "configure:1781: checking for non-GNU ld" >&5
1782 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1783 echo $ac_n "(cached) $ac_c" 1>&6
1784 else
1785 if test -z "$LD"; then
1786 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1787 for ac_dir in $PATH; do
1788 test -z "$ac_dir" && ac_dir=.
1789 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1790 ac_cv_path_LD="$ac_dir/$ac_prog"
1791 # Check to see if the program is GNU ld. I'd rather use --version,
1792 # but apparently some GNU ld's only accept -v.
1793 # Break only if it was the GNU/non-GNU ld that we prefer.
1794 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1795 test "$with_gnu_ld" != no && break
1796 else
1797 test "$with_gnu_ld" != yes && break
1800 done
1801 IFS="$ac_save_ifs"
1802 else
1803 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1807 LD="$ac_cv_path_LD"
1808 if test -n "$LD"; then
1809 echo "$ac_t""$LD" 1>&6
1810 else
1811 echo "$ac_t""no" 1>&6
1813 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1814 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1815 echo "configure:1816: checking if the linker ($LD) is GNU ld" >&5
1816 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1818 else
1819 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1820 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1821 ac_cv_prog_gnu_ld=yes
1822 else
1823 ac_cv_prog_gnu_ld=no
1827 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1830 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1831 echo "configure:1832: checking for BSD-compatible nm" >&5
1832 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1833 echo $ac_n "(cached) $ac_c" 1>&6
1834 else
1835 if test -n "$NM"; then
1836 # Let the user override the test.
1837 ac_cv_path_NM="$NM"
1838 else
1839 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1840 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1841 test -z "$ac_dir" && ac_dir=.
1842 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1843 # Check to see if the nm accepts a BSD-compat flag.
1844 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1845 # nm: unknown option "B" ignored
1846 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1847 ac_cv_path_NM="$ac_dir/nm -B"
1848 break
1849 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1850 ac_cv_path_NM="$ac_dir/nm -p"
1851 break
1852 else
1853 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1854 continue # so that we can try to find one that supports BSD flags
1857 done
1858 IFS="$ac_save_ifs"
1859 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1863 NM="$ac_cv_path_NM"
1864 echo "$ac_t""$NM" 1>&6
1866 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1867 echo "configure:1868: checking whether ln -s works" >&5
1868 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1869 echo $ac_n "(cached) $ac_c" 1>&6
1870 else
1871 rm -f conftestdata
1872 if ln -s X conftestdata 2>/dev/null
1873 then
1874 rm -f conftestdata
1875 ac_cv_prog_LN_S="ln -s"
1876 else
1877 ac_cv_prog_LN_S=ln
1880 LN_S="$ac_cv_prog_LN_S"
1881 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1882 echo "$ac_t""yes" 1>&6
1883 else
1884 echo "$ac_t""no" 1>&6
1888 case "$target" in
1889 NONE) lt_target="$host" ;;
1890 *) lt_target="$target" ;;
1891 esac
1893 # Check for any special flags to pass to ltconfig.
1895 # the following will cause an existing older ltconfig to fail, so
1896 # we ignore this at the expense of the cache file... Checking this
1897 # will just take longer ... bummer!
1898 #libtool_flags="--cache-file=$cache_file"
1900 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1901 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1902 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1903 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1904 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1907 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1908 if test "${enable_libtool_lock+set}" = set; then
1909 enableval="$enable_libtool_lock"
1913 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1914 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1916 # Some flags need to be propagated to the compiler or linker for good
1917 # libtool support.
1918 case "$lt_target" in
1919 *-*-irix6*)
1920 # Find out which ABI we are using.
1921 echo '#line 1922 "configure"' > conftest.$ac_ext
1922 if { (eval echo configure:1923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1923 case "`/usr/bin/file conftest.o`" in
1924 *32-bit*)
1925 LD="${LD-ld} -32"
1927 *N32*)
1928 LD="${LD-ld} -n32"
1930 *64-bit*)
1931 LD="${LD-ld} -64"
1933 esac
1935 rm -rf conftest*
1938 *-*-sco3.2v5*)
1939 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1940 SAVE_CFLAGS="$CFLAGS"
1941 CFLAGS="$CFLAGS -belf"
1942 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1943 echo "configure:1944: checking whether the C compiler needs -belf" >&5
1944 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1945 echo $ac_n "(cached) $ac_c" 1>&6
1946 else
1947 cat > conftest.$ac_ext <<EOF
1948 #line 1949 "configure"
1949 #include "confdefs.h"
1951 int main() {
1953 ; return 0; }
1955 if { (eval echo configure:1956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1956 rm -rf conftest*
1957 lt_cv_cc_needs_belf=yes
1958 else
1959 echo "configure: failed program was:" >&5
1960 cat conftest.$ac_ext >&5
1961 rm -rf conftest*
1962 lt_cv_cc_needs_belf=no
1964 rm -f conftest*
1967 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1968 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1969 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1970 CFLAGS="$SAVE_CFLAGS"
1975 esac
1978 # Save cache, so that ltconfig can load it
1979 cat > confcache <<\EOF
1980 # This file is a shell script that caches the results of configure
1981 # tests run on this system so they can be shared between configure
1982 # scripts and configure runs. It is not useful on other systems.
1983 # If it contains results you don't want to keep, you may remove or edit it.
1985 # By default, configure uses ./config.cache as the cache file,
1986 # creating it if it does not exist already. You can give configure
1987 # the --cache-file=FILE option to use a different cache file; that is
1988 # what configure does when it calls configure scripts in
1989 # subdirectories, so they share the cache.
1990 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1991 # config.status only pays attention to the cache file if you give it the
1992 # --recheck option to rerun configure.
1995 # The following way of writing the cache mishandles newlines in values,
1996 # but we know of no workaround that is simple, portable, and efficient.
1997 # So, don't put newlines in cache variables' values.
1998 # Ultrix sh set writes to stderr and can't be redirected directly,
1999 # and sets the high bit in the cache file unless we assign to the vars.
2000 (set) 2>&1 |
2001 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2002 *ac_space=\ *)
2003 # `set' does not quote correctly, so add quotes (double-quote substitution
2004 # turns \\\\ into \\, and sed turns \\ into \).
2005 sed -n \
2006 -e "s/'/'\\\\''/g" \
2007 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2010 # `set' quotes correctly as required by POSIX, so do not add quotes.
2011 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2013 esac >> confcache
2014 if cmp -s $cache_file confcache; then
2016 else
2017 if test -w $cache_file; then
2018 echo "updating cache $cache_file"
2019 cat confcache > $cache_file
2020 else
2021 echo "not updating unwritable cache $cache_file"
2024 rm -f confcache
2027 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2028 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2029 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2030 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2031 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2032 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2033 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
2034 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2036 # Reload cache, that may have been modified by ltconfig
2037 if test -r "$cache_file"; then
2038 echo "loading cache $cache_file"
2039 . $cache_file
2040 else
2041 echo "creating cache $cache_file"
2042 > $cache_file
2046 # This can be used to rebuild libtool when needed
2047 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2049 # Always use our own libtool.
2050 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2052 # Redirect the config.log output again, so that the ltconfig log is not
2053 # clobbered by the next message.
2054 exec 5>>./config.log
2057 # Check whether --with-target-subdir or --without-target-subdir was given.
2058 if test "${with_target_subdir+set}" = set; then
2059 withval="$with_target_subdir"
2063 # Check whether --with-cross-host or --without-cross-host was given.
2064 if test "${with_cross_host+set}" = set; then
2065 withval="$with_cross_host"
2070 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2071 echo "configure:2072: checking whether to enable maintainer-specific portions of Makefiles" >&5
2072 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2073 if test "${enable_maintainer_mode+set}" = set; then
2074 enableval="$enable_maintainer_mode"
2075 USE_MAINTAINER_MODE=$enableval
2076 else
2077 USE_MAINTAINER_MODE=no
2080 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2083 if test $USE_MAINTAINER_MODE = yes; then
2084 MAINTAINER_MODE_TRUE=
2085 MAINTAINER_MODE_FALSE='#'
2086 else
2087 MAINTAINER_MODE_TRUE='#'
2088 MAINTAINER_MODE_FALSE=
2090 MAINT=$MAINTAINER_MODE_TRUE
2093 # automake wants to see AC_EXEEXT. But we don't need it. And having
2094 # it is actually a problem, because the compiler we're passed can't
2095 # necessarily do a full link. So we fool automake here.
2096 if false; then
2097 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
2098 # to nothing, so nothing would remain between `then' and `fi' if it
2099 # were not for the `:' below.
2103 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2104 echo "configure:2105: checking for executable suffix" >&5
2105 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2106 echo $ac_n "(cached) $ac_c" 1>&6
2107 else
2108 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2109 ac_cv_exeext=.exe
2110 else
2111 rm -f conftest*
2112 echo 'int main () { return 0; }' > conftest.$ac_ext
2113 ac_cv_exeext=
2114 if { (eval echo configure:2115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2115 for file in conftest.*; do
2116 case $file in
2117 *.c | *.o | *.obj) ;;
2118 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2119 esac
2120 done
2121 else
2122 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2124 rm -f conftest*
2125 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2129 EXEEXT=""
2130 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2131 echo "$ac_t""${ac_cv_exeext}" 1>&6
2132 ac_exeext=$EXEEXT
2136 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
2137 echo "configure:2138: checking for threads package to use" >&5
2138 # Check whether --enable-threads or --disable-threads was given.
2139 if test "${enable_threads+set}" = set; then
2140 enableval="$enable_threads"
2141 THREADS=$enableval
2142 else
2143 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
2144 echo "configure:2145: checking for thread model used by GCC" >&5
2145 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
2146 if test -z "$THREADS"; then
2147 THREADS=no
2149 echo "$ac_t""$THREADS" 1>&6
2153 # Check whether --enable-parallel-mark or --disable-parallel-mark was given.
2154 if test "${enable_parallel_mark+set}" = set; then
2155 enableval="$enable_parallel_mark"
2156 case "$THREADS" in
2157 no | none | single)
2158 { echo "configure: error: Parallel mark requires --enable-threads=x spec" 1>&2; exit 1; }
2160 esac
2165 INCLUDES=-I${srcdir}/include
2166 THREADLIBS=
2167 case "$THREADS" in
2168 no | none | single)
2169 THREADS=none
2171 posix | pthreads)
2172 THREADS=posix
2173 THREADLIBS=-lpthread
2174 case "$host" in
2175 x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux*)
2176 cat >> confdefs.h <<\EOF
2177 #define GC_LINUX_THREADS 1
2180 cat >> confdefs.h <<\EOF
2181 #define _REENTRANT 1
2184 if test "${enable_parallel_mark}"; then
2185 cat >> confdefs.h <<\EOF
2186 #define PARALLEL_MARK 1
2190 cat >> confdefs.h <<\EOF
2191 #define THREAD_LOCAL_ALLOC 1
2195 *-*-linux*)
2196 cat >> confdefs.h <<\EOF
2197 #define GC_LINUX_THREADS 1
2200 cat >> confdefs.h <<\EOF
2201 #define _REENTRANT 1
2205 *-*-hpux*)
2206 echo "configure: warning: "Only HP/UX 11 threads are supported."" 1>&2
2207 cat >> confdefs.h <<\EOF
2208 #define GC_HPUX_THREADS 1
2211 cat >> confdefs.h <<\EOF
2212 #define _POSIX_C_SOURCE 199506L
2215 if test "${enable_parallel_mark}" = yes; then
2216 cat >> confdefs.h <<\EOF
2217 #define PARALLEL_MARK 1
2221 cat >> confdefs.h <<\EOF
2222 #define THREAD_LOCAL_ALLOC 1
2225 THREADLIBS="-lpthread -lrt"
2227 *-*-freebsd*)
2228 echo "configure: warning: "FreeBSD does not yet fully support threads with Boehm GC."" 1>&2
2229 cat >> confdefs.h <<\EOF
2230 #define FREEBSD_THREADS 1
2233 INCLUDES="$INCLUDES -pthread"
2234 THREADLIBS=-pthread
2236 *-*-solaris*)
2237 cat >> confdefs.h <<\EOF
2238 #define GC_SOLARIS_THREADS 1
2241 cat >> confdefs.h <<\EOF
2242 #define GC_SOLARIS_PTHREADS 1
2246 *-*-irix*)
2247 cat >> confdefs.h <<\EOF
2248 #define GC_IRIX_THREADS 1
2252 esac
2254 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
2255 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2258 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2260 esac
2263 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2264 echo "configure:2265: checking for dlopen in -ldl" >&5
2265 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2266 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2267 echo $ac_n "(cached) $ac_c" 1>&6
2268 else
2269 ac_save_LIBS="$LIBS"
2270 LIBS="-ldl $LIBS"
2271 cat > conftest.$ac_ext <<EOF
2272 #line 2273 "configure"
2273 #include "confdefs.h"
2274 /* Override any gcc2 internal prototype to avoid an error. */
2275 /* We use char because int might match the return type of a gcc2
2276 builtin and then its argument prototype would still apply. */
2277 char dlopen();
2279 int main() {
2280 dlopen()
2281 ; return 0; }
2283 if { (eval echo configure:2284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2284 rm -rf conftest*
2285 eval "ac_cv_lib_$ac_lib_var=yes"
2286 else
2287 echo "configure: failed program was:" >&5
2288 cat conftest.$ac_ext >&5
2289 rm -rf conftest*
2290 eval "ac_cv_lib_$ac_lib_var=no"
2292 rm -f conftest*
2293 LIBS="$ac_save_LIBS"
2296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2297 echo "$ac_t""yes" 1>&6
2298 EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
2299 else
2300 echo "$ac_t""no" 1>&6
2305 target_all=libgc.la
2308 TARGET_ECOS="no"
2309 # Check whether --with-ecos or --without-ecos was given.
2310 if test "${with_ecos+set}" = set; then
2311 withval="$with_ecos"
2312 TARGET_ECOS="$with_ecos"
2317 addobjs=
2318 CXXINCLUDES=
2319 case "$TARGET_ECOS" in
2323 cat >> confdefs.h <<\EOF
2324 #define ECOS 1
2327 CXXINCLUDES="-I${TARGET_ECOS}/include"
2328 addobjs="$addobjs ecos.lo"
2330 esac
2336 machdep=
2337 case "$host" in
2338 # alpha_mach_dep.s assumes that pointers are not saved in fp registers.
2339 # Gcc on a 21264 can spill pointers to fp registers. Oops.
2340 # alpha*-*-*)
2341 # machdep="alpha_mach_dep.lo"
2342 # ;;
2343 mipstx39-*-elf*)
2344 machdep="mips_ultrix_mach_dep.lo"
2345 cat >> confdefs.h <<\EOF
2346 #define STACKBASE __stackbase
2349 cat >> confdefs.h <<\EOF
2350 #define DATASTART_IS_ETEXT 1
2354 mips-dec-ultrix*)
2355 machdep="mips_ultrix_mach-dep.lo"
2357 mips-*-*)
2358 machdep="mips_sgi_mach_dep.lo"
2359 cat >> confdefs.h <<\EOF
2360 #define NO_EXECUTE_PERMISSION 1
2364 sparc-sun-solaris2.3*)
2365 cat >> confdefs.h <<\EOF
2366 #define SUNOS53_SHARED_LIB 1
2370 ia64-*-hpux*)
2371 machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
2373 esac
2374 if test x"$machdep" = x; then
2375 machdep="mach_dep.lo"
2377 addobjs="$addobjs $machdep"
2380 case "$host" in
2381 sparc-sun-solaris2*)
2382 if test "$GCC" = yes; then
2383 new_CFLAGS=
2384 for i in $CFLAGS; do
2385 case "$i" in
2386 -O*)
2389 new_CFLAGS="$new_CFLAGS $i"
2391 esac
2392 done
2393 CFLAGS="$new_CFLAGS"
2396 esac
2398 MY_CFLAGS="$CFLAGS"
2401 cat >> confdefs.h <<\EOF
2402 #define SILENT 1
2405 cat >> confdefs.h <<\EOF
2406 #define NO_SIGNALS 1
2409 cat >> confdefs.h <<\EOF
2410 #define NO_EXECUTE_PERMISSION 1
2413 cat >> confdefs.h <<\EOF
2414 #define ALL_INTERIOR_POINTERS 1
2418 cat >> confdefs.h <<\EOF
2419 #define JAVA_FINALIZATION 1
2422 cat >> confdefs.h <<\EOF
2423 #define GC_GCJ_SUPPORT 1
2426 cat >> confdefs.h <<\EOF
2427 #define ATOMIC_UNCOLLECTABLE 1
2431 if test -n "${with_cross_host}"; then
2432 cat >> confdefs.h <<\EOF
2433 #define NO_SIGSET 1
2436 cat >> confdefs.h <<\EOF
2437 #define NO_CLOCK 1
2440 cat >> confdefs.h <<\EOF
2441 #define SMALL_CONFIG 1
2444 cat >> confdefs.h <<\EOF
2445 #define NO_DEBUGGING 1
2450 # Check whether --enable-full-debug or --disable-full-debug was given.
2451 if test "${enable_full_debug+set}" = set; then
2452 enableval="$enable_full_debug"
2453 if test "$enable_full_debug" = "yes"; then
2454 echo "configure: warning: "Must define GC_DEBUG and use debug alloc. in clients."" 1>&2
2455 cat >> confdefs.h <<\EOF
2456 #define KEEP_BACK_PTRS 1
2459 cat >> confdefs.h <<\EOF
2460 #define DBG_HDRS_ALL 1
2463 case $host in
2464 x86-*-linux* | i586-*-linux* | i686-*-linux* )
2465 echo "configure: warning: "Client must not use -fomit-frame-pointer."" 1>&2
2466 cat >> confdefs.h <<\EOF
2467 #define SAVE_CALL_COUNT 8
2471 esac
2478 if test -z "$with_cross_host"; then
2479 USE_LIBDIR_TRUE=
2480 USE_LIBDIR_FALSE='#'
2481 else
2482 USE_LIBDIR_TRUE='#'
2483 USE_LIBDIR_FALSE=
2486 if test "${multilib}" = "yes"; then
2487 multilib_arg="--enable-multilib"
2488 else
2489 multilib_arg=
2492 trap '' 1 2 15
2493 cat > confcache <<\EOF
2494 # This file is a shell script that caches the results of configure
2495 # tests run on this system so they can be shared between configure
2496 # scripts and configure runs. It is not useful on other systems.
2497 # If it contains results you don't want to keep, you may remove or edit it.
2499 # By default, configure uses ./config.cache as the cache file,
2500 # creating it if it does not exist already. You can give configure
2501 # the --cache-file=FILE option to use a different cache file; that is
2502 # what configure does when it calls configure scripts in
2503 # subdirectories, so they share the cache.
2504 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2505 # config.status only pays attention to the cache file if you give it the
2506 # --recheck option to rerun configure.
2509 # The following way of writing the cache mishandles newlines in values,
2510 # but we know of no workaround that is simple, portable, and efficient.
2511 # So, don't put newlines in cache variables' values.
2512 # Ultrix sh set writes to stderr and can't be redirected directly,
2513 # and sets the high bit in the cache file unless we assign to the vars.
2514 (set) 2>&1 |
2515 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2516 *ac_space=\ *)
2517 # `set' does not quote correctly, so add quotes (double-quote substitution
2518 # turns \\\\ into \\, and sed turns \\ into \).
2519 sed -n \
2520 -e "s/'/'\\\\''/g" \
2521 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2524 # `set' quotes correctly as required by POSIX, so do not add quotes.
2525 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2527 esac >> confcache
2528 if cmp -s $cache_file confcache; then
2530 else
2531 if test -w $cache_file; then
2532 echo "updating cache $cache_file"
2533 cat confcache > $cache_file
2534 else
2535 echo "not updating unwritable cache $cache_file"
2538 rm -f confcache
2540 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2542 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2543 # Let make expand exec_prefix.
2544 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2546 # Any assignment to VPATH causes Sun make to only execute
2547 # the first set of double-colon rules, so remove it if not needed.
2548 # If there is a colon in the path, we need to keep it.
2549 if test "x$srcdir" = x.; then
2550 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2553 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2555 # Transform confdefs.h into DEFS.
2556 # Protect against shell expansion while executing Makefile rules.
2557 # Protect against Makefile macro expansion.
2558 cat > conftest.defs <<\EOF
2559 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2560 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2561 s%\[%\\&%g
2562 s%\]%\\&%g
2563 s%\$%$$%g
2565 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2566 rm -f conftest.defs
2569 # Without the "./", some shells look in PATH for config.status.
2570 : ${CONFIG_STATUS=./config.status}
2572 echo creating $CONFIG_STATUS
2573 rm -f $CONFIG_STATUS
2574 cat > $CONFIG_STATUS <<EOF
2575 #! /bin/sh
2576 # Generated automatically by configure.
2577 # Run this file to recreate the current configuration.
2578 # This directory was configured as follows,
2579 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2581 # $0 $ac_configure_args
2583 # Compiler output produced by configure, useful for debugging
2584 # configure, is in ./config.log if it exists.
2586 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2587 for ac_option
2589 case "\$ac_option" in
2590 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2591 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2592 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2593 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2594 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2595 exit 0 ;;
2596 -help | --help | --hel | --he | --h)
2597 echo "\$ac_cs_usage"; exit 0 ;;
2598 *) echo "\$ac_cs_usage"; exit 1 ;;
2599 esac
2600 done
2602 ac_given_srcdir=$srcdir
2603 ac_given_INSTALL="$INSTALL"
2605 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2607 cat >> $CONFIG_STATUS <<EOF
2609 # Protect against being on the right side of a sed subst in config.status.
2610 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2611 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2612 $ac_vpsub
2613 $extrasub
2614 s%@SHELL@%$SHELL%g
2615 s%@CFLAGS@%$CFLAGS%g
2616 s%@CPPFLAGS@%$CPPFLAGS%g
2617 s%@CXXFLAGS@%$CXXFLAGS%g
2618 s%@FFLAGS@%$FFLAGS%g
2619 s%@DEFS@%$DEFS%g
2620 s%@LDFLAGS@%$LDFLAGS%g
2621 s%@LIBS@%$LIBS%g
2622 s%@exec_prefix@%$exec_prefix%g
2623 s%@prefix@%$prefix%g
2624 s%@program_transform_name@%$program_transform_name%g
2625 s%@bindir@%$bindir%g
2626 s%@sbindir@%$sbindir%g
2627 s%@libexecdir@%$libexecdir%g
2628 s%@datadir@%$datadir%g
2629 s%@sysconfdir@%$sysconfdir%g
2630 s%@sharedstatedir@%$sharedstatedir%g
2631 s%@localstatedir@%$localstatedir%g
2632 s%@libdir@%$libdir%g
2633 s%@includedir@%$includedir%g
2634 s%@oldincludedir@%$oldincludedir%g
2635 s%@infodir@%$infodir%g
2636 s%@mandir@%$mandir%g
2637 s%@host@%$host%g
2638 s%@host_alias@%$host_alias%g
2639 s%@host_cpu@%$host_cpu%g
2640 s%@host_vendor@%$host_vendor%g
2641 s%@host_os@%$host_os%g
2642 s%@target@%$target%g
2643 s%@target_alias@%$target_alias%g
2644 s%@target_cpu@%$target_cpu%g
2645 s%@target_vendor@%$target_vendor%g
2646 s%@target_os@%$target_os%g
2647 s%@build@%$build%g
2648 s%@build_alias@%$build_alias%g
2649 s%@build_cpu@%$build_cpu%g
2650 s%@build_vendor@%$build_vendor%g
2651 s%@build_os@%$build_os%g
2652 s%@gc_basedir@%$gc_basedir%g
2653 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2654 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2655 s%@INSTALL_DATA@%$INSTALL_DATA%g
2656 s%@PACKAGE@%$PACKAGE%g
2657 s%@VERSION@%$VERSION%g
2658 s%@ACLOCAL@%$ACLOCAL%g
2659 s%@AUTOCONF@%$AUTOCONF%g
2660 s%@AUTOMAKE@%$AUTOMAKE%g
2661 s%@AUTOHEADER@%$AUTOHEADER%g
2662 s%@MAKEINFO@%$MAKEINFO%g
2663 s%@SET_MAKE@%$SET_MAKE%g
2664 s%@CC@%$CC%g
2665 s%@CXX@%$CXX%g
2666 s%@AS@%$AS%g
2667 s%@AR@%$AR%g
2668 s%@RANLIB@%$RANLIB%g
2669 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2670 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2671 s%@MAINT@%$MAINT%g
2672 s%@EXEEXT@%$EXEEXT%g
2673 s%@GC_CFLAGS@%$GC_CFLAGS%g
2674 s%@LN_S@%$LN_S%g
2675 s%@LIBTOOL@%$LIBTOOL%g
2676 s%@THREADLIBS@%$THREADLIBS%g
2677 s%@EXTRA_TEST_LIBS@%$EXTRA_TEST_LIBS%g
2678 s%@target_all@%$target_all%g
2679 s%@INCLUDES@%$INCLUDES%g
2680 s%@CXXINCLUDES@%$CXXINCLUDES%g
2681 s%@addobjs@%$addobjs%g
2682 s%@MY_CFLAGS@%$MY_CFLAGS%g
2683 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
2684 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
2686 CEOF
2689 cat >> $CONFIG_STATUS <<\EOF
2691 # Split the substitutions into bite-sized pieces for seds with
2692 # small command number limits, like on Digital OSF/1 and HP-UX.
2693 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2694 ac_file=1 # Number of current file.
2695 ac_beg=1 # First line for current file.
2696 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2697 ac_more_lines=:
2698 ac_sed_cmds=""
2699 while $ac_more_lines; do
2700 if test $ac_beg -gt 1; then
2701 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2702 else
2703 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2705 if test ! -s conftest.s$ac_file; then
2706 ac_more_lines=false
2707 rm -f conftest.s$ac_file
2708 else
2709 if test -z "$ac_sed_cmds"; then
2710 ac_sed_cmds="sed -f conftest.s$ac_file"
2711 else
2712 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2714 ac_file=`expr $ac_file + 1`
2715 ac_beg=$ac_end
2716 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2718 done
2719 if test -z "$ac_sed_cmds"; then
2720 ac_sed_cmds=cat
2724 cat >> $CONFIG_STATUS <<EOF
2726 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2728 cat >> $CONFIG_STATUS <<\EOF
2729 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2730 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2731 case "$ac_file" in
2732 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2733 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2734 *) ac_file_in="${ac_file}.in" ;;
2735 esac
2737 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2739 # Remove last slash and all that follows it. Not all systems have dirname.
2740 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2741 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2742 # The file is in a subdirectory.
2743 test ! -d "$ac_dir" && mkdir "$ac_dir"
2744 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2745 # A "../" for each directory in $ac_dir_suffix.
2746 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2747 else
2748 ac_dir_suffix= ac_dots=
2751 case "$ac_given_srcdir" in
2752 .) srcdir=.
2753 if test -z "$ac_dots"; then top_srcdir=.
2754 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2755 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2756 *) # Relative path.
2757 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2758 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2759 esac
2761 case "$ac_given_INSTALL" in
2762 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2763 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2764 esac
2766 echo creating "$ac_file"
2767 rm -f "$ac_file"
2768 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2769 case "$ac_file" in
2770 *Makefile*) ac_comsub="1i\\
2771 # $configure_input" ;;
2772 *) ac_comsub= ;;
2773 esac
2775 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2776 sed -e "$ac_comsub
2777 s%@configure_input@%$configure_input%g
2778 s%@srcdir@%$srcdir%g
2779 s%@top_srcdir@%$top_srcdir%g
2780 s%@INSTALL@%$INSTALL%g
2781 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2782 fi; done
2783 rm -f conftest.s*
2786 cat >> $CONFIG_STATUS <<EOF
2787 srcdir=${srcdir}
2788 host=${host}
2789 target=${target}
2790 with_multisubdir=${with_multisubdir}
2791 ac_configure_args="${multilib_arg} ${ac_configure_args}"
2792 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2793 gc_basedir=${gc_basedir}
2794 CC="${CC}"
2795 DEFS="$DEFS"
2798 cat >> $CONFIG_STATUS <<\EOF
2800 exit 0
2802 chmod +x $CONFIG_STATUS
2803 rm -fr confdefs* $ac_clean_files
2804 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1