OSDN Git Service

* configure.in: Add CCAS, CCASFLAGS for future automakes.
[pf3gnuchains/gcc-fork.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 CCAS CCASFLAGS 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 # Newer automakes demand CCAS and CCASFLAGS.
3054 : ${CCAS='$(CC)'}
3055 : ${CCASFLAGS='$(CFLAGS)'}
3056
3057
3058
3059 if test -n "$ac_tool_prefix"; then
3060   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3061 set dummy ${ac_tool_prefix}as; ac_word=$2
3062 echo "$as_me:$LINENO: checking for $ac_word" >&5
3063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3064 if test "${ac_cv_prog_AS+set}" = set; then
3065   echo $ECHO_N "(cached) $ECHO_C" >&6
3066 else
3067   if test -n "$AS"; then
3068   ac_cv_prog_AS="$AS" # Let the user override the test.
3069 else
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3072 do
3073   IFS=$as_save_IFS
3074   test -z "$as_dir" && as_dir=.
3075   for ac_exec_ext in '' $ac_executable_extensions; do
3076   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3077     ac_cv_prog_AS="${ac_tool_prefix}as"
3078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3079     break 2
3080   fi
3081 done
3082 done
3083
3084 fi
3085 fi
3086 AS=$ac_cv_prog_AS
3087 if test -n "$AS"; then
3088   echo "$as_me:$LINENO: result: $AS" >&5
3089 echo "${ECHO_T}$AS" >&6
3090 else
3091   echo "$as_me:$LINENO: result: no" >&5
3092 echo "${ECHO_T}no" >&6
3093 fi
3094
3095 fi
3096 if test -z "$ac_cv_prog_AS"; then
3097   ac_ct_AS=$AS
3098   # Extract the first word of "as", so it can be a program name with args.
3099 set dummy as; ac_word=$2
3100 echo "$as_me:$LINENO: checking for $ac_word" >&5
3101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3102 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3103   echo $ECHO_N "(cached) $ECHO_C" >&6
3104 else
3105   if test -n "$ac_ct_AS"; then
3106   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3107 else
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH
3110 do
3111   IFS=$as_save_IFS
3112   test -z "$as_dir" && as_dir=.
3113   for ac_exec_ext in '' $ac_executable_extensions; do
3114   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3115     ac_cv_prog_ac_ct_AS="as"
3116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3117     break 2
3118   fi
3119 done
3120 done
3121
3122 fi
3123 fi
3124 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3125 if test -n "$ac_ct_AS"; then
3126   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3127 echo "${ECHO_T}$ac_ct_AS" >&6
3128 else
3129   echo "$as_me:$LINENO: result: no" >&5
3130 echo "${ECHO_T}no" >&6
3131 fi
3132
3133   AS=$ac_ct_AS
3134 else
3135   AS="$ac_cv_prog_AS"
3136 fi
3137
3138 if test -n "$ac_tool_prefix"; then
3139   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3140 set dummy ${ac_tool_prefix}ar; ac_word=$2
3141 echo "$as_me:$LINENO: checking for $ac_word" >&5
3142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3143 if test "${ac_cv_prog_AR+set}" = set; then
3144   echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146   if test -n "$AR"; then
3147   ac_cv_prog_AR="$AR" # Let the user override the test.
3148 else
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH
3151 do
3152   IFS=$as_save_IFS
3153   test -z "$as_dir" && as_dir=.
3154   for ac_exec_ext in '' $ac_executable_extensions; do
3155   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156     ac_cv_prog_AR="${ac_tool_prefix}ar"
3157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3158     break 2
3159   fi
3160 done
3161 done
3162
3163 fi
3164 fi
3165 AR=$ac_cv_prog_AR
3166 if test -n "$AR"; then
3167   echo "$as_me:$LINENO: result: $AR" >&5
3168 echo "${ECHO_T}$AR" >&6
3169 else
3170   echo "$as_me:$LINENO: result: no" >&5
3171 echo "${ECHO_T}no" >&6
3172 fi
3173
3174 fi
3175 if test -z "$ac_cv_prog_AR"; then
3176   ac_ct_AR=$AR
3177   # Extract the first word of "ar", so it can be a program name with args.
3178 set dummy ar; ac_word=$2
3179 echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3181 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3182   echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184   if test -n "$ac_ct_AR"; then
3185   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3186 else
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3189 do
3190   IFS=$as_save_IFS
3191   test -z "$as_dir" && as_dir=.
3192   for ac_exec_ext in '' $ac_executable_extensions; do
3193   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3194     ac_cv_prog_ac_ct_AR="ar"
3195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3196     break 2
3197   fi
3198 done
3199 done
3200
3201 fi
3202 fi
3203 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3204 if test -n "$ac_ct_AR"; then
3205   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3206 echo "${ECHO_T}$ac_ct_AR" >&6
3207 else
3208   echo "$as_me:$LINENO: result: no" >&5
3209 echo "${ECHO_T}no" >&6
3210 fi
3211
3212   AR=$ac_ct_AR
3213 else
3214   AR="$ac_cv_prog_AR"
3215 fi
3216
3217 if test -n "$ac_tool_prefix"; then
3218   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3219 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3220 echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3222 if test "${ac_cv_prog_RANLIB+set}" = set; then
3223   echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225   if test -n "$RANLIB"; then
3226   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3227 else
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH
3230 do
3231   IFS=$as_save_IFS
3232   test -z "$as_dir" && as_dir=.
3233   for ac_exec_ext in '' $ac_executable_extensions; do
3234   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3235     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3237     break 2
3238   fi
3239 done
3240 done
3241
3242 fi
3243 fi
3244 RANLIB=$ac_cv_prog_RANLIB
3245 if test -n "$RANLIB"; then
3246   echo "$as_me:$LINENO: result: $RANLIB" >&5
3247 echo "${ECHO_T}$RANLIB" >&6
3248 else
3249   echo "$as_me:$LINENO: result: no" >&5
3250 echo "${ECHO_T}no" >&6
3251 fi
3252
3253 fi
3254 if test -z "$ac_cv_prog_RANLIB"; then
3255   ac_ct_RANLIB=$RANLIB
3256   # Extract the first word of "ranlib", so it can be a program name with args.
3257 set dummy ranlib; ac_word=$2
3258 echo "$as_me:$LINENO: checking for $ac_word" >&5
3259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3260 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3261   echo $ECHO_N "(cached) $ECHO_C" >&6
3262 else
3263   if test -n "$ac_ct_RANLIB"; then
3264   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3265 else
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
3269   IFS=$as_save_IFS
3270   test -z "$as_dir" && as_dir=.
3271   for ac_exec_ext in '' $ac_executable_extensions; do
3272   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273     ac_cv_prog_ac_ct_RANLIB="ranlib"
3274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3275     break 2
3276   fi
3277 done
3278 done
3279
3280   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3281 fi
3282 fi
3283 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3284 if test -n "$ac_ct_RANLIB"; then
3285   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3286 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3287 else
3288   echo "$as_me:$LINENO: result: no" >&5
3289 echo "${ECHO_T}no" >&6
3290 fi
3291
3292   RANLIB=$ac_ct_RANLIB
3293 else
3294   RANLIB="$ac_cv_prog_RANLIB"
3295 fi
3296
3297
3298 # Find a good install program.  We prefer a C program (faster),
3299 # so one script is as good as another.  But avoid the broken or
3300 # incompatible versions:
3301 # SysV /etc/install, /usr/sbin/install
3302 # SunOS /usr/etc/install
3303 # IRIX /sbin/install
3304 # AIX /bin/install
3305 # AmigaOS /C/install, which installs bootblocks on floppy discs
3306 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3307 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3308 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3309 # ./install, which can be erroneously created by make from ./install.sh.
3310 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3311 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3312 if test -z "$INSTALL"; then
3313 if test "${ac_cv_path_install+set}" = set; then
3314   echo $ECHO_N "(cached) $ECHO_C" >&6
3315 else
3316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3318 do
3319   IFS=$as_save_IFS
3320   test -z "$as_dir" && as_dir=.
3321   # Account for people who put trailing slashes in PATH elements.
3322 case $as_dir/ in
3323   ./ | .// | /cC/* | \
3324   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3325   /usr/ucb/* ) ;;
3326   *)
3327     # OSF1 and SCO ODT 3.0 have their own names for install.
3328     # Don't use installbsd from OSF since it installs stuff as root
3329     # by default.
3330     for ac_prog in ginstall scoinst install; do
3331       for ac_exec_ext in '' $ac_executable_extensions; do
3332         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3333           if test $ac_prog = install &&
3334             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3335             # AIX install.  It has an incompatible calling convention.
3336             :
3337           elif test $ac_prog = install &&
3338             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3339             # program-specific install script used by HP pwplus--don't use.
3340             :
3341           else
3342             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3343             break 3
3344           fi
3345         fi
3346       done
3347     done
3348     ;;
3349 esac
3350 done
3351
3352
3353 fi
3354   if test "${ac_cv_path_install+set}" = set; then
3355     INSTALL=$ac_cv_path_install
3356   else
3357     # As a last resort, use the slow shell script.  We don't cache a
3358     # path for INSTALL within a source directory, because that will
3359     # break other packages using the cache if that directory is
3360     # removed, or if the path is relative.
3361     INSTALL=$ac_install_sh
3362   fi
3363 fi
3364 echo "$as_me:$LINENO: result: $INSTALL" >&5
3365 echo "${ECHO_T}$INSTALL" >&6
3366
3367 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3368 # It thinks the first close brace ends the variable substitution.
3369 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3370
3371 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3372
3373 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3374
3375
3376 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3377 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3378     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3379 if test "${enable_maintainer_mode+set}" = set; then
3380   enableval="$enable_maintainer_mode"
3381   USE_MAINTAINER_MODE=$enableval
3382 else
3383   USE_MAINTAINER_MODE=no
3384 fi;
3385   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3386 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3387
3388
3389 if test $USE_MAINTAINER_MODE = yes; then
3390   MAINTAINER_MODE_TRUE=
3391   MAINTAINER_MODE_FALSE='#'
3392 else
3393   MAINTAINER_MODE_TRUE='#'
3394   MAINTAINER_MODE_FALSE=
3395 fi
3396   MAINT=$MAINTAINER_MODE_TRUE
3397
3398
3399
3400 . ${srcdir}/configure.host
3401
3402 case ${gc_basedir} in
3403 /* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
3404 *) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
3405 esac
3406
3407 gc_cflags="${gc_cflags} -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
3408 case "${host}" in
3409   *-*-cygwin32*)
3410     gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
3411     ;;
3412 esac
3413
3414
3415 GC_CFLAGS=${gc_cflags}
3416
3417
3418 # Check whether --enable-shared or --disable-shared was given.
3419 if test "${enable_shared+set}" = set; then
3420   enableval="$enable_shared"
3421   p=${PACKAGE-default}
3422 case $enableval in
3423 yes) enable_shared=yes ;;
3424 no) enable_shared=no ;;
3425 *)
3426   enable_shared=no
3427   # Look at the argument we got.  We use all the common list separators.
3428   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3429   for pkg in $enableval; do
3430     if test "X$pkg" = "X$p"; then
3431       enable_shared=yes
3432     fi
3433   done
3434   IFS="$ac_save_ifs"
3435   ;;
3436 esac
3437 else
3438   enable_shared=yes
3439 fi;
3440 # Check whether --enable-static or --disable-static was given.
3441 if test "${enable_static+set}" = set; then
3442   enableval="$enable_static"
3443   p=${PACKAGE-default}
3444 case $enableval in
3445 yes) enable_static=yes ;;
3446 no) enable_static=no ;;
3447 *)
3448   enable_static=no
3449   # Look at the argument we got.  We use all the common list separators.
3450   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3451   for pkg in $enableval; do
3452     if test "X$pkg" = "X$p"; then
3453       enable_static=yes
3454     fi
3455   done
3456   IFS="$ac_save_ifs"
3457   ;;
3458 esac
3459 else
3460   enable_static=yes
3461 fi;
3462 # Check whether --enable-fast-install or --disable-fast-install was given.
3463 if test "${enable_fast_install+set}" = set; then
3464   enableval="$enable_fast_install"
3465   p=${PACKAGE-default}
3466 case $enableval in
3467 yes) enable_fast_install=yes ;;
3468 no) enable_fast_install=no ;;
3469 *)
3470   enable_fast_install=no
3471   # Look at the argument we got.  We use all the common list separators.
3472   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3473   for pkg in $enableval; do
3474     if test "X$pkg" = "X$p"; then
3475       enable_fast_install=yes
3476     fi
3477   done
3478   IFS="$ac_save_ifs"
3479   ;;
3480 esac
3481 else
3482   enable_fast_install=yes
3483 fi;
3484
3485 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3486 if test "${with_gnu_ld+set}" = set; then
3487   withval="$with_gnu_ld"
3488   test "$withval" = no || with_gnu_ld=yes
3489 else
3490   with_gnu_ld=no
3491 fi;
3492 ac_prog=ld
3493 if test "$GCC" = yes; then
3494   # Check if gcc -print-prog-name=ld gives a path.
3495   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3496 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3497   case $host in
3498   *-*-mingw*)
3499     # gcc leaves a trailing carriage return which upsets mingw
3500     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3501   *)
3502     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3503   esac
3504   case $ac_prog in
3505     # Accept absolute paths.
3506     [\\/]* | [A-Za-z]:[\\/]*)
3507       re_direlt='/[^/][^/]*/\.\./'
3508       # Canonicalize the path of ld
3509       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3510       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3511         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3512       done
3513       test -z "$LD" && LD="$ac_prog"
3514       ;;
3515   "")
3516     # If it fails, then pretend we aren't using GCC.
3517     ac_prog=ld
3518     ;;
3519   *)
3520     # If it is relative, then search for the first ld in PATH.
3521     with_gnu_ld=unknown
3522     ;;
3523   esac
3524 elif test "$with_gnu_ld" = yes; then
3525   echo "$as_me:$LINENO: checking for GNU ld" >&5
3526 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3527 else
3528   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3529 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3530 fi
3531 if test "${lt_cv_path_LD+set}" = set; then
3532   echo $ECHO_N "(cached) $ECHO_C" >&6
3533 else
3534   if test -z "$LD"; then
3535   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3536   for ac_dir in $PATH; do
3537     test -z "$ac_dir" && ac_dir=.
3538     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3539       lt_cv_path_LD="$ac_dir/$ac_prog"
3540       # Check to see if the program is GNU ld.  I'd rather use --version,
3541       # but apparently some GNU ld's only accept -v.
3542       # Break only if it was the GNU/non-GNU ld that we prefer.
3543       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3544         test "$with_gnu_ld" != no && break
3545       else
3546         test "$with_gnu_ld" != yes && break
3547       fi
3548     fi
3549   done
3550   IFS="$ac_save_ifs"
3551 else
3552   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3553 fi
3554 fi
3555
3556 LD="$lt_cv_path_LD"
3557 if test -n "$LD"; then
3558   echo "$as_me:$LINENO: result: $LD" >&5
3559 echo "${ECHO_T}$LD" >&6
3560 else
3561   echo "$as_me:$LINENO: result: no" >&5
3562 echo "${ECHO_T}no" >&6
3563 fi
3564 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3565 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3566    { (exit 1); exit 1; }; }
3567 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3568 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3569 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3570   echo $ECHO_N "(cached) $ECHO_C" >&6
3571 else
3572   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3573 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3574   lt_cv_prog_gnu_ld=yes
3575 else
3576   lt_cv_prog_gnu_ld=no
3577 fi
3578 fi
3579 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3580 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3581 with_gnu_ld=$lt_cv_prog_gnu_ld
3582
3583
3584 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3585 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3586 if test "${lt_cv_ld_reload_flag+set}" = set; then
3587   echo $ECHO_N "(cached) $ECHO_C" >&6
3588 else
3589   lt_cv_ld_reload_flag='-r'
3590 fi
3591 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3592 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3593 reload_flag=$lt_cv_ld_reload_flag
3594 test -n "$reload_flag" && reload_flag=" $reload_flag"
3595
3596 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3597 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3598 if test "${lt_cv_path_NM+set}" = set; then
3599   echo $ECHO_N "(cached) $ECHO_C" >&6
3600 else
3601   if test -n "$NM"; then
3602   # Let the user override the test.
3603   lt_cv_path_NM="$NM"
3604 else
3605   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3606   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3607     test -z "$ac_dir" && ac_dir=.
3608     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3609     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3610       # Check to see if the nm accepts a BSD-compat flag.
3611       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3612       #   nm: unknown option "B" ignored
3613       # Tru64's nm complains that /dev/null is an invalid object file
3614       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3615         lt_cv_path_NM="$tmp_nm -B"
3616         break
3617       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3618         lt_cv_path_NM="$tmp_nm -p"
3619         break
3620       else
3621         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3622         continue # so that we can try to find one that supports BSD flags
3623       fi
3624     fi
3625   done
3626   IFS="$ac_save_ifs"
3627   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3628 fi
3629 fi
3630
3631 NM="$lt_cv_path_NM"
3632 echo "$as_me:$LINENO: result: $NM" >&5
3633 echo "${ECHO_T}$NM" >&6
3634
3635 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3636 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3637 LN_S=$as_ln_s
3638 if test "$LN_S" = "ln -s"; then
3639   echo "$as_me:$LINENO: result: yes" >&5
3640 echo "${ECHO_T}yes" >&6
3641 else
3642   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3643 echo "${ECHO_T}no, using $LN_S" >&6
3644 fi
3645
3646 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3647 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3648 if test "${lt_cv_deplibs_check_method+set}" = set; then
3649   echo $ECHO_N "(cached) $ECHO_C" >&6
3650 else
3651   lt_cv_file_magic_cmd='$MAGIC_CMD'
3652 lt_cv_file_magic_test_file=
3653 lt_cv_deplibs_check_method='unknown'
3654 # Need to set the preceding variable on all platforms that support
3655 # interlibrary dependencies.
3656 # 'none' -- dependencies not supported.
3657 # `unknown' -- same as none, but documents that we really don't know.
3658 # 'pass_all' -- all dependencies passed with no checks.
3659 # 'test_compile' -- check by making test program.
3660 # 'file_magic [regex]' -- check by looking for files in library path
3661 # which responds to the $file_magic_cmd with a given egrep regex.
3662 # If you have `file' or equivalent on your system and you're not sure
3663 # whether `pass_all' will *always* work, you probably want this one.
3664
3665 case $host_os in
3666 aix*)
3667   lt_cv_deplibs_check_method=pass_all
3668   ;;
3669
3670 beos*)
3671   lt_cv_deplibs_check_method=pass_all
3672   ;;
3673
3674 bsdi4*)
3675   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3676   lt_cv_file_magic_cmd='/usr/bin/file -L'
3677   lt_cv_file_magic_test_file=/shlib/libc.so
3678   ;;
3679
3680 cygwin* | mingw* |pw32*)
3681   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3682   lt_cv_file_magic_cmd='$OBJDUMP -f'
3683   ;;
3684
3685 darwin* | rhapsody*)
3686   # this will be overwritten by pass_all, but leave it in just in case
3687   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3688   lt_cv_file_magic_cmd='/usr/bin/file -L'
3689   case "$host_os" in
3690   rhapsody* | darwin1.012)
3691     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3692     ;;
3693   *) # Darwin 1.3 on
3694     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3695     ;;
3696   esac
3697   lt_cv_deplibs_check_method=pass_all
3698   ;;
3699
3700 freebsd* )
3701   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3702     case $host_cpu in
3703     i*86 )
3704       # Not sure whether the presence of OpenBSD here was a mistake.
3705       # Let's accept both of them until this is cleared up.
3706       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3707       lt_cv_file_magic_cmd=/usr/bin/file
3708       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3709       ;;
3710     esac
3711   else
3712     lt_cv_deplibs_check_method=pass_all
3713   fi
3714   ;;
3715
3716 gnu*)
3717   lt_cv_deplibs_check_method=pass_all
3718   ;;
3719
3720 hpux10.20*|hpux11*)
3721   case $host_cpu in
3722   hppa*)
3723     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3724     lt_cv_file_magic_cmd=/usr/bin/file
3725     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3726     ;;
3727   ia64*)
3728     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3729     lt_cv_file_magic_cmd=/usr/bin/file
3730     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3731     ;;
3732   esac
3733   ;;
3734
3735 irix5* | irix6*)
3736   case $host_os in
3737   irix5*)
3738     # this will be overridden with pass_all, but let us keep it just in case
3739     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3740     ;;
3741   *)
3742     case $LD in
3743     *-32|*"-32 ") libmagic=32-bit;;
3744     *-n32|*"-n32 ") libmagic=N32;;
3745     *-64|*"-64 ") libmagic=64-bit;;
3746     *) libmagic=never-match;;
3747     esac
3748     # this will be overridden with pass_all, but let us keep it just in case
3749     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3750     ;;
3751   esac
3752   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3753   lt_cv_deplibs_check_method=pass_all
3754   ;;
3755
3756 # This must be Linux ELF.
3757 linux-gnu*)
3758   case $host_cpu in
3759   alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3760     lt_cv_deplibs_check_method=pass_all ;;
3761   *)
3762     # glibc up to 2.1.1 does not perform some relocations on ARM
3763     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3764   esac
3765   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3766   ;;
3767
3768 netbsd*)
3769   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3770     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3771   else
3772     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3773   fi
3774   ;;
3775
3776 newsos6)
3777   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3778   lt_cv_file_magic_cmd=/usr/bin/file
3779   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3780   ;;
3781
3782 osf3* | osf4* | osf5*)
3783   # this will be overridden with pass_all, but let us keep it just in case
3784   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3785   lt_cv_file_magic_test_file=/shlib/libc.so
3786   lt_cv_deplibs_check_method=pass_all
3787   ;;
3788
3789 sco3.2v5*)
3790   lt_cv_deplibs_check_method=pass_all
3791   ;;
3792
3793 solaris*)
3794   lt_cv_deplibs_check_method=pass_all
3795   lt_cv_file_magic_test_file=/lib/libc.so
3796   ;;
3797
3798 sysv5uw[78]* | sysv4*uw2*)
3799   lt_cv_deplibs_check_method=pass_all
3800   ;;
3801
3802 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3803   case $host_vendor in
3804   ncr)
3805     lt_cv_deplibs_check_method=pass_all
3806     ;;
3807   motorola)
3808     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]'
3809     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3810     ;;
3811   esac
3812   ;;
3813 esac
3814
3815 fi
3816 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3817 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3818 file_magic_cmd=$lt_cv_file_magic_cmd
3819 deplibs_check_method=$lt_cv_deplibs_check_method
3820
3821
3822
3823
3824
3825 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3826
3827 # Only perform the check for file, if the check method requires it
3828 case $deplibs_check_method in
3829 file_magic*)
3830   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3831     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3832 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3833 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3834   echo $ECHO_N "(cached) $ECHO_C" >&6
3835 else
3836   case $MAGIC_CMD in
3837   /*)
3838   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3839   ;;
3840   ?:/*)
3841   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3842   ;;
3843   *)
3844   ac_save_MAGIC_CMD="$MAGIC_CMD"
3845   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3846   ac_dummy="/usr/bin:$PATH"
3847   for ac_dir in $ac_dummy; do
3848     test -z "$ac_dir" && ac_dir=.
3849     if test -f $ac_dir/${ac_tool_prefix}file; then
3850       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3851       if test -n "$file_magic_test_file"; then
3852         case $deplibs_check_method in
3853         "file_magic "*)
3854           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3855           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3856           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3857             egrep "$file_magic_regex" > /dev/null; then
3858             :
3859           else
3860             cat <<EOF 1>&2
3861
3862 *** Warning: the command libtool uses to detect shared libraries,
3863 *** $file_magic_cmd, produces output that libtool cannot recognize.
3864 *** The result is that libtool may fail to recognize shared libraries
3865 *** as such.  This will affect the creation of libtool libraries that
3866 *** depend on shared libraries, but programs linked with such libtool
3867 *** libraries will work regardless of this problem.  Nevertheless, you
3868 *** may want to report the problem to your system manager and/or to
3869 *** bug-libtool@gnu.org
3870
3871 EOF
3872           fi ;;
3873         esac
3874       fi
3875       break
3876     fi
3877   done
3878   IFS="$ac_save_ifs"
3879   MAGIC_CMD="$ac_save_MAGIC_CMD"
3880   ;;
3881 esac
3882 fi
3883
3884 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3885 if test -n "$MAGIC_CMD"; then
3886   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3887 echo "${ECHO_T}$MAGIC_CMD" >&6
3888 else
3889   echo "$as_me:$LINENO: result: no" >&5
3890 echo "${ECHO_T}no" >&6
3891 fi
3892
3893 if test -z "$lt_cv_path_MAGIC_CMD"; then
3894   if test -n "$ac_tool_prefix"; then
3895     echo "$as_me:$LINENO: checking for file" >&5
3896 echo $ECHO_N "checking for file... $ECHO_C" >&6
3897 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3898   echo $ECHO_N "(cached) $ECHO_C" >&6
3899 else
3900   case $MAGIC_CMD in
3901   /*)
3902   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3903   ;;
3904   ?:/*)
3905   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3906   ;;
3907   *)
3908   ac_save_MAGIC_CMD="$MAGIC_CMD"
3909   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3910   ac_dummy="/usr/bin:$PATH"
3911   for ac_dir in $ac_dummy; do
3912     test -z "$ac_dir" && ac_dir=.
3913     if test -f $ac_dir/file; then
3914       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3915       if test -n "$file_magic_test_file"; then
3916         case $deplibs_check_method in
3917         "file_magic "*)
3918           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3919           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3920           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3921             egrep "$file_magic_regex" > /dev/null; then
3922             :
3923           else
3924             cat <<EOF 1>&2
3925
3926 *** Warning: the command libtool uses to detect shared libraries,
3927 *** $file_magic_cmd, produces output that libtool cannot recognize.
3928 *** The result is that libtool may fail to recognize shared libraries
3929 *** as such.  This will affect the creation of libtool libraries that
3930 *** depend on shared libraries, but programs linked with such libtool
3931 *** libraries will work regardless of this problem.  Nevertheless, you
3932 *** may want to report the problem to your system manager and/or to
3933 *** bug-libtool@gnu.org
3934
3935 EOF
3936           fi ;;
3937         esac
3938       fi
3939       break
3940     fi
3941   done
3942   IFS="$ac_save_ifs"
3943   MAGIC_CMD="$ac_save_MAGIC_CMD"
3944   ;;
3945 esac
3946 fi
3947
3948 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3949 if test -n "$MAGIC_CMD"; then
3950   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3951 echo "${ECHO_T}$MAGIC_CMD" >&6
3952 else
3953   echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6
3955 fi
3956
3957   else
3958     MAGIC_CMD=:
3959   fi
3960 fi
3961
3962   fi
3963   ;;
3964 esac
3965
3966 if test -n "$ac_tool_prefix"; then
3967   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3968 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3969 echo "$as_me:$LINENO: checking for $ac_word" >&5
3970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3971 if test "${ac_cv_prog_RANLIB+set}" = set; then
3972   echo $ECHO_N "(cached) $ECHO_C" >&6
3973 else
3974   if test -n "$RANLIB"; then
3975   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3976 else
3977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978 for as_dir in $PATH
3979 do
3980   IFS=$as_save_IFS
3981   test -z "$as_dir" && as_dir=.
3982   for ac_exec_ext in '' $ac_executable_extensions; do
3983   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3984     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3986     break 2
3987   fi
3988 done
3989 done
3990
3991 fi
3992 fi
3993 RANLIB=$ac_cv_prog_RANLIB
3994 if test -n "$RANLIB"; then
3995   echo "$as_me:$LINENO: result: $RANLIB" >&5
3996 echo "${ECHO_T}$RANLIB" >&6
3997 else
3998   echo "$as_me:$LINENO: result: no" >&5
3999 echo "${ECHO_T}no" >&6
4000 fi
4001
4002 fi
4003 if test -z "$ac_cv_prog_RANLIB"; then
4004   ac_ct_RANLIB=$RANLIB
4005   # Extract the first word of "ranlib", so it can be a program name with args.
4006 set dummy ranlib; ac_word=$2
4007 echo "$as_me:$LINENO: checking for $ac_word" >&5
4008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4009 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4010   echo $ECHO_N "(cached) $ECHO_C" >&6
4011 else
4012   if test -n "$ac_ct_RANLIB"; then
4013   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4014 else
4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 for as_dir in $PATH
4017 do
4018   IFS=$as_save_IFS
4019   test -z "$as_dir" && as_dir=.
4020   for ac_exec_ext in '' $ac_executable_extensions; do
4021   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4022     ac_cv_prog_ac_ct_RANLIB="ranlib"
4023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4024     break 2
4025   fi
4026 done
4027 done
4028
4029   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4030 fi
4031 fi
4032 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4033 if test -n "$ac_ct_RANLIB"; then
4034   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4035 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4036 else
4037   echo "$as_me:$LINENO: result: no" >&5
4038 echo "${ECHO_T}no" >&6
4039 fi
4040
4041   RANLIB=$ac_ct_RANLIB
4042 else
4043   RANLIB="$ac_cv_prog_RANLIB"
4044 fi
4045
4046 if test -n "$ac_tool_prefix"; then
4047   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4048 set dummy ${ac_tool_prefix}strip; ac_word=$2
4049 echo "$as_me:$LINENO: checking for $ac_word" >&5
4050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4051 if test "${ac_cv_prog_STRIP+set}" = set; then
4052   echo $ECHO_N "(cached) $ECHO_C" >&6
4053 else
4054   if test -n "$STRIP"; then
4055   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4056 else
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 for as_dir in $PATH
4059 do
4060   IFS=$as_save_IFS
4061   test -z "$as_dir" && as_dir=.
4062   for ac_exec_ext in '' $ac_executable_extensions; do
4063   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4064     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4066     break 2
4067   fi
4068 done
4069 done
4070
4071 fi
4072 fi
4073 STRIP=$ac_cv_prog_STRIP
4074 if test -n "$STRIP"; then
4075   echo "$as_me:$LINENO: result: $STRIP" >&5
4076 echo "${ECHO_T}$STRIP" >&6
4077 else
4078   echo "$as_me:$LINENO: result: no" >&5
4079 echo "${ECHO_T}no" >&6
4080 fi
4081
4082 fi
4083 if test -z "$ac_cv_prog_STRIP"; then
4084   ac_ct_STRIP=$STRIP
4085   # Extract the first word of "strip", so it can be a program name with args.
4086 set dummy strip; ac_word=$2
4087 echo "$as_me:$LINENO: checking for $ac_word" >&5
4088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4089 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4090   echo $ECHO_N "(cached) $ECHO_C" >&6
4091 else
4092   if test -n "$ac_ct_STRIP"; then
4093   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4094 else
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 for as_dir in $PATH
4097 do
4098   IFS=$as_save_IFS
4099   test -z "$as_dir" && as_dir=.
4100   for ac_exec_ext in '' $ac_executable_extensions; do
4101   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4102     ac_cv_prog_ac_ct_STRIP="strip"
4103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4104     break 2
4105   fi
4106 done
4107 done
4108
4109   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4110 fi
4111 fi
4112 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4113 if test -n "$ac_ct_STRIP"; then
4114   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4115 echo "${ECHO_T}$ac_ct_STRIP" >&6
4116 else
4117   echo "$as_me:$LINENO: result: no" >&5
4118 echo "${ECHO_T}no" >&6
4119 fi
4120
4121   STRIP=$ac_ct_STRIP
4122 else
4123   STRIP="$ac_cv_prog_STRIP"
4124 fi
4125
4126
4127 # Check for any special flags to pass to ltconfig.
4128 libtool_flags="--cache-file=$cache_file"
4129 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4130 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4131 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4132 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4133 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4134
4135
4136 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4137 if test "${enable_libtool_lock+set}" = set; then
4138   enableval="$enable_libtool_lock"
4139
4140 fi;
4141 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4142 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4143
4144
4145 # Check whether --with-pic or --without-pic was given.
4146 if test "${with_pic+set}" = set; then
4147   withval="$with_pic"
4148   pic_mode="$withval"
4149 else
4150   pic_mode=default
4151 fi;
4152 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4153 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4154
4155 # Some flags need to be propagated to the compiler or linker for good
4156 # libtool support.
4157 case $host in
4158 *-*-irix6*)
4159   # Find out which ABI we are using.
4160   echo '#line 4160 "configure"' > conftest.$ac_ext
4161   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4162   (eval $ac_compile) 2>&5
4163   ac_status=$?
4164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165   (exit $ac_status); }; then
4166    if test "$lt_cv_prog_gnu_ld" = yes; then
4167     case `/usr/bin/file conftest.$ac_objext` in
4168     *32-bit*)
4169       LD="${LD-ld} -melf32bsmip"
4170       ;;
4171     *N32*)
4172       LD="${LD-ld} -melf32bmipn32"
4173       ;;
4174     *64-bit*)
4175       LD="${LD-ld} -melf64bmip"
4176       ;;
4177     esac
4178    else
4179     case `/usr/bin/file conftest.$ac_objext` in
4180     *32-bit*)
4181       LD="${LD-ld} -32"
4182       ;;
4183     *N32*)
4184       LD="${LD-ld} -n32"
4185       ;;
4186     *64-bit*)
4187       LD="${LD-ld} -64"
4188       ;;
4189     esac
4190    fi
4191   fi
4192   rm -rf conftest*
4193   ;;
4194
4195 ia64-*-hpux*)
4196   # Find out which ABI we are using.
4197   echo 'int i;' > conftest.$ac_ext
4198   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4199   (eval $ac_compile) 2>&5
4200   ac_status=$?
4201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202   (exit $ac_status); }; then
4203     case "`/usr/bin/file conftest.o`" in
4204     *ELF-32*)
4205       HPUX_IA64_MODE="32"
4206       ;;
4207     *ELF-64*)
4208       HPUX_IA64_MODE="64"
4209       ;;
4210     esac
4211   fi
4212   rm -rf conftest*
4213   ;;
4214
4215 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4216   # Find out which ABI we are using.
4217   echo 'int i;' > conftest.$ac_ext
4218   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4219   (eval $ac_compile) 2>&5
4220   ac_status=$?
4221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222   (exit $ac_status); }; then
4223     case "`/usr/bin/file conftest.o`" in
4224     *32-bit*)
4225       case $host in
4226         x86_64-*linux*)
4227           LD="${LD-ld} -m elf_i386"
4228           ;;
4229         ppc64-*linux*|powerpc64-*linux*)
4230           LD="${LD-ld} -m elf32ppclinux"
4231           ;;
4232         s390x-*linux*)
4233           LD="${LD-ld} -m elf_s390"
4234           ;;
4235         sparc64-*linux*)
4236           LD="${LD-ld} -m elf32_sparc"
4237           ;;
4238       esac
4239       ;;
4240     *64-bit*)
4241       case $host in
4242         x86_64-*linux*)
4243           LD="${LD-ld} -m elf_x86_64"
4244           ;;
4245         ppc*-*linux*|powerpc*-*linux*)
4246           LD="${LD-ld} -m elf64ppc"
4247           ;;
4248         s390*-*linux*)
4249           LD="${LD-ld} -m elf64_s390"
4250           ;;
4251         sparc*-*linux*)
4252           LD="${LD-ld} -m elf64_sparc"
4253           ;;
4254       esac
4255       ;;
4256     esac
4257   fi
4258   rm -rf conftest*
4259   ;;
4260
4261 *-*-sco3.2v5*)
4262   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4263   SAVE_CFLAGS="$CFLAGS"
4264   CFLAGS="$CFLAGS -belf"
4265   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4266 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4267 if test "${lt_cv_cc_needs_belf+set}" = set; then
4268   echo $ECHO_N "(cached) $ECHO_C" >&6
4269 else
4270
4271
4272      ac_ext=c
4273 ac_cpp='$CPP $CPPFLAGS'
4274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4277
4278      if test x$gcc_no_link = xyes; then
4279   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4280 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4281    { (exit 1); exit 1; }; }
4282 fi
4283 cat >conftest.$ac_ext <<_ACEOF
4284 #line $LINENO "configure"
4285 /* confdefs.h.  */
4286 _ACEOF
4287 cat confdefs.h >>conftest.$ac_ext
4288 cat >>conftest.$ac_ext <<_ACEOF
4289 /* end confdefs.h.  */
4290
4291 int
4292 main ()
4293 {
4294
4295   ;
4296   return 0;
4297 }
4298 _ACEOF
4299 rm -f conftest.$ac_objext conftest$ac_exeext
4300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4301   (eval $ac_link) 2>&5
4302   ac_status=$?
4303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304   (exit $ac_status); } &&
4305          { ac_try='test -s conftest$ac_exeext'
4306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307   (eval $ac_try) 2>&5
4308   ac_status=$?
4309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310   (exit $ac_status); }; }; then
4311   lt_cv_cc_needs_belf=yes
4312 else
4313   echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4315
4316 lt_cv_cc_needs_belf=no
4317 fi
4318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4319      ac_ext=c
4320 ac_cpp='$CPP $CPPFLAGS'
4321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4324
4325 fi
4326 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4327 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4328   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4329     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4330     CFLAGS="$SAVE_CFLAGS"
4331   fi
4332   ;;
4333
4334
4335 esac
4336
4337
4338 # Save cache, so that ltconfig can load it
4339 cat >confcache <<\_ACEOF
4340 # This file is a shell script that caches the results of configure
4341 # tests run on this system so they can be shared between configure
4342 # scripts and configure runs, see configure's option --config-cache.
4343 # It is not useful on other systems.  If it contains results you don't
4344 # want to keep, you may remove or edit it.
4345 #
4346 # config.status only pays attention to the cache file if you give it
4347 # the --recheck option to rerun configure.
4348 #
4349 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4350 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4351 # following values.
4352
4353 _ACEOF
4354
4355 # The following way of writing the cache mishandles newlines in values,
4356 # but we know of no workaround that is simple, portable, and efficient.
4357 # So, don't put newlines in cache variables' values.
4358 # Ultrix sh set writes to stderr and can't be redirected directly,
4359 # and sets the high bit in the cache file unless we assign to the vars.
4360 {
4361   (set) 2>&1 |
4362     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4363     *ac_space=\ *)
4364       # `set' does not quote correctly, so add quotes (double-quote
4365       # substitution turns \\\\ into \\, and sed turns \\ into \).
4366       sed -n \
4367         "s/'/'\\\\''/g;
4368           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4369       ;;
4370     *)
4371       # `set' quotes correctly as required by POSIX, so do not add quotes.
4372       sed -n \
4373         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4374       ;;
4375     esac;
4376 } |
4377   sed '
4378      t clear
4379      : clear
4380      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4381      t end
4382      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4383      : end' >>confcache
4384 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4385   if test -w $cache_file; then
4386     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4387     cat confcache >$cache_file
4388   else
4389     echo "not updating unwritable cache $cache_file"
4390   fi
4391 fi
4392 rm -f confcache
4393
4394 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4395 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4396 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4397 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4398 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4399 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4400 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4401 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4402 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4403 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4404 echo "$as_me: error: libtool configure failed" >&2;}
4405    { (exit 1); exit 1; }; }
4406
4407 # Reload cache, that may have been modified by ltconfig
4408 if test -r "$cache_file"; then
4409   # Some versions of bash will fail to source /dev/null (special
4410   # files actually), so we avoid doing that.
4411   if test -f "$cache_file"; then
4412     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4413 echo "$as_me: loading cache $cache_file" >&6;}
4414     case $cache_file in
4415       [\\/]* | ?:[\\/]* ) . $cache_file;;
4416       *)                      . ./$cache_file;;
4417     esac
4418   fi
4419 else
4420   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4421 echo "$as_me: creating cache $cache_file" >&6;}
4422   >$cache_file
4423 fi
4424
4425
4426 # This can be used to rebuild libtool when needed
4427 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4428
4429 # Always use our own libtool.
4430 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4431
4432 # Redirect the config.log output again, so that the ltconfig log is not
4433 # clobbered by the next message.
4434 exec 5>>./config.log
4435
4436 ac_ext=cc
4437 ac_cpp='$CXXCPP $CPPFLAGS'
4438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4441 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4442 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4443 if test -z "$CXXCPP"; then
4444   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4445   echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
4447       # Double quotes because CXXCPP needs to be expanded
4448     for CXXCPP in "$CXX -E" "/lib/cpp"
4449     do
4450       ac_preproc_ok=false
4451 for ac_cxx_preproc_warn_flag in '' yes
4452 do
4453   # Use a header file that comes with gcc, so configuring glibc
4454   # with a fresh cross-compiler works.
4455   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4456   # <limits.h> exists even on freestanding compilers.
4457   # On the NeXT, cc -E runs the code through the compiler's parser,
4458   # not just through cpp. "Syntax error" is here to catch this case.
4459   cat >conftest.$ac_ext <<_ACEOF
4460 #line $LINENO "configure"
4461 /* confdefs.h.  */
4462 _ACEOF
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h.  */
4466 #ifdef __STDC__
4467 # include <limits.h>
4468 #else
4469 # include <assert.h>
4470 #endif
4471                      Syntax error
4472 _ACEOF
4473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4474   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4475   ac_status=$?
4476   grep -v '^ *+' conftest.er1 >conftest.err
4477   rm -f conftest.er1
4478   cat conftest.err >&5
4479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480   (exit $ac_status); } >/dev/null; then
4481   if test -s conftest.err; then
4482     ac_cpp_err=$ac_cxx_preproc_warn_flag
4483   else
4484     ac_cpp_err=
4485   fi
4486 else
4487   ac_cpp_err=yes
4488 fi
4489 if test -z "$ac_cpp_err"; then
4490   :
4491 else
4492   echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4494
4495   # Broken: fails on valid input.
4496 continue
4497 fi
4498 rm -f conftest.err conftest.$ac_ext
4499
4500   # OK, works on sane cases.  Now check whether non-existent headers
4501   # can be detected and how.
4502   cat >conftest.$ac_ext <<_ACEOF
4503 #line $LINENO "configure"
4504 /* confdefs.h.  */
4505 _ACEOF
4506 cat confdefs.h >>conftest.$ac_ext
4507 cat >>conftest.$ac_ext <<_ACEOF
4508 /* end confdefs.h.  */
4509 #include <ac_nonexistent.h>
4510 _ACEOF
4511 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4512   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4513   ac_status=$?
4514   grep -v '^ *+' conftest.er1 >conftest.err
4515   rm -f conftest.er1
4516   cat conftest.err >&5
4517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518   (exit $ac_status); } >/dev/null; then
4519   if test -s conftest.err; then
4520     ac_cpp_err=$ac_cxx_preproc_warn_flag
4521   else
4522     ac_cpp_err=
4523   fi
4524 else
4525   ac_cpp_err=yes
4526 fi
4527 if test -z "$ac_cpp_err"; then
4528   # Broken: success on invalid input.
4529 continue
4530 else
4531   echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4533
4534   # Passes both tests.
4535 ac_preproc_ok=:
4536 break
4537 fi
4538 rm -f conftest.err conftest.$ac_ext
4539
4540 done
4541 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4542 rm -f conftest.err conftest.$ac_ext
4543 if $ac_preproc_ok; then
4544   break
4545 fi
4546
4547     done
4548     ac_cv_prog_CXXCPP=$CXXCPP
4549
4550 fi
4551   CXXCPP=$ac_cv_prog_CXXCPP
4552 else
4553   ac_cv_prog_CXXCPP=$CXXCPP
4554 fi
4555 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4556 echo "${ECHO_T}$CXXCPP" >&6
4557 ac_preproc_ok=false
4558 for ac_cxx_preproc_warn_flag in '' yes
4559 do
4560   # Use a header file that comes with gcc, so configuring glibc
4561   # with a fresh cross-compiler works.
4562   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4563   # <limits.h> exists even on freestanding compilers.
4564   # On the NeXT, cc -E runs the code through the compiler's parser,
4565   # not just through cpp. "Syntax error" is here to catch this case.
4566   cat >conftest.$ac_ext <<_ACEOF
4567 #line $LINENO "configure"
4568 /* confdefs.h.  */
4569 _ACEOF
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h.  */
4573 #ifdef __STDC__
4574 # include <limits.h>
4575 #else
4576 # include <assert.h>
4577 #endif
4578                      Syntax error
4579 _ACEOF
4580 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4581   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4582   ac_status=$?
4583   grep -v '^ *+' conftest.er1 >conftest.err
4584   rm -f conftest.er1
4585   cat conftest.err >&5
4586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587   (exit $ac_status); } >/dev/null; then
4588   if test -s conftest.err; then
4589     ac_cpp_err=$ac_cxx_preproc_warn_flag
4590   else
4591     ac_cpp_err=
4592   fi
4593 else
4594   ac_cpp_err=yes
4595 fi
4596 if test -z "$ac_cpp_err"; then
4597   :
4598 else
4599   echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4601
4602   # Broken: fails on valid input.
4603 continue
4604 fi
4605 rm -f conftest.err conftest.$ac_ext
4606
4607   # OK, works on sane cases.  Now check whether non-existent headers
4608   # can be detected and how.
4609   cat >conftest.$ac_ext <<_ACEOF
4610 #line $LINENO "configure"
4611 /* confdefs.h.  */
4612 _ACEOF
4613 cat confdefs.h >>conftest.$ac_ext
4614 cat >>conftest.$ac_ext <<_ACEOF
4615 /* end confdefs.h.  */
4616 #include <ac_nonexistent.h>
4617 _ACEOF
4618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4619   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4620   ac_status=$?
4621   grep -v '^ *+' conftest.er1 >conftest.err
4622   rm -f conftest.er1
4623   cat conftest.err >&5
4624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625   (exit $ac_status); } >/dev/null; then
4626   if test -s conftest.err; then
4627     ac_cpp_err=$ac_cxx_preproc_warn_flag
4628   else
4629     ac_cpp_err=
4630   fi
4631 else
4632   ac_cpp_err=yes
4633 fi
4634 if test -z "$ac_cpp_err"; then
4635   # Broken: success on invalid input.
4636 continue
4637 else
4638   echo "$as_me: failed program was:" >&5
4639 sed 's/^/| /' conftest.$ac_ext >&5
4640
4641   # Passes both tests.
4642 ac_preproc_ok=:
4643 break
4644 fi
4645 rm -f conftest.err conftest.$ac_ext
4646
4647 done
4648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4649 rm -f conftest.err conftest.$ac_ext
4650 if $ac_preproc_ok; then
4651   :
4652 else
4653   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4654 See \`config.log' for more details." >&5
4655 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4656 See \`config.log' for more details." >&2;}
4657    { (exit 1); exit 1; }; }
4658 fi
4659
4660 ac_ext=c
4661 ac_cpp='$CPP $CPPFLAGS'
4662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4665
4666
4667
4668 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
4669 lt_save_CC="$CC"
4670 lt_save_CFLAGS="$CFLAGS"
4671 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
4672 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4673 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4674 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4675 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4676 deplibs_check_method="$deplibs_check_method" \
4677 file_magic_cmd="$file_magic_cmd" \
4678 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4679 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
4680 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
4681 echo "$as_me: error: libtool tag configuration failed" >&2;}
4682    { (exit 1); exit 1; }; }
4683 CC="$lt_save_CC"
4684 CFLAGS="$lt_save_CFLAGS"
4685
4686 # Redirect the config.log output again, so that the ltconfig log is not
4687 # clobbered by the next message.
4688 exec 5>>./config.log
4689
4690
4691
4692
4693
4694
4695
4696
4697 # Check whether --with-target-subdir or --without-target-subdir was given.
4698 if test "${with_target_subdir+set}" = set; then
4699   withval="$with_target_subdir"
4700
4701 fi;
4702
4703 # Check whether --with-cross-host or --without-cross-host was given.
4704 if test "${with_cross_host+set}" = set; then
4705   withval="$with_cross_host"
4706
4707 fi;
4708
4709 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
4710 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
4711 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4712 if test -z "$THREADS"; then
4713    THREADS=no
4714 fi
4715 echo "$as_me:$LINENO: result: $THREADS" >&5
4716 echo "${ECHO_T}$THREADS" >&6
4717
4718 # Check whether --enable-parallel-mark or --disable-parallel-mark was given.
4719 if test "${enable_parallel_mark+set}" = set; then
4720   enableval="$enable_parallel_mark"
4721   case "$THREADS" in
4722       no | none | single)
4723         { { echo "$as_me:$LINENO: error: Parallel mark requires --enable-threads=x spec" >&5
4724 echo "$as_me: error: Parallel mark requires --enable-threads=x spec" >&2;}
4725    { (exit 1); exit 1; }; }
4726         ;;
4727     esac
4728
4729 fi;
4730
4731 INCLUDES="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
4732 THREADLIBS=
4733 case "$THREADS" in
4734  no | none | single)
4735     THREADS=none
4736     ;;
4737  posix | pthreads)
4738     THREADS=posix
4739     THREADLIBS=-lpthread
4740     case "$host" in
4741      x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
4742         cat >>confdefs.h <<\_ACEOF
4743 #define GC_LINUX_THREADS 1
4744 _ACEOF
4745
4746         cat >>confdefs.h <<\_ACEOF
4747 #define _REENTRANT 1
4748 _ACEOF
4749
4750         if test "${enable_parallel_mark}" = yes; then
4751           cat >>confdefs.h <<\_ACEOF
4752 #define PARALLEL_MARK 1
4753 _ACEOF
4754
4755         fi
4756         cat >>confdefs.h <<\_ACEOF
4757 #define THREAD_LOCAL_ALLOC 1
4758 _ACEOF
4759
4760         ;;
4761      *-*-linux*)
4762         cat >>confdefs.h <<\_ACEOF
4763 #define GC_LINUX_THREADS 1
4764 _ACEOF
4765
4766         cat >>confdefs.h <<\_ACEOF
4767 #define _REENTRANT 1
4768 _ACEOF
4769
4770         ;;
4771      *-*-aix*)
4772         cat >>confdefs.h <<\_ACEOF
4773 #define GC_AIX_THREADS 1
4774 _ACEOF
4775
4776         cat >>confdefs.h <<\_ACEOF
4777 #define _REENTRANT 1
4778 _ACEOF
4779
4780         ;;
4781      *-*-hpux*)
4782         { echo "$as_me:$LINENO: WARNING: \"Only HP/UX 11 threads are supported.\"" >&5
4783 echo "$as_me: WARNING: \"Only HP/UX 11 threads are supported.\"" >&2;}
4784         cat >>confdefs.h <<\_ACEOF
4785 #define GC_HPUX_THREADS 1
4786 _ACEOF
4787
4788         cat >>confdefs.h <<\_ACEOF
4789 #define _POSIX_C_SOURCE 199506L
4790 _ACEOF
4791
4792         if test "${enable_parallel_mark}" = yes; then
4793           cat >>confdefs.h <<\_ACEOF
4794 #define PARALLEL_MARK 1
4795 _ACEOF
4796
4797         fi
4798         cat >>confdefs.h <<\_ACEOF
4799 #define THREAD_LOCAL_ALLOC 1
4800 _ACEOF
4801
4802         THREADLIBS="-lpthread -lrt"
4803         ;;
4804      *-*-freebsd*)
4805         { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
4806 echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
4807         cat >>confdefs.h <<\_ACEOF
4808 #define GC_FREEBSD_THREADS 1
4809 _ACEOF
4810
4811         INCLUDES="$INCLUDES -pthread"
4812         THREADLIBS=-pthread
4813         ;;
4814      *-*-solaris*)
4815         cat >>confdefs.h <<\_ACEOF
4816 #define GC_SOLARIS_THREADS 1
4817 _ACEOF
4818
4819         cat >>confdefs.h <<\_ACEOF
4820 #define GC_SOLARIS_PTHREADS 1
4821 _ACEOF
4822
4823         ;;
4824      *-*-irix*)
4825         cat >>confdefs.h <<\_ACEOF
4826 #define GC_IRIX_THREADS 1
4827 _ACEOF
4828
4829         ;;
4830      *-*-cygwin*)
4831         cat >>confdefs.h <<\_ACEOF
4832 #define GC_WIN32_THREADS 1
4833 _ACEOF
4834
4835         ;;
4836      *-*-darwin*)
4837         cat >>confdefs.h <<\_ACEOF
4838 #define GC_DARWIN_THREADS 1
4839 _ACEOF
4840
4841         cat >>confdefs.h <<\_ACEOF
4842 #define THREAD_LOCAL_ALLOC 1
4843 _ACEOF
4844
4845         if test "${enable_parallel_mark}" = yes; then
4846           cat >>confdefs.h <<\_ACEOF
4847 #define PARALLEL_MARK 1
4848 _ACEOF
4849
4850         fi
4851         ;;
4852      *-*-osf*)
4853         cat >>confdefs.h <<\_ACEOF
4854 #define GC_OSF1_THREADS 1
4855 _ACEOF
4856
4857         if test "${enable_parallel_mark}" = yes; then
4858           cat >>confdefs.h <<\_ACEOF
4859 #define PARALLEL_MARK 1
4860 _ACEOF
4861
4862           cat >>confdefs.h <<\_ACEOF
4863 #define THREAD_LOCAL_ALLOC 1
4864 _ACEOF
4865
4866           # May want to enable it in other cases, too.
4867           # Measurements havent yet been done.
4868         fi
4869         INCLUDES="$INCLUDES -pthread"
4870         THREADLIBS="-lpthread -lrt"
4871         ;;
4872     esac
4873     ;;
4874  win32)
4875     cat >>confdefs.h <<\_ACEOF
4876 #define GC_WIN32_THREADS 1
4877 _ACEOF
4878
4879             ;;
4880  dgux386)
4881     THREADS=dgux386
4882 echo "$as_me:$LINENO: result: $THREADLIBS" >&5
4883 echo "${ECHO_T}$THREADLIBS" >&6
4884     # Use pthread GCC  switch
4885     THREADLIBS=-pthread
4886     if test "${enable_parallel_mark}" = yes; then
4887         cat >>confdefs.h <<\_ACEOF
4888 #define PARALLEL_MARK 1
4889 _ACEOF
4890
4891     fi
4892     cat >>confdefs.h <<\_ACEOF
4893 #define THREAD_LOCAL_ALLOC 1
4894 _ACEOF
4895
4896     cat >>confdefs.h <<\_ACEOF
4897 #define GC_DGUX386_THREADS 1
4898 _ACEOF
4899
4900     cat >>confdefs.h <<\_ACEOF
4901 #define DGUX_THREADS 1
4902 _ACEOF
4903
4904     # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
4905     INCLUDES="-pthread $INCLUDES"
4906     ;;
4907  aix)
4908     THREADS=posix
4909     THREADLIBS=-lpthread
4910     cat >>confdefs.h <<\_ACEOF
4911 #define GC_AIX_THREADS 1
4912 _ACEOF
4913
4914     cat >>confdefs.h <<\_ACEOF
4915 #define _REENTRANT 1
4916 _ACEOF
4917
4918     ;;
4919  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
4920     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
4921 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
4922    { (exit 1); exit 1; }; }
4923     ;;
4924  *)
4925     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
4926 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
4927    { (exit 1); exit 1; }; }
4928     ;;
4929 esac
4930
4931
4932 case "$host" in
4933    powerpc-*-darwin*)
4934       powerpc_darwin=true
4935       ;;
4936 esac
4937
4938
4939 if test x$powerpc_darwin = xtrue; then
4940   POWERPC_DARWIN_TRUE=
4941   POWERPC_DARWIN_FALSE='#'
4942 else
4943   POWERPC_DARWIN_TRUE='#'
4944   POWERPC_DARWIN_FALSE=
4945 fi
4946
4947 # We never want libdl on darwin. It is a fake libdl that just ends up making
4948 # dyld calls anyway
4949 case "$host" in
4950   *-*-darwin*) ;;
4951   *)
4952     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4953 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4954 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4955   echo $ECHO_N "(cached) $ECHO_C" >&6
4956 else
4957   ac_check_lib_save_LIBS=$LIBS
4958 LIBS="-ldl  $LIBS"
4959 if test x$gcc_no_link = xyes; then
4960   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4961 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4962    { (exit 1); exit 1; }; }
4963 fi
4964 cat >conftest.$ac_ext <<_ACEOF
4965 #line $LINENO "configure"
4966 /* confdefs.h.  */
4967 _ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h.  */
4971
4972 /* Override any gcc2 internal prototype to avoid an error.  */
4973 #ifdef __cplusplus
4974 extern "C"
4975 #endif
4976 /* We use char because int might match the return type of a gcc2
4977    builtin and then its argument prototype would still apply.  */
4978 char dlopen ();
4979 int
4980 main ()
4981 {
4982 dlopen ();
4983   ;
4984   return 0;
4985 }
4986 _ACEOF
4987 rm -f conftest.$ac_objext conftest$ac_exeext
4988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4989   (eval $ac_link) 2>&5
4990   ac_status=$?
4991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992   (exit $ac_status); } &&
4993          { ac_try='test -s conftest$ac_exeext'
4994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995   (eval $ac_try) 2>&5
4996   ac_status=$?
4997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998   (exit $ac_status); }; }; then
4999   ac_cv_lib_dl_dlopen=yes
5000 else
5001   echo "$as_me: failed program was:" >&5
5002 sed 's/^/| /' conftest.$ac_ext >&5
5003
5004 ac_cv_lib_dl_dlopen=no
5005 fi
5006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5007 LIBS=$ac_check_lib_save_LIBS
5008 fi
5009 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5010 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5011 if test $ac_cv_lib_dl_dlopen = yes; then
5012   EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
5013 fi
5014
5015     ;;
5016 esac
5017
5018
5019
5020 target_all=libgcjgc.la
5021
5022
5023
5024 TARGET_ECOS="no"
5025
5026 # Check whether --with-ecos or --without-ecos was given.
5027 if test "${with_ecos+set}" = set; then
5028   withval="$with_ecos"
5029   TARGET_ECOS="$with_ecos"
5030
5031 fi;
5032
5033 addobjs=
5034 addlibs=
5035 addincludes=
5036 addtests=
5037 CXXINCLUDES=
5038 case "$TARGET_ECOS" in
5039    no)
5040       ;;
5041    *)
5042       cat >>confdefs.h <<\_ACEOF
5043 #define ECOS 1
5044 _ACEOF
5045
5046       CXXINCLUDES="-I${TARGET_ECOS}/include"
5047       addobjs="$addobjs ecos.lo"
5048       ;;
5049 esac
5050
5051 if test "${enable_cplusplus}" = yes; then
5052       addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
5053       addtests="$addtests test_cpp"
5054 fi
5055
5056
5057
5058 if test "${enable_cplusplus}" = yes; then
5059   CPLUSPLUS_TRUE=
5060   CPLUSPLUS_FALSE='#'
5061 else
5062   CPLUSPLUS_TRUE='#'
5063   CPLUSPLUS_FALSE=
5064 fi
5065
5066
5067
5068
5069
5070
5071 # Configuration of shared libraries
5072 #
5073 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
5074 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5075 # Check whether --enable-shared or --disable-shared was given.
5076 if test "${enable_shared+set}" = set; then
5077   enableval="$enable_shared"
5078   p=${PACKAGE-default}
5079 case $enableval in
5080 yes) enable_shared=yes ;;
5081 no) enable_shared=no ;;
5082 *)
5083   enable_shared=no
5084   # Look at the argument we got.  We use all the common list separators.
5085   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5086   for pkg in $enableval; do
5087     if test "X$pkg" = "X$p"; then
5088       enable_shared=yes
5089     fi
5090   done
5091   IFS="$ac_save_ifs"
5092   ;;
5093 esac
5094 else
5095   enable_shared=yes
5096 fi;
5097
5098 case "$host" in
5099  alpha-*-openbsd*)
5100      enable_shared=no
5101      echo "$as_me:$LINENO: result: no" >&5
5102 echo "${ECHO_T}no" >&6
5103      ;;
5104  *)
5105      echo "$as_me:$LINENO: result: yes" >&5
5106 echo "${ECHO_T}yes" >&6
5107      ;;
5108 esac
5109
5110 # Configuration of machine-dependent code
5111 #
5112 # We don't set NO_EXECUTE_PERMISSION by default because gcj (and
5113 # anything else that creates trampolines in gc-allocated memory)
5114 # always needs exec permission.  The exceptions to this are IA-64 and
5115 # some variations of Power PC, where trampolines don't contain
5116 # executable code.
5117 #
5118 echo "$as_me:$LINENO: checking which machine-dependent code should be used" >&5
5119 echo $ECHO_N "checking which machine-dependent code should be used... $ECHO_C" >&6
5120 machdep=
5121 case "$host" in
5122  alpha*-*-openbsd*)
5123     machdep="alpha_mach_dep.lo"
5124     if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
5125        { echo "$as_me:$LINENO: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
5126 echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
5127     fi
5128     ;;
5129  alpha*-*-linux*)
5130     machdep="alpha_mach_dep.lo"
5131     ;;
5132  i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
5133     cat >>confdefs.h <<\_ACEOF
5134 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
5135 _ACEOF
5136
5137     ;;
5138  mipstx39-*-elf*)
5139     machdep="mips_ultrix_mach_dep.lo"
5140     cat >>confdefs.h <<\_ACEOF
5141 #define STACKBASE __stackbase
5142 _ACEOF
5143
5144     cat >>confdefs.h <<\_ACEOF
5145 #define DATASTART_IS_ETEXT 1
5146 _ACEOF
5147
5148     ;;
5149  mips-dec-ultrix*)
5150     machdep="mips_ultrix_mach-dep.lo"
5151     ;;
5152  mips-nec-sysv*|mips-unknown-sysv*)
5153     ;;
5154  mips*-*-linux*)
5155     ;;
5156  mips-*-*)
5157     machdep="mips_sgi_mach_dep.lo"
5158     ;;
5159  sparc-*-netbsd*)
5160     machdep="sparc_netbsd_mach_dep.lo"
5161     ;;
5162  sparc-sun-solaris2.3)
5163     machdep="sparc_mach_dep.lo"
5164     cat >>confdefs.h <<\_ACEOF
5165 #define SUNOS53_SHARED_LIB 1
5166 _ACEOF
5167
5168     ;;
5169  sparc-sun-solaris2.*)
5170     machdep="sparc_mach_dep.lo"
5171     ;;
5172  ia64-*-*)
5173     cat >>confdefs.h <<\_ACEOF
5174 #define NO_EXECUTE_PERMISSION 1
5175 _ACEOF
5176
5177     machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
5178     ;;
5179 esac
5180 if test x"$machdep" = x; then
5181 echo "$as_me:$LINENO: result: $machdep" >&5
5182 echo "${ECHO_T}$machdep" >&6
5183    machdep="mach_dep.lo"
5184 fi
5185 addobjs="$addobjs $machdep"
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197 #
5198 # Check for AViiON Machines running DGUX
5199 #
5200 echo "$as_me:$LINENO: checking if host is AViiON running DGUX" >&5
5201 echo $ECHO_N "checking if host is AViiON running DGUX... $ECHO_C" >&6
5202 ac_is_dgux=no
5203 ac_ext=c
5204 ac_cpp='$CPP $CPPFLAGS'
5205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5208 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5209 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5210 # On Suns, sometimes $CPP names a directory.
5211 if test -n "$CPP" && test -d "$CPP"; then
5212   CPP=
5213 fi
5214 if test -z "$CPP"; then
5215   if test "${ac_cv_prog_CPP+set}" = set; then
5216   echo $ECHO_N "(cached) $ECHO_C" >&6
5217 else
5218       # Double quotes because CPP needs to be expanded
5219     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5220     do
5221       ac_preproc_ok=false
5222 for ac_c_preproc_warn_flag in '' yes
5223 do
5224   # Use a header file that comes with gcc, so configuring glibc
5225   # with a fresh cross-compiler works.
5226   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5227   # <limits.h> exists even on freestanding compilers.
5228   # On the NeXT, cc -E runs the code through the compiler's parser,
5229   # not just through cpp. "Syntax error" is here to catch this case.
5230   cat >conftest.$ac_ext <<_ACEOF
5231 #line $LINENO "configure"
5232 /* confdefs.h.  */
5233 _ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h.  */
5237 #ifdef __STDC__
5238 # include <limits.h>
5239 #else
5240 # include <assert.h>
5241 #endif
5242                      Syntax error
5243 _ACEOF
5244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5245   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5246   ac_status=$?
5247   grep -v '^ *+' conftest.er1 >conftest.err
5248   rm -f conftest.er1
5249   cat conftest.err >&5
5250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251   (exit $ac_status); } >/dev/null; then
5252   if test -s conftest.err; then
5253     ac_cpp_err=$ac_c_preproc_warn_flag
5254   else
5255     ac_cpp_err=
5256   fi
5257 else
5258   ac_cpp_err=yes
5259 fi
5260 if test -z "$ac_cpp_err"; then
5261   :
5262 else
5263   echo "$as_me: failed program was:" >&5
5264 sed 's/^/| /' conftest.$ac_ext >&5
5265
5266   # Broken: fails on valid input.
5267 continue
5268 fi
5269 rm -f conftest.err conftest.$ac_ext
5270
5271   # OK, works on sane cases.  Now check whether non-existent headers
5272   # can be detected and how.
5273   cat >conftest.$ac_ext <<_ACEOF
5274 #line $LINENO "configure"
5275 /* confdefs.h.  */
5276 _ACEOF
5277 cat confdefs.h >>conftest.$ac_ext
5278 cat >>conftest.$ac_ext <<_ACEOF
5279 /* end confdefs.h.  */
5280 #include <ac_nonexistent.h>
5281 _ACEOF
5282 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5283   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5284   ac_status=$?
5285   grep -v '^ *+' conftest.er1 >conftest.err
5286   rm -f conftest.er1
5287   cat conftest.err >&5
5288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289   (exit $ac_status); } >/dev/null; then
5290   if test -s conftest.err; then
5291     ac_cpp_err=$ac_c_preproc_warn_flag
5292   else
5293     ac_cpp_err=
5294   fi
5295 else
5296   ac_cpp_err=yes
5297 fi
5298 if test -z "$ac_cpp_err"; then
5299   # Broken: success on invalid input.
5300 continue
5301 else
5302   echo "$as_me: failed program was:" >&5
5303 sed 's/^/| /' conftest.$ac_ext >&5
5304
5305   # Passes both tests.
5306 ac_preproc_ok=:
5307 break
5308 fi
5309 rm -f conftest.err conftest.$ac_ext
5310
5311 done
5312 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5313 rm -f conftest.err conftest.$ac_ext
5314 if $ac_preproc_ok; then
5315   break
5316 fi
5317
5318     done
5319     ac_cv_prog_CPP=$CPP
5320
5321 fi
5322   CPP=$ac_cv_prog_CPP
5323 else
5324   ac_cv_prog_CPP=$CPP
5325 fi
5326 echo "$as_me:$LINENO: result: $CPP" >&5
5327 echo "${ECHO_T}$CPP" >&6
5328 ac_preproc_ok=false
5329 for ac_c_preproc_warn_flag in '' yes
5330 do
5331   # Use a header file that comes with gcc, so configuring glibc
5332   # with a fresh cross-compiler works.
5333   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5334   # <limits.h> exists even on freestanding compilers.
5335   # On the NeXT, cc -E runs the code through the compiler's parser,
5336   # not just through cpp. "Syntax error" is here to catch this case.
5337   cat >conftest.$ac_ext <<_ACEOF
5338 #line $LINENO "configure"
5339 /* confdefs.h.  */
5340 _ACEOF
5341 cat confdefs.h >>conftest.$ac_ext
5342 cat >>conftest.$ac_ext <<_ACEOF
5343 /* end confdefs.h.  */
5344 #ifdef __STDC__
5345 # include <limits.h>
5346 #else
5347 # include <assert.h>
5348 #endif
5349                      Syntax error
5350 _ACEOF
5351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5352   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5353   ac_status=$?
5354   grep -v '^ *+' conftest.er1 >conftest.err
5355   rm -f conftest.er1
5356   cat conftest.err >&5
5357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358   (exit $ac_status); } >/dev/null; then
5359   if test -s conftest.err; then
5360     ac_cpp_err=$ac_c_preproc_warn_flag
5361   else
5362     ac_cpp_err=
5363   fi
5364 else
5365   ac_cpp_err=yes
5366 fi
5367 if test -z "$ac_cpp_err"; then
5368   :
5369 else
5370   echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.$ac_ext >&5
5372
5373   # Broken: fails on valid input.
5374 continue
5375 fi
5376 rm -f conftest.err conftest.$ac_ext
5377
5378   # OK, works on sane cases.  Now check whether non-existent headers
5379   # can be detected and how.
5380   cat >conftest.$ac_ext <<_ACEOF
5381 #line $LINENO "configure"
5382 /* confdefs.h.  */
5383 _ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h.  */
5387 #include <ac_nonexistent.h>
5388 _ACEOF
5389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5390   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5391   ac_status=$?
5392   grep -v '^ *+' conftest.er1 >conftest.err
5393   rm -f conftest.er1
5394   cat conftest.err >&5
5395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396   (exit $ac_status); } >/dev/null; then
5397   if test -s conftest.err; then
5398     ac_cpp_err=$ac_c_preproc_warn_flag
5399   else
5400     ac_cpp_err=
5401   fi
5402 else
5403   ac_cpp_err=yes
5404 fi
5405 if test -z "$ac_cpp_err"; then
5406   # Broken: success on invalid input.
5407 continue
5408 else
5409   echo "$as_me: failed program was:" >&5
5410 sed 's/^/| /' conftest.$ac_ext >&5
5411
5412   # Passes both tests.
5413 ac_preproc_ok=:
5414 break
5415 fi
5416 rm -f conftest.err conftest.$ac_ext
5417
5418 done
5419 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5420 rm -f conftest.err conftest.$ac_ext
5421 if $ac_preproc_ok; then
5422   :
5423 else
5424   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5425 See \`config.log' for more details." >&5
5426 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5427 See \`config.log' for more details." >&2;}
5428    { (exit 1); exit 1; }; }
5429 fi
5430
5431 ac_ext=c
5432 ac_cpp='$CPP $CPPFLAGS'
5433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5436
5437
5438 echo "$as_me:$LINENO: checking for egrep" >&5
5439 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5440 if test "${ac_cv_prog_egrep+set}" = set; then
5441   echo $ECHO_N "(cached) $ECHO_C" >&6
5442 else
5443   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5444     then ac_cv_prog_egrep='grep -E'
5445     else ac_cv_prog_egrep='egrep'
5446     fi
5447 fi
5448 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5449 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5450  EGREP=$ac_cv_prog_egrep
5451
5452
5453 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5454 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5455 if test "${ac_cv_header_stdc+set}" = set; then
5456   echo $ECHO_N "(cached) $ECHO_C" >&6
5457 else
5458   cat >conftest.$ac_ext <<_ACEOF
5459 #line $LINENO "configure"
5460 /* confdefs.h.  */
5461 _ACEOF
5462 cat confdefs.h >>conftest.$ac_ext
5463 cat >>conftest.$ac_ext <<_ACEOF
5464 /* end confdefs.h.  */
5465 #include <stdlib.h>
5466 #include <stdarg.h>
5467 #include <string.h>
5468 #include <float.h>
5469
5470 int
5471 main ()
5472 {
5473
5474   ;
5475   return 0;
5476 }
5477 _ACEOF
5478 rm -f conftest.$ac_objext
5479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5480   (eval $ac_compile) 2>&5
5481   ac_status=$?
5482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483   (exit $ac_status); } &&
5484          { ac_try='test -s conftest.$ac_objext'
5485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5486   (eval $ac_try) 2>&5
5487   ac_status=$?
5488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489   (exit $ac_status); }; }; then
5490   ac_cv_header_stdc=yes
5491 else
5492   echo "$as_me: failed program was:" >&5
5493 sed 's/^/| /' conftest.$ac_ext >&5
5494
5495 ac_cv_header_stdc=no
5496 fi
5497 rm -f conftest.$ac_objext conftest.$ac_ext
5498
5499 if test $ac_cv_header_stdc = yes; then
5500   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5501   cat >conftest.$ac_ext <<_ACEOF
5502 #line $LINENO "configure"
5503 /* confdefs.h.  */
5504 _ACEOF
5505 cat confdefs.h >>conftest.$ac_ext
5506 cat >>conftest.$ac_ext <<_ACEOF
5507 /* end confdefs.h.  */
5508 #include <string.h>
5509
5510 _ACEOF
5511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5512   $EGREP "memchr" >/dev/null 2>&1; then
5513   :
5514 else
5515   ac_cv_header_stdc=no
5516 fi
5517 rm -f conftest*
5518
5519 fi
5520
5521 if test $ac_cv_header_stdc = yes; then
5522   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5523   cat >conftest.$ac_ext <<_ACEOF
5524 #line $LINENO "configure"
5525 /* confdefs.h.  */
5526 _ACEOF
5527 cat confdefs.h >>conftest.$ac_ext
5528 cat >>conftest.$ac_ext <<_ACEOF
5529 /* end confdefs.h.  */
5530 #include <stdlib.h>
5531
5532 _ACEOF
5533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5534   $EGREP "free" >/dev/null 2>&1; then
5535   :
5536 else
5537   ac_cv_header_stdc=no
5538 fi
5539 rm -f conftest*
5540
5541 fi
5542
5543 if test $ac_cv_header_stdc = yes; then
5544   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5545   if test "$cross_compiling" = yes; then
5546   :
5547 else
5548   cat >conftest.$ac_ext <<_ACEOF
5549 #line $LINENO "configure"
5550 /* confdefs.h.  */
5551 _ACEOF
5552 cat confdefs.h >>conftest.$ac_ext
5553 cat >>conftest.$ac_ext <<_ACEOF
5554 /* end confdefs.h.  */
5555 #include <ctype.h>
5556 #if ((' ' & 0x0FF) == 0x020)
5557 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5558 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5559 #else
5560 # define ISLOWER(c) \
5561                    (('a' <= (c) && (c) <= 'i') \
5562                      || ('j' <= (c) && (c) <= 'r') \
5563                      || ('s' <= (c) && (c) <= 'z'))
5564 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5565 #endif
5566
5567 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5568 int
5569 main ()
5570 {
5571   int i;
5572   for (i = 0; i < 256; i++)
5573     if (XOR (islower (i), ISLOWER (i))
5574         || toupper (i) != TOUPPER (i))
5575       exit(2);
5576   exit (0);
5577 }
5578 _ACEOF
5579 rm -f conftest$ac_exeext
5580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5581   (eval $ac_link) 2>&5
5582   ac_status=$?
5583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586   (eval $ac_try) 2>&5
5587   ac_status=$?
5588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589   (exit $ac_status); }; }; then
5590   :
5591 else
5592   echo "$as_me: program exited with status $ac_status" >&5
5593 echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5595
5596 ( exit $ac_status )
5597 ac_cv_header_stdc=no
5598 fi
5599 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5600 fi
5601 fi
5602 fi
5603 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5604 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5605 if test $ac_cv_header_stdc = yes; then
5606
5607 cat >>confdefs.h <<\_ACEOF
5608 #define STDC_HEADERS 1
5609 _ACEOF
5610
5611 fi
5612
5613 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5624                   inttypes.h stdint.h unistd.h
5625 do
5626 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5627 echo "$as_me:$LINENO: checking for $ac_header" >&5
5628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5630   echo $ECHO_N "(cached) $ECHO_C" >&6
5631 else
5632   cat >conftest.$ac_ext <<_ACEOF
5633 #line $LINENO "configure"
5634 /* confdefs.h.  */
5635 _ACEOF
5636 cat confdefs.h >>conftest.$ac_ext
5637 cat >>conftest.$ac_ext <<_ACEOF
5638 /* end confdefs.h.  */
5639 $ac_includes_default
5640
5641 #include <$ac_header>
5642 _ACEOF
5643 rm -f conftest.$ac_objext
5644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5645   (eval $ac_compile) 2>&5
5646   ac_status=$?
5647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648   (exit $ac_status); } &&
5649          { ac_try='test -s conftest.$ac_objext'
5650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651   (eval $ac_try) 2>&5
5652   ac_status=$?
5653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654   (exit $ac_status); }; }; then
5655   eval "$as_ac_Header=yes"
5656 else
5657   echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5659
5660 eval "$as_ac_Header=no"
5661 fi
5662 rm -f conftest.$ac_objext conftest.$ac_ext
5663 fi
5664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5667   cat >>confdefs.h <<_ACEOF
5668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5669 _ACEOF
5670
5671 fi
5672
5673 done
5674
5675
5676 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
5677   echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
5678 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
5679 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
5680   echo $ECHO_N "(cached) $ECHO_C" >&6
5681 fi
5682 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
5683 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
5684 else
5685   # Is the header compilable?
5686 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
5687 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
5688 cat >conftest.$ac_ext <<_ACEOF
5689 #line $LINENO "configure"
5690 /* confdefs.h.  */
5691 _ACEOF
5692 cat confdefs.h >>conftest.$ac_ext
5693 cat >>conftest.$ac_ext <<_ACEOF
5694 /* end confdefs.h.  */
5695 $ac_includes_default
5696 #include <sys/dg_sys_info.h>
5697 _ACEOF
5698 rm -f conftest.$ac_objext
5699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5700   (eval $ac_compile) 2>&5
5701   ac_status=$?
5702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703   (exit $ac_status); } &&
5704          { ac_try='test -s conftest.$ac_objext'
5705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706   (eval $ac_try) 2>&5
5707   ac_status=$?
5708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709   (exit $ac_status); }; }; then
5710   ac_header_compiler=yes
5711 else
5712   echo "$as_me: failed program was:" >&5
5713 sed 's/^/| /' conftest.$ac_ext >&5
5714
5715 ac_header_compiler=no
5716 fi
5717 rm -f conftest.$ac_objext conftest.$ac_ext
5718 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5719 echo "${ECHO_T}$ac_header_compiler" >&6
5720
5721 # Is the header present?
5722 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
5723 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
5724 cat >conftest.$ac_ext <<_ACEOF
5725 #line $LINENO "configure"
5726 /* confdefs.h.  */
5727 _ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h.  */
5731 #include <sys/dg_sys_info.h>
5732 _ACEOF
5733 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5734   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5735   ac_status=$?
5736   grep -v '^ *+' conftest.er1 >conftest.err
5737   rm -f conftest.er1
5738   cat conftest.err >&5
5739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740   (exit $ac_status); } >/dev/null; then
5741   if test -s conftest.err; then
5742     ac_cpp_err=$ac_c_preproc_warn_flag
5743   else
5744     ac_cpp_err=
5745   fi
5746 else
5747   ac_cpp_err=yes
5748 fi
5749 if test -z "$ac_cpp_err"; then
5750   ac_header_preproc=yes
5751 else
5752   echo "$as_me: failed program was:" >&5
5753 sed 's/^/| /' conftest.$ac_ext >&5
5754
5755   ac_header_preproc=no
5756 fi
5757 rm -f conftest.err conftest.$ac_ext
5758 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5759 echo "${ECHO_T}$ac_header_preproc" >&6
5760
5761 # So?  What about this header?
5762 case $ac_header_compiler:$ac_header_preproc in
5763   yes:no )
5764     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
5765 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5766     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
5767 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
5768     (
5769       cat <<\_ASBOX
5770 ## ------------------------------------ ##
5771 ## Report this to bug-autoconf@gnu.org. ##
5772 ## ------------------------------------ ##
5773 _ASBOX
5774     ) |
5775       sed "s/^/$as_me: WARNING:     /" >&2
5776     ;;
5777   no:yes )
5778     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
5779 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
5780     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
5781 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
5782     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
5783 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
5784     (
5785       cat <<\_ASBOX
5786 ## ------------------------------------ ##
5787 ## Report this to bug-autoconf@gnu.org. ##
5788 ## ------------------------------------ ##
5789 _ASBOX
5790     ) |
5791       sed "s/^/$as_me: WARNING:     /" >&2
5792     ;;
5793 esac
5794 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
5795 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
5796 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
5797   echo $ECHO_N "(cached) $ECHO_C" >&6
5798 else
5799   ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
5800 fi
5801 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
5802 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
5803
5804 fi
5805 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
5806   ac_is_dgux=yes;
5807 fi
5808
5809
5810
5811 echo "$as_me:$LINENO: result: $ac_is_dgux" >&5
5812 echo "${ECHO_T}$ac_is_dgux" >&6
5813     ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
5814 if test $ac_is_dgux = yes; then
5815     if test "$enable_full_debug" = "yes"; then
5816       CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
5817       CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
5818     else
5819       CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
5820       CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
5821     fi
5822
5823
5824 fi
5825
5826
5827 # Check whether --with-target-subdir or --without-target-subdir was given.
5828 if test "${with_target_subdir+set}" = set; then
5829   withval="$with_target_subdir"
5830
5831 fi;
5832
5833 # Check whether --with-cross-host or --without-cross-host was given.
5834 if test "${with_cross_host+set}" = set; then
5835   withval="$with_cross_host"
5836
5837 fi;
5838
5839 echo "$as_me:$LINENO: checking whether Solaris gcc optimization fix is necessary" >&5
5840 echo $ECHO_N "checking whether Solaris gcc optimization fix is necessary... $ECHO_C" >&6
5841 case "$host" in
5842  sparc-sun-solaris2*|*aix*)
5843     if test "$GCC" = yes; then
5844        echo "$as_me:$LINENO: result: yes" >&5
5845 echo "${ECHO_T}yes" >&6
5846        new_CFLAGS=
5847        for i in $CFLAGS; do
5848           case "$i" in
5849            -O*)
5850               ;;
5851            *)
5852               new_CFLAGS="$new_CFLAGS $i"
5853               ;;
5854           esac
5855        done
5856        CFLAGS="$new_CFLAGS"
5857     else
5858        echo "$as_me:$LINENO: result: no" >&5
5859 echo "${ECHO_T}no" >&6
5860     fi
5861     ;;
5862  *) echo "$as_me:$LINENO: result: no" >&5
5863 echo "${ECHO_T}no" >&6 ;;
5864 esac
5865
5866 MY_CFLAGS="$CFLAGS"
5867
5868
5869 cat >>confdefs.h <<\_ACEOF
5870 #define SILENT 1
5871 _ACEOF
5872
5873 cat >>confdefs.h <<\_ACEOF
5874 #define NO_SIGNALS 1
5875 _ACEOF
5876
5877 cat >>confdefs.h <<\_ACEOF
5878 #define ALL_INTERIOR_POINTERS 1
5879 _ACEOF
5880
5881
5882 cat >>confdefs.h <<\_ACEOF
5883 #define JAVA_FINALIZATION 1
5884 _ACEOF
5885
5886 cat >>confdefs.h <<\_ACEOF
5887 #define GC_GCJ_SUPPORT 1
5888 _ACEOF
5889
5890 cat >>confdefs.h <<\_ACEOF
5891 #define ATOMIC_UNCOLLECTABLE 1
5892 _ACEOF
5893
5894
5895 if test -n "${with_cross_host}"; then
5896    cat >>confdefs.h <<\_ACEOF
5897 #define NO_SIGSET 1
5898 _ACEOF
5899
5900    cat >>confdefs.h <<\_ACEOF
5901 #define NO_DEBUGGING 1
5902 _ACEOF
5903
5904 fi
5905
5906 # Check whether --enable-full-debug or --disable-full-debug was given.
5907 if test "${enable_full_debug+set}" = set; then
5908   enableval="$enable_full_debug"
5909    if test "$enable_full_debug" = "yes"; then
5910     { echo "$as_me:$LINENO: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&5
5911 echo "$as_me: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
5912     cat >>confdefs.h <<\_ACEOF
5913 #define KEEP_BACK_PTRS 1
5914 _ACEOF
5915
5916     cat >>confdefs.h <<\_ACEOF
5917 #define DBG_HDRS_ALL 1
5918 _ACEOF
5919
5920     case $host in
5921       ia64-*-linux* )
5922         cat >>confdefs.h <<\_ACEOF
5923 #define MAKE_BACK_GRAPH 1
5924 _ACEOF
5925
5926       ;;
5927       x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
5928         cat >>confdefs.h <<\_ACEOF
5929 #define MAKE_BACK_GRAPH 1
5930 _ACEOF
5931
5932         { echo "$as_me:$LINENO: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
5933 echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
5934         cat >>confdefs.h <<\_ACEOF
5935 #define SAVE_CALL_COUNT 8
5936 _ACEOF
5937
5938       ;;
5939       i345686-*-dgux*)
5940         cat >>confdefs.h <<\_ACEOF
5941 #define MAKE_BACK_GRAPH 1
5942 _ACEOF
5943
5944       ;;
5945     esac
5946   fi
5947 fi;
5948
5949 if test -n "$with_cross_host" &&
5950    test x"$with_cross_host" != x"no"; then
5951   toolexecdir='$(exec_prefix)/$(target_noncanonical)'
5952   toolexeclibdir='$(toolexecdir)/lib'
5953 else
5954   toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
5955   toolexeclibdir='$(libdir)'
5956 fi
5957 multi_os_directory=`$CC -print-multi-os-directory`
5958 case $multi_os_directory in
5959   .) ;; # Avoid trailing /.
5960   *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5961 esac
5962
5963
5964
5965 if test "${multilib}" = "yes"; then
5966   multilib_arg="--enable-multilib"
5967 else
5968   multilib_arg=
5969 fi
5970
5971                     ac_config_files="$ac_config_files Makefile include/Makefile"
5972           ac_config_commands="$ac_config_commands default"
5973 cat >confcache <<\_ACEOF
5974 # This file is a shell script that caches the results of configure
5975 # tests run on this system so they can be shared between configure
5976 # scripts and configure runs, see configure's option --config-cache.
5977 # It is not useful on other systems.  If it contains results you don't
5978 # want to keep, you may remove or edit it.
5979 #
5980 # config.status only pays attention to the cache file if you give it
5981 # the --recheck option to rerun configure.
5982 #
5983 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5984 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5985 # following values.
5986
5987 _ACEOF
5988
5989 # The following way of writing the cache mishandles newlines in values,
5990 # but we know of no workaround that is simple, portable, and efficient.
5991 # So, don't put newlines in cache variables' values.
5992 # Ultrix sh set writes to stderr and can't be redirected directly,
5993 # and sets the high bit in the cache file unless we assign to the vars.
5994 {
5995   (set) 2>&1 |
5996     case `(ac_space=' '; set | grep ac_space) 2>&1` in
5997     *ac_space=\ *)
5998       # `set' does not quote correctly, so add quotes (double-quote
5999       # substitution turns \\\\ into \\, and sed turns \\ into \).
6000       sed -n \
6001         "s/'/'\\\\''/g;
6002           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6003       ;;
6004     *)
6005       # `set' quotes correctly as required by POSIX, so do not add quotes.
6006       sed -n \
6007         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6008       ;;
6009     esac;
6010 } |
6011   sed '
6012      t clear
6013      : clear
6014      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6015      t end
6016      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6017      : end' >>confcache
6018 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6019   if test -w $cache_file; then
6020     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6021     cat confcache >$cache_file
6022   else
6023     echo "not updating unwritable cache $cache_file"
6024   fi
6025 fi
6026 rm -f confcache
6027
6028 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6029 # Let make expand exec_prefix.
6030 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6031
6032 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6033 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6034 # trailing colons and then remove the whole line if VPATH becomes empty
6035 # (actually we leave an empty line to preserve line numbers).
6036 if test "x$srcdir" = x.; then
6037   ac_vpsub='/^[         ]*VPATH[        ]*=/{
6038 s/:*\$(srcdir):*/:/;
6039 s/:*\${srcdir}:*/:/;
6040 s/:*@srcdir@:*/:/;
6041 s/^\([^=]*=[    ]*\):*/\1/;
6042 s/:*$//;
6043 s/^[^=]*=[      ]*$//;
6044 }'
6045 fi
6046
6047 # Transform confdefs.h into DEFS.
6048 # Protect against shell expansion while executing Makefile rules.
6049 # Protect against Makefile macro expansion.
6050 #
6051 # If the first sed substitution is executed (which looks for macros that
6052 # take arguments), then we branch to the quote section.  Otherwise,
6053 # look for a macro that doesn't take arguments.
6054 cat >confdef2opt.sed <<\_ACEOF
6055 t clear
6056 : clear
6057 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
6058 t quote
6059 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
6060 t quote
6061 d
6062 : quote
6063 s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
6064 s,\[,\\&,g
6065 s,\],\\&,g
6066 s,\$,$$,g
6067 p
6068 _ACEOF
6069 # We use echo to avoid assuming a particular line-breaking character.
6070 # The extra dot is to prevent the shell from consuming trailing
6071 # line-breaks from the sub-command output.  A line-break within
6072 # single-quotes doesn't work because, if this script is created in a
6073 # platform that uses two characters for line-breaks (e.g., DOS), tr
6074 # would break.
6075 ac_LF_and_DOT=`echo; echo .`
6076 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
6077 rm -f confdef2opt.sed
6078
6079
6080 ac_libobjs=
6081 ac_ltlibobjs=
6082 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6083   # 1. Remove the extension, and $U if already installed.
6084   ac_i=`echo "$ac_i" |
6085          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6086   # 2. Add them.
6087   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6088   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6089 done
6090 LIBOBJS=$ac_libobjs
6091
6092 LTLIBOBJS=$ac_ltlibobjs
6093
6094
6095
6096 : ${CONFIG_STATUS=./config.status}
6097 ac_clean_files_save=$ac_clean_files
6098 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6099 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6100 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6101 cat >$CONFIG_STATUS <<_ACEOF
6102 #! $SHELL
6103 # Generated by $as_me.
6104 # Run this file to recreate the current configuration.
6105 # Compiler output produced by configure, useful for debugging
6106 # configure, is in config.log if it exists.
6107
6108 debug=false
6109 ac_cs_recheck=false
6110 ac_cs_silent=false
6111 SHELL=\${CONFIG_SHELL-$SHELL}
6112 _ACEOF
6113
6114 cat >>$CONFIG_STATUS <<\_ACEOF
6115 ## --------------------- ##
6116 ## M4sh Initialization.  ##
6117 ## --------------------- ##
6118
6119 # Be Bourne compatible
6120 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6121   emulate sh
6122   NULLCMD=:
6123   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6124   # is contrary to our usage.  Disable this feature.
6125   alias -g '${1+"$@"}'='"$@"'
6126 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6127   set -o posix
6128 fi
6129
6130 # Support unset when possible.
6131 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6132   as_unset=unset
6133 else
6134   as_unset=false
6135 fi
6136
6137
6138 # Work around bugs in pre-3.0 UWIN ksh.
6139 $as_unset ENV MAIL MAILPATH
6140 PS1='$ '
6141 PS2='> '
6142 PS4='+ '
6143
6144 # NLS nuisances.
6145 for as_var in \
6146   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6147   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6148   LC_TELEPHONE LC_TIME
6149 do
6150   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6151     eval $as_var=C; export $as_var
6152   else
6153     $as_unset $as_var
6154   fi
6155 done
6156
6157 # Required to use basename.
6158 if expr a : '\(a\)' >/dev/null 2>&1; then
6159   as_expr=expr
6160 else
6161   as_expr=false
6162 fi
6163
6164 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6165   as_basename=basename
6166 else
6167   as_basename=false
6168 fi
6169
6170
6171 # Name of the executable.
6172 as_me=`$as_basename "$0" ||
6173 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6174          X"$0" : 'X\(//\)$' \| \
6175          X"$0" : 'X\(/\)$' \| \
6176          .     : '\(.\)' 2>/dev/null ||
6177 echo X/"$0" |
6178     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6179           /^X\/\(\/\/\)$/{ s//\1/; q; }
6180           /^X\/\(\/\).*/{ s//\1/; q; }
6181           s/.*/./; q'`
6182
6183
6184 # PATH needs CR, and LINENO needs CR and PATH.
6185 # Avoid depending upon Character Ranges.
6186 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6187 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6188 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6189 as_cr_digits='0123456789'
6190 as_cr_alnum=$as_cr_Letters$as_cr_digits
6191
6192 # The user is always right.
6193 if test "${PATH_SEPARATOR+set}" != set; then
6194   echo "#! /bin/sh" >conf$$.sh
6195   echo  "exit 0"   >>conf$$.sh
6196   chmod +x conf$$.sh
6197   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6198     PATH_SEPARATOR=';'
6199   else
6200     PATH_SEPARATOR=:
6201   fi
6202   rm -f conf$$.sh
6203 fi
6204
6205
6206   as_lineno_1=$LINENO
6207   as_lineno_2=$LINENO
6208   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6209   test "x$as_lineno_1" != "x$as_lineno_2" &&
6210   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
6211   # Find who we are.  Look in the path if we contain no path at all
6212   # relative or not.
6213   case $0 in
6214     *[\\/]* ) as_myself=$0 ;;
6215     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216 for as_dir in $PATH
6217 do
6218   IFS=$as_save_IFS
6219   test -z "$as_dir" && as_dir=.
6220   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6221 done
6222
6223        ;;
6224   esac
6225   # We did not find ourselves, most probably we were run as `sh COMMAND'
6226   # in which case we are not to be found in the path.
6227   if test "x$as_myself" = x; then
6228     as_myself=$0
6229   fi
6230   if test ! -f "$as_myself"; then
6231     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6232 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6233    { (exit 1); exit 1; }; }
6234   fi
6235   case $CONFIG_SHELL in
6236   '')
6237     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6239 do
6240   IFS=$as_save_IFS
6241   test -z "$as_dir" && as_dir=.
6242   for as_base in sh bash ksh sh5; do
6243          case $as_dir in
6244          /*)
6245            if ("$as_dir/$as_base" -c '
6246   as_lineno_1=$LINENO
6247   as_lineno_2=$LINENO
6248   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6249   test "x$as_lineno_1" != "x$as_lineno_2" &&
6250   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6251              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6252              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6253              CONFIG_SHELL=$as_dir/$as_base
6254              export CONFIG_SHELL
6255              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6256            fi;;
6257          esac
6258        done
6259 done
6260 ;;
6261   esac
6262
6263   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6264   # uniformly replaced by the line number.  The first 'sed' inserts a
6265   # line-number line before each line; the second 'sed' does the real
6266   # work.  The second script uses 'N' to pair each line-number line
6267   # with the numbered line, and appends trailing '-' during
6268   # substitution so that $LINENO is not a special case at line end.
6269   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6270   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6271   sed '=' <$as_myself |
6272     sed '
6273       N
6274       s,$,-,
6275       : loop
6276       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6277       t loop
6278       s,-$,,
6279       s,^['$as_cr_digits']*\n,,
6280     ' >$as_me.lineno &&
6281   chmod +x $as_me.lineno ||
6282     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6283 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6284    { (exit 1); exit 1; }; }
6285
6286   # Don't try to exec as it changes $[0], causing all sort of problems
6287   # (the dirname of $[0] is not the place where we might find the
6288   # original and so on.  Autoconf is especially sensible to this).
6289   . ./$as_me.lineno
6290   # Exit status is that of the last command.
6291   exit
6292 }
6293
6294
6295 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6296   *c*,-n*) ECHO_N= ECHO_C='
6297 ' ECHO_T='      ' ;;
6298   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6299   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6300 esac
6301
6302 if expr a : '\(a\)' >/dev/null 2>&1; then
6303   as_expr=expr
6304 else
6305   as_expr=false
6306 fi
6307
6308 rm -f conf$$ conf$$.exe conf$$.file
6309 echo >conf$$.file
6310 if ln -s conf$$.file conf$$ 2>/dev/null; then
6311   # We could just check for DJGPP; but this test a) works b) is more generic
6312   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6313   if test -f conf$$.exe; then
6314     # Don't use ln at all; we don't have any links
6315     as_ln_s='cp -p'
6316   else
6317     as_ln_s='ln -s'
6318   fi
6319 elif ln conf$$.file conf$$ 2>/dev/null; then
6320   as_ln_s=ln
6321 else
6322   as_ln_s='cp -p'
6323 fi
6324 rm -f conf$$ conf$$.exe conf$$.file
6325
6326 if mkdir -p . 2>/dev/null; then
6327   as_mkdir_p=:
6328 else
6329   as_mkdir_p=false
6330 fi
6331
6332 as_executable_p="test -f"
6333
6334 # Sed expression to map a string onto a valid CPP name.
6335 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6336
6337 # Sed expression to map a string onto a valid variable name.
6338 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6339
6340
6341 # IFS
6342 # We need space, tab and new line, in precisely that order.
6343 as_nl='
6344 '
6345 IFS="   $as_nl"
6346
6347 # CDPATH.
6348 $as_unset CDPATH
6349
6350 exec 6>&1
6351
6352 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6353 # report actual input values of CONFIG_FILES etc. instead of their
6354 # values after options handling.  Logging --version etc. is OK.
6355 exec 5>>config.log
6356 {
6357   echo
6358   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6359 ## Running $as_me. ##
6360 _ASBOX
6361 } >&5
6362 cat >&5 <<_CSEOF
6363
6364 This file was extended by $as_me, which was
6365 generated by GNU Autoconf 2.57.  Invocation command line was
6366
6367   CONFIG_FILES    = $CONFIG_FILES
6368   CONFIG_HEADERS  = $CONFIG_HEADERS
6369   CONFIG_LINKS    = $CONFIG_LINKS
6370   CONFIG_COMMANDS = $CONFIG_COMMANDS
6371   $ $0 $@
6372
6373 _CSEOF
6374 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6375 echo >&5
6376 _ACEOF
6377
6378 # Files that config.status was made for.
6379 if test -n "$ac_config_files"; then
6380   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6381 fi
6382
6383 if test -n "$ac_config_headers"; then
6384   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6385 fi
6386
6387 if test -n "$ac_config_links"; then
6388   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6389 fi
6390
6391 if test -n "$ac_config_commands"; then
6392   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6393 fi
6394
6395 cat >>$CONFIG_STATUS <<\_ACEOF
6396
6397 ac_cs_usage="\
6398 \`$as_me' instantiates files from templates according to the
6399 current configuration.
6400
6401 Usage: $0 [OPTIONS] [FILE]...
6402
6403   -h, --help       print this help, then exit
6404   -V, --version    print version number, then exit
6405   -q, --quiet      do not print progress messages
6406   -d, --debug      don't remove temporary files
6407       --recheck    update $as_me by reconfiguring in the same conditions
6408   --file=FILE[:TEMPLATE]
6409                    instantiate the configuration file FILE
6410
6411 Configuration files:
6412 $config_files
6413
6414 Configuration commands:
6415 $config_commands
6416
6417 Report bugs to <bug-autoconf@gnu.org>."
6418 _ACEOF
6419
6420 cat >>$CONFIG_STATUS <<_ACEOF
6421 ac_cs_version="\\
6422 config.status
6423 configured by $0, generated by GNU Autoconf 2.57,
6424   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6425
6426 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6427 Free Software Foundation, Inc.
6428 This config.status script is free software; the Free Software Foundation
6429 gives unlimited permission to copy, distribute and modify it."
6430 srcdir=$srcdir
6431 INSTALL="$INSTALL"
6432 _ACEOF
6433
6434 cat >>$CONFIG_STATUS <<\_ACEOF
6435 # If no file are specified by the user, then we need to provide default
6436 # value.  By we need to know if files were specified by the user.
6437 ac_need_defaults=:
6438 while test $# != 0
6439 do
6440   case $1 in
6441   --*=*)
6442     ac_option=`expr "x$1" : 'x\([^=]*\)='`
6443     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6444     ac_shift=:
6445     ;;
6446   -*)
6447     ac_option=$1
6448     ac_optarg=$2
6449     ac_shift=shift
6450     ;;
6451   *) # This is not an option, so the user has probably given explicit
6452      # arguments.
6453      ac_option=$1
6454      ac_need_defaults=false;;
6455   esac
6456
6457   case $ac_option in
6458   # Handling of the options.
6459 _ACEOF
6460 cat >>$CONFIG_STATUS <<\_ACEOF
6461   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6462     ac_cs_recheck=: ;;
6463   --version | --vers* | -V )
6464     echo "$ac_cs_version"; exit 0 ;;
6465   --he | --h)
6466     # Conflict between --help and --header
6467     { { echo "$as_me:$LINENO: error: ambiguous option: $1
6468 Try \`$0 --help' for more information." >&5
6469 echo "$as_me: error: ambiguous option: $1
6470 Try \`$0 --help' for more information." >&2;}
6471    { (exit 1); exit 1; }; };;
6472   --help | --hel | -h )
6473     echo "$ac_cs_usage"; exit 0 ;;
6474   --debug | --d* | -d )
6475     debug=: ;;
6476   --file | --fil | --fi | --f )
6477     $ac_shift
6478     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6479     ac_need_defaults=false;;
6480   --header | --heade | --head | --hea )
6481     $ac_shift
6482     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6483     ac_need_defaults=false;;
6484   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6485   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6486     ac_cs_silent=: ;;
6487
6488   # This is an error.
6489   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6490 Try \`$0 --help' for more information." >&5
6491 echo "$as_me: error: unrecognized option: $1
6492 Try \`$0 --help' for more information." >&2;}
6493    { (exit 1); exit 1; }; } ;;
6494
6495   *) ac_config_targets="$ac_config_targets $1" ;;
6496
6497   esac
6498   shift
6499 done
6500
6501 ac_configure_extra_args=
6502
6503 if $ac_cs_silent; then
6504   exec 6>/dev/null
6505   ac_configure_extra_args="$ac_configure_extra_args --silent"
6506 fi
6507
6508 _ACEOF
6509 cat >>$CONFIG_STATUS <<_ACEOF
6510 if \$ac_cs_recheck; then
6511   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6512   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6513 fi
6514
6515 _ACEOF
6516
6517 cat >>$CONFIG_STATUS <<_ACEOF
6518 #
6519 # INIT-COMMANDS section.
6520 #
6521
6522 srcdir=${srcdir}
6523 host=${host}
6524 target=${target}
6525 with_multisubdir=${with_multisubdir}
6526 ac_configure_args="${multilib_arg} ${ac_configure_args}"
6527 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
6528 gc_basedir=${gc_basedir}
6529 CC="${CC}"
6530 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
6531 DEFS="$DEFS"
6532 INCLUDES="$INCLUDES"
6533
6534
6535 _ACEOF
6536
6537
6538
6539 cat >>$CONFIG_STATUS <<\_ACEOF
6540 for ac_config_target in $ac_config_targets
6541 do
6542   case "$ac_config_target" in
6543   # Handling of arguments.
6544   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6545   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
6546   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6547   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6548 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6549    { (exit 1); exit 1; }; };;
6550   esac
6551 done
6552
6553 # If the user did not use the arguments to specify the items to instantiate,
6554 # then the envvar interface is used.  Set only those that are not.
6555 # We use the long form for the default assignment because of an extremely
6556 # bizarre bug on SunOS 4.1.3.
6557 if $ac_need_defaults; then
6558   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6559   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6560 fi
6561
6562 # Have a temporary directory for convenience.  Make it in the build tree
6563 # simply because there is no reason to put it here, and in addition,
6564 # creating and moving files from /tmp can sometimes cause problems.
6565 # Create a temporary directory, and hook for its removal unless debugging.
6566 $debug ||
6567 {
6568   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6569   trap '{ (exit 1); exit 1; }' 1 2 13 15
6570 }
6571
6572 # Create a (secure) tmp directory for tmp files.
6573
6574 {
6575   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6576   test -n "$tmp" && test -d "$tmp"
6577 }  ||
6578 {
6579   tmp=./confstat$$-$RANDOM
6580   (umask 077 && mkdir $tmp)
6581 } ||
6582 {
6583    echo "$me: cannot create a temporary directory in ." >&2
6584    { (exit 1); exit 1; }
6585 }
6586
6587 _ACEOF
6588
6589 cat >>$CONFIG_STATUS <<_ACEOF
6590
6591 #
6592 # CONFIG_FILES section.
6593 #
6594
6595 # No need to generate the scripts if there are no CONFIG_FILES.
6596 # This happens for instance when ./config.status config.h
6597 if test -n "\$CONFIG_FILES"; then
6598   # Protect against being on the right side of a sed subst in config.status.
6599   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6600    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6601 s,@SHELL@,$SHELL,;t t
6602 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6603 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6604 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6605 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6606 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6607 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6608 s,@exec_prefix@,$exec_prefix,;t t
6609 s,@prefix@,$prefix,;t t
6610 s,@program_transform_name@,$program_transform_name,;t t
6611 s,@bindir@,$bindir,;t t
6612 s,@sbindir@,$sbindir,;t t
6613 s,@libexecdir@,$libexecdir,;t t
6614 s,@datadir@,$datadir,;t t
6615 s,@sysconfdir@,$sysconfdir,;t t
6616 s,@sharedstatedir@,$sharedstatedir,;t t
6617 s,@localstatedir@,$localstatedir,;t t
6618 s,@libdir@,$libdir,;t t
6619 s,@includedir@,$includedir,;t t
6620 s,@oldincludedir@,$oldincludedir,;t t
6621 s,@infodir@,$infodir,;t t
6622 s,@mandir@,$mandir,;t t
6623 s,@build_alias@,$build_alias,;t t
6624 s,@host_alias@,$host_alias,;t t
6625 s,@target_alias@,$target_alias,;t t
6626 s,@DEFS@,$DEFS,;t t
6627 s,@ECHO_C@,$ECHO_C,;t t
6628 s,@ECHO_N@,$ECHO_N,;t t
6629 s,@ECHO_T@,$ECHO_T,;t t
6630 s,@LIBS@,$LIBS,;t t
6631 s,@gc_basedir@,$gc_basedir,;t t
6632 s,@build@,$build,;t t
6633 s,@build_cpu@,$build_cpu,;t t
6634 s,@build_vendor@,$build_vendor,;t t
6635 s,@build_os@,$build_os,;t t
6636 s,@host@,$host,;t t
6637 s,@host_cpu@,$host_cpu,;t t
6638 s,@host_vendor@,$host_vendor,;t t
6639 s,@host_os@,$host_os,;t t
6640 s,@target@,$target,;t t
6641 s,@target_cpu@,$target_cpu,;t t
6642 s,@target_vendor@,$target_vendor,;t t
6643 s,@target_os@,$target_os,;t t
6644 s,@mkinstalldirs@,$mkinstalldirs,;t t
6645 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6646 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6647 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6648 s,@PACKAGE@,$PACKAGE,;t t
6649 s,@VERSION@,$VERSION,;t t
6650 s,@ACLOCAL@,$ACLOCAL,;t t
6651 s,@AUTOCONF@,$AUTOCONF,;t t
6652 s,@AUTOMAKE@,$AUTOMAKE,;t t
6653 s,@AUTOHEADER@,$AUTOHEADER,;t t
6654 s,@MAKEINFO@,$MAKEINFO,;t t
6655 s,@SET_MAKE@,$SET_MAKE,;t t
6656 s,@CC@,$CC,;t t
6657 s,@ac_ct_CC@,$ac_ct_CC,;t t
6658 s,@EXEEXT@,$EXEEXT,;t t
6659 s,@OBJEXT@,$OBJEXT,;t t
6660 s,@CXX@,$CXX,;t t
6661 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6662 s,@CFLAGS@,$CFLAGS,;t t
6663 s,@CXXFLAGS@,$CXXFLAGS,;t t
6664 s,@CCAS@,$CCAS,;t t
6665 s,@CCASFLAGS@,$CCASFLAGS,;t t
6666 s,@AS@,$AS,;t t
6667 s,@ac_ct_AS@,$ac_ct_AS,;t t
6668 s,@AR@,$AR,;t t
6669 s,@ac_ct_AR@,$ac_ct_AR,;t t
6670 s,@RANLIB@,$RANLIB,;t t
6671 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6672 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6673 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6674 s,@MAINT@,$MAINT,;t t
6675 s,@GC_CFLAGS@,$GC_CFLAGS,;t t
6676 s,@LN_S@,$LN_S,;t t
6677 s,@STRIP@,$STRIP,;t t
6678 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6679 s,@LIBTOOL@,$LIBTOOL,;t t
6680 s,@CXXCPP@,$CXXCPP,;t t
6681 s,@CPPFLAGS@,$CPPFLAGS,;t t
6682 s,@THREADLIBS@,$THREADLIBS,;t t
6683 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
6684 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
6685 s,@EXTRA_TEST_LIBS@,$EXTRA_TEST_LIBS,;t t
6686 s,@target_all@,$target_all,;t t
6687 s,@target_noncanonical@,$target_noncanonical,;t t
6688 s,@CPLUSPLUS_TRUE@,$CPLUSPLUS_TRUE,;t t
6689 s,@CPLUSPLUS_FALSE@,$CPLUSPLUS_FALSE,;t t
6690 s,@INCLUDES@,$INCLUDES,;t t
6691 s,@CXXINCLUDES@,$CXXINCLUDES,;t t
6692 s,@addobjs@,$addobjs,;t t
6693 s,@addincludes@,$addincludes,;t t
6694 s,@addlibs@,$addlibs,;t t
6695 s,@addtests@,$addtests,;t t
6696 s,@CPP@,$CPP,;t t
6697 s,@EGREP@,$EGREP,;t t
6698 s,@MY_CFLAGS@,$MY_CFLAGS,;t t
6699 s,@toolexecdir@,$toolexecdir,;t t
6700 s,@toolexeclibdir@,$toolexeclibdir,;t t
6701 s,@LIBOBJS@,$LIBOBJS,;t t
6702 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6703 CEOF
6704
6705 _ACEOF
6706
6707   cat >>$CONFIG_STATUS <<\_ACEOF
6708   # Split the substitutions into bite-sized pieces for seds with
6709   # small command number limits, like on Digital OSF/1 and HP-UX.
6710   ac_max_sed_lines=48
6711   ac_sed_frag=1 # Number of current file.
6712   ac_beg=1 # First line for current file.
6713   ac_end=$ac_max_sed_lines # Line after last line for current file.
6714   ac_more_lines=:
6715   ac_sed_cmds=
6716   while $ac_more_lines; do
6717     if test $ac_beg -gt 1; then
6718       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6719     else
6720       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6721     fi
6722     if test ! -s $tmp/subs.frag; then
6723       ac_more_lines=false
6724     else
6725       # The purpose of the label and of the branching condition is to
6726       # speed up the sed processing (if there are no `@' at all, there
6727       # is no need to browse any of the substitutions).
6728       # These are the two extra sed commands mentioned above.
6729       (echo ':t
6730   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6731       if test -z "$ac_sed_cmds"; then
6732         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6733       else
6734         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6735       fi
6736       ac_sed_frag=`expr $ac_sed_frag + 1`
6737       ac_beg=$ac_end
6738       ac_end=`expr $ac_end + $ac_max_sed_lines`
6739     fi
6740   done
6741   if test -z "$ac_sed_cmds"; then
6742     ac_sed_cmds=cat
6743   fi
6744 fi # test -n "$CONFIG_FILES"
6745
6746 _ACEOF
6747 cat >>$CONFIG_STATUS <<\_ACEOF
6748 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6749   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6750   case $ac_file in
6751   - | *:- | *:-:* ) # input from stdin
6752         cat >$tmp/stdin
6753         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6754         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6755   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6756         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6757   * )   ac_file_in=$ac_file.in ;;
6758   esac
6759
6760   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6761   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6762 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6763          X"$ac_file" : 'X\(//\)[^/]' \| \
6764          X"$ac_file" : 'X\(//\)$' \| \
6765          X"$ac_file" : 'X\(/\)' \| \
6766          .     : '\(.\)' 2>/dev/null ||
6767 echo X"$ac_file" |
6768     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6769           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6770           /^X\(\/\/\)$/{ s//\1/; q; }
6771           /^X\(\/\).*/{ s//\1/; q; }
6772           s/.*/./; q'`
6773   { if $as_mkdir_p; then
6774     mkdir -p "$ac_dir"
6775   else
6776     as_dir="$ac_dir"
6777     as_dirs=
6778     while test ! -d "$as_dir"; do
6779       as_dirs="$as_dir $as_dirs"
6780       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6781 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6782          X"$as_dir" : 'X\(//\)[^/]' \| \
6783          X"$as_dir" : 'X\(//\)$' \| \
6784          X"$as_dir" : 'X\(/\)' \| \
6785          .     : '\(.\)' 2>/dev/null ||
6786 echo X"$as_dir" |
6787     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6788           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6789           /^X\(\/\/\)$/{ s//\1/; q; }
6790           /^X\(\/\).*/{ s//\1/; q; }
6791           s/.*/./; q'`
6792     done
6793     test ! -n "$as_dirs" || mkdir $as_dirs
6794   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6795 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6796    { (exit 1); exit 1; }; }; }
6797
6798   ac_builddir=.
6799
6800 if test "$ac_dir" != .; then
6801   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6802   # A "../" for each directory in $ac_dir_suffix.
6803   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6804 else
6805   ac_dir_suffix= ac_top_builddir=
6806 fi
6807
6808 case $srcdir in
6809   .)  # No --srcdir option.  We are building in place.
6810     ac_srcdir=.
6811     if test -z "$ac_top_builddir"; then
6812        ac_top_srcdir=.
6813     else
6814        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6815     fi ;;
6816   [\\/]* | ?:[\\/]* )  # Absolute path.
6817     ac_srcdir=$srcdir$ac_dir_suffix;
6818     ac_top_srcdir=$srcdir ;;
6819   *) # Relative path.
6820     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6821     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6822 esac
6823 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6824 # absolute.
6825 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6826 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6827 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6828 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6829
6830
6831   case $INSTALL in
6832   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6833   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6834   esac
6835
6836   if test x"$ac_file" != x-; then
6837     { echo "$as_me:$LINENO: creating $ac_file" >&5
6838 echo "$as_me: creating $ac_file" >&6;}
6839     rm -f "$ac_file"
6840   fi
6841   # Let's still pretend it is `configure' which instantiates (i.e., don't
6842   # use $as_me), people would be surprised to read:
6843   #    /* config.h.  Generated by config.status.  */
6844   if test x"$ac_file" = x-; then
6845     configure_input=
6846   else
6847     configure_input="$ac_file.  "
6848   fi
6849   configure_input=$configure_input"Generated from `echo $ac_file_in |
6850                                      sed 's,.*/,,'` by configure."
6851
6852   # First look for the input files in the build tree, otherwise in the
6853   # src tree.
6854   ac_file_inputs=`IFS=:
6855     for f in $ac_file_in; do
6856       case $f in
6857       -) echo $tmp/stdin ;;
6858       [\\/$]*)
6859          # Absolute (can't be DOS-style, as IFS=:)
6860          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6861 echo "$as_me: error: cannot find input file: $f" >&2;}
6862    { (exit 1); exit 1; }; }
6863          echo $f;;
6864       *) # Relative
6865          if test -f "$f"; then
6866            # Build tree
6867            echo $f
6868          elif test -f "$srcdir/$f"; then
6869            # Source tree
6870            echo $srcdir/$f
6871          else
6872            # /dev/null tree
6873            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6874 echo "$as_me: error: cannot find input file: $f" >&2;}
6875    { (exit 1); exit 1; }; }
6876          fi;;
6877       esac
6878     done` || { (exit 1); exit 1; }
6879 _ACEOF
6880 cat >>$CONFIG_STATUS <<_ACEOF
6881   sed "$ac_vpsub
6882 $extrasub
6883 _ACEOF
6884 cat >>$CONFIG_STATUS <<\_ACEOF
6885 :t
6886 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6887 s,@configure_input@,$configure_input,;t t
6888 s,@srcdir@,$ac_srcdir,;t t
6889 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6890 s,@top_srcdir@,$ac_top_srcdir,;t t
6891 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6892 s,@builddir@,$ac_builddir,;t t
6893 s,@abs_builddir@,$ac_abs_builddir,;t t
6894 s,@top_builddir@,$ac_top_builddir,;t t
6895 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6896 s,@INSTALL@,$ac_INSTALL,;t t
6897 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6898   rm -f $tmp/stdin
6899   if test x"$ac_file" != x-; then
6900     mv $tmp/out $ac_file
6901   else
6902     cat $tmp/out
6903     rm -f $tmp/out
6904   fi
6905
6906 done
6907 _ACEOF
6908 cat >>$CONFIG_STATUS <<\_ACEOF
6909
6910 #
6911 # CONFIG_COMMANDS section.
6912 #
6913 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6914   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6915   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6916   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6917 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6918          X"$ac_dest" : 'X\(//\)[^/]' \| \
6919          X"$ac_dest" : 'X\(//\)$' \| \
6920          X"$ac_dest" : 'X\(/\)' \| \
6921          .     : '\(.\)' 2>/dev/null ||
6922 echo X"$ac_dest" |
6923     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6924           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6925           /^X\(\/\/\)$/{ s//\1/; q; }
6926           /^X\(\/\).*/{ s//\1/; q; }
6927           s/.*/./; q'`
6928   ac_builddir=.
6929
6930 if test "$ac_dir" != .; then
6931   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6932   # A "../" for each directory in $ac_dir_suffix.
6933   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6934 else
6935   ac_dir_suffix= ac_top_builddir=
6936 fi
6937
6938 case $srcdir in
6939   .)  # No --srcdir option.  We are building in place.
6940     ac_srcdir=.
6941     if test -z "$ac_top_builddir"; then
6942        ac_top_srcdir=.
6943     else
6944        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6945     fi ;;
6946   [\\/]* | ?:[\\/]* )  # Absolute path.
6947     ac_srcdir=$srcdir$ac_dir_suffix;
6948     ac_top_srcdir=$srcdir ;;
6949   *) # Relative path.
6950     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6951     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6952 esac
6953 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6954 # absolute.
6955 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6956 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6957 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6958 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6959
6960
6961   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6962 echo "$as_me: executing $ac_dest commands" >&6;}
6963   case $ac_dest in
6964     default )
6965 echo "$INCLUDES $DEFS" > boehm-cflags
6966
6967 if test -n "$CONFIG_FILES"; then
6968   LD="${ORIGINAL_LD_FOR_MULTILIBS}"
6969   ac_file=Makefile . ${gc_basedir}/../config-ml.in
6970 fi ;;
6971   esac
6972 done
6973 _ACEOF
6974
6975 cat >>$CONFIG_STATUS <<\_ACEOF
6976
6977 { (exit 0); exit 0; }
6978 _ACEOF
6979 chmod +x $CONFIG_STATUS
6980 ac_clean_files=$ac_clean_files_save
6981
6982
6983 # configure is writing to config.log, and then calls config.status.
6984 # config.status does its own redirection, appending to config.log.
6985 # Unfortunately, on DOS this fails, as config.log is still kept open
6986 # by configure, so config.status won't be able to write to it; its
6987 # output is simply discarded.  So we exec the FD to /dev/null,
6988 # effectively closing config.log, so it can be properly (re)opened and
6989 # appended to by config.status.  When coming back to configure, we
6990 # need to make the FD available again.
6991 if test "$no_create" != yes; then
6992   ac_cs_success=:
6993   ac_config_status_args=
6994   test "$silent" = yes &&
6995     ac_config_status_args="$ac_config_status_args --quiet"
6996   exec 5>/dev/null
6997   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6998   exec 5>>config.log
6999   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7000   # would make configure fail if this is the last instruction.
7001   $ac_cs_success || { (exit 1); exit 1; }
7002 fi
7003