OSDN Git Service

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