OSDN Git Service

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