acinclude.m4: Remove GC_CONFIGURE macro; move contents to configure.in.
[platform/upstream/gcc.git] / boehm-gc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="gcj_mlc.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS gc_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os mkinstalldirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GC_CFLAGS LN_S STRIP ac_ct_STRIP LIBTOOL CXXCPP CPPFLAGS THREADLIBS POWERPC_DARWIN_TRUE POWERPC_DARWIN_FALSE EXTRA_TEST_LIBS target_all target_noncanonical CPLUSPLUS_TRUE CPLUSPLUS_FALSE INCLUDES CXXINCLUDES addobjs addincludes addlibs addtests CPP EGREP MY_CFLAGS toolexecdir toolexeclibdir LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CXXCPP_set=${CXXCPP+set}
753 ac_env_CXXCPP_value=$CXXCPP
754 ac_cv_env_CXXCPP_set=${CXXCPP+set}
755 ac_cv_env_CXXCPP_value=$CXXCPP
756 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
757 ac_env_CPPFLAGS_value=$CPPFLAGS
758 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
760 ac_env_CPP_set=${CPP+set}
761 ac_env_CPP_value=$CPP
762 ac_cv_env_CPP_set=${CPP+set}
763 ac_cv_env_CPP_value=$CPP
764
765 #
766 # Report the --help message.
767 #
768 if test "$ac_init_help" = "long"; then
769   # Omit some internal or obsolete options to make the list less imposing.
770   # This message is too long to be a string in the A/UX 3.1 sh.
771   cat <<_ACEOF
772 \`configure' configures this package to adapt to many kinds of systems.
773
774 Usage: $0 [OPTION]... [VAR=VALUE]...
775
776 To assign environment variables (e.g., CC, CFLAGS...), specify them as
777 VAR=VALUE.  See below for descriptions of some of the useful variables.
778
779 Defaults for the options are specified in brackets.
780
781 Configuration:
782   -h, --help              display this help and exit
783       --help=short        display options specific to this package
784       --help=recursive    display the short help of all the included packages
785   -V, --version           display version information and exit
786   -q, --quiet, --silent   do not print \`checking...' messages
787       --cache-file=FILE   cache test results in FILE [disabled]
788   -C, --config-cache      alias for \`--cache-file=config.cache'
789   -n, --no-create         do not create output files
790       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
791
792 _ACEOF
793
794   cat <<_ACEOF
795 Installation directories:
796   --prefix=PREFIX         install architecture-independent files in PREFIX
797                           [$ac_default_prefix]
798   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
799                           [PREFIX]
800
801 By default, \`make install' will install all the files in
802 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
803 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
804 for instance \`--prefix=\$HOME'.
805
806 For better control, use the options below.
807
808 Fine tuning of the installation directories:
809   --bindir=DIR           user executables [EPREFIX/bin]
810   --sbindir=DIR          system admin executables [EPREFIX/sbin]
811   --libexecdir=DIR       program executables [EPREFIX/libexec]
812   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
813   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
814   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
815   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
816   --libdir=DIR           object code libraries [EPREFIX/lib]
817   --includedir=DIR       C header files [PREFIX/include]
818   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
819   --infodir=DIR          info documentation [PREFIX/info]
820   --mandir=DIR           man documentation [PREFIX/man]
821 _ACEOF
822
823   cat <<\_ACEOF
824
825 Program names:
826   --program-prefix=PREFIX            prepend PREFIX to installed program names
827   --program-suffix=SUFFIX            append SUFFIX to installed program names
828   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
829
830 System types:
831   --build=BUILD     configure for building on BUILD [guessed]
832   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
833   --target=TARGET   configure for building compilers for TARGET [HOST]
834 _ACEOF
835 fi
836
837 if test -n "$ac_init_help"; then
838
839   cat <<\_ACEOF
840
841 Optional Features:
842   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
843   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
844   --enable-multilib       build many library versions (default)
845   --enable-maintainer-mode enable make rules and dependencies not useful
846                           (and sometimes confusing) to the casual installer
847   --enable-shared=PKGS  build shared libraries default=yes
848   --enable-static=PKGS  build static libraries default=yes
849   --enable-fast-install=PKGS  optimize for fast installation default=yes
850   --disable-libtool-lock  avoid locking (might break parallel builds)
851   --enable-parallel-mark        parallelize marking and free list construction
852   --enable-full-debug   include full support for pointer backtracing etc.
853
854 Optional Packages:
855   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
856   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
857   --with-gnu-ld           assume the C compiler uses GNU ld default=no
858   --with-pic              try to use only PIC/non-PIC objects default=use both
859   --with-target-subdir=SUBDIR
860                           configuring with a cross compiler
861   --with-cross-host=HOST  configuring with a cross compiler
862   --with-ecos             enable runtime eCos target support
863
864 Some influential environment variables:
865   CC          C compiler command
866   CFLAGS      C compiler flags
867   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
868               nonstandard directory <lib dir>
869   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
870               headers in a nonstandard directory <include dir>
871   CXX         C++ compiler command
872   CXXFLAGS    C++ compiler flags
873   CXXCPP      C++ preprocessor
874   CPP         C preprocessor
875
876 Use these variables to override the choices made by `configure' or to help
877 it to find libraries and programs with nonstandard names/locations.
878
879 _ACEOF
880 fi
881
882 if test "$ac_init_help" = "recursive"; then
883   # If there are subdirs, report their specific --help.
884   ac_popdir=`pwd`
885   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
886     test -d $ac_dir || continue
887     ac_builddir=.
888
889 if test "$ac_dir" != .; then
890   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
891   # A "../" for each directory in $ac_dir_suffix.
892   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
893 else
894   ac_dir_suffix= ac_top_builddir=
895 fi
896
897 case $srcdir in
898   .)  # No --srcdir option.  We are building in place.
899     ac_srcdir=.
900     if test -z "$ac_top_builddir"; then
901        ac_top_srcdir=.
902     else
903        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
904     fi ;;
905   [\\/]* | ?:[\\/]* )  # Absolute path.
906     ac_srcdir=$srcdir$ac_dir_suffix;
907     ac_top_srcdir=$srcdir ;;
908   *) # Relative path.
909     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
910     ac_top_srcdir=$ac_top_builddir$srcdir ;;
911 esac
912 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
913 # absolute.
914 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
915 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
916 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
917 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
918
919     cd $ac_dir
920     # Check for guested configure; otherwise get Cygnus style configure.
921     if test -f $ac_srcdir/configure.gnu; then
922       echo
923       $SHELL $ac_srcdir/configure.gnu  --help=recursive
924     elif test -f $ac_srcdir/configure; then
925       echo
926       $SHELL $ac_srcdir/configure  --help=recursive
927     elif test -f $ac_srcdir/configure.ac ||
928            test -f $ac_srcdir/configure.in; then
929       echo
930       $ac_configure --help
931     else
932       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
933     fi
934     cd "$ac_popdir"
935   done
936 fi
937
938 test -n "$ac_init_help" && exit 0
939 if $ac_init_version; then
940   cat <<\_ACEOF
941
942 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
943 Free Software Foundation, Inc.
944 This configure script is free software; the Free Software Foundation
945 gives unlimited permission to copy, distribute and modify it.
946 _ACEOF
947   exit 0
948 fi
949 exec 5>config.log
950 cat >&5 <<_ACEOF
951 This file contains any messages produced by compilers while
952 running configure, to aid debugging if configure makes a mistake.
953
954 It was created by $as_me, which was
955 generated by GNU Autoconf 2.57.  Invocation command line was
956
957   $ $0 $@
958
959 _ACEOF
960 {
961 cat <<_ASUNAME
962 ## --------- ##
963 ## Platform. ##
964 ## --------- ##
965
966 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
967 uname -m = `(uname -m) 2>/dev/null || echo unknown`
968 uname -r = `(uname -r) 2>/dev/null || echo unknown`
969 uname -s = `(uname -s) 2>/dev/null || echo unknown`
970 uname -v = `(uname -v) 2>/dev/null || echo unknown`
971
972 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
973 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
974
975 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
976 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
977 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
978 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
979 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
980 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
981 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
982
983 _ASUNAME
984
985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
986 for as_dir in $PATH
987 do
988   IFS=$as_save_IFS
989   test -z "$as_dir" && as_dir=.
990   echo "PATH: $as_dir"
991 done
992
993 } >&5
994
995 cat >&5 <<_ACEOF
996
997
998 ## ----------- ##
999 ## Core tests. ##
1000 ## ----------- ##
1001
1002 _ACEOF
1003
1004
1005 # Keep a trace of the command line.
1006 # Strip out --no-create and --no-recursion so they do not pile up.
1007 # Strip out --silent because we don't want to record it for future runs.
1008 # Also quote any args containing shell meta-characters.
1009 # Make two passes to allow for proper duplicate-argument suppression.
1010 ac_configure_args=
1011 ac_configure_args0=
1012 ac_configure_args1=
1013 ac_sep=
1014 ac_must_keep_next=false
1015 for ac_pass in 1 2
1016 do
1017   for ac_arg
1018   do
1019     case $ac_arg in
1020     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1021     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1022     | -silent | --silent | --silen | --sile | --sil)
1023       continue ;;
1024     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1025       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1026     esac
1027     case $ac_pass in
1028     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1029     2)
1030       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1031       if test $ac_must_keep_next = true; then
1032         ac_must_keep_next=false # Got value, back to normal.
1033       else
1034         case $ac_arg in
1035           *=* | --config-cache | -C | -disable-* | --disable-* \
1036           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1037           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1038           | -with-* | --with-* | -without-* | --without-* | --x)
1039             case "$ac_configure_args0 " in
1040               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1041             esac
1042             ;;
1043           -* ) ac_must_keep_next=true ;;
1044         esac
1045       fi
1046       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1047       # Get rid of the leading space.
1048       ac_sep=" "
1049       ;;
1050     esac
1051   done
1052 done
1053 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1054 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1055
1056 # When interrupted or exit'd, cleanup temporary files, and complete
1057 # config.log.  We remove comments because anyway the quotes in there
1058 # would cause problems or look ugly.
1059 # WARNING: Be sure not to use single quotes in there, as some shells,
1060 # such as our DU 5.0 friend, will then `close' the trap.
1061 trap 'exit_status=$?
1062   # Save into config.log some information that might help in debugging.
1063   {
1064     echo
1065
1066     cat <<\_ASBOX
1067 ## ---------------- ##
1068 ## Cache variables. ##
1069 ## ---------------- ##
1070 _ASBOX
1071     echo
1072     # The following way of writing the cache mishandles newlines in values,
1073 {
1074   (set) 2>&1 |
1075     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1076     *ac_space=\ *)
1077       sed -n \
1078         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1079           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1080       ;;
1081     *)
1082       sed -n \
1083         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1084       ;;
1085     esac;
1086 }
1087     echo
1088
1089     cat <<\_ASBOX
1090 ## ----------------- ##
1091 ## Output variables. ##
1092 ## ----------------- ##
1093 _ASBOX
1094     echo
1095     for ac_var in $ac_subst_vars
1096     do
1097       eval ac_val=$`echo $ac_var`
1098       echo "$ac_var='"'"'$ac_val'"'"'"
1099     done | sort
1100     echo
1101
1102     if test -n "$ac_subst_files"; then
1103       cat <<\_ASBOX
1104 ## ------------- ##
1105 ## Output files. ##
1106 ## ------------- ##
1107 _ASBOX
1108       echo
1109       for ac_var in $ac_subst_files
1110       do
1111         eval ac_val=$`echo $ac_var`
1112         echo "$ac_var='"'"'$ac_val'"'"'"
1113       done | sort
1114       echo
1115     fi
1116
1117     if test -s confdefs.h; then
1118       cat <<\_ASBOX
1119 ## ----------- ##
1120 ## confdefs.h. ##
1121 ## ----------- ##
1122 _ASBOX
1123       echo
1124       sed "/^$/d" confdefs.h | sort
1125       echo
1126     fi
1127     test "$ac_signal" != 0 &&
1128       echo "$as_me: caught signal $ac_signal"
1129     echo "$as_me: exit $exit_status"
1130   } >&5
1131   rm -f core *.core &&
1132   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1133     exit $exit_status
1134      ' 0
1135 for ac_signal in 1 2 13 15; do
1136   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1137 done
1138 ac_signal=0
1139
1140 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1141 rm -rf conftest* confdefs.h
1142 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1143 echo >confdefs.h
1144
1145 # Predefined preprocessor variables.
1146
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_NAME "$PACKAGE_NAME"
1149 _ACEOF
1150
1151
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1154 _ACEOF
1155
1156
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1159 _ACEOF
1160
1161
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_STRING "$PACKAGE_STRING"
1164 _ACEOF
1165
1166
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1169 _ACEOF
1170
1171
1172 # Let the site file select an alternate cache file if it wants to.
1173 # Prefer explicitly selected file to automatically selected ones.
1174 if test -z "$CONFIG_SITE"; then
1175   if test "x$prefix" != xNONE; then
1176     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1177   else
1178     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1179   fi
1180 fi
1181 for ac_site_file in $CONFIG_SITE; do
1182   if test -r "$ac_site_file"; then
1183     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1184 echo "$as_me: loading site script $ac_site_file" >&6;}
1185     sed 's/^/| /' "$ac_site_file" >&5
1186     . "$ac_site_file"
1187   fi
1188 done
1189
1190 if test -r "$cache_file"; then
1191   # Some versions of bash will fail to source /dev/null (special
1192   # files actually), so we avoid doing that.
1193   if test -f "$cache_file"; then
1194     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1195 echo "$as_me: loading cache $cache_file" >&6;}
1196     case $cache_file in
1197       [\\/]* | ?:[\\/]* ) . $cache_file;;
1198       *)                      . ./$cache_file;;
1199     esac
1200   fi
1201 else
1202   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1203 echo "$as_me: creating cache $cache_file" >&6;}
1204   >$cache_file
1205 fi
1206
1207 # Check that the precious variables saved in the cache have kept the same
1208 # value.
1209 ac_cache_corrupted=false
1210 for ac_var in `(set) 2>&1 |
1211                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1212   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1213   eval ac_new_set=\$ac_env_${ac_var}_set
1214   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1215   eval ac_new_val="\$ac_env_${ac_var}_value"
1216   case $ac_old_set,$ac_new_set in
1217     set,)
1218       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1219 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1220       ac_cache_corrupted=: ;;
1221     ,set)
1222       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1223 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1224       ac_cache_corrupted=: ;;
1225     ,);;
1226     *)
1227       if test "x$ac_old_val" != "x$ac_new_val"; then
1228         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1229 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1230         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1231 echo "$as_me:   former value:  $ac_old_val" >&2;}
1232         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1233 echo "$as_me:   current value: $ac_new_val" >&2;}
1234         ac_cache_corrupted=:
1235       fi;;
1236   esac
1237   # Pass precious variables to config.status.
1238   if test "$ac_new_set" = set; then
1239     case $ac_new_val in
1240     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1241       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1242     *) ac_arg=$ac_var=$ac_new_val ;;
1243     esac
1244     case " $ac_configure_args " in
1245       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1246       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1247     esac
1248   fi
1249 done
1250 if $ac_cache_corrupted; then
1251   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1252 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1253   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1254 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1255    { (exit 1); exit 1; }; }
1256 fi
1257
1258 ac_ext=c
1259 ac_cpp='$CPP $CPPFLAGS'
1260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283 # This works around the fact that libtool configuration may change LD
1284 # for this particular configuration, but some shells, instead of
1285 # keeping the changes in LD private, export them just because LD is
1286 # exported.
1287 ORIGINAL_LD_FOR_MULTILIBS=$LD
1288
1289 ac_aux_dir=
1290 for ac_dir in . $srcdir/.; do
1291   if test -f $ac_dir/install-sh; then
1292     ac_aux_dir=$ac_dir
1293     ac_install_sh="$ac_aux_dir/install-sh -c"
1294     break
1295   elif test -f $ac_dir/install.sh; then
1296     ac_aux_dir=$ac_dir
1297     ac_install_sh="$ac_aux_dir/install.sh -c"
1298     break
1299   elif test -f $ac_dir/shtool; then
1300     ac_aux_dir=$ac_dir
1301     ac_install_sh="$ac_aux_dir/shtool install -c"
1302     break
1303   fi
1304 done
1305 if test -z "$ac_aux_dir"; then
1306   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1307 echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1308    { (exit 1); exit 1; }; }
1309 fi
1310 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1311 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1312 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1313
1314
1315 # Check whether --enable-multilib or --disable-multilib was given.
1316 if test "${enable_multilib+set}" = set; then
1317   enableval="$enable_multilib"
1318   case "${enableval}" in
1319   yes) multilib=yes ;;
1320   no)  multilib=no ;;
1321   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1322 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1323    { (exit 1); exit 1; }; } ;;
1324  esac
1325 else
1326   multilib=yes
1327 fi;
1328
1329 if test "${srcdir}" = "."; then
1330   if test "${with_target_subdir}" != "." -a -n "${with_target_subdir}"; then
1331     gc_basedir="${srcdir}/${with_multisrctop}../."
1332   else
1333     gc_basedir="${srcdir}/${with_multisrctop}."
1334   fi
1335 else
1336   gc_basedir="${srcdir}/."
1337 fi
1338
1339 ac_aux_dir=
1340 for ac_dir in $gc_basedir/.. $srcdir/$gc_basedir/..; do
1341   if test -f $ac_dir/install-sh; then
1342     ac_aux_dir=$ac_dir
1343     ac_install_sh="$ac_aux_dir/install-sh -c"
1344     break
1345   elif test -f $ac_dir/install.sh; then
1346     ac_aux_dir=$ac_dir
1347     ac_install_sh="$ac_aux_dir/install.sh -c"
1348     break
1349   elif test -f $ac_dir/shtool; then
1350     ac_aux_dir=$ac_dir
1351     ac_install_sh="$ac_aux_dir/shtool install -c"
1352     break
1353   fi
1354 done
1355 if test -z "$ac_aux_dir"; then
1356   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $gc_basedir/.. $srcdir/$gc_basedir/.." >&5
1357 echo "$as_me: error: cannot find install-sh or install.sh in $gc_basedir/.. $srcdir/$gc_basedir/.." >&2;}
1358    { (exit 1); exit 1; }; }
1359 fi
1360 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1361 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1362 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1363
1364 if :; then :; else
1365   # This overrides the previous occurrence for automake, but not for
1366   # autoconf, which is exactly what we want.
1367   ac_aux_dir=
1368 for ac_dir in .. $srcdir/..; do
1369   if test -f $ac_dir/install-sh; then
1370     ac_aux_dir=$ac_dir
1371     ac_install_sh="$ac_aux_dir/install-sh -c"
1372     break
1373   elif test -f $ac_dir/install.sh; then
1374     ac_aux_dir=$ac_dir
1375     ac_install_sh="$ac_aux_dir/install.sh -c"
1376     break
1377   elif test -f $ac_dir/shtool; then
1378     ac_aux_dir=$ac_dir
1379     ac_install_sh="$ac_aux_dir/shtool install -c"
1380     break
1381   fi
1382 done
1383 if test -z "$ac_aux_dir"; then
1384   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1385 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1386    { (exit 1); exit 1; }; }
1387 fi
1388 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1389 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1390 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1391
1392 fi
1393
1394 # Make sure we can run config.sub.
1395 $ac_config_sub sun4 >/dev/null 2>&1 ||
1396   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1397 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1398    { (exit 1); exit 1; }; }
1399
1400 echo "$as_me:$LINENO: checking build system type" >&5
1401 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1402 if test "${ac_cv_build+set}" = set; then
1403   echo $ECHO_N "(cached) $ECHO_C" >&6
1404 else
1405   ac_cv_build_alias=$build_alias
1406 test -z "$ac_cv_build_alias" &&
1407   ac_cv_build_alias=`$ac_config_guess`
1408 test -z "$ac_cv_build_alias" &&
1409   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1410 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1411    { (exit 1); exit 1; }; }
1412 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1413   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1414 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1415    { (exit 1); exit 1; }; }
1416
1417 fi
1418 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1419 echo "${ECHO_T}$ac_cv_build" >&6
1420 build=$ac_cv_build
1421 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1422 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1423 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1424
1425
1426 echo "$as_me:$LINENO: checking host system type" >&5
1427 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1428 if test "${ac_cv_host+set}" = set; then
1429   echo $ECHO_N "(cached) $ECHO_C" >&6
1430 else
1431   ac_cv_host_alias=$host_alias
1432 test -z "$ac_cv_host_alias" &&
1433   ac_cv_host_alias=$ac_cv_build_alias
1434 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1435   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1436 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1437    { (exit 1); exit 1; }; }
1438
1439 fi
1440 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1441 echo "${ECHO_T}$ac_cv_host" >&6
1442 host=$ac_cv_host
1443 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1444 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1445 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1446
1447
1448 echo "$as_me:$LINENO: checking target system type" >&5
1449 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1450 if test "${ac_cv_target+set}" = set; then
1451   echo $ECHO_N "(cached) $ECHO_C" >&6
1452 else
1453   ac_cv_target_alias=$target_alias
1454 test "x$ac_cv_target_alias" = "x" &&
1455   ac_cv_target_alias=$ac_cv_host_alias
1456 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1457   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1458 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1459    { (exit 1); exit 1; }; }
1460
1461 fi
1462 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1463 echo "${ECHO_T}$ac_cv_target" >&6
1464 target=$ac_cv_target
1465 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1466 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1467 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1468
1469
1470 # The aliases save the names the user supplied, while $host etc.
1471 # will get canonicalized.
1472 test -n "$target_alias" &&
1473   test "$program_prefix$program_suffix$program_transform_name" = \
1474     NONENONEs,x,x, &&
1475   program_prefix=${target_alias}-
1476
1477 # Get the 'noncanonical' system names.
1478 # Autoconf M4 include file defining utility macros for complex Canadian
1479 # cross builds.
1480
1481
1482
1483
1484
1485
1486 ####
1487 # _NCN_TOOL_PREFIXES:  Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
1488 # or AC_INIT.
1489 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
1490
1491 ####
1492 # NCN_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
1493 # Like AC_CHECK_TOOL, but tries a prefix of the target, not the host.
1494 # Code is pretty much lifted from autoconf2.53.
1495
1496
1497
1498 ####
1499 # NCN_STRICT_CHECK_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
1500 # Like AC_CHECK_TOOL, but requires the prefix if build!=host.
1501
1502
1503
1504 ####
1505 # NCN_STRICT_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
1506 # Like NCN_CHECK_TARGET_TOOL, but requires the prefix if build!=target.
1507
1508
1509 ###
1510 # AC_PROG_CPP_WERROR
1511 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
1512 # triggers warnings from the preprocessor.  Will be in autoconf 2.58.
1513 # For now, using this also overrides header checks to use only the
1514 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
1515 # bit harder from here).
1516 # Eventually autoconf will default to checking headers with the compiler
1517 # instead, and we'll have to do this differently.
1518
1519 # AC_PROG_CPP_WERROR
1520
1521  case ${build_alias} in
1522   "") build_noncanonical=${build} ;;
1523   *) build_noncanonical=${build_alias} ;;
1524 esac
1525
1526  case ${host_alias} in
1527   "") host_noncanonical=${build_noncanonical} ;;
1528   *) host_noncanonical=${host_alias} ;;
1529 esac
1530
1531  case ${target_alias} in
1532   "") target_noncanonical=${host_noncanonical} ;;
1533   *) target_noncanonical=${target_alias} ;;
1534 esac
1535
1536
1537 # This works around an automake problem.
1538 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1539
1540
1541 # Find a good install program.  We prefer a C program (faster),
1542 # so one script is as good as another.  But avoid the broken or
1543 # incompatible versions:
1544 # SysV /etc/install, /usr/sbin/install
1545 # SunOS /usr/etc/install
1546 # IRIX /sbin/install
1547 # AIX /bin/install
1548 # AmigaOS /C/install, which installs bootblocks on floppy discs
1549 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1550 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1551 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1552 # ./install, which can be erroneously created by make from ./install.sh.
1553 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1554 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1555 if test -z "$INSTALL"; then
1556 if test "${ac_cv_path_install+set}" = set; then
1557   echo $ECHO_N "(cached) $ECHO_C" >&6
1558 else
1559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560 for as_dir in $PATH
1561 do
1562   IFS=$as_save_IFS
1563   test -z "$as_dir" && as_dir=.
1564   # Account for people who put trailing slashes in PATH elements.
1565 case $as_dir/ in
1566   ./ | .// | /cC/* | \
1567   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1568   /usr/ucb/* ) ;;
1569   *)
1570     # OSF1 and SCO ODT 3.0 have their own names for install.
1571     # Don't use installbsd from OSF since it installs stuff as root
1572     # by default.
1573     for ac_prog in ginstall scoinst install; do
1574       for ac_exec_ext in '' $ac_executable_extensions; do
1575         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1576           if test $ac_prog = install &&
1577             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1578             # AIX install.  It has an incompatible calling convention.
1579             :
1580           elif test $ac_prog = install &&
1581             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1582             # program-specific install script used by HP pwplus--don't use.
1583             :
1584           else
1585             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1586             break 3
1587           fi
1588         fi
1589       done
1590     done
1591     ;;
1592 esac
1593 done
1594
1595
1596 fi
1597   if test "${ac_cv_path_install+set}" = set; then
1598     INSTALL=$ac_cv_path_install
1599   else
1600     # As a last resort, use the slow shell script.  We don't cache a
1601     # path for INSTALL within a source directory, because that will
1602     # break other packages using the cache if that directory is
1603     # removed, or if the path is relative.
1604     INSTALL=$ac_install_sh
1605   fi
1606 fi
1607 echo "$as_me:$LINENO: result: $INSTALL" >&5
1608 echo "${ECHO_T}$INSTALL" >&6
1609
1610 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1611 # It thinks the first close brace ends the variable substitution.
1612 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1613
1614 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1615
1616 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1617
1618 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1619 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1620 # Just in case
1621 sleep 1
1622 echo timestamp > conftestfile
1623 # Do `set' in a subshell so we don't clobber the current shell's
1624 # arguments.  Must try -L first in case configure is actually a
1625 # symlink; some systems play weird games with the mod time of symlinks
1626 # (eg FreeBSD returns the mod time of the symlink's containing
1627 # directory).
1628 if (
1629    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1630    if test "$*" = "X"; then
1631       # -L didn't work.
1632       set X `ls -t $srcdir/configure conftestfile`
1633    fi
1634    if test "$*" != "X $srcdir/configure conftestfile" \
1635       && test "$*" != "X conftestfile $srcdir/configure"; then
1636
1637       # If neither matched, then we have a broken ls.  This can happen
1638       # if, for instance, CONFIG_SHELL is bash and it inherits a
1639       # broken ls alias from the environment.  This has actually
1640       # happened.  Such a system could not be considered "sane".
1641       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1642 alias in your environment" >&5
1643 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1644 alias in your environment" >&2;}
1645    { (exit 1); exit 1; }; }
1646    fi
1647
1648    test "$2" = conftestfile
1649    )
1650 then
1651    # Ok.
1652    :
1653 else
1654    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1655 Check your system clock" >&5
1656 echo "$as_me: error: newly created file is older than distributed files!
1657 Check your system clock" >&2;}
1658    { (exit 1); exit 1; }; }
1659 fi
1660 rm -f conftest*
1661 echo "$as_me:$LINENO: result: yes" >&5
1662 echo "${ECHO_T}yes" >&6
1663 test "$program_prefix" != NONE &&
1664   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1665 # Use a double $ so make ignores it.
1666 test "$program_suffix" != NONE &&
1667   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1668 # Double any \ or $.  echo might interpret backslashes.
1669 # By default was `s,x,x', remove it if useless.
1670 cat <<\_ACEOF >conftest.sed
1671 s/[\\$]/&&/g;s/;s,x,x,$//
1672 _ACEOF
1673 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1674 rm conftest.sed
1675
1676 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1677 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1678 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1679 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1680   echo $ECHO_N "(cached) $ECHO_C" >&6
1681 else
1682   cat >conftest.make <<\_ACEOF
1683 all:
1684         @echo 'ac_maketemp="$(MAKE)"'
1685 _ACEOF
1686 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1687 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1688 if test -n "$ac_maketemp"; then
1689   eval ac_cv_prog_make_${ac_make}_set=yes
1690 else
1691   eval ac_cv_prog_make_${ac_make}_set=no
1692 fi
1693 rm -f conftest.make
1694 fi
1695 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1696   echo "$as_me:$LINENO: result: yes" >&5
1697 echo "${ECHO_T}yes" >&6
1698   SET_MAKE=
1699 else
1700   echo "$as_me:$LINENO: result: no" >&5
1701 echo "${ECHO_T}no" >&6
1702   SET_MAKE="MAKE=${MAKE-make}"
1703 fi
1704
1705
1706 PACKAGE=gc
1707
1708 VERSION=6.1a1
1709
1710 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1711   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1712 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1713    { (exit 1); exit 1; }; }
1714 fi
1715
1716
1717
1718 missing_dir=`cd $ac_aux_dir && pwd`
1719 echo "$as_me:$LINENO: checking for working aclocal" >&5
1720 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1721 # Run test in a subshell; some versions of sh will print an error if
1722 # an executable is not found, even if stderr is redirected.
1723 # Redirect stdin to placate older versions of autoconf.  Sigh.
1724 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1725    ACLOCAL=aclocal
1726    echo "$as_me:$LINENO: result: found" >&5
1727 echo "${ECHO_T}found" >&6
1728 else
1729    ACLOCAL="$missing_dir/missing aclocal"
1730    echo "$as_me:$LINENO: result: missing" >&5
1731 echo "${ECHO_T}missing" >&6
1732 fi
1733
1734 echo "$as_me:$LINENO: checking for working autoconf" >&5
1735 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1736 # Run test in a subshell; some versions of sh will print an error if
1737 # an executable is not found, even if stderr is redirected.
1738 # Redirect stdin to placate older versions of autoconf.  Sigh.
1739 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1740    AUTOCONF=autoconf
1741    echo "$as_me:$LINENO: result: found" >&5
1742 echo "${ECHO_T}found" >&6
1743 else
1744    AUTOCONF="$missing_dir/missing autoconf"
1745    echo "$as_me:$LINENO: result: missing" >&5
1746 echo "${ECHO_T}missing" >&6
1747 fi
1748
1749 echo "$as_me:$LINENO: checking for working automake" >&5
1750 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1751 # Run test in a subshell; some versions of sh will print an error if
1752 # an executable is not found, even if stderr is redirected.
1753 # Redirect stdin to placate older versions of autoconf.  Sigh.
1754 if (automake --version) < /dev/null > /dev/null 2>&1; then
1755    AUTOMAKE=automake
1756    echo "$as_me:$LINENO: result: found" >&5
1757 echo "${ECHO_T}found" >&6
1758 else
1759    AUTOMAKE="$missing_dir/missing automake"
1760    echo "$as_me:$LINENO: result: missing" >&5
1761 echo "${ECHO_T}missing" >&6
1762 fi
1763
1764 echo "$as_me:$LINENO: checking for working autoheader" >&5
1765 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1766 # Run test in a subshell; some versions of sh will print an error if
1767 # an executable is not found, even if stderr is redirected.
1768 # Redirect stdin to placate older versions of autoconf.  Sigh.
1769 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1770    AUTOHEADER=autoheader
1771    echo "$as_me:$LINENO: result: found" >&5
1772 echo "${ECHO_T}found" >&6
1773 else
1774    AUTOHEADER="$missing_dir/missing autoheader"
1775    echo "$as_me:$LINENO: result: missing" >&5
1776 echo "${ECHO_T}missing" >&6
1777 fi
1778
1779 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1780 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1781 # Run test in a subshell; some versions of sh will print an error if
1782 # an executable is not found, even if stderr is redirected.
1783 # Redirect stdin to placate older versions of autoconf.  Sigh.
1784 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1785    MAKEINFO=makeinfo
1786    echo "$as_me:$LINENO: result: found" >&5
1787 echo "${ECHO_T}found" >&6
1788 else
1789    MAKEINFO="$missing_dir/missing makeinfo"
1790    echo "$as_me:$LINENO: result: missing" >&5
1791 echo "${ECHO_T}missing" >&6
1792 fi
1793
1794
1795
1796 # The autoconf 2.5x version of the no-executables hack.
1797 # GCC_NO_EXECUTABLES
1798 # -----------------
1799 # FIXME: The GCC team has specific needs which the current Autoconf
1800 # framework cannot solve elegantly.  This macro implements a dirty
1801 # hack until Autoconf is able to provide the services its users
1802 # need.
1803 #
1804 # Several of the support libraries that are often built with GCC can't
1805 # assume the tool-chain is already capable of linking a program: the
1806 # compiler often expects to be able to link with some of such
1807 # libraries.
1808 #
1809 # In several of these libraries, workarounds have been introduced to
1810 # avoid the AC_PROG_CC_WORKS test, that would just abort their
1811 # configuration.  The introduction of AC_EXEEXT, enabled either by
1812 # libtool or by CVS autoconf, have just made matters worse.
1813 #
1814 # Unlike the previous AC_NO_EXECUTABLES, this test does not
1815 # disable link tests at autoconf time, but at configure time.
1816 # This allows AC_NO_EXECUTABLES to be invoked conditionally.
1817 # GCC_NO_EXECUTABLES
1818
1819
1820
1821 # Yak.  We must force CC and CXX to /not/ be precious variables; otherwise
1822 # the wrong, non-multilib-adjusted value will be used in multilibs.
1823 # As a side effect, we have to subst CFLAGS and CXXFLAGS ourselves.
1824
1825
1826
1827 ac_ext=c
1828 ac_cpp='$CPP $CPPFLAGS'
1829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1832 if test -n "$ac_tool_prefix"; then
1833   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1834 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1835 echo "$as_me:$LINENO: checking for $ac_word" >&5
1836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1837 if test "${ac_cv_prog_CC+set}" = set; then
1838   echo $ECHO_N "(cached) $ECHO_C" >&6
1839 else
1840   if test -n "$CC"; then
1841   ac_cv_prog_CC="$CC" # Let the user override the test.
1842 else
1843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844 for as_dir in $PATH
1845 do
1846   IFS=$as_save_IFS
1847   test -z "$as_dir" && as_dir=.
1848   for ac_exec_ext in '' $ac_executable_extensions; do
1849   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1850     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1852     break 2
1853   fi
1854 done
1855 done
1856
1857 fi
1858 fi
1859 CC=$ac_cv_prog_CC
1860 if test -n "$CC"; then
1861   echo "$as_me:$LINENO: result: $CC" >&5
1862 echo "${ECHO_T}$CC" >&6
1863 else
1864   echo "$as_me:$LINENO: result: no" >&5
1865 echo "${ECHO_T}no" >&6
1866 fi
1867
1868 fi
1869 if test -z "$ac_cv_prog_CC"; then
1870   ac_ct_CC=$CC
1871   # Extract the first word of "gcc", so it can be a program name with args.
1872 set dummy gcc; ac_word=$2
1873 echo "$as_me:$LINENO: checking for $ac_word" >&5
1874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1876   echo $ECHO_N "(cached) $ECHO_C" >&6
1877 else
1878   if test -n "$ac_ct_CC"; then
1879   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1880 else
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 for as_dir in $PATH
1883 do
1884   IFS=$as_save_IFS
1885   test -z "$as_dir" && as_dir=.
1886   for ac_exec_ext in '' $ac_executable_extensions; do
1887   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888     ac_cv_prog_ac_ct_CC="gcc"
1889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890     break 2
1891   fi
1892 done
1893 done
1894
1895 fi
1896 fi
1897 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1898 if test -n "$ac_ct_CC"; then
1899   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1900 echo "${ECHO_T}$ac_ct_CC" >&6
1901 else
1902   echo "$as_me:$LINENO: result: no" >&5
1903 echo "${ECHO_T}no" >&6
1904 fi
1905
1906   CC=$ac_ct_CC
1907 else
1908   CC="$ac_cv_prog_CC"
1909 fi
1910
1911 if test -z "$CC"; then
1912   if test -n "$ac_tool_prefix"; then
1913   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1914 set dummy ${ac_tool_prefix}cc; ac_word=$2
1915 echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1917 if test "${ac_cv_prog_CC+set}" = set; then
1918   echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920   if test -n "$CC"; then
1921   ac_cv_prog_CC="$CC" # Let the user override the test.
1922 else
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 for as_dir in $PATH
1925 do
1926   IFS=$as_save_IFS
1927   test -z "$as_dir" && as_dir=.
1928   for ac_exec_ext in '' $ac_executable_extensions; do
1929   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930     ac_cv_prog_CC="${ac_tool_prefix}cc"
1931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932     break 2
1933   fi
1934 done
1935 done
1936
1937 fi
1938 fi
1939 CC=$ac_cv_prog_CC
1940 if test -n "$CC"; then
1941   echo "$as_me:$LINENO: result: $CC" >&5
1942 echo "${ECHO_T}$CC" >&6
1943 else
1944   echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6
1946 fi
1947
1948 fi
1949 if test -z "$ac_cv_prog_CC"; then
1950   ac_ct_CC=$CC
1951   # Extract the first word of "cc", so it can be a program name with args.
1952 set dummy cc; ac_word=$2
1953 echo "$as_me:$LINENO: checking for $ac_word" >&5
1954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1955 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1956   echo $ECHO_N "(cached) $ECHO_C" >&6
1957 else
1958   if test -n "$ac_ct_CC"; then
1959   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1960 else
1961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962 for as_dir in $PATH
1963 do
1964   IFS=$as_save_IFS
1965   test -z "$as_dir" && as_dir=.
1966   for ac_exec_ext in '' $ac_executable_extensions; do
1967   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1968     ac_cv_prog_ac_ct_CC="cc"
1969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1970     break 2
1971   fi
1972 done
1973 done
1974
1975 fi
1976 fi
1977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1978 if test -n "$ac_ct_CC"; then
1979   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1980 echo "${ECHO_T}$ac_ct_CC" >&6
1981 else
1982   echo "$as_me:$LINENO: result: no" >&5
1983 echo "${ECHO_T}no" >&6
1984 fi
1985
1986   CC=$ac_ct_CC
1987 else
1988   CC="$ac_cv_prog_CC"
1989 fi
1990
1991 fi
1992 if test -z "$CC"; then
1993   # Extract the first word of "cc", so it can be a program name with args.
1994 set dummy cc; ac_word=$2
1995 echo "$as_me:$LINENO: checking for $ac_word" >&5
1996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1997 if test "${ac_cv_prog_CC+set}" = set; then
1998   echo $ECHO_N "(cached) $ECHO_C" >&6
1999 else
2000   if test -n "$CC"; then
2001   ac_cv_prog_CC="$CC" # Let the user override the test.
2002 else
2003   ac_prog_rejected=no
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2006 do
2007   IFS=$as_save_IFS
2008   test -z "$as_dir" && as_dir=.
2009   for ac_exec_ext in '' $ac_executable_extensions; do
2010   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2012        ac_prog_rejected=yes
2013        continue
2014      fi
2015     ac_cv_prog_CC="cc"
2016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017     break 2
2018   fi
2019 done
2020 done
2021
2022 if test $ac_prog_rejected = yes; then
2023   # We found a bogon in the path, so make sure we never use it.
2024   set dummy $ac_cv_prog_CC
2025   shift
2026   if test $# != 0; then
2027     # We chose a different compiler from the bogus one.
2028     # However, it has the same basename, so the bogon will be chosen
2029     # first if we set CC to just the basename; use the full file name.
2030     shift
2031     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2032   fi
2033 fi
2034 fi
2035 fi
2036 CC=$ac_cv_prog_CC
2037 if test -n "$CC"; then
2038   echo "$as_me:$LINENO: result: $CC" >&5
2039 echo "${ECHO_T}$CC" >&6
2040 else
2041   echo "$as_me:$LINENO: result: no" >&5
2042 echo "${ECHO_T}no" >&6
2043 fi
2044
2045 fi
2046 if test -z "$CC"; then
2047   if test -n "$ac_tool_prefix"; then
2048   for ac_prog in cl
2049   do
2050     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2051 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2052 echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2054 if test "${ac_cv_prog_CC+set}" = set; then
2055   echo $ECHO_N "(cached) $ECHO_C" >&6
2056 else
2057   if test -n "$CC"; then
2058   ac_cv_prog_CC="$CC" # Let the user override the test.
2059 else
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 for as_dir in $PATH
2062 do
2063   IFS=$as_save_IFS
2064   test -z "$as_dir" && as_dir=.
2065   for ac_exec_ext in '' $ac_executable_extensions; do
2066   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2067     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069     break 2
2070   fi
2071 done
2072 done
2073
2074 fi
2075 fi
2076 CC=$ac_cv_prog_CC
2077 if test -n "$CC"; then
2078   echo "$as_me:$LINENO: result: $CC" >&5
2079 echo "${ECHO_T}$CC" >&6
2080 else
2081   echo "$as_me:$LINENO: result: no" >&5
2082 echo "${ECHO_T}no" >&6
2083 fi
2084
2085     test -n "$CC" && break
2086   done
2087 fi
2088 if test -z "$CC"; then
2089   ac_ct_CC=$CC
2090   for ac_prog in cl
2091 do
2092   # Extract the first word of "$ac_prog", so it can be a program name with args.
2093 set dummy $ac_prog; ac_word=$2
2094 echo "$as_me:$LINENO: checking for $ac_word" >&5
2095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2096 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2097   echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099   if test -n "$ac_ct_CC"; then
2100   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2101 else
2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 for as_dir in $PATH
2104 do
2105   IFS=$as_save_IFS
2106   test -z "$as_dir" && as_dir=.
2107   for ac_exec_ext in '' $ac_executable_extensions; do
2108   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2109     ac_cv_prog_ac_ct_CC="$ac_prog"
2110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111     break 2
2112   fi
2113 done
2114 done
2115
2116 fi
2117 fi
2118 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2119 if test -n "$ac_ct_CC"; then
2120   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2121 echo "${ECHO_T}$ac_ct_CC" >&6
2122 else
2123   echo "$as_me:$LINENO: result: no" >&5
2124 echo "${ECHO_T}no" >&6
2125 fi
2126
2127   test -n "$ac_ct_CC" && break
2128 done
2129
2130   CC=$ac_ct_CC
2131 fi
2132
2133 fi
2134
2135
2136 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2137 See \`config.log' for more details." >&5
2138 echo "$as_me: error: no acceptable C compiler found in \$PATH
2139 See \`config.log' for more details." >&2;}
2140    { (exit 1); exit 1; }; }
2141
2142 # Provide some information about the compiler.
2143 echo "$as_me:$LINENO:" \
2144      "checking for C compiler version" >&5
2145 ac_compiler=`set X $ac_compile; echo $2`
2146 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2147   (eval $ac_compiler --version </dev/null >&5) 2>&5
2148   ac_status=$?
2149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150   (exit $ac_status); }
2151 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2152   (eval $ac_compiler -v </dev/null >&5) 2>&5
2153   ac_status=$?
2154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155   (exit $ac_status); }
2156 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2157   (eval $ac_compiler -V </dev/null >&5) 2>&5
2158   ac_status=$?
2159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160   (exit $ac_status); }
2161
2162 cat >conftest.$ac_ext <<_ACEOF
2163 #line $LINENO "configure"
2164 /* confdefs.h.  */
2165 _ACEOF
2166 cat confdefs.h >>conftest.$ac_ext
2167 cat >>conftest.$ac_ext <<_ACEOF
2168 /* end confdefs.h.  */
2169
2170 int
2171 main ()
2172 {
2173
2174   ;
2175   return 0;
2176 }
2177 _ACEOF
2178 # FIXME: Cleanup?
2179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2180   (eval $ac_link) 2>&5
2181   ac_status=$?
2182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183   (exit $ac_status); }; then
2184   gcc_no_link=no
2185 else
2186   gcc_no_link=yes
2187 fi
2188
2189 if test x$gcc_no_link = xyes; then
2190   # Setting cross_compile will disable run tests; it will
2191   # also disable AC_CHECK_FILE but that's generally
2192   # correct if we can't link.
2193   cross_compiling=yes
2194   EXEEXT=
2195 else
2196   cat >conftest.$ac_ext <<_ACEOF
2197 #line $LINENO "configure"
2198 /* confdefs.h.  */
2199 _ACEOF
2200 cat confdefs.h >>conftest.$ac_ext
2201 cat >>conftest.$ac_ext <<_ACEOF
2202 /* end confdefs.h.  */
2203
2204 int
2205 main ()
2206 {
2207
2208   ;
2209   return 0;
2210 }
2211 _ACEOF
2212 ac_clean_files_save=$ac_clean_files
2213 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2214 # Try to create an executable without -o first, disregard a.out.
2215 # It will help us diagnose broken compilers, and finding out an intuition
2216 # of exeext.
2217 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2218 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2219 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2220 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2221   (eval $ac_link_default) 2>&5
2222   ac_status=$?
2223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224   (exit $ac_status); }; then
2225   # Find the output, starting from the most likely.  This scheme is
2226 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2227 # resort.
2228
2229 # Be careful to initialize this variable, since it used to be cached.
2230 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2231 ac_cv_exeext=
2232 # b.out is created by i960 compilers.
2233 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2234 do
2235   test -f "$ac_file" || continue
2236   case $ac_file in
2237     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2238         ;;
2239     conftest.$ac_ext )
2240         # This is the source file.
2241         ;;
2242     [ab].out )
2243         # We found the default executable, but exeext='' is most
2244         # certainly right.
2245         break;;
2246     *.* )
2247         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2248         # FIXME: I believe we export ac_cv_exeext for Libtool,
2249         # but it would be cool to find out if it's true.  Does anybody
2250         # maintain Libtool? --akim.
2251         export ac_cv_exeext
2252         break;;
2253     * )
2254         break;;
2255   esac
2256 done
2257 else
2258   echo "$as_me: failed program was:" >&5
2259 sed 's/^/| /' conftest.$ac_ext >&5
2260
2261 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2262 See \`config.log' for more details." >&5
2263 echo "$as_me: error: C compiler cannot create executables
2264 See \`config.log' for more details." >&2;}
2265    { (exit 77); exit 77; }; }
2266 fi
2267
2268 ac_exeext=$ac_cv_exeext
2269 echo "$as_me:$LINENO: result: $ac_file" >&5
2270 echo "${ECHO_T}$ac_file" >&6
2271
2272 # Check the compiler produces executables we can run.  If not, either
2273 # the compiler is broken, or we cross compile.
2274 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2275 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2276 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2277 # If not cross compiling, check that we can run a simple program.
2278 if test "$cross_compiling" != yes; then
2279   if { ac_try='./$ac_file'
2280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281   (eval $ac_try) 2>&5
2282   ac_status=$?
2283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284   (exit $ac_status); }; }; then
2285     cross_compiling=no
2286   else
2287     if test "$cross_compiling" = maybe; then
2288         cross_compiling=yes
2289     else
2290         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2291 If you meant to cross compile, use \`--host'.
2292 See \`config.log' for more details." >&5
2293 echo "$as_me: error: cannot run C compiled programs.
2294 If you meant to cross compile, use \`--host'.
2295 See \`config.log' for more details." >&2;}
2296    { (exit 1); exit 1; }; }
2297     fi
2298   fi
2299 fi
2300 echo "$as_me:$LINENO: result: yes" >&5
2301 echo "${ECHO_T}yes" >&6
2302
2303 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2304 ac_clean_files=$ac_clean_files_save
2305 # Check the compiler produces executables we can run.  If not, either
2306 # the compiler is broken, or we cross compile.
2307 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2308 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2309 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2310 echo "${ECHO_T}$cross_compiling" >&6
2311
2312 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2313 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2315   (eval $ac_link) 2>&5
2316   ac_status=$?
2317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318   (exit $ac_status); }; then
2319   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2320 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2321 # work properly (i.e., refer to `conftest.exe'), while it won't with
2322 # `rm'.
2323 for ac_file in conftest.exe conftest conftest.*; do
2324   test -f "$ac_file" || continue
2325   case $ac_file in
2326     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2327     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2328           export ac_cv_exeext
2329           break;;
2330     * ) break;;
2331   esac
2332 done
2333 else
2334   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2335 See \`config.log' for more details." >&5
2336 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2337 See \`config.log' for more details." >&2;}
2338    { (exit 1); exit 1; }; }
2339 fi
2340
2341 rm -f conftest$ac_cv_exeext
2342 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2343 echo "${ECHO_T}$ac_cv_exeext" >&6
2344
2345 rm -f conftest.$ac_ext
2346 EXEEXT=$ac_cv_exeext
2347 ac_exeext=$EXEEXT
2348 fi
2349 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2350 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2351 if test "${ac_cv_objext+set}" = set; then
2352   echo $ECHO_N "(cached) $ECHO_C" >&6
2353 else
2354   cat >conftest.$ac_ext <<_ACEOF
2355 #line $LINENO "configure"
2356 /* confdefs.h.  */
2357 _ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h.  */
2361
2362 int
2363 main ()
2364 {
2365
2366   ;
2367   return 0;
2368 }
2369 _ACEOF
2370 rm -f conftest.o conftest.obj
2371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372   (eval $ac_compile) 2>&5
2373   ac_status=$?
2374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375   (exit $ac_status); }; then
2376   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2377   case $ac_file in
2378     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2379     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2380        break;;
2381   esac
2382 done
2383 else
2384   echo "$as_me: failed program was:" >&5
2385 sed 's/^/| /' conftest.$ac_ext >&5
2386
2387 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2388 See \`config.log' for more details." >&5
2389 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2390 See \`config.log' for more details." >&2;}
2391    { (exit 1); exit 1; }; }
2392 fi
2393
2394 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2395 fi
2396 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2397 echo "${ECHO_T}$ac_cv_objext" >&6
2398 OBJEXT=$ac_cv_objext
2399 ac_objext=$OBJEXT
2400 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2401 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2402 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2403   echo $ECHO_N "(cached) $ECHO_C" >&6
2404 else
2405   cat >conftest.$ac_ext <<_ACEOF
2406 #line $LINENO "configure"
2407 /* confdefs.h.  */
2408 _ACEOF
2409 cat confdefs.h >>conftest.$ac_ext
2410 cat >>conftest.$ac_ext <<_ACEOF
2411 /* end confdefs.h.  */
2412
2413 int
2414 main ()
2415 {
2416 #ifndef __GNUC__
2417        choke me
2418 #endif
2419
2420   ;
2421   return 0;
2422 }
2423 _ACEOF
2424 rm -f conftest.$ac_objext
2425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2426   (eval $ac_compile) 2>&5
2427   ac_status=$?
2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429   (exit $ac_status); } &&
2430          { ac_try='test -s conftest.$ac_objext'
2431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432   (eval $ac_try) 2>&5
2433   ac_status=$?
2434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435   (exit $ac_status); }; }; then
2436   ac_compiler_gnu=yes
2437 else
2438   echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2440
2441 ac_compiler_gnu=no
2442 fi
2443 rm -f conftest.$ac_objext conftest.$ac_ext
2444 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2445
2446 fi
2447 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2448 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2449 GCC=`test $ac_compiler_gnu = yes && echo yes`
2450 ac_test_CFLAGS=${CFLAGS+set}
2451 ac_save_CFLAGS=$CFLAGS
2452 CFLAGS="-g"
2453 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2454 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2455 if test "${ac_cv_prog_cc_g+set}" = set; then
2456   echo $ECHO_N "(cached) $ECHO_C" >&6
2457 else
2458   cat >conftest.$ac_ext <<_ACEOF
2459 #line $LINENO "configure"
2460 /* confdefs.h.  */
2461 _ACEOF
2462 cat confdefs.h >>conftest.$ac_ext
2463 cat >>conftest.$ac_ext <<_ACEOF
2464 /* end confdefs.h.  */
2465
2466 int
2467 main ()
2468 {
2469
2470   ;
2471   return 0;
2472 }
2473 _ACEOF
2474 rm -f conftest.$ac_objext
2475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476   (eval $ac_compile) 2>&5
2477   ac_status=$?
2478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479   (exit $ac_status); } &&
2480          { ac_try='test -s conftest.$ac_objext'
2481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482   (eval $ac_try) 2>&5
2483   ac_status=$?
2484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485   (exit $ac_status); }; }; then
2486   ac_cv_prog_cc_g=yes
2487 else
2488   echo "$as_me: failed program was:" >&5
2489 sed 's/^/| /' conftest.$ac_ext >&5
2490
2491 ac_cv_prog_cc_g=no
2492 fi
2493 rm -f conftest.$ac_objext conftest.$ac_ext
2494 fi
2495 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2496 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2497 if test "$ac_test_CFLAGS" = set; then
2498   CFLAGS=$ac_save_CFLAGS
2499 elif test $ac_cv_prog_cc_g = yes; then
2500   if test "$GCC" = yes; then
2501     CFLAGS="-g -O2"
2502   else
2503     CFLAGS="-g"
2504   fi
2505 else
2506   if test "$GCC" = yes; then
2507     CFLAGS="-O2"
2508   else
2509     CFLAGS=
2510   fi
2511 fi
2512 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2513 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2514 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2515   echo $ECHO_N "(cached) $ECHO_C" >&6
2516 else
2517   ac_cv_prog_cc_stdc=no
2518 ac_save_CC=$CC
2519 cat >conftest.$ac_ext <<_ACEOF
2520 #line $LINENO "configure"
2521 /* confdefs.h.  */
2522 _ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h.  */
2526 #include <stdarg.h>
2527 #include <stdio.h>
2528 #include <sys/types.h>
2529 #include <sys/stat.h>
2530 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2531 struct buf { int x; };
2532 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2533 static char *e (p, i)
2534      char **p;
2535      int i;
2536 {
2537   return p[i];
2538 }
2539 static char *f (char * (*g) (char **, int), char **p, ...)
2540 {
2541   char *s;
2542   va_list v;
2543   va_start (v,p);
2544   s = g (p, va_arg (v,int));
2545   va_end (v);
2546   return s;
2547 }
2548 int test (int i, double x);
2549 struct s1 {int (*f) (int a);};
2550 struct s2 {int (*f) (double a);};
2551 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2552 int argc;
2553 char **argv;
2554 int
2555 main ()
2556 {
2557 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2558   ;
2559   return 0;
2560 }
2561 _ACEOF
2562 # Don't try gcc -ansi; that turns off useful extensions and
2563 # breaks some systems' header files.
2564 # AIX                   -qlanglvl=ansi
2565 # Ultrix and OSF/1      -std1
2566 # HP-UX 10.20 and later -Ae
2567 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2568 # SVR4                  -Xc -D__EXTENSIONS__
2569 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2570 do
2571   CC="$ac_save_CC $ac_arg"
2572   rm -f conftest.$ac_objext
2573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2574   (eval $ac_compile) 2>&5
2575   ac_status=$?
2576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577   (exit $ac_status); } &&
2578          { ac_try='test -s conftest.$ac_objext'
2579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580   (eval $ac_try) 2>&5
2581   ac_status=$?
2582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); }; }; then
2584   ac_cv_prog_cc_stdc=$ac_arg
2585 break
2586 else
2587   echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2589
2590 fi
2591 rm -f conftest.$ac_objext
2592 done
2593 rm -f conftest.$ac_ext conftest.$ac_objext
2594 CC=$ac_save_CC
2595
2596 fi
2597
2598 case "x$ac_cv_prog_cc_stdc" in
2599   x|xno)
2600     echo "$as_me:$LINENO: result: none needed" >&5
2601 echo "${ECHO_T}none needed" >&6 ;;
2602   *)
2603     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2604 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2605     CC="$CC $ac_cv_prog_cc_stdc" ;;
2606 esac
2607
2608 # Some people use a C++ compiler to compile C.  Since we use `exit',
2609 # in C++ we need to declare it.  In case someone uses the same compiler
2610 # for both compiling C and C++ we need to have the C++ compiler decide
2611 # the declaration of exit, since it's the most demanding environment.
2612 cat >conftest.$ac_ext <<_ACEOF
2613 #ifndef __cplusplus
2614   choke me
2615 #endif
2616 _ACEOF
2617 rm -f conftest.$ac_objext
2618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619   (eval $ac_compile) 2>&5
2620   ac_status=$?
2621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622   (exit $ac_status); } &&
2623          { ac_try='test -s conftest.$ac_objext'
2624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625   (eval $ac_try) 2>&5
2626   ac_status=$?
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); }; }; then
2629   for ac_declaration in \
2630    '' \
2631    'extern "C" void std::exit (int) throw (); using std::exit;' \
2632    'extern "C" void std::exit (int); using std::exit;' \
2633    'extern "C" void exit (int) throw ();' \
2634    'extern "C" void exit (int);' \
2635    'void exit (int);'
2636 do
2637   cat >conftest.$ac_ext <<_ACEOF
2638 #line $LINENO "configure"
2639 /* confdefs.h.  */
2640 _ACEOF
2641 cat confdefs.h >>conftest.$ac_ext
2642 cat >>conftest.$ac_ext <<_ACEOF
2643 /* end confdefs.h.  */
2644 $ac_declaration
2645 #include <stdlib.h>
2646 int
2647 main ()
2648 {
2649 exit (42);
2650   ;
2651   return 0;
2652 }
2653 _ACEOF
2654 rm -f conftest.$ac_objext
2655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2656   (eval $ac_compile) 2>&5
2657   ac_status=$?
2658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659   (exit $ac_status); } &&
2660          { ac_try='test -s conftest.$ac_objext'
2661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662   (eval $ac_try) 2>&5
2663   ac_status=$?
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); }; }; then
2666   :
2667 else
2668   echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2670
2671 continue
2672 fi
2673 rm -f conftest.$ac_objext conftest.$ac_ext
2674   cat >conftest.$ac_ext <<_ACEOF
2675 #line $LINENO "configure"
2676 /* confdefs.h.  */
2677 _ACEOF
2678 cat confdefs.h >>conftest.$ac_ext
2679 cat >>conftest.$ac_ext <<_ACEOF
2680 /* end confdefs.h.  */
2681 $ac_declaration
2682 int
2683 main ()
2684 {
2685 exit (42);
2686   ;
2687   return 0;
2688 }
2689 _ACEOF
2690 rm -f conftest.$ac_objext
2691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692   (eval $ac_compile) 2>&5
2693   ac_status=$?
2694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695   (exit $ac_status); } &&
2696          { ac_try='test -s conftest.$ac_objext'
2697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698   (eval $ac_try) 2>&5
2699   ac_status=$?
2700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701   (exit $ac_status); }; }; then
2702   break
2703 else
2704   echo "$as_me: failed program was:" >&5
2705 sed 's/^/| /' conftest.$ac_ext >&5
2706
2707 fi
2708 rm -f conftest.$ac_objext conftest.$ac_ext
2709 done
2710 rm -f conftest*
2711 if test -n "$ac_declaration"; then
2712   echo '#ifdef __cplusplus' >>confdefs.h
2713   echo $ac_declaration      >>confdefs.h
2714   echo '#endif'             >>confdefs.h
2715 fi
2716
2717 else
2718   echo "$as_me: failed program was:" >&5
2719 sed 's/^/| /' conftest.$ac_ext >&5
2720
2721 fi
2722 rm -f conftest.$ac_objext conftest.$ac_ext
2723 ac_ext=c
2724 ac_cpp='$CPP $CPPFLAGS'
2725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2728
2729 ac_ext=cc
2730 ac_cpp='$CXXCPP $CPPFLAGS'
2731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2734 if test -n "$ac_tool_prefix"; then
2735   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2736   do
2737     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2738 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2739 echo "$as_me:$LINENO: checking for $ac_word" >&5
2740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2741 if test "${ac_cv_prog_CXX+set}" = set; then
2742   echo $ECHO_N "(cached) $ECHO_C" >&6
2743 else
2744   if test -n "$CXX"; then
2745   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2746 else
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 for as_dir in $PATH
2749 do
2750   IFS=$as_save_IFS
2751   test -z "$as_dir" && as_dir=.
2752   for ac_exec_ext in '' $ac_executable_extensions; do
2753   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2754     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2756     break 2
2757   fi
2758 done
2759 done
2760
2761 fi
2762 fi
2763 CXX=$ac_cv_prog_CXX
2764 if test -n "$CXX"; then
2765   echo "$as_me:$LINENO: result: $CXX" >&5
2766 echo "${ECHO_T}$CXX" >&6
2767 else
2768   echo "$as_me:$LINENO: result: no" >&5
2769 echo "${ECHO_T}no" >&6
2770 fi
2771
2772     test -n "$CXX" && break
2773   done
2774 fi
2775 if test -z "$CXX"; then
2776   ac_ct_CXX=$CXX
2777   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2778 do
2779   # Extract the first word of "$ac_prog", so it can be a program name with args.
2780 set dummy $ac_prog; ac_word=$2
2781 echo "$as_me:$LINENO: checking for $ac_word" >&5
2782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2783 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2784   echo $ECHO_N "(cached) $ECHO_C" >&6
2785 else
2786   if test -n "$ac_ct_CXX"; then
2787   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2788 else
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2791 do
2792   IFS=$as_save_IFS
2793   test -z "$as_dir" && as_dir=.
2794   for ac_exec_ext in '' $ac_executable_extensions; do
2795   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2796     ac_cv_prog_ac_ct_CXX="$ac_prog"
2797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798     break 2
2799   fi
2800 done
2801 done
2802
2803 fi
2804 fi
2805 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2806 if test -n "$ac_ct_CXX"; then
2807   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2808 echo "${ECHO_T}$ac_ct_CXX" >&6
2809 else
2810   echo "$as_me:$LINENO: result: no" >&5
2811 echo "${ECHO_T}no" >&6
2812 fi
2813
2814   test -n "$ac_ct_CXX" && break
2815 done
2816 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2817
2818   CXX=$ac_ct_CXX
2819 fi
2820
2821
2822 # Provide some information about the compiler.
2823 echo "$as_me:$LINENO:" \
2824      "checking for C++ compiler version" >&5
2825 ac_compiler=`set X $ac_compile; echo $2`
2826 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2827   (eval $ac_compiler --version </dev/null >&5) 2>&5
2828   ac_status=$?
2829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830   (exit $ac_status); }
2831 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2832   (eval $ac_compiler -v </dev/null >&5) 2>&5
2833   ac_status=$?
2834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835   (exit $ac_status); }
2836 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2837   (eval $ac_compiler -V </dev/null >&5) 2>&5
2838   ac_status=$?
2839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840   (exit $ac_status); }
2841
2842 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2843 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2844 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2845   echo $ECHO_N "(cached) $ECHO_C" >&6
2846 else
2847   cat >conftest.$ac_ext <<_ACEOF
2848 #line $LINENO "configure"
2849 /* confdefs.h.  */
2850 _ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h.  */
2854
2855 int
2856 main ()
2857 {
2858 #ifndef __GNUC__
2859        choke me
2860 #endif
2861
2862   ;
2863   return 0;
2864 }
2865 _ACEOF
2866 rm -f conftest.$ac_objext
2867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2868   (eval $ac_compile) 2>&5
2869   ac_status=$?
2870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871   (exit $ac_status); } &&
2872          { ac_try='test -s conftest.$ac_objext'
2873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874   (eval $ac_try) 2>&5
2875   ac_status=$?
2876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877   (exit $ac_status); }; }; then
2878   ac_compiler_gnu=yes
2879 else
2880   echo "$as_me: failed program was:" >&5
2881 sed 's/^/| /' conftest.$ac_ext >&5
2882
2883 ac_compiler_gnu=no
2884 fi
2885 rm -f conftest.$ac_objext conftest.$ac_ext
2886 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2887
2888 fi
2889 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2890 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2891 GXX=`test $ac_compiler_gnu = yes && echo yes`
2892 ac_test_CXXFLAGS=${CXXFLAGS+set}
2893 ac_save_CXXFLAGS=$CXXFLAGS
2894 CXXFLAGS="-g"
2895 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2896 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2897 if test "${ac_cv_prog_cxx_g+set}" = set; then
2898   echo $ECHO_N "(cached) $ECHO_C" >&6
2899 else
2900   cat >conftest.$ac_ext <<_ACEOF
2901 #line $LINENO "configure"
2902 /* confdefs.h.  */
2903 _ACEOF
2904 cat confdefs.h >>conftest.$ac_ext
2905 cat >>conftest.$ac_ext <<_ACEOF
2906 /* end confdefs.h.  */
2907
2908 int
2909 main ()
2910 {
2911
2912   ;
2913   return 0;
2914 }
2915 _ACEOF
2916 rm -f conftest.$ac_objext
2917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2918   (eval $ac_compile) 2>&5
2919   ac_status=$?
2920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921   (exit $ac_status); } &&
2922          { ac_try='test -s conftest.$ac_objext'
2923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924   (eval $ac_try) 2>&5
2925   ac_status=$?
2926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927   (exit $ac_status); }; }; then
2928   ac_cv_prog_cxx_g=yes
2929 else
2930   echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2932
2933 ac_cv_prog_cxx_g=no
2934 fi
2935 rm -f conftest.$ac_objext conftest.$ac_ext
2936 fi
2937 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2938 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2939 if test "$ac_test_CXXFLAGS" = set; then
2940   CXXFLAGS=$ac_save_CXXFLAGS
2941 elif test $ac_cv_prog_cxx_g = yes; then
2942   if test "$GXX" = yes; then
2943     CXXFLAGS="-g -O2"
2944   else
2945     CXXFLAGS="-g"
2946   fi
2947 else
2948   if test "$GXX" = yes; then
2949     CXXFLAGS="-O2"
2950   else
2951     CXXFLAGS=
2952   fi
2953 fi
2954 for ac_declaration in \
2955    '' \
2956    'extern "C" void std::exit (int) throw (); using std::exit;' \
2957    'extern "C" void std::exit (int); using std::exit;' \
2958    'extern "C" void exit (int) throw ();' \
2959    'extern "C" void exit (int);' \
2960    'void exit (int);'
2961 do
2962   cat >conftest.$ac_ext <<_ACEOF
2963 #line $LINENO "configure"
2964 /* confdefs.h.  */
2965 _ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h.  */
2969 $ac_declaration
2970 #include <stdlib.h>
2971 int
2972 main ()
2973 {
2974 exit (42);
2975   ;
2976   return 0;
2977 }
2978 _ACEOF
2979 rm -f conftest.$ac_objext
2980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2981   (eval $ac_compile) 2>&5
2982   ac_status=$?
2983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984   (exit $ac_status); } &&
2985          { ac_try='test -s conftest.$ac_objext'
2986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987   (eval $ac_try) 2>&5
2988   ac_status=$?
2989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990   (exit $ac_status); }; }; then
2991   :
2992 else
2993   echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2995
2996 continue
2997 fi
2998 rm -f conftest.$ac_objext conftest.$ac_ext
2999   cat >conftest.$ac_ext <<_ACEOF
3000 #line $LINENO "configure"
3001 /* confdefs.h.  */
3002 _ACEOF
3003 cat confdefs.h >>conftest.$ac_ext
3004 cat >>conftest.$ac_ext <<_ACEOF
3005 /* end confdefs.h.  */
3006 $ac_declaration
3007 int
3008 main ()
3009 {
3010 exit (42);
3011   ;
3012   return 0;
3013 }
3014 _ACEOF
3015 rm -f conftest.$ac_objext
3016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3017   (eval $ac_compile) 2>&5
3018   ac_status=$?
3019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020   (exit $ac_status); } &&
3021          { ac_try='test -s conftest.$ac_objext'
3022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023   (eval $ac_try) 2>&5
3024   ac_status=$?
3025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026   (exit $ac_status); }; }; then
3027   break
3028 else
3029   echo "$as_me: failed program was:" >&5
3030 sed 's/^/| /' conftest.$ac_ext >&5
3031
3032 fi
3033 rm -f conftest.$ac_objext conftest.$ac_ext
3034 done
3035 rm -f conftest*
3036 if test -n "$ac_declaration"; then
3037   echo '#ifdef __cplusplus' >>confdefs.h
3038   echo $ac_declaration      >>confdefs.h
3039   echo '#endif'             >>confdefs.h
3040 fi
3041
3042 ac_ext=c
3043 ac_cpp='$CPP $CPPFLAGS'
3044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3047
3048
3049
3050
3051
3052
3053 if test -n "$ac_tool_prefix"; then
3054   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3055 set dummy ${ac_tool_prefix}as; ac_word=$2
3056 echo "$as_me:$LINENO: checking for $ac_word" >&5
3057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3058 if test "${ac_cv_prog_AS+set}" = set; then
3059   echo $ECHO_N "(cached) $ECHO_C" >&6
3060 else
3061   if test -n "$AS"; then
3062   ac_cv_prog_AS="$AS" # Let the user override the test.
3063 else
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 for as_dir in $PATH
3066 do
3067   IFS=$as_save_IFS
3068   test -z "$as_dir" && as_dir=.
3069   for ac_exec_ext in '' $ac_executable_extensions; do
3070   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3071     ac_cv_prog_AS="${ac_tool_prefix}as"
3072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3073     break 2
3074   fi
3075 done
3076 done
3077
3078 fi
3079 fi
3080 AS=$ac_cv_prog_AS
3081 if test -n "$AS"; then
3082   echo "$as_me:$LINENO: result: $AS" >&5
3083 echo "${ECHO_T}$AS" >&6
3084 else
3085   echo "$as_me:$LINENO: result: no" >&5
3086 echo "${ECHO_T}no" >&6
3087 fi
3088
3089 fi
3090 if test -z "$ac_cv_prog_AS"; then
3091   ac_ct_AS=$AS
3092   # Extract the first word of "as", so it can be a program name with args.
3093 set dummy as; ac_word=$2
3094 echo "$as_me:$LINENO: checking for $ac_word" >&5
3095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3096 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3097   echo $ECHO_N "(cached) $ECHO_C" >&6
3098 else
3099   if test -n "$ac_ct_AS"; then
3100   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3101 else
3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 for as_dir in $PATH
3104 do
3105   IFS=$as_save_IFS
3106   test -z "$as_dir" && as_dir=.
3107   for ac_exec_ext in '' $ac_executable_extensions; do
3108   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3109     ac_cv_prog_ac_ct_AS="as"
3110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3111     break 2
3112   fi
3113 done
3114 done
3115
3116 fi
3117 fi
3118 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3119 if test -n "$ac_ct_AS"; then
3120   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3121 echo "${ECHO_T}$ac_ct_AS" >&6
3122 else
3123   echo "$as_me:$LINENO: result: no" >&5
3124 echo "${ECHO_T}no" >&6
3125 fi
3126
3127   AS=$ac_ct_AS
3128 else
3129   AS="$ac_cv_prog_AS"
3130 fi
3131
3132 if test -n "$ac_tool_prefix"; then
3133   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3134 set dummy ${ac_tool_prefix}ar; ac_word=$2
3135 echo "$as_me:$LINENO: checking for $ac_word" >&5
3136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3137 if test "${ac_cv_prog_AR+set}" = set; then
3138   echo $ECHO_N "(cached) $ECHO_C" >&6
3139 else
3140   if test -n "$AR"; then
3141   ac_cv_prog_AR="$AR" # Let the user override the test.
3142 else
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH
3145 do
3146   IFS=$as_save_IFS
3147   test -z "$as_dir" && as_dir=.
3148   for ac_exec_ext in '' $ac_executable_extensions; do
3149   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150     ac_cv_prog_AR="${ac_tool_prefix}ar"
3151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3152     break 2
3153   fi
3154 done
3155 done
3156
3157 fi
3158 fi
3159 AR=$ac_cv_prog_AR
3160 if test -n "$AR"; then
3161   echo "$as_me:$LINENO: result: $AR" >&5
3162 echo "${ECHO_T}$AR" >&6
3163 else
3164   echo "$as_me:$LINENO: result: no" >&5
3165 echo "${ECHO_T}no" >&6
3166 fi
3167
3168 fi
3169 if test -z "$ac_cv_prog_AR"; then
3170   ac_ct_AR=$AR
3171   # Extract the first word of "ar", so it can be a program name with args.
3172 set dummy ar; ac_word=$2
3173 echo "$as_me:$LINENO: checking for $ac_word" >&5
3174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3175 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3176   echo $ECHO_N "(cached) $ECHO_C" >&6
3177 else
3178   if test -n "$ac_ct_AR"; then
3179   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3180 else
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH
3183 do
3184   IFS=$as_save_IFS
3185   test -z "$as_dir" && as_dir=.
3186   for ac_exec_ext in '' $ac_executable_extensions; do
3187   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188     ac_cv_prog_ac_ct_AR="ar"
3189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3190     break 2
3191   fi
3192 done
3193 done
3194
3195 fi
3196 fi
3197 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3198 if test -n "$ac_ct_AR"; then
3199   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3200 echo "${ECHO_T}$ac_ct_AR" >&6
3201 else
3202   echo "$as_me:$LINENO: result: no" >&5
3203 echo "${ECHO_T}no" >&6
3204 fi
3205
3206   AR=$ac_ct_AR
3207 else
3208   AR="$ac_cv_prog_AR"
3209 fi
3210
3211 if test -n "$ac_tool_prefix"; then
3212   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3213 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3214 echo "$as_me:$LINENO: checking for $ac_word" >&5
3215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3216 if test "${ac_cv_prog_RANLIB+set}" = set; then
3217   echo $ECHO_N "(cached) $ECHO_C" >&6
3218 else
3219   if test -n "$RANLIB"; then
3220   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3221 else
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 for as_dir in $PATH
3224 do
3225   IFS=$as_save_IFS
3226   test -z "$as_dir" && as_dir=.
3227   for ac_exec_ext in '' $ac_executable_extensions; do
3228   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3229     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3231     break 2
3232   fi
3233 done
3234 done
3235
3236 fi
3237 fi
3238 RANLIB=$ac_cv_prog_RANLIB
3239 if test -n "$RANLIB"; then
3240   echo "$as_me:$LINENO: result: $RANLIB" >&5
3241 echo "${ECHO_T}$RANLIB" >&6
3242 else
3243   echo "$as_me:$LINENO: result: no" >&5
3244 echo "${ECHO_T}no" >&6
3245 fi
3246
3247 fi
3248 if test -z "$ac_cv_prog_RANLIB"; then
3249   ac_ct_RANLIB=$RANLIB
3250   # Extract the first word of "ranlib", so it can be a program name with args.
3251 set dummy ranlib; ac_word=$2
3252 echo "$as_me:$LINENO: checking for $ac_word" >&5
3253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3254 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3255   echo $ECHO_N "(cached) $ECHO_C" >&6
3256 else
3257   if test -n "$ac_ct_RANLIB"; then
3258   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3259 else
3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261 for as_dir in $PATH
3262 do
3263   IFS=$as_save_IFS
3264   test -z "$as_dir" && as_dir=.
3265   for ac_exec_ext in '' $ac_executable_extensions; do
3266   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3267     ac_cv_prog_ac_ct_RANLIB="ranlib"
3268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3269     break 2
3270   fi
3271 done
3272 done
3273
3274   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3275 fi
3276 fi
3277 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3278 if test -n "$ac_ct_RANLIB"; then
3279   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3280 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3281 else
3282   echo "$as_me:$LINENO: result: no" >&5
3283 echo "${ECHO_T}no" >&6
3284 fi
3285
3286   RANLIB=$ac_ct_RANLIB
3287 else
3288   RANLIB="$ac_cv_prog_RANLIB"
3289 fi
3290
3291
3292 # Find a good install program.  We prefer a C program (faster),
3293 # so one script is as good as another.  But avoid the broken or
3294 # incompatible versions:
3295 # SysV /etc/install, /usr/sbin/install
3296 # SunOS /usr/etc/install
3297 # IRIX /sbin/install
3298 # AIX /bin/install
3299 # AmigaOS /C/install, which installs bootblocks on floppy discs
3300 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3301 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3302 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3303 # ./install, which can be erroneously created by make from ./install.sh.
3304 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3305 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3306 if test -z "$INSTALL"; then
3307 if test "${ac_cv_path_install+set}" = set; then
3308   echo $ECHO_N "(cached) $ECHO_C" >&6
3309 else
3310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3312 do
3313   IFS=$as_save_IFS
3314   test -z "$as_dir" && as_dir=.
3315   # Account for people who put trailing slashes in PATH elements.
3316 case $as_dir/ in
3317   ./ | .// | /cC/* | \
3318   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3319   /usr/ucb/* ) ;;
3320   *)
3321     # OSF1 and SCO ODT 3.0 have their own names for install.
3322     # Don't use installbsd from OSF since it installs stuff as root
3323     # by default.
3324     for ac_prog in ginstall scoinst install; do
3325       for ac_exec_ext in '' $ac_executable_extensions; do
3326         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3327           if test $ac_prog = install &&
3328             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3329             # AIX install.  It has an incompatible calling convention.
3330             :
3331           elif test $ac_prog = install &&
3332             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3333             # program-specific install script used by HP pwplus--don't use.
3334             :
3335           else
3336             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3337             break 3
3338           fi
3339         fi
3340       done
3341     done
3342     ;;
3343 esac
3344 done
3345
3346
3347 fi
3348   if test "${ac_cv_path_install+set}" = set; then
3349     INSTALL=$ac_cv_path_install
3350   else
3351     # As a last resort, use the slow shell script.  We don't cache a
3352     # path for INSTALL within a source directory, because that will
3353     # break other packages using the cache if that directory is
3354     # removed, or if the path is relative.
3355     INSTALL=$ac_install_sh
3356   fi
3357 fi
3358 echo "$as_me:$LINENO: result: $INSTALL" >&5
3359 echo "${ECHO_T}$INSTALL" >&6
3360
3361 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3362 # It thinks the first close brace ends the variable substitution.
3363 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3364
3365 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3366
3367 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3368
3369
3370 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3371 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3372     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3373 if test "${enable_maintainer_mode+set}" = set; then
3374   enableval="$enable_maintainer_mode"
3375   USE_MAINTAINER_MODE=$enableval
3376 else
3377   USE_MAINTAINER_MODE=no
3378 fi;
3379   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3380 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3381
3382
3383 if test $USE_MAINTAINER_MODE = yes; then
3384   MAINTAINER_MODE_TRUE=
3385   MAINTAINER_MODE_FALSE='#'
3386 else
3387   MAINTAINER_MODE_TRUE='#'
3388   MAINTAINER_MODE_FALSE=
3389 fi
3390   MAINT=$MAINTAINER_MODE_TRUE
3391
3392
3393
3394 . ${srcdir}/configure.host
3395
3396 case ${gc_basedir} in
3397 /* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
3398 *) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
3399 esac
3400
3401 gc_cflags="${gc_cflags} -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
3402 case "${host}" in
3403   *-*-cygwin32*)
3404     gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
3405     ;;
3406 esac
3407
3408
3409 GC_CFLAGS=${gc_cflags}
3410
3411
3412 # Check whether --enable-shared or --disable-shared was given.
3413 if test "${enable_shared+set}" = set; then
3414   enableval="$enable_shared"
3415   p=${PACKAGE-default}
3416 case $enableval in
3417 yes) enable_shared=yes ;;
3418 no) enable_shared=no ;;
3419 *)
3420   enable_shared=no
3421   # Look at the argument we got.  We use all the common list separators.
3422   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3423   for pkg in $enableval; do
3424     if test "X$pkg" = "X$p"; then
3425       enable_shared=yes
3426     fi
3427   done
3428   IFS="$ac_save_ifs"
3429   ;;
3430 esac
3431 else
3432   enable_shared=yes
3433 fi;
3434 # Check whether --enable-static or --disable-static was given.
3435 if test "${enable_static+set}" = set; then
3436   enableval="$enable_static"
3437   p=${PACKAGE-default}
3438 case $enableval in
3439 yes) enable_static=yes ;;
3440 no) enable_static=no ;;
3441 *)
3442   enable_static=no
3443   # Look at the argument we got.  We use all the common list separators.
3444   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3445   for pkg in $enableval; do
3446     if test "X$pkg" = "X$p"; then
3447       enable_static=yes
3448     fi
3449   done
3450   IFS="$ac_save_ifs"
3451   ;;
3452 esac
3453 else
3454   enable_static=yes
3455 fi;
3456 # Check whether --enable-fast-install or --disable-fast-install was given.
3457 if test "${enable_fast_install+set}" = set; then
3458   enableval="$enable_fast_install"
3459   p=${PACKAGE-default}
3460 case $enableval in
3461 yes) enable_fast_install=yes ;;
3462 no) enable_fast_install=no ;;
3463 *)
3464   enable_fast_install=no
3465   # Look at the argument we got.  We use all the common list separators.
3466   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3467   for pkg in $enableval; do
3468     if test "X$pkg" = "X$p"; then
3469       enable_fast_install=yes
3470     fi
3471   done
3472   IFS="$ac_save_ifs"
3473   ;;
3474 esac
3475 else
3476   enable_fast_install=yes
3477 fi;
3478
3479 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3480 if test "${with_gnu_ld+set}" = set; then
3481   withval="$with_gnu_ld"
3482   test "$withval" = no || with_gnu_ld=yes
3483 else
3484   with_gnu_ld=no
3485 fi;
3486 ac_prog=ld
3487 if test "$GCC" = yes; then
3488   # Check if gcc -print-prog-name=ld gives a path.
3489   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3490 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3491   case $host in
3492   *-*-mingw*)
3493     # gcc leaves a trailing carriage return which upsets mingw
3494     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3495   *)
3496     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3497   esac
3498   case $ac_prog in
3499     # Accept absolute paths.
3500     [\\/]* | [A-Za-z]:[\\/]*)
3501       re_direlt='/[^/][^/]*/\.\./'
3502       # Canonicalize the path of ld
3503       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3504       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3505         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3506       done
3507       test -z "$LD" && LD="$ac_prog"
3508       ;;
3509   "")
3510     # If it fails, then pretend we aren't using GCC.
3511     ac_prog=ld
3512     ;;
3513   *)
3514     # If it is relative, then search for the first ld in PATH.
3515     with_gnu_ld=unknown
3516     ;;
3517   esac
3518 elif test "$with_gnu_ld" = yes; then
3519   echo "$as_me:$LINENO: checking for GNU ld" >&5
3520 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3521 else
3522   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3523 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3524 fi
3525 if test "${lt_cv_path_LD+set}" = set; then
3526   echo $ECHO_N "(cached) $ECHO_C" >&6
3527 else
3528   if test -z "$LD"; then
3529   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3530   for ac_dir in $PATH; do
3531     test -z "$ac_dir" && ac_dir=.
3532     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3533       lt_cv_path_LD="$ac_dir/$ac_prog"
3534       # Check to see if the program is GNU ld.  I'd rather use --version,
3535       # but apparently some GNU ld's only accept -v.
3536       # Break only if it was the GNU/non-GNU ld that we prefer.
3537       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3538         test "$with_gnu_ld" != no && break
3539       else
3540         test "$with_gnu_ld" != yes && break
3541       fi
3542     fi
3543   done
3544   IFS="$ac_save_ifs"
3545 else
3546   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3547 fi
3548 fi
3549
3550 LD="$lt_cv_path_LD"
3551 if test -n "$LD"; then
3552   echo "$as_me:$LINENO: result: $LD" >&5
3553 echo "${ECHO_T}$LD" >&6
3554 else
3555   echo "$as_me:$LINENO: result: no" >&5
3556 echo "${ECHO_T}no" >&6
3557 fi
3558 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3559 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3560    { (exit 1); exit 1; }; }
3561 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3562 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3563 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3564   echo $ECHO_N "(cached) $ECHO_C" >&6
3565 else
3566   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3567 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3568   lt_cv_prog_gnu_ld=yes
3569 else
3570   lt_cv_prog_gnu_ld=no
3571 fi
3572 fi
3573 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3574 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3575 with_gnu_ld=$lt_cv_prog_gnu_ld
3576
3577
3578 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3579 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3580 if test "${lt_cv_ld_reload_flag+set}" = set; then
3581   echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583   lt_cv_ld_reload_flag='-r'
3584 fi
3585 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3586 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3587 reload_flag=$lt_cv_ld_reload_flag
3588 test -n "$reload_flag" && reload_flag=" $reload_flag"
3589
3590 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3591 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3592 if test "${lt_cv_path_NM+set}" = set; then
3593   echo $ECHO_N "(cached) $ECHO_C" >&6
3594 else
3595   if test -n "$NM"; then
3596   # Let the user override the test.
3597   lt_cv_path_NM="$NM"
3598 else
3599   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3600   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3601     test -z "$ac_dir" && ac_dir=.
3602     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3603     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3604       # Check to see if the nm accepts a BSD-compat flag.
3605       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3606       #   nm: unknown option "B" ignored
3607       # Tru64's nm complains that /dev/null is an invalid object file
3608       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3609         lt_cv_path_NM="$tmp_nm -B"
3610         break
3611       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3612         lt_cv_path_NM="$tmp_nm -p"
3613         break
3614       else
3615         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3616         continue # so that we can try to find one that supports BSD flags
3617       fi
3618     fi
3619   done
3620   IFS="$ac_save_ifs"
3621   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3622 fi
3623 fi
3624
3625 NM="$lt_cv_path_NM"
3626 echo "$as_me:$LINENO: result: $NM" >&5
3627 echo "${ECHO_T}$NM" >&6
3628
3629 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3630 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3631 LN_S=$as_ln_s
3632 if test "$LN_S" = "ln -s"; then
3633   echo "$as_me:$LINENO: result: yes" >&5
3634 echo "${ECHO_T}yes" >&6
3635 else
3636   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3637 echo "${ECHO_T}no, using $LN_S" >&6
3638 fi
3639
3640 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3641 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3642 if test "${lt_cv_deplibs_check_method+set}" = set; then
3643   echo $ECHO_N "(cached) $ECHO_C" >&6
3644 else
3645   lt_cv_file_magic_cmd='$MAGIC_CMD'
3646 lt_cv_file_magic_test_file=
3647 lt_cv_deplibs_check_method='unknown'
3648 # Need to set the preceding variable on all platforms that support
3649 # interlibrary dependencies.
3650 # 'none' -- dependencies not supported.
3651 # `unknown' -- same as none, but documents that we really don't know.
3652 # 'pass_all' -- all dependencies passed with no checks.
3653 # 'test_compile' -- check by making test program.
3654 # 'file_magic [regex]' -- check by looking for files in library path
3655 # which responds to the $file_magic_cmd with a given egrep regex.
3656 # If you have `file' or equivalent on your system and you're not sure
3657 # whether `pass_all' will *always* work, you probably want this one.
3658
3659 case $host_os in
3660 aix*)
3661   lt_cv_deplibs_check_method=pass_all
3662   ;;
3663
3664 beos*)
3665   lt_cv_deplibs_check_method=pass_all
3666   ;;
3667
3668 bsdi4*)
3669   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3670   lt_cv_file_magic_cmd='/usr/bin/file -L'
3671   lt_cv_file_magic_test_file=/shlib/libc.so
3672   ;;
3673
3674 cygwin* | mingw* |pw32*)
3675   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3676   lt_cv_file_magic_cmd='$OBJDUMP -f'
3677   ;;
3678
3679 darwin* | rhapsody*)
3680   # this will be overwritten by pass_all, but leave it in just in case
3681   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3682   lt_cv_file_magic_cmd='/usr/bin/file -L'
3683   case "$host_os" in
3684   rhapsody* | darwin1.012)
3685     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3686     ;;
3687   *) # Darwin 1.3 on
3688     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3689     ;;
3690   esac
3691   lt_cv_deplibs_check_method=pass_all
3692   ;;
3693
3694 freebsd* )
3695   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3696     case $host_cpu in
3697     i*86 )
3698       # Not sure whether the presence of OpenBSD here was a mistake.
3699       # Let's accept both of them until this is cleared up.
3700       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3701       lt_cv_file_magic_cmd=/usr/bin/file
3702       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3703       ;;
3704     esac
3705   else
3706     lt_cv_deplibs_check_method=pass_all
3707   fi
3708   ;;
3709
3710 gnu*)
3711   lt_cv_deplibs_check_method=pass_all
3712   ;;
3713
3714 hpux10.20*|hpux11*)
3715   case $host_cpu in
3716   hppa*)
3717     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3718     lt_cv_file_magic_cmd=/usr/bin/file
3719     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3720     ;;
3721   ia64*)
3722     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3723     lt_cv_file_magic_cmd=/usr/bin/file
3724     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3725     ;;
3726   esac
3727   ;;
3728
3729 irix5* | irix6*)
3730   case $host_os in
3731   irix5*)
3732     # this will be overridden with pass_all, but let us keep it just in case
3733     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3734     ;;
3735   *)
3736     case $LD in
3737     *-32|*"-32 ") libmagic=32-bit;;
3738     *-n32|*"-n32 ") libmagic=N32;;
3739     *-64|*"-64 ") libmagic=64-bit;;
3740     *) libmagic=never-match;;
3741     esac
3742     # this will be overridden with pass_all, but let us keep it just in case
3743     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3744     ;;
3745   esac
3746   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3747   lt_cv_deplibs_check_method=pass_all
3748   ;;
3749
3750 # This must be Linux ELF.
3751 linux-gnu*)
3752   case $host_cpu in
3753   alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3754     lt_cv_deplibs_check_method=pass_all ;;
3755   *)
3756     # glibc up to 2.1.1 does not perform some relocations on ARM
3757     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3758   esac
3759   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3760   ;;
3761
3762 netbsd*)
3763   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3764     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3765   else
3766     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3767   fi
3768   ;;
3769
3770 newsos6)
3771   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3772   lt_cv_file_magic_cmd=/usr/bin/file
3773   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3774   ;;
3775
3776 osf3* | osf4* | osf5*)
3777   # this will be overridden with pass_all, but let us keep it just in case
3778   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3779   lt_cv_file_magic_test_file=/shlib/libc.so
3780   lt_cv_deplibs_check_method=pass_all
3781   ;;
3782
3783 sco3.2v5*)
3784   lt_cv_deplibs_check_method=pass_all
3785   ;;
3786
3787 solaris*)
3788   lt_cv_deplibs_check_method=pass_all
3789   lt_cv_file_magic_test_file=/lib/libc.so
3790   ;;
3791
3792 sysv5uw[78]* | sysv4*uw2*)
3793   lt_cv_deplibs_check_method=pass_all
3794   ;;
3795
3796 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3797   case $host_vendor in
3798   ncr)
3799     lt_cv_deplibs_check_method=pass_all
3800     ;;
3801   motorola)
3802     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]'
3803     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3804     ;;
3805   esac
3806   ;;
3807 esac
3808
3809 fi
3810 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3811 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3812 file_magic_cmd=$lt_cv_file_magic_cmd
3813 deplibs_check_method=$lt_cv_deplibs_check_method
3814
3815
3816
3817
3818
3819 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3820
3821 # Only perform the check for file, if the check method requires it
3822 case $deplibs_check_method in
3823 file_magic*)
3824   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3825     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3826 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3827 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3828   echo $ECHO_N "(cached) $ECHO_C" >&6
3829 else
3830   case $MAGIC_CMD in
3831   /*)
3832   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3833   ;;
3834   ?:/*)
3835   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3836   ;;
3837   *)
3838   ac_save_MAGIC_CMD="$MAGIC_CMD"
3839   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3840   ac_dummy="/usr/bin:$PATH"
3841   for ac_dir in $ac_dummy; do
3842     test -z "$ac_dir" && ac_dir=.
3843     if test -f $ac_dir/${ac_tool_prefix}file; then
3844       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3845       if test -n "$file_magic_test_file"; then
3846         case $deplibs_check_method in
3847         "file_magic "*)
3848           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3849           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3850           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3851             egrep "$file_magic_regex" > /dev/null; then
3852             :
3853           else
3854             cat <<EOF 1>&2
3855
3856 *** Warning: the command libtool uses to detect shared libraries,
3857 *** $file_magic_cmd, produces output that libtool cannot recognize.
3858 *** The result is that libtool may fail to recognize shared libraries
3859 *** as such.  This will affect the creation of libtool libraries that
3860 *** depend on shared libraries, but programs linked with such libtool
3861 *** libraries will work regardless of this problem.  Nevertheless, you
3862 *** may want to report the problem to your system manager and/or to
3863 *** bug-libtool@gnu.org
3864
3865 EOF
3866           fi ;;
3867         esac
3868       fi
3869       break
3870     fi
3871   done
3872   IFS="$ac_save_ifs"
3873   MAGIC_CMD="$ac_save_MAGIC_CMD"
3874   ;;
3875 esac
3876 fi
3877
3878 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3879 if test -n "$MAGIC_CMD"; then
3880   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3881 echo "${ECHO_T}$MAGIC_CMD" >&6
3882 else
3883   echo "$as_me:$LINENO: result: no" >&5
3884 echo "${ECHO_T}no" >&6
3885 fi
3886
3887 if test -z "$lt_cv_path_MAGIC_CMD"; then
3888   if test -n "$ac_tool_prefix"; then
3889     echo "$as_me:$LINENO: checking for file" >&5
3890 echo $ECHO_N "checking for file... $ECHO_C" >&6
3891 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3892   echo $ECHO_N "(cached) $ECHO_C" >&6
3893 else
3894   case $MAGIC_CMD in
3895   /*)
3896   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3897   ;;
3898   ?:/*)
3899   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3900   ;;
3901   *)
3902   ac_save_MAGIC_CMD="$MAGIC_CMD"
3903   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3904   ac_dummy="/usr/bin:$PATH"
3905   for ac_dir in $ac_dummy; do
3906     test -z "$ac_dir" && ac_dir=.
3907     if test -f $ac_dir/file; then
3908       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3909       if test -n "$file_magic_test_file"; then
3910         case $deplibs_check_method in
3911         "file_magic "*)
3912           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3913           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3914           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3915             egrep "$file_magic_regex" > /dev/null; then
3916             :
3917           else
3918             cat <<EOF 1>&2
3919
3920 *** Warning: the command libtool uses to detect shared libraries,
3921 *** $file_magic_cmd, produces output that libtool cannot recognize.
3922 *** The result is that libtool may fail to recognize shared libraries
3923 *** as such.  This will affect the creation of libtool libraries that
3924 *** depend on shared libraries, but programs linked with such libtool
3925 *** libraries will work regardless of this problem.  Nevertheless, you
3926 *** may want to report the problem to your system manager and/or to
3927 *** bug-libtool@gnu.org
3928
3929 EOF
3930           fi ;;
3931         esac
3932       fi
3933       break
3934     fi
3935   done
3936   IFS="$ac_save_ifs"
3937   MAGIC_CMD="$ac_save_MAGIC_CMD"
3938   ;;
3939 esac
3940 fi
3941
3942 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3943 if test -n "$MAGIC_CMD"; then
3944   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3945 echo "${ECHO_T}$MAGIC_CMD" >&6
3946 else
3947   echo "$as_me:$LINENO: result: no" >&5
3948 echo "${ECHO_T}no" >&6
3949 fi
3950
3951   else
3952     MAGIC_CMD=:
3953   fi
3954 fi
3955
3956   fi
3957   ;;
3958 esac
3959
3960 if test -n "$ac_tool_prefix"; then
3961   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3962 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3963 echo "$as_me:$LINENO: checking for $ac_word" >&5
3964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965 if test "${ac_cv_prog_RANLIB+set}" = set; then
3966   echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968   if test -n "$RANLIB"; then
3969   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3970 else
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH
3973 do
3974   IFS=$as_save_IFS
3975   test -z "$as_dir" && as_dir=.
3976   for ac_exec_ext in '' $ac_executable_extensions; do
3977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3980     break 2
3981   fi
3982 done
3983 done
3984
3985 fi
3986 fi
3987 RANLIB=$ac_cv_prog_RANLIB
3988 if test -n "$RANLIB"; then
3989   echo "$as_me:$LINENO: result: $RANLIB" >&5
3990 echo "${ECHO_T}$RANLIB" >&6
3991 else
3992   echo "$as_me:$LINENO: result: no" >&5
3993 echo "${ECHO_T}no" >&6
3994 fi
3995
3996 fi
3997 if test -z "$ac_cv_prog_RANLIB"; then
3998   ac_ct_RANLIB=$RANLIB
3999   # Extract the first word of "ranlib", so it can be a program name with args.
4000 set dummy ranlib; ac_word=$2
4001 echo "$as_me:$LINENO: checking for $ac_word" >&5
4002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4003 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4004   echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006   if test -n "$ac_ct_RANLIB"; then
4007   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4008 else
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 for as_dir in $PATH
4011 do
4012   IFS=$as_save_IFS
4013   test -z "$as_dir" && as_dir=.
4014   for ac_exec_ext in '' $ac_executable_extensions; do
4015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4016     ac_cv_prog_ac_ct_RANLIB="ranlib"
4017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4018     break 2
4019   fi
4020 done
4021 done
4022
4023   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4024 fi
4025 fi
4026 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4027 if test -n "$ac_ct_RANLIB"; then
4028   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4029 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4030 else
4031   echo "$as_me:$LINENO: result: no" >&5
4032 echo "${ECHO_T}no" >&6
4033 fi
4034
4035   RANLIB=$ac_ct_RANLIB
4036 else
4037   RANLIB="$ac_cv_prog_RANLIB"
4038 fi
4039
4040 if test -n "$ac_tool_prefix"; then
4041   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4042 set dummy ${ac_tool_prefix}strip; ac_word=$2
4043 echo "$as_me:$LINENO: checking for $ac_word" >&5
4044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4045 if test "${ac_cv_prog_STRIP+set}" = set; then
4046   echo $ECHO_N "(cached) $ECHO_C" >&6
4047 else
4048   if test -n "$STRIP"; then
4049   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4050 else
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 for as_dir in $PATH
4053 do
4054   IFS=$as_save_IFS
4055   test -z "$as_dir" && as_dir=.
4056   for ac_exec_ext in '' $ac_executable_extensions; do
4057   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4058     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4060     break 2
4061   fi
4062 done
4063 done
4064
4065 fi
4066 fi
4067 STRIP=$ac_cv_prog_STRIP
4068 if test -n "$STRIP"; then
4069   echo "$as_me:$LINENO: result: $STRIP" >&5
4070 echo "${ECHO_T}$STRIP" >&6
4071 else
4072   echo "$as_me:$LINENO: result: no" >&5
4073 echo "${ECHO_T}no" >&6
4074 fi
4075
4076 fi
4077 if test -z "$ac_cv_prog_STRIP"; then
4078   ac_ct_STRIP=$STRIP
4079   # Extract the first word of "strip", so it can be a program name with args.
4080 set dummy strip; ac_word=$2
4081 echo "$as_me:$LINENO: checking for $ac_word" >&5
4082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4083 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4084   echo $ECHO_N "(cached) $ECHO_C" >&6
4085 else
4086   if test -n "$ac_ct_STRIP"; then
4087   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4088 else
4089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090 for as_dir in $PATH
4091 do
4092   IFS=$as_save_IFS
4093   test -z "$as_dir" && as_dir=.
4094   for ac_exec_ext in '' $ac_executable_extensions; do
4095   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4096     ac_cv_prog_ac_ct_STRIP="strip"
4097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4098     break 2
4099   fi
4100 done
4101 done
4102
4103   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4104 fi
4105 fi
4106 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4107 if test -n "$ac_ct_STRIP"; then
4108   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4109 echo "${ECHO_T}$ac_ct_STRIP" >&6
4110 else
4111   echo "$as_me:$LINENO: result: no" >&5
4112 echo "${ECHO_T}no" >&6
4113 fi
4114
4115   STRIP=$ac_ct_STRIP
4116 else
4117   STRIP="$ac_cv_prog_STRIP"
4118 fi
4119
4120
4121 # Check for any special flags to pass to ltconfig.
4122 libtool_flags="--cache-file=$cache_file"
4123 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4124 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4125 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4126 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4127 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4128
4129
4130 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4131 if test "${enable_libtool_lock+set}" = set; then
4132   enableval="$enable_libtool_lock"
4133
4134 fi;
4135 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4136 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4137
4138
4139 # Check whether --with-pic or --without-pic was given.
4140 if test "${with_pic+set}" = set; then
4141   withval="$with_pic"
4142   pic_mode="$withval"
4143 else
4144   pic_mode=default
4145 fi;
4146 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4147 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4148
4149 # Some flags need to be propagated to the compiler or linker for good
4150 # libtool support.
4151 case $host in
4152 *-*-irix6*)
4153   # Find out which ABI we are using.
4154   echo '#line 4154 "configure"' > conftest.$ac_ext
4155   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4156   (eval $ac_compile) 2>&5
4157   ac_status=$?
4158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159   (exit $ac_status); }; then
4160    if test "$lt_cv_prog_gnu_ld" = yes; then
4161     case `/usr/bin/file conftest.$ac_objext` in
4162     *32-bit*)
4163       LD="${LD-ld} -melf32bsmip"
4164       ;;
4165     *N32*)
4166       LD="${LD-ld} -melf32bmipn32"
4167       ;;
4168     *64-bit*)
4169       LD="${LD-ld} -melf64bmip"
4170       ;;
4171     esac
4172    else
4173     case `/usr/bin/file conftest.$ac_objext` in
4174     *32-bit*)
4175       LD="${LD-ld} -32"
4176       ;;
4177     *N32*)
4178       LD="${LD-ld} -n32"
4179       ;;
4180     *64-bit*)
4181       LD="${LD-ld} -64"
4182       ;;
4183     esac
4184    fi
4185   fi
4186   rm -rf conftest*
4187   ;;
4188
4189 ia64-*-hpux*)
4190   # Find out which ABI we are using.
4191   echo 'int i;' > conftest.$ac_ext
4192   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4193   (eval $ac_compile) 2>&5
4194   ac_status=$?
4195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196   (exit $ac_status); }; then
4197     case "`/usr/bin/file conftest.o`" in
4198     *ELF-32*)
4199       HPUX_IA64_MODE="32"
4200       ;;
4201     *ELF-64*)
4202       HPUX_IA64_MODE="64"
4203       ;;
4204     esac
4205   fi
4206   rm -rf conftest*
4207   ;;
4208
4209 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4210   # Find out which ABI we are using.
4211   echo 'int i;' > conftest.$ac_ext
4212   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4213   (eval $ac_compile) 2>&5
4214   ac_status=$?
4215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216   (exit $ac_status); }; then
4217     case "`/usr/bin/file conftest.o`" in
4218     *32-bit*)
4219       case $host in
4220         x86_64-*linux*)
4221           LD="${LD-ld} -m elf_i386"
4222           ;;
4223         ppc64-*linux*|powerpc64-*linux*)
4224           LD="${LD-ld} -m elf32ppclinux"
4225           ;;
4226         s390x-*linux*)
4227           LD="${LD-ld} -m elf_s390"
4228           ;;
4229         sparc64-*linux*)
4230           LD="${LD-ld} -m elf32_sparc"
4231           ;;
4232       esac
4233       ;;
4234     *64-bit*)
4235       case $host in
4236         x86_64-*linux*)
4237           LD="${LD-ld} -m elf_x86_64"
4238           ;;
4239         ppc*-*linux*|powerpc*-*linux*)
4240           LD="${LD-ld} -m elf64ppc"
4241           ;;
4242         s390*-*linux*)
4243           LD="${LD-ld} -m elf64_s390"
4244           ;;
4245         sparc*-*linux*)
4246           LD="${LD-ld} -m elf64_sparc"
4247           ;;
4248       esac
4249       ;;
4250     esac
4251   fi
4252   rm -rf conftest*
4253   ;;
4254
4255 *-*-sco3.2v5*)
4256   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4257   SAVE_CFLAGS="$CFLAGS"
4258   CFLAGS="$CFLAGS -belf"
4259   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4260 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4261 if test "${lt_cv_cc_needs_belf+set}" = set; then
4262   echo $ECHO_N "(cached) $ECHO_C" >&6
4263 else
4264
4265
4266      ac_ext=c
4267 ac_cpp='$CPP $CPPFLAGS'
4268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4271
4272      if test x$gcc_no_link = xyes; then
4273   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4274 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4275    { (exit 1); exit 1; }; }
4276 fi
4277 cat >conftest.$ac_ext <<_ACEOF
4278 #line $LINENO "configure"
4279 /* confdefs.h.  */
4280 _ACEOF
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h.  */
4284
4285 int
4286 main ()
4287 {
4288
4289   ;
4290   return 0;
4291 }
4292 _ACEOF
4293 rm -f conftest.$ac_objext conftest$ac_exeext
4294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4295   (eval $ac_link) 2>&5
4296   ac_status=$?
4297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298   (exit $ac_status); } &&
4299          { ac_try='test -s conftest$ac_exeext'
4300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301   (eval $ac_try) 2>&5
4302   ac_status=$?
4303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304   (exit $ac_status); }; }; then
4305   lt_cv_cc_needs_belf=yes
4306 else
4307   echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4309
4310 lt_cv_cc_needs_belf=no
4311 fi
4312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4313      ac_ext=c
4314 ac_cpp='$CPP $CPPFLAGS'
4315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4318
4319 fi
4320 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4321 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4322   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4323     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4324     CFLAGS="$SAVE_CFLAGS"
4325   fi
4326   ;;
4327
4328
4329 esac
4330
4331
4332 # Save cache, so that ltconfig can load it
4333 cat >confcache <<\_ACEOF
4334 # This file is a shell script that caches the results of configure
4335 # tests run on this system so they can be shared between configure
4336 # scripts and configure runs, see configure's option --config-cache.
4337 # It is not useful on other systems.  If it contains results you don't
4338 # want to keep, you may remove or edit it.
4339 #
4340 # config.status only pays attention to the cache file if you give it
4341 # the --recheck option to rerun configure.
4342 #
4343 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4344 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4345 # following values.
4346
4347 _ACEOF
4348
4349 # The following way of writing the cache mishandles newlines in values,
4350 # but we know of no workaround that is simple, portable, and efficient.
4351 # So, don't put newlines in cache variables' values.
4352 # Ultrix sh set writes to stderr and can't be redirected directly,
4353 # and sets the high bit in the cache file unless we assign to the vars.
4354 {
4355   (set) 2>&1 |
4356     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4357     *ac_space=\ *)
4358       # `set' does not quote correctly, so add quotes (double-quote
4359       # substitution turns \\\\ into \\, and sed turns \\ into \).
4360       sed -n \
4361         "s/'/'\\\\''/g;
4362           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4363       ;;
4364     *)
4365       # `set' quotes correctly as required by POSIX, so do not add quotes.
4366       sed -n \
4367         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4368       ;;
4369     esac;
4370 } |
4371   sed '
4372      t clear
4373      : clear
4374      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4375      t end
4376      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4377      : end' >>confcache
4378 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4379   if test -w $cache_file; then
4380     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4381     cat confcache >$cache_file
4382   else
4383     echo "not updating unwritable cache $cache_file"
4384   fi
4385 fi
4386 rm -f confcache
4387
4388 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4389 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4390 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4391 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4392 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4393 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4394 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4395 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4396 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4397 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4398 echo "$as_me: error: libtool configure failed" >&2;}
4399    { (exit 1); exit 1; }; }
4400
4401 # Reload cache, that may have been modified by ltconfig
4402 if test -r "$cache_file"; then
4403   # Some versions of bash will fail to source /dev/null (special
4404   # files actually), so we avoid doing that.
4405   if test -f "$cache_file"; then
4406     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4407 echo "$as_me: loading cache $cache_file" >&6;}
4408     case $cache_file in
4409       [\\/]* | ?:[\\/]* ) . $cache_file;;
4410       *)                      . ./$cache_file;;
4411     esac
4412   fi
4413 else
4414   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4415 echo "$as_me: creating cache $cache_file" >&6;}
4416   >$cache_file
4417 fi
4418
4419
4420 # This can be used to rebuild libtool when needed
4421 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4422
4423 # Always use our own libtool.
4424 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4425
4426 # Redirect the config.log output again, so that the ltconfig log is not
4427 # clobbered by the next message.
4428 exec 5>>./config.log
4429
4430 ac_ext=cc
4431 ac_cpp='$CXXCPP $CPPFLAGS'
4432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4435 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4436 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4437 if test -z "$CXXCPP"; then
4438   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4439   echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441       # Double quotes because CXXCPP needs to be expanded
4442     for CXXCPP in "$CXX -E" "/lib/cpp"
4443     do
4444       ac_preproc_ok=false
4445 for ac_cxx_preproc_warn_flag in '' yes
4446 do
4447   # Use a header file that comes with gcc, so configuring glibc
4448   # with a fresh cross-compiler works.
4449   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4450   # <limits.h> exists even on freestanding compilers.
4451   # On the NeXT, cc -E runs the code through the compiler's parser,
4452   # not just through cpp. "Syntax error" is here to catch this case.
4453   cat >conftest.$ac_ext <<_ACEOF
4454 #line $LINENO "configure"
4455 /* confdefs.h.  */
4456 _ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h.  */
4460 #ifdef __STDC__
4461 # include <limits.h>
4462 #else
4463 # include <assert.h>
4464 #endif
4465                      Syntax error
4466 _ACEOF
4467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4468   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4469   ac_status=$?
4470   grep -v '^ *+' conftest.er1 >conftest.err
4471   rm -f conftest.er1
4472   cat conftest.err >&5
4473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474   (exit $ac_status); } >/dev/null; then
4475   if test -s conftest.err; then
4476     ac_cpp_err=$ac_cxx_preproc_warn_flag
4477   else
4478     ac_cpp_err=
4479   fi
4480 else
4481   ac_cpp_err=yes
4482 fi
4483 if test -z "$ac_cpp_err"; then
4484   :
4485 else
4486   echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4488
4489   # Broken: fails on valid input.
4490 continue
4491 fi
4492 rm -f conftest.err conftest.$ac_ext
4493
4494   # OK, works on sane cases.  Now check whether non-existent headers
4495   # can be detected and how.
4496   cat >conftest.$ac_ext <<_ACEOF
4497 #line $LINENO "configure"
4498 /* confdefs.h.  */
4499 _ACEOF
4500 cat confdefs.h >>conftest.$ac_ext
4501 cat >>conftest.$ac_ext <<_ACEOF
4502 /* end confdefs.h.  */
4503 #include <ac_nonexistent.h>
4504 _ACEOF
4505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4506   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4507   ac_status=$?
4508   grep -v '^ *+' conftest.er1 >conftest.err
4509   rm -f conftest.er1
4510   cat conftest.err >&5
4511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512   (exit $ac_status); } >/dev/null; then
4513   if test -s conftest.err; then
4514     ac_cpp_err=$ac_cxx_preproc_warn_flag
4515   else
4516     ac_cpp_err=
4517   fi
4518 else
4519   ac_cpp_err=yes
4520 fi
4521 if test -z "$ac_cpp_err"; then
4522   # Broken: success on invalid input.
4523 continue
4524 else
4525   echo "$as_me: failed program was:" >&5
4526 sed 's/^/| /' conftest.$ac_ext >&5
4527
4528   # Passes both tests.
4529 ac_preproc_ok=:
4530 break
4531 fi
4532 rm -f conftest.err conftest.$ac_ext
4533
4534 done
4535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4536 rm -f conftest.err conftest.$ac_ext
4537 if $ac_preproc_ok; then
4538   break
4539 fi
4540
4541     done
4542     ac_cv_prog_CXXCPP=$CXXCPP
4543
4544 fi
4545   CXXCPP=$ac_cv_prog_CXXCPP
4546 else
4547   ac_cv_prog_CXXCPP=$CXXCPP
4548 fi
4549 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4550 echo "${ECHO_T}$CXXCPP" >&6
4551 ac_preproc_ok=false
4552 for ac_cxx_preproc_warn_flag in '' yes
4553 do
4554   # Use a header file that comes with gcc, so configuring glibc
4555   # with a fresh cross-compiler works.
4556   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4557   # <limits.h> exists even on freestanding compilers.
4558   # On the NeXT, cc -E runs the code through the compiler's parser,
4559   # not just through cpp. "Syntax error" is here to catch this case.
4560   cat >conftest.$ac_ext <<_ACEOF
4561 #line $LINENO "configure"
4562 /* confdefs.h.  */
4563 _ACEOF
4564 cat confdefs.h >>conftest.$ac_ext
4565 cat >>conftest.$ac_ext <<_ACEOF
4566 /* end confdefs.h.  */
4567 #ifdef __STDC__
4568 # include <limits.h>
4569 #else
4570 # include <assert.h>
4571 #endif
4572                      Syntax error
4573 _ACEOF
4574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4575   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4576   ac_status=$?
4577   grep -v '^ *+' conftest.er1 >conftest.err
4578   rm -f conftest.er1
4579   cat conftest.err >&5
4580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581   (exit $ac_status); } >/dev/null; then
4582   if test -s conftest.err; then
4583     ac_cpp_err=$ac_cxx_preproc_warn_flag
4584   else
4585     ac_cpp_err=
4586   fi
4587 else
4588   ac_cpp_err=yes
4589 fi
4590 if test -z "$ac_cpp_err"; then
4591   :
4592 else
4593   echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4595
4596   # Broken: fails on valid input.
4597 continue
4598 fi
4599 rm -f conftest.err conftest.$ac_ext
4600
4601   # OK, works on sane cases.  Now check whether non-existent headers
4602   # can be detected and how.
4603   cat >conftest.$ac_ext <<_ACEOF
4604 #line $LINENO "configure"
4605 /* confdefs.h.  */
4606 _ACEOF
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h.  */
4610 #include <ac_nonexistent.h>
4611 _ACEOF
4612 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4613   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4614   ac_status=$?
4615   grep -v '^ *+' conftest.er1 >conftest.err
4616   rm -f conftest.er1
4617   cat conftest.err >&5
4618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619   (exit $ac_status); } >/dev/null; then
4620   if test -s conftest.err; then
4621     ac_cpp_err=$ac_cxx_preproc_warn_flag
4622   else
4623     ac_cpp_err=
4624   fi
4625 else
4626   ac_cpp_err=yes
4627 fi
4628 if test -z "$ac_cpp_err"; then
4629   # Broken: success on invalid input.
4630 continue
4631 else
4632   echo "$as_me: failed program was:" >&5
4633 sed 's/^/| /' conftest.$ac_ext >&5
4634
4635   # Passes both tests.
4636 ac_preproc_ok=:
4637 break
4638 fi
4639 rm -f conftest.err conftest.$ac_ext
4640
4641 done
4642 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4643 rm -f conftest.err conftest.$ac_ext
4644 if $ac_preproc_ok; then
4645   :
4646 else
4647   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4648 See \`config.log' for more details." >&5
4649 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4650 See \`config.log' for more details." >&2;}
4651    { (exit 1); exit 1; }; }
4652 fi
4653
4654 ac_ext=c
4655 ac_cpp='$CPP $CPPFLAGS'
4656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4659
4660
4661
4662 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
4663 lt_save_CC="$CC"
4664 lt_save_CFLAGS="$CFLAGS"
4665 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
4666 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4667 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4668 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4669 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4670 deplibs_check_method="$deplibs_check_method" \
4671 file_magic_cmd="$file_magic_cmd" \
4672 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4673 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
4674 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
4675 echo "$as_me: error: libtool tag configuration failed" >&2;}
4676    { (exit 1); exit 1; }; }
4677 CC="$lt_save_CC"
4678 CFLAGS="$lt_save_CFLAGS"
4679
4680 # Redirect the config.log output again, so that the ltconfig log is not
4681 # clobbered by the next message.
4682 exec 5>>./config.log
4683
4684
4685
4686
4687
4688
4689
4690
4691 # Check whether --with-target-subdir or --without-target-subdir was given.
4692 if test "${with_target_subdir+set}" = set; then
4693   withval="$with_target_subdir"
4694
4695 fi;
4696
4697 # Check whether --with-cross-host or --without-cross-host was given.
4698 if test "${with_cross_host+set}" = set; then
4699   withval="$with_cross_host"
4700
4701 fi;
4702
4703 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4704 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4705     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4706 if test "${enable_maintainer_mode+set}" = set; then
4707   enableval="$enable_maintainer_mode"
4708   USE_MAINTAINER_MODE=$enableval
4709 else
4710   USE_MAINTAINER_MODE=no
4711 fi;
4712   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4713 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4714
4715
4716 if test $USE_MAINTAINER_MODE = yes; then
4717   MAINTAINER_MODE_TRUE=
4718   MAINTAINER_MODE_FALSE='#'
4719 else
4720   MAINTAINER_MODE_TRUE='#'
4721   MAINTAINER_MODE_FALSE=
4722 fi
4723   MAINT=$MAINTAINER_MODE_TRUE
4724
4725
4726
4727 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
4728 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
4729 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4730 if test -z "$THREADS"; then
4731    THREADS=no
4732 fi
4733 echo "$as_me:$LINENO: result: $THREADS" >&5
4734 echo "${ECHO_T}$THREADS" >&6
4735
4736 # Check whether --enable-parallel-mark or --disable-parallel-mark was given.
4737 if test "${enable_parallel_mark+set}" = set; then
4738   enableval="$enable_parallel_mark"
4739   case "$THREADS" in
4740       no | none | single)
4741         { { echo "$as_me:$LINENO: error: Parallel mark requires --enable-threads=x spec" >&5
4742 echo "$as_me: error: Parallel mark requires --enable-threads=x spec" >&2;}
4743    { (exit 1); exit 1; }; }
4744         ;;
4745     esac
4746
4747 fi;
4748
4749 INCLUDES="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
4750 THREADLIBS=
4751 case "$THREADS" in
4752  no | none | single)
4753     THREADS=none
4754     ;;
4755  posix | pthreads)
4756     THREADS=posix
4757     THREADLIBS=-lpthread
4758     case "$host" in
4759      x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
4760         cat >>confdefs.h <<\_ACEOF
4761 #define GC_LINUX_THREADS 1
4762 _ACEOF
4763
4764         cat >>confdefs.h <<\_ACEOF
4765 #define _REENTRANT 1
4766 _ACEOF
4767
4768         if test "${enable_parallel_mark}" = yes; then
4769           cat >>confdefs.h <<\_ACEOF
4770 #define PARALLEL_MARK 1
4771 _ACEOF
4772
4773         fi
4774         cat >>confdefs.h <<\_ACEOF
4775 #define THREAD_LOCAL_ALLOC 1
4776 _ACEOF
4777
4778         ;;
4779      *-*-linux*)
4780         cat >>confdefs.h <<\_ACEOF
4781 #define GC_LINUX_THREADS 1
4782 _ACEOF
4783
4784         cat >>confdefs.h <<\_ACEOF
4785 #define _REENTRANT 1
4786 _ACEOF
4787
4788         ;;
4789      *-*-aix*)
4790         cat >>confdefs.h <<\_ACEOF
4791 #define GC_AIX_THREADS 1
4792 _ACEOF
4793
4794         cat >>confdefs.h <<\_ACEOF
4795 #define _REENTRANT 1
4796 _ACEOF
4797
4798         ;;
4799      *-*-hpux*)
4800         { echo "$as_me:$LINENO: WARNING: \"Only HP/UX 11 threads are supported.\"" >&5
4801 echo "$as_me: WARNING: \"Only HP/UX 11 threads are supported.\"" >&2;}
4802         cat >>confdefs.h <<\_ACEOF
4803 #define GC_HPUX_THREADS 1
4804 _ACEOF
4805
4806         cat >>confdefs.h <<\_ACEOF
4807 #define _POSIX_C_SOURCE 199506L
4808 _ACEOF
4809
4810         if test "${enable_parallel_mark}" = yes; then
4811           cat >>confdefs.h <<\_ACEOF
4812 #define PARALLEL_MARK 1
4813 _ACEOF
4814
4815         fi
4816         cat >>confdefs.h <<\_ACEOF
4817 #define THREAD_LOCAL_ALLOC 1
4818 _ACEOF
4819
4820         THREADLIBS="-lpthread -lrt"
4821         ;;
4822      *-*-freebsd*)
4823         { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
4824 echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
4825         cat >>confdefs.h <<\_ACEOF
4826 #define GC_FREEBSD_THREADS 1
4827 _ACEOF
4828
4829         INCLUDES="$INCLUDES -pthread"
4830         THREADLIBS=-pthread
4831         ;;
4832      *-*-solaris*)
4833         cat >>confdefs.h <<\_ACEOF
4834 #define GC_SOLARIS_THREADS 1
4835 _ACEOF
4836
4837         cat >>confdefs.h <<\_ACEOF
4838 #define GC_SOLARIS_PTHREADS 1
4839 _ACEOF
4840
4841         ;;
4842      *-*-irix*)
4843         cat >>confdefs.h <<\_ACEOF
4844 #define GC_IRIX_THREADS 1
4845 _ACEOF
4846
4847         ;;
4848      *-*-cygwin*)
4849         cat >>confdefs.h <<\_ACEOF
4850 #define GC_WIN32_THREADS 1
4851 _ACEOF
4852
4853         ;;
4854      *-*-darwin*)
4855         cat >>confdefs.h <<\_ACEOF
4856 #define GC_DARWIN_THREADS 1
4857 _ACEOF
4858
4859         cat >>confdefs.h <<\_ACEOF
4860 #define THREAD_LOCAL_ALLOC 1
4861 _ACEOF
4862
4863         if test "${enable_parallel_mark}" = yes; then
4864           cat >>confdefs.h <<\_ACEOF
4865 #define PARALLEL_MARK 1
4866 _ACEOF
4867
4868         fi
4869         ;;
4870      *-*-osf*)
4871         cat >>confdefs.h <<\_ACEOF
4872 #define GC_OSF1_THREADS 1
4873 _ACEOF
4874
4875         if test "${enable_parallel_mark}" = yes; then
4876           cat >>confdefs.h <<\_ACEOF
4877 #define PARALLEL_MARK 1
4878 _ACEOF
4879
4880           cat >>confdefs.h <<\_ACEOF
4881 #define THREAD_LOCAL_ALLOC 1
4882 _ACEOF
4883
4884           # May want to enable it in other cases, too.
4885           # Measurements havent yet been done.
4886         fi
4887         INCLUDES="$INCLUDES -pthread"
4888         THREADLIBS="-lpthread -lrt"
4889         ;;
4890     esac
4891     ;;
4892  win32)
4893     cat >>confdefs.h <<\_ACEOF
4894 #define GC_WIN32_THREADS 1
4895 _ACEOF
4896
4897             ;;
4898  dgux386)
4899     THREADS=dgux386
4900 echo "$as_me:$LINENO: result: $THREADLIBS" >&5
4901 echo "${ECHO_T}$THREADLIBS" >&6
4902     # Use pthread GCC  switch
4903     THREADLIBS=-pthread
4904     if test "${enable_parallel_mark}" = yes; then
4905         cat >>confdefs.h <<\_ACEOF
4906 #define PARALLEL_MARK 1
4907 _ACEOF
4908
4909     fi
4910     cat >>confdefs.h <<\_ACEOF
4911 #define THREAD_LOCAL_ALLOC 1
4912 _ACEOF
4913
4914     cat >>confdefs.h <<\_ACEOF
4915 #define GC_DGUX386_THREADS 1
4916 _ACEOF
4917
4918     cat >>confdefs.h <<\_ACEOF
4919 #define DGUX_THREADS 1
4920 _ACEOF
4921
4922     # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
4923     INCLUDES="-pthread $INCLUDES"
4924     ;;
4925  aix)
4926     THREADS=posix
4927     THREADLIBS=-lpthread
4928     cat >>confdefs.h <<\_ACEOF
4929 #define GC_AIX_THREADS 1
4930 _ACEOF
4931
4932     cat >>confdefs.h <<\_ACEOF
4933 #define _REENTRANT 1
4934 _ACEOF
4935
4936     ;;
4937  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
4938     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
4939 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
4940    { (exit 1); exit 1; }; }
4941     ;;
4942  *)
4943     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
4944 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
4945    { (exit 1); exit 1; }; }
4946     ;;
4947 esac
4948
4949
4950 case "$host" in
4951    powerpc-*-darwin*)
4952       powerpc_darwin=true
4953       ;;
4954 esac
4955
4956
4957 if test x$powerpc_darwin = xtrue; then
4958   POWERPC_DARWIN_TRUE=
4959   POWERPC_DARWIN_FALSE='#'
4960 else
4961   POWERPC_DARWIN_TRUE='#'
4962   POWERPC_DARWIN_FALSE=
4963 fi
4964
4965 # We never want libdl on darwin. It is a fake libdl that just ends up making
4966 # dyld calls anyway
4967 case "$host" in
4968   *-*-darwin*) ;;
4969   *)
4970     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4971 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4972 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4973   echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975   ac_check_lib_save_LIBS=$LIBS
4976 LIBS="-ldl  $LIBS"
4977 if test x$gcc_no_link = xyes; then
4978   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4979 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4980    { (exit 1); exit 1; }; }
4981 fi
4982 cat >conftest.$ac_ext <<_ACEOF
4983 #line $LINENO "configure"
4984 /* confdefs.h.  */
4985 _ACEOF
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h.  */
4989
4990 /* Override any gcc2 internal prototype to avoid an error.  */
4991 #ifdef __cplusplus
4992 extern "C"
4993 #endif
4994 /* We use char because int might match the return type of a gcc2
4995    builtin and then its argument prototype would still apply.  */
4996 char dlopen ();
4997 int
4998 main ()
4999 {
5000 dlopen ();
5001   ;
5002   return 0;
5003 }
5004 _ACEOF
5005 rm -f conftest.$ac_objext conftest$ac_exeext
5006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5007   (eval $ac_link) 2>&5
5008   ac_status=$?
5009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010   (exit $ac_status); } &&
5011          { ac_try='test -s conftest$ac_exeext'
5012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013   (eval $ac_try) 2>&5
5014   ac_status=$?
5015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016   (exit $ac_status); }; }; then
5017   ac_cv_lib_dl_dlopen=yes
5018 else
5019   echo "$as_me: failed program was:" >&5
5020 sed 's/^/| /' conftest.$ac_ext >&5
5021
5022 ac_cv_lib_dl_dlopen=no
5023 fi
5024 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5025 LIBS=$ac_check_lib_save_LIBS
5026 fi
5027 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5028 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5029 if test $ac_cv_lib_dl_dlopen = yes; then
5030   EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
5031 fi
5032
5033     ;;
5034 esac
5035
5036
5037
5038 target_all=libgcjgc.la
5039
5040
5041
5042 TARGET_ECOS="no"
5043
5044 # Check whether --with-ecos or --without-ecos was given.
5045 if test "${with_ecos+set}" = set; then
5046   withval="$with_ecos"
5047   TARGET_ECOS="$with_ecos"
5048
5049 fi;
5050
5051 addobjs=
5052 addlibs=
5053 addincludes=
5054 addtests=
5055 CXXINCLUDES=
5056 case "$TARGET_ECOS" in
5057    no)
5058       ;;
5059    *)
5060       cat >>confdefs.h <<\_ACEOF
5061 #define ECOS 1
5062 _ACEOF
5063
5064       CXXINCLUDES="-I${TARGET_ECOS}/include"
5065       addobjs="$addobjs ecos.lo"
5066       ;;
5067 esac
5068
5069 if test "${enable_cplusplus}" = yes; then
5070       addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
5071       addtests="$addtests test_cpp"
5072 fi
5073
5074
5075
5076 if test "${enable_cplusplus}" = yes; then
5077   CPLUSPLUS_TRUE=
5078   CPLUSPLUS_FALSE='#'
5079 else
5080   CPLUSPLUS_TRUE='#'
5081   CPLUSPLUS_FALSE=
5082 fi
5083
5084
5085
5086
5087
5088
5089 # Configuration of shared libraries
5090 #
5091 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
5092 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5093 # Check whether --enable-shared or --disable-shared was given.
5094 if test "${enable_shared+set}" = set; then
5095   enableval="$enable_shared"
5096   p=${PACKAGE-default}
5097 case $enableval in
5098 yes) enable_shared=yes ;;
5099 no) enable_shared=no ;;
5100 *)
5101   enable_shared=no
5102   # Look at the argument we got.  We use all the common list separators.
5103   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5104   for pkg in $enableval; do
5105     if test "X$pkg" = "X$p"; then
5106       enable_shared=yes
5107     fi
5108   done
5109   IFS="$ac_save_ifs"
5110   ;;
5111 esac
5112 else
5113   enable_shared=yes
5114 fi;
5115
5116 case "$host" in
5117  alpha-*-openbsd*)
5118      enable_shared=no
5119      echo "$as_me:$LINENO: result: no" >&5
5120 echo "${ECHO_T}no" >&6
5121      ;;
5122  *)
5123      echo "$as_me:$LINENO: result: yes" >&5
5124 echo "${ECHO_T}yes" >&6
5125      ;;
5126 esac
5127
5128 # Configuration of machine-dependent code
5129 #
5130 # We don't set NO_EXECUTE_PERMISSION by default because gcj (and
5131 # anything else that creates trampolines in gc-allocated memory)
5132 # always needs exec permission.  The exceptions to this are IA-64 and
5133 # some variations of Power PC, where trampolines don't contain
5134 # executable code.
5135 #
5136 echo "$as_me:$LINENO: checking which machine-dependent code should be used" >&5
5137 echo $ECHO_N "checking which machine-dependent code should be used... $ECHO_C" >&6
5138 machdep=
5139 case "$host" in
5140  alpha*-*-openbsd*)
5141     machdep="alpha_mach_dep.lo"
5142     if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
5143        { echo "$as_me:$LINENO: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
5144 echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
5145     fi
5146     ;;
5147  alpha*-*-linux*)
5148     machdep="alpha_mach_dep.lo"
5149     ;;
5150  i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
5151     cat >>confdefs.h <<\_ACEOF
5152 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
5153 _ACEOF
5154
5155     ;;
5156  mipstx39-*-elf*)
5157     machdep="mips_ultrix_mach_dep.lo"
5158     cat >>confdefs.h <<\_ACEOF
5159 #define STACKBASE __stackbase
5160 _ACEOF
5161
5162     cat >>confdefs.h <<\_ACEOF
5163 #define DATASTART_IS_ETEXT 1
5164 _ACEOF
5165
5166     ;;
5167  mips-dec-ultrix*)
5168     machdep="mips_ultrix_mach-dep.lo"
5169     ;;
5170  mips-nec-sysv*|mips-unknown-sysv*)
5171     ;;
5172  mips*-*-linux*)
5173     ;;
5174  mips-*-*)
5175     machdep="mips_sgi_mach_dep.lo"
5176     ;;
5177  sparc-*-netbsd*)
5178     machdep="sparc_netbsd_mach_dep.lo"
5179     ;;
5180  sparc-sun-solaris2.3)
5181     machdep="sparc_mach_dep.lo"
5182     cat >>confdefs.h <<\_ACEOF
5183 #define SUNOS53_SHARED_LIB 1
5184 _ACEOF
5185
5186     ;;
5187  sparc-sun-solaris2.*)
5188     machdep="sparc_mach_dep.lo"
5189     ;;
5190  ia64-*-*)
5191     cat >>confdefs.h <<\_ACEOF
5192 #define NO_EXECUTE_PERMISSION 1
5193 _ACEOF
5194
5195     machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
5196     ;;
5197 esac
5198 if test x"$machdep" = x; then
5199 echo "$as_me:$LINENO: result: $machdep" >&5
5200 echo "${ECHO_T}$machdep" >&6
5201    machdep="mach_dep.lo"
5202 fi
5203 addobjs="$addobjs $machdep"
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215 #
5216 # Check for AViiON Machines running DGUX
5217 #
5218 echo "$as_me:$LINENO: checking if host is AViiON running DGUX" >&5
5219 echo $ECHO_N "checking if host is AViiON running DGUX... $ECHO_C" >&6
5220 ac_is_dgux=no
5221 ac_ext=c
5222 ac_cpp='$CPP $CPPFLAGS'
5223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5226 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5227 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5228 # On Suns, sometimes $CPP names a directory.
5229 if test -n "$CPP" && test -d "$CPP"; then
5230   CPP=
5231 fi
5232 if test -z "$CPP"; then
5233   if test "${ac_cv_prog_CPP+set}" = set; then
5234   echo $ECHO_N "(cached) $ECHO_C" >&6
5235 else
5236       # Double quotes because CPP needs to be expanded
5237     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5238     do
5239       ac_preproc_ok=false
5240 for ac_c_preproc_warn_flag in '' yes
5241 do
5242   # Use a header file that comes with gcc, so configuring glibc
5243   # with a fresh cross-compiler works.
5244   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5245   # <limits.h> exists even on freestanding compilers.
5246   # On the NeXT, cc -E runs the code through the compiler's parser,
5247   # not just through cpp. "Syntax error" is here to catch this case.
5248   cat >conftest.$ac_ext <<_ACEOF
5249 #line $LINENO "configure"
5250 /* confdefs.h.  */
5251 _ACEOF
5252 cat confdefs.h >>conftest.$ac_ext
5253 cat >>conftest.$ac_ext <<_ACEOF
5254 /* end confdefs.h.  */
5255 #ifdef __STDC__
5256 # include <limits.h>
5257 #else
5258 # include <assert.h>
5259 #endif
5260                      Syntax error
5261 _ACEOF
5262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5263   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5264   ac_status=$?
5265   grep -v '^ *+' conftest.er1 >conftest.err
5266   rm -f conftest.er1
5267   cat conftest.err >&5
5268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269   (exit $ac_status); } >/dev/null; then
5270   if test -s conftest.err; then
5271     ac_cpp_err=$ac_c_preproc_warn_flag
5272   else
5273     ac_cpp_err=
5274   fi
5275 else
5276   ac_cpp_err=yes
5277 fi
5278 if test -z "$ac_cpp_err"; then
5279   :
5280 else
5281   echo "$as_me: failed program was:" >&5
5282 sed 's/^/| /' conftest.$ac_ext >&5
5283
5284   # Broken: fails on valid input.
5285 continue
5286 fi
5287 rm -f conftest.err conftest.$ac_ext
5288
5289   # OK, works on sane cases.  Now check whether non-existent headers
5290   # can be detected and how.
5291   cat >conftest.$ac_ext <<_ACEOF
5292 #line $LINENO "configure"
5293 /* confdefs.h.  */
5294 _ACEOF
5295 cat confdefs.h >>conftest.$ac_ext
5296 cat >>conftest.$ac_ext <<_ACEOF
5297 /* end confdefs.h.  */
5298 #include <ac_nonexistent.h>
5299 _ACEOF
5300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5301   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5302   ac_status=$?
5303   grep -v '^ *+' conftest.er1 >conftest.err
5304   rm -f conftest.er1
5305   cat conftest.err >&5
5306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307   (exit $ac_status); } >/dev/null; then
5308   if test -s conftest.err; then
5309     ac_cpp_err=$ac_c_preproc_warn_flag
5310   else
5311     ac_cpp_err=
5312   fi
5313 else
5314   ac_cpp_err=yes
5315 fi
5316 if test -z "$ac_cpp_err"; then
5317   # Broken: success on invalid input.
5318 continue
5319 else
5320   echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.$ac_ext >&5
5322
5323   # Passes both tests.
5324 ac_preproc_ok=:
5325 break
5326 fi
5327 rm -f conftest.err conftest.$ac_ext
5328
5329 done
5330 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5331 rm -f conftest.err conftest.$ac_ext
5332 if $ac_preproc_ok; then
5333   break
5334 fi
5335
5336     done
5337     ac_cv_prog_CPP=$CPP
5338
5339 fi
5340   CPP=$ac_cv_prog_CPP
5341 else
5342   ac_cv_prog_CPP=$CPP
5343 fi
5344 echo "$as_me:$LINENO: result: $CPP" >&5
5345 echo "${ECHO_T}$CPP" >&6
5346 ac_preproc_ok=false
5347 for ac_c_preproc_warn_flag in '' yes
5348 do
5349   # Use a header file that comes with gcc, so configuring glibc
5350   # with a fresh cross-compiler works.
5351   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5352   # <limits.h> exists even on freestanding compilers.
5353   # On the NeXT, cc -E runs the code through the compiler's parser,
5354   # not just through cpp. "Syntax error" is here to catch this case.
5355   cat >conftest.$ac_ext <<_ACEOF
5356 #line $LINENO "configure"
5357 /* confdefs.h.  */
5358 _ACEOF
5359 cat confdefs.h >>conftest.$ac_ext
5360 cat >>conftest.$ac_ext <<_ACEOF
5361 /* end confdefs.h.  */
5362 #ifdef __STDC__
5363 # include <limits.h>
5364 #else
5365 # include <assert.h>
5366 #endif
5367                      Syntax error
5368 _ACEOF
5369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5370   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5371   ac_status=$?
5372   grep -v '^ *+' conftest.er1 >conftest.err
5373   rm -f conftest.er1
5374   cat conftest.err >&5
5375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376   (exit $ac_status); } >/dev/null; then
5377   if test -s conftest.err; then
5378     ac_cpp_err=$ac_c_preproc_warn_flag
5379   else
5380     ac_cpp_err=
5381   fi
5382 else
5383   ac_cpp_err=yes
5384 fi
5385 if test -z "$ac_cpp_err"; then
5386   :
5387 else
5388   echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5390
5391   # Broken: fails on valid input.
5392 continue
5393 fi
5394 rm -f conftest.err conftest.$ac_ext
5395
5396   # OK, works on sane cases.  Now check whether non-existent headers
5397   # can be detected and how.
5398   cat >conftest.$ac_ext <<_ACEOF
5399 #line $LINENO "configure"
5400 /* confdefs.h.  */
5401 _ACEOF
5402 cat confdefs.h >>conftest.$ac_ext
5403 cat >>conftest.$ac_ext <<_ACEOF
5404 /* end confdefs.h.  */
5405 #include <ac_nonexistent.h>
5406 _ACEOF
5407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5408   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5409   ac_status=$?
5410   grep -v '^ *+' conftest.er1 >conftest.err
5411   rm -f conftest.er1
5412   cat conftest.err >&5
5413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414   (exit $ac_status); } >/dev/null; then
5415   if test -s conftest.err; then
5416     ac_cpp_err=$ac_c_preproc_warn_flag
5417   else
5418     ac_cpp_err=
5419   fi
5420 else
5421   ac_cpp_err=yes
5422 fi
5423 if test -z "$ac_cpp_err"; then
5424   # Broken: success on invalid input.
5425 continue
5426 else
5427   echo "$as_me: failed program was:" >&5
5428 sed 's/^/| /' conftest.$ac_ext >&5
5429
5430   # Passes both tests.
5431 ac_preproc_ok=:
5432 break
5433 fi
5434 rm -f conftest.err conftest.$ac_ext
5435
5436 done
5437 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5438 rm -f conftest.err conftest.$ac_ext
5439 if $ac_preproc_ok; then
5440   :
5441 else
5442   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5443 See \`config.log' for more details." >&5
5444 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5445 See \`config.log' for more details." >&2;}
5446    { (exit 1); exit 1; }; }
5447 fi
5448
5449 ac_ext=c
5450 ac_cpp='$CPP $CPPFLAGS'
5451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5454
5455
5456 echo "$as_me:$LINENO: checking for egrep" >&5
5457 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5458 if test "${ac_cv_prog_egrep+set}" = set; then
5459   echo $ECHO_N "(cached) $ECHO_C" >&6
5460 else
5461   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5462     then ac_cv_prog_egrep='grep -E'
5463     else ac_cv_prog_egrep='egrep'
5464     fi
5465 fi
5466 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5467 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5468  EGREP=$ac_cv_prog_egrep
5469
5470
5471 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5472 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5473 if test "${ac_cv_header_stdc+set}" = set; then
5474   echo $ECHO_N "(cached) $ECHO_C" >&6
5475 else
5476   cat >conftest.$ac_ext <<_ACEOF
5477 #line $LINENO "configure"
5478 /* confdefs.h.  */
5479 _ACEOF
5480 cat confdefs.h >>conftest.$ac_ext
5481 cat >>conftest.$ac_ext <<_ACEOF
5482 /* end confdefs.h.  */
5483 #include <stdlib.h>
5484 #include <stdarg.h>
5485 #include <string.h>
5486 #include <float.h>
5487
5488 int
5489 main ()
5490 {
5491
5492   ;
5493   return 0;
5494 }
5495 _ACEOF
5496 rm -f conftest.$ac_objext
5497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5498   (eval $ac_compile) 2>&5
5499   ac_status=$?
5500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501   (exit $ac_status); } &&
5502          { ac_try='test -s conftest.$ac_objext'
5503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5504   (eval $ac_try) 2>&5
5505   ac_status=$?
5506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507   (exit $ac_status); }; }; then
5508   ac_cv_header_stdc=yes
5509 else
5510   echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5512
5513 ac_cv_header_stdc=no
5514 fi
5515 rm -f conftest.$ac_objext conftest.$ac_ext
5516
5517 if test $ac_cv_header_stdc = yes; then
5518   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5519   cat >conftest.$ac_ext <<_ACEOF
5520 #line $LINENO "configure"
5521 /* confdefs.h.  */
5522 _ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h.  */
5526 #include <string.h>
5527
5528 _ACEOF
5529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5530   $EGREP "memchr" >/dev/null 2>&1; then
5531   :
5532 else
5533   ac_cv_header_stdc=no
5534 fi
5535 rm -f conftest*
5536
5537 fi
5538
5539 if test $ac_cv_header_stdc = yes; then
5540   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5541   cat >conftest.$ac_ext <<_ACEOF
5542 #line $LINENO "configure"
5543 /* confdefs.h.  */
5544 _ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h.  */
5548 #include <stdlib.h>
5549
5550 _ACEOF
5551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5552   $EGREP "free" >/dev/null 2>&1; then
5553   :
5554 else
5555   ac_cv_header_stdc=no
5556 fi
5557 rm -f conftest*
5558
5559 fi
5560
5561 if test $ac_cv_header_stdc = yes; then
5562   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5563   if test "$cross_compiling" = yes; then
5564   :
5565 else
5566   cat >conftest.$ac_ext <<_ACEOF
5567 #line $LINENO "configure"
5568 /* confdefs.h.  */
5569 _ACEOF
5570 cat confdefs.h >>conftest.$ac_ext
5571 cat >>conftest.$ac_ext <<_ACEOF
5572 /* end confdefs.h.  */
5573 #include <ctype.h>
5574 #if ((' ' & 0x0FF) == 0x020)
5575 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5576 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5577 #else
5578 # define ISLOWER(c) \
5579                    (('a' <= (c) && (c) <= 'i') \
5580                      || ('j' <= (c) && (c) <= 'r') \
5581                      || ('s' <= (c) && (c) <= 'z'))
5582 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5583 #endif
5584
5585 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5586 int
5587 main ()
5588 {
5589   int i;
5590   for (i = 0; i < 256; i++)
5591     if (XOR (islower (i), ISLOWER (i))
5592         || toupper (i) != TOUPPER (i))
5593       exit(2);
5594   exit (0);
5595 }
5596 _ACEOF
5597 rm -f conftest$ac_exeext
5598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5599   (eval $ac_link) 2>&5
5600   ac_status=$?
5601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604   (eval $ac_try) 2>&5
5605   ac_status=$?
5606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607   (exit $ac_status); }; }; then
5608   :
5609 else
5610   echo "$as_me: program exited with status $ac_status" >&5
5611 echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.$ac_ext >&5
5613
5614 ( exit $ac_status )
5615 ac_cv_header_stdc=no
5616 fi
5617 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5618 fi
5619 fi
5620 fi
5621 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5622 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5623 if test $ac_cv_header_stdc = yes; then
5624
5625 cat >>confdefs.h <<\_ACEOF
5626 #define STDC_HEADERS 1
5627 _ACEOF
5628
5629 fi
5630
5631 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5642                   inttypes.h stdint.h unistd.h
5643 do
5644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5645 echo "$as_me:$LINENO: checking for $ac_header" >&5
5646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5648   echo $ECHO_N "(cached) $ECHO_C" >&6
5649 else
5650   cat >conftest.$ac_ext <<_ACEOF
5651 #line $LINENO "configure"
5652 /* confdefs.h.  */
5653 _ACEOF
5654 cat confdefs.h >>conftest.$ac_ext
5655 cat >>conftest.$ac_ext <<_ACEOF
5656 /* end confdefs.h.  */
5657 $ac_includes_default
5658
5659 #include <$ac_header>
5660 _ACEOF
5661 rm -f conftest.$ac_objext
5662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5663   (eval $ac_compile) 2>&5
5664   ac_status=$?
5665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666   (exit $ac_status); } &&
5667          { ac_try='test -s conftest.$ac_objext'
5668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669   (eval $ac_try) 2>&5
5670   ac_status=$?
5671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672   (exit $ac_status); }; }; then
5673   eval "$as_ac_Header=yes"
5674 else
5675   echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5677
5678 eval "$as_ac_Header=no"
5679 fi
5680 rm -f conftest.$ac_objext conftest.$ac_ext
5681 fi
5682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5683 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5685   cat >>confdefs.h <<_ACEOF
5686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5687 _ACEOF
5688
5689 fi
5690
5691 done
5692
5693
5694 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
5695   echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
5696 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
5697 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
5698   echo $ECHO_N "(cached) $ECHO_C" >&6
5699 fi
5700 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
5701 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
5702 else
5703   # Is the header compilable?
5704 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
5705 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
5706 cat >conftest.$ac_ext <<_ACEOF
5707 #line $LINENO "configure"
5708 /* confdefs.h.  */
5709 _ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h.  */
5713 $ac_includes_default
5714 #include <sys/dg_sys_info.h>
5715 _ACEOF
5716 rm -f conftest.$ac_objext
5717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5718   (eval $ac_compile) 2>&5
5719   ac_status=$?
5720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721   (exit $ac_status); } &&
5722          { ac_try='test -s conftest.$ac_objext'
5723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724   (eval $ac_try) 2>&5
5725   ac_status=$?
5726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727   (exit $ac_status); }; }; then
5728   ac_header_compiler=yes
5729 else
5730   echo "$as_me: failed program was:" >&5
5731 sed 's/^/| /' conftest.$ac_ext >&5
5732
5733 ac_header_compiler=no
5734 fi
5735 rm -f conftest.$ac_objext conftest.$ac_ext
5736 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5737 echo "${ECHO_T}$ac_header_compiler" >&6
5738
5739 # Is the header present?
5740 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
5741 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
5742 cat >conftest.$ac_ext <<_ACEOF
5743 #line $LINENO "configure"
5744 /* confdefs.h.  */
5745 _ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h.  */
5749 #include <sys/dg_sys_info.h>
5750 _ACEOF
5751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5752   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5753   ac_status=$?
5754   grep -v '^ *+' conftest.er1 >conftest.err
5755   rm -f conftest.er1
5756   cat conftest.err >&5
5757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758   (exit $ac_status); } >/dev/null; then
5759   if test -s conftest.err; then
5760     ac_cpp_err=$ac_c_preproc_warn_flag
5761   else
5762     ac_cpp_err=
5763   fi
5764 else
5765   ac_cpp_err=yes
5766 fi
5767 if test -z "$ac_cpp_err"; then
5768   ac_header_preproc=yes
5769 else
5770   echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5772
5773   ac_header_preproc=no
5774 fi
5775 rm -f conftest.err conftest.$ac_ext
5776 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5777 echo "${ECHO_T}$ac_header_preproc" >&6
5778
5779 # So?  What about this header?
5780 case $ac_header_compiler:$ac_header_preproc in
5781   yes:no )
5782     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
5783 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5784     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
5785 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
5786     (
5787       cat <<\_ASBOX
5788 ## ------------------------------------ ##
5789 ## Report this to bug-autoconf@gnu.org. ##
5790 ## ------------------------------------ ##
5791 _ASBOX
5792     ) |
5793       sed "s/^/$as_me: WARNING:     /" >&2
5794     ;;
5795   no:yes )
5796     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
5797 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
5798     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
5799 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
5800     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
5801 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
5802     (
5803       cat <<\_ASBOX
5804 ## ------------------------------------ ##
5805 ## Report this to bug-autoconf@gnu.org. ##
5806 ## ------------------------------------ ##
5807 _ASBOX
5808     ) |
5809       sed "s/^/$as_me: WARNING:     /" >&2
5810     ;;
5811 esac
5812 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
5813 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
5814 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
5815   echo $ECHO_N "(cached) $ECHO_C" >&6
5816 else
5817   ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
5818 fi
5819 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
5820 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
5821
5822 fi
5823 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
5824   ac_is_dgux=yes;
5825 fi
5826
5827
5828
5829 echo "$as_me:$LINENO: result: $ac_is_dgux" >&5
5830 echo "${ECHO_T}$ac_is_dgux" >&6
5831     ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
5832 if test $ac_is_dgux = yes; then
5833     if test "$enable_full_debug" = "yes"; then
5834       CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
5835       CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
5836     else
5837       CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
5838       CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
5839     fi
5840
5841
5842 fi
5843
5844
5845 # Check whether --with-target-subdir or --without-target-subdir was given.
5846 if test "${with_target_subdir+set}" = set; then
5847   withval="$with_target_subdir"
5848
5849 fi;
5850
5851 # Check whether --with-cross-host or --without-cross-host was given.
5852 if test "${with_cross_host+set}" = set; then
5853   withval="$with_cross_host"
5854
5855 fi;
5856
5857 echo "$as_me:$LINENO: checking whether Solaris gcc optimization fix is necessary" >&5
5858 echo $ECHO_N "checking whether Solaris gcc optimization fix is necessary... $ECHO_C" >&6
5859 case "$host" in
5860  sparc-sun-solaris2*|*aix*)
5861     if test "$GCC" = yes; then
5862        echo "$as_me:$LINENO: result: yes" >&5
5863 echo "${ECHO_T}yes" >&6
5864        new_CFLAGS=
5865        for i in $CFLAGS; do
5866           case "$i" in
5867            -O*)
5868               ;;
5869            *)
5870               new_CFLAGS="$new_CFLAGS $i"
5871               ;;
5872           esac
5873        done
5874        CFLAGS="$new_CFLAGS"
5875     else
5876        echo "$as_me:$LINENO: result: no" >&5
5877 echo "${ECHO_T}no" >&6
5878     fi
5879     ;;
5880  *) echo "$as_me:$LINENO: result: no" >&5
5881 echo "${ECHO_T}no" >&6 ;;
5882 esac
5883
5884 MY_CFLAGS="$CFLAGS"
5885
5886
5887 cat >>confdefs.h <<\_ACEOF
5888 #define SILENT 1
5889 _ACEOF
5890
5891 cat >>confdefs.h <<\_ACEOF
5892 #define NO_SIGNALS 1
5893 _ACEOF
5894
5895 cat >>confdefs.h <<\_ACEOF
5896 #define ALL_INTERIOR_POINTERS 1
5897 _ACEOF
5898
5899
5900 cat >>confdefs.h <<\_ACEOF
5901 #define JAVA_FINALIZATION 1
5902 _ACEOF
5903
5904 cat >>confdefs.h <<\_ACEOF
5905 #define GC_GCJ_SUPPORT 1
5906 _ACEOF
5907
5908 cat >>confdefs.h <<\_ACEOF
5909 #define ATOMIC_UNCOLLECTABLE 1
5910 _ACEOF
5911
5912
5913 if test -n "${with_cross_host}"; then
5914    cat >>confdefs.h <<\_ACEOF
5915 #define NO_SIGSET 1
5916 _ACEOF
5917
5918    cat >>confdefs.h <<\_ACEOF
5919 #define NO_DEBUGGING 1
5920 _ACEOF
5921
5922 fi
5923
5924 # Check whether --enable-full-debug or --disable-full-debug was given.
5925 if test "${enable_full_debug+set}" = set; then
5926   enableval="$enable_full_debug"
5927    if test "$enable_full_debug" = "yes"; then
5928     { echo "$as_me:$LINENO: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&5
5929 echo "$as_me: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
5930     cat >>confdefs.h <<\_ACEOF
5931 #define KEEP_BACK_PTRS 1
5932 _ACEOF
5933
5934     cat >>confdefs.h <<\_ACEOF
5935 #define DBG_HDRS_ALL 1
5936 _ACEOF
5937
5938     case $host in
5939       ia64-*-linux* )
5940         cat >>confdefs.h <<\_ACEOF
5941 #define MAKE_BACK_GRAPH 1
5942 _ACEOF
5943
5944       ;;
5945       x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
5946         cat >>confdefs.h <<\_ACEOF
5947 #define MAKE_BACK_GRAPH 1
5948 _ACEOF
5949
5950         { echo "$as_me:$LINENO: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
5951 echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
5952         cat >>confdefs.h <<\_ACEOF
5953 #define SAVE_CALL_COUNT 8
5954 _ACEOF
5955
5956       ;;
5957       i345686-*-dgux*)
5958         cat >>confdefs.h <<\_ACEOF
5959 #define MAKE_BACK_GRAPH 1
5960 _ACEOF
5961
5962       ;;
5963     esac
5964   fi
5965 fi;
5966
5967 if test -n "$with_cross_host" &&
5968    test x"$with_cross_host" != x"no"; then
5969   toolexecdir='$(exec_prefix)/$(target_noncanonical)'
5970   toolexeclibdir='$(toolexecdir)/lib'
5971 else
5972   toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
5973   toolexeclibdir='$(libdir)'
5974 fi
5975 multi_os_directory=`$CC -print-multi-os-directory`
5976 case $multi_os_directory in
5977   .) ;; # Avoid trailing /.
5978   *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5979 esac
5980
5981
5982
5983 if test "${multilib}" = "yes"; then
5984   multilib_arg="--enable-multilib"
5985 else
5986   multilib_arg=
5987 fi
5988
5989                     ac_config_files="$ac_config_files Makefile include/Makefile"
5990           ac_config_commands="$ac_config_commands default"
5991 cat >confcache <<\_ACEOF
5992 # This file is a shell script that caches the results of configure
5993 # tests run on this system so they can be shared between configure
5994 # scripts and configure runs, see configure's option --config-cache.
5995 # It is not useful on other systems.  If it contains results you don't
5996 # want to keep, you may remove or edit it.
5997 #
5998 # config.status only pays attention to the cache file if you give it
5999 # the --recheck option to rerun configure.
6000 #
6001 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6002 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6003 # following values.
6004
6005 _ACEOF
6006
6007 # The following way of writing the cache mishandles newlines in values,
6008 # but we know of no workaround that is simple, portable, and efficient.
6009 # So, don't put newlines in cache variables' values.
6010 # Ultrix sh set writes to stderr and can't be redirected directly,
6011 # and sets the high bit in the cache file unless we assign to the vars.
6012 {
6013   (set) 2>&1 |
6014     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6015     *ac_space=\ *)
6016       # `set' does not quote correctly, so add quotes (double-quote
6017       # substitution turns \\\\ into \\, and sed turns \\ into \).
6018       sed -n \
6019         "s/'/'\\\\''/g;
6020           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6021       ;;
6022     *)
6023       # `set' quotes correctly as required by POSIX, so do not add quotes.
6024       sed -n \
6025         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6026       ;;
6027     esac;
6028 } |
6029   sed '
6030      t clear
6031      : clear
6032      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6033      t end
6034      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6035      : end' >>confcache
6036 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6037   if test -w $cache_file; then
6038     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6039     cat confcache >$cache_file
6040   else
6041     echo "not updating unwritable cache $cache_file"
6042   fi
6043 fi
6044 rm -f confcache
6045
6046 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6047 # Let make expand exec_prefix.
6048 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6049
6050 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6051 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6052 # trailing colons and then remove the whole line if VPATH becomes empty
6053 # (actually we leave an empty line to preserve line numbers).
6054 if test "x$srcdir" = x.; then
6055   ac_vpsub='/^[         ]*VPATH[        ]*=/{
6056 s/:*\$(srcdir):*/:/;
6057 s/:*\${srcdir}:*/:/;
6058 s/:*@srcdir@:*/:/;
6059 s/^\([^=]*=[    ]*\):*/\1/;
6060 s/:*$//;
6061 s/^[^=]*=[      ]*$//;
6062 }'
6063 fi
6064
6065 # Transform confdefs.h into DEFS.
6066 # Protect against shell expansion while executing Makefile rules.
6067 # Protect against Makefile macro expansion.
6068 #
6069 # If the first sed substitution is executed (which looks for macros that
6070 # take arguments), then we branch to the quote section.  Otherwise,
6071 # look for a macro that doesn't take arguments.
6072 cat >confdef2opt.sed <<\_ACEOF
6073 t clear
6074 : clear
6075 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
6076 t quote
6077 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
6078 t quote
6079 d
6080 : quote
6081 s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
6082 s,\[,\\&,g
6083 s,\],\\&,g
6084 s,\$,$$,g
6085 p
6086 _ACEOF
6087 # We use echo to avoid assuming a particular line-breaking character.
6088 # The extra dot is to prevent the shell from consuming trailing
6089 # line-breaks from the sub-command output.  A line-break within
6090 # single-quotes doesn't work because, if this script is created in a
6091 # platform that uses two characters for line-breaks (e.g., DOS), tr
6092 # would break.
6093 ac_LF_and_DOT=`echo; echo .`
6094 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
6095 rm -f confdef2opt.sed
6096
6097
6098 ac_libobjs=
6099 ac_ltlibobjs=
6100 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6101   # 1. Remove the extension, and $U if already installed.
6102   ac_i=`echo "$ac_i" |
6103          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6104   # 2. Add them.
6105   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6106   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6107 done
6108 LIBOBJS=$ac_libobjs
6109
6110 LTLIBOBJS=$ac_ltlibobjs
6111
6112
6113
6114 : ${CONFIG_STATUS=./config.status}
6115 ac_clean_files_save=$ac_clean_files
6116 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6117 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6118 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6119 cat >$CONFIG_STATUS <<_ACEOF
6120 #! $SHELL
6121 # Generated by $as_me.
6122 # Run this file to recreate the current configuration.
6123 # Compiler output produced by configure, useful for debugging
6124 # configure, is in config.log if it exists.
6125
6126 debug=false
6127 ac_cs_recheck=false
6128 ac_cs_silent=false
6129 SHELL=\${CONFIG_SHELL-$SHELL}
6130 _ACEOF
6131
6132 cat >>$CONFIG_STATUS <<\_ACEOF
6133 ## --------------------- ##
6134 ## M4sh Initialization.  ##
6135 ## --------------------- ##
6136
6137 # Be Bourne compatible
6138 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6139   emulate sh
6140   NULLCMD=:
6141   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6142   # is contrary to our usage.  Disable this feature.
6143   alias -g '${1+"$@"}'='"$@"'
6144 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6145   set -o posix
6146 fi
6147
6148 # Support unset when possible.
6149 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6150   as_unset=unset
6151 else
6152   as_unset=false
6153 fi
6154
6155
6156 # Work around bugs in pre-3.0 UWIN ksh.
6157 $as_unset ENV MAIL MAILPATH
6158 PS1='$ '
6159 PS2='> '
6160 PS4='+ '
6161
6162 # NLS nuisances.
6163 for as_var in \
6164   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6165   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6166   LC_TELEPHONE LC_TIME
6167 do
6168   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6169     eval $as_var=C; export $as_var
6170   else
6171     $as_unset $as_var
6172   fi
6173 done
6174
6175 # Required to use basename.
6176 if expr a : '\(a\)' >/dev/null 2>&1; then
6177   as_expr=expr
6178 else
6179   as_expr=false
6180 fi
6181
6182 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6183   as_basename=basename
6184 else
6185   as_basename=false
6186 fi
6187
6188
6189 # Name of the executable.
6190 as_me=`$as_basename "$0" ||
6191 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6192          X"$0" : 'X\(//\)$' \| \
6193          X"$0" : 'X\(/\)$' \| \
6194          .     : '\(.\)' 2>/dev/null ||
6195 echo X/"$0" |
6196     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6197           /^X\/\(\/\/\)$/{ s//\1/; q; }
6198           /^X\/\(\/\).*/{ s//\1/; q; }
6199           s/.*/./; q'`
6200
6201
6202 # PATH needs CR, and LINENO needs CR and PATH.
6203 # Avoid depending upon Character Ranges.
6204 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6205 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6206 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6207 as_cr_digits='0123456789'
6208 as_cr_alnum=$as_cr_Letters$as_cr_digits
6209
6210 # The user is always right.
6211 if test "${PATH_SEPARATOR+set}" != set; then
6212   echo "#! /bin/sh" >conf$$.sh
6213   echo  "exit 0"   >>conf$$.sh
6214   chmod +x conf$$.sh
6215   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6216     PATH_SEPARATOR=';'
6217   else
6218     PATH_SEPARATOR=:
6219   fi
6220   rm -f conf$$.sh
6221 fi
6222
6223
6224   as_lineno_1=$LINENO
6225   as_lineno_2=$LINENO
6226   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6227   test "x$as_lineno_1" != "x$as_lineno_2" &&
6228   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
6229   # Find who we are.  Look in the path if we contain no path at all
6230   # relative or not.
6231   case $0 in
6232     *[\\/]* ) as_myself=$0 ;;
6233     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234 for as_dir in $PATH
6235 do
6236   IFS=$as_save_IFS
6237   test -z "$as_dir" && as_dir=.
6238   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6239 done
6240
6241        ;;
6242   esac
6243   # We did not find ourselves, most probably we were run as `sh COMMAND'
6244   # in which case we are not to be found in the path.
6245   if test "x$as_myself" = x; then
6246     as_myself=$0
6247   fi
6248   if test ! -f "$as_myself"; then
6249     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6250 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6251    { (exit 1); exit 1; }; }
6252   fi
6253   case $CONFIG_SHELL in
6254   '')
6255     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6257 do
6258   IFS=$as_save_IFS
6259   test -z "$as_dir" && as_dir=.
6260   for as_base in sh bash ksh sh5; do
6261          case $as_dir in
6262          /*)
6263            if ("$as_dir/$as_base" -c '
6264   as_lineno_1=$LINENO
6265   as_lineno_2=$LINENO
6266   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6267   test "x$as_lineno_1" != "x$as_lineno_2" &&
6268   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6269              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6270              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6271              CONFIG_SHELL=$as_dir/$as_base
6272              export CONFIG_SHELL
6273              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6274            fi;;
6275          esac
6276        done
6277 done
6278 ;;
6279   esac
6280
6281   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6282   # uniformly replaced by the line number.  The first 'sed' inserts a
6283   # line-number line before each line; the second 'sed' does the real
6284   # work.  The second script uses 'N' to pair each line-number line
6285   # with the numbered line, and appends trailing '-' during
6286   # substitution so that $LINENO is not a special case at line end.
6287   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6288   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6289   sed '=' <$as_myself |
6290     sed '
6291       N
6292       s,$,-,
6293       : loop
6294       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6295       t loop
6296       s,-$,,
6297       s,^['$as_cr_digits']*\n,,
6298     ' >$as_me.lineno &&
6299   chmod +x $as_me.lineno ||
6300     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6301 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6302    { (exit 1); exit 1; }; }
6303
6304   # Don't try to exec as it changes $[0], causing all sort of problems
6305   # (the dirname of $[0] is not the place where we might find the
6306   # original and so on.  Autoconf is especially sensible to this).
6307   . ./$as_me.lineno
6308   # Exit status is that of the last command.
6309   exit
6310 }
6311
6312
6313 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6314   *c*,-n*) ECHO_N= ECHO_C='
6315 ' ECHO_T='      ' ;;
6316   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6317   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6318 esac
6319
6320 if expr a : '\(a\)' >/dev/null 2>&1; then
6321   as_expr=expr
6322 else
6323   as_expr=false
6324 fi
6325
6326 rm -f conf$$ conf$$.exe conf$$.file
6327 echo >conf$$.file
6328 if ln -s conf$$.file conf$$ 2>/dev/null; then
6329   # We could just check for DJGPP; but this test a) works b) is more generic
6330   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6331   if test -f conf$$.exe; then
6332     # Don't use ln at all; we don't have any links
6333     as_ln_s='cp -p'
6334   else
6335     as_ln_s='ln -s'
6336   fi
6337 elif ln conf$$.file conf$$ 2>/dev/null; then
6338   as_ln_s=ln
6339 else
6340   as_ln_s='cp -p'
6341 fi
6342 rm -f conf$$ conf$$.exe conf$$.file
6343
6344 if mkdir -p . 2>/dev/null; then
6345   as_mkdir_p=:
6346 else
6347   as_mkdir_p=false
6348 fi
6349
6350 as_executable_p="test -f"
6351
6352 # Sed expression to map a string onto a valid CPP name.
6353 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6354
6355 # Sed expression to map a string onto a valid variable name.
6356 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6357
6358
6359 # IFS
6360 # We need space, tab and new line, in precisely that order.
6361 as_nl='
6362 '
6363 IFS="   $as_nl"
6364
6365 # CDPATH.
6366 $as_unset CDPATH
6367
6368 exec 6>&1
6369
6370 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6371 # report actual input values of CONFIG_FILES etc. instead of their
6372 # values after options handling.  Logging --version etc. is OK.
6373 exec 5>>config.log
6374 {
6375   echo
6376   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6377 ## Running $as_me. ##
6378 _ASBOX
6379 } >&5
6380 cat >&5 <<_CSEOF
6381
6382 This file was extended by $as_me, which was
6383 generated by GNU Autoconf 2.57.  Invocation command line was
6384
6385   CONFIG_FILES    = $CONFIG_FILES
6386   CONFIG_HEADERS  = $CONFIG_HEADERS
6387   CONFIG_LINKS    = $CONFIG_LINKS
6388   CONFIG_COMMANDS = $CONFIG_COMMANDS
6389   $ $0 $@
6390
6391 _CSEOF
6392 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6393 echo >&5
6394 _ACEOF
6395
6396 # Files that config.status was made for.
6397 if test -n "$ac_config_files"; then
6398   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6399 fi
6400
6401 if test -n "$ac_config_headers"; then
6402   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6403 fi
6404
6405 if test -n "$ac_config_links"; then
6406   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6407 fi
6408
6409 if test -n "$ac_config_commands"; then
6410   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6411 fi
6412
6413 cat >>$CONFIG_STATUS <<\_ACEOF
6414
6415 ac_cs_usage="\
6416 \`$as_me' instantiates files from templates according to the
6417 current configuration.
6418
6419 Usage: $0 [OPTIONS] [FILE]...
6420
6421   -h, --help       print this help, then exit
6422   -V, --version    print version number, then exit
6423   -q, --quiet      do not print progress messages
6424   -d, --debug      don't remove temporary files
6425       --recheck    update $as_me by reconfiguring in the same conditions
6426   --file=FILE[:TEMPLATE]
6427                    instantiate the configuration file FILE
6428
6429 Configuration files:
6430 $config_files
6431
6432 Configuration commands:
6433 $config_commands
6434
6435 Report bugs to <bug-autoconf@gnu.org>."
6436 _ACEOF
6437
6438 cat >>$CONFIG_STATUS <<_ACEOF
6439 ac_cs_version="\\
6440 config.status
6441 configured by $0, generated by GNU Autoconf 2.57,
6442   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6443
6444 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6445 Free Software Foundation, Inc.
6446 This config.status script is free software; the Free Software Foundation
6447 gives unlimited permission to copy, distribute and modify it."
6448 srcdir=$srcdir
6449 INSTALL="$INSTALL"
6450 _ACEOF
6451
6452 cat >>$CONFIG_STATUS <<\_ACEOF
6453 # If no file are specified by the user, then we need to provide default
6454 # value.  By we need to know if files were specified by the user.
6455 ac_need_defaults=:
6456 while test $# != 0
6457 do
6458   case $1 in
6459   --*=*)
6460     ac_option=`expr "x$1" : 'x\([^=]*\)='`
6461     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6462     ac_shift=:
6463     ;;
6464   -*)
6465     ac_option=$1
6466     ac_optarg=$2
6467     ac_shift=shift
6468     ;;
6469   *) # This is not an option, so the user has probably given explicit
6470      # arguments.
6471      ac_option=$1
6472      ac_need_defaults=false;;
6473   esac
6474
6475   case $ac_option in
6476   # Handling of the options.
6477 _ACEOF
6478 cat >>$CONFIG_STATUS <<\_ACEOF
6479   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6480     ac_cs_recheck=: ;;
6481   --version | --vers* | -V )
6482     echo "$ac_cs_version"; exit 0 ;;
6483   --he | --h)
6484     # Conflict between --help and --header
6485     { { echo "$as_me:$LINENO: error: ambiguous option: $1
6486 Try \`$0 --help' for more information." >&5
6487 echo "$as_me: error: ambiguous option: $1
6488 Try \`$0 --help' for more information." >&2;}
6489    { (exit 1); exit 1; }; };;
6490   --help | --hel | -h )
6491     echo "$ac_cs_usage"; exit 0 ;;
6492   --debug | --d* | -d )
6493     debug=: ;;
6494   --file | --fil | --fi | --f )
6495     $ac_shift
6496     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6497     ac_need_defaults=false;;
6498   --header | --heade | --head | --hea )
6499     $ac_shift
6500     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6501     ac_need_defaults=false;;
6502   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6503   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6504     ac_cs_silent=: ;;
6505
6506   # This is an error.
6507   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6508 Try \`$0 --help' for more information." >&5
6509 echo "$as_me: error: unrecognized option: $1
6510 Try \`$0 --help' for more information." >&2;}
6511    { (exit 1); exit 1; }; } ;;
6512
6513   *) ac_config_targets="$ac_config_targets $1" ;;
6514
6515   esac
6516   shift
6517 done
6518
6519 ac_configure_extra_args=
6520
6521 if $ac_cs_silent; then
6522   exec 6>/dev/null
6523   ac_configure_extra_args="$ac_configure_extra_args --silent"
6524 fi
6525
6526 _ACEOF
6527 cat >>$CONFIG_STATUS <<_ACEOF
6528 if \$ac_cs_recheck; then
6529   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6530   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6531 fi
6532
6533 _ACEOF
6534
6535 cat >>$CONFIG_STATUS <<_ACEOF
6536 #
6537 # INIT-COMMANDS section.
6538 #
6539
6540 srcdir=${srcdir}
6541 host=${host}
6542 target=${target}
6543 with_multisubdir=${with_multisubdir}
6544 ac_configure_args="${multilib_arg} ${ac_configure_args}"
6545 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
6546 gc_basedir=${gc_basedir}
6547 CC="${CC}"
6548 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
6549 DEFS="$DEFS"
6550 INCLUDES="$INCLUDES"
6551
6552
6553 _ACEOF
6554
6555
6556
6557 cat >>$CONFIG_STATUS <<\_ACEOF
6558 for ac_config_target in $ac_config_targets
6559 do
6560   case "$ac_config_target" in
6561   # Handling of arguments.
6562   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6563   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
6564   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6565   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6566 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6567    { (exit 1); exit 1; }; };;
6568   esac
6569 done
6570
6571 # If the user did not use the arguments to specify the items to instantiate,
6572 # then the envvar interface is used.  Set only those that are not.
6573 # We use the long form for the default assignment because of an extremely
6574 # bizarre bug on SunOS 4.1.3.
6575 if $ac_need_defaults; then
6576   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6577   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6578 fi
6579
6580 # Have a temporary directory for convenience.  Make it in the build tree
6581 # simply because there is no reason to put it here, and in addition,
6582 # creating and moving files from /tmp can sometimes cause problems.
6583 # Create a temporary directory, and hook for its removal unless debugging.
6584 $debug ||
6585 {
6586   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6587   trap '{ (exit 1); exit 1; }' 1 2 13 15
6588 }
6589
6590 # Create a (secure) tmp directory for tmp files.
6591
6592 {
6593   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6594   test -n "$tmp" && test -d "$tmp"
6595 }  ||
6596 {
6597   tmp=./confstat$$-$RANDOM
6598   (umask 077 && mkdir $tmp)
6599 } ||
6600 {
6601    echo "$me: cannot create a temporary directory in ." >&2
6602    { (exit 1); exit 1; }
6603 }
6604
6605 _ACEOF
6606
6607 cat >>$CONFIG_STATUS <<_ACEOF
6608
6609 #
6610 # CONFIG_FILES section.
6611 #
6612
6613 # No need to generate the scripts if there are no CONFIG_FILES.
6614 # This happens for instance when ./config.status config.h
6615 if test -n "\$CONFIG_FILES"; then
6616   # Protect against being on the right side of a sed subst in config.status.
6617   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6618    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6619 s,@SHELL@,$SHELL,;t t
6620 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6621 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6622 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6623 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6624 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6625 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6626 s,@exec_prefix@,$exec_prefix,;t t
6627 s,@prefix@,$prefix,;t t
6628 s,@program_transform_name@,$program_transform_name,;t t
6629 s,@bindir@,$bindir,;t t
6630 s,@sbindir@,$sbindir,;t t
6631 s,@libexecdir@,$libexecdir,;t t
6632 s,@datadir@,$datadir,;t t
6633 s,@sysconfdir@,$sysconfdir,;t t
6634 s,@sharedstatedir@,$sharedstatedir,;t t
6635 s,@localstatedir@,$localstatedir,;t t
6636 s,@libdir@,$libdir,;t t
6637 s,@includedir@,$includedir,;t t
6638 s,@oldincludedir@,$oldincludedir,;t t
6639 s,@infodir@,$infodir,;t t
6640 s,@mandir@,$mandir,;t t
6641 s,@build_alias@,$build_alias,;t t
6642 s,@host_alias@,$host_alias,;t t
6643 s,@target_alias@,$target_alias,;t t
6644 s,@DEFS@,$DEFS,;t t
6645 s,@ECHO_C@,$ECHO_C,;t t
6646 s,@ECHO_N@,$ECHO_N,;t t
6647 s,@ECHO_T@,$ECHO_T,;t t
6648 s,@LIBS@,$LIBS,;t t
6649 s,@gc_basedir@,$gc_basedir,;t t
6650 s,@build@,$build,;t t
6651 s,@build_cpu@,$build_cpu,;t t
6652 s,@build_vendor@,$build_vendor,;t t
6653 s,@build_os@,$build_os,;t t
6654 s,@host@,$host,;t t
6655 s,@host_cpu@,$host_cpu,;t t
6656 s,@host_vendor@,$host_vendor,;t t
6657 s,@host_os@,$host_os,;t t
6658 s,@target@,$target,;t t
6659 s,@target_cpu@,$target_cpu,;t t
6660 s,@target_vendor@,$target_vendor,;t t
6661 s,@target_os@,$target_os,;t t
6662 s,@mkinstalldirs@,$mkinstalldirs,;t t
6663 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6664 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6665 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6666 s,@PACKAGE@,$PACKAGE,;t t
6667 s,@VERSION@,$VERSION,;t t
6668 s,@ACLOCAL@,$ACLOCAL,;t t
6669 s,@AUTOCONF@,$AUTOCONF,;t t
6670 s,@AUTOMAKE@,$AUTOMAKE,;t t
6671 s,@AUTOHEADER@,$AUTOHEADER,;t t
6672 s,@MAKEINFO@,$MAKEINFO,;t t
6673 s,@SET_MAKE@,$SET_MAKE,;t t
6674 s,@CC@,$CC,;t t
6675 s,@ac_ct_CC@,$ac_ct_CC,;t t
6676 s,@EXEEXT@,$EXEEXT,;t t
6677 s,@OBJEXT@,$OBJEXT,;t t
6678 s,@CXX@,$CXX,;t t
6679 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6680 s,@CFLAGS@,$CFLAGS,;t t
6681 s,@CXXFLAGS@,$CXXFLAGS,;t t
6682 s,@AS@,$AS,;t t
6683 s,@ac_ct_AS@,$ac_ct_AS,;t t
6684 s,@AR@,$AR,;t t
6685 s,@ac_ct_AR@,$ac_ct_AR,;t t
6686 s,@RANLIB@,$RANLIB,;t t
6687 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6688 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6689 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6690 s,@MAINT@,$MAINT,;t t
6691 s,@GC_CFLAGS@,$GC_CFLAGS,;t t
6692 s,@LN_S@,$LN_S,;t t
6693 s,@STRIP@,$STRIP,;t t
6694 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6695 s,@LIBTOOL@,$LIBTOOL,;t t
6696 s,@CXXCPP@,$CXXCPP,;t t
6697 s,@CPPFLAGS@,$CPPFLAGS,;t t
6698 s,@THREADLIBS@,$THREADLIBS,;t t
6699 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
6700 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
6701 s,@EXTRA_TEST_LIBS@,$EXTRA_TEST_LIBS,;t t
6702 s,@target_all@,$target_all,;t t
6703 s,@target_noncanonical@,$target_noncanonical,;t t
6704 s,@CPLUSPLUS_TRUE@,$CPLUSPLUS_TRUE,;t t
6705 s,@CPLUSPLUS_FALSE@,$CPLUSPLUS_FALSE,;t t
6706 s,@INCLUDES@,$INCLUDES,;t t
6707 s,@CXXINCLUDES@,$CXXINCLUDES,;t t
6708 s,@addobjs@,$addobjs,;t t
6709 s,@addincludes@,$addincludes,;t t
6710 s,@addlibs@,$addlibs,;t t
6711 s,@addtests@,$addtests,;t t
6712 s,@CPP@,$CPP,;t t
6713 s,@EGREP@,$EGREP,;t t
6714 s,@MY_CFLAGS@,$MY_CFLAGS,;t t
6715 s,@toolexecdir@,$toolexecdir,;t t
6716 s,@toolexeclibdir@,$toolexeclibdir,;t t
6717 s,@LIBOBJS@,$LIBOBJS,;t t
6718 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6719 CEOF
6720
6721 _ACEOF
6722
6723   cat >>$CONFIG_STATUS <<\_ACEOF
6724   # Split the substitutions into bite-sized pieces for seds with
6725   # small command number limits, like on Digital OSF/1 and HP-UX.
6726   ac_max_sed_lines=48
6727   ac_sed_frag=1 # Number of current file.
6728   ac_beg=1 # First line for current file.
6729   ac_end=$ac_max_sed_lines # Line after last line for current file.
6730   ac_more_lines=:
6731   ac_sed_cmds=
6732   while $ac_more_lines; do
6733     if test $ac_beg -gt 1; then
6734       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6735     else
6736       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6737     fi
6738     if test ! -s $tmp/subs.frag; then
6739       ac_more_lines=false
6740     else
6741       # The purpose of the label and of the branching condition is to
6742       # speed up the sed processing (if there are no `@' at all, there
6743       # is no need to browse any of the substitutions).
6744       # These are the two extra sed commands mentioned above.
6745       (echo ':t
6746   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6747       if test -z "$ac_sed_cmds"; then
6748         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6749       else
6750         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6751       fi
6752       ac_sed_frag=`expr $ac_sed_frag + 1`
6753       ac_beg=$ac_end
6754       ac_end=`expr $ac_end + $ac_max_sed_lines`
6755     fi
6756   done
6757   if test -z "$ac_sed_cmds"; then
6758     ac_sed_cmds=cat
6759   fi
6760 fi # test -n "$CONFIG_FILES"
6761
6762 _ACEOF
6763 cat >>$CONFIG_STATUS <<\_ACEOF
6764 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6765   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6766   case $ac_file in
6767   - | *:- | *:-:* ) # input from stdin
6768         cat >$tmp/stdin
6769         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6770         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6771   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6772         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6773   * )   ac_file_in=$ac_file.in ;;
6774   esac
6775
6776   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6777   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6778 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6779          X"$ac_file" : 'X\(//\)[^/]' \| \
6780          X"$ac_file" : 'X\(//\)$' \| \
6781          X"$ac_file" : 'X\(/\)' \| \
6782          .     : '\(.\)' 2>/dev/null ||
6783 echo X"$ac_file" |
6784     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6785           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6786           /^X\(\/\/\)$/{ s//\1/; q; }
6787           /^X\(\/\).*/{ s//\1/; q; }
6788           s/.*/./; q'`
6789   { if $as_mkdir_p; then
6790     mkdir -p "$ac_dir"
6791   else
6792     as_dir="$ac_dir"
6793     as_dirs=
6794     while test ! -d "$as_dir"; do
6795       as_dirs="$as_dir $as_dirs"
6796       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6797 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6798          X"$as_dir" : 'X\(//\)[^/]' \| \
6799          X"$as_dir" : 'X\(//\)$' \| \
6800          X"$as_dir" : 'X\(/\)' \| \
6801          .     : '\(.\)' 2>/dev/null ||
6802 echo X"$as_dir" |
6803     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6804           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6805           /^X\(\/\/\)$/{ s//\1/; q; }
6806           /^X\(\/\).*/{ s//\1/; q; }
6807           s/.*/./; q'`
6808     done
6809     test ! -n "$as_dirs" || mkdir $as_dirs
6810   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6811 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6812    { (exit 1); exit 1; }; }; }
6813
6814   ac_builddir=.
6815
6816 if test "$ac_dir" != .; then
6817   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6818   # A "../" for each directory in $ac_dir_suffix.
6819   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6820 else
6821   ac_dir_suffix= ac_top_builddir=
6822 fi
6823
6824 case $srcdir in
6825   .)  # No --srcdir option.  We are building in place.
6826     ac_srcdir=.
6827     if test -z "$ac_top_builddir"; then
6828        ac_top_srcdir=.
6829     else
6830        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6831     fi ;;
6832   [\\/]* | ?:[\\/]* )  # Absolute path.
6833     ac_srcdir=$srcdir$ac_dir_suffix;
6834     ac_top_srcdir=$srcdir ;;
6835   *) # Relative path.
6836     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6837     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6838 esac
6839 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6840 # absolute.
6841 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6842 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6843 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6844 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6845
6846
6847   case $INSTALL in
6848   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6849   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6850   esac
6851
6852   if test x"$ac_file" != x-; then
6853     { echo "$as_me:$LINENO: creating $ac_file" >&5
6854 echo "$as_me: creating $ac_file" >&6;}
6855     rm -f "$ac_file"
6856   fi
6857   # Let's still pretend it is `configure' which instantiates (i.e., don't
6858   # use $as_me), people would be surprised to read:
6859   #    /* config.h.  Generated by config.status.  */
6860   if test x"$ac_file" = x-; then
6861     configure_input=
6862   else
6863     configure_input="$ac_file.  "
6864   fi
6865   configure_input=$configure_input"Generated from `echo $ac_file_in |
6866                                      sed 's,.*/,,'` by configure."
6867
6868   # First look for the input files in the build tree, otherwise in the
6869   # src tree.
6870   ac_file_inputs=`IFS=:
6871     for f in $ac_file_in; do
6872       case $f in
6873       -) echo $tmp/stdin ;;
6874       [\\/$]*)
6875          # Absolute (can't be DOS-style, as IFS=:)
6876          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6877 echo "$as_me: error: cannot find input file: $f" >&2;}
6878    { (exit 1); exit 1; }; }
6879          echo $f;;
6880       *) # Relative
6881          if test -f "$f"; then
6882            # Build tree
6883            echo $f
6884          elif test -f "$srcdir/$f"; then
6885            # Source tree
6886            echo $srcdir/$f
6887          else
6888            # /dev/null tree
6889            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6890 echo "$as_me: error: cannot find input file: $f" >&2;}
6891    { (exit 1); exit 1; }; }
6892          fi;;
6893       esac
6894     done` || { (exit 1); exit 1; }
6895 _ACEOF
6896 cat >>$CONFIG_STATUS <<_ACEOF
6897   sed "$ac_vpsub
6898 $extrasub
6899 _ACEOF
6900 cat >>$CONFIG_STATUS <<\_ACEOF
6901 :t
6902 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6903 s,@configure_input@,$configure_input,;t t
6904 s,@srcdir@,$ac_srcdir,;t t
6905 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6906 s,@top_srcdir@,$ac_top_srcdir,;t t
6907 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6908 s,@builddir@,$ac_builddir,;t t
6909 s,@abs_builddir@,$ac_abs_builddir,;t t
6910 s,@top_builddir@,$ac_top_builddir,;t t
6911 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6912 s,@INSTALL@,$ac_INSTALL,;t t
6913 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6914   rm -f $tmp/stdin
6915   if test x"$ac_file" != x-; then
6916     mv $tmp/out $ac_file
6917   else
6918     cat $tmp/out
6919     rm -f $tmp/out
6920   fi
6921
6922 done
6923 _ACEOF
6924 cat >>$CONFIG_STATUS <<\_ACEOF
6925
6926 #
6927 # CONFIG_COMMANDS section.
6928 #
6929 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6930   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6931   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6932   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6933 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6934          X"$ac_dest" : 'X\(//\)[^/]' \| \
6935          X"$ac_dest" : 'X\(//\)$' \| \
6936          X"$ac_dest" : 'X\(/\)' \| \
6937          .     : '\(.\)' 2>/dev/null ||
6938 echo X"$ac_dest" |
6939     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6940           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6941           /^X\(\/\/\)$/{ s//\1/; q; }
6942           /^X\(\/\).*/{ s//\1/; q; }
6943           s/.*/./; q'`
6944   ac_builddir=.
6945
6946 if test "$ac_dir" != .; then
6947   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6948   # A "../" for each directory in $ac_dir_suffix.
6949   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6950 else
6951   ac_dir_suffix= ac_top_builddir=
6952 fi
6953
6954 case $srcdir in
6955   .)  # No --srcdir option.  We are building in place.
6956     ac_srcdir=.
6957     if test -z "$ac_top_builddir"; then
6958        ac_top_srcdir=.
6959     else
6960        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6961     fi ;;
6962   [\\/]* | ?:[\\/]* )  # Absolute path.
6963     ac_srcdir=$srcdir$ac_dir_suffix;
6964     ac_top_srcdir=$srcdir ;;
6965   *) # Relative path.
6966     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6967     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6968 esac
6969 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6970 # absolute.
6971 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6972 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6973 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6974 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6975
6976
6977   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6978 echo "$as_me: executing $ac_dest commands" >&6;}
6979   case $ac_dest in
6980     default )
6981 echo "$INCLUDES $DEFS" > boehm-cflags
6982
6983 if test -n "$CONFIG_FILES"; then
6984   LD="${ORIGINAL_LD_FOR_MULTILIBS}"
6985   ac_file=Makefile . ${gc_basedir}/../config-ml.in
6986 fi ;;
6987   esac
6988 done
6989 _ACEOF
6990
6991 cat >>$CONFIG_STATUS <<\_ACEOF
6992
6993 { (exit 0); exit 0; }
6994 _ACEOF
6995 chmod +x $CONFIG_STATUS
6996 ac_clean_files=$ac_clean_files_save
6997
6998
6999 # configure is writing to config.log, and then calls config.status.
7000 # config.status does its own redirection, appending to config.log.
7001 # Unfortunately, on DOS this fails, as config.log is still kept open
7002 # by configure, so config.status won't be able to write to it; its
7003 # output is simply discarded.  So we exec the FD to /dev/null,
7004 # effectively closing config.log, so it can be properly (re)opened and
7005 # appended to by config.status.  When coming back to configure, we
7006 # need to make the FD available again.
7007 if test "$no_create" != yes; then
7008   ac_cs_success=:
7009   ac_config_status_args=
7010   test "$silent" = yes &&
7011     ac_config_status_args="$ac_config_status_args --quiet"
7012   exec 5>/dev/null
7013   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7014   exec 5>>config.log
7015   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7016   # would make configure fail if this is the last instruction.
7017   $ac_cs_success || { (exit 1); exit 1; }
7018 fi
7019