* arm.c (arm_legitimate_index_p): For QImode the range of an offset
[official-gcc.git] / boehm-gc / configure
blob129b417709796434c460e897f8a48b0e84a152b4
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
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 ## --------------------- ##
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
22 DUALCASE=1; export DUALCASE # for MKS sh
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
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
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
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
49 done
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
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
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'`
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
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=:
96 rm -f conf$$.sh
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
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
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
154 esac
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 '
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; }; }
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
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
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
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'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
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
225 as_executable_p="test -f"
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'"
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'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
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`
249 exec 6>&1
252 # Initializations.
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}
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}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
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"
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 gc_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os mkinstalldirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GC_CFLAGS LN_S STRIP ac_ct_STRIP LIBTOOL CXXCPP THREADLIBS POWERPC_DARWIN_TRUE POWERPC_DARWIN_FALSE EXTRA_TEST_LIBS target_all target_noncanonical CPLUSPLUS_TRUE CPLUSPLUS_FALSE INCLUDES CXXINCLUDES addobjs addincludes addlibs addtests CPP EGREP MY_CFLAGS toolexecdir toolexeclibdir LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
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
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'
353 ac_prev=
354 for ac_option
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
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
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 ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
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 ;;
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" ;;
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'" ;;
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 ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
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 ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
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 ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
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 ;;
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 ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
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 ;;
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 ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
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 ;;
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 ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
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 ;;
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 ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
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'" ;;
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" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
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 ;;
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 ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
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 ;;
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}
649 esac
650 done
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; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
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
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
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
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
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
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
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=..
725 else
726 ac_srcdir_defaulted=no
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; }; }
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_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CXXCPP_set=${CXXCPP+set}
778 ac_env_CXXCPP_value=$CXXCPP
779 ac_cv_env_CXXCPP_set=${CXXCPP+set}
780 ac_cv_env_CXXCPP_value=$CXXCPP
781 ac_env_CPP_set=${CPP+set}
782 ac_env_CPP_value=$CPP
783 ac_cv_env_CPP_set=${CPP+set}
784 ac_cv_env_CPP_value=$CPP
787 # Report the --help message.
789 if test "$ac_init_help" = "long"; then
790 # Omit some internal or obsolete options to make the list less imposing.
791 # This message is too long to be a string in the A/UX 3.1 sh.
792 cat <<_ACEOF
793 \`configure' configures this package to adapt to many kinds of systems.
795 Usage: $0 [OPTION]... [VAR=VALUE]...
797 To assign environment variables (e.g., CC, CFLAGS...), specify them as
798 VAR=VALUE. See below for descriptions of some of the useful variables.
800 Defaults for the options are specified in brackets.
802 Configuration:
803 -h, --help display this help and exit
804 --help=short display options specific to this package
805 --help=recursive display the short help of all the included packages
806 -V, --version display version information and exit
807 -q, --quiet, --silent do not print \`checking...' messages
808 --cache-file=FILE cache test results in FILE [disabled]
809 -C, --config-cache alias for \`--cache-file=config.cache'
810 -n, --no-create do not create output files
811 --srcdir=DIR find the sources in DIR [configure dir or \`..']
813 _ACEOF
815 cat <<_ACEOF
816 Installation directories:
817 --prefix=PREFIX install architecture-independent files in PREFIX
818 [$ac_default_prefix]
819 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
820 [PREFIX]
822 By default, \`make install' will install all the files in
823 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
824 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
825 for instance \`--prefix=\$HOME'.
827 For better control, use the options below.
829 Fine tuning of the installation directories:
830 --bindir=DIR user executables [EPREFIX/bin]
831 --sbindir=DIR system admin executables [EPREFIX/sbin]
832 --libexecdir=DIR program executables [EPREFIX/libexec]
833 --datadir=DIR read-only architecture-independent data [PREFIX/share]
834 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
835 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
836 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
837 --libdir=DIR object code libraries [EPREFIX/lib]
838 --includedir=DIR C header files [PREFIX/include]
839 --oldincludedir=DIR C header files for non-gcc [/usr/include]
840 --infodir=DIR info documentation [PREFIX/info]
841 --mandir=DIR man documentation [PREFIX/man]
842 _ACEOF
844 cat <<\_ACEOF
846 Program names:
847 --program-prefix=PREFIX prepend PREFIX to installed program names
848 --program-suffix=SUFFIX append SUFFIX to installed program names
849 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
851 System types:
852 --build=BUILD configure for building on BUILD [guessed]
853 --host=HOST cross-compile to build programs to run on HOST [BUILD]
854 --target=TARGET configure for building compilers for TARGET [HOST]
855 _ACEOF
858 if test -n "$ac_init_help"; then
860 cat <<\_ACEOF
862 Optional Features:
863 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
864 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
865 --enable-multilib build many library versions (default)
866 --enable-maintainer-mode enable make rules and dependencies not useful
867 (and sometimes confusing) to the casual installer
868 --enable-shared=PKGS build shared libraries default=yes
869 --enable-static=PKGS build static libraries default=yes
870 --enable-fast-install=PKGS optimize for fast installation default=yes
871 --disable-libtool-lock avoid locking (might break parallel builds)
872 --enable-parallel-mark parallelize marking and free list construction
873 --enable-full-debug include full support for pointer backtracing etc.
875 Optional Packages:
876 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
877 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
878 --with-gnu-ld assume the C compiler uses GNU ld default=no
879 --with-pic try to use only PIC/non-PIC objects default=use both
880 --with-target-subdir=SUBDIR
881 configuring with a cross compiler
882 --with-cross-host=HOST configuring with a cross compiler
883 --with-ecos enable runtime eCos target support
885 Some influential environment variables:
886 CC C compiler command
887 CFLAGS C compiler flags
888 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
889 nonstandard directory <lib dir>
890 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
891 headers in a nonstandard directory <include dir>
892 CXX C++ compiler command
893 CXXFLAGS C++ compiler flags
894 CXXCPP C++ preprocessor
895 CPP C preprocessor
897 Use these variables to override the choices made by `configure' or to help
898 it to find libraries and programs with nonstandard names/locations.
900 _ACEOF
903 if test "$ac_init_help" = "recursive"; then
904 # If there are subdirs, report their specific --help.
905 ac_popdir=`pwd`
906 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
907 test -d $ac_dir || continue
908 ac_builddir=.
910 if test "$ac_dir" != .; then
911 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
912 # A "../" for each directory in $ac_dir_suffix.
913 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
914 else
915 ac_dir_suffix= ac_top_builddir=
918 case $srcdir in
919 .) # No --srcdir option. We are building in place.
920 ac_srcdir=.
921 if test -z "$ac_top_builddir"; then
922 ac_top_srcdir=.
923 else
924 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
925 fi ;;
926 [\\/]* | ?:[\\/]* ) # Absolute path.
927 ac_srcdir=$srcdir$ac_dir_suffix;
928 ac_top_srcdir=$srcdir ;;
929 *) # Relative path.
930 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
931 ac_top_srcdir=$ac_top_builddir$srcdir ;;
932 esac
934 # Do not use `cd foo && pwd` to compute absolute paths, because
935 # the directories may not exist.
936 case `pwd` in
937 .) ac_abs_builddir="$ac_dir";;
939 case "$ac_dir" in
940 .) ac_abs_builddir=`pwd`;;
941 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
942 *) ac_abs_builddir=`pwd`/"$ac_dir";;
943 esac;;
944 esac
945 case $ac_abs_builddir in
946 .) ac_abs_top_builddir=${ac_top_builddir}.;;
948 case ${ac_top_builddir}. in
949 .) ac_abs_top_builddir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
951 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
952 esac;;
953 esac
954 case $ac_abs_builddir in
955 .) ac_abs_srcdir=$ac_srcdir;;
957 case $ac_srcdir in
958 .) ac_abs_srcdir=$ac_abs_builddir;;
959 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
960 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
961 esac;;
962 esac
963 case $ac_abs_builddir in
964 .) ac_abs_top_srcdir=$ac_top_srcdir;;
966 case $ac_top_srcdir in
967 .) ac_abs_top_srcdir=$ac_abs_builddir;;
968 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
969 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
970 esac;;
971 esac
973 cd $ac_dir
974 # Check for guested configure; otherwise get Cygnus style configure.
975 if test -f $ac_srcdir/configure.gnu; then
976 echo
977 $SHELL $ac_srcdir/configure.gnu --help=recursive
978 elif test -f $ac_srcdir/configure; then
979 echo
980 $SHELL $ac_srcdir/configure --help=recursive
981 elif test -f $ac_srcdir/configure.ac ||
982 test -f $ac_srcdir/configure.in; then
983 echo
984 $ac_configure --help
985 else
986 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
988 cd "$ac_popdir"
989 done
992 test -n "$ac_init_help" && exit 0
993 if $ac_init_version; then
994 cat <<\_ACEOF
996 Copyright (C) 2003 Free Software Foundation, Inc.
997 This configure script is free software; the Free Software Foundation
998 gives unlimited permission to copy, distribute and modify it.
999 _ACEOF
1000 exit 0
1002 exec 5>config.log
1003 cat >&5 <<_ACEOF
1004 This file contains any messages produced by compilers while
1005 running configure, to aid debugging if configure makes a mistake.
1007 It was created by $as_me, which was
1008 generated by GNU Autoconf 2.59. Invocation command line was
1010 $ $0 $@
1012 _ACEOF
1014 cat <<_ASUNAME
1015 ## --------- ##
1016 ## Platform. ##
1017 ## --------- ##
1019 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1020 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1021 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1022 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1023 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1025 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1026 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1028 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1029 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1030 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1031 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1032 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1033 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1034 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1036 _ASUNAME
1038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1039 for as_dir in $PATH
1041 IFS=$as_save_IFS
1042 test -z "$as_dir" && as_dir=.
1043 echo "PATH: $as_dir"
1044 done
1046 } >&5
1048 cat >&5 <<_ACEOF
1051 ## ----------- ##
1052 ## Core tests. ##
1053 ## ----------- ##
1055 _ACEOF
1058 # Keep a trace of the command line.
1059 # Strip out --no-create and --no-recursion so they do not pile up.
1060 # Strip out --silent because we don't want to record it for future runs.
1061 # Also quote any args containing shell meta-characters.
1062 # Make two passes to allow for proper duplicate-argument suppression.
1063 ac_configure_args=
1064 ac_configure_args0=
1065 ac_configure_args1=
1066 ac_sep=
1067 ac_must_keep_next=false
1068 for ac_pass in 1 2
1070 for ac_arg
1072 case $ac_arg in
1073 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075 | -silent | --silent | --silen | --sile | --sil)
1076 continue ;;
1077 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1078 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1079 esac
1080 case $ac_pass in
1081 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1083 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1084 if test $ac_must_keep_next = true; then
1085 ac_must_keep_next=false # Got value, back to normal.
1086 else
1087 case $ac_arg in
1088 *=* | --config-cache | -C | -disable-* | --disable-* \
1089 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1090 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1091 | -with-* | --with-* | -without-* | --without-* | --x)
1092 case "$ac_configure_args0 " in
1093 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1094 esac
1096 -* ) ac_must_keep_next=true ;;
1097 esac
1099 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1100 # Get rid of the leading space.
1101 ac_sep=" "
1103 esac
1104 done
1105 done
1106 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1107 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1109 # When interrupted or exit'd, cleanup temporary files, and complete
1110 # config.log. We remove comments because anyway the quotes in there
1111 # would cause problems or look ugly.
1112 # WARNING: Be sure not to use single quotes in there, as some shells,
1113 # such as our DU 5.0 friend, will then `close' the trap.
1114 trap 'exit_status=$?
1115 # Save into config.log some information that might help in debugging.
1117 echo
1119 cat <<\_ASBOX
1120 ## ---------------- ##
1121 ## Cache variables. ##
1122 ## ---------------- ##
1123 _ASBOX
1124 echo
1125 # The following way of writing the cache mishandles newlines in values,
1127 (set) 2>&1 |
1128 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1129 *ac_space=\ *)
1130 sed -n \
1131 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1135 sed -n \
1136 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1138 esac;
1140 echo
1142 cat <<\_ASBOX
1143 ## ----------------- ##
1144 ## Output variables. ##
1145 ## ----------------- ##
1146 _ASBOX
1147 echo
1148 for ac_var in $ac_subst_vars
1150 eval ac_val=$`echo $ac_var`
1151 echo "$ac_var='"'"'$ac_val'"'"'"
1152 done | sort
1153 echo
1155 if test -n "$ac_subst_files"; then
1156 cat <<\_ASBOX
1157 ## ------------- ##
1158 ## Output files. ##
1159 ## ------------- ##
1160 _ASBOX
1161 echo
1162 for ac_var in $ac_subst_files
1164 eval ac_val=$`echo $ac_var`
1165 echo "$ac_var='"'"'$ac_val'"'"'"
1166 done | sort
1167 echo
1170 if test -s confdefs.h; then
1171 cat <<\_ASBOX
1172 ## ----------- ##
1173 ## confdefs.h. ##
1174 ## ----------- ##
1175 _ASBOX
1176 echo
1177 sed "/^$/d" confdefs.h | sort
1178 echo
1180 test "$ac_signal" != 0 &&
1181 echo "$as_me: caught signal $ac_signal"
1182 echo "$as_me: exit $exit_status"
1183 } >&5
1184 rm -f core *.core &&
1185 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1186 exit $exit_status
1188 for ac_signal in 1 2 13 15; do
1189 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1190 done
1191 ac_signal=0
1193 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1194 rm -rf conftest* confdefs.h
1195 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1196 echo >confdefs.h
1198 # Predefined preprocessor variables.
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_NAME "$PACKAGE_NAME"
1202 _ACEOF
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1207 _ACEOF
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1212 _ACEOF
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_STRING "$PACKAGE_STRING"
1217 _ACEOF
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1222 _ACEOF
1225 # Let the site file select an alternate cache file if it wants to.
1226 # Prefer explicitly selected file to automatically selected ones.
1227 if test -z "$CONFIG_SITE"; then
1228 if test "x$prefix" != xNONE; then
1229 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1230 else
1231 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1234 for ac_site_file in $CONFIG_SITE; do
1235 if test -r "$ac_site_file"; then
1236 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1237 echo "$as_me: loading site script $ac_site_file" >&6;}
1238 sed 's/^/| /' "$ac_site_file" >&5
1239 . "$ac_site_file"
1241 done
1243 if test -r "$cache_file"; then
1244 # Some versions of bash will fail to source /dev/null (special
1245 # files actually), so we avoid doing that.
1246 if test -f "$cache_file"; then
1247 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1248 echo "$as_me: loading cache $cache_file" >&6;}
1249 case $cache_file in
1250 [\\/]* | ?:[\\/]* ) . $cache_file;;
1251 *) . ./$cache_file;;
1252 esac
1254 else
1255 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1256 echo "$as_me: creating cache $cache_file" >&6;}
1257 >$cache_file
1260 # Check that the precious variables saved in the cache have kept the same
1261 # value.
1262 ac_cache_corrupted=false
1263 for ac_var in `(set) 2>&1 |
1264 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1265 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1266 eval ac_new_set=\$ac_env_${ac_var}_set
1267 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1268 eval ac_new_val="\$ac_env_${ac_var}_value"
1269 case $ac_old_set,$ac_new_set in
1270 set,)
1271 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1274 ,set)
1275 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1276 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1277 ac_cache_corrupted=: ;;
1278 ,);;
1280 if test "x$ac_old_val" != "x$ac_new_val"; then
1281 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1282 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1283 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1284 echo "$as_me: former value: $ac_old_val" >&2;}
1285 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1286 echo "$as_me: current value: $ac_new_val" >&2;}
1287 ac_cache_corrupted=:
1288 fi;;
1289 esac
1290 # Pass precious variables to config.status.
1291 if test "$ac_new_set" = set; then
1292 case $ac_new_val in
1293 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1294 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1295 *) ac_arg=$ac_var=$ac_new_val ;;
1296 esac
1297 case " $ac_configure_args " in
1298 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1299 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1300 esac
1302 done
1303 if $ac_cache_corrupted; then
1304 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1305 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1306 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1307 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1308 { (exit 1); exit 1; }; }
1311 ac_ext=c
1312 ac_cpp='$CPP $CPPFLAGS'
1313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1336 # This works around the fact that libtool configuration may change LD
1337 # for this particular configuration, but some shells, instead of
1338 # keeping the changes in LD private, export them just because LD is
1339 # exported.
1340 ORIGINAL_LD_FOR_MULTILIBS=$LD
1342 ac_aux_dir=
1343 for ac_dir in . $srcdir/.; do
1344 if test -f $ac_dir/install-sh; then
1345 ac_aux_dir=$ac_dir
1346 ac_install_sh="$ac_aux_dir/install-sh -c"
1347 break
1348 elif test -f $ac_dir/install.sh; then
1349 ac_aux_dir=$ac_dir
1350 ac_install_sh="$ac_aux_dir/install.sh -c"
1351 break
1352 elif test -f $ac_dir/shtool; then
1353 ac_aux_dir=$ac_dir
1354 ac_install_sh="$ac_aux_dir/shtool install -c"
1355 break
1357 done
1358 if test -z "$ac_aux_dir"; then
1359 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1360 echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1361 { (exit 1); exit 1; }; }
1363 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1364 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1365 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1368 # Check whether --enable-multilib or --disable-multilib was given.
1369 if test "${enable_multilib+set}" = set; then
1370 enableval="$enable_multilib"
1371 case "${enableval}" in
1372 yes) multilib=yes ;;
1373 no) multilib=no ;;
1374 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1375 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1376 { (exit 1); exit 1; }; } ;;
1377 esac
1378 else
1379 multilib=yes
1382 if test "${srcdir}" = "."; then
1383 if test "${with_target_subdir}" != "." -a -n "${with_target_subdir}"; then
1384 gc_basedir="${srcdir}/${with_multisrctop}../."
1385 else
1386 gc_basedir="${srcdir}/${with_multisrctop}."
1388 else
1389 gc_basedir="${srcdir}/."
1392 ac_aux_dir=
1393 for ac_dir in $gc_basedir/.. $srcdir/$gc_basedir/..; do
1394 if test -f $ac_dir/install-sh; then
1395 ac_aux_dir=$ac_dir
1396 ac_install_sh="$ac_aux_dir/install-sh -c"
1397 break
1398 elif test -f $ac_dir/install.sh; then
1399 ac_aux_dir=$ac_dir
1400 ac_install_sh="$ac_aux_dir/install.sh -c"
1401 break
1402 elif test -f $ac_dir/shtool; then
1403 ac_aux_dir=$ac_dir
1404 ac_install_sh="$ac_aux_dir/shtool install -c"
1405 break
1407 done
1408 if test -z "$ac_aux_dir"; then
1409 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $gc_basedir/.. $srcdir/$gc_basedir/.." >&5
1410 echo "$as_me: error: cannot find install-sh or install.sh in $gc_basedir/.. $srcdir/$gc_basedir/.." >&2;}
1411 { (exit 1); exit 1; }; }
1413 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1414 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1415 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1417 if :; then :; else
1418 # This overrides the previous occurrence for automake, but not for
1419 # autoconf, which is exactly what we want.
1420 ac_aux_dir=
1421 for ac_dir in .. $srcdir/..; do
1422 if test -f $ac_dir/install-sh; then
1423 ac_aux_dir=$ac_dir
1424 ac_install_sh="$ac_aux_dir/install-sh -c"
1425 break
1426 elif test -f $ac_dir/install.sh; then
1427 ac_aux_dir=$ac_dir
1428 ac_install_sh="$ac_aux_dir/install.sh -c"
1429 break
1430 elif test -f $ac_dir/shtool; then
1431 ac_aux_dir=$ac_dir
1432 ac_install_sh="$ac_aux_dir/shtool install -c"
1433 break
1435 done
1436 if test -z "$ac_aux_dir"; then
1437 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1438 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1439 { (exit 1); exit 1; }; }
1441 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1442 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1443 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1447 # Make sure we can run config.sub.
1448 $ac_config_sub sun4 >/dev/null 2>&1 ||
1449 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1450 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1451 { (exit 1); exit 1; }; }
1453 echo "$as_me:$LINENO: checking build system type" >&5
1454 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1455 if test "${ac_cv_build+set}" = set; then
1456 echo $ECHO_N "(cached) $ECHO_C" >&6
1457 else
1458 ac_cv_build_alias=$build_alias
1459 test -z "$ac_cv_build_alias" &&
1460 ac_cv_build_alias=`$ac_config_guess`
1461 test -z "$ac_cv_build_alias" &&
1462 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1463 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1464 { (exit 1); exit 1; }; }
1465 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1466 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1467 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1468 { (exit 1); exit 1; }; }
1471 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1472 echo "${ECHO_T}$ac_cv_build" >&6
1473 build=$ac_cv_build
1474 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1475 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1476 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1479 echo "$as_me:$LINENO: checking host system type" >&5
1480 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1481 if test "${ac_cv_host+set}" = set; then
1482 echo $ECHO_N "(cached) $ECHO_C" >&6
1483 else
1484 ac_cv_host_alias=$host_alias
1485 test -z "$ac_cv_host_alias" &&
1486 ac_cv_host_alias=$ac_cv_build_alias
1487 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1488 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1489 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1490 { (exit 1); exit 1; }; }
1493 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1494 echo "${ECHO_T}$ac_cv_host" >&6
1495 host=$ac_cv_host
1496 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1497 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1498 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1501 echo "$as_me:$LINENO: checking target system type" >&5
1502 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1503 if test "${ac_cv_target+set}" = set; then
1504 echo $ECHO_N "(cached) $ECHO_C" >&6
1505 else
1506 ac_cv_target_alias=$target_alias
1507 test "x$ac_cv_target_alias" = "x" &&
1508 ac_cv_target_alias=$ac_cv_host_alias
1509 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1510 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1511 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1512 { (exit 1); exit 1; }; }
1515 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1516 echo "${ECHO_T}$ac_cv_target" >&6
1517 target=$ac_cv_target
1518 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1519 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1520 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1523 # The aliases save the names the user supplied, while $host etc.
1524 # will get canonicalized.
1525 test -n "$target_alias" &&
1526 test "$program_prefix$program_suffix$program_transform_name" = \
1527 NONENONEs,x,x, &&
1528 program_prefix=${target_alias}-
1530 # Get the 'noncanonical' system names.
1531 # Autoconf M4 include file defining utility macros for complex Canadian
1532 # cross builds.
1539 ####
1540 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
1541 # or AC_INIT.
1542 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
1544 ####
1545 # NCN_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
1546 # Like AC_CHECK_TOOL, but tries a prefix of the target, not the host.
1547 # Code is pretty much lifted from autoconf2.53.
1551 ####
1552 # NCN_STRICT_CHECK_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
1553 # Like AC_CHECK_TOOL, but requires the prefix if build!=host.
1557 ####
1558 # NCN_STRICT_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
1559 # Like NCN_CHECK_TARGET_TOOL, but requires the prefix if build!=target.
1563 # AC_PROG_CPP_WERROR
1564 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
1565 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
1566 # For now, using this also overrides header checks to use only the
1567 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
1568 # bit harder from here).
1569 # Eventually autoconf will default to checking headers with the compiler
1570 # instead, and we'll have to do this differently.
1572 # AC_PROG_CPP_WERROR
1574 case ${build_alias} in
1575 "") build_noncanonical=${build} ;;
1576 *) build_noncanonical=${build_alias} ;;
1577 esac
1579 case ${host_alias} in
1580 "") host_noncanonical=${build_noncanonical} ;;
1581 *) host_noncanonical=${host_alias} ;;
1582 esac
1584 case ${target_alias} in
1585 "") target_noncanonical=${host_noncanonical} ;;
1586 *) target_noncanonical=${target_alias} ;;
1587 esac
1590 # This works around an automake problem.
1591 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1594 # Find a good install program. We prefer a C program (faster),
1595 # so one script is as good as another. But avoid the broken or
1596 # incompatible versions:
1597 # SysV /etc/install, /usr/sbin/install
1598 # SunOS /usr/etc/install
1599 # IRIX /sbin/install
1600 # AIX /bin/install
1601 # AmigaOS /C/install, which installs bootblocks on floppy discs
1602 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1603 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1604 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1605 # OS/2's system install, which has a completely different semantic
1606 # ./install, which can be erroneously created by make from ./install.sh.
1607 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1608 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1609 if test -z "$INSTALL"; then
1610 if test "${ac_cv_path_install+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1612 else
1613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614 for as_dir in $PATH
1616 IFS=$as_save_IFS
1617 test -z "$as_dir" && as_dir=.
1618 # Account for people who put trailing slashes in PATH elements.
1619 case $as_dir/ in
1620 ./ | .// | /cC/* | \
1621 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1622 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1623 /usr/ucb/* ) ;;
1625 # OSF1 and SCO ODT 3.0 have their own names for install.
1626 # Don't use installbsd from OSF since it installs stuff as root
1627 # by default.
1628 for ac_prog in ginstall scoinst install; do
1629 for ac_exec_ext in '' $ac_executable_extensions; do
1630 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1631 if test $ac_prog = install &&
1632 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1633 # AIX install. It has an incompatible calling convention.
1635 elif test $ac_prog = install &&
1636 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1637 # program-specific install script used by HP pwplus--don't use.
1639 else
1640 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1641 break 3
1644 done
1645 done
1647 esac
1648 done
1652 if test "${ac_cv_path_install+set}" = set; then
1653 INSTALL=$ac_cv_path_install
1654 else
1655 # As a last resort, use the slow shell script. We don't cache a
1656 # path for INSTALL within a source directory, because that will
1657 # break other packages using the cache if that directory is
1658 # removed, or if the path is relative.
1659 INSTALL=$ac_install_sh
1662 echo "$as_me:$LINENO: result: $INSTALL" >&5
1663 echo "${ECHO_T}$INSTALL" >&6
1665 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1666 # It thinks the first close brace ends the variable substitution.
1667 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1669 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1671 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1673 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1674 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1675 # Just in case
1676 sleep 1
1677 echo timestamp > conftestfile
1678 # Do `set' in a subshell so we don't clobber the current shell's
1679 # arguments. Must try -L first in case configure is actually a
1680 # symlink; some systems play weird games with the mod time of symlinks
1681 # (eg FreeBSD returns the mod time of the symlink's containing
1682 # directory).
1683 if (
1684 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1685 if test "$*" = "X"; then
1686 # -L didn't work.
1687 set X `ls -t $srcdir/configure conftestfile`
1689 if test "$*" != "X $srcdir/configure conftestfile" \
1690 && test "$*" != "X conftestfile $srcdir/configure"; then
1692 # If neither matched, then we have a broken ls. This can happen
1693 # if, for instance, CONFIG_SHELL is bash and it inherits a
1694 # broken ls alias from the environment. This has actually
1695 # happened. Such a system could not be considered "sane".
1696 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1697 alias in your environment" >&5
1698 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1699 alias in your environment" >&2;}
1700 { (exit 1); exit 1; }; }
1703 test "$2" = conftestfile
1705 then
1706 # Ok.
1708 else
1709 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1710 Check your system clock" >&5
1711 echo "$as_me: error: newly created file is older than distributed files!
1712 Check your system clock" >&2;}
1713 { (exit 1); exit 1; }; }
1715 rm -f conftest*
1716 echo "$as_me:$LINENO: result: yes" >&5
1717 echo "${ECHO_T}yes" >&6
1718 test "$program_prefix" != NONE &&
1719 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1720 # Use a double $ so make ignores it.
1721 test "$program_suffix" != NONE &&
1722 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1723 # Double any \ or $. echo might interpret backslashes.
1724 # By default was `s,x,x', remove it if useless.
1725 cat <<\_ACEOF >conftest.sed
1726 s/[\\$]/&&/g;s/;s,x,x,$//
1727 _ACEOF
1728 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1729 rm conftest.sed
1731 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1732 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1733 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1734 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
1736 else
1737 cat >conftest.make <<\_ACEOF
1738 all:
1739 @echo 'ac_maketemp="$(MAKE)"'
1740 _ACEOF
1741 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1742 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1743 if test -n "$ac_maketemp"; then
1744 eval ac_cv_prog_make_${ac_make}_set=yes
1745 else
1746 eval ac_cv_prog_make_${ac_make}_set=no
1748 rm -f conftest.make
1750 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1751 echo "$as_me:$LINENO: result: yes" >&5
1752 echo "${ECHO_T}yes" >&6
1753 SET_MAKE=
1754 else
1755 echo "$as_me:$LINENO: result: no" >&5
1756 echo "${ECHO_T}no" >&6
1757 SET_MAKE="MAKE=${MAKE-make}"
1763 PACKAGE=gc
1765 VERSION=6.1a1
1767 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1768 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1769 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1770 { (exit 1); exit 1; }; }
1775 missing_dir=`cd $ac_aux_dir && pwd`
1776 echo "$as_me:$LINENO: checking for working aclocal" >&5
1777 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1778 # Run test in a subshell; some versions of sh will print an error if
1779 # an executable is not found, even if stderr is redirected.
1780 # Redirect stdin to placate older versions of autoconf. Sigh.
1781 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1782 ACLOCAL=aclocal
1783 echo "$as_me:$LINENO: result: found" >&5
1784 echo "${ECHO_T}found" >&6
1785 else
1786 ACLOCAL="$missing_dir/missing aclocal"
1787 echo "$as_me:$LINENO: result: missing" >&5
1788 echo "${ECHO_T}missing" >&6
1791 echo "$as_me:$LINENO: checking for working autoconf" >&5
1792 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1793 # Run test in a subshell; some versions of sh will print an error if
1794 # an executable is not found, even if stderr is redirected.
1795 # Redirect stdin to placate older versions of autoconf. Sigh.
1796 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1797 AUTOCONF=autoconf
1798 echo "$as_me:$LINENO: result: found" >&5
1799 echo "${ECHO_T}found" >&6
1800 else
1801 AUTOCONF="$missing_dir/missing autoconf"
1802 echo "$as_me:$LINENO: result: missing" >&5
1803 echo "${ECHO_T}missing" >&6
1806 echo "$as_me:$LINENO: checking for working automake" >&5
1807 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1808 # Run test in a subshell; some versions of sh will print an error if
1809 # an executable is not found, even if stderr is redirected.
1810 # Redirect stdin to placate older versions of autoconf. Sigh.
1811 if (automake --version) < /dev/null > /dev/null 2>&1; then
1812 AUTOMAKE=automake
1813 echo "$as_me:$LINENO: result: found" >&5
1814 echo "${ECHO_T}found" >&6
1815 else
1816 AUTOMAKE="$missing_dir/missing automake"
1817 echo "$as_me:$LINENO: result: missing" >&5
1818 echo "${ECHO_T}missing" >&6
1821 echo "$as_me:$LINENO: checking for working autoheader" >&5
1822 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1823 # Run test in a subshell; some versions of sh will print an error if
1824 # an executable is not found, even if stderr is redirected.
1825 # Redirect stdin to placate older versions of autoconf. Sigh.
1826 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1827 AUTOHEADER=autoheader
1828 echo "$as_me:$LINENO: result: found" >&5
1829 echo "${ECHO_T}found" >&6
1830 else
1831 AUTOHEADER="$missing_dir/missing autoheader"
1832 echo "$as_me:$LINENO: result: missing" >&5
1833 echo "${ECHO_T}missing" >&6
1836 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1837 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1838 # Run test in a subshell; some versions of sh will print an error if
1839 # an executable is not found, even if stderr is redirected.
1840 # Redirect stdin to placate older versions of autoconf. Sigh.
1841 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1842 MAKEINFO=makeinfo
1843 echo "$as_me:$LINENO: result: found" >&5
1844 echo "${ECHO_T}found" >&6
1845 else
1846 MAKEINFO="$missing_dir/missing makeinfo"
1847 echo "$as_me:$LINENO: result: missing" >&5
1848 echo "${ECHO_T}missing" >&6
1853 # The autoconf 2.5x version of the no-executables hack.
1854 # GCC_NO_EXECUTABLES
1855 # -----------------
1856 # FIXME: The GCC team has specific needs which the current Autoconf
1857 # framework cannot solve elegantly. This macro implements a dirty
1858 # hack until Autoconf is able to provide the services its users
1859 # need.
1861 # Several of the support libraries that are often built with GCC can't
1862 # assume the tool-chain is already capable of linking a program: the
1863 # compiler often expects to be able to link with some of such
1864 # libraries.
1866 # In several of these libraries, workarounds have been introduced to
1867 # avoid the AC_PROG_CC_WORKS test, that would just abort their
1868 # configuration. The introduction of AC_EXEEXT, enabled either by
1869 # libtool or by CVS autoconf, have just made matters worse.
1871 # Unlike the previous AC_NO_EXECUTABLES, this test does not
1872 # disable link tests at autoconf time, but at configure time.
1873 # This allows AC_NO_EXECUTABLES to be invoked conditionally.
1874 # GCC_NO_EXECUTABLES
1878 ac_ext=c
1879 ac_cpp='$CPP $CPPFLAGS'
1880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1883 if test -n "$ac_tool_prefix"; then
1884 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1885 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1886 echo "$as_me:$LINENO: checking for $ac_word" >&5
1887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888 if test "${ac_cv_prog_CC+set}" = set; then
1889 echo $ECHO_N "(cached) $ECHO_C" >&6
1890 else
1891 if test -n "$CC"; then
1892 ac_cv_prog_CC="$CC" # Let the user override the test.
1893 else
1894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 for as_dir in $PATH
1897 IFS=$as_save_IFS
1898 test -z "$as_dir" && as_dir=.
1899 for ac_exec_ext in '' $ac_executable_extensions; do
1900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903 break 2
1905 done
1906 done
1910 CC=$ac_cv_prog_CC
1911 if test -n "$CC"; then
1912 echo "$as_me:$LINENO: result: $CC" >&5
1913 echo "${ECHO_T}$CC" >&6
1914 else
1915 echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1920 if test -z "$ac_cv_prog_CC"; then
1921 ac_ct_CC=$CC
1922 # Extract the first word of "gcc", so it can be a program name with args.
1923 set dummy gcc; ac_word=$2
1924 echo "$as_me:$LINENO: checking for $ac_word" >&5
1925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1926 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929 if test -n "$ac_ct_CC"; then
1930 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1931 else
1932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933 for as_dir in $PATH
1935 IFS=$as_save_IFS
1936 test -z "$as_dir" && as_dir=.
1937 for ac_exec_ext in '' $ac_executable_extensions; do
1938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1939 ac_cv_prog_ac_ct_CC="gcc"
1940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941 break 2
1943 done
1944 done
1948 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1949 if test -n "$ac_ct_CC"; then
1950 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1951 echo "${ECHO_T}$ac_ct_CC" >&6
1952 else
1953 echo "$as_me:$LINENO: result: no" >&5
1954 echo "${ECHO_T}no" >&6
1957 CC=$ac_ct_CC
1958 else
1959 CC="$ac_cv_prog_CC"
1962 if test -z "$CC"; then
1963 if test -n "$ac_tool_prefix"; then
1964 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1965 set dummy ${ac_tool_prefix}cc; ac_word=$2
1966 echo "$as_me:$LINENO: checking for $ac_word" >&5
1967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1968 if test "${ac_cv_prog_CC+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 else
1971 if test -n "$CC"; then
1972 ac_cv_prog_CC="$CC" # Let the user override the test.
1973 else
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 for as_dir in $PATH
1977 IFS=$as_save_IFS
1978 test -z "$as_dir" && as_dir=.
1979 for ac_exec_ext in '' $ac_executable_extensions; do
1980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1981 ac_cv_prog_CC="${ac_tool_prefix}cc"
1982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1983 break 2
1985 done
1986 done
1990 CC=$ac_cv_prog_CC
1991 if test -n "$CC"; then
1992 echo "$as_me:$LINENO: result: $CC" >&5
1993 echo "${ECHO_T}$CC" >&6
1994 else
1995 echo "$as_me:$LINENO: result: no" >&5
1996 echo "${ECHO_T}no" >&6
2000 if test -z "$ac_cv_prog_CC"; then
2001 ac_ct_CC=$CC
2002 # Extract the first word of "cc", so it can be a program name with args.
2003 set dummy cc; ac_word=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009 if test -n "$ac_ct_CC"; then
2010 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2011 else
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 for as_dir in $PATH
2015 IFS=$as_save_IFS
2016 test -z "$as_dir" && as_dir=.
2017 for ac_exec_ext in '' $ac_executable_extensions; do
2018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2019 ac_cv_prog_ac_ct_CC="cc"
2020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021 break 2
2023 done
2024 done
2028 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2029 if test -n "$ac_ct_CC"; then
2030 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2031 echo "${ECHO_T}$ac_ct_CC" >&6
2032 else
2033 echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2037 CC=$ac_ct_CC
2038 else
2039 CC="$ac_cv_prog_CC"
2043 if test -z "$CC"; then
2044 # Extract the first word of "cc", so it can be a program name with args.
2045 set dummy cc; ac_word=$2
2046 echo "$as_me:$LINENO: checking for $ac_word" >&5
2047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2048 if test "${ac_cv_prog_CC+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051 if test -n "$CC"; then
2052 ac_cv_prog_CC="$CC" # Let the user override the test.
2053 else
2054 ac_prog_rejected=no
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 for as_dir in $PATH
2058 IFS=$as_save_IFS
2059 test -z "$as_dir" && as_dir=.
2060 for ac_exec_ext in '' $ac_executable_extensions; do
2061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2062 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2063 ac_prog_rejected=yes
2064 continue
2066 ac_cv_prog_CC="cc"
2067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2068 break 2
2070 done
2071 done
2073 if test $ac_prog_rejected = yes; then
2074 # We found a bogon in the path, so make sure we never use it.
2075 set dummy $ac_cv_prog_CC
2076 shift
2077 if test $# != 0; then
2078 # We chose a different compiler from the bogus one.
2079 # However, it has the same basename, so the bogon will be chosen
2080 # first if we set CC to just the basename; use the full file name.
2081 shift
2082 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2087 CC=$ac_cv_prog_CC
2088 if test -n "$CC"; then
2089 echo "$as_me:$LINENO: result: $CC" >&5
2090 echo "${ECHO_T}$CC" >&6
2091 else
2092 echo "$as_me:$LINENO: result: no" >&5
2093 echo "${ECHO_T}no" >&6
2097 if test -z "$CC"; then
2098 if test -n "$ac_tool_prefix"; then
2099 for ac_prog in cl
2101 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2102 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2103 echo "$as_me:$LINENO: checking for $ac_word" >&5
2104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2105 if test "${ac_cv_prog_CC+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 else
2108 if test -n "$CC"; then
2109 ac_cv_prog_CC="$CC" # Let the user override the test.
2110 else
2111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112 for as_dir in $PATH
2114 IFS=$as_save_IFS
2115 test -z "$as_dir" && as_dir=.
2116 for ac_exec_ext in '' $ac_executable_extensions; do
2117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2118 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120 break 2
2122 done
2123 done
2127 CC=$ac_cv_prog_CC
2128 if test -n "$CC"; then
2129 echo "$as_me:$LINENO: result: $CC" >&5
2130 echo "${ECHO_T}$CC" >&6
2131 else
2132 echo "$as_me:$LINENO: result: no" >&5
2133 echo "${ECHO_T}no" >&6
2136 test -n "$CC" && break
2137 done
2139 if test -z "$CC"; then
2140 ac_ct_CC=$CC
2141 for ac_prog in cl
2143 # Extract the first word of "$ac_prog", so it can be a program name with args.
2144 set dummy $ac_prog; ac_word=$2
2145 echo "$as_me:$LINENO: checking for $ac_word" >&5
2146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2147 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2149 else
2150 if test -n "$ac_ct_CC"; then
2151 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2152 else
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 for as_dir in $PATH
2156 IFS=$as_save_IFS
2157 test -z "$as_dir" && as_dir=.
2158 for ac_exec_ext in '' $ac_executable_extensions; do
2159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2160 ac_cv_prog_ac_ct_CC="$ac_prog"
2161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2162 break 2
2164 done
2165 done
2169 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2170 if test -n "$ac_ct_CC"; then
2171 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2172 echo "${ECHO_T}$ac_ct_CC" >&6
2173 else
2174 echo "$as_me:$LINENO: result: no" >&5
2175 echo "${ECHO_T}no" >&6
2178 test -n "$ac_ct_CC" && break
2179 done
2181 CC=$ac_ct_CC
2187 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2188 See \`config.log' for more details." >&5
2189 echo "$as_me: error: no acceptable C compiler found in \$PATH
2190 See \`config.log' for more details." >&2;}
2191 { (exit 1); exit 1; }; }
2193 # Provide some information about the compiler.
2194 echo "$as_me:$LINENO:" \
2195 "checking for C compiler version" >&5
2196 ac_compiler=`set X $ac_compile; echo $2`
2197 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2198 (eval $ac_compiler --version </dev/null >&5) 2>&5
2199 ac_status=$?
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); }
2202 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2203 (eval $ac_compiler -v </dev/null >&5) 2>&5
2204 ac_status=$?
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }
2207 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2208 (eval $ac_compiler -V </dev/null >&5) 2>&5
2209 ac_status=$?
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }
2213 cat >conftest.$ac_ext <<_ACEOF
2214 /* confdefs.h. */
2215 _ACEOF
2216 cat confdefs.h >>conftest.$ac_ext
2217 cat >>conftest.$ac_ext <<_ACEOF
2218 /* end confdefs.h. */
2221 main ()
2225 return 0;
2227 _ACEOF
2228 # FIXME: Cleanup?
2229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2230 (eval $ac_link) 2>&5
2231 ac_status=$?
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; then
2234 gcc_no_link=no
2235 else
2236 gcc_no_link=yes
2239 if test x$gcc_no_link = xyes; then
2240 # Setting cross_compile will disable run tests; it will
2241 # also disable AC_CHECK_FILE but that's generally
2242 # correct if we can't link.
2243 cross_compiling=yes
2244 EXEEXT=
2245 else
2246 cat >conftest.$ac_ext <<_ACEOF
2247 /* confdefs.h. */
2248 _ACEOF
2249 cat confdefs.h >>conftest.$ac_ext
2250 cat >>conftest.$ac_ext <<_ACEOF
2251 /* end confdefs.h. */
2254 main ()
2258 return 0;
2260 _ACEOF
2261 ac_clean_files_save=$ac_clean_files
2262 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2263 # Try to create an executable without -o first, disregard a.out.
2264 # It will help us diagnose broken compilers, and finding out an intuition
2265 # of exeext.
2266 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2267 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2268 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2269 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2270 (eval $ac_link_default) 2>&5
2271 ac_status=$?
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; then
2274 # Find the output, starting from the most likely. This scheme is
2275 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2276 # resort.
2278 # Be careful to initialize this variable, since it used to be cached.
2279 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2280 ac_cv_exeext=
2281 # b.out is created by i960 compilers.
2282 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2284 test -f "$ac_file" || continue
2285 case $ac_file in
2286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2288 conftest.$ac_ext )
2289 # This is the source file.
2291 [ab].out )
2292 # We found the default executable, but exeext='' is most
2293 # certainly right.
2294 break;;
2295 *.* )
2296 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2297 # FIXME: I believe we export ac_cv_exeext for Libtool,
2298 # but it would be cool to find out if it's true. Does anybody
2299 # maintain Libtool? --akim.
2300 export ac_cv_exeext
2301 break;;
2303 break;;
2304 esac
2305 done
2306 else
2307 echo "$as_me: failed program was:" >&5
2308 sed 's/^/| /' conftest.$ac_ext >&5
2310 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2311 See \`config.log' for more details." >&5
2312 echo "$as_me: error: C compiler cannot create executables
2313 See \`config.log' for more details." >&2;}
2314 { (exit 77); exit 77; }; }
2317 ac_exeext=$ac_cv_exeext
2318 echo "$as_me:$LINENO: result: $ac_file" >&5
2319 echo "${ECHO_T}$ac_file" >&6
2321 # Check the compiler produces executables we can run. If not, either
2322 # the compiler is broken, or we cross compile.
2323 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2324 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2325 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2326 # If not cross compiling, check that we can run a simple program.
2327 if test "$cross_compiling" != yes; then
2328 if { ac_try='./$ac_file'
2329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330 (eval $ac_try) 2>&5
2331 ac_status=$?
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; }; then
2334 cross_compiling=no
2335 else
2336 if test "$cross_compiling" = maybe; then
2337 cross_compiling=yes
2338 else
2339 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2340 If you meant to cross compile, use \`--host'.
2341 See \`config.log' for more details." >&5
2342 echo "$as_me: error: cannot run C compiled programs.
2343 If you meant to cross compile, use \`--host'.
2344 See \`config.log' for more details." >&2;}
2345 { (exit 1); exit 1; }; }
2349 echo "$as_me:$LINENO: result: yes" >&5
2350 echo "${ECHO_T}yes" >&6
2352 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2353 ac_clean_files=$ac_clean_files_save
2354 # Check the compiler produces executables we can run. If not, either
2355 # the compiler is broken, or we cross compile.
2356 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2357 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2358 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2359 echo "${ECHO_T}$cross_compiling" >&6
2361 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2362 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2364 (eval $ac_link) 2>&5
2365 ac_status=$?
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }; then
2368 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2369 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2370 # work properly (i.e., refer to `conftest.exe'), while it won't with
2371 # `rm'.
2372 for ac_file in conftest.exe conftest conftest.*; do
2373 test -f "$ac_file" || continue
2374 case $ac_file in
2375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2376 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2377 export ac_cv_exeext
2378 break;;
2379 * ) break;;
2380 esac
2381 done
2382 else
2383 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2384 See \`config.log' for more details." >&5
2385 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2386 See \`config.log' for more details." >&2;}
2387 { (exit 1); exit 1; }; }
2390 rm -f conftest$ac_cv_exeext
2391 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2392 echo "${ECHO_T}$ac_cv_exeext" >&6
2394 rm -f conftest.$ac_ext
2395 EXEEXT=$ac_cv_exeext
2396 ac_exeext=$EXEEXT
2398 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2399 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2400 if test "${ac_cv_objext+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2402 else
2403 cat >conftest.$ac_ext <<_ACEOF
2404 /* confdefs.h. */
2405 _ACEOF
2406 cat confdefs.h >>conftest.$ac_ext
2407 cat >>conftest.$ac_ext <<_ACEOF
2408 /* end confdefs.h. */
2411 main ()
2415 return 0;
2417 _ACEOF
2418 rm -f conftest.o conftest.obj
2419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2420 (eval $ac_compile) 2>&5
2421 ac_status=$?
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; then
2424 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2425 case $ac_file in
2426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2427 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2428 break;;
2429 esac
2430 done
2431 else
2432 echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2435 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2436 See \`config.log' for more details." >&5
2437 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2438 See \`config.log' for more details." >&2;}
2439 { (exit 1); exit 1; }; }
2442 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2444 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2445 echo "${ECHO_T}$ac_cv_objext" >&6
2446 OBJEXT=$ac_cv_objext
2447 ac_objext=$OBJEXT
2448 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2449 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2450 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453 cat >conftest.$ac_ext <<_ACEOF
2454 /* confdefs.h. */
2455 _ACEOF
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h. */
2461 main ()
2463 #ifndef __GNUC__
2464 choke me
2465 #endif
2468 return 0;
2470 _ACEOF
2471 rm -f conftest.$ac_objext
2472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2473 (eval $ac_compile) 2>conftest.er1
2474 ac_status=$?
2475 grep -v '^ *+' conftest.er1 >conftest.err
2476 rm -f conftest.er1
2477 cat conftest.err >&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); } &&
2480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482 (eval $ac_try) 2>&5
2483 ac_status=$?
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; } &&
2486 { ac_try='test -s conftest.$ac_objext'
2487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488 (eval $ac_try) 2>&5
2489 ac_status=$?
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; }; then
2492 ac_compiler_gnu=yes
2493 else
2494 echo "$as_me: failed program was:" >&5
2495 sed 's/^/| /' conftest.$ac_ext >&5
2497 ac_compiler_gnu=no
2499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2500 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2503 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2504 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2505 GCC=`test $ac_compiler_gnu = yes && echo yes`
2506 ac_test_CFLAGS=${CFLAGS+set}
2507 ac_save_CFLAGS=$CFLAGS
2508 CFLAGS="-g"
2509 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2510 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2511 if test "${ac_cv_prog_cc_g+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2513 else
2514 cat >conftest.$ac_ext <<_ACEOF
2515 /* confdefs.h. */
2516 _ACEOF
2517 cat confdefs.h >>conftest.$ac_ext
2518 cat >>conftest.$ac_ext <<_ACEOF
2519 /* end confdefs.h. */
2522 main ()
2526 return 0;
2528 _ACEOF
2529 rm -f conftest.$ac_objext
2530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2531 (eval $ac_compile) 2>conftest.er1
2532 ac_status=$?
2533 grep -v '^ *+' conftest.er1 >conftest.err
2534 rm -f conftest.er1
2535 cat conftest.err >&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); } &&
2538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540 (eval $ac_try) 2>&5
2541 ac_status=$?
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }; } &&
2544 { ac_try='test -s conftest.$ac_objext'
2545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546 (eval $ac_try) 2>&5
2547 ac_status=$?
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; }; then
2550 ac_cv_prog_cc_g=yes
2551 else
2552 echo "$as_me: failed program was:" >&5
2553 sed 's/^/| /' conftest.$ac_ext >&5
2555 ac_cv_prog_cc_g=no
2557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2559 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2560 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2561 if test "$ac_test_CFLAGS" = set; then
2562 CFLAGS=$ac_save_CFLAGS
2563 elif test $ac_cv_prog_cc_g = yes; then
2564 if test "$GCC" = yes; then
2565 CFLAGS="-g -O2"
2566 else
2567 CFLAGS="-g"
2569 else
2570 if test "$GCC" = yes; then
2571 CFLAGS="-O2"
2572 else
2573 CFLAGS=
2576 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2577 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2578 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 else
2581 ac_cv_prog_cc_stdc=no
2582 ac_save_CC=$CC
2583 cat >conftest.$ac_ext <<_ACEOF
2584 /* confdefs.h. */
2585 _ACEOF
2586 cat confdefs.h >>conftest.$ac_ext
2587 cat >>conftest.$ac_ext <<_ACEOF
2588 /* end confdefs.h. */
2589 #include <stdarg.h>
2590 #include <stdio.h>
2591 #include <sys/types.h>
2592 #include <sys/stat.h>
2593 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2594 struct buf { int x; };
2595 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2596 static char *e (p, i)
2597 char **p;
2598 int i;
2600 return p[i];
2602 static char *f (char * (*g) (char **, int), char **p, ...)
2604 char *s;
2605 va_list v;
2606 va_start (v,p);
2607 s = g (p, va_arg (v,int));
2608 va_end (v);
2609 return s;
2612 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2613 function prototypes and stuff, but not '\xHH' hex character constants.
2614 These don't provoke an error unfortunately, instead are silently treated
2615 as 'x'. The following induces an error, until -std1 is added to get
2616 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2617 array size at least. It's necessary to write '\x00'==0 to get something
2618 that's true only with -std1. */
2619 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2621 int test (int i, double x);
2622 struct s1 {int (*f) (int a);};
2623 struct s2 {int (*f) (double a);};
2624 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2625 int argc;
2626 char **argv;
2628 main ()
2630 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2632 return 0;
2634 _ACEOF
2635 # Don't try gcc -ansi; that turns off useful extensions and
2636 # breaks some systems' header files.
2637 # AIX -qlanglvl=ansi
2638 # Ultrix and OSF/1 -std1
2639 # HP-UX 10.20 and later -Ae
2640 # HP-UX older versions -Aa -D_HPUX_SOURCE
2641 # SVR4 -Xc -D__EXTENSIONS__
2642 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2644 CC="$ac_save_CC $ac_arg"
2645 rm -f conftest.$ac_objext
2646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2647 (eval $ac_compile) 2>conftest.er1
2648 ac_status=$?
2649 grep -v '^ *+' conftest.er1 >conftest.err
2650 rm -f conftest.er1
2651 cat conftest.err >&5
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); } &&
2654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656 (eval $ac_try) 2>&5
2657 ac_status=$?
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }; } &&
2660 { ac_try='test -s conftest.$ac_objext'
2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 (eval $ac_try) 2>&5
2663 ac_status=$?
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; }; then
2666 ac_cv_prog_cc_stdc=$ac_arg
2667 break
2668 else
2669 echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2673 rm -f conftest.err conftest.$ac_objext
2674 done
2675 rm -f conftest.$ac_ext conftest.$ac_objext
2676 CC=$ac_save_CC
2680 case "x$ac_cv_prog_cc_stdc" in
2681 x|xno)
2682 echo "$as_me:$LINENO: result: none needed" >&5
2683 echo "${ECHO_T}none needed" >&6 ;;
2685 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2686 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2687 CC="$CC $ac_cv_prog_cc_stdc" ;;
2688 esac
2690 # Some people use a C++ compiler to compile C. Since we use `exit',
2691 # in C++ we need to declare it. In case someone uses the same compiler
2692 # for both compiling C and C++ we need to have the C++ compiler decide
2693 # the declaration of exit, since it's the most demanding environment.
2694 cat >conftest.$ac_ext <<_ACEOF
2695 #ifndef __cplusplus
2696 choke me
2697 #endif
2698 _ACEOF
2699 rm -f conftest.$ac_objext
2700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2701 (eval $ac_compile) 2>conftest.er1
2702 ac_status=$?
2703 grep -v '^ *+' conftest.er1 >conftest.err
2704 rm -f conftest.er1
2705 cat conftest.err >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); } &&
2708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 (eval $ac_try) 2>&5
2711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; } &&
2714 { ac_try='test -s conftest.$ac_objext'
2715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 (eval $ac_try) 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; }; then
2720 for ac_declaration in \
2721 '' \
2722 'extern "C" void std::exit (int) throw (); using std::exit;' \
2723 'extern "C" void std::exit (int); using std::exit;' \
2724 'extern "C" void exit (int) throw ();' \
2725 'extern "C" void exit (int);' \
2726 'void exit (int);'
2728 cat >conftest.$ac_ext <<_ACEOF
2729 /* confdefs.h. */
2730 _ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h. */
2734 $ac_declaration
2735 #include <stdlib.h>
2737 main ()
2739 exit (42);
2741 return 0;
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
2766 else
2767 echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2770 continue
2772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
2781 main ()
2783 exit (42);
2785 return 0;
2787 _ACEOF
2788 rm -f conftest.$ac_objext
2789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2790 (eval $ac_compile) 2>conftest.er1
2791 ac_status=$?
2792 grep -v '^ *+' conftest.er1 >conftest.err
2793 rm -f conftest.er1
2794 cat conftest.err >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); } &&
2797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 (eval $ac_try) 2>&5
2800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; } &&
2803 { ac_try='test -s conftest.$ac_objext'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 (eval $ac_try) 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; }; then
2809 break
2810 else
2811 echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2816 done
2817 rm -f conftest*
2818 if test -n "$ac_declaration"; then
2819 echo '#ifdef __cplusplus' >>confdefs.h
2820 echo $ac_declaration >>confdefs.h
2821 echo '#endif' >>confdefs.h
2824 else
2825 echo "$as_me: failed program was:" >&5
2826 sed 's/^/| /' conftest.$ac_ext >&5
2829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2830 ac_ext=c
2831 ac_cpp='$CPP $CPPFLAGS'
2832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2836 ac_ext=cc
2837 ac_cpp='$CXXCPP $CPPFLAGS'
2838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2841 if test -n "$ac_tool_prefix"; then
2842 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2844 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2845 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2846 echo "$as_me:$LINENO: checking for $ac_word" >&5
2847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2848 if test "${ac_cv_prog_CXX+set}" = set; then
2849 echo $ECHO_N "(cached) $ECHO_C" >&6
2850 else
2851 if test -n "$CXX"; then
2852 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2853 else
2854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855 for as_dir in $PATH
2857 IFS=$as_save_IFS
2858 test -z "$as_dir" && as_dir=.
2859 for ac_exec_ext in '' $ac_executable_extensions; do
2860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2861 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 break 2
2865 done
2866 done
2870 CXX=$ac_cv_prog_CXX
2871 if test -n "$CXX"; then
2872 echo "$as_me:$LINENO: result: $CXX" >&5
2873 echo "${ECHO_T}$CXX" >&6
2874 else
2875 echo "$as_me:$LINENO: result: no" >&5
2876 echo "${ECHO_T}no" >&6
2879 test -n "$CXX" && break
2880 done
2882 if test -z "$CXX"; then
2883 ac_ct_CXX=$CXX
2884 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2886 # Extract the first word of "$ac_prog", so it can be a program name with args.
2887 set dummy $ac_prog; ac_word=$2
2888 echo "$as_me:$LINENO: checking for $ac_word" >&5
2889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2890 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2891 echo $ECHO_N "(cached) $ECHO_C" >&6
2892 else
2893 if test -n "$ac_ct_CXX"; then
2894 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2895 else
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2899 IFS=$as_save_IFS
2900 test -z "$as_dir" && as_dir=.
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2903 ac_cv_prog_ac_ct_CXX="$ac_prog"
2904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 break 2
2907 done
2908 done
2912 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2913 if test -n "$ac_ct_CXX"; then
2914 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2915 echo "${ECHO_T}$ac_ct_CXX" >&6
2916 else
2917 echo "$as_me:$LINENO: result: no" >&5
2918 echo "${ECHO_T}no" >&6
2921 test -n "$ac_ct_CXX" && break
2922 done
2923 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2925 CXX=$ac_ct_CXX
2929 # Provide some information about the compiler.
2930 echo "$as_me:$LINENO:" \
2931 "checking for C++ compiler version" >&5
2932 ac_compiler=`set X $ac_compile; echo $2`
2933 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2934 (eval $ac_compiler --version </dev/null >&5) 2>&5
2935 ac_status=$?
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }
2938 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2939 (eval $ac_compiler -v </dev/null >&5) 2>&5
2940 ac_status=$?
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }
2943 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2944 (eval $ac_compiler -V </dev/null >&5) 2>&5
2945 ac_status=$?
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }
2949 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2950 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2951 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2952 echo $ECHO_N "(cached) $ECHO_C" >&6
2953 else
2954 cat >conftest.$ac_ext <<_ACEOF
2955 /* confdefs.h. */
2956 _ACEOF
2957 cat confdefs.h >>conftest.$ac_ext
2958 cat >>conftest.$ac_ext <<_ACEOF
2959 /* end confdefs.h. */
2962 main ()
2964 #ifndef __GNUC__
2965 choke me
2966 #endif
2969 return 0;
2971 _ACEOF
2972 rm -f conftest.$ac_objext
2973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2974 (eval $ac_compile) 2>conftest.er1
2975 ac_status=$?
2976 grep -v '^ *+' conftest.er1 >conftest.err
2977 rm -f conftest.er1
2978 cat conftest.err >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); } &&
2981 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983 (eval $ac_try) 2>&5
2984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; } &&
2987 { ac_try='test -s conftest.$ac_objext'
2988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989 (eval $ac_try) 2>&5
2990 ac_status=$?
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; }; then
2993 ac_compiler_gnu=yes
2994 else
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2998 ac_compiler_gnu=no
3000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3001 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3004 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3005 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3006 GXX=`test $ac_compiler_gnu = yes && echo yes`
3007 ac_test_CXXFLAGS=${CXXFLAGS+set}
3008 ac_save_CXXFLAGS=$CXXFLAGS
3009 CXXFLAGS="-g"
3010 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3011 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3012 if test "${ac_cv_prog_cxx_g+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3014 else
3015 cat >conftest.$ac_ext <<_ACEOF
3016 /* confdefs.h. */
3017 _ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h. */
3023 main ()
3027 return 0;
3029 _ACEOF
3030 rm -f conftest.$ac_objext
3031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3032 (eval $ac_compile) 2>conftest.er1
3033 ac_status=$?
3034 grep -v '^ *+' conftest.er1 >conftest.err
3035 rm -f conftest.er1
3036 cat conftest.err >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } &&
3039 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041 (eval $ac_try) 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; } &&
3045 { ac_try='test -s conftest.$ac_objext'
3046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047 (eval $ac_try) 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; }; then
3051 ac_cv_prog_cxx_g=yes
3052 else
3053 echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3056 ac_cv_prog_cxx_g=no
3058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3060 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3061 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3062 if test "$ac_test_CXXFLAGS" = set; then
3063 CXXFLAGS=$ac_save_CXXFLAGS
3064 elif test $ac_cv_prog_cxx_g = yes; then
3065 if test "$GXX" = yes; then
3066 CXXFLAGS="-g -O2"
3067 else
3068 CXXFLAGS="-g"
3070 else
3071 if test "$GXX" = yes; then
3072 CXXFLAGS="-O2"
3073 else
3074 CXXFLAGS=
3077 for ac_declaration in \
3078 '' \
3079 'extern "C" void std::exit (int) throw (); using std::exit;' \
3080 'extern "C" void std::exit (int); using std::exit;' \
3081 'extern "C" void exit (int) throw ();' \
3082 'extern "C" void exit (int);' \
3083 'void exit (int);'
3085 cat >conftest.$ac_ext <<_ACEOF
3086 /* confdefs.h. */
3087 _ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h. */
3091 $ac_declaration
3092 #include <stdlib.h>
3094 main ()
3096 exit (42);
3098 return 0;
3100 _ACEOF
3101 rm -f conftest.$ac_objext
3102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3103 (eval $ac_compile) 2>conftest.er1
3104 ac_status=$?
3105 grep -v '^ *+' conftest.er1 >conftest.err
3106 rm -f conftest.er1
3107 cat conftest.err >&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); } &&
3110 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3112 (eval $ac_try) 2>&5
3113 ac_status=$?
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; } &&
3116 { ac_try='test -s conftest.$ac_objext'
3117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3118 (eval $ac_try) 2>&5
3119 ac_status=$?
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }; }; then
3123 else
3124 echo "$as_me: failed program was:" >&5
3125 sed 's/^/| /' conftest.$ac_ext >&5
3127 continue
3129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3130 cat >conftest.$ac_ext <<_ACEOF
3131 /* confdefs.h. */
3132 _ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3136 $ac_declaration
3138 main ()
3140 exit (42);
3142 return 0;
3144 _ACEOF
3145 rm -f conftest.$ac_objext
3146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3147 (eval $ac_compile) 2>conftest.er1
3148 ac_status=$?
3149 grep -v '^ *+' conftest.er1 >conftest.err
3150 rm -f conftest.er1
3151 cat conftest.err >&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); } &&
3154 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3156 (eval $ac_try) 2>&5
3157 ac_status=$?
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; } &&
3160 { ac_try='test -s conftest.$ac_objext'
3161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3162 (eval $ac_try) 2>&5
3163 ac_status=$?
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; }; then
3166 break
3167 else
3168 echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3173 done
3174 rm -f conftest*
3175 if test -n "$ac_declaration"; then
3176 echo '#ifdef __cplusplus' >>confdefs.h
3177 echo $ac_declaration >>confdefs.h
3178 echo '#endif' >>confdefs.h
3181 ac_ext=c
3182 ac_cpp='$CPP $CPPFLAGS'
3183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3188 if test -n "$ac_tool_prefix"; then
3189 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3190 set dummy ${ac_tool_prefix}as; ac_word=$2
3191 echo "$as_me:$LINENO: checking for $ac_word" >&5
3192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3193 if test "${ac_cv_prog_AS+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196 if test -n "$AS"; then
3197 ac_cv_prog_AS="$AS" # Let the user override the test.
3198 else
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3202 IFS=$as_save_IFS
3203 test -z "$as_dir" && as_dir=.
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3206 ac_cv_prog_AS="${ac_tool_prefix}as"
3207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 break 2
3210 done
3211 done
3215 AS=$ac_cv_prog_AS
3216 if test -n "$AS"; then
3217 echo "$as_me:$LINENO: result: $AS" >&5
3218 echo "${ECHO_T}$AS" >&6
3219 else
3220 echo "$as_me:$LINENO: result: no" >&5
3221 echo "${ECHO_T}no" >&6
3225 if test -z "$ac_cv_prog_AS"; then
3226 ac_ct_AS=$AS
3227 # Extract the first word of "as", so it can be a program name with args.
3228 set dummy as; ac_word=$2
3229 echo "$as_me:$LINENO: checking for $ac_word" >&5
3230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3231 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
3233 else
3234 if test -n "$ac_ct_AS"; then
3235 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3236 else
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 for as_dir in $PATH
3240 IFS=$as_save_IFS
3241 test -z "$as_dir" && as_dir=.
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244 ac_cv_prog_ac_ct_AS="as"
3245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3246 break 2
3248 done
3249 done
3253 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3254 if test -n "$ac_ct_AS"; then
3255 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3256 echo "${ECHO_T}$ac_ct_AS" >&6
3257 else
3258 echo "$as_me:$LINENO: result: no" >&5
3259 echo "${ECHO_T}no" >&6
3262 AS=$ac_ct_AS
3263 else
3264 AS="$ac_cv_prog_AS"
3267 if test -n "$ac_tool_prefix"; then
3268 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3269 set dummy ${ac_tool_prefix}ar; ac_word=$2
3270 echo "$as_me:$LINENO: checking for $ac_word" >&5
3271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3272 if test "${ac_cv_prog_AR+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 else
3275 if test -n "$AR"; then
3276 ac_cv_prog_AR="$AR" # Let the user override the test.
3277 else
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 for as_dir in $PATH
3281 IFS=$as_save_IFS
3282 test -z "$as_dir" && as_dir=.
3283 for ac_exec_ext in '' $ac_executable_extensions; do
3284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3285 ac_cv_prog_AR="${ac_tool_prefix}ar"
3286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3287 break 2
3289 done
3290 done
3294 AR=$ac_cv_prog_AR
3295 if test -n "$AR"; then
3296 echo "$as_me:$LINENO: result: $AR" >&5
3297 echo "${ECHO_T}$AR" >&6
3298 else
3299 echo "$as_me:$LINENO: result: no" >&5
3300 echo "${ECHO_T}no" >&6
3304 if test -z "$ac_cv_prog_AR"; then
3305 ac_ct_AR=$AR
3306 # Extract the first word of "ar", so it can be a program name with args.
3307 set dummy ar; ac_word=$2
3308 echo "$as_me:$LINENO: checking for $ac_word" >&5
3309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3310 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 else
3313 if test -n "$ac_ct_AR"; then
3314 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3315 else
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3319 IFS=$as_save_IFS
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323 ac_cv_prog_ac_ct_AR="ar"
3324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3325 break 2
3327 done
3328 done
3332 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3333 if test -n "$ac_ct_AR"; then
3334 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3335 echo "${ECHO_T}$ac_ct_AR" >&6
3336 else
3337 echo "$as_me:$LINENO: result: no" >&5
3338 echo "${ECHO_T}no" >&6
3341 AR=$ac_ct_AR
3342 else
3343 AR="$ac_cv_prog_AR"
3346 if test -n "$ac_tool_prefix"; then
3347 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3348 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3349 echo "$as_me:$LINENO: checking for $ac_word" >&5
3350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3351 if test "${ac_cv_prog_RANLIB+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 else
3354 if test -n "$RANLIB"; then
3355 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3356 else
3357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 for as_dir in $PATH
3360 IFS=$as_save_IFS
3361 test -z "$as_dir" && as_dir=.
3362 for ac_exec_ext in '' $ac_executable_extensions; do
3363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3364 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3366 break 2
3368 done
3369 done
3373 RANLIB=$ac_cv_prog_RANLIB
3374 if test -n "$RANLIB"; then
3375 echo "$as_me:$LINENO: result: $RANLIB" >&5
3376 echo "${ECHO_T}$RANLIB" >&6
3377 else
3378 echo "$as_me:$LINENO: result: no" >&5
3379 echo "${ECHO_T}no" >&6
3383 if test -z "$ac_cv_prog_RANLIB"; then
3384 ac_ct_RANLIB=$RANLIB
3385 # Extract the first word of "ranlib", so it can be a program name with args.
3386 set dummy ranlib; ac_word=$2
3387 echo "$as_me:$LINENO: checking for $ac_word" >&5
3388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3389 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3390 echo $ECHO_N "(cached) $ECHO_C" >&6
3391 else
3392 if test -n "$ac_ct_RANLIB"; then
3393 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3394 else
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 for as_dir in $PATH
3398 IFS=$as_save_IFS
3399 test -z "$as_dir" && as_dir=.
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3402 ac_cv_prog_ac_ct_RANLIB="ranlib"
3403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3404 break 2
3406 done
3407 done
3409 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3412 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3413 if test -n "$ac_ct_RANLIB"; then
3414 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3415 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3416 else
3417 echo "$as_me:$LINENO: result: no" >&5
3418 echo "${ECHO_T}no" >&6
3421 RANLIB=$ac_ct_RANLIB
3422 else
3423 RANLIB="$ac_cv_prog_RANLIB"
3427 # Find a good install program. We prefer a C program (faster),
3428 # so one script is as good as another. But avoid the broken or
3429 # incompatible versions:
3430 # SysV /etc/install, /usr/sbin/install
3431 # SunOS /usr/etc/install
3432 # IRIX /sbin/install
3433 # AIX /bin/install
3434 # AmigaOS /C/install, which installs bootblocks on floppy discs
3435 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3436 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3437 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3438 # OS/2's system install, which has a completely different semantic
3439 # ./install, which can be erroneously created by make from ./install.sh.
3440 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3441 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3442 if test -z "$INSTALL"; then
3443 if test "${ac_cv_path_install+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 for as_dir in $PATH
3449 IFS=$as_save_IFS
3450 test -z "$as_dir" && as_dir=.
3451 # Account for people who put trailing slashes in PATH elements.
3452 case $as_dir/ in
3453 ./ | .// | /cC/* | \
3454 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3455 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3456 /usr/ucb/* ) ;;
3458 # OSF1 and SCO ODT 3.0 have their own names for install.
3459 # Don't use installbsd from OSF since it installs stuff as root
3460 # by default.
3461 for ac_prog in ginstall scoinst install; do
3462 for ac_exec_ext in '' $ac_executable_extensions; do
3463 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3464 if test $ac_prog = install &&
3465 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3466 # AIX install. It has an incompatible calling convention.
3468 elif test $ac_prog = install &&
3469 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3470 # program-specific install script used by HP pwplus--don't use.
3472 else
3473 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3474 break 3
3477 done
3478 done
3480 esac
3481 done
3485 if test "${ac_cv_path_install+set}" = set; then
3486 INSTALL=$ac_cv_path_install
3487 else
3488 # As a last resort, use the slow shell script. We don't cache a
3489 # path for INSTALL within a source directory, because that will
3490 # break other packages using the cache if that directory is
3491 # removed, or if the path is relative.
3492 INSTALL=$ac_install_sh
3495 echo "$as_me:$LINENO: result: $INSTALL" >&5
3496 echo "${ECHO_T}$INSTALL" >&6
3498 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3499 # It thinks the first close brace ends the variable substitution.
3500 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3502 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3504 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3507 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3508 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3509 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3510 if test "${enable_maintainer_mode+set}" = set; then
3511 enableval="$enable_maintainer_mode"
3512 USE_MAINTAINER_MODE=$enableval
3513 else
3514 USE_MAINTAINER_MODE=no
3516 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3517 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3520 if test $USE_MAINTAINER_MODE = yes; then
3521 MAINTAINER_MODE_TRUE=
3522 MAINTAINER_MODE_FALSE='#'
3523 else
3524 MAINTAINER_MODE_TRUE='#'
3525 MAINTAINER_MODE_FALSE=
3527 MAINT=$MAINTAINER_MODE_TRUE
3531 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
3532 # at least currently, we never actually build a program, so we never
3533 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
3534 # fails, because we are probably configuring with a cross compiler
3535 # which can't create executables. So we include AC_EXEEXT to keep
3536 # automake happy, but we don't execute it, since we don't care about
3537 # the result.
3538 if false; then
3539 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
3540 # to nothing, so nothing would remain between `then' and `fi' if it
3541 # were not for the `:' below.
3546 . ${srcdir}/configure.host
3548 case ${gc_basedir} in
3549 /* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
3550 *) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
3551 esac
3553 gc_cflags="${gc_cflags} -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
3554 case "${host}" in
3555 *-*-cygwin32*)
3556 gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
3558 esac
3561 GC_CFLAGS=${gc_cflags}
3565 # Check whether --enable-shared or --disable-shared was given.
3566 if test "${enable_shared+set}" = set; then
3567 enableval="$enable_shared"
3568 p=${PACKAGE-default}
3569 case $enableval in
3570 yes) enable_shared=yes ;;
3571 no) enable_shared=no ;;
3573 enable_shared=no
3574 # Look at the argument we got. We use all the common list separators.
3575 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3576 for pkg in $enableval; do
3577 if test "X$pkg" = "X$p"; then
3578 enable_shared=yes
3580 done
3581 IFS="$ac_save_ifs"
3583 esac
3584 else
3585 enable_shared=yes
3587 # Check whether --enable-static or --disable-static was given.
3588 if test "${enable_static+set}" = set; then
3589 enableval="$enable_static"
3590 p=${PACKAGE-default}
3591 case $enableval in
3592 yes) enable_static=yes ;;
3593 no) enable_static=no ;;
3595 enable_static=no
3596 # Look at the argument we got. We use all the common list separators.
3597 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3598 for pkg in $enableval; do
3599 if test "X$pkg" = "X$p"; then
3600 enable_static=yes
3602 done
3603 IFS="$ac_save_ifs"
3605 esac
3606 else
3607 enable_static=yes
3609 # Check whether --enable-fast-install or --disable-fast-install was given.
3610 if test "${enable_fast_install+set}" = set; then
3611 enableval="$enable_fast_install"
3612 p=${PACKAGE-default}
3613 case $enableval in
3614 yes) enable_fast_install=yes ;;
3615 no) enable_fast_install=no ;;
3617 enable_fast_install=no
3618 # Look at the argument we got. We use all the common list separators.
3619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3620 for pkg in $enableval; do
3621 if test "X$pkg" = "X$p"; then
3622 enable_fast_install=yes
3624 done
3625 IFS="$ac_save_ifs"
3627 esac
3628 else
3629 enable_fast_install=yes
3632 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3633 if test "${with_gnu_ld+set}" = set; then
3634 withval="$with_gnu_ld"
3635 test "$withval" = no || with_gnu_ld=yes
3636 else
3637 with_gnu_ld=no
3639 ac_prog=ld
3640 if test "$GCC" = yes; then
3641 # Check if gcc -print-prog-name=ld gives a path.
3642 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3643 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3644 case $host in
3645 *-*-mingw*)
3646 # gcc leaves a trailing carriage return which upsets mingw
3647 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3649 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3650 esac
3651 case $ac_prog in
3652 # Accept absolute paths.
3653 [\\/]* | [A-Za-z]:[\\/]*)
3654 re_direlt='/[^/][^/]*/\.\./'
3655 # Canonicalize the path of ld
3656 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3657 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3658 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3659 done
3660 test -z "$LD" && LD="$ac_prog"
3663 # If it fails, then pretend we aren't using GCC.
3664 ac_prog=ld
3667 # If it is relative, then search for the first ld in PATH.
3668 with_gnu_ld=unknown
3670 esac
3671 elif test "$with_gnu_ld" = yes; then
3672 echo "$as_me:$LINENO: checking for GNU ld" >&5
3673 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3674 else
3675 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3676 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3678 if test "${lt_cv_path_LD+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681 if test -z "$LD"; then
3682 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3683 for ac_dir in $PATH; do
3684 test -z "$ac_dir" && ac_dir=.
3685 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3686 lt_cv_path_LD="$ac_dir/$ac_prog"
3687 # Check to see if the program is GNU ld. I'd rather use --version,
3688 # but apparently some GNU ld's only accept -v.
3689 # Break only if it was the GNU/non-GNU ld that we prefer.
3690 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3691 test "$with_gnu_ld" != no && break
3692 else
3693 test "$with_gnu_ld" != yes && break
3696 done
3697 IFS="$ac_save_ifs"
3698 else
3699 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3703 LD="$lt_cv_path_LD"
3704 if test -n "$LD"; then
3705 echo "$as_me:$LINENO: result: $LD" >&5
3706 echo "${ECHO_T}$LD" >&6
3707 else
3708 echo "$as_me:$LINENO: result: no" >&5
3709 echo "${ECHO_T}no" >&6
3711 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3712 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3713 { (exit 1); exit 1; }; }
3714 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3715 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3716 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3718 else
3719 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3720 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3721 lt_cv_prog_gnu_ld=yes
3722 else
3723 lt_cv_prog_gnu_ld=no
3726 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3727 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3728 with_gnu_ld=$lt_cv_prog_gnu_ld
3731 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3732 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3733 if test "${lt_cv_ld_reload_flag+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736 lt_cv_ld_reload_flag='-r'
3738 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3739 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3740 reload_flag=$lt_cv_ld_reload_flag
3741 test -n "$reload_flag" && reload_flag=" $reload_flag"
3743 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3744 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3745 if test "${lt_cv_path_NM+set}" = set; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 else
3748 if test -n "$NM"; then
3749 # Let the user override the test.
3750 lt_cv_path_NM="$NM"
3751 else
3752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3753 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3754 test -z "$ac_dir" && ac_dir=.
3755 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3756 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3757 # Check to see if the nm accepts a BSD-compat flag.
3758 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3759 # nm: unknown option "B" ignored
3760 # Tru64's nm complains that /dev/null is an invalid object file
3761 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3762 lt_cv_path_NM="$tmp_nm -B"
3763 break
3764 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3765 lt_cv_path_NM="$tmp_nm -p"
3766 break
3767 else
3768 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3769 continue # so that we can try to find one that supports BSD flags
3772 done
3773 IFS="$ac_save_ifs"
3774 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3778 NM="$lt_cv_path_NM"
3779 echo "$as_me:$LINENO: result: $NM" >&5
3780 echo "${ECHO_T}$NM" >&6
3782 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3783 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3784 LN_S=$as_ln_s
3785 if test "$LN_S" = "ln -s"; then
3786 echo "$as_me:$LINENO: result: yes" >&5
3787 echo "${ECHO_T}yes" >&6
3788 else
3789 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3790 echo "${ECHO_T}no, using $LN_S" >&6
3793 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3794 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3795 if test "${lt_cv_deplibs_check_method+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3797 else
3798 lt_cv_file_magic_cmd='$MAGIC_CMD'
3799 lt_cv_file_magic_test_file=
3800 lt_cv_deplibs_check_method='unknown'
3801 # Need to set the preceding variable on all platforms that support
3802 # interlibrary dependencies.
3803 # 'none' -- dependencies not supported.
3804 # `unknown' -- same as none, but documents that we really don't know.
3805 # 'pass_all' -- all dependencies passed with no checks.
3806 # 'test_compile' -- check by making test program.
3807 # 'file_magic [regex]' -- check by looking for files in library path
3808 # which responds to the $file_magic_cmd with a given egrep regex.
3809 # If you have `file' or equivalent on your system and you're not sure
3810 # whether `pass_all' will *always* work, you probably want this one.
3812 case $host_os in
3813 aix*)
3814 lt_cv_deplibs_check_method=pass_all
3817 beos*)
3818 lt_cv_deplibs_check_method=pass_all
3821 bsdi4*)
3822 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3823 lt_cv_file_magic_cmd='/usr/bin/file -L'
3824 lt_cv_file_magic_test_file=/shlib/libc.so
3827 cygwin* | mingw* |pw32*)
3828 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3829 lt_cv_file_magic_cmd='$OBJDUMP -f'
3832 darwin* | rhapsody*)
3833 # this will be overwritten by pass_all, but leave it in just in case
3834 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3835 lt_cv_file_magic_cmd='/usr/bin/file -L'
3836 case "$host_os" in
3837 rhapsody* | darwin1.012)
3838 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3840 *) # Darwin 1.3 on
3841 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3843 esac
3844 lt_cv_deplibs_check_method=pass_all
3847 freebsd* )
3848 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3849 case $host_cpu in
3850 i*86 )
3851 # Not sure whether the presence of OpenBSD here was a mistake.
3852 # Let's accept both of them until this is cleared up.
3853 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3854 lt_cv_file_magic_cmd=/usr/bin/file
3855 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3857 esac
3858 else
3859 lt_cv_deplibs_check_method=pass_all
3863 gnu*)
3864 lt_cv_deplibs_check_method=pass_all
3867 hpux10.20*|hpux11*)
3868 case $host_cpu in
3869 hppa*)
3870 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3871 lt_cv_file_magic_cmd=/usr/bin/file
3872 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3874 ia64*)
3875 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3876 lt_cv_file_magic_cmd=/usr/bin/file
3877 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3879 esac
3882 irix5* | irix6*)
3883 case $host_os in
3884 irix5*)
3885 # this will be overridden with pass_all, but let us keep it just in case
3886 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3889 case $LD in
3890 *-32|*"-32 ") libmagic=32-bit;;
3891 *-n32|*"-n32 ") libmagic=N32;;
3892 *-64|*"-64 ") libmagic=64-bit;;
3893 *) libmagic=never-match;;
3894 esac
3895 # this will be overridden with pass_all, but let us keep it just in case
3896 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3898 esac
3899 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3900 lt_cv_deplibs_check_method=pass_all
3903 # This must be Linux ELF.
3904 linux-gnu*)
3905 case $host_cpu in
3906 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3907 lt_cv_deplibs_check_method=pass_all ;;
3909 # glibc up to 2.1.1 does not perform some relocations on ARM
3910 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3911 esac
3912 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3915 netbsd*)
3916 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3917 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3918 else
3919 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3923 newsos6)
3924 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3925 lt_cv_file_magic_cmd=/usr/bin/file
3926 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3929 osf3* | osf4* | osf5*)
3930 # this will be overridden with pass_all, but let us keep it just in case
3931 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3932 lt_cv_file_magic_test_file=/shlib/libc.so
3933 lt_cv_deplibs_check_method=pass_all
3936 sco3.2v5*)
3937 lt_cv_deplibs_check_method=pass_all
3940 solaris*)
3941 lt_cv_deplibs_check_method=pass_all
3942 lt_cv_file_magic_test_file=/lib/libc.so
3945 sysv5uw[78]* | sysv4*uw2*)
3946 lt_cv_deplibs_check_method=pass_all
3949 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3950 case $host_vendor in
3951 ncr)
3952 lt_cv_deplibs_check_method=pass_all
3954 motorola)
3955 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]'
3956 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3958 esac
3960 esac
3963 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3964 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3965 file_magic_cmd=$lt_cv_file_magic_cmd
3966 deplibs_check_method=$lt_cv_deplibs_check_method
3971 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3973 # Only perform the check for file, if the check method requires it
3974 case $deplibs_check_method in
3975 file_magic*)
3976 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3977 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3978 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3979 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
3981 else
3982 case $MAGIC_CMD in
3984 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3986 ?:/*)
3987 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3990 ac_save_MAGIC_CMD="$MAGIC_CMD"
3991 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3992 ac_dummy="/usr/bin:$PATH"
3993 for ac_dir in $ac_dummy; do
3994 test -z "$ac_dir" && ac_dir=.
3995 if test -f $ac_dir/${ac_tool_prefix}file; then
3996 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3997 if test -n "$file_magic_test_file"; then
3998 case $deplibs_check_method in
3999 "file_magic "*)
4000 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4001 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4002 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4003 egrep "$file_magic_regex" > /dev/null; then
4005 else
4006 cat <<EOF 1>&2
4008 *** Warning: the command libtool uses to detect shared libraries,
4009 *** $file_magic_cmd, produces output that libtool cannot recognize.
4010 *** The result is that libtool may fail to recognize shared libraries
4011 *** as such. This will affect the creation of libtool libraries that
4012 *** depend on shared libraries, but programs linked with such libtool
4013 *** libraries will work regardless of this problem. Nevertheless, you
4014 *** may want to report the problem to your system manager and/or to
4015 *** bug-libtool@gnu.org
4018 fi ;;
4019 esac
4021 break
4023 done
4024 IFS="$ac_save_ifs"
4025 MAGIC_CMD="$ac_save_MAGIC_CMD"
4027 esac
4030 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4031 if test -n "$MAGIC_CMD"; then
4032 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4033 echo "${ECHO_T}$MAGIC_CMD" >&6
4034 else
4035 echo "$as_me:$LINENO: result: no" >&5
4036 echo "${ECHO_T}no" >&6
4039 if test -z "$lt_cv_path_MAGIC_CMD"; then
4040 if test -n "$ac_tool_prefix"; then
4041 echo "$as_me:$LINENO: checking for file" >&5
4042 echo $ECHO_N "checking for file... $ECHO_C" >&6
4043 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046 case $MAGIC_CMD in
4048 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4050 ?:/*)
4051 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4054 ac_save_MAGIC_CMD="$MAGIC_CMD"
4055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4056 ac_dummy="/usr/bin:$PATH"
4057 for ac_dir in $ac_dummy; do
4058 test -z "$ac_dir" && ac_dir=.
4059 if test -f $ac_dir/file; then
4060 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4061 if test -n "$file_magic_test_file"; then
4062 case $deplibs_check_method in
4063 "file_magic "*)
4064 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4065 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4066 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4067 egrep "$file_magic_regex" > /dev/null; then
4069 else
4070 cat <<EOF 1>&2
4072 *** Warning: the command libtool uses to detect shared libraries,
4073 *** $file_magic_cmd, produces output that libtool cannot recognize.
4074 *** The result is that libtool may fail to recognize shared libraries
4075 *** as such. This will affect the creation of libtool libraries that
4076 *** depend on shared libraries, but programs linked with such libtool
4077 *** libraries will work regardless of this problem. Nevertheless, you
4078 *** may want to report the problem to your system manager and/or to
4079 *** bug-libtool@gnu.org
4082 fi ;;
4083 esac
4085 break
4087 done
4088 IFS="$ac_save_ifs"
4089 MAGIC_CMD="$ac_save_MAGIC_CMD"
4091 esac
4094 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4095 if test -n "$MAGIC_CMD"; then
4096 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4097 echo "${ECHO_T}$MAGIC_CMD" >&6
4098 else
4099 echo "$as_me:$LINENO: result: no" >&5
4100 echo "${ECHO_T}no" >&6
4103 else
4104 MAGIC_CMD=:
4110 esac
4112 if test -n "$ac_tool_prefix"; then
4113 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4114 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4115 echo "$as_me:$LINENO: checking for $ac_word" >&5
4116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4117 if test "${ac_cv_prog_RANLIB+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 else
4120 if test -n "$RANLIB"; then
4121 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4122 else
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH
4126 IFS=$as_save_IFS
4127 test -z "$as_dir" && as_dir=.
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4130 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4132 break 2
4134 done
4135 done
4139 RANLIB=$ac_cv_prog_RANLIB
4140 if test -n "$RANLIB"; then
4141 echo "$as_me:$LINENO: result: $RANLIB" >&5
4142 echo "${ECHO_T}$RANLIB" >&6
4143 else
4144 echo "$as_me:$LINENO: result: no" >&5
4145 echo "${ECHO_T}no" >&6
4149 if test -z "$ac_cv_prog_RANLIB"; then
4150 ac_ct_RANLIB=$RANLIB
4151 # Extract the first word of "ranlib", so it can be a program name with args.
4152 set dummy ranlib; ac_word=$2
4153 echo "$as_me:$LINENO: checking for $ac_word" >&5
4154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4155 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4156 echo $ECHO_N "(cached) $ECHO_C" >&6
4157 else
4158 if test -n "$ac_ct_RANLIB"; then
4159 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4160 else
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 for as_dir in $PATH
4164 IFS=$as_save_IFS
4165 test -z "$as_dir" && as_dir=.
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4168 ac_cv_prog_ac_ct_RANLIB="ranlib"
4169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4170 break 2
4172 done
4173 done
4175 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4178 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4179 if test -n "$ac_ct_RANLIB"; then
4180 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4181 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4182 else
4183 echo "$as_me:$LINENO: result: no" >&5
4184 echo "${ECHO_T}no" >&6
4187 RANLIB=$ac_ct_RANLIB
4188 else
4189 RANLIB="$ac_cv_prog_RANLIB"
4192 if test -n "$ac_tool_prefix"; then
4193 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4194 set dummy ${ac_tool_prefix}strip; ac_word=$2
4195 echo "$as_me:$LINENO: checking for $ac_word" >&5
4196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4197 if test "${ac_cv_prog_STRIP+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200 if test -n "$STRIP"; then
4201 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4202 else
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 for as_dir in $PATH
4206 IFS=$as_save_IFS
4207 test -z "$as_dir" && as_dir=.
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4210 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4212 break 2
4214 done
4215 done
4219 STRIP=$ac_cv_prog_STRIP
4220 if test -n "$STRIP"; then
4221 echo "$as_me:$LINENO: result: $STRIP" >&5
4222 echo "${ECHO_T}$STRIP" >&6
4223 else
4224 echo "$as_me:$LINENO: result: no" >&5
4225 echo "${ECHO_T}no" >&6
4229 if test -z "$ac_cv_prog_STRIP"; then
4230 ac_ct_STRIP=$STRIP
4231 # Extract the first word of "strip", so it can be a program name with args.
4232 set dummy strip; ac_word=$2
4233 echo "$as_me:$LINENO: checking for $ac_word" >&5
4234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4235 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4237 else
4238 if test -n "$ac_ct_STRIP"; then
4239 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4240 else
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4248 ac_cv_prog_ac_ct_STRIP="strip"
4249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 break 2
4252 done
4253 done
4255 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4258 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4259 if test -n "$ac_ct_STRIP"; then
4260 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4261 echo "${ECHO_T}$ac_ct_STRIP" >&6
4262 else
4263 echo "$as_me:$LINENO: result: no" >&5
4264 echo "${ECHO_T}no" >&6
4267 STRIP=$ac_ct_STRIP
4268 else
4269 STRIP="$ac_cv_prog_STRIP"
4273 # Check for any special flags to pass to ltconfig.
4274 libtool_flags="--cache-file=$cache_file"
4275 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4276 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4277 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4278 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4279 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4282 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4283 if test "${enable_libtool_lock+set}" = set; then
4284 enableval="$enable_libtool_lock"
4287 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4288 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4291 # Check whether --with-pic or --without-pic was given.
4292 if test "${with_pic+set}" = set; then
4293 withval="$with_pic"
4294 pic_mode="$withval"
4295 else
4296 pic_mode=default
4298 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4299 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4301 # Some flags need to be propagated to the compiler or linker for good
4302 # libtool support.
4303 case $host in
4304 *-*-irix6*)
4305 # Find out which ABI we are using.
4306 echo '#line 4306 "configure"' > conftest.$ac_ext
4307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4308 (eval $ac_compile) 2>&5
4309 ac_status=$?
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; then
4312 if test "$lt_cv_prog_gnu_ld" = yes; then
4313 case `/usr/bin/file conftest.$ac_objext` in
4314 *32-bit*)
4315 LD="${LD-ld} -melf32bsmip"
4317 *N32*)
4318 LD="${LD-ld} -melf32bmipn32"
4320 *64-bit*)
4321 LD="${LD-ld} -melf64bmip"
4323 esac
4324 else
4325 case `/usr/bin/file conftest.$ac_objext` in
4326 *32-bit*)
4327 LD="${LD-ld} -32"
4329 *N32*)
4330 LD="${LD-ld} -n32"
4332 *64-bit*)
4333 LD="${LD-ld} -64"
4335 esac
4338 rm -rf conftest*
4341 ia64-*-hpux*)
4342 # Find out which ABI we are using.
4343 echo 'int i;' > conftest.$ac_ext
4344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4345 (eval $ac_compile) 2>&5
4346 ac_status=$?
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; then
4349 case "`/usr/bin/file conftest.o`" in
4350 *ELF-32*)
4351 HPUX_IA64_MODE="32"
4353 *ELF-64*)
4354 HPUX_IA64_MODE="64"
4356 esac
4358 rm -rf conftest*
4361 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4362 # Find out which ABI we are using.
4363 echo 'int i;' > conftest.$ac_ext
4364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4365 (eval $ac_compile) 2>&5
4366 ac_status=$?
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; then
4369 case "`/usr/bin/file conftest.o`" in
4370 *32-bit*)
4371 case $host in
4372 x86_64-*linux*)
4373 LD="${LD-ld} -m elf_i386"
4375 ppc64-*linux*|powerpc64-*linux*)
4376 LD="${LD-ld} -m elf32ppclinux"
4378 s390x-*linux*)
4379 LD="${LD-ld} -m elf_s390"
4381 sparc64-*linux*)
4382 LD="${LD-ld} -m elf32_sparc"
4384 esac
4386 *64-bit*)
4387 case $host in
4388 x86_64-*linux*)
4389 LD="${LD-ld} -m elf_x86_64"
4391 ppc*-*linux*|powerpc*-*linux*)
4392 LD="${LD-ld} -m elf64ppc"
4394 s390*-*linux*)
4395 LD="${LD-ld} -m elf64_s390"
4397 sparc*-*linux*)
4398 LD="${LD-ld} -m elf64_sparc"
4400 esac
4402 esac
4404 rm -rf conftest*
4407 *-*-sco3.2v5*)
4408 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4409 SAVE_CFLAGS="$CFLAGS"
4410 CFLAGS="$CFLAGS -belf"
4411 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4412 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4413 if test "${lt_cv_cc_needs_belf+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4415 else
4418 ac_ext=c
4419 ac_cpp='$CPP $CPPFLAGS'
4420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4424 if test x$gcc_no_link = xyes; then
4425 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4426 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4427 { (exit 1); exit 1; }; }
4429 cat >conftest.$ac_ext <<_ACEOF
4430 /* confdefs.h. */
4431 _ACEOF
4432 cat confdefs.h >>conftest.$ac_ext
4433 cat >>conftest.$ac_ext <<_ACEOF
4434 /* end confdefs.h. */
4437 main ()
4441 return 0;
4443 _ACEOF
4444 rm -f conftest.$ac_objext conftest$ac_exeext
4445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4446 (eval $ac_link) 2>conftest.er1
4447 ac_status=$?
4448 grep -v '^ *+' conftest.er1 >conftest.err
4449 rm -f conftest.er1
4450 cat conftest.err >&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); } &&
4453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455 (eval $ac_try) 2>&5
4456 ac_status=$?
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); }; } &&
4459 { ac_try='test -s conftest$ac_exeext'
4460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461 (eval $ac_try) 2>&5
4462 ac_status=$?
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; }; then
4465 lt_cv_cc_needs_belf=yes
4466 else
4467 echo "$as_me: failed program was:" >&5
4468 sed 's/^/| /' conftest.$ac_ext >&5
4470 lt_cv_cc_needs_belf=no
4472 rm -f conftest.err conftest.$ac_objext \
4473 conftest$ac_exeext conftest.$ac_ext
4474 ac_ext=c
4475 ac_cpp='$CPP $CPPFLAGS'
4476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4481 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4482 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4483 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4484 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4485 CFLAGS="$SAVE_CFLAGS"
4490 esac
4493 # Save cache, so that ltconfig can load it
4494 cat >confcache <<\_ACEOF
4495 # This file is a shell script that caches the results of configure
4496 # tests run on this system so they can be shared between configure
4497 # scripts and configure runs, see configure's option --config-cache.
4498 # It is not useful on other systems. If it contains results you don't
4499 # want to keep, you may remove or edit it.
4501 # config.status only pays attention to the cache file if you give it
4502 # the --recheck option to rerun configure.
4504 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4505 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4506 # following values.
4508 _ACEOF
4510 # The following way of writing the cache mishandles newlines in values,
4511 # but we know of no workaround that is simple, portable, and efficient.
4512 # So, don't put newlines in cache variables' values.
4513 # Ultrix sh set writes to stderr and can't be redirected directly,
4514 # and sets the high bit in the cache file unless we assign to the vars.
4516 (set) 2>&1 |
4517 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4518 *ac_space=\ *)
4519 # `set' does not quote correctly, so add quotes (double-quote
4520 # substitution turns \\\\ into \\, and sed turns \\ into \).
4521 sed -n \
4522 "s/'/'\\\\''/g;
4523 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4526 # `set' quotes correctly as required by POSIX, so do not add quotes.
4527 sed -n \
4528 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4530 esac;
4532 sed '
4533 t clear
4534 : clear
4535 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4536 t end
4537 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4538 : end' >>confcache
4539 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4540 if test -w $cache_file; then
4541 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4542 cat confcache >$cache_file
4543 else
4544 echo "not updating unwritable cache $cache_file"
4547 rm -f confcache
4549 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4550 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4551 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4552 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4553 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4554 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4555 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4556 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4557 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4558 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4559 echo "$as_me: error: libtool configure failed" >&2;}
4560 { (exit 1); exit 1; }; }
4562 # Reload cache, that may have been modified by ltconfig
4563 if test -r "$cache_file"; then
4564 # Some versions of bash will fail to source /dev/null (special
4565 # files actually), so we avoid doing that.
4566 if test -f "$cache_file"; then
4567 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4568 echo "$as_me: loading cache $cache_file" >&6;}
4569 case $cache_file in
4570 [\\/]* | ?:[\\/]* ) . $cache_file;;
4571 *) . ./$cache_file;;
4572 esac
4574 else
4575 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4576 echo "$as_me: creating cache $cache_file" >&6;}
4577 >$cache_file
4581 # This can be used to rebuild libtool when needed
4582 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4584 # Always use our own libtool.
4585 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4587 # Redirect the config.log output again, so that the ltconfig log is not
4588 # clobbered by the next message.
4589 exec 5>>./config.log
4591 ac_ext=cc
4592 ac_cpp='$CXXCPP $CPPFLAGS'
4593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4596 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4597 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4598 if test -z "$CXXCPP"; then
4599 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 else
4602 # Double quotes because CXXCPP needs to be expanded
4603 for CXXCPP in "$CXX -E" "/lib/cpp"
4605 ac_preproc_ok=false
4606 for ac_cxx_preproc_warn_flag in '' yes
4608 # Use a header file that comes with gcc, so configuring glibc
4609 # with a fresh cross-compiler works.
4610 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4611 # <limits.h> exists even on freestanding compilers.
4612 # On the NeXT, cc -E runs the code through the compiler's parser,
4613 # not just through cpp. "Syntax error" is here to catch this case.
4614 cat >conftest.$ac_ext <<_ACEOF
4615 /* confdefs.h. */
4616 _ACEOF
4617 cat confdefs.h >>conftest.$ac_ext
4618 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h. */
4620 #ifdef __STDC__
4621 # include <limits.h>
4622 #else
4623 # include <assert.h>
4624 #endif
4625 Syntax error
4626 _ACEOF
4627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4629 ac_status=$?
4630 grep -v '^ *+' conftest.er1 >conftest.err
4631 rm -f conftest.er1
4632 cat conftest.err >&5
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); } >/dev/null; then
4635 if test -s conftest.err; then
4636 ac_cpp_err=$ac_cxx_preproc_warn_flag
4637 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4638 else
4639 ac_cpp_err=
4641 else
4642 ac_cpp_err=yes
4644 if test -z "$ac_cpp_err"; then
4646 else
4647 echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4650 # Broken: fails on valid input.
4651 continue
4653 rm -f conftest.err conftest.$ac_ext
4655 # OK, works on sane cases. Now check whether non-existent headers
4656 # can be detected and how.
4657 cat >conftest.$ac_ext <<_ACEOF
4658 /* confdefs.h. */
4659 _ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h. */
4663 #include <ac_nonexistent.h>
4664 _ACEOF
4665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4667 ac_status=$?
4668 grep -v '^ *+' conftest.er1 >conftest.err
4669 rm -f conftest.er1
4670 cat conftest.err >&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); } >/dev/null; then
4673 if test -s conftest.err; then
4674 ac_cpp_err=$ac_cxx_preproc_warn_flag
4675 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4676 else
4677 ac_cpp_err=
4679 else
4680 ac_cpp_err=yes
4682 if test -z "$ac_cpp_err"; then
4683 # Broken: success on invalid input.
4684 continue
4685 else
4686 echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.$ac_ext >&5
4689 # Passes both tests.
4690 ac_preproc_ok=:
4691 break
4693 rm -f conftest.err conftest.$ac_ext
4695 done
4696 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4697 rm -f conftest.err conftest.$ac_ext
4698 if $ac_preproc_ok; then
4699 break
4702 done
4703 ac_cv_prog_CXXCPP=$CXXCPP
4706 CXXCPP=$ac_cv_prog_CXXCPP
4707 else
4708 ac_cv_prog_CXXCPP=$CXXCPP
4710 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4711 echo "${ECHO_T}$CXXCPP" >&6
4712 ac_preproc_ok=false
4713 for ac_cxx_preproc_warn_flag in '' yes
4715 # Use a header file that comes with gcc, so configuring glibc
4716 # with a fresh cross-compiler works.
4717 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4718 # <limits.h> exists even on freestanding compilers.
4719 # On the NeXT, cc -E runs the code through the compiler's parser,
4720 # not just through cpp. "Syntax error" is here to catch this case.
4721 cat >conftest.$ac_ext <<_ACEOF
4722 /* confdefs.h. */
4723 _ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4727 #ifdef __STDC__
4728 # include <limits.h>
4729 #else
4730 # include <assert.h>
4731 #endif
4732 Syntax error
4733 _ACEOF
4734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4736 ac_status=$?
4737 grep -v '^ *+' conftest.er1 >conftest.err
4738 rm -f conftest.er1
4739 cat conftest.err >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } >/dev/null; then
4742 if test -s conftest.err; then
4743 ac_cpp_err=$ac_cxx_preproc_warn_flag
4744 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4745 else
4746 ac_cpp_err=
4748 else
4749 ac_cpp_err=yes
4751 if test -z "$ac_cpp_err"; then
4753 else
4754 echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4757 # Broken: fails on valid input.
4758 continue
4760 rm -f conftest.err conftest.$ac_ext
4762 # OK, works on sane cases. Now check whether non-existent headers
4763 # can be detected and how.
4764 cat >conftest.$ac_ext <<_ACEOF
4765 /* confdefs.h. */
4766 _ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h. */
4770 #include <ac_nonexistent.h>
4771 _ACEOF
4772 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4773 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4774 ac_status=$?
4775 grep -v '^ *+' conftest.er1 >conftest.err
4776 rm -f conftest.er1
4777 cat conftest.err >&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); } >/dev/null; then
4780 if test -s conftest.err; then
4781 ac_cpp_err=$ac_cxx_preproc_warn_flag
4782 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4783 else
4784 ac_cpp_err=
4786 else
4787 ac_cpp_err=yes
4789 if test -z "$ac_cpp_err"; then
4790 # Broken: success on invalid input.
4791 continue
4792 else
4793 echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.$ac_ext >&5
4796 # Passes both tests.
4797 ac_preproc_ok=:
4798 break
4800 rm -f conftest.err conftest.$ac_ext
4802 done
4803 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4804 rm -f conftest.err conftest.$ac_ext
4805 if $ac_preproc_ok; then
4807 else
4808 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4809 See \`config.log' for more details." >&5
4810 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4811 See \`config.log' for more details." >&2;}
4812 { (exit 1); exit 1; }; }
4815 ac_ext=c
4816 ac_cpp='$CPP $CPPFLAGS'
4817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4823 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
4824 lt_save_CC="$CC"
4825 lt_save_CFLAGS="$CFLAGS"
4826 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
4827 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4828 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4829 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4830 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4831 deplibs_check_method="$deplibs_check_method" \
4832 file_magic_cmd="$file_magic_cmd" \
4833 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4834 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
4835 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
4836 echo "$as_me: error: libtool tag configuration failed" >&2;}
4837 { (exit 1); exit 1; }; }
4838 CC="$lt_save_CC"
4839 CFLAGS="$lt_save_CFLAGS"
4841 # Redirect the config.log output again, so that the ltconfig log is not
4842 # clobbered by the next message.
4843 exec 5>>./config.log
4852 # Check whether --with-target-subdir or --without-target-subdir was given.
4853 if test "${with_target_subdir+set}" = set; then
4854 withval="$with_target_subdir"
4858 # Check whether --with-cross-host or --without-cross-host was given.
4859 if test "${with_cross_host+set}" = set; then
4860 withval="$with_cross_host"
4864 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4865 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4866 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4867 if test "${enable_maintainer_mode+set}" = set; then
4868 enableval="$enable_maintainer_mode"
4869 USE_MAINTAINER_MODE=$enableval
4870 else
4871 USE_MAINTAINER_MODE=no
4873 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4874 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4877 if test $USE_MAINTAINER_MODE = yes; then
4878 MAINTAINER_MODE_TRUE=
4879 MAINTAINER_MODE_FALSE='#'
4880 else
4881 MAINTAINER_MODE_TRUE='#'
4882 MAINTAINER_MODE_FALSE=
4884 MAINT=$MAINTAINER_MODE_TRUE
4887 # automake wants to see AC_EXEEXT. But we don't need it. And having
4888 # it is actually a problem, because the compiler we're passed can't
4889 # necessarily do a full link. So we fool automake here.
4890 if false; then
4891 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
4892 # to nothing, so nothing would remain between `then' and `fi' if it
4893 # were not for the `:' below.
4898 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
4899 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
4900 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4901 if test -z "$THREADS"; then
4902 THREADS=no
4904 echo "$as_me:$LINENO: result: $THREADS" >&5
4905 echo "${ECHO_T}$THREADS" >&6
4907 # Check whether --enable-parallel-mark or --disable-parallel-mark was given.
4908 if test "${enable_parallel_mark+set}" = set; then
4909 enableval="$enable_parallel_mark"
4910 case "$THREADS" in
4911 no | none | single)
4912 { { echo "$as_me:$LINENO: error: Parallel mark requires --enable-threads=x spec" >&5
4913 echo "$as_me: error: Parallel mark requires --enable-threads=x spec" >&2;}
4914 { (exit 1); exit 1; }; }
4916 esac
4920 INCLUDES="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
4921 THREADLIBS=
4922 case "$THREADS" in
4923 no | none | single)
4924 THREADS=none
4926 posix | pthreads)
4927 THREADS=posix
4928 THREADLIBS=-lpthread
4929 case "$host" in
4930 x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
4931 cat >>confdefs.h <<\_ACEOF
4932 #define GC_LINUX_THREADS 1
4933 _ACEOF
4935 cat >>confdefs.h <<\_ACEOF
4936 #define _REENTRANT 1
4937 _ACEOF
4939 if test "${enable_parallel_mark}" = yes; then
4940 cat >>confdefs.h <<\_ACEOF
4941 #define PARALLEL_MARK 1
4942 _ACEOF
4945 cat >>confdefs.h <<\_ACEOF
4946 #define THREAD_LOCAL_ALLOC 1
4947 _ACEOF
4950 *-*-linux*)
4951 cat >>confdefs.h <<\_ACEOF
4952 #define GC_LINUX_THREADS 1
4953 _ACEOF
4955 cat >>confdefs.h <<\_ACEOF
4956 #define _REENTRANT 1
4957 _ACEOF
4960 *-*-aix*)
4961 cat >>confdefs.h <<\_ACEOF
4962 #define GC_AIX_THREADS 1
4963 _ACEOF
4965 cat >>confdefs.h <<\_ACEOF
4966 #define _REENTRANT 1
4967 _ACEOF
4970 *-*-hpux*)
4971 { echo "$as_me:$LINENO: WARNING: \"Only HP/UX 11 threads are supported.\"" >&5
4972 echo "$as_me: WARNING: \"Only HP/UX 11 threads are supported.\"" >&2;}
4973 cat >>confdefs.h <<\_ACEOF
4974 #define GC_HPUX_THREADS 1
4975 _ACEOF
4977 cat >>confdefs.h <<\_ACEOF
4978 #define _POSIX_C_SOURCE 199506L
4979 _ACEOF
4981 if test "${enable_parallel_mark}" = yes; then
4982 cat >>confdefs.h <<\_ACEOF
4983 #define PARALLEL_MARK 1
4984 _ACEOF
4987 cat >>confdefs.h <<\_ACEOF
4988 #define THREAD_LOCAL_ALLOC 1
4989 _ACEOF
4991 THREADLIBS="-lpthread -lrt"
4993 *-*-freebsd*)
4994 { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
4995 echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
4996 cat >>confdefs.h <<\_ACEOF
4997 #define GC_FREEBSD_THREADS 1
4998 _ACEOF
5000 INCLUDES="$INCLUDES -pthread"
5001 THREADLIBS=-pthread
5003 *-*-solaris*)
5004 cat >>confdefs.h <<\_ACEOF
5005 #define GC_SOLARIS_THREADS 1
5006 _ACEOF
5008 cat >>confdefs.h <<\_ACEOF
5009 #define GC_SOLARIS_PTHREADS 1
5010 _ACEOF
5013 *-*-irix*)
5014 cat >>confdefs.h <<\_ACEOF
5015 #define GC_IRIX_THREADS 1
5016 _ACEOF
5019 *-*-cygwin*)
5020 cat >>confdefs.h <<\_ACEOF
5021 #define GC_WIN32_THREADS 1
5022 _ACEOF
5025 *-*-darwin*)
5026 cat >>confdefs.h <<\_ACEOF
5027 #define GC_DARWIN_THREADS 1
5028 _ACEOF
5030 cat >>confdefs.h <<\_ACEOF
5031 #define THREAD_LOCAL_ALLOC 1
5032 _ACEOF
5034 if test "${enable_parallel_mark}" = yes; then
5035 cat >>confdefs.h <<\_ACEOF
5036 #define PARALLEL_MARK 1
5037 _ACEOF
5041 *-*-osf*)
5042 cat >>confdefs.h <<\_ACEOF
5043 #define GC_OSF1_THREADS 1
5044 _ACEOF
5046 if test "${enable_parallel_mark}" = yes; then
5047 cat >>confdefs.h <<\_ACEOF
5048 #define PARALLEL_MARK 1
5049 _ACEOF
5051 cat >>confdefs.h <<\_ACEOF
5052 #define THREAD_LOCAL_ALLOC 1
5053 _ACEOF
5055 # May want to enable it in other cases, too.
5056 # Measurements havent yet been done.
5058 INCLUDES="$INCLUDES -pthread"
5059 THREADLIBS="-lpthread -lrt"
5061 esac
5063 win32)
5064 cat >>confdefs.h <<\_ACEOF
5065 #define GC_WIN32_THREADS 1
5066 _ACEOF
5069 dgux386)
5070 THREADS=dgux386
5071 echo "$as_me:$LINENO: result: $THREADLIBS" >&5
5072 echo "${ECHO_T}$THREADLIBS" >&6
5073 # Use pthread GCC switch
5074 THREADLIBS=-pthread
5075 if test "${enable_parallel_mark}" = yes; then
5076 cat >>confdefs.h <<\_ACEOF
5077 #define PARALLEL_MARK 1
5078 _ACEOF
5081 cat >>confdefs.h <<\_ACEOF
5082 #define THREAD_LOCAL_ALLOC 1
5083 _ACEOF
5085 cat >>confdefs.h <<\_ACEOF
5086 #define GC_DGUX386_THREADS 1
5087 _ACEOF
5089 cat >>confdefs.h <<\_ACEOF
5090 #define DGUX_THREADS 1
5091 _ACEOF
5093 # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
5094 INCLUDES="-pthread $INCLUDES"
5096 aix)
5097 THREADS=posix
5098 THREADLIBS=-lpthread
5099 cat >>confdefs.h <<\_ACEOF
5100 #define GC_AIX_THREADS 1
5101 _ACEOF
5103 cat >>confdefs.h <<\_ACEOF
5104 #define _REENTRANT 1
5105 _ACEOF
5108 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
5109 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
5110 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
5111 { (exit 1); exit 1; }; }
5114 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
5115 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
5116 { (exit 1); exit 1; }; }
5118 esac
5121 case "$host" in
5122 powerpc-*-darwin*)
5123 powerpc_darwin=true
5125 esac
5128 if test x$powerpc_darwin = xtrue; then
5129 POWERPC_DARWIN_TRUE=
5130 POWERPC_DARWIN_FALSE='#'
5131 else
5132 POWERPC_DARWIN_TRUE='#'
5133 POWERPC_DARWIN_FALSE=
5136 # We never want libdl on darwin. It is a fake libdl that just ends up making
5137 # dyld calls anyway
5138 case "$host" in
5139 *-*-darwin*) ;;
5141 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5142 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5143 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 else
5146 ac_check_lib_save_LIBS=$LIBS
5147 LIBS="-ldl $LIBS"
5148 if test x$gcc_no_link = xyes; then
5149 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5150 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5151 { (exit 1); exit 1; }; }
5153 cat >conftest.$ac_ext <<_ACEOF
5154 /* confdefs.h. */
5155 _ACEOF
5156 cat confdefs.h >>conftest.$ac_ext
5157 cat >>conftest.$ac_ext <<_ACEOF
5158 /* end confdefs.h. */
5160 /* Override any gcc2 internal prototype to avoid an error. */
5161 #ifdef __cplusplus
5162 extern "C"
5163 #endif
5164 /* We use char because int might match the return type of a gcc2
5165 builtin and then its argument prototype would still apply. */
5166 char dlopen ();
5168 main ()
5170 dlopen ();
5172 return 0;
5174 _ACEOF
5175 rm -f conftest.$ac_objext conftest$ac_exeext
5176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5177 (eval $ac_link) 2>conftest.er1
5178 ac_status=$?
5179 grep -v '^ *+' conftest.er1 >conftest.err
5180 rm -f conftest.er1
5181 cat conftest.err >&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); } &&
5184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186 (eval $ac_try) 2>&5
5187 ac_status=$?
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; } &&
5190 { ac_try='test -s conftest$ac_exeext'
5191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192 (eval $ac_try) 2>&5
5193 ac_status=$?
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; }; then
5196 ac_cv_lib_dl_dlopen=yes
5197 else
5198 echo "$as_me: failed program was:" >&5
5199 sed 's/^/| /' conftest.$ac_ext >&5
5201 ac_cv_lib_dl_dlopen=no
5203 rm -f conftest.err conftest.$ac_objext \
5204 conftest$ac_exeext conftest.$ac_ext
5205 LIBS=$ac_check_lib_save_LIBS
5207 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5208 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5209 if test $ac_cv_lib_dl_dlopen = yes; then
5210 EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
5214 esac
5218 target_all=libgcjgc.la
5222 TARGET_ECOS="no"
5224 # Check whether --with-ecos or --without-ecos was given.
5225 if test "${with_ecos+set}" = set; then
5226 withval="$with_ecos"
5227 TARGET_ECOS="$with_ecos"
5231 addobjs=
5232 addlibs=
5233 addincludes=
5234 addtests=
5235 CXXINCLUDES=
5236 case "$TARGET_ECOS" in
5240 cat >>confdefs.h <<\_ACEOF
5241 #define ECOS 1
5242 _ACEOF
5244 CXXINCLUDES="-I${TARGET_ECOS}/include"
5245 addobjs="$addobjs ecos.lo"
5247 esac
5249 if test "${enable_cplusplus}" = yes; then
5250 addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
5251 addtests="$addtests test_cpp"
5256 if test "${enable_cplusplus}" = yes; then
5257 CPLUSPLUS_TRUE=
5258 CPLUSPLUS_FALSE='#'
5259 else
5260 CPLUSPLUS_TRUE='#'
5261 CPLUSPLUS_FALSE=
5269 # Configuration of shared libraries
5271 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
5272 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5273 # Check whether --enable-shared or --disable-shared was given.
5274 if test "${enable_shared+set}" = set; then
5275 enableval="$enable_shared"
5276 p=${PACKAGE-default}
5277 case $enableval in
5278 yes) enable_shared=yes ;;
5279 no) enable_shared=no ;;
5281 enable_shared=no
5282 # Look at the argument we got. We use all the common list separators.
5283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5284 for pkg in $enableval; do
5285 if test "X$pkg" = "X$p"; then
5286 enable_shared=yes
5288 done
5289 IFS="$ac_save_ifs"
5291 esac
5292 else
5293 enable_shared=yes
5296 case "$host" in
5297 alpha-*-openbsd*)
5298 enable_shared=no
5299 echo "$as_me:$LINENO: result: no" >&5
5300 echo "${ECHO_T}no" >&6
5303 echo "$as_me:$LINENO: result: yes" >&5
5304 echo "${ECHO_T}yes" >&6
5306 esac
5308 # Configuration of machine-dependent code
5310 # We don't set NO_EXECUTE_PERMISSION by default because gcj (and
5311 # anything else that creates trampolines in gc-allocated memory)
5312 # always needs exec permission. The exceptions to this are IA-64 and
5313 # some variations of Power PC, where trampolines don't contain
5314 # executable code.
5316 echo "$as_me:$LINENO: checking which machine-dependent code should be used" >&5
5317 echo $ECHO_N "checking which machine-dependent code should be used... $ECHO_C" >&6
5318 machdep=
5319 case "$host" in
5320 alpha*-*-openbsd*)
5321 machdep="alpha_mach_dep.lo"
5322 if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
5323 { echo "$as_me:$LINENO: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
5324 echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
5327 alpha*-*-linux*)
5328 machdep="alpha_mach_dep.lo"
5330 i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
5331 cat >>confdefs.h <<\_ACEOF
5332 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
5333 _ACEOF
5336 mipstx39-*-elf*)
5337 machdep="mips_ultrix_mach_dep.lo"
5338 cat >>confdefs.h <<\_ACEOF
5339 #define STACKBASE __stackbase
5340 _ACEOF
5342 cat >>confdefs.h <<\_ACEOF
5343 #define DATASTART_IS_ETEXT 1
5344 _ACEOF
5347 mips-dec-ultrix*)
5348 machdep="mips_ultrix_mach-dep.lo"
5350 mips-nec-sysv*|mips-unknown-sysv*)
5352 mips*-*-linux*)
5354 mips-*-*)
5355 machdep="mips_sgi_mach_dep.lo"
5357 sparc-*-netbsd*)
5358 machdep="sparc_netbsd_mach_dep.lo"
5360 sparc-sun-solaris2.3)
5361 machdep="sparc_mach_dep.lo"
5362 cat >>confdefs.h <<\_ACEOF
5363 #define SUNOS53_SHARED_LIB 1
5364 _ACEOF
5367 sparc-sun-solaris2.*)
5368 machdep="sparc_mach_dep.lo"
5370 ia64-*-*)
5371 cat >>confdefs.h <<\_ACEOF
5372 #define NO_EXECUTE_PERMISSION 1
5373 _ACEOF
5375 machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
5377 esac
5378 if test x"$machdep" = x; then
5379 echo "$as_me:$LINENO: result: $machdep" >&5
5380 echo "${ECHO_T}$machdep" >&6
5381 machdep="mach_dep.lo"
5383 addobjs="$addobjs $machdep"
5396 # Check for AViiON Machines running DGUX
5398 echo "$as_me:$LINENO: checking if host is AViiON running DGUX" >&5
5399 echo $ECHO_N "checking if host is AViiON running DGUX... $ECHO_C" >&6
5400 ac_is_dgux=no
5401 ac_ext=c
5402 ac_cpp='$CPP $CPPFLAGS'
5403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5406 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5407 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5408 # On Suns, sometimes $CPP names a directory.
5409 if test -n "$CPP" && test -d "$CPP"; then
5410 CPP=
5412 if test -z "$CPP"; then
5413 if test "${ac_cv_prog_CPP+set}" = set; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5415 else
5416 # Double quotes because CPP needs to be expanded
5417 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5419 ac_preproc_ok=false
5420 for ac_c_preproc_warn_flag in '' yes
5422 # Use a header file that comes with gcc, so configuring glibc
5423 # with a fresh cross-compiler works.
5424 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5425 # <limits.h> exists even on freestanding compilers.
5426 # On the NeXT, cc -E runs the code through the compiler's parser,
5427 # not just through cpp. "Syntax error" is here to catch this case.
5428 cat >conftest.$ac_ext <<_ACEOF
5429 /* confdefs.h. */
5430 _ACEOF
5431 cat confdefs.h >>conftest.$ac_ext
5432 cat >>conftest.$ac_ext <<_ACEOF
5433 /* end confdefs.h. */
5434 #ifdef __STDC__
5435 # include <limits.h>
5436 #else
5437 # include <assert.h>
5438 #endif
5439 Syntax error
5440 _ACEOF
5441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5443 ac_status=$?
5444 grep -v '^ *+' conftest.er1 >conftest.err
5445 rm -f conftest.er1
5446 cat conftest.err >&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); } >/dev/null; then
5449 if test -s conftest.err; then
5450 ac_cpp_err=$ac_c_preproc_warn_flag
5451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5452 else
5453 ac_cpp_err=
5455 else
5456 ac_cpp_err=yes
5458 if test -z "$ac_cpp_err"; then
5460 else
5461 echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5464 # Broken: fails on valid input.
5465 continue
5467 rm -f conftest.err conftest.$ac_ext
5469 # OK, works on sane cases. Now check whether non-existent headers
5470 # can be detected and how.
5471 cat >conftest.$ac_ext <<_ACEOF
5472 /* confdefs.h. */
5473 _ACEOF
5474 cat confdefs.h >>conftest.$ac_ext
5475 cat >>conftest.$ac_ext <<_ACEOF
5476 /* end confdefs.h. */
5477 #include <ac_nonexistent.h>
5478 _ACEOF
5479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5481 ac_status=$?
5482 grep -v '^ *+' conftest.er1 >conftest.err
5483 rm -f conftest.er1
5484 cat conftest.err >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } >/dev/null; then
5487 if test -s conftest.err; then
5488 ac_cpp_err=$ac_c_preproc_warn_flag
5489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5490 else
5491 ac_cpp_err=
5493 else
5494 ac_cpp_err=yes
5496 if test -z "$ac_cpp_err"; then
5497 # Broken: success on invalid input.
5498 continue
5499 else
5500 echo "$as_me: failed program was:" >&5
5501 sed 's/^/| /' conftest.$ac_ext >&5
5503 # Passes both tests.
5504 ac_preproc_ok=:
5505 break
5507 rm -f conftest.err conftest.$ac_ext
5509 done
5510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5511 rm -f conftest.err conftest.$ac_ext
5512 if $ac_preproc_ok; then
5513 break
5516 done
5517 ac_cv_prog_CPP=$CPP
5520 CPP=$ac_cv_prog_CPP
5521 else
5522 ac_cv_prog_CPP=$CPP
5524 echo "$as_me:$LINENO: result: $CPP" >&5
5525 echo "${ECHO_T}$CPP" >&6
5526 ac_preproc_ok=false
5527 for ac_c_preproc_warn_flag in '' yes
5529 # Use a header file that comes with gcc, so configuring glibc
5530 # with a fresh cross-compiler works.
5531 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5532 # <limits.h> exists even on freestanding compilers.
5533 # On the NeXT, cc -E runs the code through the compiler's parser,
5534 # not just through cpp. "Syntax error" is here to catch this case.
5535 cat >conftest.$ac_ext <<_ACEOF
5536 /* confdefs.h. */
5537 _ACEOF
5538 cat confdefs.h >>conftest.$ac_ext
5539 cat >>conftest.$ac_ext <<_ACEOF
5540 /* end confdefs.h. */
5541 #ifdef __STDC__
5542 # include <limits.h>
5543 #else
5544 # include <assert.h>
5545 #endif
5546 Syntax error
5547 _ACEOF
5548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5550 ac_status=$?
5551 grep -v '^ *+' conftest.er1 >conftest.err
5552 rm -f conftest.er1
5553 cat conftest.err >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } >/dev/null; then
5556 if test -s conftest.err; then
5557 ac_cpp_err=$ac_c_preproc_warn_flag
5558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5559 else
5560 ac_cpp_err=
5562 else
5563 ac_cpp_err=yes
5565 if test -z "$ac_cpp_err"; then
5567 else
5568 echo "$as_me: failed program was:" >&5
5569 sed 's/^/| /' conftest.$ac_ext >&5
5571 # Broken: fails on valid input.
5572 continue
5574 rm -f conftest.err conftest.$ac_ext
5576 # OK, works on sane cases. Now check whether non-existent headers
5577 # can be detected and how.
5578 cat >conftest.$ac_ext <<_ACEOF
5579 /* confdefs.h. */
5580 _ACEOF
5581 cat confdefs.h >>conftest.$ac_ext
5582 cat >>conftest.$ac_ext <<_ACEOF
5583 /* end confdefs.h. */
5584 #include <ac_nonexistent.h>
5585 _ACEOF
5586 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5588 ac_status=$?
5589 grep -v '^ *+' conftest.er1 >conftest.err
5590 rm -f conftest.er1
5591 cat conftest.err >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } >/dev/null; then
5594 if test -s conftest.err; then
5595 ac_cpp_err=$ac_c_preproc_warn_flag
5596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5597 else
5598 ac_cpp_err=
5600 else
5601 ac_cpp_err=yes
5603 if test -z "$ac_cpp_err"; then
5604 # Broken: success on invalid input.
5605 continue
5606 else
5607 echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.$ac_ext >&5
5610 # Passes both tests.
5611 ac_preproc_ok=:
5612 break
5614 rm -f conftest.err conftest.$ac_ext
5616 done
5617 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5618 rm -f conftest.err conftest.$ac_ext
5619 if $ac_preproc_ok; then
5621 else
5622 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5623 See \`config.log' for more details." >&5
5624 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5625 See \`config.log' for more details." >&2;}
5626 { (exit 1); exit 1; }; }
5629 ac_ext=c
5630 ac_cpp='$CPP $CPPFLAGS'
5631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5636 echo "$as_me:$LINENO: checking for egrep" >&5
5637 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5638 if test "${ac_cv_prog_egrep+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5642 then ac_cv_prog_egrep='grep -E'
5643 else ac_cv_prog_egrep='egrep'
5646 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5647 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5648 EGREP=$ac_cv_prog_egrep
5651 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5652 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5653 if test "${ac_cv_header_stdc+set}" = set; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
5655 else
5656 cat >conftest.$ac_ext <<_ACEOF
5657 /* confdefs.h. */
5658 _ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h. */
5662 #include <stdlib.h>
5663 #include <stdarg.h>
5664 #include <string.h>
5665 #include <float.h>
5668 main ()
5672 return 0;
5674 _ACEOF
5675 rm -f conftest.$ac_objext
5676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5677 (eval $ac_compile) 2>conftest.er1
5678 ac_status=$?
5679 grep -v '^ *+' conftest.er1 >conftest.err
5680 rm -f conftest.er1
5681 cat conftest.err >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } &&
5684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686 (eval $ac_try) 2>&5
5687 ac_status=$?
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); }; } &&
5690 { ac_try='test -s conftest.$ac_objext'
5691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5692 (eval $ac_try) 2>&5
5693 ac_status=$?
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); }; }; then
5696 ac_cv_header_stdc=yes
5697 else
5698 echo "$as_me: failed program was:" >&5
5699 sed 's/^/| /' conftest.$ac_ext >&5
5701 ac_cv_header_stdc=no
5703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5705 if test $ac_cv_header_stdc = yes; then
5706 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5707 cat >conftest.$ac_ext <<_ACEOF
5708 /* confdefs.h. */
5709 _ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5713 #include <string.h>
5715 _ACEOF
5716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5717 $EGREP "memchr" >/dev/null 2>&1; then
5719 else
5720 ac_cv_header_stdc=no
5722 rm -f conftest*
5726 if test $ac_cv_header_stdc = yes; then
5727 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5728 cat >conftest.$ac_ext <<_ACEOF
5729 /* confdefs.h. */
5730 _ACEOF
5731 cat confdefs.h >>conftest.$ac_ext
5732 cat >>conftest.$ac_ext <<_ACEOF
5733 /* end confdefs.h. */
5734 #include <stdlib.h>
5736 _ACEOF
5737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5738 $EGREP "free" >/dev/null 2>&1; then
5740 else
5741 ac_cv_header_stdc=no
5743 rm -f conftest*
5747 if test $ac_cv_header_stdc = yes; then
5748 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5749 if test "$cross_compiling" = yes; then
5751 else
5752 cat >conftest.$ac_ext <<_ACEOF
5753 /* confdefs.h. */
5754 _ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h. */
5758 #include <ctype.h>
5759 #if ((' ' & 0x0FF) == 0x020)
5760 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5761 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5762 #else
5763 # define ISLOWER(c) \
5764 (('a' <= (c) && (c) <= 'i') \
5765 || ('j' <= (c) && (c) <= 'r') \
5766 || ('s' <= (c) && (c) <= 'z'))
5767 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5768 #endif
5770 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5772 main ()
5774 int i;
5775 for (i = 0; i < 256; i++)
5776 if (XOR (islower (i), ISLOWER (i))
5777 || toupper (i) != TOUPPER (i))
5778 exit(2);
5779 exit (0);
5781 _ACEOF
5782 rm -f conftest$ac_exeext
5783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5784 (eval $ac_link) 2>&5
5785 ac_status=$?
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 (eval $ac_try) 2>&5
5790 ac_status=$?
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; }; then
5794 else
5795 echo "$as_me: program exited with status $ac_status" >&5
5796 echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.$ac_ext >&5
5799 ( exit $ac_status )
5800 ac_cv_header_stdc=no
5802 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5806 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5807 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5808 if test $ac_cv_header_stdc = yes; then
5810 cat >>confdefs.h <<\_ACEOF
5811 #define STDC_HEADERS 1
5812 _ACEOF
5816 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5826 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5827 inttypes.h stdint.h unistd.h
5829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5830 echo "$as_me:$LINENO: checking for $ac_header" >&5
5831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5834 else
5835 cat >conftest.$ac_ext <<_ACEOF
5836 /* confdefs.h. */
5837 _ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h. */
5841 $ac_includes_default
5843 #include <$ac_header>
5844 _ACEOF
5845 rm -f conftest.$ac_objext
5846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5847 (eval $ac_compile) 2>conftest.er1
5848 ac_status=$?
5849 grep -v '^ *+' conftest.er1 >conftest.err
5850 rm -f conftest.er1
5851 cat conftest.err >&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } &&
5854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 (eval $ac_try) 2>&5
5857 ac_status=$?
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; } &&
5860 { ac_try='test -s conftest.$ac_objext'
5861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862 (eval $ac_try) 2>&5
5863 ac_status=$?
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); }; }; then
5866 eval "$as_ac_Header=yes"
5867 else
5868 echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.$ac_ext >&5
5871 eval "$as_ac_Header=no"
5873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5878 cat >>confdefs.h <<_ACEOF
5879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5880 _ACEOF
5884 done
5887 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
5888 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
5889 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
5890 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
5894 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
5895 else
5896 # Is the header compilable?
5897 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
5898 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
5899 cat >conftest.$ac_ext <<_ACEOF
5900 /* confdefs.h. */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5905 $ac_includes_default
5906 #include <sys/dg_sys_info.h>
5907 _ACEOF
5908 rm -f conftest.$ac_objext
5909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5910 (eval $ac_compile) 2>conftest.er1
5911 ac_status=$?
5912 grep -v '^ *+' conftest.er1 >conftest.err
5913 rm -f conftest.er1
5914 cat conftest.err >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } &&
5917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919 (eval $ac_try) 2>&5
5920 ac_status=$?
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; } &&
5923 { ac_try='test -s conftest.$ac_objext'
5924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925 (eval $ac_try) 2>&5
5926 ac_status=$?
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; }; then
5929 ac_header_compiler=yes
5930 else
5931 echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.$ac_ext >&5
5934 ac_header_compiler=no
5936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5937 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5938 echo "${ECHO_T}$ac_header_compiler" >&6
5940 # Is the header present?
5941 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
5942 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
5943 cat >conftest.$ac_ext <<_ACEOF
5944 /* confdefs.h. */
5945 _ACEOF
5946 cat confdefs.h >>conftest.$ac_ext
5947 cat >>conftest.$ac_ext <<_ACEOF
5948 /* end confdefs.h. */
5949 #include <sys/dg_sys_info.h>
5950 _ACEOF
5951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5953 ac_status=$?
5954 grep -v '^ *+' conftest.er1 >conftest.err
5955 rm -f conftest.er1
5956 cat conftest.err >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } >/dev/null; then
5959 if test -s conftest.err; then
5960 ac_cpp_err=$ac_c_preproc_warn_flag
5961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5962 else
5963 ac_cpp_err=
5965 else
5966 ac_cpp_err=yes
5968 if test -z "$ac_cpp_err"; then
5969 ac_header_preproc=yes
5970 else
5971 echo "$as_me: failed program was:" >&5
5972 sed 's/^/| /' conftest.$ac_ext >&5
5974 ac_header_preproc=no
5976 rm -f conftest.err conftest.$ac_ext
5977 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5978 echo "${ECHO_T}$ac_header_preproc" >&6
5980 # So? What about this header?
5981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5982 yes:no: )
5983 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
5984 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5985 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
5986 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
5987 ac_header_preproc=yes
5989 no:yes:* )
5990 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
5991 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
5992 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
5993 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
5994 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
5995 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
5996 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
5997 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
5998 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
5999 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
6000 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
6001 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
6003 cat <<\_ASBOX
6004 ## ------------------------------------------ ##
6005 ## Report this to the AC_PACKAGE_NAME lists. ##
6006 ## ------------------------------------------ ##
6007 _ASBOX
6009 sed "s/^/$as_me: WARNING: /" >&2
6011 esac
6012 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
6013 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
6014 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6016 else
6017 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
6019 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
6020 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
6023 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
6024 ac_is_dgux=yes;
6029 echo "$as_me:$LINENO: result: $ac_is_dgux" >&5
6030 echo "${ECHO_T}$ac_is_dgux" >&6
6031 ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
6032 if test $ac_is_dgux = yes; then
6033 if test "$enable_full_debug" = "yes"; then
6034 CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
6035 CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
6036 else
6037 CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
6038 CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
6045 # Check whether --with-target-subdir or --without-target-subdir was given.
6046 if test "${with_target_subdir+set}" = set; then
6047 withval="$with_target_subdir"
6051 # Check whether --with-cross-host or --without-cross-host was given.
6052 if test "${with_cross_host+set}" = set; then
6053 withval="$with_cross_host"
6057 # automake wants to see AC_EXEEXT. But we don't need it. And having
6058 # it is actually a problem, because the compiler we're passed can't
6059 # necessarily do a full link. So we fool automake here.
6060 if false; then
6061 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
6062 # to nothing, so nothing would remain between `then' and `fi' if it
6063 # were not for the `:' below.
6068 echo "$as_me:$LINENO: checking whether Solaris gcc optimization fix is necessary" >&5
6069 echo $ECHO_N "checking whether Solaris gcc optimization fix is necessary... $ECHO_C" >&6
6070 case "$host" in
6071 sparc-sun-solaris2*|*aix*)
6072 if test "$GCC" = yes; then
6073 echo "$as_me:$LINENO: result: yes" >&5
6074 echo "${ECHO_T}yes" >&6
6075 new_CFLAGS=
6076 for i in $CFLAGS; do
6077 case "$i" in
6078 -O*)
6081 new_CFLAGS="$new_CFLAGS $i"
6083 esac
6084 done
6085 CFLAGS="$new_CFLAGS"
6086 else
6087 echo "$as_me:$LINENO: result: no" >&5
6088 echo "${ECHO_T}no" >&6
6091 *) echo "$as_me:$LINENO: result: no" >&5
6092 echo "${ECHO_T}no" >&6 ;;
6093 esac
6095 MY_CFLAGS="$CFLAGS"
6098 cat >>confdefs.h <<\_ACEOF
6099 #define SILENT 1
6100 _ACEOF
6102 cat >>confdefs.h <<\_ACEOF
6103 #define NO_SIGNALS 1
6104 _ACEOF
6106 cat >>confdefs.h <<\_ACEOF
6107 #define ALL_INTERIOR_POINTERS 1
6108 _ACEOF
6111 cat >>confdefs.h <<\_ACEOF
6112 #define JAVA_FINALIZATION 1
6113 _ACEOF
6115 cat >>confdefs.h <<\_ACEOF
6116 #define GC_GCJ_SUPPORT 1
6117 _ACEOF
6119 cat >>confdefs.h <<\_ACEOF
6120 #define ATOMIC_UNCOLLECTABLE 1
6121 _ACEOF
6124 if test -n "${with_cross_host}"; then
6125 cat >>confdefs.h <<\_ACEOF
6126 #define NO_SIGSET 1
6127 _ACEOF
6129 cat >>confdefs.h <<\_ACEOF
6130 #define NO_DEBUGGING 1
6131 _ACEOF
6135 # Check whether --enable-full-debug or --disable-full-debug was given.
6136 if test "${enable_full_debug+set}" = set; then
6137 enableval="$enable_full_debug"
6138 if test "$enable_full_debug" = "yes"; then
6139 { echo "$as_me:$LINENO: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&5
6140 echo "$as_me: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
6141 cat >>confdefs.h <<\_ACEOF
6142 #define KEEP_BACK_PTRS 1
6143 _ACEOF
6145 cat >>confdefs.h <<\_ACEOF
6146 #define DBG_HDRS_ALL 1
6147 _ACEOF
6149 case $host in
6150 ia64-*-linux* )
6151 cat >>confdefs.h <<\_ACEOF
6152 #define MAKE_BACK_GRAPH 1
6153 _ACEOF
6156 x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
6157 cat >>confdefs.h <<\_ACEOF
6158 #define MAKE_BACK_GRAPH 1
6159 _ACEOF
6161 { echo "$as_me:$LINENO: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
6162 echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
6163 cat >>confdefs.h <<\_ACEOF
6164 #define SAVE_CALL_COUNT 8
6165 _ACEOF
6168 i345686-*-dgux*)
6169 cat >>confdefs.h <<\_ACEOF
6170 #define MAKE_BACK_GRAPH 1
6171 _ACEOF
6174 esac
6178 if test -n "$with_cross_host" &&
6179 test x"$with_cross_host" != x"no"; then
6180 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
6181 toolexeclibdir='$(toolexecdir)/lib'
6182 else
6183 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
6184 toolexeclibdir='$(libdir)'
6186 multi_os_directory=`$CC -print-multi-os-directory`
6187 case $multi_os_directory in
6188 .) ;; # Avoid trailing /.
6189 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
6190 esac
6194 if test "${multilib}" = "yes"; then
6195 multilib_arg="--enable-multilib"
6196 else
6197 multilib_arg=
6200 ac_config_files="$ac_config_files Makefile include/Makefile"
6201 ac_config_commands="$ac_config_commands default"
6202 cat >confcache <<\_ACEOF
6203 # This file is a shell script that caches the results of configure
6204 # tests run on this system so they can be shared between configure
6205 # scripts and configure runs, see configure's option --config-cache.
6206 # It is not useful on other systems. If it contains results you don't
6207 # want to keep, you may remove or edit it.
6209 # config.status only pays attention to the cache file if you give it
6210 # the --recheck option to rerun configure.
6212 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6213 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6214 # following values.
6216 _ACEOF
6218 # The following way of writing the cache mishandles newlines in values,
6219 # but we know of no workaround that is simple, portable, and efficient.
6220 # So, don't put newlines in cache variables' values.
6221 # Ultrix sh set writes to stderr and can't be redirected directly,
6222 # and sets the high bit in the cache file unless we assign to the vars.
6224 (set) 2>&1 |
6225 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6226 *ac_space=\ *)
6227 # `set' does not quote correctly, so add quotes (double-quote
6228 # substitution turns \\\\ into \\, and sed turns \\ into \).
6229 sed -n \
6230 "s/'/'\\\\''/g;
6231 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6234 # `set' quotes correctly as required by POSIX, so do not add quotes.
6235 sed -n \
6236 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6238 esac;
6240 sed '
6241 t clear
6242 : clear
6243 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6244 t end
6245 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6246 : end' >>confcache
6247 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6248 if test -w $cache_file; then
6249 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6250 cat confcache >$cache_file
6251 else
6252 echo "not updating unwritable cache $cache_file"
6255 rm -f confcache
6257 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6258 # Let make expand exec_prefix.
6259 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6261 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6262 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6263 # trailing colons and then remove the whole line if VPATH becomes empty
6264 # (actually we leave an empty line to preserve line numbers).
6265 if test "x$srcdir" = x.; then
6266 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6267 s/:*\$(srcdir):*/:/;
6268 s/:*\${srcdir}:*/:/;
6269 s/:*@srcdir@:*/:/;
6270 s/^\([^=]*=[ ]*\):*/\1/;
6271 s/:*$//;
6272 s/^[^=]*=[ ]*$//;
6276 # Transform confdefs.h into DEFS.
6277 # Protect against shell expansion while executing Makefile rules.
6278 # Protect against Makefile macro expansion.
6280 # If the first sed substitution is executed (which looks for macros that
6281 # take arguments), then we branch to the quote section. Otherwise,
6282 # look for a macro that doesn't take arguments.
6283 cat >confdef2opt.sed <<\_ACEOF
6284 t clear
6285 : clear
6286 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
6287 t quote
6288 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
6289 t quote
6291 : quote
6292 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
6293 s,\[,\\&,g
6294 s,\],\\&,g
6295 s,\$,$$,g
6297 _ACEOF
6298 # We use echo to avoid assuming a particular line-breaking character.
6299 # The extra dot is to prevent the shell from consuming trailing
6300 # line-breaks from the sub-command output. A line-break within
6301 # single-quotes doesn't work because, if this script is created in a
6302 # platform that uses two characters for line-breaks (e.g., DOS), tr
6303 # would break.
6304 ac_LF_and_DOT=`echo; echo .`
6305 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
6306 rm -f confdef2opt.sed
6309 ac_libobjs=
6310 ac_ltlibobjs=
6311 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6312 # 1. Remove the extension, and $U if already installed.
6313 ac_i=`echo "$ac_i" |
6314 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6315 # 2. Add them.
6316 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6317 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6318 done
6319 LIBOBJS=$ac_libobjs
6321 LTLIBOBJS=$ac_ltlibobjs
6325 : ${CONFIG_STATUS=./config.status}
6326 ac_clean_files_save=$ac_clean_files
6327 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6328 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6329 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6330 cat >$CONFIG_STATUS <<_ACEOF
6331 #! $SHELL
6332 # Generated by $as_me.
6333 # Run this file to recreate the current configuration.
6334 # Compiler output produced by configure, useful for debugging
6335 # configure, is in config.log if it exists.
6337 debug=false
6338 ac_cs_recheck=false
6339 ac_cs_silent=false
6340 SHELL=\${CONFIG_SHELL-$SHELL}
6341 _ACEOF
6343 cat >>$CONFIG_STATUS <<\_ACEOF
6344 ## --------------------- ##
6345 ## M4sh Initialization. ##
6346 ## --------------------- ##
6348 # Be Bourne compatible
6349 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6350 emulate sh
6351 NULLCMD=:
6352 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6353 # is contrary to our usage. Disable this feature.
6354 alias -g '${1+"$@"}'='"$@"'
6355 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6356 set -o posix
6358 DUALCASE=1; export DUALCASE # for MKS sh
6360 # Support unset when possible.
6361 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6362 as_unset=unset
6363 else
6364 as_unset=false
6368 # Work around bugs in pre-3.0 UWIN ksh.
6369 $as_unset ENV MAIL MAILPATH
6370 PS1='$ '
6371 PS2='> '
6372 PS4='+ '
6374 # NLS nuisances.
6375 for as_var in \
6376 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6377 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6378 LC_TELEPHONE LC_TIME
6380 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6381 eval $as_var=C; export $as_var
6382 else
6383 $as_unset $as_var
6385 done
6387 # Required to use basename.
6388 if expr a : '\(a\)' >/dev/null 2>&1; then
6389 as_expr=expr
6390 else
6391 as_expr=false
6394 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6395 as_basename=basename
6396 else
6397 as_basename=false
6401 # Name of the executable.
6402 as_me=`$as_basename "$0" ||
6403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6404 X"$0" : 'X\(//\)$' \| \
6405 X"$0" : 'X\(/\)$' \| \
6406 . : '\(.\)' 2>/dev/null ||
6407 echo X/"$0" |
6408 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6409 /^X\/\(\/\/\)$/{ s//\1/; q; }
6410 /^X\/\(\/\).*/{ s//\1/; q; }
6411 s/.*/./; q'`
6414 # PATH needs CR, and LINENO needs CR and PATH.
6415 # Avoid depending upon Character Ranges.
6416 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6417 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6418 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6419 as_cr_digits='0123456789'
6420 as_cr_alnum=$as_cr_Letters$as_cr_digits
6422 # The user is always right.
6423 if test "${PATH_SEPARATOR+set}" != set; then
6424 echo "#! /bin/sh" >conf$$.sh
6425 echo "exit 0" >>conf$$.sh
6426 chmod +x conf$$.sh
6427 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6428 PATH_SEPARATOR=';'
6429 else
6430 PATH_SEPARATOR=:
6432 rm -f conf$$.sh
6436 as_lineno_1=$LINENO
6437 as_lineno_2=$LINENO
6438 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6439 test "x$as_lineno_1" != "x$as_lineno_2" &&
6440 test "x$as_lineno_3" = "x$as_lineno_2" || {
6441 # Find who we are. Look in the path if we contain no path at all
6442 # relative or not.
6443 case $0 in
6444 *[\\/]* ) as_myself=$0 ;;
6445 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446 for as_dir in $PATH
6448 IFS=$as_save_IFS
6449 test -z "$as_dir" && as_dir=.
6450 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6451 done
6454 esac
6455 # We did not find ourselves, most probably we were run as `sh COMMAND'
6456 # in which case we are not to be found in the path.
6457 if test "x$as_myself" = x; then
6458 as_myself=$0
6460 if test ! -f "$as_myself"; then
6461 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6462 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6463 { (exit 1); exit 1; }; }
6465 case $CONFIG_SHELL in
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6470 IFS=$as_save_IFS
6471 test -z "$as_dir" && as_dir=.
6472 for as_base in sh bash ksh sh5; do
6473 case $as_dir in
6475 if ("$as_dir/$as_base" -c '
6476 as_lineno_1=$LINENO
6477 as_lineno_2=$LINENO
6478 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6479 test "x$as_lineno_1" != "x$as_lineno_2" &&
6480 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6481 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6482 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6483 CONFIG_SHELL=$as_dir/$as_base
6484 export CONFIG_SHELL
6485 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6486 fi;;
6487 esac
6488 done
6489 done
6491 esac
6493 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6494 # uniformly replaced by the line number. The first 'sed' inserts a
6495 # line-number line before each line; the second 'sed' does the real
6496 # work. The second script uses 'N' to pair each line-number line
6497 # with the numbered line, and appends trailing '-' during
6498 # substitution so that $LINENO is not a special case at line end.
6499 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6500 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6501 sed '=' <$as_myself |
6502 sed '
6504 s,$,-,
6505 : loop
6506 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6507 t loop
6508 s,-$,,
6509 s,^['$as_cr_digits']*\n,,
6510 ' >$as_me.lineno &&
6511 chmod +x $as_me.lineno ||
6512 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6513 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6514 { (exit 1); exit 1; }; }
6516 # Don't try to exec as it changes $[0], causing all sort of problems
6517 # (the dirname of $[0] is not the place where we might find the
6518 # original and so on. Autoconf is especially sensible to this).
6519 . ./$as_me.lineno
6520 # Exit status is that of the last command.
6521 exit
6525 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6526 *c*,-n*) ECHO_N= ECHO_C='
6527 ' ECHO_T=' ' ;;
6528 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6529 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6530 esac
6532 if expr a : '\(a\)' >/dev/null 2>&1; then
6533 as_expr=expr
6534 else
6535 as_expr=false
6538 rm -f conf$$ conf$$.exe conf$$.file
6539 echo >conf$$.file
6540 if ln -s conf$$.file conf$$ 2>/dev/null; then
6541 # We could just check for DJGPP; but this test a) works b) is more generic
6542 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6543 if test -f conf$$.exe; then
6544 # Don't use ln at all; we don't have any links
6545 as_ln_s='cp -p'
6546 else
6547 as_ln_s='ln -s'
6549 elif ln conf$$.file conf$$ 2>/dev/null; then
6550 as_ln_s=ln
6551 else
6552 as_ln_s='cp -p'
6554 rm -f conf$$ conf$$.exe conf$$.file
6556 if mkdir -p . 2>/dev/null; then
6557 as_mkdir_p=:
6558 else
6559 test -d ./-p && rmdir ./-p
6560 as_mkdir_p=false
6563 as_executable_p="test -f"
6565 # Sed expression to map a string onto a valid CPP name.
6566 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6568 # Sed expression to map a string onto a valid variable name.
6569 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6572 # IFS
6573 # We need space, tab and new line, in precisely that order.
6574 as_nl='
6576 IFS=" $as_nl"
6578 # CDPATH.
6579 $as_unset CDPATH
6581 exec 6>&1
6583 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6584 # report actual input values of CONFIG_FILES etc. instead of their
6585 # values after options handling. Logging --version etc. is OK.
6586 exec 5>>config.log
6588 echo
6589 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6590 ## Running $as_me. ##
6591 _ASBOX
6592 } >&5
6593 cat >&5 <<_CSEOF
6595 This file was extended by $as_me, which was
6596 generated by GNU Autoconf 2.59. Invocation command line was
6598 CONFIG_FILES = $CONFIG_FILES
6599 CONFIG_HEADERS = $CONFIG_HEADERS
6600 CONFIG_LINKS = $CONFIG_LINKS
6601 CONFIG_COMMANDS = $CONFIG_COMMANDS
6602 $ $0 $@
6604 _CSEOF
6605 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6606 echo >&5
6607 _ACEOF
6609 # Files that config.status was made for.
6610 if test -n "$ac_config_files"; then
6611 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6614 if test -n "$ac_config_headers"; then
6615 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6618 if test -n "$ac_config_links"; then
6619 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6622 if test -n "$ac_config_commands"; then
6623 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6626 cat >>$CONFIG_STATUS <<\_ACEOF
6628 ac_cs_usage="\
6629 \`$as_me' instantiates files from templates according to the
6630 current configuration.
6632 Usage: $0 [OPTIONS] [FILE]...
6634 -h, --help print this help, then exit
6635 -V, --version print version number, then exit
6636 -q, --quiet do not print progress messages
6637 -d, --debug don't remove temporary files
6638 --recheck update $as_me by reconfiguring in the same conditions
6639 --file=FILE[:TEMPLATE]
6640 instantiate the configuration file FILE
6642 Configuration files:
6643 $config_files
6645 Configuration commands:
6646 $config_commands
6648 Report bugs to <bug-autoconf@gnu.org>."
6649 _ACEOF
6651 cat >>$CONFIG_STATUS <<_ACEOF
6652 ac_cs_version="\\
6653 config.status
6654 configured by $0, generated by GNU Autoconf 2.59,
6655 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6657 Copyright (C) 2003 Free Software Foundation, Inc.
6658 This config.status script is free software; the Free Software Foundation
6659 gives unlimited permission to copy, distribute and modify it."
6660 srcdir=$srcdir
6661 INSTALL="$INSTALL"
6662 _ACEOF
6664 cat >>$CONFIG_STATUS <<\_ACEOF
6665 # If no file are specified by the user, then we need to provide default
6666 # value. By we need to know if files were specified by the user.
6667 ac_need_defaults=:
6668 while test $# != 0
6670 case $1 in
6671 --*=*)
6672 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6673 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6674 ac_shift=:
6677 ac_option=$1
6678 ac_optarg=$2
6679 ac_shift=shift
6681 *) # This is not an option, so the user has probably given explicit
6682 # arguments.
6683 ac_option=$1
6684 ac_need_defaults=false;;
6685 esac
6687 case $ac_option in
6688 # Handling of the options.
6689 _ACEOF
6690 cat >>$CONFIG_STATUS <<\_ACEOF
6691 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6692 ac_cs_recheck=: ;;
6693 --version | --vers* | -V )
6694 echo "$ac_cs_version"; exit 0 ;;
6695 --he | --h)
6696 # Conflict between --help and --header
6697 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6698 Try \`$0 --help' for more information." >&5
6699 echo "$as_me: error: ambiguous option: $1
6700 Try \`$0 --help' for more information." >&2;}
6701 { (exit 1); exit 1; }; };;
6702 --help | --hel | -h )
6703 echo "$ac_cs_usage"; exit 0 ;;
6704 --debug | --d* | -d )
6705 debug=: ;;
6706 --file | --fil | --fi | --f )
6707 $ac_shift
6708 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6709 ac_need_defaults=false;;
6710 --header | --heade | --head | --hea )
6711 $ac_shift
6712 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6713 ac_need_defaults=false;;
6714 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6715 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6716 ac_cs_silent=: ;;
6718 # This is an error.
6719 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6720 Try \`$0 --help' for more information." >&5
6721 echo "$as_me: error: unrecognized option: $1
6722 Try \`$0 --help' for more information." >&2;}
6723 { (exit 1); exit 1; }; } ;;
6725 *) ac_config_targets="$ac_config_targets $1" ;;
6727 esac
6728 shift
6729 done
6731 ac_configure_extra_args=
6733 if $ac_cs_silent; then
6734 exec 6>/dev/null
6735 ac_configure_extra_args="$ac_configure_extra_args --silent"
6738 _ACEOF
6739 cat >>$CONFIG_STATUS <<_ACEOF
6740 if \$ac_cs_recheck; then
6741 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6742 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6745 _ACEOF
6747 cat >>$CONFIG_STATUS <<_ACEOF
6749 # INIT-COMMANDS section.
6752 srcdir=${srcdir}
6753 host=${host}
6754 target=${target}
6755 with_multisubdir=${with_multisubdir}
6756 ac_configure_args="${multilib_arg} ${ac_configure_args}"
6757 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
6758 gc_basedir=${gc_basedir}
6759 CC="${CC}"
6760 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
6761 DEFS="$DEFS"
6762 INCLUDES="$INCLUDES"
6765 _ACEOF
6769 cat >>$CONFIG_STATUS <<\_ACEOF
6770 for ac_config_target in $ac_config_targets
6772 case "$ac_config_target" in
6773 # Handling of arguments.
6774 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6775 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
6776 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6777 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6778 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6779 { (exit 1); exit 1; }; };;
6780 esac
6781 done
6783 # If the user did not use the arguments to specify the items to instantiate,
6784 # then the envvar interface is used. Set only those that are not.
6785 # We use the long form for the default assignment because of an extremely
6786 # bizarre bug on SunOS 4.1.3.
6787 if $ac_need_defaults; then
6788 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6789 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6792 # Have a temporary directory for convenience. Make it in the build tree
6793 # simply because there is no reason to put it here, and in addition,
6794 # creating and moving files from /tmp can sometimes cause problems.
6795 # Create a temporary directory, and hook for its removal unless debugging.
6796 $debug ||
6798 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6799 trap '{ (exit 1); exit 1; }' 1 2 13 15
6802 # Create a (secure) tmp directory for tmp files.
6805 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6806 test -n "$tmp" && test -d "$tmp"
6807 } ||
6809 tmp=./confstat$$-$RANDOM
6810 (umask 077 && mkdir $tmp)
6811 } ||
6813 echo "$me: cannot create a temporary directory in ." >&2
6814 { (exit 1); exit 1; }
6817 _ACEOF
6819 cat >>$CONFIG_STATUS <<_ACEOF
6822 # CONFIG_FILES section.
6825 # No need to generate the scripts if there are no CONFIG_FILES.
6826 # This happens for instance when ./config.status config.h
6827 if test -n "\$CONFIG_FILES"; then
6828 # Protect against being on the right side of a sed subst in config.status.
6829 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6830 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6831 s,@SHELL@,$SHELL,;t t
6832 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6833 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6834 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6835 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6836 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6837 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6838 s,@exec_prefix@,$exec_prefix,;t t
6839 s,@prefix@,$prefix,;t t
6840 s,@program_transform_name@,$program_transform_name,;t t
6841 s,@bindir@,$bindir,;t t
6842 s,@sbindir@,$sbindir,;t t
6843 s,@libexecdir@,$libexecdir,;t t
6844 s,@datadir@,$datadir,;t t
6845 s,@sysconfdir@,$sysconfdir,;t t
6846 s,@sharedstatedir@,$sharedstatedir,;t t
6847 s,@localstatedir@,$localstatedir,;t t
6848 s,@libdir@,$libdir,;t t
6849 s,@includedir@,$includedir,;t t
6850 s,@oldincludedir@,$oldincludedir,;t t
6851 s,@infodir@,$infodir,;t t
6852 s,@mandir@,$mandir,;t t
6853 s,@build_alias@,$build_alias,;t t
6854 s,@host_alias@,$host_alias,;t t
6855 s,@target_alias@,$target_alias,;t t
6856 s,@DEFS@,$DEFS,;t t
6857 s,@ECHO_C@,$ECHO_C,;t t
6858 s,@ECHO_N@,$ECHO_N,;t t
6859 s,@ECHO_T@,$ECHO_T,;t t
6860 s,@LIBS@,$LIBS,;t t
6861 s,@gc_basedir@,$gc_basedir,;t t
6862 s,@build@,$build,;t t
6863 s,@build_cpu@,$build_cpu,;t t
6864 s,@build_vendor@,$build_vendor,;t t
6865 s,@build_os@,$build_os,;t t
6866 s,@host@,$host,;t t
6867 s,@host_cpu@,$host_cpu,;t t
6868 s,@host_vendor@,$host_vendor,;t t
6869 s,@host_os@,$host_os,;t t
6870 s,@target@,$target,;t t
6871 s,@target_cpu@,$target_cpu,;t t
6872 s,@target_vendor@,$target_vendor,;t t
6873 s,@target_os@,$target_os,;t t
6874 s,@mkinstalldirs@,$mkinstalldirs,;t t
6875 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6876 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6877 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6878 s,@PACKAGE@,$PACKAGE,;t t
6879 s,@VERSION@,$VERSION,;t t
6880 s,@ACLOCAL@,$ACLOCAL,;t t
6881 s,@AUTOCONF@,$AUTOCONF,;t t
6882 s,@AUTOMAKE@,$AUTOMAKE,;t t
6883 s,@AUTOHEADER@,$AUTOHEADER,;t t
6884 s,@MAKEINFO@,$MAKEINFO,;t t
6885 s,@SET_MAKE@,$SET_MAKE,;t t
6886 s,@CC@,$CC,;t t
6887 s,@CFLAGS@,$CFLAGS,;t t
6888 s,@LDFLAGS@,$LDFLAGS,;t t
6889 s,@CPPFLAGS@,$CPPFLAGS,;t t
6890 s,@ac_ct_CC@,$ac_ct_CC,;t t
6891 s,@EXEEXT@,$EXEEXT,;t t
6892 s,@OBJEXT@,$OBJEXT,;t t
6893 s,@CXX@,$CXX,;t t
6894 s,@CXXFLAGS@,$CXXFLAGS,;t t
6895 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6896 s,@AS@,$AS,;t t
6897 s,@ac_ct_AS@,$ac_ct_AS,;t t
6898 s,@AR@,$AR,;t t
6899 s,@ac_ct_AR@,$ac_ct_AR,;t t
6900 s,@RANLIB@,$RANLIB,;t t
6901 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6902 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6903 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6904 s,@MAINT@,$MAINT,;t t
6905 s,@GC_CFLAGS@,$GC_CFLAGS,;t t
6906 s,@LN_S@,$LN_S,;t t
6907 s,@STRIP@,$STRIP,;t t
6908 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6909 s,@LIBTOOL@,$LIBTOOL,;t t
6910 s,@CXXCPP@,$CXXCPP,;t t
6911 s,@THREADLIBS@,$THREADLIBS,;t t
6912 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
6913 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
6914 s,@EXTRA_TEST_LIBS@,$EXTRA_TEST_LIBS,;t t
6915 s,@target_all@,$target_all,;t t
6916 s,@target_noncanonical@,$target_noncanonical,;t t
6917 s,@CPLUSPLUS_TRUE@,$CPLUSPLUS_TRUE,;t t
6918 s,@CPLUSPLUS_FALSE@,$CPLUSPLUS_FALSE,;t t
6919 s,@INCLUDES@,$INCLUDES,;t t
6920 s,@CXXINCLUDES@,$CXXINCLUDES,;t t
6921 s,@addobjs@,$addobjs,;t t
6922 s,@addincludes@,$addincludes,;t t
6923 s,@addlibs@,$addlibs,;t t
6924 s,@addtests@,$addtests,;t t
6925 s,@CPP@,$CPP,;t t
6926 s,@EGREP@,$EGREP,;t t
6927 s,@MY_CFLAGS@,$MY_CFLAGS,;t t
6928 s,@toolexecdir@,$toolexecdir,;t t
6929 s,@toolexeclibdir@,$toolexeclibdir,;t t
6930 s,@LIBOBJS@,$LIBOBJS,;t t
6931 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6932 CEOF
6934 _ACEOF
6936 cat >>$CONFIG_STATUS <<\_ACEOF
6937 # Split the substitutions into bite-sized pieces for seds with
6938 # small command number limits, like on Digital OSF/1 and HP-UX.
6939 ac_max_sed_lines=48
6940 ac_sed_frag=1 # Number of current file.
6941 ac_beg=1 # First line for current file.
6942 ac_end=$ac_max_sed_lines # Line after last line for current file.
6943 ac_more_lines=:
6944 ac_sed_cmds=
6945 while $ac_more_lines; do
6946 if test $ac_beg -gt 1; then
6947 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6948 else
6949 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6951 if test ! -s $tmp/subs.frag; then
6952 ac_more_lines=false
6953 else
6954 # The purpose of the label and of the branching condition is to
6955 # speed up the sed processing (if there are no `@' at all, there
6956 # is no need to browse any of the substitutions).
6957 # These are the two extra sed commands mentioned above.
6958 (echo ':t
6959 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6960 if test -z "$ac_sed_cmds"; then
6961 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6962 else
6963 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6965 ac_sed_frag=`expr $ac_sed_frag + 1`
6966 ac_beg=$ac_end
6967 ac_end=`expr $ac_end + $ac_max_sed_lines`
6969 done
6970 if test -z "$ac_sed_cmds"; then
6971 ac_sed_cmds=cat
6973 fi # test -n "$CONFIG_FILES"
6975 _ACEOF
6976 cat >>$CONFIG_STATUS <<\_ACEOF
6977 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6978 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6979 case $ac_file in
6980 - | *:- | *:-:* ) # input from stdin
6981 cat >$tmp/stdin
6982 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6983 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6984 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6985 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6986 * ) ac_file_in=$ac_file.in ;;
6987 esac
6989 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6990 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6991 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6992 X"$ac_file" : 'X\(//\)[^/]' \| \
6993 X"$ac_file" : 'X\(//\)$' \| \
6994 X"$ac_file" : 'X\(/\)' \| \
6995 . : '\(.\)' 2>/dev/null ||
6996 echo X"$ac_file" |
6997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6998 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6999 /^X\(\/\/\)$/{ s//\1/; q; }
7000 /^X\(\/\).*/{ s//\1/; q; }
7001 s/.*/./; q'`
7002 { if $as_mkdir_p; then
7003 mkdir -p "$ac_dir"
7004 else
7005 as_dir="$ac_dir"
7006 as_dirs=
7007 while test ! -d "$as_dir"; do
7008 as_dirs="$as_dir $as_dirs"
7009 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7010 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7011 X"$as_dir" : 'X\(//\)[^/]' \| \
7012 X"$as_dir" : 'X\(//\)$' \| \
7013 X"$as_dir" : 'X\(/\)' \| \
7014 . : '\(.\)' 2>/dev/null ||
7015 echo X"$as_dir" |
7016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7017 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7018 /^X\(\/\/\)$/{ s//\1/; q; }
7019 /^X\(\/\).*/{ s//\1/; q; }
7020 s/.*/./; q'`
7021 done
7022 test ! -n "$as_dirs" || mkdir $as_dirs
7023 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7024 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7025 { (exit 1); exit 1; }; }; }
7027 ac_builddir=.
7029 if test "$ac_dir" != .; then
7030 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7031 # A "../" for each directory in $ac_dir_suffix.
7032 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7033 else
7034 ac_dir_suffix= ac_top_builddir=
7037 case $srcdir in
7038 .) # No --srcdir option. We are building in place.
7039 ac_srcdir=.
7040 if test -z "$ac_top_builddir"; then
7041 ac_top_srcdir=.
7042 else
7043 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7044 fi ;;
7045 [\\/]* | ?:[\\/]* ) # Absolute path.
7046 ac_srcdir=$srcdir$ac_dir_suffix;
7047 ac_top_srcdir=$srcdir ;;
7048 *) # Relative path.
7049 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7050 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7051 esac
7053 # Do not use `cd foo && pwd` to compute absolute paths, because
7054 # the directories may not exist.
7055 case `pwd` in
7056 .) ac_abs_builddir="$ac_dir";;
7058 case "$ac_dir" in
7059 .) ac_abs_builddir=`pwd`;;
7060 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7061 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7062 esac;;
7063 esac
7064 case $ac_abs_builddir in
7065 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7067 case ${ac_top_builddir}. in
7068 .) ac_abs_top_builddir=$ac_abs_builddir;;
7069 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7070 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7071 esac;;
7072 esac
7073 case $ac_abs_builddir in
7074 .) ac_abs_srcdir=$ac_srcdir;;
7076 case $ac_srcdir in
7077 .) ac_abs_srcdir=$ac_abs_builddir;;
7078 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7079 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7080 esac;;
7081 esac
7082 case $ac_abs_builddir in
7083 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7085 case $ac_top_srcdir in
7086 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7087 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7088 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7089 esac;;
7090 esac
7093 case $INSTALL in
7094 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7095 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7096 esac
7098 # Let's still pretend it is `configure' which instantiates (i.e., don't
7099 # use $as_me), people would be surprised to read:
7100 # /* config.h. Generated by config.status. */
7101 if test x"$ac_file" = x-; then
7102 configure_input=
7103 else
7104 configure_input="$ac_file. "
7106 configure_input=$configure_input"Generated from `echo $ac_file_in |
7107 sed 's,.*/,,'` by configure."
7109 # First look for the input files in the build tree, otherwise in the
7110 # src tree.
7111 ac_file_inputs=`IFS=:
7112 for f in $ac_file_in; do
7113 case $f in
7114 -) echo $tmp/stdin ;;
7115 [\\/$]*)
7116 # Absolute (can't be DOS-style, as IFS=:)
7117 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7118 echo "$as_me: error: cannot find input file: $f" >&2;}
7119 { (exit 1); exit 1; }; }
7120 echo "$f";;
7121 *) # Relative
7122 if test -f "$f"; then
7123 # Build tree
7124 echo "$f"
7125 elif test -f "$srcdir/$f"; then
7126 # Source tree
7127 echo "$srcdir/$f"
7128 else
7129 # /dev/null tree
7130 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7131 echo "$as_me: error: cannot find input file: $f" >&2;}
7132 { (exit 1); exit 1; }; }
7133 fi;;
7134 esac
7135 done` || { (exit 1); exit 1; }
7137 if test x"$ac_file" != x-; then
7138 { echo "$as_me:$LINENO: creating $ac_file" >&5
7139 echo "$as_me: creating $ac_file" >&6;}
7140 rm -f "$ac_file"
7142 _ACEOF
7143 cat >>$CONFIG_STATUS <<_ACEOF
7144 sed "$ac_vpsub
7145 $extrasub
7146 _ACEOF
7147 cat >>$CONFIG_STATUS <<\_ACEOF
7149 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7150 s,@configure_input@,$configure_input,;t t
7151 s,@srcdir@,$ac_srcdir,;t t
7152 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7153 s,@top_srcdir@,$ac_top_srcdir,;t t
7154 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7155 s,@builddir@,$ac_builddir,;t t
7156 s,@abs_builddir@,$ac_abs_builddir,;t t
7157 s,@top_builddir@,$ac_top_builddir,;t t
7158 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7159 s,@INSTALL@,$ac_INSTALL,;t t
7160 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7161 rm -f $tmp/stdin
7162 if test x"$ac_file" != x-; then
7163 mv $tmp/out $ac_file
7164 else
7165 cat $tmp/out
7166 rm -f $tmp/out
7169 done
7170 _ACEOF
7171 cat >>$CONFIG_STATUS <<\_ACEOF
7174 # CONFIG_COMMANDS section.
7176 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7177 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7178 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7179 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7180 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7181 X"$ac_dest" : 'X\(//\)[^/]' \| \
7182 X"$ac_dest" : 'X\(//\)$' \| \
7183 X"$ac_dest" : 'X\(/\)' \| \
7184 . : '\(.\)' 2>/dev/null ||
7185 echo X"$ac_dest" |
7186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7187 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7188 /^X\(\/\/\)$/{ s//\1/; q; }
7189 /^X\(\/\).*/{ s//\1/; q; }
7190 s/.*/./; q'`
7191 { if $as_mkdir_p; then
7192 mkdir -p "$ac_dir"
7193 else
7194 as_dir="$ac_dir"
7195 as_dirs=
7196 while test ! -d "$as_dir"; do
7197 as_dirs="$as_dir $as_dirs"
7198 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7199 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7200 X"$as_dir" : 'X\(//\)[^/]' \| \
7201 X"$as_dir" : 'X\(//\)$' \| \
7202 X"$as_dir" : 'X\(/\)' \| \
7203 . : '\(.\)' 2>/dev/null ||
7204 echo X"$as_dir" |
7205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7206 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7207 /^X\(\/\/\)$/{ s//\1/; q; }
7208 /^X\(\/\).*/{ s//\1/; q; }
7209 s/.*/./; q'`
7210 done
7211 test ! -n "$as_dirs" || mkdir $as_dirs
7212 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7213 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7214 { (exit 1); exit 1; }; }; }
7216 ac_builddir=.
7218 if test "$ac_dir" != .; then
7219 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7220 # A "../" for each directory in $ac_dir_suffix.
7221 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7222 else
7223 ac_dir_suffix= ac_top_builddir=
7226 case $srcdir in
7227 .) # No --srcdir option. We are building in place.
7228 ac_srcdir=.
7229 if test -z "$ac_top_builddir"; then
7230 ac_top_srcdir=.
7231 else
7232 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7233 fi ;;
7234 [\\/]* | ?:[\\/]* ) # Absolute path.
7235 ac_srcdir=$srcdir$ac_dir_suffix;
7236 ac_top_srcdir=$srcdir ;;
7237 *) # Relative path.
7238 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7239 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7240 esac
7242 # Do not use `cd foo && pwd` to compute absolute paths, because
7243 # the directories may not exist.
7244 case `pwd` in
7245 .) ac_abs_builddir="$ac_dir";;
7247 case "$ac_dir" in
7248 .) ac_abs_builddir=`pwd`;;
7249 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7250 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7251 esac;;
7252 esac
7253 case $ac_abs_builddir in
7254 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7256 case ${ac_top_builddir}. in
7257 .) ac_abs_top_builddir=$ac_abs_builddir;;
7258 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7259 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7260 esac;;
7261 esac
7262 case $ac_abs_builddir in
7263 .) ac_abs_srcdir=$ac_srcdir;;
7265 case $ac_srcdir in
7266 .) ac_abs_srcdir=$ac_abs_builddir;;
7267 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7268 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7269 esac;;
7270 esac
7271 case $ac_abs_builddir in
7272 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7274 case $ac_top_srcdir in
7275 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7276 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7277 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7278 esac;;
7279 esac
7282 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7283 echo "$as_me: executing $ac_dest commands" >&6;}
7284 case $ac_dest in
7285 default )
7286 echo "$INCLUDES $DEFS" > boehm-cflags
7288 if test -n "$CONFIG_FILES"; then
7289 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
7290 ac_file=Makefile . ${gc_basedir}/../config-ml.in
7291 fi ;;
7292 esac
7293 done
7294 _ACEOF
7296 cat >>$CONFIG_STATUS <<\_ACEOF
7298 { (exit 0); exit 0; }
7299 _ACEOF
7300 chmod +x $CONFIG_STATUS
7301 ac_clean_files=$ac_clean_files_save
7304 # configure is writing to config.log, and then calls config.status.
7305 # config.status does its own redirection, appending to config.log.
7306 # Unfortunately, on DOS this fails, as config.log is still kept open
7307 # by configure, so config.status won't be able to write to it; its
7308 # output is simply discarded. So we exec the FD to /dev/null,
7309 # effectively closing config.log, so it can be properly (re)opened and
7310 # appended to by config.status. When coming back to configure, we
7311 # need to make the FD available again.
7312 if test "$no_create" != yes; then
7313 ac_cs_success=:
7314 ac_config_status_args=
7315 test "$silent" = yes &&
7316 ac_config_status_args="$ac_config_status_args --quiet"
7317 exec 5>/dev/null
7318 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7319 exec 5>>config.log
7320 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7321 # would make configure fail if this is the last instruction.
7322 $ac_cs_success || { (exit 1); exit 1; }