OSDN Git Service

* tree-ssa-operands.c (add_call_clobber_ops): Fix unused variable
[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"                   || test ! -s conftest.err'
2526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527   (eval $ac_try) 2>&5
2528   ac_status=$?
2529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530   (exit $ac_status); }; } &&
2531          { ac_try='test -s conftest.$ac_objext'
2532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533   (eval $ac_try) 2>&5
2534   ac_status=$?
2535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536   (exit $ac_status); }; }; then
2537   ac_compiler_gnu=yes
2538 else
2539   echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2541
2542 ac_compiler_gnu=no
2543 fi
2544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2545 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2546
2547 fi
2548 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2549 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2550 GCC=`test $ac_compiler_gnu = yes && echo yes`
2551 ac_test_CFLAGS=${CFLAGS+set}
2552 ac_save_CFLAGS=$CFLAGS
2553 CFLAGS="-g"
2554 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2555 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2556 if test "${ac_cv_prog_cc_g+set}" = set; then
2557   echo $ECHO_N "(cached) $ECHO_C" >&6
2558 else
2559   cat >conftest.$ac_ext <<_ACEOF
2560 /* confdefs.h.  */
2561 _ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h.  */
2565
2566 int
2567 main ()
2568 {
2569
2570   ;
2571   return 0;
2572 }
2573 _ACEOF
2574 rm -f conftest.$ac_objext
2575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2576   (eval $ac_compile) 2>conftest.er1
2577   ac_status=$?
2578   grep -v '^ *+' conftest.er1 >conftest.err
2579   rm -f conftest.er1
2580   cat conftest.err >&5
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); } &&
2583          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585   (eval $ac_try) 2>&5
2586   ac_status=$?
2587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588   (exit $ac_status); }; } &&
2589          { ac_try='test -s conftest.$ac_objext'
2590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591   (eval $ac_try) 2>&5
2592   ac_status=$?
2593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594   (exit $ac_status); }; }; then
2595   ac_cv_prog_cc_g=yes
2596 else
2597   echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2599
2600 ac_cv_prog_cc_g=no
2601 fi
2602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2603 fi
2604 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2605 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2606 if test "$ac_test_CFLAGS" = set; then
2607   CFLAGS=$ac_save_CFLAGS
2608 elif test $ac_cv_prog_cc_g = yes; then
2609   if test "$GCC" = yes; then
2610     CFLAGS="-g -O2"
2611   else
2612     CFLAGS="-g"
2613   fi
2614 else
2615   if test "$GCC" = yes; then
2616     CFLAGS="-O2"
2617   else
2618     CFLAGS=
2619   fi
2620 fi
2621 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2622 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2623 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2624   echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626   ac_cv_prog_cc_stdc=no
2627 ac_save_CC=$CC
2628 cat >conftest.$ac_ext <<_ACEOF
2629 /* confdefs.h.  */
2630 _ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h.  */
2634 #include <stdarg.h>
2635 #include <stdio.h>
2636 #include <sys/types.h>
2637 #include <sys/stat.h>
2638 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2639 struct buf { int x; };
2640 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2641 static char *e (p, i)
2642      char **p;
2643      int i;
2644 {
2645   return p[i];
2646 }
2647 static char *f (char * (*g) (char **, int), char **p, ...)
2648 {
2649   char *s;
2650   va_list v;
2651   va_start (v,p);
2652   s = g (p, va_arg (v,int));
2653   va_end (v);
2654   return s;
2655 }
2656
2657 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2658    function prototypes and stuff, but not '\xHH' hex character constants.
2659    These don't provoke an error unfortunately, instead are silently treated
2660    as 'x'.  The following induces an error, until -std1 is added to get
2661    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2662    array size at least.  It's necessary to write '\x00'==0 to get something
2663    that's true only with -std1.  */
2664 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2665
2666 int test (int i, double x);
2667 struct s1 {int (*f) (int a);};
2668 struct s2 {int (*f) (double a);};
2669 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2670 int argc;
2671 char **argv;
2672 int
2673 main ()
2674 {
2675 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2676   ;
2677   return 0;
2678 }
2679 _ACEOF
2680 # Don't try gcc -ansi; that turns off useful extensions and
2681 # breaks some systems' header files.
2682 # AIX                   -qlanglvl=ansi
2683 # Ultrix and OSF/1      -std1
2684 # HP-UX 10.20 and later -Ae
2685 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2686 # SVR4                  -Xc -D__EXTENSIONS__
2687 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2688 do
2689   CC="$ac_save_CC $ac_arg"
2690   rm -f conftest.$ac_objext
2691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692   (eval $ac_compile) 2>conftest.er1
2693   ac_status=$?
2694   grep -v '^ *+' conftest.er1 >conftest.err
2695   rm -f conftest.er1
2696   cat conftest.err >&5
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); } &&
2699          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701   (eval $ac_try) 2>&5
2702   ac_status=$?
2703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704   (exit $ac_status); }; } &&
2705          { ac_try='test -s conftest.$ac_objext'
2706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707   (eval $ac_try) 2>&5
2708   ac_status=$?
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); }; }; then
2711   ac_cv_prog_cc_stdc=$ac_arg
2712 break
2713 else
2714   echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2716
2717 fi
2718 rm -f conftest.err conftest.$ac_objext
2719 done
2720 rm -f conftest.$ac_ext conftest.$ac_objext
2721 CC=$ac_save_CC
2722
2723 fi
2724
2725 case "x$ac_cv_prog_cc_stdc" in
2726   x|xno)
2727     echo "$as_me:$LINENO: result: none needed" >&5
2728 echo "${ECHO_T}none needed" >&6 ;;
2729   *)
2730     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2731 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2732     CC="$CC $ac_cv_prog_cc_stdc" ;;
2733 esac
2734
2735 # Some people use a C++ compiler to compile C.  Since we use `exit',
2736 # in C++ we need to declare it.  In case someone uses the same compiler
2737 # for both compiling C and C++ we need to have the C++ compiler decide
2738 # the declaration of exit, since it's the most demanding environment.
2739 cat >conftest.$ac_ext <<_ACEOF
2740 #ifndef __cplusplus
2741   choke me
2742 #endif
2743 _ACEOF
2744 rm -f conftest.$ac_objext
2745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746   (eval $ac_compile) 2>conftest.er1
2747   ac_status=$?
2748   grep -v '^ *+' conftest.er1 >conftest.err
2749   rm -f conftest.er1
2750   cat conftest.err >&5
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); } &&
2753          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755   (eval $ac_try) 2>&5
2756   ac_status=$?
2757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758   (exit $ac_status); }; } &&
2759          { ac_try='test -s conftest.$ac_objext'
2760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761   (eval $ac_try) 2>&5
2762   ac_status=$?
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); }; }; then
2765   for ac_declaration in \
2766    '' \
2767    'extern "C" void std::exit (int) throw (); using std::exit;' \
2768    'extern "C" void std::exit (int); using std::exit;' \
2769    'extern "C" void exit (int) throw ();' \
2770    'extern "C" void exit (int);' \
2771    'void exit (int);'
2772 do
2773   cat >conftest.$ac_ext <<_ACEOF
2774 /* confdefs.h.  */
2775 _ACEOF
2776 cat confdefs.h >>conftest.$ac_ext
2777 cat >>conftest.$ac_ext <<_ACEOF
2778 /* end confdefs.h.  */
2779 $ac_declaration
2780 #include <stdlib.h>
2781 int
2782 main ()
2783 {
2784 exit (42);
2785   ;
2786   return 0;
2787 }
2788 _ACEOF
2789 rm -f conftest.$ac_objext
2790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2791   (eval $ac_compile) 2>conftest.er1
2792   ac_status=$?
2793   grep -v '^ *+' conftest.er1 >conftest.err
2794   rm -f conftest.er1
2795   cat conftest.err >&5
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); } &&
2798          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800   (eval $ac_try) 2>&5
2801   ac_status=$?
2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803   (exit $ac_status); }; } &&
2804          { ac_try='test -s conftest.$ac_objext'
2805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806   (eval $ac_try) 2>&5
2807   ac_status=$?
2808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809   (exit $ac_status); }; }; then
2810   :
2811 else
2812   echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2814
2815 continue
2816 fi
2817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2818   cat >conftest.$ac_ext <<_ACEOF
2819 /* confdefs.h.  */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h.  */
2824 $ac_declaration
2825 int
2826 main ()
2827 {
2828 exit (42);
2829   ;
2830   return 0;
2831 }
2832 _ACEOF
2833 rm -f conftest.$ac_objext
2834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2835   (eval $ac_compile) 2>conftest.er1
2836   ac_status=$?
2837   grep -v '^ *+' conftest.er1 >conftest.err
2838   rm -f conftest.er1
2839   cat conftest.err >&5
2840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841   (exit $ac_status); } &&
2842          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844   (eval $ac_try) 2>&5
2845   ac_status=$?
2846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847   (exit $ac_status); }; } &&
2848          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2854   break
2855 else
2856   echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2858
2859 fi
2860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2861 done
2862 rm -f conftest*
2863 if test -n "$ac_declaration"; then
2864   echo '#ifdef __cplusplus' >>confdefs.h
2865   echo $ac_declaration      >>confdefs.h
2866   echo '#endif'             >>confdefs.h
2867 fi
2868
2869 else
2870   echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2872
2873 fi
2874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2875 ac_ext=c
2876 ac_cpp='$CPP $CPPFLAGS'
2877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2880 DEPDIR="${am__leading_dot}deps"
2881
2882           ac_config_commands="$ac_config_commands depfiles"
2883
2884
2885 am_make=${MAKE-make}
2886 cat > confinc << 'END'
2887 am__doit:
2888         @echo done
2889 .PHONY: am__doit
2890 END
2891 # If we don't find an include directive, just comment out the code.
2892 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2893 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2894 am__include="#"
2895 am__quote=
2896 _am_result=none
2897 # First try GNU make style include.
2898 echo "include confinc" > confmf
2899 # We grep out `Entering directory' and `Leaving directory'
2900 # messages which can occur if `w' ends up in MAKEFLAGS.
2901 # In particular we don't look at `^make:' because GNU make might
2902 # be invoked under some other name (usually "gmake"), in which
2903 # case it prints its new name instead of `make'.
2904 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2905    am__include=include
2906    am__quote=
2907    _am_result=GNU
2908 fi
2909 # Now try BSD make style include.
2910 if test "$am__include" = "#"; then
2911    echo '.include "confinc"' > confmf
2912    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2913       am__include=.include
2914       am__quote="\""
2915       _am_result=BSD
2916    fi
2917 fi
2918
2919
2920 echo "$as_me:$LINENO: result: $_am_result" >&5
2921 echo "${ECHO_T}$_am_result" >&6
2922 rm -f confinc confmf
2923
2924 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2925 if test "${enable_dependency_tracking+set}" = set; then
2926   enableval="$enable_dependency_tracking"
2927
2928 fi;
2929 if test "x$enable_dependency_tracking" != xno; then
2930   am_depcomp="$ac_aux_dir/depcomp"
2931   AMDEPBACKSLASH='\'
2932 fi
2933
2934
2935 if test "x$enable_dependency_tracking" != xno; then
2936   AMDEP_TRUE=
2937   AMDEP_FALSE='#'
2938 else
2939   AMDEP_TRUE='#'
2940   AMDEP_FALSE=
2941 fi
2942
2943
2944
2945
2946 depcc="$CC"   am_compiler_list=
2947
2948 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2949 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2950 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2951   echo $ECHO_N "(cached) $ECHO_C" >&6
2952 else
2953   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2954   # We make a subdir and do the tests there.  Otherwise we can end up
2955   # making bogus files that we don't know about and never remove.  For
2956   # instance it was reported that on HP-UX the gcc test will end up
2957   # making a dummy file named `D' -- because `-MD' means `put the output
2958   # in D'.
2959   mkdir conftest.dir
2960   # Copy depcomp to subdir because otherwise we won't find it if we're
2961   # using a relative directory.
2962   cp "$am_depcomp" conftest.dir
2963   cd conftest.dir
2964   # We will build objects and dependencies in a subdirectory because
2965   # it helps to detect inapplicable dependency modes.  For instance
2966   # both Tru64's cc and ICC support -MD to output dependencies as a
2967   # side effect of compilation, but ICC will put the dependencies in
2968   # the current directory while Tru64 will put them in the object
2969   # directory.
2970   mkdir sub
2971
2972   am_cv_CC_dependencies_compiler_type=none
2973   if test "$am_compiler_list" = ""; then
2974      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2975   fi
2976   for depmode in $am_compiler_list; do
2977     # Setup a source with many dependencies, because some compilers
2978     # like to wrap large dependency lists on column 80 (with \), and
2979     # we should not choose a depcomp mode which is confused by this.
2980     #
2981     # We need to recreate these files for each test, as the compiler may
2982     # overwrite some of them when testing with obscure command lines.
2983     # This happens at least with the AIX C compiler.
2984     : > sub/conftest.c
2985     for i in 1 2 3 4 5 6; do
2986       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2987       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2988       # Solaris 8's {/usr,}/bin/sh.
2989       touch sub/conftst$i.h
2990     done
2991     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2992
2993     case $depmode in
2994     nosideeffect)
2995       # after this tag, mechanisms are not by side-effect, so they'll
2996       # only be used when explicitly requested
2997       if test "x$enable_dependency_tracking" = xyes; then
2998         continue
2999       else
3000         break
3001       fi
3002       ;;
3003     none) break ;;
3004     esac
3005     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3006     # mode.  It turns out that the SunPro C++ compiler does not properly
3007     # handle `-M -o', and we need to detect this.
3008     if depmode=$depmode \
3009        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3010        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3011        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3012          >/dev/null 2>conftest.err &&
3013        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3014        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3015        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3016       # icc doesn't choke on unknown options, it will just issue warnings
3017       # or remarks (even with -Werror).  So we grep stderr for any message
3018       # that says an option was ignored or not supported.
3019       # When given -MP, icc 7.0 and 7.1 complain thusly:
3020       #   icc: Command line warning: ignoring option '-M'; no argument required
3021       # The diagnosis changed in icc 8.0:
3022       #   icc: Command line remark: option '-MP' not supported
3023       if (grep 'ignoring option' conftest.err ||
3024           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3025         am_cv_CC_dependencies_compiler_type=$depmode
3026         break
3027       fi
3028     fi
3029   done
3030
3031   cd ..
3032   rm -rf conftest.dir
3033 else
3034   am_cv_CC_dependencies_compiler_type=none
3035 fi
3036
3037 fi
3038 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3039 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3040 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3041
3042
3043
3044 if
3045   test "x$enable_dependency_tracking" != xno \
3046   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3047   am__fastdepCC_TRUE=
3048   am__fastdepCC_FALSE='#'
3049 else
3050   am__fastdepCC_TRUE='#'
3051   am__fastdepCC_FALSE=
3052 fi
3053
3054
3055 ac_ext=cc
3056 ac_cpp='$CXXCPP $CPPFLAGS'
3057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3060 if test -n "$ac_tool_prefix"; then
3061   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3062   do
3063     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3064 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3065 echo "$as_me:$LINENO: checking for $ac_word" >&5
3066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3067 if test "${ac_cv_prog_CXX+set}" = set; then
3068   echo $ECHO_N "(cached) $ECHO_C" >&6
3069 else
3070   if test -n "$CXX"; then
3071   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3072 else
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 for as_dir in $PATH
3075 do
3076   IFS=$as_save_IFS
3077   test -z "$as_dir" && as_dir=.
3078   for ac_exec_ext in '' $ac_executable_extensions; do
3079   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3080     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3082     break 2
3083   fi
3084 done
3085 done
3086
3087 fi
3088 fi
3089 CXX=$ac_cv_prog_CXX
3090 if test -n "$CXX"; then
3091   echo "$as_me:$LINENO: result: $CXX" >&5
3092 echo "${ECHO_T}$CXX" >&6
3093 else
3094   echo "$as_me:$LINENO: result: no" >&5
3095 echo "${ECHO_T}no" >&6
3096 fi
3097
3098     test -n "$CXX" && break
3099   done
3100 fi
3101 if test -z "$CXX"; then
3102   ac_ct_CXX=$CXX
3103   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3104 do
3105   # Extract the first word of "$ac_prog", so it can be a program name with args.
3106 set dummy $ac_prog; ac_word=$2
3107 echo "$as_me:$LINENO: checking for $ac_word" >&5
3108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3109 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3110   echo $ECHO_N "(cached) $ECHO_C" >&6
3111 else
3112   if test -n "$ac_ct_CXX"; then
3113   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3114 else
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH
3117 do
3118   IFS=$as_save_IFS
3119   test -z "$as_dir" && as_dir=.
3120   for ac_exec_ext in '' $ac_executable_extensions; do
3121   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122     ac_cv_prog_ac_ct_CXX="$ac_prog"
3123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3124     break 2
3125   fi
3126 done
3127 done
3128
3129 fi
3130 fi
3131 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3132 if test -n "$ac_ct_CXX"; then
3133   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3134 echo "${ECHO_T}$ac_ct_CXX" >&6
3135 else
3136   echo "$as_me:$LINENO: result: no" >&5
3137 echo "${ECHO_T}no" >&6
3138 fi
3139
3140   test -n "$ac_ct_CXX" && break
3141 done
3142 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3143
3144   CXX=$ac_ct_CXX
3145 fi
3146
3147
3148 # Provide some information about the compiler.
3149 echo "$as_me:$LINENO:" \
3150      "checking for C++ compiler version" >&5
3151 ac_compiler=`set X $ac_compile; echo $2`
3152 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3153   (eval $ac_compiler --version </dev/null >&5) 2>&5
3154   ac_status=$?
3155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156   (exit $ac_status); }
3157 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3158   (eval $ac_compiler -v </dev/null >&5) 2>&5
3159   ac_status=$?
3160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161   (exit $ac_status); }
3162 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3163   (eval $ac_compiler -V </dev/null >&5) 2>&5
3164   ac_status=$?
3165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166   (exit $ac_status); }
3167
3168 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3169 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3170 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3171   echo $ECHO_N "(cached) $ECHO_C" >&6
3172 else
3173   cat >conftest.$ac_ext <<_ACEOF
3174 /* confdefs.h.  */
3175 _ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h.  */
3179
3180 int
3181 main ()
3182 {
3183 #ifndef __GNUC__
3184        choke me
3185 #endif
3186
3187   ;
3188   return 0;
3189 }
3190 _ACEOF
3191 rm -f conftest.$ac_objext
3192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3193   (eval $ac_compile) 2>conftest.er1
3194   ac_status=$?
3195   grep -v '^ *+' conftest.er1 >conftest.err
3196   rm -f conftest.er1
3197   cat conftest.err >&5
3198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199   (exit $ac_status); } &&
3200          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3202   (eval $ac_try) 2>&5
3203   ac_status=$?
3204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205   (exit $ac_status); }; } &&
3206          { ac_try='test -s conftest.$ac_objext'
3207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3208   (eval $ac_try) 2>&5
3209   ac_status=$?
3210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211   (exit $ac_status); }; }; then
3212   ac_compiler_gnu=yes
3213 else
3214   echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3216
3217 ac_compiler_gnu=no
3218 fi
3219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3220 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3221
3222 fi
3223 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3224 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3225 GXX=`test $ac_compiler_gnu = yes && echo yes`
3226 ac_test_CXXFLAGS=${CXXFLAGS+set}
3227 ac_save_CXXFLAGS=$CXXFLAGS
3228 CXXFLAGS="-g"
3229 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3230 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3231 if test "${ac_cv_prog_cxx_g+set}" = set; then
3232   echo $ECHO_N "(cached) $ECHO_C" >&6
3233 else
3234   cat >conftest.$ac_ext <<_ACEOF
3235 /* confdefs.h.  */
3236 _ACEOF
3237 cat confdefs.h >>conftest.$ac_ext
3238 cat >>conftest.$ac_ext <<_ACEOF
3239 /* end confdefs.h.  */
3240
3241 int
3242 main ()
3243 {
3244
3245   ;
3246   return 0;
3247 }
3248 _ACEOF
3249 rm -f conftest.$ac_objext
3250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3251   (eval $ac_compile) 2>conftest.er1
3252   ac_status=$?
3253   grep -v '^ *+' conftest.er1 >conftest.err
3254   rm -f conftest.er1
3255   cat conftest.err >&5
3256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257   (exit $ac_status); } &&
3258          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260   (eval $ac_try) 2>&5
3261   ac_status=$?
3262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263   (exit $ac_status); }; } &&
3264          { ac_try='test -s conftest.$ac_objext'
3265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266   (eval $ac_try) 2>&5
3267   ac_status=$?
3268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269   (exit $ac_status); }; }; then
3270   ac_cv_prog_cxx_g=yes
3271 else
3272   echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3274
3275 ac_cv_prog_cxx_g=no
3276 fi
3277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3278 fi
3279 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3280 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3281 if test "$ac_test_CXXFLAGS" = set; then
3282   CXXFLAGS=$ac_save_CXXFLAGS
3283 elif test $ac_cv_prog_cxx_g = yes; then
3284   if test "$GXX" = yes; then
3285     CXXFLAGS="-g -O2"
3286   else
3287     CXXFLAGS="-g"
3288   fi
3289 else
3290   if test "$GXX" = yes; then
3291     CXXFLAGS="-O2"
3292   else
3293     CXXFLAGS=
3294   fi
3295 fi
3296 for ac_declaration in \
3297    '' \
3298    'extern "C" void std::exit (int) throw (); using std::exit;' \
3299    'extern "C" void std::exit (int); using std::exit;' \
3300    'extern "C" void exit (int) throw ();' \
3301    'extern "C" void exit (int);' \
3302    'void exit (int);'
3303 do
3304   cat >conftest.$ac_ext <<_ACEOF
3305 /* confdefs.h.  */
3306 _ACEOF
3307 cat confdefs.h >>conftest.$ac_ext
3308 cat >>conftest.$ac_ext <<_ACEOF
3309 /* end confdefs.h.  */
3310 $ac_declaration
3311 #include <stdlib.h>
3312 int
3313 main ()
3314 {
3315 exit (42);
3316   ;
3317   return 0;
3318 }
3319 _ACEOF
3320 rm -f conftest.$ac_objext
3321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3322   (eval $ac_compile) 2>conftest.er1
3323   ac_status=$?
3324   grep -v '^ *+' conftest.er1 >conftest.err
3325   rm -f conftest.er1
3326   cat conftest.err >&5
3327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328   (exit $ac_status); } &&
3329          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3331   (eval $ac_try) 2>&5
3332   ac_status=$?
3333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334   (exit $ac_status); }; } &&
3335          { ac_try='test -s conftest.$ac_objext'
3336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3337   (eval $ac_try) 2>&5
3338   ac_status=$?
3339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340   (exit $ac_status); }; }; then
3341   :
3342 else
3343   echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3345
3346 continue
3347 fi
3348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3349   cat >conftest.$ac_ext <<_ACEOF
3350 /* confdefs.h.  */
3351 _ACEOF
3352 cat confdefs.h >>conftest.$ac_ext
3353 cat >>conftest.$ac_ext <<_ACEOF
3354 /* end confdefs.h.  */
3355 $ac_declaration
3356 int
3357 main ()
3358 {
3359 exit (42);
3360   ;
3361   return 0;
3362 }
3363 _ACEOF
3364 rm -f conftest.$ac_objext
3365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3366   (eval $ac_compile) 2>conftest.er1
3367   ac_status=$?
3368   grep -v '^ *+' conftest.er1 >conftest.err
3369   rm -f conftest.er1
3370   cat conftest.err >&5
3371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372   (exit $ac_status); } &&
3373          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375   (eval $ac_try) 2>&5
3376   ac_status=$?
3377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378   (exit $ac_status); }; } &&
3379          { ac_try='test -s conftest.$ac_objext'
3380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381   (eval $ac_try) 2>&5
3382   ac_status=$?
3383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384   (exit $ac_status); }; }; then
3385   break
3386 else
3387   echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3389
3390 fi
3391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3392 done
3393 rm -f conftest*
3394 if test -n "$ac_declaration"; then
3395   echo '#ifdef __cplusplus' >>confdefs.h
3396   echo $ac_declaration      >>confdefs.h
3397   echo '#endif'             >>confdefs.h
3398 fi
3399
3400 ac_ext=c
3401 ac_cpp='$CPP $CPPFLAGS'
3402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405
3406 depcc="$CXX"  am_compiler_list=
3407
3408 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3409 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3410 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3411   echo $ECHO_N "(cached) $ECHO_C" >&6
3412 else
3413   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3414   # We make a subdir and do the tests there.  Otherwise we can end up
3415   # making bogus files that we don't know about and never remove.  For
3416   # instance it was reported that on HP-UX the gcc test will end up
3417   # making a dummy file named `D' -- because `-MD' means `put the output
3418   # in D'.
3419   mkdir conftest.dir
3420   # Copy depcomp to subdir because otherwise we won't find it if we're
3421   # using a relative directory.
3422   cp "$am_depcomp" conftest.dir
3423   cd conftest.dir
3424   # We will build objects and dependencies in a subdirectory because
3425   # it helps to detect inapplicable dependency modes.  For instance
3426   # both Tru64's cc and ICC support -MD to output dependencies as a
3427   # side effect of compilation, but ICC will put the dependencies in
3428   # the current directory while Tru64 will put them in the object
3429   # directory.
3430   mkdir sub
3431
3432   am_cv_CXX_dependencies_compiler_type=none
3433   if test "$am_compiler_list" = ""; then
3434      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3435   fi
3436   for depmode in $am_compiler_list; do
3437     # Setup a source with many dependencies, because some compilers
3438     # like to wrap large dependency lists on column 80 (with \), and
3439     # we should not choose a depcomp mode which is confused by this.
3440     #
3441     # We need to recreate these files for each test, as the compiler may
3442     # overwrite some of them when testing with obscure command lines.
3443     # This happens at least with the AIX C compiler.
3444     : > sub/conftest.c
3445     for i in 1 2 3 4 5 6; do
3446       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3447       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3448       # Solaris 8's {/usr,}/bin/sh.
3449       touch sub/conftst$i.h
3450     done
3451     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3452
3453     case $depmode in
3454     nosideeffect)
3455       # after this tag, mechanisms are not by side-effect, so they'll
3456       # only be used when explicitly requested
3457       if test "x$enable_dependency_tracking" = xyes; then
3458         continue
3459       else
3460         break
3461       fi
3462       ;;
3463     none) break ;;
3464     esac
3465     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3466     # mode.  It turns out that the SunPro C++ compiler does not properly
3467     # handle `-M -o', and we need to detect this.
3468     if depmode=$depmode \
3469        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3470        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3471        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3472          >/dev/null 2>conftest.err &&
3473        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3474        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3475        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3476       # icc doesn't choke on unknown options, it will just issue warnings
3477       # or remarks (even with -Werror).  So we grep stderr for any message
3478       # that says an option was ignored or not supported.
3479       # When given -MP, icc 7.0 and 7.1 complain thusly:
3480       #   icc: Command line warning: ignoring option '-M'; no argument required
3481       # The diagnosis changed in icc 8.0:
3482       #   icc: Command line remark: option '-MP' not supported
3483       if (grep 'ignoring option' conftest.err ||
3484           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3485         am_cv_CXX_dependencies_compiler_type=$depmode
3486         break
3487       fi
3488     fi
3489   done
3490
3491   cd ..
3492   rm -rf conftest.dir
3493 else
3494   am_cv_CXX_dependencies_compiler_type=none
3495 fi
3496
3497 fi
3498 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3499 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3500 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3501
3502
3503
3504 if
3505   test "x$enable_dependency_tracking" != xno \
3506   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3507   am__fastdepCXX_TRUE=
3508   am__fastdepCXX_FALSE='#'
3509 else
3510   am__fastdepCXX_TRUE='#'
3511   am__fastdepCXX_FALSE=
3512 fi
3513
3514
3515
3516
3517 if test "x$CC" != xcc; then
3518   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3519 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3520 else
3521   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3522 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3523 fi
3524 set dummy $CC; ac_cc=`echo $2 |
3525                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3526 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3527   echo $ECHO_N "(cached) $ECHO_C" >&6
3528 else
3529   cat >conftest.$ac_ext <<_ACEOF
3530 /* confdefs.h.  */
3531 _ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h.  */
3535
3536 int
3537 main ()
3538 {
3539
3540   ;
3541   return 0;
3542 }
3543 _ACEOF
3544 # Make sure it works both with $CC and with simple cc.
3545 # We do the test twice because some compilers refuse to overwrite an
3546 # existing .o file with -o, though they will create one.
3547 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3548 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549   (eval $ac_try) 2>&5
3550   ac_status=$?
3551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552   (exit $ac_status); } &&
3553    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554   (eval $ac_try) 2>&5
3555   ac_status=$?
3556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557   (exit $ac_status); };
3558 then
3559   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3560   if test "x$CC" != xcc; then
3561     # Test first that cc exists at all.
3562     if { ac_try='cc -c conftest.$ac_ext >&5'
3563   { (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); }; }; then
3568       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3569       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570   (eval $ac_try) 2>&5
3571   ac_status=$?
3572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573   (exit $ac_status); } &&
3574          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3575   (eval $ac_try) 2>&5
3576   ac_status=$?
3577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578   (exit $ac_status); };
3579       then
3580         # cc works too.
3581         :
3582       else
3583         # cc exists but doesn't like -o.
3584         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3585       fi
3586     fi
3587   fi
3588 else
3589   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3590 fi
3591 rm -f conftest*
3592
3593 fi
3594 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3595   echo "$as_me:$LINENO: result: yes" >&5
3596 echo "${ECHO_T}yes" >&6
3597 else
3598   echo "$as_me:$LINENO: result: no" >&5
3599 echo "${ECHO_T}no" >&6
3600
3601 cat >>confdefs.h <<\_ACEOF
3602 #define NO_MINUS_C_MINUS_O 1
3603 _ACEOF
3604
3605 fi
3606
3607 # FIXME: we rely on the cache variable name because
3608 # there is no other way.
3609 set dummy $CC
3610 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3611 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3612    # Losing compiler, so override with the script.
3613    # FIXME: It is wrong to rewrite CC.
3614    # But if we don't then we get into trouble of one sort or another.
3615    # A longer-term fix would be to have automake use am__CC in this case,
3616    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3617    CC="$am_aux_dir/compile $CC"
3618 fi
3619
3620
3621
3622
3623
3624 # Newer automakes demand CCAS and CCASFLAGS.
3625 : ${CCAS='$(CC)'}
3626 : ${CCASFLAGS='$(CFLAGS)'}
3627
3628
3629
3630 if test -n "$ac_tool_prefix"; then
3631   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3632 set dummy ${ac_tool_prefix}as; ac_word=$2
3633 echo "$as_me:$LINENO: checking for $ac_word" >&5
3634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3635 if test "${ac_cv_prog_AS+set}" = set; then
3636   echo $ECHO_N "(cached) $ECHO_C" >&6
3637 else
3638   if test -n "$AS"; then
3639   ac_cv_prog_AS="$AS" # Let the user override the test.
3640 else
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH
3643 do
3644   IFS=$as_save_IFS
3645   test -z "$as_dir" && as_dir=.
3646   for ac_exec_ext in '' $ac_executable_extensions; do
3647   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3648     ac_cv_prog_AS="${ac_tool_prefix}as"
3649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3650     break 2
3651   fi
3652 done
3653 done
3654
3655 fi
3656 fi
3657 AS=$ac_cv_prog_AS
3658 if test -n "$AS"; then
3659   echo "$as_me:$LINENO: result: $AS" >&5
3660 echo "${ECHO_T}$AS" >&6
3661 else
3662   echo "$as_me:$LINENO: result: no" >&5
3663 echo "${ECHO_T}no" >&6
3664 fi
3665
3666 fi
3667 if test -z "$ac_cv_prog_AS"; then
3668   ac_ct_AS=$AS
3669   # Extract the first word of "as", so it can be a program name with args.
3670 set dummy as; ac_word=$2
3671 echo "$as_me:$LINENO: checking for $ac_word" >&5
3672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3673 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3674   echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676   if test -n "$ac_ct_AS"; then
3677   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3678 else
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 for as_dir in $PATH
3681 do
3682   IFS=$as_save_IFS
3683   test -z "$as_dir" && as_dir=.
3684   for ac_exec_ext in '' $ac_executable_extensions; do
3685   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3686     ac_cv_prog_ac_ct_AS="as"
3687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3688     break 2
3689   fi
3690 done
3691 done
3692
3693 fi
3694 fi
3695 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3696 if test -n "$ac_ct_AS"; then
3697   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3698 echo "${ECHO_T}$ac_ct_AS" >&6
3699 else
3700   echo "$as_me:$LINENO: result: no" >&5
3701 echo "${ECHO_T}no" >&6
3702 fi
3703
3704   AS=$ac_ct_AS
3705 else
3706   AS="$ac_cv_prog_AS"
3707 fi
3708
3709 if test -n "$ac_tool_prefix"; then
3710   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3711 set dummy ${ac_tool_prefix}ar; ac_word=$2
3712 echo "$as_me:$LINENO: checking for $ac_word" >&5
3713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3714 if test "${ac_cv_prog_AR+set}" = set; then
3715   echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717   if test -n "$AR"; then
3718   ac_cv_prog_AR="$AR" # Let the user override the test.
3719 else
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721 for as_dir in $PATH
3722 do
3723   IFS=$as_save_IFS
3724   test -z "$as_dir" && as_dir=.
3725   for ac_exec_ext in '' $ac_executable_extensions; do
3726   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3727     ac_cv_prog_AR="${ac_tool_prefix}ar"
3728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3729     break 2
3730   fi
3731 done
3732 done
3733
3734 fi
3735 fi
3736 AR=$ac_cv_prog_AR
3737 if test -n "$AR"; then
3738   echo "$as_me:$LINENO: result: $AR" >&5
3739 echo "${ECHO_T}$AR" >&6
3740 else
3741   echo "$as_me:$LINENO: result: no" >&5
3742 echo "${ECHO_T}no" >&6
3743 fi
3744
3745 fi
3746 if test -z "$ac_cv_prog_AR"; then
3747   ac_ct_AR=$AR
3748   # Extract the first word of "ar", so it can be a program name with args.
3749 set dummy ar; ac_word=$2
3750 echo "$as_me:$LINENO: checking for $ac_word" >&5
3751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3752 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3753   echo $ECHO_N "(cached) $ECHO_C" >&6
3754 else
3755   if test -n "$ac_ct_AR"; then
3756   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3757 else
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 for as_dir in $PATH
3760 do
3761   IFS=$as_save_IFS
3762   test -z "$as_dir" && as_dir=.
3763   for ac_exec_ext in '' $ac_executable_extensions; do
3764   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3765     ac_cv_prog_ac_ct_AR="ar"
3766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3767     break 2
3768   fi
3769 done
3770 done
3771
3772 fi
3773 fi
3774 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3775 if test -n "$ac_ct_AR"; then
3776   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3777 echo "${ECHO_T}$ac_ct_AR" >&6
3778 else
3779   echo "$as_me:$LINENO: result: no" >&5
3780 echo "${ECHO_T}no" >&6
3781 fi
3782
3783   AR=$ac_ct_AR
3784 else
3785   AR="$ac_cv_prog_AR"
3786 fi
3787
3788 if test -n "$ac_tool_prefix"; then
3789   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3790 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3791 echo "$as_me:$LINENO: checking for $ac_word" >&5
3792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3793 if test "${ac_cv_prog_RANLIB+set}" = set; then
3794   echo $ECHO_N "(cached) $ECHO_C" >&6
3795 else
3796   if test -n "$RANLIB"; then
3797   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3798 else
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 for as_dir in $PATH
3801 do
3802   IFS=$as_save_IFS
3803   test -z "$as_dir" && as_dir=.
3804   for ac_exec_ext in '' $ac_executable_extensions; do
3805   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3806     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3808     break 2
3809   fi
3810 done
3811 done
3812
3813 fi
3814 fi
3815 RANLIB=$ac_cv_prog_RANLIB
3816 if test -n "$RANLIB"; then
3817   echo "$as_me:$LINENO: result: $RANLIB" >&5
3818 echo "${ECHO_T}$RANLIB" >&6
3819 else
3820   echo "$as_me:$LINENO: result: no" >&5
3821 echo "${ECHO_T}no" >&6
3822 fi
3823
3824 fi
3825 if test -z "$ac_cv_prog_RANLIB"; then
3826   ac_ct_RANLIB=$RANLIB
3827   # Extract the first word of "ranlib", so it can be a program name with args.
3828 set dummy ranlib; ac_word=$2
3829 echo "$as_me:$LINENO: checking for $ac_word" >&5
3830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3831 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3832   echo $ECHO_N "(cached) $ECHO_C" >&6
3833 else
3834   if test -n "$ac_ct_RANLIB"; then
3835   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3836 else
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838 for as_dir in $PATH
3839 do
3840   IFS=$as_save_IFS
3841   test -z "$as_dir" && as_dir=.
3842   for ac_exec_ext in '' $ac_executable_extensions; do
3843   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3844     ac_cv_prog_ac_ct_RANLIB="ranlib"
3845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3846     break 2
3847   fi
3848 done
3849 done
3850
3851   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3852 fi
3853 fi
3854 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3855 if test -n "$ac_ct_RANLIB"; then
3856   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3857 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3858 else
3859   echo "$as_me:$LINENO: result: no" >&5
3860 echo "${ECHO_T}no" >&6
3861 fi
3862
3863   RANLIB=$ac_ct_RANLIB
3864 else
3865   RANLIB="$ac_cv_prog_RANLIB"
3866 fi
3867
3868
3869 # Find a good install program.  We prefer a C program (faster),
3870 # so one script is as good as another.  But avoid the broken or
3871 # incompatible versions:
3872 # SysV /etc/install, /usr/sbin/install
3873 # SunOS /usr/etc/install
3874 # IRIX /sbin/install
3875 # AIX /bin/install
3876 # AmigaOS /C/install, which installs bootblocks on floppy discs
3877 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3878 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3879 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3880 # OS/2's system install, which has a completely different semantic
3881 # ./install, which can be erroneously created by make from ./install.sh.
3882 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3883 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3884 if test -z "$INSTALL"; then
3885 if test "${ac_cv_path_install+set}" = set; then
3886   echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 for as_dir in $PATH
3890 do
3891   IFS=$as_save_IFS
3892   test -z "$as_dir" && as_dir=.
3893   # Account for people who put trailing slashes in PATH elements.
3894 case $as_dir/ in
3895   ./ | .// | /cC/* | \
3896   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3897   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3898   /usr/ucb/* ) ;;
3899   *)
3900     # OSF1 and SCO ODT 3.0 have their own names for install.
3901     # Don't use installbsd from OSF since it installs stuff as root
3902     # by default.
3903     for ac_prog in ginstall scoinst install; do
3904       for ac_exec_ext in '' $ac_executable_extensions; do
3905         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3906           if test $ac_prog = install &&
3907             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3908             # AIX install.  It has an incompatible calling convention.
3909             :
3910           elif test $ac_prog = install &&
3911             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3912             # program-specific install script used by HP pwplus--don't use.
3913             :
3914           else
3915             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3916             break 3
3917           fi
3918         fi
3919       done
3920     done
3921     ;;
3922 esac
3923 done
3924
3925
3926 fi
3927   if test "${ac_cv_path_install+set}" = set; then
3928     INSTALL=$ac_cv_path_install
3929   else
3930     # As a last resort, use the slow shell script.  We don't cache a
3931     # path for INSTALL within a source directory, because that will
3932     # break other packages using the cache if that directory is
3933     # removed, or if the path is relative.
3934     INSTALL=$ac_install_sh
3935   fi
3936 fi
3937 echo "$as_me:$LINENO: result: $INSTALL" >&5
3938 echo "${ECHO_T}$INSTALL" >&6
3939
3940 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3941 # It thinks the first close brace ends the variable substitution.
3942 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3943
3944 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3945
3946 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3947
3948
3949 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3950 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3951     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3952 if test "${enable_maintainer_mode+set}" = set; then
3953   enableval="$enable_maintainer_mode"
3954   USE_MAINTAINER_MODE=$enableval
3955 else
3956   USE_MAINTAINER_MODE=no
3957 fi;
3958   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3959 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3960
3961
3962 if test $USE_MAINTAINER_MODE = yes; then
3963   MAINTAINER_MODE_TRUE=
3964   MAINTAINER_MODE_FALSE='#'
3965 else
3966   MAINTAINER_MODE_TRUE='#'
3967   MAINTAINER_MODE_FALSE=
3968 fi
3969
3970   MAINT=$MAINTAINER_MODE_TRUE
3971
3972
3973
3974 . ${srcdir}/configure.host
3975
3976 case ${gc_basedir} in
3977 /* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
3978 *) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
3979 esac
3980
3981 gc_cflags="${gc_cflags} -Iinclude -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
3982 case "${host}" in
3983   *-*-cygwin32*)
3984     gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
3985     ;;
3986 esac
3987
3988
3989 GC_CFLAGS=${gc_cflags}
3990
3991
3992 # Check whether --enable-shared or --disable-shared was given.
3993 if test "${enable_shared+set}" = set; then
3994   enableval="$enable_shared"
3995   p=${PACKAGE-default}
3996 case $enableval in
3997 yes) enable_shared=yes ;;
3998 no) enable_shared=no ;;
3999 *)
4000   enable_shared=no
4001   # Look at the argument we got.  We use all the common list separators.
4002   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4003   for pkg in $enableval; do
4004     if test "X$pkg" = "X$p"; then
4005       enable_shared=yes
4006     fi
4007   done
4008   IFS="$ac_save_ifs"
4009   ;;
4010 esac
4011 else
4012   enable_shared=yes
4013 fi;
4014 # Check whether --enable-static or --disable-static was given.
4015 if test "${enable_static+set}" = set; then
4016   enableval="$enable_static"
4017   p=${PACKAGE-default}
4018 case $enableval in
4019 yes) enable_static=yes ;;
4020 no) enable_static=no ;;
4021 *)
4022   enable_static=no
4023   # Look at the argument we got.  We use all the common list separators.
4024   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4025   for pkg in $enableval; do
4026     if test "X$pkg" = "X$p"; then
4027       enable_static=yes
4028     fi
4029   done
4030   IFS="$ac_save_ifs"
4031   ;;
4032 esac
4033 else
4034   enable_static=yes
4035 fi;
4036 # Check whether --enable-fast-install or --disable-fast-install was given.
4037 if test "${enable_fast_install+set}" = set; then
4038   enableval="$enable_fast_install"
4039   p=${PACKAGE-default}
4040 case $enableval in
4041 yes) enable_fast_install=yes ;;
4042 no) enable_fast_install=no ;;
4043 *)
4044   enable_fast_install=no
4045   # Look at the argument we got.  We use all the common list separators.
4046   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4047   for pkg in $enableval; do
4048     if test "X$pkg" = "X$p"; then
4049       enable_fast_install=yes
4050     fi
4051   done
4052   IFS="$ac_save_ifs"
4053   ;;
4054 esac
4055 else
4056   enable_fast_install=yes
4057 fi;
4058
4059 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4060 if test "${with_gnu_ld+set}" = set; then
4061   withval="$with_gnu_ld"
4062   test "$withval" = no || with_gnu_ld=yes
4063 else
4064   with_gnu_ld=no
4065 fi;
4066 ac_prog=ld
4067 if test "$GCC" = yes; then
4068   # Check if gcc -print-prog-name=ld gives a path.
4069   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4070 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4071   case $host in
4072   *-*-mingw*)
4073     # gcc leaves a trailing carriage return which upsets mingw
4074     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4075   *)
4076     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4077   esac
4078   case $ac_prog in
4079     # Accept absolute paths.
4080     [\\/]* | [A-Za-z]:[\\/]*)
4081       re_direlt='/[^/][^/]*/\.\./'
4082       # Canonicalize the path of ld
4083       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4084       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4085         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4086       done
4087       test -z "$LD" && LD="$ac_prog"
4088       ;;
4089   "")
4090     # If it fails, then pretend we aren't using GCC.
4091     ac_prog=ld
4092     ;;
4093   *)
4094     # If it is relative, then search for the first ld in PATH.
4095     with_gnu_ld=unknown
4096     ;;
4097   esac
4098 elif test "$with_gnu_ld" = yes; then
4099   echo "$as_me:$LINENO: checking for GNU ld" >&5
4100 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4101 else
4102   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4103 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4104 fi
4105 if test "${lt_cv_path_LD+set}" = set; then
4106   echo $ECHO_N "(cached) $ECHO_C" >&6
4107 else
4108   if test -z "$LD"; then
4109   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4110   for ac_dir in $PATH; do
4111     test -z "$ac_dir" && ac_dir=.
4112     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4113       lt_cv_path_LD="$ac_dir/$ac_prog"
4114       # Check to see if the program is GNU ld.  I'd rather use --version,
4115       # but apparently some GNU ld's only accept -v.
4116       # Break only if it was the GNU/non-GNU ld that we prefer.
4117       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4118         test "$with_gnu_ld" != no && break
4119       else
4120         test "$with_gnu_ld" != yes && break
4121       fi
4122     fi
4123   done
4124   IFS="$ac_save_ifs"
4125 else
4126   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4127 fi
4128 fi
4129
4130 LD="$lt_cv_path_LD"
4131 if test -n "$LD"; then
4132   echo "$as_me:$LINENO: result: $LD" >&5
4133 echo "${ECHO_T}$LD" >&6
4134 else
4135   echo "$as_me:$LINENO: result: no" >&5
4136 echo "${ECHO_T}no" >&6
4137 fi
4138 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4139 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4140    { (exit 1); exit 1; }; }
4141 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4142 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4143 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4144   echo $ECHO_N "(cached) $ECHO_C" >&6
4145 else
4146   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4147 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4148   lt_cv_prog_gnu_ld=yes
4149 else
4150   lt_cv_prog_gnu_ld=no
4151 fi
4152 fi
4153 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4154 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4155 with_gnu_ld=$lt_cv_prog_gnu_ld
4156
4157
4158 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4159 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4160 if test "${lt_cv_ld_reload_flag+set}" = set; then
4161   echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163   lt_cv_ld_reload_flag='-r'
4164 fi
4165 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4166 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4167 reload_flag=$lt_cv_ld_reload_flag
4168 test -n "$reload_flag" && reload_flag=" $reload_flag"
4169
4170 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4171 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4172 if test "${lt_cv_path_NM+set}" = set; then
4173   echo $ECHO_N "(cached) $ECHO_C" >&6
4174 else
4175   if test -n "$NM"; then
4176   # Let the user override the test.
4177   lt_cv_path_NM="$NM"
4178 else
4179   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4180   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4181     test -z "$ac_dir" && ac_dir=.
4182     tmp_nm=$ac_dir/${ac_tool_prefix}nm
4183     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4184       # Check to see if the nm accepts a BSD-compat flag.
4185       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4186       #   nm: unknown option "B" ignored
4187       # Tru64's nm complains that /dev/null is an invalid object file
4188       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4189         lt_cv_path_NM="$tmp_nm -B"
4190         break
4191       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4192         lt_cv_path_NM="$tmp_nm -p"
4193         break
4194       else
4195         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4196         continue # so that we can try to find one that supports BSD flags
4197       fi
4198     fi
4199   done
4200   IFS="$ac_save_ifs"
4201   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4202 fi
4203 fi
4204
4205 NM="$lt_cv_path_NM"
4206 echo "$as_me:$LINENO: result: $NM" >&5
4207 echo "${ECHO_T}$NM" >&6
4208
4209 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4210 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4211 LN_S=$as_ln_s
4212 if test "$LN_S" = "ln -s"; then
4213   echo "$as_me:$LINENO: result: yes" >&5
4214 echo "${ECHO_T}yes" >&6
4215 else
4216   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4217 echo "${ECHO_T}no, using $LN_S" >&6
4218 fi
4219
4220 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4221 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4222 if test "${lt_cv_deplibs_check_method+set}" = set; then
4223   echo $ECHO_N "(cached) $ECHO_C" >&6
4224 else
4225   lt_cv_file_magic_cmd='$MAGIC_CMD'
4226 lt_cv_file_magic_test_file=
4227 lt_cv_deplibs_check_method='unknown'
4228 # Need to set the preceding variable on all platforms that support
4229 # interlibrary dependencies.
4230 # 'none' -- dependencies not supported.
4231 # `unknown' -- same as none, but documents that we really don't know.
4232 # 'pass_all' -- all dependencies passed with no checks.
4233 # 'test_compile' -- check by making test program.
4234 # 'file_magic [regex]' -- check by looking for files in library path
4235 # which responds to the $file_magic_cmd with a given egrep regex.
4236 # If you have `file' or equivalent on your system and you're not sure
4237 # whether `pass_all' will *always* work, you probably want this one.
4238
4239 case $host_os in
4240 aix*)
4241   lt_cv_deplibs_check_method=pass_all
4242   ;;
4243
4244 beos*)
4245   lt_cv_deplibs_check_method=pass_all
4246   ;;
4247
4248 bsdi4*)
4249   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4250   lt_cv_file_magic_cmd='/usr/bin/file -L'
4251   lt_cv_file_magic_test_file=/shlib/libc.so
4252   ;;
4253
4254 cygwin* | mingw* |pw32*)
4255   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4256   lt_cv_file_magic_cmd='$OBJDUMP -f'
4257   ;;
4258
4259 darwin* | rhapsody*)
4260   # this will be overwritten by pass_all, but leave it in just in case
4261   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4262   lt_cv_file_magic_cmd='/usr/bin/file -L'
4263   case "$host_os" in
4264   rhapsody* | darwin1.012)
4265     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4266     ;;
4267   *) # Darwin 1.3 on
4268     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4269     ;;
4270   esac
4271   lt_cv_deplibs_check_method=pass_all
4272   ;;
4273
4274 freebsd* | kfreebsd*-gnu)
4275   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4276     case $host_cpu in
4277     i*86 )
4278       # Not sure whether the presence of OpenBSD here was a mistake.
4279       # Let's accept both of them until this is cleared up.
4280       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4281       lt_cv_file_magic_cmd=/usr/bin/file
4282       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4283       ;;
4284     esac
4285   else
4286     lt_cv_deplibs_check_method=pass_all
4287   fi
4288   ;;
4289
4290 gnu*)
4291   lt_cv_deplibs_check_method=pass_all
4292   ;;
4293
4294 hpux10.20*|hpux11*)
4295   case $host_cpu in
4296   hppa*)
4297     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4298     lt_cv_file_magic_cmd=/usr/bin/file
4299     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4300     ;;
4301   ia64*)
4302     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4303     lt_cv_file_magic_cmd=/usr/bin/file
4304     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4305     ;;
4306   esac
4307   ;;
4308
4309 irix5* | irix6*)
4310   case $host_os in
4311   irix5*)
4312     # this will be overridden with pass_all, but let us keep it just in case
4313     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4314     ;;
4315   *)
4316     case $LD in
4317     *-32|*"-32 ") libmagic=32-bit;;
4318     *-n32|*"-n32 ") libmagic=N32;;
4319     *-64|*"-64 ") libmagic=64-bit;;
4320     *) libmagic=never-match;;
4321     esac
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 ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4324     ;;
4325   esac
4326   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4327   lt_cv_deplibs_check_method=pass_all
4328   ;;
4329
4330 # This must be Linux ELF.
4331 linux-gnu*)
4332   case $host_cpu in
4333   alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
4334     lt_cv_deplibs_check_method=pass_all ;;
4335   *)
4336     # glibc up to 2.1.1 does not perform some relocations on ARM
4337     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4338   esac
4339   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4340   ;;
4341
4342 netbsd* | knetbsd*-gnu)
4343   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4344     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4345   else
4346     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4347   fi
4348   ;;
4349
4350 newsos6)
4351   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4352   lt_cv_file_magic_cmd=/usr/bin/file
4353   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4354   ;;
4355
4356 osf3* | osf4* | osf5*)
4357   # this will be overridden with pass_all, but let us keep it just in case
4358   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4359   lt_cv_file_magic_test_file=/shlib/libc.so
4360   lt_cv_deplibs_check_method=pass_all
4361   ;;
4362
4363 sco3.2v5*)
4364   lt_cv_deplibs_check_method=pass_all
4365   ;;
4366
4367 solaris*)
4368   lt_cv_deplibs_check_method=pass_all
4369   lt_cv_file_magic_test_file=/lib/libc.so
4370   ;;
4371
4372 sysv5uw[78]* | sysv4*uw2*)
4373   lt_cv_deplibs_check_method=pass_all
4374   ;;
4375
4376 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4377   case $host_vendor in
4378   ncr)
4379     lt_cv_deplibs_check_method=pass_all
4380     ;;
4381   motorola)
4382     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]'
4383     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4384     ;;
4385   esac
4386   ;;
4387 esac
4388
4389 fi
4390 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4391 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4392 file_magic_cmd=$lt_cv_file_magic_cmd
4393 deplibs_check_method=$lt_cv_deplibs_check_method
4394
4395
4396
4397
4398
4399 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4400
4401 # Only perform the check for file, if the check method requires it
4402 case $deplibs_check_method in
4403 file_magic*)
4404   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4405     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4406 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4407 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4408   echo $ECHO_N "(cached) $ECHO_C" >&6
4409 else
4410   case $MAGIC_CMD in
4411   /*)
4412   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4413   ;;
4414   ?:/*)
4415   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4416   ;;
4417   *)
4418   ac_save_MAGIC_CMD="$MAGIC_CMD"
4419   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4420   ac_dummy="/usr/bin:$PATH"
4421   for ac_dir in $ac_dummy; do
4422     test -z "$ac_dir" && ac_dir=.
4423     if test -f $ac_dir/${ac_tool_prefix}file; then
4424       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4425       if test -n "$file_magic_test_file"; then
4426         case $deplibs_check_method in
4427         "file_magic "*)
4428           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4429           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4430           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4431             egrep "$file_magic_regex" > /dev/null; then
4432             :
4433           else
4434             cat <<EOF 1>&2
4435
4436 *** Warning: the command libtool uses to detect shared libraries,
4437 *** $file_magic_cmd, produces output that libtool cannot recognize.
4438 *** The result is that libtool may fail to recognize shared libraries
4439 *** as such.  This will affect the creation of libtool libraries that
4440 *** depend on shared libraries, but programs linked with such libtool
4441 *** libraries will work regardless of this problem.  Nevertheless, you
4442 *** may want to report the problem to your system manager and/or to
4443 *** bug-libtool@gnu.org
4444
4445 EOF
4446           fi ;;
4447         esac
4448       fi
4449       break
4450     fi
4451   done
4452   IFS="$ac_save_ifs"
4453   MAGIC_CMD="$ac_save_MAGIC_CMD"
4454   ;;
4455 esac
4456 fi
4457
4458 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4459 if test -n "$MAGIC_CMD"; then
4460   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4461 echo "${ECHO_T}$MAGIC_CMD" >&6
4462 else
4463   echo "$as_me:$LINENO: result: no" >&5
4464 echo "${ECHO_T}no" >&6
4465 fi
4466
4467 if test -z "$lt_cv_path_MAGIC_CMD"; then
4468   if test -n "$ac_tool_prefix"; then
4469     echo "$as_me:$LINENO: checking for file" >&5
4470 echo $ECHO_N "checking for file... $ECHO_C" >&6
4471 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4472   echo $ECHO_N "(cached) $ECHO_C" >&6
4473 else
4474   case $MAGIC_CMD in
4475   /*)
4476   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4477   ;;
4478   ?:/*)
4479   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4480   ;;
4481   *)
4482   ac_save_MAGIC_CMD="$MAGIC_CMD"
4483   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4484   ac_dummy="/usr/bin:$PATH"
4485   for ac_dir in $ac_dummy; do
4486     test -z "$ac_dir" && ac_dir=.
4487     if test -f $ac_dir/file; then
4488       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4489       if test -n "$file_magic_test_file"; then
4490         case $deplibs_check_method in
4491         "file_magic "*)
4492           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4493           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4494           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4495             egrep "$file_magic_regex" > /dev/null; then
4496             :
4497           else
4498             cat <<EOF 1>&2
4499
4500 *** Warning: the command libtool uses to detect shared libraries,
4501 *** $file_magic_cmd, produces output that libtool cannot recognize.
4502 *** The result is that libtool may fail to recognize shared libraries
4503 *** as such.  This will affect the creation of libtool libraries that
4504 *** depend on shared libraries, but programs linked with such libtool
4505 *** libraries will work regardless of this problem.  Nevertheless, you
4506 *** may want to report the problem to your system manager and/or to
4507 *** bug-libtool@gnu.org
4508
4509 EOF
4510           fi ;;
4511         esac
4512       fi
4513       break
4514     fi
4515   done
4516   IFS="$ac_save_ifs"
4517   MAGIC_CMD="$ac_save_MAGIC_CMD"
4518   ;;
4519 esac
4520 fi
4521
4522 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4523 if test -n "$MAGIC_CMD"; then
4524   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4525 echo "${ECHO_T}$MAGIC_CMD" >&6
4526 else
4527   echo "$as_me:$LINENO: result: no" >&5
4528 echo "${ECHO_T}no" >&6
4529 fi
4530
4531   else
4532     MAGIC_CMD=:
4533   fi
4534 fi
4535
4536   fi
4537   ;;
4538 esac
4539
4540 if test -n "$ac_tool_prefix"; then
4541   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4542 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4543 echo "$as_me:$LINENO: checking for $ac_word" >&5
4544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4545 if test "${ac_cv_prog_RANLIB+set}" = set; then
4546   echo $ECHO_N "(cached) $ECHO_C" >&6
4547 else
4548   if test -n "$RANLIB"; then
4549   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4550 else
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 for as_dir in $PATH
4553 do
4554   IFS=$as_save_IFS
4555   test -z "$as_dir" && as_dir=.
4556   for ac_exec_ext in '' $ac_executable_extensions; do
4557   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4558     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4560     break 2
4561   fi
4562 done
4563 done
4564
4565 fi
4566 fi
4567 RANLIB=$ac_cv_prog_RANLIB
4568 if test -n "$RANLIB"; then
4569   echo "$as_me:$LINENO: result: $RANLIB" >&5
4570 echo "${ECHO_T}$RANLIB" >&6
4571 else
4572   echo "$as_me:$LINENO: result: no" >&5
4573 echo "${ECHO_T}no" >&6
4574 fi
4575
4576 fi
4577 if test -z "$ac_cv_prog_RANLIB"; then
4578   ac_ct_RANLIB=$RANLIB
4579   # Extract the first word of "ranlib", so it can be a program name with args.
4580 set dummy ranlib; ac_word=$2
4581 echo "$as_me:$LINENO: checking for $ac_word" >&5
4582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4583 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4584   echo $ECHO_N "(cached) $ECHO_C" >&6
4585 else
4586   if test -n "$ac_ct_RANLIB"; then
4587   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4588 else
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 for as_dir in $PATH
4591 do
4592   IFS=$as_save_IFS
4593   test -z "$as_dir" && as_dir=.
4594   for ac_exec_ext in '' $ac_executable_extensions; do
4595   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4596     ac_cv_prog_ac_ct_RANLIB="ranlib"
4597     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4598     break 2
4599   fi
4600 done
4601 done
4602
4603   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4604 fi
4605 fi
4606 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4607 if test -n "$ac_ct_RANLIB"; then
4608   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4609 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4610 else
4611   echo "$as_me:$LINENO: result: no" >&5
4612 echo "${ECHO_T}no" >&6
4613 fi
4614
4615   RANLIB=$ac_ct_RANLIB
4616 else
4617   RANLIB="$ac_cv_prog_RANLIB"
4618 fi
4619
4620 if test -n "$ac_tool_prefix"; then
4621   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4622 set dummy ${ac_tool_prefix}strip; ac_word=$2
4623 echo "$as_me:$LINENO: checking for $ac_word" >&5
4624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4625 if test "${ac_cv_prog_STRIP+set}" = set; then
4626   echo $ECHO_N "(cached) $ECHO_C" >&6
4627 else
4628   if test -n "$STRIP"; then
4629   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4630 else
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 for as_dir in $PATH
4633 do
4634   IFS=$as_save_IFS
4635   test -z "$as_dir" && as_dir=.
4636   for ac_exec_ext in '' $ac_executable_extensions; do
4637   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4638     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4640     break 2
4641   fi
4642 done
4643 done
4644
4645 fi
4646 fi
4647 STRIP=$ac_cv_prog_STRIP
4648 if test -n "$STRIP"; then
4649   echo "$as_me:$LINENO: result: $STRIP" >&5
4650 echo "${ECHO_T}$STRIP" >&6
4651 else
4652   echo "$as_me:$LINENO: result: no" >&5
4653 echo "${ECHO_T}no" >&6
4654 fi
4655
4656 fi
4657 if test -z "$ac_cv_prog_STRIP"; then
4658   ac_ct_STRIP=$STRIP
4659   # Extract the first word of "strip", so it can be a program name with args.
4660 set dummy strip; ac_word=$2
4661 echo "$as_me:$LINENO: checking for $ac_word" >&5
4662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4663 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4664   echo $ECHO_N "(cached) $ECHO_C" >&6
4665 else
4666   if test -n "$ac_ct_STRIP"; then
4667   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4668 else
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4671 do
4672   IFS=$as_save_IFS
4673   test -z "$as_dir" && as_dir=.
4674   for ac_exec_ext in '' $ac_executable_extensions; do
4675   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676     ac_cv_prog_ac_ct_STRIP="strip"
4677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678     break 2
4679   fi
4680 done
4681 done
4682
4683   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4684 fi
4685 fi
4686 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4687 if test -n "$ac_ct_STRIP"; then
4688   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4689 echo "${ECHO_T}$ac_ct_STRIP" >&6
4690 else
4691   echo "$as_me:$LINENO: result: no" >&5
4692 echo "${ECHO_T}no" >&6
4693 fi
4694
4695   STRIP=$ac_ct_STRIP
4696 else
4697   STRIP="$ac_cv_prog_STRIP"
4698 fi
4699
4700
4701 # Check for any special flags to pass to ltconfig.
4702 libtool_flags="--cache-file=$cache_file"
4703 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4704 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4705 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4706 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4707 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4708
4709
4710 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4711 if test "${enable_libtool_lock+set}" = set; then
4712   enableval="$enable_libtool_lock"
4713
4714 fi;
4715 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4716 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4717
4718
4719 # Check whether --with-pic or --without-pic was given.
4720 if test "${with_pic+set}" = set; then
4721   withval="$with_pic"
4722   pic_mode="$withval"
4723 else
4724   pic_mode=default
4725 fi;
4726 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4727 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4728
4729 # Some flags need to be propagated to the compiler or linker for good
4730 # libtool support.
4731 case $host in
4732 *-*-irix6*)
4733   # Find out which ABI we are using.
4734   echo '#line 4734 "configure"' > conftest.$ac_ext
4735   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4736   (eval $ac_compile) 2>&5
4737   ac_status=$?
4738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739   (exit $ac_status); }; then
4740    if test "$lt_cv_prog_gnu_ld" = yes; then
4741     case `/usr/bin/file conftest.$ac_objext` in
4742     *32-bit*)
4743       LD="${LD-ld} -melf32bsmip"
4744       ;;
4745     *N32*)
4746       LD="${LD-ld} -melf32bmipn32"
4747       ;;
4748     *64-bit*)
4749       LD="${LD-ld} -melf64bmip"
4750       ;;
4751     esac
4752    else
4753     case `/usr/bin/file conftest.$ac_objext` in
4754     *32-bit*)
4755       LD="${LD-ld} -32"
4756       ;;
4757     *N32*)
4758       LD="${LD-ld} -n32"
4759       ;;
4760     *64-bit*)
4761       LD="${LD-ld} -64"
4762       ;;
4763     esac
4764    fi
4765   fi
4766   rm -rf conftest*
4767   ;;
4768
4769 ia64-*-hpux*)
4770   # Find out which ABI we are using.
4771   echo 'int i;' > conftest.$ac_ext
4772   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4773   (eval $ac_compile) 2>&5
4774   ac_status=$?
4775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776   (exit $ac_status); }; then
4777     case "`/usr/bin/file conftest.o`" in
4778     *ELF-32*)
4779       HPUX_IA64_MODE="32"
4780       ;;
4781     *ELF-64*)
4782       HPUX_IA64_MODE="64"
4783       ;;
4784     esac
4785   fi
4786   rm -rf conftest*
4787   ;;
4788
4789 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4790   # Find out which ABI we are using.
4791   echo 'int i;' > conftest.$ac_ext
4792   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4793   (eval $ac_compile) 2>&5
4794   ac_status=$?
4795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796   (exit $ac_status); }; then
4797     case "`/usr/bin/file conftest.o`" in
4798     *32-bit*)
4799       case $host in
4800         x86_64-*linux*)
4801           LD="${LD-ld} -m elf_i386"
4802           ;;
4803         ppc64-*linux*|powerpc64-*linux*)
4804           LD="${LD-ld} -m elf32ppclinux"
4805           ;;
4806         s390x-*linux*)
4807           LD="${LD-ld} -m elf_s390"
4808           ;;
4809         sparc64-*linux*)
4810           LD="${LD-ld} -m elf32_sparc"
4811           ;;
4812       esac
4813       ;;
4814     *64-bit*)
4815       case $host in
4816         x86_64-*linux*)
4817           LD="${LD-ld} -m elf_x86_64"
4818           ;;
4819         ppc*-*linux*|powerpc*-*linux*)
4820           LD="${LD-ld} -m elf64ppc"
4821           ;;
4822         s390*-*linux*)
4823           LD="${LD-ld} -m elf64_s390"
4824           ;;
4825         sparc*-*linux*)
4826           LD="${LD-ld} -m elf64_sparc"
4827           ;;
4828       esac
4829       ;;
4830     esac
4831   fi
4832   rm -rf conftest*
4833   ;;
4834
4835 *-*-sco3.2v5*)
4836   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4837   SAVE_CFLAGS="$CFLAGS"
4838   CFLAGS="$CFLAGS -belf"
4839   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4840 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4841 if test "${lt_cv_cc_needs_belf+set}" = set; then
4842   echo $ECHO_N "(cached) $ECHO_C" >&6
4843 else
4844
4845
4846      ac_ext=c
4847 ac_cpp='$CPP $CPPFLAGS'
4848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4851
4852      if test x$gcc_no_link = xyes; then
4853   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4854 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4855    { (exit 1); exit 1; }; }
4856 fi
4857 cat >conftest.$ac_ext <<_ACEOF
4858 /* confdefs.h.  */
4859 _ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h.  */
4863
4864 int
4865 main ()
4866 {
4867
4868   ;
4869   return 0;
4870 }
4871 _ACEOF
4872 rm -f conftest.$ac_objext conftest$ac_exeext
4873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4874   (eval $ac_link) 2>conftest.er1
4875   ac_status=$?
4876   grep -v '^ *+' conftest.er1 >conftest.err
4877   rm -f conftest.er1
4878   cat conftest.err >&5
4879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880   (exit $ac_status); } &&
4881          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883   (eval $ac_try) 2>&5
4884   ac_status=$?
4885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886   (exit $ac_status); }; } &&
4887          { ac_try='test -s conftest$ac_exeext'
4888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889   (eval $ac_try) 2>&5
4890   ac_status=$?
4891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892   (exit $ac_status); }; }; then
4893   lt_cv_cc_needs_belf=yes
4894 else
4895   echo "$as_me: failed program was:" >&5
4896 sed 's/^/| /' conftest.$ac_ext >&5
4897
4898 lt_cv_cc_needs_belf=no
4899 fi
4900 rm -f conftest.err conftest.$ac_objext \
4901       conftest$ac_exeext conftest.$ac_ext
4902      ac_ext=c
4903 ac_cpp='$CPP $CPPFLAGS'
4904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4907
4908 fi
4909 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4910 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4911   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4912     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4913     CFLAGS="$SAVE_CFLAGS"
4914   fi
4915   ;;
4916
4917
4918 esac
4919
4920
4921 # Save cache, so that ltconfig can load it
4922 cat >confcache <<\_ACEOF
4923 # This file is a shell script that caches the results of configure
4924 # tests run on this system so they can be shared between configure
4925 # scripts and configure runs, see configure's option --config-cache.
4926 # It is not useful on other systems.  If it contains results you don't
4927 # want to keep, you may remove or edit it.
4928 #
4929 # config.status only pays attention to the cache file if you give it
4930 # the --recheck option to rerun configure.
4931 #
4932 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4933 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4934 # following values.
4935
4936 _ACEOF
4937
4938 # The following way of writing the cache mishandles newlines in values,
4939 # but we know of no workaround that is simple, portable, and efficient.
4940 # So, don't put newlines in cache variables' values.
4941 # Ultrix sh set writes to stderr and can't be redirected directly,
4942 # and sets the high bit in the cache file unless we assign to the vars.
4943 {
4944   (set) 2>&1 |
4945     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4946     *ac_space=\ *)
4947       # `set' does not quote correctly, so add quotes (double-quote
4948       # substitution turns \\\\ into \\, and sed turns \\ into \).
4949       sed -n \
4950         "s/'/'\\\\''/g;
4951           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4952       ;;
4953     *)
4954       # `set' quotes correctly as required by POSIX, so do not add quotes.
4955       sed -n \
4956         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4957       ;;
4958     esac;
4959 } |
4960   sed '
4961      t clear
4962      : clear
4963      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4964      t end
4965      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4966      : end' >>confcache
4967 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4968   if test -w $cache_file; then
4969     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4970     cat confcache >$cache_file
4971   else
4972     echo "not updating unwritable cache $cache_file"
4973   fi
4974 fi
4975 rm -f confcache
4976
4977 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4978 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4979 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4980 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4981 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4982 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4983 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4984 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4985 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4986 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4987 echo "$as_me: error: libtool configure failed" >&2;}
4988    { (exit 1); exit 1; }; }
4989
4990 # Reload cache, that may have been modified by ltconfig
4991 if test -r "$cache_file"; then
4992   # Some versions of bash will fail to source /dev/null (special
4993   # files actually), so we avoid doing that.
4994   if test -f "$cache_file"; then
4995     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4996 echo "$as_me: loading cache $cache_file" >&6;}
4997     case $cache_file in
4998       [\\/]* | ?:[\\/]* ) . $cache_file;;
4999       *)                      . ./$cache_file;;
5000     esac
5001   fi
5002 else
5003   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5004 echo "$as_me: creating cache $cache_file" >&6;}
5005   >$cache_file
5006 fi
5007
5008
5009 # This can be used to rebuild libtool when needed
5010 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5011
5012 # Always use our own libtool.
5013 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5014
5015 # Redirect the config.log output again, so that the ltconfig log is not
5016 # clobbered by the next message.
5017 exec 5>>./config.log
5018
5019 ac_ext=cc
5020 ac_cpp='$CXXCPP $CPPFLAGS'
5021 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5022 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5023 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5024 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5025 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5026 if test -z "$CXXCPP"; then
5027   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5028   echo $ECHO_N "(cached) $ECHO_C" >&6
5029 else
5030       # Double quotes because CXXCPP needs to be expanded
5031     for CXXCPP in "$CXX -E" "/lib/cpp"
5032     do
5033       ac_preproc_ok=false
5034 for ac_cxx_preproc_warn_flag in '' yes
5035 do
5036   # Use a header file that comes with gcc, so configuring glibc
5037   # with a fresh cross-compiler works.
5038   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5039   # <limits.h> exists even on freestanding compilers.
5040   # On the NeXT, cc -E runs the code through the compiler's parser,
5041   # not just through cpp. "Syntax error" is here to catch this case.
5042   cat >conftest.$ac_ext <<_ACEOF
5043 /* confdefs.h.  */
5044 _ACEOF
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>conftest.$ac_ext <<_ACEOF
5047 /* end confdefs.h.  */
5048 #ifdef __STDC__
5049 # include <limits.h>
5050 #else
5051 # include <assert.h>
5052 #endif
5053                      Syntax error
5054 _ACEOF
5055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5056   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5057   ac_status=$?
5058   grep -v '^ *+' conftest.er1 >conftest.err
5059   rm -f conftest.er1
5060   cat conftest.err >&5
5061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062   (exit $ac_status); } >/dev/null; then
5063   if test -s conftest.err; then
5064     ac_cpp_err=$ac_cxx_preproc_warn_flag
5065     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5066   else
5067     ac_cpp_err=
5068   fi
5069 else
5070   ac_cpp_err=yes
5071 fi
5072 if test -z "$ac_cpp_err"; then
5073   :
5074 else
5075   echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5077
5078   # Broken: fails on valid input.
5079 continue
5080 fi
5081 rm -f conftest.err conftest.$ac_ext
5082
5083   # OK, works on sane cases.  Now check whether non-existent headers
5084   # can be detected and how.
5085   cat >conftest.$ac_ext <<_ACEOF
5086 /* confdefs.h.  */
5087 _ACEOF
5088 cat confdefs.h >>conftest.$ac_ext
5089 cat >>conftest.$ac_ext <<_ACEOF
5090 /* end confdefs.h.  */
5091 #include <ac_nonexistent.h>
5092 _ACEOF
5093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5094   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5095   ac_status=$?
5096   grep -v '^ *+' conftest.er1 >conftest.err
5097   rm -f conftest.er1
5098   cat conftest.err >&5
5099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100   (exit $ac_status); } >/dev/null; then
5101   if test -s conftest.err; then
5102     ac_cpp_err=$ac_cxx_preproc_warn_flag
5103     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5104   else
5105     ac_cpp_err=
5106   fi
5107 else
5108   ac_cpp_err=yes
5109 fi
5110 if test -z "$ac_cpp_err"; then
5111   # Broken: success on invalid input.
5112 continue
5113 else
5114   echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5116
5117   # Passes both tests.
5118 ac_preproc_ok=:
5119 break
5120 fi
5121 rm -f conftest.err conftest.$ac_ext
5122
5123 done
5124 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5125 rm -f conftest.err conftest.$ac_ext
5126 if $ac_preproc_ok; then
5127   break
5128 fi
5129
5130     done
5131     ac_cv_prog_CXXCPP=$CXXCPP
5132
5133 fi
5134   CXXCPP=$ac_cv_prog_CXXCPP
5135 else
5136   ac_cv_prog_CXXCPP=$CXXCPP
5137 fi
5138 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5139 echo "${ECHO_T}$CXXCPP" >&6
5140 ac_preproc_ok=false
5141 for ac_cxx_preproc_warn_flag in '' yes
5142 do
5143   # Use a header file that comes with gcc, so configuring glibc
5144   # with a fresh cross-compiler works.
5145   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5146   # <limits.h> exists even on freestanding compilers.
5147   # On the NeXT, cc -E runs the code through the compiler's parser,
5148   # not just through cpp. "Syntax error" is here to catch this case.
5149   cat >conftest.$ac_ext <<_ACEOF
5150 /* confdefs.h.  */
5151 _ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h.  */
5155 #ifdef __STDC__
5156 # include <limits.h>
5157 #else
5158 # include <assert.h>
5159 #endif
5160                      Syntax error
5161 _ACEOF
5162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5163   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5164   ac_status=$?
5165   grep -v '^ *+' conftest.er1 >conftest.err
5166   rm -f conftest.er1
5167   cat conftest.err >&5
5168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169   (exit $ac_status); } >/dev/null; then
5170   if test -s conftest.err; then
5171     ac_cpp_err=$ac_cxx_preproc_warn_flag
5172     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5173   else
5174     ac_cpp_err=
5175   fi
5176 else
5177   ac_cpp_err=yes
5178 fi
5179 if test -z "$ac_cpp_err"; then
5180   :
5181 else
5182   echo "$as_me: failed program was:" >&5
5183 sed 's/^/| /' conftest.$ac_ext >&5
5184
5185   # Broken: fails on valid input.
5186 continue
5187 fi
5188 rm -f conftest.err conftest.$ac_ext
5189
5190   # OK, works on sane cases.  Now check whether non-existent headers
5191   # can be detected and how.
5192   cat >conftest.$ac_ext <<_ACEOF
5193 /* confdefs.h.  */
5194 _ACEOF
5195 cat confdefs.h >>conftest.$ac_ext
5196 cat >>conftest.$ac_ext <<_ACEOF
5197 /* end confdefs.h.  */
5198 #include <ac_nonexistent.h>
5199 _ACEOF
5200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5201   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5202   ac_status=$?
5203   grep -v '^ *+' conftest.er1 >conftest.err
5204   rm -f conftest.er1
5205   cat conftest.err >&5
5206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207   (exit $ac_status); } >/dev/null; then
5208   if test -s conftest.err; then
5209     ac_cpp_err=$ac_cxx_preproc_warn_flag
5210     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5211   else
5212     ac_cpp_err=
5213   fi
5214 else
5215   ac_cpp_err=yes
5216 fi
5217 if test -z "$ac_cpp_err"; then
5218   # Broken: success on invalid input.
5219 continue
5220 else
5221   echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5223
5224   # Passes both tests.
5225 ac_preproc_ok=:
5226 break
5227 fi
5228 rm -f conftest.err conftest.$ac_ext
5229
5230 done
5231 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5232 rm -f conftest.err conftest.$ac_ext
5233 if $ac_preproc_ok; then
5234   :
5235 else
5236   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5237 See \`config.log' for more details." >&5
5238 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5239 See \`config.log' for more details." >&2;}
5240    { (exit 1); exit 1; }; }
5241 fi
5242
5243 ac_ext=c
5244 ac_cpp='$CPP $CPPFLAGS'
5245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5248
5249
5250
5251 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5252 lt_save_CC="$CC"
5253 lt_save_CFLAGS="$CFLAGS"
5254 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
5255 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5256 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5257 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5258 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5259 deplibs_check_method="$deplibs_check_method" \
5260 file_magic_cmd="$file_magic_cmd" \
5261 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5262 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
5263 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5264 echo "$as_me: error: libtool tag configuration failed" >&2;}
5265    { (exit 1); exit 1; }; }
5266 CC="$lt_save_CC"
5267 CFLAGS="$lt_save_CFLAGS"
5268
5269 # Redirect the config.log output again, so that the ltconfig log is not
5270 # clobbered by the next message.
5271 exec 5>>./config.log
5272
5273
5274
5275
5276
5277
5278
5279
5280 # Check whether --with-target-subdir or --without-target-subdir was given.
5281 if test "${with_target_subdir+set}" = set; then
5282   withval="$with_target_subdir"
5283
5284 fi;
5285
5286 # Check whether --with-cross-host or --without-cross-host was given.
5287 if test "${with_cross_host+set}" = set; then
5288   withval="$with_cross_host"
5289
5290 fi;
5291
5292 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
5293 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
5294 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
5295 if test -z "$THREADS"; then
5296    THREADS=no
5297 fi
5298 echo "$as_me:$LINENO: result: $THREADS" >&5
5299 echo "${ECHO_T}$THREADS" >&6
5300
5301 # Check whether --enable-parallel-mark or --disable-parallel-mark was given.
5302 if test "${enable_parallel_mark+set}" = set; then
5303   enableval="$enable_parallel_mark"
5304   case "$THREADS" in
5305       no | none | single)
5306         { { echo "$as_me:$LINENO: error: Parallel mark requires --enable-threads=x spec" >&5
5307 echo "$as_me: error: Parallel mark requires --enable-threads=x spec" >&2;}
5308    { (exit 1); exit 1; }; }
5309         ;;
5310     esac
5311
5312 fi;
5313
5314 AM_CPPFLAGS="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
5315 THREADLIBS=
5316 case "$THREADS" in
5317  no | none | single)
5318     THREADS=none
5319     ;;
5320  posix | pthreads)
5321     THREADS=posix
5322     THREADLIBS=-lpthread
5323     case "$host" in
5324      x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
5325         cat >>confdefs.h <<\_ACEOF
5326 #define GC_LINUX_THREADS 1
5327 _ACEOF
5328
5329         cat >>confdefs.h <<\_ACEOF
5330 #define _REENTRANT 1
5331 _ACEOF
5332
5333         if test "${enable_parallel_mark}" = yes; then
5334           cat >>confdefs.h <<\_ACEOF
5335 #define PARALLEL_MARK 1
5336 _ACEOF
5337
5338         fi
5339         cat >>confdefs.h <<\_ACEOF
5340 #define THREAD_LOCAL_ALLOC 1
5341 _ACEOF
5342
5343         ;;
5344      *-*-linux*)
5345         cat >>confdefs.h <<\_ACEOF
5346 #define GC_LINUX_THREADS 1
5347 _ACEOF
5348
5349         cat >>confdefs.h <<\_ACEOF
5350 #define _REENTRANT 1
5351 _ACEOF
5352
5353         ;;
5354      *-*-aix*)
5355         cat >>confdefs.h <<\_ACEOF
5356 #define GC_AIX_THREADS 1
5357 _ACEOF
5358
5359         cat >>confdefs.h <<\_ACEOF
5360 #define _REENTRANT 1
5361 _ACEOF
5362
5363         ;;
5364      *-*-hpux*)
5365         { echo "$as_me:$LINENO: WARNING: \"Only HP/UX 11 threads are supported.\"" >&5
5366 echo "$as_me: WARNING: \"Only HP/UX 11 threads are supported.\"" >&2;}
5367         cat >>confdefs.h <<\_ACEOF
5368 #define GC_HPUX_THREADS 1
5369 _ACEOF
5370
5371         cat >>confdefs.h <<\_ACEOF
5372 #define _POSIX_C_SOURCE 199506L
5373 _ACEOF
5374
5375         if test "${enable_parallel_mark}" = yes; then
5376           cat >>confdefs.h <<\_ACEOF
5377 #define PARALLEL_MARK 1
5378 _ACEOF
5379
5380         fi
5381         cat >>confdefs.h <<\_ACEOF
5382 #define THREAD_LOCAL_ALLOC 1
5383 _ACEOF
5384
5385         THREADLIBS="-lpthread -lrt"
5386         ;;
5387      *-*-freebsd*)
5388         { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
5389 echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
5390         cat >>confdefs.h <<\_ACEOF
5391 #define GC_FREEBSD_THREADS 1
5392 _ACEOF
5393
5394         AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
5395         THREADLIBS=-pthread
5396         ;;
5397      *-*-solaris*)
5398         cat >>confdefs.h <<\_ACEOF
5399 #define GC_SOLARIS_THREADS 1
5400 _ACEOF
5401
5402         cat >>confdefs.h <<\_ACEOF
5403 #define GC_SOLARIS_PTHREADS 1
5404 _ACEOF
5405
5406         ;;
5407      *-*-irix*)
5408         cat >>confdefs.h <<\_ACEOF
5409 #define GC_IRIX_THREADS 1
5410 _ACEOF
5411
5412         ;;
5413      *-*-cygwin*)
5414         cat >>confdefs.h <<\_ACEOF
5415 #define GC_WIN32_THREADS 1
5416 _ACEOF
5417
5418         ;;
5419      *-*-darwin*)
5420         cat >>confdefs.h <<\_ACEOF
5421 #define GC_DARWIN_THREADS 1
5422 _ACEOF
5423
5424         cat >>confdefs.h <<\_ACEOF
5425 #define THREAD_LOCAL_ALLOC 1
5426 _ACEOF
5427
5428         if test "${enable_parallel_mark}" = yes; then
5429           cat >>confdefs.h <<\_ACEOF
5430 #define PARALLEL_MARK 1
5431 _ACEOF
5432
5433         fi
5434         ;;
5435      *-*-osf*)
5436         cat >>confdefs.h <<\_ACEOF
5437 #define GC_OSF1_THREADS 1
5438 _ACEOF
5439
5440         if test "${enable_parallel_mark}" = yes; then
5441           cat >>confdefs.h <<\_ACEOF
5442 #define PARALLEL_MARK 1
5443 _ACEOF
5444
5445           cat >>confdefs.h <<\_ACEOF
5446 #define THREAD_LOCAL_ALLOC 1
5447 _ACEOF
5448
5449           # May want to enable it in other cases, too.
5450           # Measurements havent yet been done.
5451         fi
5452         AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
5453         THREADLIBS="-lpthread -lrt"
5454         ;;
5455     esac
5456     ;;
5457  win32)
5458     cat >>confdefs.h <<\_ACEOF
5459 #define GC_WIN32_THREADS 1
5460 _ACEOF
5461
5462             ;;
5463  dgux386)
5464     THREADS=dgux386
5465 echo "$as_me:$LINENO: result: $THREADLIBS" >&5
5466 echo "${ECHO_T}$THREADLIBS" >&6
5467     # Use pthread GCC  switch
5468     THREADLIBS=-pthread
5469     if test "${enable_parallel_mark}" = yes; then
5470         cat >>confdefs.h <<\_ACEOF
5471 #define PARALLEL_MARK 1
5472 _ACEOF
5473
5474     fi
5475     cat >>confdefs.h <<\_ACEOF
5476 #define THREAD_LOCAL_ALLOC 1
5477 _ACEOF
5478
5479     cat >>confdefs.h <<\_ACEOF
5480 #define GC_DGUX386_THREADS 1
5481 _ACEOF
5482
5483     cat >>confdefs.h <<\_ACEOF
5484 #define DGUX_THREADS 1
5485 _ACEOF
5486
5487     # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
5488     AM_CPPFLAGS="-pthread $AM_CPPFLAGS"
5489     ;;
5490  aix)
5491     THREADS=posix
5492     THREADLIBS=-lpthread
5493     cat >>confdefs.h <<\_ACEOF
5494 #define GC_AIX_THREADS 1
5495 _ACEOF
5496
5497     cat >>confdefs.h <<\_ACEOF
5498 #define _REENTRANT 1
5499 _ACEOF
5500
5501     ;;
5502  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
5503     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
5504 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
5505    { (exit 1); exit 1; }; }
5506     ;;
5507  *)
5508     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
5509 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
5510    { (exit 1); exit 1; }; }
5511     ;;
5512 esac
5513
5514
5515 case "$host" in
5516    powerpc-*-darwin*)
5517       powerpc_darwin=true
5518       ;;
5519 esac
5520
5521
5522 if test x$powerpc_darwin = xtrue; then
5523   POWERPC_DARWIN_TRUE=
5524   POWERPC_DARWIN_FALSE='#'
5525 else
5526   POWERPC_DARWIN_TRUE='#'
5527   POWERPC_DARWIN_FALSE=
5528 fi
5529
5530
5531 # We never want libdl on darwin. It is a fake libdl that just ends up making
5532 # dyld calls anyway
5533 case "$host" in
5534   *-*-darwin*) ;;
5535   *)
5536     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5537 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5538 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5539   echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541   ac_check_lib_save_LIBS=$LIBS
5542 LIBS="-ldl  $LIBS"
5543 if test x$gcc_no_link = xyes; then
5544   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5545 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5546    { (exit 1); exit 1; }; }
5547 fi
5548 cat >conftest.$ac_ext <<_ACEOF
5549 /* confdefs.h.  */
5550 _ACEOF
5551 cat confdefs.h >>conftest.$ac_ext
5552 cat >>conftest.$ac_ext <<_ACEOF
5553 /* end confdefs.h.  */
5554
5555 /* Override any gcc2 internal prototype to avoid an error.  */
5556 #ifdef __cplusplus
5557 extern "C"
5558 #endif
5559 /* We use char because int might match the return type of a gcc2
5560    builtin and then its argument prototype would still apply.  */
5561 char dlopen ();
5562 int
5563 main ()
5564 {
5565 dlopen ();
5566   ;
5567   return 0;
5568 }
5569 _ACEOF
5570 rm -f conftest.$ac_objext conftest$ac_exeext
5571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5572   (eval $ac_link) 2>conftest.er1
5573   ac_status=$?
5574   grep -v '^ *+' conftest.er1 >conftest.err
5575   rm -f conftest.er1
5576   cat conftest.err >&5
5577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578   (exit $ac_status); } &&
5579          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581   (eval $ac_try) 2>&5
5582   ac_status=$?
5583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584   (exit $ac_status); }; } &&
5585          { ac_try='test -s conftest$ac_exeext'
5586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587   (eval $ac_try) 2>&5
5588   ac_status=$?
5589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590   (exit $ac_status); }; }; then
5591   ac_cv_lib_dl_dlopen=yes
5592 else
5593   echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5595
5596 ac_cv_lib_dl_dlopen=no
5597 fi
5598 rm -f conftest.err conftest.$ac_objext \
5599       conftest$ac_exeext conftest.$ac_ext
5600 LIBS=$ac_check_lib_save_LIBS
5601 fi
5602 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5603 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5604 if test $ac_cv_lib_dl_dlopen = yes; then
5605   EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
5606 fi
5607
5608     ;;
5609 esac
5610
5611
5612
5613 target_all=libgcjgc.la
5614
5615
5616 TARGET_ECOS="no"
5617
5618 # Check whether --with-ecos or --without-ecos was given.
5619 if test "${with_ecos+set}" = set; then
5620   withval="$with_ecos"
5621   TARGET_ECOS="$with_ecos"
5622
5623 fi;
5624
5625 addobjs=
5626 addlibs=
5627 addincludes=
5628 addtests=
5629 case "$TARGET_ECOS" in
5630    no)
5631       ;;
5632    *)
5633       cat >>confdefs.h <<\_ACEOF
5634 #define ECOS 1
5635 _ACEOF
5636
5637       AM_CPPFLAGS="${AM_CPPFLAGS} -I${TARGET_ECOS}/include"
5638       addobjs="$addobjs ecos.lo"
5639       ;;
5640 esac
5641
5642 if test "${enable_cplusplus}" = yes; then
5643       addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
5644       addtests="$addtests test_cpp"
5645 fi
5646
5647
5648
5649 if test "${enable_cplusplus}" = yes; then
5650   CPLUSPLUS_TRUE=
5651   CPLUSPLUS_FALSE='#'
5652 else
5653   CPLUSPLUS_TRUE='#'
5654   CPLUSPLUS_FALSE=
5655 fi
5656
5657
5658
5659
5660
5661
5662 # Configuration of shared libraries
5663 #
5664 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
5665 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5666 # Check whether --enable-shared or --disable-shared was given.
5667 if test "${enable_shared+set}" = set; then
5668   enableval="$enable_shared"
5669   p=${PACKAGE-default}
5670 case $enableval in
5671 yes) enable_shared=yes ;;
5672 no) enable_shared=no ;;
5673 *)
5674   enable_shared=no
5675   # Look at the argument we got.  We use all the common list separators.
5676   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5677   for pkg in $enableval; do
5678     if test "X$pkg" = "X$p"; then
5679       enable_shared=yes
5680     fi
5681   done
5682   IFS="$ac_save_ifs"
5683   ;;
5684 esac
5685 else
5686   enable_shared=yes
5687 fi;
5688
5689 case "$host" in
5690  alpha-*-openbsd*)
5691      enable_shared=no
5692      echo "$as_me:$LINENO: result: no" >&5
5693 echo "${ECHO_T}no" >&6
5694      ;;
5695  *)
5696      echo "$as_me:$LINENO: result: yes" >&5
5697 echo "${ECHO_T}yes" >&6
5698      ;;
5699 esac
5700
5701 # Configuration of machine-dependent code
5702 #
5703 # We don't set NO_EXECUTE_PERMISSION by default because gcj (and
5704 # anything else that creates trampolines in gc-allocated memory)
5705 # always needs exec permission.  The exceptions to this are IA-64 and
5706 # some variations of Power PC, where trampolines don't contain
5707 # executable code.
5708 #
5709 echo "$as_me:$LINENO: checking which machine-dependent code should be used" >&5
5710 echo $ECHO_N "checking which machine-dependent code should be used... $ECHO_C" >&6
5711 machdep=
5712 case "$host" in
5713  alpha*-*-openbsd*)
5714     machdep="alpha_mach_dep.lo"
5715     if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
5716        { echo "$as_me:$LINENO: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
5717 echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
5718     fi
5719     ;;
5720  alpha*-*-linux*)
5721     machdep="alpha_mach_dep.lo"
5722     ;;
5723  i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
5724     cat >>confdefs.h <<\_ACEOF
5725 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
5726 _ACEOF
5727
5728     ;;
5729  mipstx39-*-elf*)
5730     machdep="mips_ultrix_mach_dep.lo"
5731     cat >>confdefs.h <<\_ACEOF
5732 #define STACKBASE __stackbase
5733 _ACEOF
5734
5735     cat >>confdefs.h <<\_ACEOF
5736 #define DATASTART_IS_ETEXT 1
5737 _ACEOF
5738
5739     ;;
5740  mips-dec-ultrix*)
5741     machdep="mips_ultrix_mach-dep.lo"
5742     ;;
5743  mips-nec-sysv*|mips-unknown-sysv*)
5744     ;;
5745  mips*-*-linux*)
5746     ;;
5747  mips-*-*)
5748     machdep="mips_sgi_mach_dep.lo"
5749     ;;
5750  sparc-*-netbsd*)
5751     machdep="sparc_netbsd_mach_dep.lo"
5752     ;;
5753  sparc-sun-solaris2.3)
5754     machdep="sparc_mach_dep.lo"
5755     cat >>confdefs.h <<\_ACEOF
5756 #define SUNOS53_SHARED_LIB 1
5757 _ACEOF
5758
5759     ;;
5760  sparc-sun-solaris2.*)
5761     machdep="sparc_mach_dep.lo"
5762     ;;
5763  ia64-*-*)
5764     cat >>confdefs.h <<\_ACEOF
5765 #define NO_EXECUTE_PERMISSION 1
5766 _ACEOF
5767
5768     machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
5769     ;;
5770 esac
5771 if test x"$machdep" = x; then
5772 echo "$as_me:$LINENO: result: $machdep" >&5
5773 echo "${ECHO_T}$machdep" >&6
5774    machdep="mach_dep.lo"
5775 fi
5776 addobjs="$addobjs $machdep"
5777
5778
5779
5780
5781
5782 #
5783 # Check for AViiON Machines running DGUX
5784 #
5785 echo "$as_me:$LINENO: checking if host is AViiON running DGUX" >&5
5786 echo $ECHO_N "checking if host is AViiON running DGUX... $ECHO_C" >&6
5787 ac_is_dgux=no
5788 ac_ext=c
5789 ac_cpp='$CPP $CPPFLAGS'
5790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5793 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5794 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5795 # On Suns, sometimes $CPP names a directory.
5796 if test -n "$CPP" && test -d "$CPP"; then
5797   CPP=
5798 fi
5799 if test -z "$CPP"; then
5800   if test "${ac_cv_prog_CPP+set}" = set; then
5801   echo $ECHO_N "(cached) $ECHO_C" >&6
5802 else
5803       # Double quotes because CPP needs to be expanded
5804     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5805     do
5806       ac_preproc_ok=false
5807 for ac_c_preproc_warn_flag in '' yes
5808 do
5809   # Use a header file that comes with gcc, so configuring glibc
5810   # with a fresh cross-compiler works.
5811   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5812   # <limits.h> exists even on freestanding compilers.
5813   # On the NeXT, cc -E runs the code through the compiler's parser,
5814   # not just through cpp. "Syntax error" is here to catch this case.
5815   cat >conftest.$ac_ext <<_ACEOF
5816 /* confdefs.h.  */
5817 _ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h.  */
5821 #ifdef __STDC__
5822 # include <limits.h>
5823 #else
5824 # include <assert.h>
5825 #endif
5826                      Syntax error
5827 _ACEOF
5828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5829   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5830   ac_status=$?
5831   grep -v '^ *+' conftest.er1 >conftest.err
5832   rm -f conftest.er1
5833   cat conftest.err >&5
5834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835   (exit $ac_status); } >/dev/null; then
5836   if test -s conftest.err; then
5837     ac_cpp_err=$ac_c_preproc_warn_flag
5838     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5839   else
5840     ac_cpp_err=
5841   fi
5842 else
5843   ac_cpp_err=yes
5844 fi
5845 if test -z "$ac_cpp_err"; then
5846   :
5847 else
5848   echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5850
5851   # Broken: fails on valid input.
5852 continue
5853 fi
5854 rm -f conftest.err conftest.$ac_ext
5855
5856   # OK, works on sane cases.  Now check whether non-existent headers
5857   # can be detected and how.
5858   cat >conftest.$ac_ext <<_ACEOF
5859 /* confdefs.h.  */
5860 _ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h.  */
5864 #include <ac_nonexistent.h>
5865 _ACEOF
5866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5867   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5868   ac_status=$?
5869   grep -v '^ *+' conftest.er1 >conftest.err
5870   rm -f conftest.er1
5871   cat conftest.err >&5
5872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873   (exit $ac_status); } >/dev/null; then
5874   if test -s conftest.err; then
5875     ac_cpp_err=$ac_c_preproc_warn_flag
5876     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5877   else
5878     ac_cpp_err=
5879   fi
5880 else
5881   ac_cpp_err=yes
5882 fi
5883 if test -z "$ac_cpp_err"; then
5884   # Broken: success on invalid input.
5885 continue
5886 else
5887   echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5889
5890   # Passes both tests.
5891 ac_preproc_ok=:
5892 break
5893 fi
5894 rm -f conftest.err conftest.$ac_ext
5895
5896 done
5897 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5898 rm -f conftest.err conftest.$ac_ext
5899 if $ac_preproc_ok; then
5900   break
5901 fi
5902
5903     done
5904     ac_cv_prog_CPP=$CPP
5905
5906 fi
5907   CPP=$ac_cv_prog_CPP
5908 else
5909   ac_cv_prog_CPP=$CPP
5910 fi
5911 echo "$as_me:$LINENO: result: $CPP" >&5
5912 echo "${ECHO_T}$CPP" >&6
5913 ac_preproc_ok=false
5914 for ac_c_preproc_warn_flag in '' yes
5915 do
5916   # Use a header file that comes with gcc, so configuring glibc
5917   # with a fresh cross-compiler works.
5918   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5919   # <limits.h> exists even on freestanding compilers.
5920   # On the NeXT, cc -E runs the code through the compiler's parser,
5921   # not just through cpp. "Syntax error" is here to catch this case.
5922   cat >conftest.$ac_ext <<_ACEOF
5923 /* confdefs.h.  */
5924 _ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h.  */
5928 #ifdef __STDC__
5929 # include <limits.h>
5930 #else
5931 # include <assert.h>
5932 #endif
5933                      Syntax error
5934 _ACEOF
5935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5936   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5937   ac_status=$?
5938   grep -v '^ *+' conftest.er1 >conftest.err
5939   rm -f conftest.er1
5940   cat conftest.err >&5
5941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942   (exit $ac_status); } >/dev/null; then
5943   if test -s conftest.err; then
5944     ac_cpp_err=$ac_c_preproc_warn_flag
5945     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5946   else
5947     ac_cpp_err=
5948   fi
5949 else
5950   ac_cpp_err=yes
5951 fi
5952 if test -z "$ac_cpp_err"; then
5953   :
5954 else
5955   echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.$ac_ext >&5
5957
5958   # Broken: fails on valid input.
5959 continue
5960 fi
5961 rm -f conftest.err conftest.$ac_ext
5962
5963   # OK, works on sane cases.  Now check whether non-existent headers
5964   # can be detected and how.
5965   cat >conftest.$ac_ext <<_ACEOF
5966 /* confdefs.h.  */
5967 _ACEOF
5968 cat confdefs.h >>conftest.$ac_ext
5969 cat >>conftest.$ac_ext <<_ACEOF
5970 /* end confdefs.h.  */
5971 #include <ac_nonexistent.h>
5972 _ACEOF
5973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5974   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5975   ac_status=$?
5976   grep -v '^ *+' conftest.er1 >conftest.err
5977   rm -f conftest.er1
5978   cat conftest.err >&5
5979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980   (exit $ac_status); } >/dev/null; then
5981   if test -s conftest.err; then
5982     ac_cpp_err=$ac_c_preproc_warn_flag
5983     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5984   else
5985     ac_cpp_err=
5986   fi
5987 else
5988   ac_cpp_err=yes
5989 fi
5990 if test -z "$ac_cpp_err"; then
5991   # Broken: success on invalid input.
5992 continue
5993 else
5994   echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5996
5997   # Passes both tests.
5998 ac_preproc_ok=:
5999 break
6000 fi
6001 rm -f conftest.err conftest.$ac_ext
6002
6003 done
6004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6005 rm -f conftest.err conftest.$ac_ext
6006 if $ac_preproc_ok; then
6007   :
6008 else
6009   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6010 See \`config.log' for more details." >&5
6011 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6012 See \`config.log' for more details." >&2;}
6013    { (exit 1); exit 1; }; }
6014 fi
6015
6016 ac_ext=c
6017 ac_cpp='$CPP $CPPFLAGS'
6018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6021
6022
6023 echo "$as_me:$LINENO: checking for egrep" >&5
6024 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6025 if test "${ac_cv_prog_egrep+set}" = set; then
6026   echo $ECHO_N "(cached) $ECHO_C" >&6
6027 else
6028   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6029     then ac_cv_prog_egrep='grep -E'
6030     else ac_cv_prog_egrep='egrep'
6031     fi
6032 fi
6033 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6034 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6035  EGREP=$ac_cv_prog_egrep
6036
6037
6038 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6039 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6040 if test "${ac_cv_header_stdc+set}" = set; then
6041   echo $ECHO_N "(cached) $ECHO_C" >&6
6042 else
6043   cat >conftest.$ac_ext <<_ACEOF
6044 /* confdefs.h.  */
6045 _ACEOF
6046 cat confdefs.h >>conftest.$ac_ext
6047 cat >>conftest.$ac_ext <<_ACEOF
6048 /* end confdefs.h.  */
6049 #include <stdlib.h>
6050 #include <stdarg.h>
6051 #include <string.h>
6052 #include <float.h>
6053
6054 int
6055 main ()
6056 {
6057
6058   ;
6059   return 0;
6060 }
6061 _ACEOF
6062 rm -f conftest.$ac_objext
6063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6064   (eval $ac_compile) 2>conftest.er1
6065   ac_status=$?
6066   grep -v '^ *+' conftest.er1 >conftest.err
6067   rm -f conftest.er1
6068   cat conftest.err >&5
6069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070   (exit $ac_status); } &&
6071          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073   (eval $ac_try) 2>&5
6074   ac_status=$?
6075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076   (exit $ac_status); }; } &&
6077          { ac_try='test -s conftest.$ac_objext'
6078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079   (eval $ac_try) 2>&5
6080   ac_status=$?
6081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082   (exit $ac_status); }; }; then
6083   ac_cv_header_stdc=yes
6084 else
6085   echo "$as_me: failed program was:" >&5
6086 sed 's/^/| /' conftest.$ac_ext >&5
6087
6088 ac_cv_header_stdc=no
6089 fi
6090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6091
6092 if test $ac_cv_header_stdc = yes; then
6093   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6094   cat >conftest.$ac_ext <<_ACEOF
6095 /* confdefs.h.  */
6096 _ACEOF
6097 cat confdefs.h >>conftest.$ac_ext
6098 cat >>conftest.$ac_ext <<_ACEOF
6099 /* end confdefs.h.  */
6100 #include <string.h>
6101
6102 _ACEOF
6103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6104   $EGREP "memchr" >/dev/null 2>&1; then
6105   :
6106 else
6107   ac_cv_header_stdc=no
6108 fi
6109 rm -f conftest*
6110
6111 fi
6112
6113 if test $ac_cv_header_stdc = yes; then
6114   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6115   cat >conftest.$ac_ext <<_ACEOF
6116 /* confdefs.h.  */
6117 _ACEOF
6118 cat confdefs.h >>conftest.$ac_ext
6119 cat >>conftest.$ac_ext <<_ACEOF
6120 /* end confdefs.h.  */
6121 #include <stdlib.h>
6122
6123 _ACEOF
6124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6125   $EGREP "free" >/dev/null 2>&1; then
6126   :
6127 else
6128   ac_cv_header_stdc=no
6129 fi
6130 rm -f conftest*
6131
6132 fi
6133
6134 if test $ac_cv_header_stdc = yes; then
6135   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6136   if test "$cross_compiling" = yes; then
6137   :
6138 else
6139   cat >conftest.$ac_ext <<_ACEOF
6140 /* confdefs.h.  */
6141 _ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h.  */
6145 #include <ctype.h>
6146 #if ((' ' & 0x0FF) == 0x020)
6147 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6148 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6149 #else
6150 # define ISLOWER(c) \
6151                    (('a' <= (c) && (c) <= 'i') \
6152                      || ('j' <= (c) && (c) <= 'r') \
6153                      || ('s' <= (c) && (c) <= 'z'))
6154 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6155 #endif
6156
6157 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6158 int
6159 main ()
6160 {
6161   int i;
6162   for (i = 0; i < 256; i++)
6163     if (XOR (islower (i), ISLOWER (i))
6164         || toupper (i) != TOUPPER (i))
6165       exit(2);
6166   exit (0);
6167 }
6168 _ACEOF
6169 rm -f conftest$ac_exeext
6170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6171   (eval $ac_link) 2>&5
6172   ac_status=$?
6173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176   (eval $ac_try) 2>&5
6177   ac_status=$?
6178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179   (exit $ac_status); }; }; then
6180   :
6181 else
6182   echo "$as_me: program exited with status $ac_status" >&5
6183 echo "$as_me: failed program was:" >&5
6184 sed 's/^/| /' conftest.$ac_ext >&5
6185
6186 ( exit $ac_status )
6187 ac_cv_header_stdc=no
6188 fi
6189 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6190 fi
6191 fi
6192 fi
6193 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6194 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6195 if test $ac_cv_header_stdc = yes; then
6196
6197 cat >>confdefs.h <<\_ACEOF
6198 #define STDC_HEADERS 1
6199 _ACEOF
6200
6201 fi
6202
6203 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6214                   inttypes.h stdint.h unistd.h
6215 do
6216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6217 echo "$as_me:$LINENO: checking for $ac_header" >&5
6218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6220   echo $ECHO_N "(cached) $ECHO_C" >&6
6221 else
6222   cat >conftest.$ac_ext <<_ACEOF
6223 /* confdefs.h.  */
6224 _ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h.  */
6228 $ac_includes_default
6229
6230 #include <$ac_header>
6231 _ACEOF
6232 rm -f conftest.$ac_objext
6233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6234   (eval $ac_compile) 2>conftest.er1
6235   ac_status=$?
6236   grep -v '^ *+' conftest.er1 >conftest.err
6237   rm -f conftest.er1
6238   cat conftest.err >&5
6239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240   (exit $ac_status); } &&
6241          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243   (eval $ac_try) 2>&5
6244   ac_status=$?
6245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246   (exit $ac_status); }; } &&
6247          { ac_try='test -s conftest.$ac_objext'
6248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249   (eval $ac_try) 2>&5
6250   ac_status=$?
6251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252   (exit $ac_status); }; }; then
6253   eval "$as_ac_Header=yes"
6254 else
6255   echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.$ac_ext >&5
6257
6258 eval "$as_ac_Header=no"
6259 fi
6260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6261 fi
6262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6265   cat >>confdefs.h <<_ACEOF
6266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6267 _ACEOF
6268
6269 fi
6270
6271 done
6272
6273
6274 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
6275   echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
6276 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
6277 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
6278   echo $ECHO_N "(cached) $ECHO_C" >&6
6279 fi
6280 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
6281 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
6282 else
6283   # Is the header compilable?
6284 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
6285 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
6286 cat >conftest.$ac_ext <<_ACEOF
6287 /* confdefs.h.  */
6288 _ACEOF
6289 cat confdefs.h >>conftest.$ac_ext
6290 cat >>conftest.$ac_ext <<_ACEOF
6291 /* end confdefs.h.  */
6292 $ac_includes_default
6293 #include <sys/dg_sys_info.h>
6294 _ACEOF
6295 rm -f conftest.$ac_objext
6296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6297   (eval $ac_compile) 2>conftest.er1
6298   ac_status=$?
6299   grep -v '^ *+' conftest.er1 >conftest.err
6300   rm -f conftest.er1
6301   cat conftest.err >&5
6302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303   (exit $ac_status); } &&
6304          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6306   (eval $ac_try) 2>&5
6307   ac_status=$?
6308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309   (exit $ac_status); }; } &&
6310          { ac_try='test -s conftest.$ac_objext'
6311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6312   (eval $ac_try) 2>&5
6313   ac_status=$?
6314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315   (exit $ac_status); }; }; then
6316   ac_header_compiler=yes
6317 else
6318   echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6320
6321 ac_header_compiler=no
6322 fi
6323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6324 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6325 echo "${ECHO_T}$ac_header_compiler" >&6
6326
6327 # Is the header present?
6328 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
6329 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
6330 cat >conftest.$ac_ext <<_ACEOF
6331 /* confdefs.h.  */
6332 _ACEOF
6333 cat confdefs.h >>conftest.$ac_ext
6334 cat >>conftest.$ac_ext <<_ACEOF
6335 /* end confdefs.h.  */
6336 #include <sys/dg_sys_info.h>
6337 _ACEOF
6338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6339   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6340   ac_status=$?
6341   grep -v '^ *+' conftest.er1 >conftest.err
6342   rm -f conftest.er1
6343   cat conftest.err >&5
6344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345   (exit $ac_status); } >/dev/null; then
6346   if test -s conftest.err; then
6347     ac_cpp_err=$ac_c_preproc_warn_flag
6348     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6349   else
6350     ac_cpp_err=
6351   fi
6352 else
6353   ac_cpp_err=yes
6354 fi
6355 if test -z "$ac_cpp_err"; then
6356   ac_header_preproc=yes
6357 else
6358   echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6360
6361   ac_header_preproc=no
6362 fi
6363 rm -f conftest.err conftest.$ac_ext
6364 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6365 echo "${ECHO_T}$ac_header_preproc" >&6
6366
6367 # So?  What about this header?
6368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6369   yes:no: )
6370     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
6371 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6372     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
6373 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
6374     ac_header_preproc=yes
6375     ;;
6376   no:yes:* )
6377     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
6378 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
6379     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&5
6380 echo "$as_me: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&2;}
6381     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
6382 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
6383     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&5
6384 echo "$as_me: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6385     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
6386 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
6387     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
6388 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
6389     (
6390       cat <<\_ASBOX
6391 ## ------------------------------------------ ##
6392 ## Report this to the AC_PACKAGE_NAME lists.  ##
6393 ## ------------------------------------------ ##
6394 _ASBOX
6395     ) |
6396       sed "s/^/$as_me: WARNING:     /" >&2
6397     ;;
6398 esac
6399 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
6400 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
6401 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
6402   echo $ECHO_N "(cached) $ECHO_C" >&6
6403 else
6404   ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
6405 fi
6406 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
6407 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
6408
6409 fi
6410 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
6411   ac_is_dgux=yes;
6412 fi
6413
6414
6415
6416 echo "$as_me:$LINENO: result: $ac_is_dgux" >&5
6417 echo "${ECHO_T}$ac_is_dgux" >&6
6418     ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
6419 if test $ac_is_dgux = yes; then
6420     if test "$enable_full_debug" = "yes"; then
6421       CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
6422       CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
6423     else
6424       CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
6425       CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
6426     fi
6427
6428
6429 fi
6430
6431 echo "$as_me:$LINENO: checking whether Solaris gcc optimization fix is necessary" >&5
6432 echo $ECHO_N "checking whether Solaris gcc optimization fix is necessary... $ECHO_C" >&6
6433 case "$host" in
6434  sparc-sun-solaris2*|*aix*)
6435     if test "$GCC" = yes; then
6436        echo "$as_me:$LINENO: result: yes" >&5
6437 echo "${ECHO_T}yes" >&6
6438        new_CFLAGS=
6439        for i in $CFLAGS; do
6440           case "$i" in
6441            -O*)
6442               ;;
6443            *)
6444               new_CFLAGS="$new_CFLAGS $i"
6445               ;;
6446           esac
6447        done
6448        CFLAGS="$new_CFLAGS"
6449     else
6450        echo "$as_me:$LINENO: result: no" >&5
6451 echo "${ECHO_T}no" >&6
6452     fi
6453     ;;
6454  *) echo "$as_me:$LINENO: result: no" >&5
6455 echo "${ECHO_T}no" >&6 ;;
6456 esac
6457
6458 MY_CFLAGS="$CFLAGS"
6459
6460
6461 cat >>confdefs.h <<\_ACEOF
6462 #define SILENT 1
6463 _ACEOF
6464
6465 cat >>confdefs.h <<\_ACEOF
6466 #define NO_SIGNALS 1
6467 _ACEOF
6468
6469 cat >>confdefs.h <<\_ACEOF
6470 #define ALL_INTERIOR_POINTERS 1
6471 _ACEOF
6472
6473
6474 cat >>confdefs.h <<\_ACEOF
6475 #define JAVA_FINALIZATION 1
6476 _ACEOF
6477
6478 cat >>confdefs.h <<\_ACEOF
6479 #define GC_GCJ_SUPPORT 1
6480 _ACEOF
6481
6482 cat >>confdefs.h <<\_ACEOF
6483 #define ATOMIC_UNCOLLECTABLE 1
6484 _ACEOF
6485
6486
6487 if test -n "${with_cross_host}"; then
6488    cat >>confdefs.h <<\_ACEOF
6489 #define NO_SIGSET 1
6490 _ACEOF
6491
6492    cat >>confdefs.h <<\_ACEOF
6493 #define NO_DEBUGGING 1
6494 _ACEOF
6495
6496 fi
6497
6498 # Check whether --enable-gc-debug or --disable-gc-debug was given.
6499 if test "${enable_gc_debug+set}" = set; then
6500   enableval="$enable_gc_debug"
6501    if test "$enable_gc_debug" = "yes"; then
6502     { echo "$as_me:$LINENO: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&5
6503 echo "$as_me: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
6504     cat >>confdefs.h <<\_ACEOF
6505 #define KEEP_BACK_PTRS 1
6506 _ACEOF
6507
6508     cat >>confdefs.h <<\_ACEOF
6509 #define DBG_HDRS_ALL 1
6510 _ACEOF
6511
6512     case $host in
6513       ia64-*-linux* )
6514         cat >>confdefs.h <<\_ACEOF
6515 #define MAKE_BACK_GRAPH 1
6516 _ACEOF
6517
6518       ;;
6519       x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
6520         cat >>confdefs.h <<\_ACEOF
6521 #define MAKE_BACK_GRAPH 1
6522 _ACEOF
6523
6524         { echo "$as_me:$LINENO: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
6525 echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
6526         cat >>confdefs.h <<\_ACEOF
6527 #define SAVE_CALL_COUNT 8
6528 _ACEOF
6529
6530       ;;
6531       i345686-*-dgux*)
6532         cat >>confdefs.h <<\_ACEOF
6533 #define MAKE_BACK_GRAPH 1
6534 _ACEOF
6535
6536       ;;
6537     esac
6538   fi
6539 fi;
6540
6541 if test -n "$with_cross_host" &&
6542    test x"$with_cross_host" != x"no"; then
6543   toolexecdir='$(exec_prefix)/$(target_noncanonical)'
6544   toolexeclibdir='$(toolexecdir)/lib'
6545 else
6546   toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
6547   toolexeclibdir='$(libdir)'
6548 fi
6549 multi_os_directory=`$CC -print-multi-os-directory`
6550 case $multi_os_directory in
6551   .) ;; # Avoid trailing /.
6552   *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
6553 esac
6554
6555
6556
6557 if test "${multilib}" = "yes"; then
6558   multilib_arg="--enable-multilib"
6559 else
6560   multilib_arg=
6561 fi
6562
6563           ac_config_headers="$ac_config_headers include/gc_config.h"
6564
6565
6566                     ac_config_files="$ac_config_files Makefile include/Makefile"
6567
6568 cat >confcache <<\_ACEOF
6569 # This file is a shell script that caches the results of configure
6570 # tests run on this system so they can be shared between configure
6571 # scripts and configure runs, see configure's option --config-cache.
6572 # It is not useful on other systems.  If it contains results you don't
6573 # want to keep, you may remove or edit it.
6574 #
6575 # config.status only pays attention to the cache file if you give it
6576 # the --recheck option to rerun configure.
6577 #
6578 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6579 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6580 # following values.
6581
6582 _ACEOF
6583
6584 # The following way of writing the cache mishandles newlines in values,
6585 # but we know of no workaround that is simple, portable, and efficient.
6586 # So, don't put newlines in cache variables' values.
6587 # Ultrix sh set writes to stderr and can't be redirected directly,
6588 # and sets the high bit in the cache file unless we assign to the vars.
6589 {
6590   (set) 2>&1 |
6591     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6592     *ac_space=\ *)
6593       # `set' does not quote correctly, so add quotes (double-quote
6594       # substitution turns \\\\ into \\, and sed turns \\ into \).
6595       sed -n \
6596         "s/'/'\\\\''/g;
6597           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6598       ;;
6599     *)
6600       # `set' quotes correctly as required by POSIX, so do not add quotes.
6601       sed -n \
6602         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6603       ;;
6604     esac;
6605 } |
6606   sed '
6607      t clear
6608      : clear
6609      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6610      t end
6611      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6612      : end' >>confcache
6613 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6614   if test -w $cache_file; then
6615     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6616     cat confcache >$cache_file
6617   else
6618     echo "not updating unwritable cache $cache_file"
6619   fi
6620 fi
6621 rm -f confcache
6622
6623 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6624 # Let make expand exec_prefix.
6625 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6626
6627 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6628 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6629 # trailing colons and then remove the whole line if VPATH becomes empty
6630 # (actually we leave an empty line to preserve line numbers).
6631 if test "x$srcdir" = x.; then
6632   ac_vpsub='/^[  ]*VPATH[        ]*=/{
6633 s/:*\$(srcdir):*/:/;
6634 s/:*\${srcdir}:*/:/;
6635 s/:*@srcdir@:*/:/;
6636 s/^\([^=]*=[     ]*\):*/\1/;
6637 s/:*$//;
6638 s/^[^=]*=[       ]*$//;
6639 }'
6640 fi
6641
6642 DEFS=-DHAVE_CONFIG_H
6643
6644 ac_libobjs=
6645 ac_ltlibobjs=
6646 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6647   # 1. Remove the extension, and $U if already installed.
6648   ac_i=`echo "$ac_i" |
6649          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6650   # 2. Add them.
6651   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6652   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6653 done
6654 LIBOBJS=$ac_libobjs
6655
6656 LTLIBOBJS=$ac_ltlibobjs
6657
6658
6659 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6660   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6661 Usually this means the macro was only invoked conditionally." >&5
6662 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6663 Usually this means the macro was only invoked conditionally." >&2;}
6664    { (exit 1); exit 1; }; }
6665 fi
6666 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6667   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6668 Usually this means the macro was only invoked conditionally." >&5
6669 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6670 Usually this means the macro was only invoked conditionally." >&2;}
6671    { (exit 1); exit 1; }; }
6672 fi
6673 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6674   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
6675 Usually this means the macro was only invoked conditionally." >&5
6676 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
6677 Usually this means the macro was only invoked conditionally." >&2;}
6678    { (exit 1); exit 1; }; }
6679 fi
6680 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6681   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6682 Usually this means the macro was only invoked conditionally." >&5
6683 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6684 Usually this means the macro was only invoked conditionally." >&2;}
6685    { (exit 1); exit 1; }; }
6686 fi
6687 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
6688   { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
6689 Usually this means the macro was only invoked conditionally." >&5
6690 echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
6691 Usually this means the macro was only invoked conditionally." >&2;}
6692    { (exit 1); exit 1; }; }
6693 fi
6694 if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
6695   { { echo "$as_me:$LINENO: error: conditional \"CPLUSPLUS\" was never defined.
6696 Usually this means the macro was only invoked conditionally." >&5
6697 echo "$as_me: error: conditional \"CPLUSPLUS\" was never defined.
6698 Usually this means the macro was only invoked conditionally." >&2;}
6699    { (exit 1); exit 1; }; }
6700 fi
6701
6702 : ${CONFIG_STATUS=./config.status}
6703 ac_clean_files_save=$ac_clean_files
6704 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6705 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6706 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6707 cat >$CONFIG_STATUS <<_ACEOF
6708 #! $SHELL
6709 # Generated by $as_me.
6710 # Run this file to recreate the current configuration.
6711 # Compiler output produced by configure, useful for debugging
6712 # configure, is in config.log if it exists.
6713
6714 debug=false
6715 ac_cs_recheck=false
6716 ac_cs_silent=false
6717 SHELL=\${CONFIG_SHELL-$SHELL}
6718 _ACEOF
6719
6720 cat >>$CONFIG_STATUS <<\_ACEOF
6721 ## --------------------- ##
6722 ## M4sh Initialization.  ##
6723 ## --------------------- ##
6724
6725 # Be Bourne compatible
6726 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6727   emulate sh
6728   NULLCMD=:
6729   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6730   # is contrary to our usage.  Disable this feature.
6731   alias -g '${1+"$@"}'='"$@"'
6732 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6733   set -o posix
6734 fi
6735 DUALCASE=1; export DUALCASE # for MKS sh
6736
6737 # Support unset when possible.
6738 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6739   as_unset=unset
6740 else
6741   as_unset=false
6742 fi
6743
6744
6745 # Work around bugs in pre-3.0 UWIN ksh.
6746 $as_unset ENV MAIL MAILPATH
6747 PS1='$ '
6748 PS2='> '
6749 PS4='+ '
6750
6751 # NLS nuisances.
6752 for as_var in \
6753   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6754   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6755   LC_TELEPHONE LC_TIME
6756 do
6757   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6758     eval $as_var=C; export $as_var
6759   else
6760     $as_unset $as_var
6761   fi
6762 done
6763
6764 # Required to use basename.
6765 if expr a : '\(a\)' >/dev/null 2>&1; then
6766   as_expr=expr
6767 else
6768   as_expr=false
6769 fi
6770
6771 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6772   as_basename=basename
6773 else
6774   as_basename=false
6775 fi
6776
6777
6778 # Name of the executable.
6779 as_me=`$as_basename "$0" ||
6780 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6781          X"$0" : 'X\(//\)$' \| \
6782          X"$0" : 'X\(/\)$' \| \
6783          .     : '\(.\)' 2>/dev/null ||
6784 echo X/"$0" |
6785     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6786           /^X\/\(\/\/\)$/{ s//\1/; q; }
6787           /^X\/\(\/\).*/{ s//\1/; q; }
6788           s/.*/./; q'`
6789
6790
6791 # PATH needs CR, and LINENO needs CR and PATH.
6792 # Avoid depending upon Character Ranges.
6793 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6794 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6795 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6796 as_cr_digits='0123456789'
6797 as_cr_alnum=$as_cr_Letters$as_cr_digits
6798
6799 # The user is always right.
6800 if test "${PATH_SEPARATOR+set}" != set; then
6801   echo "#! /bin/sh" >conf$$.sh
6802   echo  "exit 0"   >>conf$$.sh
6803   chmod +x conf$$.sh
6804   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6805     PATH_SEPARATOR=';'
6806   else
6807     PATH_SEPARATOR=:
6808   fi
6809   rm -f conf$$.sh
6810 fi
6811
6812
6813   as_lineno_1=$LINENO
6814   as_lineno_2=$LINENO
6815   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6816   test "x$as_lineno_1" != "x$as_lineno_2" &&
6817   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
6818   # Find who we are.  Look in the path if we contain no path at all
6819   # relative or not.
6820   case $0 in
6821     *[\\/]* ) as_myself=$0 ;;
6822     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6824 do
6825   IFS=$as_save_IFS
6826   test -z "$as_dir" && as_dir=.
6827   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6828 done
6829
6830        ;;
6831   esac
6832   # We did not find ourselves, most probably we were run as `sh COMMAND'
6833   # in which case we are not to be found in the path.
6834   if test "x$as_myself" = x; then
6835     as_myself=$0
6836   fi
6837   if test ! -f "$as_myself"; then
6838     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6839 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6840    { (exit 1); exit 1; }; }
6841   fi
6842   case $CONFIG_SHELL in
6843   '')
6844     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6846 do
6847   IFS=$as_save_IFS
6848   test -z "$as_dir" && as_dir=.
6849   for as_base in sh bash ksh sh5; do
6850          case $as_dir in
6851          /*)
6852            if ("$as_dir/$as_base" -c '
6853   as_lineno_1=$LINENO
6854   as_lineno_2=$LINENO
6855   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6856   test "x$as_lineno_1" != "x$as_lineno_2" &&
6857   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6858              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6859              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6860              CONFIG_SHELL=$as_dir/$as_base
6861              export CONFIG_SHELL
6862              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6863            fi;;
6864          esac
6865        done
6866 done
6867 ;;
6868   esac
6869
6870   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6871   # uniformly replaced by the line number.  The first 'sed' inserts a
6872   # line-number line before each line; the second 'sed' does the real
6873   # work.  The second script uses 'N' to pair each line-number line
6874   # with the numbered line, and appends trailing '-' during
6875   # substitution so that $LINENO is not a special case at line end.
6876   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6877   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6878   sed '=' <$as_myself |
6879     sed '
6880       N
6881       s,$,-,
6882       : loop
6883       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6884       t loop
6885       s,-$,,
6886       s,^['$as_cr_digits']*\n,,
6887     ' >$as_me.lineno &&
6888   chmod +x $as_me.lineno ||
6889     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6890 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6891    { (exit 1); exit 1; }; }
6892
6893   # Don't try to exec as it changes $[0], causing all sort of problems
6894   # (the dirname of $[0] is not the place where we might find the
6895   # original and so on.  Autoconf is especially sensible to this).
6896   . ./$as_me.lineno
6897   # Exit status is that of the last command.
6898   exit
6899 }
6900
6901
6902 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6903   *c*,-n*) ECHO_N= ECHO_C='
6904 ' ECHO_T='      ' ;;
6905   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6906   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6907 esac
6908
6909 if expr a : '\(a\)' >/dev/null 2>&1; then
6910   as_expr=expr
6911 else
6912   as_expr=false
6913 fi
6914
6915 rm -f conf$$ conf$$.exe conf$$.file
6916 echo >conf$$.file
6917 if ln -s conf$$.file conf$$ 2>/dev/null; then
6918   # We could just check for DJGPP; but this test a) works b) is more generic
6919   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6920   if test -f conf$$.exe; then
6921     # Don't use ln at all; we don't have any links
6922     as_ln_s='cp -p'
6923   else
6924     as_ln_s='ln -s'
6925   fi
6926 elif ln conf$$.file conf$$ 2>/dev/null; then
6927   as_ln_s=ln
6928 else
6929   as_ln_s='cp -p'
6930 fi
6931 rm -f conf$$ conf$$.exe conf$$.file
6932
6933 if mkdir -p . 2>/dev/null; then
6934   as_mkdir_p=:
6935 else
6936   test -d ./-p && rmdir ./-p
6937   as_mkdir_p=false
6938 fi
6939
6940 as_executable_p="test -f"
6941
6942 # Sed expression to map a string onto a valid CPP name.
6943 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6944
6945 # Sed expression to map a string onto a valid variable name.
6946 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6947
6948
6949 # IFS
6950 # We need space, tab and new line, in precisely that order.
6951 as_nl='
6952 '
6953 IFS="   $as_nl"
6954
6955 # CDPATH.
6956 $as_unset CDPATH
6957
6958 exec 6>&1
6959
6960 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6961 # report actual input values of CONFIG_FILES etc. instead of their
6962 # values after options handling.  Logging --version etc. is OK.
6963 exec 5>>config.log
6964 {
6965   echo
6966   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6967 ## Running $as_me. ##
6968 _ASBOX
6969 } >&5
6970 cat >&5 <<_CSEOF
6971
6972 This file was extended by $as_me, which was
6973 generated by GNU Autoconf 2.59.  Invocation command line was
6974
6975   CONFIG_FILES    = $CONFIG_FILES
6976   CONFIG_HEADERS  = $CONFIG_HEADERS
6977   CONFIG_LINKS    = $CONFIG_LINKS
6978   CONFIG_COMMANDS = $CONFIG_COMMANDS
6979   $ $0 $@
6980
6981 _CSEOF
6982 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6983 echo >&5
6984 _ACEOF
6985
6986 # Files that config.status was made for.
6987 if test -n "$ac_config_files"; then
6988   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6989 fi
6990
6991 if test -n "$ac_config_headers"; then
6992   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6993 fi
6994
6995 if test -n "$ac_config_links"; then
6996   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6997 fi
6998
6999 if test -n "$ac_config_commands"; then
7000   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7001 fi
7002
7003 cat >>$CONFIG_STATUS <<\_ACEOF
7004
7005 ac_cs_usage="\
7006 \`$as_me' instantiates files from templates according to the
7007 current configuration.
7008
7009 Usage: $0 [OPTIONS] [FILE]...
7010
7011   -h, --help       print this help, then exit
7012   -V, --version    print version number, then exit
7013   -q, --quiet      do not print progress messages
7014   -d, --debug      don't remove temporary files
7015       --recheck    update $as_me by reconfiguring in the same conditions
7016   --file=FILE[:TEMPLATE]
7017                    instantiate the configuration file FILE
7018   --header=FILE[:TEMPLATE]
7019                    instantiate the configuration header FILE
7020
7021 Configuration files:
7022 $config_files
7023
7024 Configuration headers:
7025 $config_headers
7026
7027 Configuration commands:
7028 $config_commands
7029
7030 Report bugs to <bug-autoconf@gnu.org>."
7031 _ACEOF
7032
7033 cat >>$CONFIG_STATUS <<_ACEOF
7034 ac_cs_version="\\
7035 config.status
7036 configured by $0, generated by GNU Autoconf 2.59,
7037   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7038
7039 Copyright (C) 2003 Free Software Foundation, Inc.
7040 This config.status script is free software; the Free Software Foundation
7041 gives unlimited permission to copy, distribute and modify it."
7042 srcdir=$srcdir
7043 INSTALL="$INSTALL"
7044 _ACEOF
7045
7046 cat >>$CONFIG_STATUS <<\_ACEOF
7047 # If no file are specified by the user, then we need to provide default
7048 # value.  By we need to know if files were specified by the user.
7049 ac_need_defaults=:
7050 while test $# != 0
7051 do
7052   case $1 in
7053   --*=*)
7054     ac_option=`expr "x$1" : 'x\([^=]*\)='`
7055     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7056     ac_shift=:
7057     ;;
7058   -*)
7059     ac_option=$1
7060     ac_optarg=$2
7061     ac_shift=shift
7062     ;;
7063   *) # This is not an option, so the user has probably given explicit
7064      # arguments.
7065      ac_option=$1
7066      ac_need_defaults=false;;
7067   esac
7068
7069   case $ac_option in
7070   # Handling of the options.
7071 _ACEOF
7072 cat >>$CONFIG_STATUS <<\_ACEOF
7073   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7074     ac_cs_recheck=: ;;
7075   --version | --vers* | -V )
7076     echo "$ac_cs_version"; exit 0 ;;
7077   --he | --h)
7078     # Conflict between --help and --header
7079     { { echo "$as_me:$LINENO: error: ambiguous option: $1
7080 Try \`$0 --help' for more information." >&5
7081 echo "$as_me: error: ambiguous option: $1
7082 Try \`$0 --help' for more information." >&2;}
7083    { (exit 1); exit 1; }; };;
7084   --help | --hel | -h )
7085     echo "$ac_cs_usage"; exit 0 ;;
7086   --debug | --d* | -d )
7087     debug=: ;;
7088   --file | --fil | --fi | --f )
7089     $ac_shift
7090     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7091     ac_need_defaults=false;;
7092   --header | --heade | --head | --hea )
7093     $ac_shift
7094     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7095     ac_need_defaults=false;;
7096   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7097   | -silent | --silent | --silen | --sile | --sil | --si | --s)
7098     ac_cs_silent=: ;;
7099
7100   # This is an error.
7101   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7102 Try \`$0 --help' for more information." >&5
7103 echo "$as_me: error: unrecognized option: $1
7104 Try \`$0 --help' for more information." >&2;}
7105    { (exit 1); exit 1; }; } ;;
7106
7107   *) ac_config_targets="$ac_config_targets $1" ;;
7108
7109   esac
7110   shift
7111 done
7112
7113 ac_configure_extra_args=
7114
7115 if $ac_cs_silent; then
7116   exec 6>/dev/null
7117   ac_configure_extra_args="$ac_configure_extra_args --silent"
7118 fi
7119
7120 _ACEOF
7121 cat >>$CONFIG_STATUS <<_ACEOF
7122 if \$ac_cs_recheck; then
7123   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7124   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7125 fi
7126
7127 _ACEOF
7128
7129 cat >>$CONFIG_STATUS <<_ACEOF
7130 #
7131 # INIT-COMMANDS section.
7132 #
7133
7134
7135 srcdir="$srcdir"
7136 host="$host"
7137 target="$target"
7138 with_multisubdir="$with_multisubdir"
7139 with_multisrctop="$with_multisrctop"
7140 with_target_subdir="$with_target_subdir"
7141 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7142 multi_basedir="$multi_basedir"
7143 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7144 CC="$CC"
7145 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7146
7147 _ACEOF
7148
7149
7150
7151 cat >>$CONFIG_STATUS <<\_ACEOF
7152 for ac_config_target in $ac_config_targets
7153 do
7154   case "$ac_config_target" in
7155   # Handling of arguments.
7156   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7157   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
7158   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7159   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7160   "include/gc_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/gc_config.h" ;;
7161   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7162 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7163    { (exit 1); exit 1; }; };;
7164   esac
7165 done
7166
7167 # If the user did not use the arguments to specify the items to instantiate,
7168 # then the envvar interface is used.  Set only those that are not.
7169 # We use the long form for the default assignment because of an extremely
7170 # bizarre bug on SunOS 4.1.3.
7171 if $ac_need_defaults; then
7172   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7173   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7174   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7175 fi
7176
7177 # Have a temporary directory for convenience.  Make it in the build tree
7178 # simply because there is no reason to put it here, and in addition,
7179 # creating and moving files from /tmp can sometimes cause problems.
7180 # Create a temporary directory, and hook for its removal unless debugging.
7181 $debug ||
7182 {
7183   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7184   trap '{ (exit 1); exit 1; }' 1 2 13 15
7185 }
7186
7187 # Create a (secure) tmp directory for tmp files.
7188
7189 {
7190   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7191   test -n "$tmp" && test -d "$tmp"
7192 }  ||
7193 {
7194   tmp=./confstat$$-$RANDOM
7195   (umask 077 && mkdir $tmp)
7196 } ||
7197 {
7198    echo "$me: cannot create a temporary directory in ." >&2
7199    { (exit 1); exit 1; }
7200 }
7201
7202 _ACEOF
7203
7204 cat >>$CONFIG_STATUS <<_ACEOF
7205
7206 #
7207 # CONFIG_FILES section.
7208 #
7209
7210 # No need to generate the scripts if there are no CONFIG_FILES.
7211 # This happens for instance when ./config.status config.h
7212 if test -n "\$CONFIG_FILES"; then
7213   # Protect against being on the right side of a sed subst in config.status.
7214   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7215    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7216 s,@SHELL@,$SHELL,;t t
7217 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7218 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7219 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7220 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7221 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7222 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7223 s,@exec_prefix@,$exec_prefix,;t t
7224 s,@prefix@,$prefix,;t t
7225 s,@program_transform_name@,$program_transform_name,;t t
7226 s,@bindir@,$bindir,;t t
7227 s,@sbindir@,$sbindir,;t t
7228 s,@libexecdir@,$libexecdir,;t t
7229 s,@datadir@,$datadir,;t t
7230 s,@sysconfdir@,$sysconfdir,;t t
7231 s,@sharedstatedir@,$sharedstatedir,;t t
7232 s,@localstatedir@,$localstatedir,;t t
7233 s,@libdir@,$libdir,;t t
7234 s,@includedir@,$includedir,;t t
7235 s,@oldincludedir@,$oldincludedir,;t t
7236 s,@infodir@,$infodir,;t t
7237 s,@mandir@,$mandir,;t t
7238 s,@build_alias@,$build_alias,;t t
7239 s,@host_alias@,$host_alias,;t t
7240 s,@target_alias@,$target_alias,;t t
7241 s,@DEFS@,$DEFS,;t t
7242 s,@ECHO_C@,$ECHO_C,;t t
7243 s,@ECHO_N@,$ECHO_N,;t t
7244 s,@ECHO_T@,$ECHO_T,;t t
7245 s,@LIBS@,$LIBS,;t t
7246 s,@multi_basedir@,$multi_basedir,;t t
7247 s,@build@,$build,;t t
7248 s,@build_cpu@,$build_cpu,;t t
7249 s,@build_vendor@,$build_vendor,;t t
7250 s,@build_os@,$build_os,;t t
7251 s,@host@,$host,;t t
7252 s,@host_cpu@,$host_cpu,;t t
7253 s,@host_vendor@,$host_vendor,;t t
7254 s,@host_os@,$host_os,;t t
7255 s,@target@,$target,;t t
7256 s,@target_cpu@,$target_cpu,;t t
7257 s,@target_vendor@,$target_vendor,;t t
7258 s,@target_os@,$target_os,;t t
7259 s,@target_noncanonical@,$target_noncanonical,;t t
7260 s,@mkinstalldirs@,$mkinstalldirs,;t t
7261 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7262 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7263 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7264 s,@CYGPATH_W@,$CYGPATH_W,;t t
7265 s,@PACKAGE@,$PACKAGE,;t t
7266 s,@VERSION@,$VERSION,;t t
7267 s,@ACLOCAL@,$ACLOCAL,;t t
7268 s,@AUTOCONF@,$AUTOCONF,;t t
7269 s,@AUTOMAKE@,$AUTOMAKE,;t t
7270 s,@AUTOHEADER@,$AUTOHEADER,;t t
7271 s,@MAKEINFO@,$MAKEINFO,;t t
7272 s,@install_sh@,$install_sh,;t t
7273 s,@STRIP@,$STRIP,;t t
7274 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7275 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7276 s,@mkdir_p@,$mkdir_p,;t t
7277 s,@AWK@,$AWK,;t t
7278 s,@SET_MAKE@,$SET_MAKE,;t t
7279 s,@am__leading_dot@,$am__leading_dot,;t t
7280 s,@AMTAR@,$AMTAR,;t t
7281 s,@am__tar@,$am__tar,;t t
7282 s,@am__untar@,$am__untar,;t t
7283 s,@CC@,$CC,;t t
7284 s,@ac_ct_CC@,$ac_ct_CC,;t t
7285 s,@EXEEXT@,$EXEEXT,;t t
7286 s,@OBJEXT@,$OBJEXT,;t t
7287 s,@DEPDIR@,$DEPDIR,;t t
7288 s,@am__include@,$am__include,;t t
7289 s,@am__quote@,$am__quote,;t t
7290 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7291 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7292 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7293 s,@CCDEPMODE@,$CCDEPMODE,;t t
7294 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7295 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7296 s,@CXX@,$CXX,;t t
7297 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7298 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
7299 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
7300 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
7301 s,@CFLAGS@,$CFLAGS,;t t
7302 s,@CXXFLAGS@,$CXXFLAGS,;t t
7303 s,@CCAS@,$CCAS,;t t
7304 s,@CCASFLAGS@,$CCASFLAGS,;t t
7305 s,@AS@,$AS,;t t
7306 s,@ac_ct_AS@,$ac_ct_AS,;t t
7307 s,@AR@,$AR,;t t
7308 s,@ac_ct_AR@,$ac_ct_AR,;t t
7309 s,@RANLIB@,$RANLIB,;t t
7310 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7311 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
7312 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
7313 s,@MAINT@,$MAINT,;t t
7314 s,@GC_CFLAGS@,$GC_CFLAGS,;t t
7315 s,@LN_S@,$LN_S,;t t
7316 s,@LIBTOOL@,$LIBTOOL,;t t
7317 s,@CXXCPP@,$CXXCPP,;t t
7318 s,@CPPFLAGS@,$CPPFLAGS,;t t
7319 s,@THREADLIBS@,$THREADLIBS,;t t
7320 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
7321 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
7322 s,@EXTRA_TEST_LIBS@,$EXTRA_TEST_LIBS,;t t
7323 s,@target_all@,$target_all,;t t
7324 s,@CPLUSPLUS_TRUE@,$CPLUSPLUS_TRUE,;t t
7325 s,@CPLUSPLUS_FALSE@,$CPLUSPLUS_FALSE,;t t
7326 s,@AM_CPPFLAGS@,$AM_CPPFLAGS,;t t
7327 s,@addobjs@,$addobjs,;t t
7328 s,@addincludes@,$addincludes,;t t
7329 s,@addlibs@,$addlibs,;t t
7330 s,@addtests@,$addtests,;t t
7331 s,@CPP@,$CPP,;t t
7332 s,@EGREP@,$EGREP,;t t
7333 s,@MY_CFLAGS@,$MY_CFLAGS,;t t
7334 s,@toolexecdir@,$toolexecdir,;t t
7335 s,@toolexeclibdir@,$toolexeclibdir,;t t
7336 s,@LIBOBJS@,$LIBOBJS,;t t
7337 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7338 CEOF
7339
7340 _ACEOF
7341
7342   cat >>$CONFIG_STATUS <<\_ACEOF
7343   # Split the substitutions into bite-sized pieces for seds with
7344   # small command number limits, like on Digital OSF/1 and HP-UX.
7345   ac_max_sed_lines=48
7346   ac_sed_frag=1 # Number of current file.
7347   ac_beg=1 # First line for current file.
7348   ac_end=$ac_max_sed_lines # Line after last line for current file.
7349   ac_more_lines=:
7350   ac_sed_cmds=
7351   while $ac_more_lines; do
7352     if test $ac_beg -gt 1; then
7353       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7354     else
7355       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7356     fi
7357     if test ! -s $tmp/subs.frag; then
7358       ac_more_lines=false
7359     else
7360       # The purpose of the label and of the branching condition is to
7361       # speed up the sed processing (if there are no `@' at all, there
7362       # is no need to browse any of the substitutions).
7363       # These are the two extra sed commands mentioned above.
7364       (echo ':t
7365   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7366       if test -z "$ac_sed_cmds"; then
7367         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7368       else
7369         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7370       fi
7371       ac_sed_frag=`expr $ac_sed_frag + 1`
7372       ac_beg=$ac_end
7373       ac_end=`expr $ac_end + $ac_max_sed_lines`
7374     fi
7375   done
7376   if test -z "$ac_sed_cmds"; then
7377     ac_sed_cmds=cat
7378   fi
7379 fi # test -n "$CONFIG_FILES"
7380
7381 _ACEOF
7382 cat >>$CONFIG_STATUS <<\_ACEOF
7383 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7384   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7385   case $ac_file in
7386   - | *:- | *:-:* ) # input from stdin
7387         cat >$tmp/stdin
7388         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7389         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7390   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7391         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7392   * )   ac_file_in=$ac_file.in ;;
7393   esac
7394
7395   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7396   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7397 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7398          X"$ac_file" : 'X\(//\)[^/]' \| \
7399          X"$ac_file" : 'X\(//\)$' \| \
7400          X"$ac_file" : 'X\(/\)' \| \
7401          .     : '\(.\)' 2>/dev/null ||
7402 echo X"$ac_file" |
7403     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7404           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7405           /^X\(\/\/\)$/{ s//\1/; q; }
7406           /^X\(\/\).*/{ s//\1/; q; }
7407           s/.*/./; q'`
7408   { if $as_mkdir_p; then
7409     mkdir -p "$ac_dir"
7410   else
7411     as_dir="$ac_dir"
7412     as_dirs=
7413     while test ! -d "$as_dir"; do
7414       as_dirs="$as_dir $as_dirs"
7415       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7416 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7417          X"$as_dir" : 'X\(//\)[^/]' \| \
7418          X"$as_dir" : 'X\(//\)$' \| \
7419          X"$as_dir" : 'X\(/\)' \| \
7420          .     : '\(.\)' 2>/dev/null ||
7421 echo X"$as_dir" |
7422     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7423           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7424           /^X\(\/\/\)$/{ s//\1/; q; }
7425           /^X\(\/\).*/{ s//\1/; q; }
7426           s/.*/./; q'`
7427     done
7428     test ! -n "$as_dirs" || mkdir $as_dirs
7429   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7430 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7431    { (exit 1); exit 1; }; }; }
7432
7433   ac_builddir=.
7434
7435 if test "$ac_dir" != .; then
7436   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7437   # A "../" for each directory in $ac_dir_suffix.
7438   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7439 else
7440   ac_dir_suffix= ac_top_builddir=
7441 fi
7442
7443 case $srcdir in
7444   .)  # No --srcdir option.  We are building in place.
7445     ac_srcdir=.
7446     if test -z "$ac_top_builddir"; then
7447        ac_top_srcdir=.
7448     else
7449        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7450     fi ;;
7451   [\\/]* | ?:[\\/]* )  # Absolute path.
7452     ac_srcdir=$srcdir$ac_dir_suffix;
7453     ac_top_srcdir=$srcdir ;;
7454   *) # Relative path.
7455     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7456     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7457 esac
7458
7459 # Do not use `cd foo && pwd` to compute absolute paths, because
7460 # the directories may not exist.
7461 case `pwd` in
7462 .) ac_abs_builddir="$ac_dir";;
7463 *)
7464   case "$ac_dir" in
7465   .) ac_abs_builddir=`pwd`;;
7466   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7467   *) ac_abs_builddir=`pwd`/"$ac_dir";;
7468   esac;;
7469 esac
7470 case $ac_abs_builddir in
7471 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7472 *)
7473   case ${ac_top_builddir}. in
7474   .) ac_abs_top_builddir=$ac_abs_builddir;;
7475   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7476   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7477   esac;;
7478 esac
7479 case $ac_abs_builddir in
7480 .) ac_abs_srcdir=$ac_srcdir;;
7481 *)
7482   case $ac_srcdir in
7483   .) ac_abs_srcdir=$ac_abs_builddir;;
7484   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7485   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7486   esac;;
7487 esac
7488 case $ac_abs_builddir in
7489 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7490 *)
7491   case $ac_top_srcdir in
7492   .) ac_abs_top_srcdir=$ac_abs_builddir;;
7493   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7494   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7495   esac;;
7496 esac
7497
7498
7499   case $INSTALL in
7500   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7501   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7502   esac
7503
7504   # Let's still pretend it is `configure' which instantiates (i.e., don't
7505   # use $as_me), people would be surprised to read:
7506   #    /* config.h.  Generated by config.status.  */
7507   if test x"$ac_file" = x-; then
7508     configure_input=
7509   else
7510     configure_input="$ac_file.  "
7511   fi
7512   configure_input=$configure_input"Generated from `echo $ac_file_in |
7513                                      sed 's,.*/,,'` by configure."
7514
7515   # First look for the input files in the build tree, otherwise in the
7516   # src tree.
7517   ac_file_inputs=`IFS=:
7518     for f in $ac_file_in; do
7519       case $f in
7520       -) echo $tmp/stdin ;;
7521       [\\/$]*)
7522          # Absolute (can't be DOS-style, as IFS=:)
7523          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7524 echo "$as_me: error: cannot find input file: $f" >&2;}
7525    { (exit 1); exit 1; }; }
7526          echo "$f";;
7527       *) # Relative
7528          if test -f "$f"; then
7529            # Build tree
7530            echo "$f"
7531          elif test -f "$srcdir/$f"; then
7532            # Source tree
7533            echo "$srcdir/$f"
7534          else
7535            # /dev/null tree
7536            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7537 echo "$as_me: error: cannot find input file: $f" >&2;}
7538    { (exit 1); exit 1; }; }
7539          fi;;
7540       esac
7541     done` || { (exit 1); exit 1; }
7542
7543   if test x"$ac_file" != x-; then
7544     { echo "$as_me:$LINENO: creating $ac_file" >&5
7545 echo "$as_me: creating $ac_file" >&6;}
7546     rm -f "$ac_file"
7547   fi
7548 _ACEOF
7549 cat >>$CONFIG_STATUS <<_ACEOF
7550   sed "$ac_vpsub
7551 $extrasub
7552 _ACEOF
7553 cat >>$CONFIG_STATUS <<\_ACEOF
7554 :t
7555 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7556 s,@configure_input@,$configure_input,;t t
7557 s,@srcdir@,$ac_srcdir,;t t
7558 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7559 s,@top_srcdir@,$ac_top_srcdir,;t t
7560 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7561 s,@builddir@,$ac_builddir,;t t
7562 s,@abs_builddir@,$ac_abs_builddir,;t t
7563 s,@top_builddir@,$ac_top_builddir,;t t
7564 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7565 s,@INSTALL@,$ac_INSTALL,;t t
7566 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7567   rm -f $tmp/stdin
7568   if test x"$ac_file" != x-; then
7569     mv $tmp/out $ac_file
7570   else
7571     cat $tmp/out
7572     rm -f $tmp/out
7573   fi
7574
7575 done
7576 _ACEOF
7577 cat >>$CONFIG_STATUS <<\_ACEOF
7578
7579 #
7580 # CONFIG_HEADER section.
7581 #
7582
7583 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7584 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7585 #
7586 # ac_d sets the value in "#define NAME VALUE" lines.
7587 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
7588 ac_dB='[         ].*$,\1#\2'
7589 ac_dC=' '
7590 ac_dD=',;t'
7591 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7592 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7593 ac_uB='$,\1#\2define\3'
7594 ac_uC=' '
7595 ac_uD=',;t'
7596
7597 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7598   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7599   case $ac_file in
7600   - | *:- | *:-:* ) # input from stdin
7601         cat >$tmp/stdin
7602         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7603         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7604   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7605         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7606   * )   ac_file_in=$ac_file.in ;;
7607   esac
7608
7609   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7610 echo "$as_me: creating $ac_file" >&6;}
7611
7612   # First look for the input files in the build tree, otherwise in the
7613   # src tree.
7614   ac_file_inputs=`IFS=:
7615     for f in $ac_file_in; do
7616       case $f in
7617       -) echo $tmp/stdin ;;
7618       [\\/$]*)
7619          # Absolute (can't be DOS-style, as IFS=:)
7620          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7621 echo "$as_me: error: cannot find input file: $f" >&2;}
7622    { (exit 1); exit 1; }; }
7623          # Do quote $f, to prevent DOS paths from being IFS'd.
7624          echo "$f";;
7625       *) # Relative
7626          if test -f "$f"; then
7627            # Build tree
7628            echo "$f"
7629          elif test -f "$srcdir/$f"; then
7630            # Source tree
7631            echo "$srcdir/$f"
7632          else
7633            # /dev/null tree
7634            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7635 echo "$as_me: error: cannot find input file: $f" >&2;}
7636    { (exit 1); exit 1; }; }
7637          fi;;
7638       esac
7639     done` || { (exit 1); exit 1; }
7640   # Remove the trailing spaces.
7641   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
7642
7643 _ACEOF
7644
7645 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7646 # `conftest.undefs', that substitutes the proper values into
7647 # config.h.in to produce config.h.  The first handles `#define'
7648 # templates, and the second `#undef' templates.
7649 # And first: Protect against being on the right side of a sed subst in
7650 # config.status.  Protect against being in an unquoted here document
7651 # in config.status.
7652 rm -f conftest.defines conftest.undefs
7653 # Using a here document instead of a string reduces the quoting nightmare.
7654 # Putting comments in sed scripts is not portable.
7655 #
7656 # `end' is used to avoid that the second main sed command (meant for
7657 # 0-ary CPP macros) applies to n-ary macro definitions.
7658 # See the Autoconf documentation for `clear'.
7659 cat >confdef2sed.sed <<\_ACEOF
7660 s/[\\&,]/\\&/g
7661 s,[\\$`],\\&,g
7662 t clear
7663 : clear
7664 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7665 t end
7666 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7667 : end
7668 _ACEOF
7669 # If some macros were called several times there might be several times
7670 # the same #defines, which is useless.  Nevertheless, we may not want to
7671 # sort them, since we want the *last* AC-DEFINE to be honored.
7672 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7673 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7674 rm -f confdef2sed.sed
7675
7676 # This sed command replaces #undef with comments.  This is necessary, for
7677 # example, in the case of _POSIX_SOURCE, which is predefined and required
7678 # on some systems where configure will not decide to define it.
7679 cat >>conftest.undefs <<\_ACEOF
7680 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7681 _ACEOF
7682
7683 # Break up conftest.defines because some shells have a limit on the size
7684 # of here documents, and old seds have small limits too (100 cmds).
7685 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7686 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7687 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7688 echo '  :' >>$CONFIG_STATUS
7689 rm -f conftest.tail
7690 while grep . conftest.defines >/dev/null
7691 do
7692   # Write a limited-size here document to $tmp/defines.sed.
7693   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7694   # Speed up: don't consider the non `#define' lines.
7695   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
7696   # Work around the forget-to-reset-the-flag bug.
7697   echo 't clr' >>$CONFIG_STATUS
7698   echo ': clr' >>$CONFIG_STATUS
7699   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7700   echo 'CEOF
7701   sed -f $tmp/defines.sed $tmp/in >$tmp/out
7702   rm -f $tmp/in
7703   mv $tmp/out $tmp/in
7704 ' >>$CONFIG_STATUS
7705   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7706   rm -f conftest.defines
7707   mv conftest.tail conftest.defines
7708 done
7709 rm -f conftest.defines
7710 echo '  fi # grep' >>$CONFIG_STATUS
7711 echo >>$CONFIG_STATUS
7712
7713 # Break up conftest.undefs because some shells have a limit on the size
7714 # of here documents, and old seds have small limits too (100 cmds).
7715 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
7716 rm -f conftest.tail
7717 while grep . conftest.undefs >/dev/null
7718 do
7719   # Write a limited-size here document to $tmp/undefs.sed.
7720   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7721   # Speed up: don't consider the non `#undef'
7722   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
7723   # Work around the forget-to-reset-the-flag bug.
7724   echo 't clr' >>$CONFIG_STATUS
7725   echo ': clr' >>$CONFIG_STATUS
7726   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7727   echo 'CEOF
7728   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7729   rm -f $tmp/in
7730   mv $tmp/out $tmp/in
7731 ' >>$CONFIG_STATUS
7732   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7733   rm -f conftest.undefs
7734   mv conftest.tail conftest.undefs
7735 done
7736 rm -f conftest.undefs
7737
7738 cat >>$CONFIG_STATUS <<\_ACEOF
7739   # Let's still pretend it is `configure' which instantiates (i.e., don't
7740   # use $as_me), people would be surprised to read:
7741   #    /* config.h.  Generated by config.status.  */
7742   if test x"$ac_file" = x-; then
7743     echo "/* Generated by configure.  */" >$tmp/config.h
7744   else
7745     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
7746   fi
7747   cat $tmp/in >>$tmp/config.h
7748   rm -f $tmp/in
7749   if test x"$ac_file" != x-; then
7750     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7751       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7752 echo "$as_me: $ac_file is unchanged" >&6;}
7753     else
7754       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7755 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7756          X"$ac_file" : 'X\(//\)[^/]' \| \
7757          X"$ac_file" : 'X\(//\)$' \| \
7758          X"$ac_file" : 'X\(/\)' \| \
7759          .     : '\(.\)' 2>/dev/null ||
7760 echo X"$ac_file" |
7761     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7762           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7763           /^X\(\/\/\)$/{ s//\1/; q; }
7764           /^X\(\/\).*/{ s//\1/; q; }
7765           s/.*/./; q'`
7766       { if $as_mkdir_p; then
7767     mkdir -p "$ac_dir"
7768   else
7769     as_dir="$ac_dir"
7770     as_dirs=
7771     while test ! -d "$as_dir"; do
7772       as_dirs="$as_dir $as_dirs"
7773       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7774 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7775          X"$as_dir" : 'X\(//\)[^/]' \| \
7776          X"$as_dir" : 'X\(//\)$' \| \
7777          X"$as_dir" : 'X\(/\)' \| \
7778          .     : '\(.\)' 2>/dev/null ||
7779 echo X"$as_dir" |
7780     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7781           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7782           /^X\(\/\/\)$/{ s//\1/; q; }
7783           /^X\(\/\).*/{ s//\1/; q; }
7784           s/.*/./; q'`
7785     done
7786     test ! -n "$as_dirs" || mkdir $as_dirs
7787   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7788 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7789    { (exit 1); exit 1; }; }; }
7790
7791       rm -f $ac_file
7792       mv $tmp/config.h $ac_file
7793     fi
7794   else
7795     cat $tmp/config.h
7796     rm -f $tmp/config.h
7797   fi
7798 # Compute $ac_file's index in $config_headers.
7799 _am_stamp_count=1
7800 for _am_header in $config_headers :; do
7801   case $_am_header in
7802     $ac_file | $ac_file:* )
7803       break ;;
7804     * )
7805       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7806   esac
7807 done
7808 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7809 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7810          X$ac_file : 'X\(//\)[^/]' \| \
7811          X$ac_file : 'X\(//\)$' \| \
7812          X$ac_file : 'X\(/\)' \| \
7813          .     : '\(.\)' 2>/dev/null ||
7814 echo X$ac_file |
7815     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7816           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7817           /^X\(\/\/\)$/{ s//\1/; q; }
7818           /^X\(\/\).*/{ s//\1/; q; }
7819           s/.*/./; q'`/stamp-h$_am_stamp_count
7820 done
7821 _ACEOF
7822 cat >>$CONFIG_STATUS <<\_ACEOF
7823
7824 #
7825 # CONFIG_COMMANDS section.
7826 #
7827 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7828   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7829   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7830   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7831 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7832          X"$ac_dest" : 'X\(//\)[^/]' \| \
7833          X"$ac_dest" : 'X\(//\)$' \| \
7834          X"$ac_dest" : 'X\(/\)' \| \
7835          .     : '\(.\)' 2>/dev/null ||
7836 echo X"$ac_dest" |
7837     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7838           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7839           /^X\(\/\/\)$/{ s//\1/; q; }
7840           /^X\(\/\).*/{ s//\1/; q; }
7841           s/.*/./; q'`
7842   { if $as_mkdir_p; then
7843     mkdir -p "$ac_dir"
7844   else
7845     as_dir="$ac_dir"
7846     as_dirs=
7847     while test ! -d "$as_dir"; do
7848       as_dirs="$as_dir $as_dirs"
7849       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7850 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7851          X"$as_dir" : 'X\(//\)[^/]' \| \
7852          X"$as_dir" : 'X\(//\)$' \| \
7853          X"$as_dir" : 'X\(/\)' \| \
7854          .     : '\(.\)' 2>/dev/null ||
7855 echo X"$as_dir" |
7856     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7857           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7858           /^X\(\/\/\)$/{ s//\1/; q; }
7859           /^X\(\/\).*/{ s//\1/; q; }
7860           s/.*/./; q'`
7861     done
7862     test ! -n "$as_dirs" || mkdir $as_dirs
7863   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7864 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7865    { (exit 1); exit 1; }; }; }
7866
7867   ac_builddir=.
7868
7869 if test "$ac_dir" != .; then
7870   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7871   # A "../" for each directory in $ac_dir_suffix.
7872   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7873 else
7874   ac_dir_suffix= ac_top_builddir=
7875 fi
7876
7877 case $srcdir in
7878   .)  # No --srcdir option.  We are building in place.
7879     ac_srcdir=.
7880     if test -z "$ac_top_builddir"; then
7881        ac_top_srcdir=.
7882     else
7883        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7884     fi ;;
7885   [\\/]* | ?:[\\/]* )  # Absolute path.
7886     ac_srcdir=$srcdir$ac_dir_suffix;
7887     ac_top_srcdir=$srcdir ;;
7888   *) # Relative path.
7889     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7890     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7891 esac
7892
7893 # Do not use `cd foo && pwd` to compute absolute paths, because
7894 # the directories may not exist.
7895 case `pwd` in
7896 .) ac_abs_builddir="$ac_dir";;
7897 *)
7898   case "$ac_dir" in
7899   .) ac_abs_builddir=`pwd`;;
7900   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7901   *) ac_abs_builddir=`pwd`/"$ac_dir";;
7902   esac;;
7903 esac
7904 case $ac_abs_builddir in
7905 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7906 *)
7907   case ${ac_top_builddir}. in
7908   .) ac_abs_top_builddir=$ac_abs_builddir;;
7909   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7910   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7911   esac;;
7912 esac
7913 case $ac_abs_builddir in
7914 .) ac_abs_srcdir=$ac_srcdir;;
7915 *)
7916   case $ac_srcdir in
7917   .) ac_abs_srcdir=$ac_abs_builddir;;
7918   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7919   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7920   esac;;
7921 esac
7922 case $ac_abs_builddir in
7923 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7924 *)
7925   case $ac_top_srcdir in
7926   .) ac_abs_top_srcdir=$ac_abs_builddir;;
7927   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7928   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7929   esac;;
7930 esac
7931
7932
7933   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7934 echo "$as_me: executing $ac_dest commands" >&6;}
7935   case $ac_dest in
7936     default-1 )
7937 # Only add multilib support code if we just rebuilt the top-level
7938 # Makefile.
7939 case " $CONFIG_FILES " in
7940  *" Makefile "*)
7941    ac_file=Makefile . ${multi_basedir}/config-ml.in
7942    ;;
7943 esac ;;
7944     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7945   # Strip MF so we end up with the name of the file.
7946   mf=`echo "$mf" | sed -e 's/:.*$//'`
7947   # Check whether this is an Automake generated Makefile or not.
7948   # We used to match only the files named `Makefile.in', but
7949   # some people rename them; so instead we look at the file content.
7950   # Grep'ing the first line is not enough: some people post-process
7951   # each Makefile.in and add a new line on top of each file to say so.
7952   # So let's grep whole file.
7953   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7954     dirpart=`(dirname "$mf") 2>/dev/null ||
7955 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7956          X"$mf" : 'X\(//\)[^/]' \| \
7957          X"$mf" : 'X\(//\)$' \| \
7958          X"$mf" : 'X\(/\)' \| \
7959          .     : '\(.\)' 2>/dev/null ||
7960 echo X"$mf" |
7961     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7962           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7963           /^X\(\/\/\)$/{ s//\1/; q; }
7964           /^X\(\/\).*/{ s//\1/; q; }
7965           s/.*/./; q'`
7966   else
7967     continue
7968   fi
7969   # Extract the definition of DEPDIR, am__include, and am__quote
7970   # from the Makefile without running `make'.
7971   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7972   test -z "$DEPDIR" && continue
7973   am__include=`sed -n 's/^am__include = //p' < "$mf"`
7974   test -z "am__include" && continue
7975   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7976   # When using ansi2knr, U may be empty or an underscore; expand it
7977   U=`sed -n 's/^U = //p' < "$mf"`
7978   # Find all dependency output files, they are included files with
7979   # $(DEPDIR) in their names.  We invoke sed twice because it is the
7980   # simplest approach to changing $(DEPDIR) to its actual value in the
7981   # expansion.
7982   for file in `sed -n "
7983     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7984        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7985     # Make sure the directory exists.
7986     test -f "$dirpart/$file" && continue
7987     fdir=`(dirname "$file") 2>/dev/null ||
7988 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7989          X"$file" : 'X\(//\)[^/]' \| \
7990          X"$file" : 'X\(//\)$' \| \
7991          X"$file" : 'X\(/\)' \| \
7992          .     : '\(.\)' 2>/dev/null ||
7993 echo X"$file" |
7994     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7995           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7996           /^X\(\/\/\)$/{ s//\1/; q; }
7997           /^X\(\/\).*/{ s//\1/; q; }
7998           s/.*/./; q'`
7999     { if $as_mkdir_p; then
8000     mkdir -p $dirpart/$fdir
8001   else
8002     as_dir=$dirpart/$fdir
8003     as_dirs=
8004     while test ! -d "$as_dir"; do
8005       as_dirs="$as_dir $as_dirs"
8006       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8007 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8008          X"$as_dir" : 'X\(//\)[^/]' \| \
8009          X"$as_dir" : 'X\(//\)$' \| \
8010          X"$as_dir" : 'X\(/\)' \| \
8011          .     : '\(.\)' 2>/dev/null ||
8012 echo X"$as_dir" |
8013     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8014           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8015           /^X\(\/\/\)$/{ s//\1/; q; }
8016           /^X\(\/\).*/{ s//\1/; q; }
8017           s/.*/./; q'`
8018     done
8019     test ! -n "$as_dirs" || mkdir $as_dirs
8020   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8021 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
8022    { (exit 1); exit 1; }; }; }
8023
8024     # echo "creating $dirpart/$file"
8025     echo '# dummy' > "$dirpart/$file"
8026   done
8027 done
8028  ;;
8029   esac
8030 done
8031 _ACEOF
8032
8033 cat >>$CONFIG_STATUS <<\_ACEOF
8034
8035 { (exit 0); exit 0; }
8036 _ACEOF
8037 chmod +x $CONFIG_STATUS
8038 ac_clean_files=$ac_clean_files_save
8039
8040
8041 # configure is writing to config.log, and then calls config.status.
8042 # config.status does its own redirection, appending to config.log.
8043 # Unfortunately, on DOS this fails, as config.log is still kept open
8044 # by configure, so config.status won't be able to write to it; its
8045 # output is simply discarded.  So we exec the FD to /dev/null,
8046 # effectively closing config.log, so it can be properly (re)opened and
8047 # appended to by config.status.  When coming back to configure, we
8048 # need to make the FD available again.
8049 if test "$no_create" != yes; then
8050   ac_cs_success=:
8051   ac_config_status_args=
8052   test "$silent" = yes &&
8053     ac_config_status_args="$ac_config_status_args --quiet"
8054   exec 5>/dev/null
8055   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8056   exec 5>>config.log
8057   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8058   # would make configure fail if this is the last instruction.
8059   $ac_cs_success || { (exit 1); exit 1; }
8060 fi
8061