OSDN Git Service

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