re PR libfortran/15311 (Incorrect handling of A edit descriptor)
[official-gcc.git] / boehm-gc / configure
blobbc13804ce93455213c58bc3d1626ca4241dc7bd0
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 ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS CCAS CCASFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GC_CFLAGS LN_S STRIP ac_ct_STRIP LIBTOOL CXXCPP CPPFLAGS THREADLIBS POWERPC_DARWIN_TRUE POWERPC_DARWIN_FALSE EXTRA_TEST_LIBS target_all target_noncanonical CPLUSPLUS_TRUE CPLUSPLUS_FALSE INCLUDES CXXINCLUDES addobjs addincludes addlibs addtests CPP EGREP MY_CFLAGS toolexecdir toolexeclibdir LIBOBJS LTLIBOBJS'
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_CXXCPP_set=${CXXCPP+set}
754 ac_env_CXXCPP_value=$CXXCPP
755 ac_cv_env_CXXCPP_set=${CXXCPP+set}
756 ac_cv_env_CXXCPP_value=$CXXCPP
757 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
758 ac_env_CPPFLAGS_value=$CPPFLAGS
759 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
760 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
761 ac_env_CPP_set=${CPP+set}
762 ac_env_CPP_value=$CPP
763 ac_cv_env_CPP_set=${CPP+set}
764 ac_cv_env_CPP_value=$CPP
767 # Report the --help message.
769 if test "$ac_init_help" = "long"; then
770 # Omit some internal or obsolete options to make the list less imposing.
771 # This message is too long to be a string in the A/UX 3.1 sh.
772 cat <<_ACEOF
773 \`configure' configures this package to adapt to many kinds of systems.
775 Usage: $0 [OPTION]... [VAR=VALUE]...
777 To assign environment variables (e.g., CC, CFLAGS...), specify them as
778 VAR=VALUE. See below for descriptions of some of the useful variables.
780 Defaults for the options are specified in brackets.
782 Configuration:
783 -h, --help display this help and exit
784 --help=short display options specific to this package
785 --help=recursive display the short help of all the included packages
786 -V, --version display version information and exit
787 -q, --quiet, --silent do not print \`checking...' messages
788 --cache-file=FILE cache test results in FILE [disabled]
789 -C, --config-cache alias for \`--cache-file=config.cache'
790 -n, --no-create do not create output files
791 --srcdir=DIR find the sources in DIR [configure dir or \`..']
793 _ACEOF
795 cat <<_ACEOF
796 Installation directories:
797 --prefix=PREFIX install architecture-independent files in PREFIX
798 [$ac_default_prefix]
799 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
800 [PREFIX]
802 By default, \`make install' will install all the files in
803 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
804 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
805 for instance \`--prefix=\$HOME'.
807 For better control, use the options below.
809 Fine tuning of the installation directories:
810 --bindir=DIR user executables [EPREFIX/bin]
811 --sbindir=DIR system admin executables [EPREFIX/sbin]
812 --libexecdir=DIR program executables [EPREFIX/libexec]
813 --datadir=DIR read-only architecture-independent data [PREFIX/share]
814 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
815 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
816 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
817 --libdir=DIR object code libraries [EPREFIX/lib]
818 --includedir=DIR C header files [PREFIX/include]
819 --oldincludedir=DIR C header files for non-gcc [/usr/include]
820 --infodir=DIR info documentation [PREFIX/info]
821 --mandir=DIR man documentation [PREFIX/man]
822 _ACEOF
824 cat <<\_ACEOF
826 Program names:
827 --program-prefix=PREFIX prepend PREFIX to installed program names
828 --program-suffix=SUFFIX append SUFFIX to installed program names
829 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
831 System types:
832 --build=BUILD configure for building on BUILD [guessed]
833 --host=HOST cross-compile to build programs to run on HOST [BUILD]
834 --target=TARGET configure for building compilers for TARGET [HOST]
835 _ACEOF
838 if test -n "$ac_init_help"; then
840 cat <<\_ACEOF
842 Optional Features:
843 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
844 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
845 --enable-multilib build many library versions (default)
846 --enable-maintainer-mode enable make rules and dependencies not useful
847 (and sometimes confusing) to the casual installer
848 --enable-shared=PKGS build shared libraries default=yes
849 --enable-static=PKGS build static libraries default=yes
850 --enable-fast-install=PKGS optimize for fast installation default=yes
851 --disable-libtool-lock avoid locking (might break parallel builds)
852 --enable-parallel-mark parallelize marking and free list construction
853 --enable-full-debug include full support for pointer backtracing etc.
855 Optional Packages:
856 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
857 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
858 --with-gnu-ld assume the C compiler uses GNU ld default=no
859 --with-pic try to use only PIC/non-PIC objects default=use both
860 --with-target-subdir=SUBDIR
861 configuring with a cross compiler
862 --with-cross-host=HOST configuring with a cross compiler
863 --with-ecos enable runtime eCos target support
865 Some influential environment variables:
866 CC C compiler command
867 CFLAGS C compiler flags
868 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
869 nonstandard directory <lib dir>
870 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
871 headers in a nonstandard directory <include dir>
872 CXX C++ compiler command
873 CXXFLAGS C++ compiler flags
874 CXXCPP C++ preprocessor
875 CPP C preprocessor
877 Use these variables to override the choices made by `configure' or to help
878 it to find libraries and programs with nonstandard names/locations.
880 _ACEOF
883 if test "$ac_init_help" = "recursive"; then
884 # If there are subdirs, report their specific --help.
885 ac_popdir=`pwd`
886 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
887 test -d $ac_dir || continue
888 ac_builddir=.
890 if test "$ac_dir" != .; then
891 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
892 # A "../" for each directory in $ac_dir_suffix.
893 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
894 else
895 ac_dir_suffix= ac_top_builddir=
898 case $srcdir in
899 .) # No --srcdir option. We are building in place.
900 ac_srcdir=.
901 if test -z "$ac_top_builddir"; then
902 ac_top_srcdir=.
903 else
904 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
905 fi ;;
906 [\\/]* | ?:[\\/]* ) # Absolute path.
907 ac_srcdir=$srcdir$ac_dir_suffix;
908 ac_top_srcdir=$srcdir ;;
909 *) # Relative path.
910 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
911 ac_top_srcdir=$ac_top_builddir$srcdir ;;
912 esac
914 # Do not use `cd foo && pwd` to compute absolute paths, because
915 # the directories may not exist.
916 case `pwd` in
917 .) ac_abs_builddir="$ac_dir";;
919 case "$ac_dir" in
920 .) ac_abs_builddir=`pwd`;;
921 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
922 *) ac_abs_builddir=`pwd`/"$ac_dir";;
923 esac;;
924 esac
925 case $ac_abs_builddir in
926 .) ac_abs_top_builddir=${ac_top_builddir}.;;
928 case ${ac_top_builddir}. in
929 .) ac_abs_top_builddir=$ac_abs_builddir;;
930 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
931 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
932 esac;;
933 esac
934 case $ac_abs_builddir in
935 .) ac_abs_srcdir=$ac_srcdir;;
937 case $ac_srcdir in
938 .) ac_abs_srcdir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
940 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
941 esac;;
942 esac
943 case $ac_abs_builddir in
944 .) ac_abs_top_srcdir=$ac_top_srcdir;;
946 case $ac_top_srcdir in
947 .) ac_abs_top_srcdir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
949 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
950 esac;;
951 esac
953 cd $ac_dir
954 # Check for guested configure; otherwise get Cygnus style configure.
955 if test -f $ac_srcdir/configure.gnu; then
956 echo
957 $SHELL $ac_srcdir/configure.gnu --help=recursive
958 elif test -f $ac_srcdir/configure; then
959 echo
960 $SHELL $ac_srcdir/configure --help=recursive
961 elif test -f $ac_srcdir/configure.ac ||
962 test -f $ac_srcdir/configure.in; then
963 echo
964 $ac_configure --help
965 else
966 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
968 cd $ac_popdir
969 done
972 test -n "$ac_init_help" && exit 0
973 if $ac_init_version; then
974 cat <<\_ACEOF
976 Copyright (C) 2003 Free Software Foundation, Inc.
977 This configure script is free software; the Free Software Foundation
978 gives unlimited permission to copy, distribute and modify it.
979 _ACEOF
980 exit 0
982 exec 5>config.log
983 cat >&5 <<_ACEOF
984 This file contains any messages produced by compilers while
985 running configure, to aid debugging if configure makes a mistake.
987 It was created by $as_me, which was
988 generated by GNU Autoconf 2.59. Invocation command line was
990 $ $0 $@
992 _ACEOF
994 cat <<_ASUNAME
995 ## --------- ##
996 ## Platform. ##
997 ## --------- ##
999 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1000 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1001 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1002 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1003 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1005 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1006 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1008 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1009 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1010 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1011 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1012 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1013 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1014 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1016 _ASUNAME
1018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1019 for as_dir in $PATH
1021 IFS=$as_save_IFS
1022 test -z "$as_dir" && as_dir=.
1023 echo "PATH: $as_dir"
1024 done
1026 } >&5
1028 cat >&5 <<_ACEOF
1031 ## ----------- ##
1032 ## Core tests. ##
1033 ## ----------- ##
1035 _ACEOF
1038 # Keep a trace of the command line.
1039 # Strip out --no-create and --no-recursion so they do not pile up.
1040 # Strip out --silent because we don't want to record it for future runs.
1041 # Also quote any args containing shell meta-characters.
1042 # Make two passes to allow for proper duplicate-argument suppression.
1043 ac_configure_args=
1044 ac_configure_args0=
1045 ac_configure_args1=
1046 ac_sep=
1047 ac_must_keep_next=false
1048 for ac_pass in 1 2
1050 for ac_arg
1052 case $ac_arg in
1053 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1055 | -silent | --silent | --silen | --sile | --sil)
1056 continue ;;
1057 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1058 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1059 esac
1060 case $ac_pass in
1061 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1063 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1064 if test $ac_must_keep_next = true; then
1065 ac_must_keep_next=false # Got value, back to normal.
1066 else
1067 case $ac_arg in
1068 *=* | --config-cache | -C | -disable-* | --disable-* \
1069 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1070 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1071 | -with-* | --with-* | -without-* | --without-* | --x)
1072 case "$ac_configure_args0 " in
1073 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1074 esac
1076 -* ) ac_must_keep_next=true ;;
1077 esac
1079 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1080 # Get rid of the leading space.
1081 ac_sep=" "
1083 esac
1084 done
1085 done
1086 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1087 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1089 # When interrupted or exit'd, cleanup temporary files, and complete
1090 # config.log. We remove comments because anyway the quotes in there
1091 # would cause problems or look ugly.
1092 # WARNING: Be sure not to use single quotes in there, as some shells,
1093 # such as our DU 5.0 friend, will then `close' the trap.
1094 trap 'exit_status=$?
1095 # Save into config.log some information that might help in debugging.
1097 echo
1099 cat <<\_ASBOX
1100 ## ---------------- ##
1101 ## Cache variables. ##
1102 ## ---------------- ##
1103 _ASBOX
1104 echo
1105 # The following way of writing the cache mishandles newlines in values,
1107 (set) 2>&1 |
1108 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1109 *ac_space=\ *)
1110 sed -n \
1111 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1115 sed -n \
1116 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1118 esac;
1120 echo
1122 cat <<\_ASBOX
1123 ## ----------------- ##
1124 ## Output variables. ##
1125 ## ----------------- ##
1126 _ASBOX
1127 echo
1128 for ac_var in $ac_subst_vars
1130 eval ac_val=$`echo $ac_var`
1131 echo "$ac_var='"'"'$ac_val'"'"'"
1132 done | sort
1133 echo
1135 if test -n "$ac_subst_files"; then
1136 cat <<\_ASBOX
1137 ## ------------- ##
1138 ## Output files. ##
1139 ## ------------- ##
1140 _ASBOX
1141 echo
1142 for ac_var in $ac_subst_files
1144 eval ac_val=$`echo $ac_var`
1145 echo "$ac_var='"'"'$ac_val'"'"'"
1146 done | sort
1147 echo
1150 if test -s confdefs.h; then
1151 cat <<\_ASBOX
1152 ## ----------- ##
1153 ## confdefs.h. ##
1154 ## ----------- ##
1155 _ASBOX
1156 echo
1157 sed "/^$/d" confdefs.h | sort
1158 echo
1160 test "$ac_signal" != 0 &&
1161 echo "$as_me: caught signal $ac_signal"
1162 echo "$as_me: exit $exit_status"
1163 } >&5
1164 rm -f core *.core &&
1165 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1166 exit $exit_status
1168 for ac_signal in 1 2 13 15; do
1169 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1170 done
1171 ac_signal=0
1173 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1174 rm -rf conftest* confdefs.h
1175 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1176 echo >confdefs.h
1178 # Predefined preprocessor variables.
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_NAME "$PACKAGE_NAME"
1182 _ACEOF
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1187 _ACEOF
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1192 _ACEOF
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_STRING "$PACKAGE_STRING"
1197 _ACEOF
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1202 _ACEOF
1205 # Let the site file select an alternate cache file if it wants to.
1206 # Prefer explicitly selected file to automatically selected ones.
1207 if test -z "$CONFIG_SITE"; then
1208 if test "x$prefix" != xNONE; then
1209 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1210 else
1211 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1214 for ac_site_file in $CONFIG_SITE; do
1215 if test -r "$ac_site_file"; then
1216 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1217 echo "$as_me: loading site script $ac_site_file" >&6;}
1218 sed 's/^/| /' "$ac_site_file" >&5
1219 . "$ac_site_file"
1221 done
1223 if test -r "$cache_file"; then
1224 # Some versions of bash will fail to source /dev/null (special
1225 # files actually), so we avoid doing that.
1226 if test -f "$cache_file"; then
1227 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1228 echo "$as_me: loading cache $cache_file" >&6;}
1229 case $cache_file in
1230 [\\/]* | ?:[\\/]* ) . $cache_file;;
1231 *) . ./$cache_file;;
1232 esac
1234 else
1235 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1236 echo "$as_me: creating cache $cache_file" >&6;}
1237 >$cache_file
1240 # Check that the precious variables saved in the cache have kept the same
1241 # value.
1242 ac_cache_corrupted=false
1243 for ac_var in `(set) 2>&1 |
1244 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1245 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1246 eval ac_new_set=\$ac_env_${ac_var}_set
1247 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1248 eval ac_new_val="\$ac_env_${ac_var}_value"
1249 case $ac_old_set,$ac_new_set in
1250 set,)
1251 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1252 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1253 ac_cache_corrupted=: ;;
1254 ,set)
1255 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1256 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1257 ac_cache_corrupted=: ;;
1258 ,);;
1260 if test "x$ac_old_val" != "x$ac_new_val"; then
1261 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1262 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1263 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1264 echo "$as_me: former value: $ac_old_val" >&2;}
1265 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1266 echo "$as_me: current value: $ac_new_val" >&2;}
1267 ac_cache_corrupted=:
1268 fi;;
1269 esac
1270 # Pass precious variables to config.status.
1271 if test "$ac_new_set" = set; then
1272 case $ac_new_val in
1273 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1274 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1275 *) ac_arg=$ac_var=$ac_new_val ;;
1276 esac
1277 case " $ac_configure_args " in
1278 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1279 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1280 esac
1282 done
1283 if $ac_cache_corrupted; then
1284 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1285 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1286 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1287 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1288 { (exit 1); exit 1; }; }
1291 ac_ext=c
1292 ac_cpp='$CPP $CPPFLAGS'
1293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1316 # This works around the fact that libtool configuration may change LD
1317 # for this particular configuration, but some shells, instead of
1318 # keeping the changes in LD private, export them just because LD is
1319 # exported.
1320 ORIGINAL_LD_FOR_MULTILIBS=$LD
1322 # Check whether --enable-multilib or --disable-multilib was given.
1323 if test "${enable_multilib+set}" = set; then
1324 enableval="$enable_multilib"
1325 case "${enableval}" in
1326 yes) multilib=yes ;;
1327 no) multilib=no ;;
1328 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1329 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1330 { (exit 1); exit 1; }; } ;;
1331 esac
1332 else
1333 multilib=yes
1336 if test "${srcdir}" = "."; then
1337 if test "${with_target_subdir}" != "." -a -n "${with_target_subdir}"; then
1338 gc_basedir="${srcdir}/${with_multisrctop}../."
1339 else
1340 gc_basedir="${srcdir}/${with_multisrctop}."
1342 else
1343 gc_basedir="${srcdir}/."
1346 ac_aux_dir=
1347 for ac_dir in $gc_basedir/.. $srcdir/$gc_basedir/..; do
1348 if 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/install.sh; then
1353 ac_aux_dir=$ac_dir
1354 ac_install_sh="$ac_aux_dir/install.sh -c"
1355 break
1356 elif test -f $ac_dir/shtool; then
1357 ac_aux_dir=$ac_dir
1358 ac_install_sh="$ac_aux_dir/shtool install -c"
1359 break
1361 done
1362 if test -z "$ac_aux_dir"; then
1363 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $gc_basedir/.. $srcdir/$gc_basedir/.." >&5
1364 echo "$as_me: error: cannot find install-sh or install.sh in $gc_basedir/.. $srcdir/$gc_basedir/.." >&2;}
1365 { (exit 1); exit 1; }; }
1367 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1368 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1369 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1371 if :; then :; else
1372 # This overrides the previous occurrence for automake, but not for
1373 # autoconf, which is exactly what we want.
1374 ac_aux_dir=
1375 for ac_dir in .. $srcdir/..; do
1376 if test -f $ac_dir/install-sh; then
1377 ac_aux_dir=$ac_dir
1378 ac_install_sh="$ac_aux_dir/install-sh -c"
1379 break
1380 elif test -f $ac_dir/install.sh; then
1381 ac_aux_dir=$ac_dir
1382 ac_install_sh="$ac_aux_dir/install.sh -c"
1383 break
1384 elif test -f $ac_dir/shtool; then
1385 ac_aux_dir=$ac_dir
1386 ac_install_sh="$ac_aux_dir/shtool install -c"
1387 break
1389 done
1390 if test -z "$ac_aux_dir"; then
1391 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1392 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1393 { (exit 1); exit 1; }; }
1395 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1396 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1397 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1401 # Make sure we can run config.sub.
1402 $ac_config_sub sun4 >/dev/null 2>&1 ||
1403 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1404 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1405 { (exit 1); exit 1; }; }
1407 echo "$as_me:$LINENO: checking build system type" >&5
1408 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1409 if test "${ac_cv_build+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1411 else
1412 ac_cv_build_alias=$build_alias
1413 test -z "$ac_cv_build_alias" &&
1414 ac_cv_build_alias=`$ac_config_guess`
1415 test -z "$ac_cv_build_alias" &&
1416 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1417 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1418 { (exit 1); exit 1; }; }
1419 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1420 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1421 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1422 { (exit 1); exit 1; }; }
1425 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1426 echo "${ECHO_T}$ac_cv_build" >&6
1427 build=$ac_cv_build
1428 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1429 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1430 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1433 echo "$as_me:$LINENO: checking host system type" >&5
1434 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1435 if test "${ac_cv_host+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1437 else
1438 ac_cv_host_alias=$host_alias
1439 test -z "$ac_cv_host_alias" &&
1440 ac_cv_host_alias=$ac_cv_build_alias
1441 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1442 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1443 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1444 { (exit 1); exit 1; }; }
1447 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1448 echo "${ECHO_T}$ac_cv_host" >&6
1449 host=$ac_cv_host
1450 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1451 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1452 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1455 echo "$as_me:$LINENO: checking target system type" >&5
1456 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1457 if test "${ac_cv_target+set}" = set; then
1458 echo $ECHO_N "(cached) $ECHO_C" >&6
1459 else
1460 ac_cv_target_alias=$target_alias
1461 test "x$ac_cv_target_alias" = "x" &&
1462 ac_cv_target_alias=$ac_cv_host_alias
1463 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1464 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1465 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1466 { (exit 1); exit 1; }; }
1469 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1470 echo "${ECHO_T}$ac_cv_target" >&6
1471 target=$ac_cv_target
1472 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1473 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1474 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1477 # The aliases save the names the user supplied, while $host etc.
1478 # will get canonicalized.
1479 test -n "$target_alias" &&
1480 test "$program_prefix$program_suffix$program_transform_name" = \
1481 NONENONEs,x,x, &&
1482 program_prefix=${target_alias}-
1484 # Get the 'noncanonical' system names.
1485 # Autoconf M4 include file defining utility macros for complex Canadian
1486 # cross builds.
1493 ####
1494 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
1495 # or AC_INIT.
1496 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
1498 ####
1499 # NCN_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
1500 # Like AC_CHECK_TOOL, but tries a prefix of the target, not the host.
1501 # Code is pretty much lifted from autoconf2.53.
1505 ####
1506 # NCN_STRICT_CHECK_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
1507 # Like AC_CHECK_TOOL, but requires the prefix if build!=host.
1511 ####
1512 # NCN_STRICT_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
1513 # Like NCN_CHECK_TARGET_TOOL, but requires the prefix if build!=target.
1517 # AC_PROG_CPP_WERROR
1518 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
1519 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
1520 # For now, using this also overrides header checks to use only the
1521 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
1522 # bit harder from here).
1523 # Eventually autoconf will default to checking headers with the compiler
1524 # instead, and we'll have to do this differently.
1526 # AC_PROG_CPP_WERROR
1528 case ${build_alias} in
1529 "") build_noncanonical=${build} ;;
1530 *) build_noncanonical=${build_alias} ;;
1531 esac
1533 case ${host_alias} in
1534 "") host_noncanonical=${build_noncanonical} ;;
1535 *) host_noncanonical=${host_alias} ;;
1536 esac
1538 case ${target_alias} in
1539 "") target_noncanonical=${host_noncanonical} ;;
1540 *) target_noncanonical=${target_alias} ;;
1541 esac
1544 # This works around an automake problem.
1545 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1548 # Find a good install program. We prefer a C program (faster),
1549 # so one script is as good as another. But avoid the broken or
1550 # incompatible versions:
1551 # SysV /etc/install, /usr/sbin/install
1552 # SunOS /usr/etc/install
1553 # IRIX /sbin/install
1554 # AIX /bin/install
1555 # AmigaOS /C/install, which installs bootblocks on floppy discs
1556 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1557 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1558 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1559 # OS/2's system install, which has a completely different semantic
1560 # ./install, which can be erroneously created by make from ./install.sh.
1561 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1562 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1563 if test -z "$INSTALL"; then
1564 if test "${ac_cv_path_install+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
1566 else
1567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568 for as_dir in $PATH
1570 IFS=$as_save_IFS
1571 test -z "$as_dir" && as_dir=.
1572 # Account for people who put trailing slashes in PATH elements.
1573 case $as_dir/ in
1574 ./ | .// | /cC/* | \
1575 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1576 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1577 /usr/ucb/* ) ;;
1579 # OSF1 and SCO ODT 3.0 have their own names for install.
1580 # Don't use installbsd from OSF since it installs stuff as root
1581 # by default.
1582 for ac_prog in ginstall scoinst install; do
1583 for ac_exec_ext in '' $ac_executable_extensions; do
1584 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1585 if test $ac_prog = install &&
1586 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1587 # AIX install. It has an incompatible calling convention.
1589 elif test $ac_prog = install &&
1590 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1591 # program-specific install script used by HP pwplus--don't use.
1593 else
1594 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1595 break 3
1598 done
1599 done
1601 esac
1602 done
1606 if test "${ac_cv_path_install+set}" = set; then
1607 INSTALL=$ac_cv_path_install
1608 else
1609 # As a last resort, use the slow shell script. We don't cache a
1610 # path for INSTALL within a source directory, because that will
1611 # break other packages using the cache if that directory is
1612 # removed, or if the path is relative.
1613 INSTALL=$ac_install_sh
1616 echo "$as_me:$LINENO: result: $INSTALL" >&5
1617 echo "${ECHO_T}$INSTALL" >&6
1619 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1620 # It thinks the first close brace ends the variable substitution.
1621 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1623 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1625 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1627 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1628 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1629 # Just in case
1630 sleep 1
1631 echo timestamp > conftestfile
1632 # Do `set' in a subshell so we don't clobber the current shell's
1633 # arguments. Must try -L first in case configure is actually a
1634 # symlink; some systems play weird games with the mod time of symlinks
1635 # (eg FreeBSD returns the mod time of the symlink's containing
1636 # directory).
1637 if (
1638 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1639 if test "$*" = "X"; then
1640 # -L didn't work.
1641 set X `ls -t $srcdir/configure conftestfile`
1643 if test "$*" != "X $srcdir/configure conftestfile" \
1644 && test "$*" != "X conftestfile $srcdir/configure"; then
1646 # If neither matched, then we have a broken ls. This can happen
1647 # if, for instance, CONFIG_SHELL is bash and it inherits a
1648 # broken ls alias from the environment. This has actually
1649 # happened. Such a system could not be considered "sane".
1650 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1651 alias in your environment" >&5
1652 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1653 alias in your environment" >&2;}
1654 { (exit 1); exit 1; }; }
1657 test "$2" = conftestfile
1659 then
1660 # Ok.
1662 else
1663 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1664 Check your system clock" >&5
1665 echo "$as_me: error: newly created file is older than distributed files!
1666 Check your system clock" >&2;}
1667 { (exit 1); exit 1; }; }
1669 rm -f conftest*
1670 echo "$as_me:$LINENO: result: yes" >&5
1671 echo "${ECHO_T}yes" >&6
1672 test "$program_prefix" != NONE &&
1673 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1674 # Use a double $ so make ignores it.
1675 test "$program_suffix" != NONE &&
1676 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1677 # Double any \ or $. echo might interpret backslashes.
1678 # By default was `s,x,x', remove it if useless.
1679 cat <<\_ACEOF >conftest.sed
1680 s/[\\$]/&&/g;s/;s,x,x,$//
1681 _ACEOF
1682 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1683 rm conftest.sed
1685 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1686 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1687 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1688 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1689 echo $ECHO_N "(cached) $ECHO_C" >&6
1690 else
1691 cat >conftest.make <<\_ACEOF
1692 all:
1693 @echo 'ac_maketemp="$(MAKE)"'
1694 _ACEOF
1695 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1696 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1697 if test -n "$ac_maketemp"; then
1698 eval ac_cv_prog_make_${ac_make}_set=yes
1699 else
1700 eval ac_cv_prog_make_${ac_make}_set=no
1702 rm -f conftest.make
1704 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1705 echo "$as_me:$LINENO: result: yes" >&5
1706 echo "${ECHO_T}yes" >&6
1707 SET_MAKE=
1708 else
1709 echo "$as_me:$LINENO: result: no" >&5
1710 echo "${ECHO_T}no" >&6
1711 SET_MAKE="MAKE=${MAKE-make}"
1715 PACKAGE=gc
1717 VERSION=6.1a1
1719 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1720 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1721 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1722 { (exit 1); exit 1; }; }
1727 missing_dir=`cd $ac_aux_dir && pwd`
1728 echo "$as_me:$LINENO: checking for working aclocal" >&5
1729 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1730 # Run test in a subshell; some versions of sh will print an error if
1731 # an executable is not found, even if stderr is redirected.
1732 # Redirect stdin to placate older versions of autoconf. Sigh.
1733 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1734 ACLOCAL=aclocal
1735 echo "$as_me:$LINENO: result: found" >&5
1736 echo "${ECHO_T}found" >&6
1737 else
1738 ACLOCAL="$missing_dir/missing aclocal"
1739 echo "$as_me:$LINENO: result: missing" >&5
1740 echo "${ECHO_T}missing" >&6
1743 echo "$as_me:$LINENO: checking for working autoconf" >&5
1744 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1745 # Run test in a subshell; some versions of sh will print an error if
1746 # an executable is not found, even if stderr is redirected.
1747 # Redirect stdin to placate older versions of autoconf. Sigh.
1748 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1749 AUTOCONF=autoconf
1750 echo "$as_me:$LINENO: result: found" >&5
1751 echo "${ECHO_T}found" >&6
1752 else
1753 AUTOCONF="$missing_dir/missing autoconf"
1754 echo "$as_me:$LINENO: result: missing" >&5
1755 echo "${ECHO_T}missing" >&6
1758 echo "$as_me:$LINENO: checking for working automake" >&5
1759 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1760 # Run test in a subshell; some versions of sh will print an error if
1761 # an executable is not found, even if stderr is redirected.
1762 # Redirect stdin to placate older versions of autoconf. Sigh.
1763 if (automake --version) < /dev/null > /dev/null 2>&1; then
1764 AUTOMAKE=automake
1765 echo "$as_me:$LINENO: result: found" >&5
1766 echo "${ECHO_T}found" >&6
1767 else
1768 AUTOMAKE="$missing_dir/missing automake"
1769 echo "$as_me:$LINENO: result: missing" >&5
1770 echo "${ECHO_T}missing" >&6
1773 echo "$as_me:$LINENO: checking for working autoheader" >&5
1774 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1775 # Run test in a subshell; some versions of sh will print an error if
1776 # an executable is not found, even if stderr is redirected.
1777 # Redirect stdin to placate older versions of autoconf. Sigh.
1778 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1779 AUTOHEADER=autoheader
1780 echo "$as_me:$LINENO: result: found" >&5
1781 echo "${ECHO_T}found" >&6
1782 else
1783 AUTOHEADER="$missing_dir/missing autoheader"
1784 echo "$as_me:$LINENO: result: missing" >&5
1785 echo "${ECHO_T}missing" >&6
1788 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1789 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1790 # Run test in a subshell; some versions of sh will print an error if
1791 # an executable is not found, even if stderr is redirected.
1792 # Redirect stdin to placate older versions of autoconf. Sigh.
1793 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1794 MAKEINFO=makeinfo
1795 echo "$as_me:$LINENO: result: found" >&5
1796 echo "${ECHO_T}found" >&6
1797 else
1798 MAKEINFO="$missing_dir/missing makeinfo"
1799 echo "$as_me:$LINENO: result: missing" >&5
1800 echo "${ECHO_T}missing" >&6
1805 # The autoconf 2.5x version of the no-executables hack.
1806 # GCC_NO_EXECUTABLES
1807 # -----------------
1808 # FIXME: The GCC team has specific needs which the current Autoconf
1809 # framework cannot solve elegantly. This macro implements a dirty
1810 # hack until Autoconf is able to provide the services its users
1811 # need.
1813 # Several of the support libraries that are often built with GCC can't
1814 # assume the tool-chain is already capable of linking a program: the
1815 # compiler often expects to be able to link with some of such
1816 # libraries.
1818 # In several of these libraries, workarounds have been introduced to
1819 # avoid the AC_PROG_CC_WORKS test, that would just abort their
1820 # configuration. The introduction of AC_EXEEXT, enabled either by
1821 # libtool or by CVS autoconf, have just made matters worse.
1823 # Unlike the previous AC_NO_EXECUTABLES, this test does not
1824 # disable link tests at autoconf time, but at configure time.
1825 # This allows AC_NO_EXECUTABLES to be invoked conditionally.
1826 # GCC_NO_EXECUTABLES
1830 # Yak. We must force CC and CXX to /not/ be precious variables; otherwise
1831 # the wrong, non-multilib-adjusted value will be used in multilibs.
1832 # As a side effect, we have to subst CFLAGS and CXXFLAGS ourselves.
1836 ac_ext=c
1837 ac_cpp='$CPP $CPPFLAGS'
1838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1841 if test -n "$ac_tool_prefix"; then
1842 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1843 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1844 echo "$as_me:$LINENO: checking for $ac_word" >&5
1845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846 if test "${ac_cv_prog_CC+set}" = set; then
1847 echo $ECHO_N "(cached) $ECHO_C" >&6
1848 else
1849 if test -n "$CC"; then
1850 ac_cv_prog_CC="$CC" # Let the user override the test.
1851 else
1852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853 for as_dir in $PATH
1855 IFS=$as_save_IFS
1856 test -z "$as_dir" && as_dir=.
1857 for ac_exec_ext in '' $ac_executable_extensions; do
1858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1861 break 2
1863 done
1864 done
1868 CC=$ac_cv_prog_CC
1869 if test -n "$CC"; then
1870 echo "$as_me:$LINENO: result: $CC" >&5
1871 echo "${ECHO_T}$CC" >&6
1872 else
1873 echo "$as_me:$LINENO: result: no" >&5
1874 echo "${ECHO_T}no" >&6
1878 if test -z "$ac_cv_prog_CC"; then
1879 ac_ct_CC=$CC
1880 # Extract the first word of "gcc", so it can be a program name with args.
1881 set dummy gcc; ac_word=$2
1882 echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1885 echo $ECHO_N "(cached) $ECHO_C" >&6
1886 else
1887 if test -n "$ac_ct_CC"; then
1888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1889 else
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 for as_dir in $PATH
1893 IFS=$as_save_IFS
1894 test -z "$as_dir" && as_dir=.
1895 for ac_exec_ext in '' $ac_executable_extensions; do
1896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897 ac_cv_prog_ac_ct_CC="gcc"
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899 break 2
1901 done
1902 done
1906 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1907 if test -n "$ac_ct_CC"; then
1908 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1909 echo "${ECHO_T}$ac_ct_CC" >&6
1910 else
1911 echo "$as_me:$LINENO: result: no" >&5
1912 echo "${ECHO_T}no" >&6
1915 CC=$ac_ct_CC
1916 else
1917 CC="$ac_cv_prog_CC"
1920 if test -z "$CC"; then
1921 if test -n "$ac_tool_prefix"; then
1922 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1923 set dummy ${ac_tool_prefix}cc; 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_CC+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929 if test -n "$CC"; then
1930 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}cc"
1940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941 break 2
1943 done
1944 done
1948 CC=$ac_cv_prog_CC
1949 if test -n "$CC"; then
1950 echo "$as_me:$LINENO: result: $CC" >&5
1951 echo "${ECHO_T}$CC" >&6
1952 else
1953 echo "$as_me:$LINENO: result: no" >&5
1954 echo "${ECHO_T}no" >&6
1958 if test -z "$ac_cv_prog_CC"; then
1959 ac_ct_CC=$CC
1960 # Extract the first word of "cc", so it can be a program name with args.
1961 set dummy cc; ac_word=$2
1962 echo "$as_me:$LINENO: checking for $ac_word" >&5
1963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1964 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1965 echo $ECHO_N "(cached) $ECHO_C" >&6
1966 else
1967 if test -n "$ac_ct_CC"; then
1968 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1969 else
1970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 for as_dir in $PATH
1973 IFS=$as_save_IFS
1974 test -z "$as_dir" && as_dir=.
1975 for ac_exec_ext in '' $ac_executable_extensions; do
1976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1977 ac_cv_prog_ac_ct_CC="cc"
1978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979 break 2
1981 done
1982 done
1986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1987 if test -n "$ac_ct_CC"; then
1988 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1989 echo "${ECHO_T}$ac_ct_CC" >&6
1990 else
1991 echo "$as_me:$LINENO: result: no" >&5
1992 echo "${ECHO_T}no" >&6
1995 CC=$ac_ct_CC
1996 else
1997 CC="$ac_cv_prog_CC"
2001 if test -z "$CC"; then
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_CC+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009 if test -n "$CC"; then
2010 ac_cv_prog_CC="$CC" # Let the user override the test.
2011 else
2012 ac_prog_rejected=no
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 for as_dir in $PATH
2016 IFS=$as_save_IFS
2017 test -z "$as_dir" && as_dir=.
2018 for ac_exec_ext in '' $ac_executable_extensions; do
2019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2021 ac_prog_rejected=yes
2022 continue
2024 ac_cv_prog_CC="cc"
2025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026 break 2
2028 done
2029 done
2031 if test $ac_prog_rejected = yes; then
2032 # We found a bogon in the path, so make sure we never use it.
2033 set dummy $ac_cv_prog_CC
2034 shift
2035 if test $# != 0; then
2036 # We chose a different compiler from the bogus one.
2037 # However, it has the same basename, so the bogon will be chosen
2038 # first if we set CC to just the basename; use the full file name.
2039 shift
2040 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2045 CC=$ac_cv_prog_CC
2046 if test -n "$CC"; then
2047 echo "$as_me:$LINENO: result: $CC" >&5
2048 echo "${ECHO_T}$CC" >&6
2049 else
2050 echo "$as_me:$LINENO: result: no" >&5
2051 echo "${ECHO_T}no" >&6
2055 if test -z "$CC"; then
2056 if test -n "$ac_tool_prefix"; then
2057 for ac_prog in cl
2059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2060 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2061 echo "$as_me:$LINENO: checking for $ac_word" >&5
2062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2063 if test "${ac_cv_prog_CC+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 else
2066 if test -n "$CC"; then
2067 ac_cv_prog_CC="$CC" # Let the user override the test.
2068 else
2069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070 for as_dir in $PATH
2072 IFS=$as_save_IFS
2073 test -z "$as_dir" && as_dir=.
2074 for ac_exec_ext in '' $ac_executable_extensions; do
2075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2076 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078 break 2
2080 done
2081 done
2085 CC=$ac_cv_prog_CC
2086 if test -n "$CC"; then
2087 echo "$as_me:$LINENO: result: $CC" >&5
2088 echo "${ECHO_T}$CC" >&6
2089 else
2090 echo "$as_me:$LINENO: result: no" >&5
2091 echo "${ECHO_T}no" >&6
2094 test -n "$CC" && break
2095 done
2097 if test -z "$CC"; then
2098 ac_ct_CC=$CC
2099 for ac_prog in cl
2101 # Extract the first word of "$ac_prog", so it can be a program name with args.
2102 set dummy $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_ac_ct_CC+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 else
2108 if test -n "$ac_ct_CC"; then
2109 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$ac_prog"
2119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120 break 2
2122 done
2123 done
2127 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2128 if test -n "$ac_ct_CC"; then
2129 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2130 echo "${ECHO_T}$ac_ct_CC" >&6
2131 else
2132 echo "$as_me:$LINENO: result: no" >&5
2133 echo "${ECHO_T}no" >&6
2136 test -n "$ac_ct_CC" && break
2137 done
2139 CC=$ac_ct_CC
2145 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2146 See \`config.log' for more details." >&5
2147 echo "$as_me: error: no acceptable C compiler found in \$PATH
2148 See \`config.log' for more details." >&2;}
2149 { (exit 1); exit 1; }; }
2151 # Provide some information about the compiler.
2152 echo "$as_me:$LINENO:" \
2153 "checking for C compiler version" >&5
2154 ac_compiler=`set X $ac_compile; echo $2`
2155 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2156 (eval $ac_compiler --version </dev/null >&5) 2>&5
2157 ac_status=$?
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }
2160 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2161 (eval $ac_compiler -v </dev/null >&5) 2>&5
2162 ac_status=$?
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }
2165 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2166 (eval $ac_compiler -V </dev/null >&5) 2>&5
2167 ac_status=$?
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }
2171 cat >conftest.$ac_ext <<_ACEOF
2172 /* confdefs.h. */
2173 _ACEOF
2174 cat confdefs.h >>conftest.$ac_ext
2175 cat >>conftest.$ac_ext <<_ACEOF
2176 /* end confdefs.h. */
2179 main ()
2183 return 0;
2185 _ACEOF
2186 # FIXME: Cleanup?
2187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2188 (eval $ac_link) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; then
2192 gcc_no_link=no
2193 else
2194 gcc_no_link=yes
2197 if test x$gcc_no_link = xyes; then
2198 # Setting cross_compile will disable run tests; it will
2199 # also disable AC_CHECK_FILE but that's generally
2200 # correct if we can't link.
2201 cross_compiling=yes
2202 EXEEXT=
2203 else
2204 cat >conftest.$ac_ext <<_ACEOF
2205 /* confdefs.h. */
2206 _ACEOF
2207 cat confdefs.h >>conftest.$ac_ext
2208 cat >>conftest.$ac_ext <<_ACEOF
2209 /* end confdefs.h. */
2212 main ()
2216 return 0;
2218 _ACEOF
2219 ac_clean_files_save=$ac_clean_files
2220 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2221 # Try to create an executable without -o first, disregard a.out.
2222 # It will help us diagnose broken compilers, and finding out an intuition
2223 # of exeext.
2224 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2225 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2226 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2227 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2228 (eval $ac_link_default) 2>&5
2229 ac_status=$?
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; then
2232 # Find the output, starting from the most likely. This scheme is
2233 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2234 # resort.
2236 # Be careful to initialize this variable, since it used to be cached.
2237 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2238 ac_cv_exeext=
2239 # b.out is created by i960 compilers.
2240 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2242 test -f "$ac_file" || continue
2243 case $ac_file in
2244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2246 conftest.$ac_ext )
2247 # This is the source file.
2249 [ab].out )
2250 # We found the default executable, but exeext='' is most
2251 # certainly right.
2252 break;;
2253 *.* )
2254 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2255 # FIXME: I believe we export ac_cv_exeext for Libtool,
2256 # but it would be cool to find out if it's true. Does anybody
2257 # maintain Libtool? --akim.
2258 export ac_cv_exeext
2259 break;;
2261 break;;
2262 esac
2263 done
2264 else
2265 echo "$as_me: failed program was:" >&5
2266 sed 's/^/| /' conftest.$ac_ext >&5
2268 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2269 See \`config.log' for more details." >&5
2270 echo "$as_me: error: C compiler cannot create executables
2271 See \`config.log' for more details." >&2;}
2272 { (exit 77); exit 77; }; }
2275 ac_exeext=$ac_cv_exeext
2276 echo "$as_me:$LINENO: result: $ac_file" >&5
2277 echo "${ECHO_T}$ac_file" >&6
2279 # Check the compiler produces executables we can run. If not, either
2280 # the compiler is broken, or we cross compile.
2281 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2282 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2283 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2284 # If not cross compiling, check that we can run a simple program.
2285 if test "$cross_compiling" != yes; then
2286 if { ac_try='./$ac_file'
2287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288 (eval $ac_try) 2>&5
2289 ac_status=$?
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); }; }; then
2292 cross_compiling=no
2293 else
2294 if test "$cross_compiling" = maybe; then
2295 cross_compiling=yes
2296 else
2297 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2298 If you meant to cross compile, use \`--host'.
2299 See \`config.log' for more details." >&5
2300 echo "$as_me: error: cannot run C compiled programs.
2301 If you meant to cross compile, use \`--host'.
2302 See \`config.log' for more details." >&2;}
2303 { (exit 1); exit 1; }; }
2307 echo "$as_me:$LINENO: result: yes" >&5
2308 echo "${ECHO_T}yes" >&6
2310 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2311 ac_clean_files=$ac_clean_files_save
2312 # Check the compiler produces executables we can run. If not, either
2313 # the compiler is broken, or we cross compile.
2314 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2315 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2316 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2317 echo "${ECHO_T}$cross_compiling" >&6
2319 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2320 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2322 (eval $ac_link) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; then
2326 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2327 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2328 # work properly (i.e., refer to `conftest.exe'), while it won't with
2329 # `rm'.
2330 for ac_file in conftest.exe conftest conftest.*; do
2331 test -f "$ac_file" || continue
2332 case $ac_file in
2333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2334 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2335 export ac_cv_exeext
2336 break;;
2337 * ) break;;
2338 esac
2339 done
2340 else
2341 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2342 See \`config.log' for more details." >&5
2343 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2344 See \`config.log' for more details." >&2;}
2345 { (exit 1); exit 1; }; }
2348 rm -f conftest$ac_cv_exeext
2349 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2350 echo "${ECHO_T}$ac_cv_exeext" >&6
2352 rm -f conftest.$ac_ext
2353 EXEEXT=$ac_cv_exeext
2354 ac_exeext=$EXEEXT
2356 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2357 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2358 if test "${ac_cv_objext+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361 cat >conftest.$ac_ext <<_ACEOF
2362 /* confdefs.h. */
2363 _ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h. */
2369 main ()
2373 return 0;
2375 _ACEOF
2376 rm -f conftest.o conftest.obj
2377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378 (eval $ac_compile) 2>&5
2379 ac_status=$?
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; then
2382 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2383 case $ac_file in
2384 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2385 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2386 break;;
2387 esac
2388 done
2389 else
2390 echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.$ac_ext >&5
2393 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2394 See \`config.log' for more details." >&5
2395 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2396 See \`config.log' for more details." >&2;}
2397 { (exit 1); exit 1; }; }
2400 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2402 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2403 echo "${ECHO_T}$ac_cv_objext" >&6
2404 OBJEXT=$ac_cv_objext
2405 ac_objext=$OBJEXT
2406 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2407 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2408 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2409 echo $ECHO_N "(cached) $ECHO_C" >&6
2410 else
2411 cat >conftest.$ac_ext <<_ACEOF
2412 /* confdefs.h. */
2413 _ACEOF
2414 cat confdefs.h >>conftest.$ac_ext
2415 cat >>conftest.$ac_ext <<_ACEOF
2416 /* end confdefs.h. */
2419 main ()
2421 #ifndef __GNUC__
2422 choke me
2423 #endif
2426 return 0;
2428 _ACEOF
2429 rm -f conftest.$ac_objext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431 (eval $ac_compile) 2>conftest.er1
2432 ac_status=$?
2433 grep -v '^ *+' conftest.er1 >conftest.err
2434 rm -f conftest.er1
2435 cat conftest.err >&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); } &&
2438 { ac_try='test -z "$ac_c_werror_flag"
2439 || test ! -s conftest.err'
2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 (eval $ac_try) 2>&5
2442 ac_status=$?
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; } &&
2445 { ac_try='test -s conftest.$ac_objext'
2446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447 (eval $ac_try) 2>&5
2448 ac_status=$?
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; }; then
2451 ac_compiler_gnu=yes
2452 else
2453 echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2456 ac_compiler_gnu=no
2458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2459 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2462 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2463 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2464 GCC=`test $ac_compiler_gnu = yes && echo yes`
2465 ac_test_CFLAGS=${CFLAGS+set}
2466 ac_save_CFLAGS=$CFLAGS
2467 CFLAGS="-g"
2468 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2469 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2470 if test "${ac_cv_prog_cc_g+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6
2472 else
2473 cat >conftest.$ac_ext <<_ACEOF
2474 /* confdefs.h. */
2475 _ACEOF
2476 cat confdefs.h >>conftest.$ac_ext
2477 cat >>conftest.$ac_ext <<_ACEOF
2478 /* end confdefs.h. */
2481 main ()
2485 return 0;
2487 _ACEOF
2488 rm -f conftest.$ac_objext
2489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2490 (eval $ac_compile) 2>conftest.er1
2491 ac_status=$?
2492 grep -v '^ *+' conftest.er1 >conftest.err
2493 rm -f conftest.er1
2494 cat conftest.err >&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); } &&
2497 { ac_try='test -z "$ac_c_werror_flag"
2498 || test ! -s conftest.err'
2499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500 (eval $ac_try) 2>&5
2501 ac_status=$?
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; } &&
2504 { ac_try='test -s conftest.$ac_objext'
2505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506 (eval $ac_try) 2>&5
2507 ac_status=$?
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; }; then
2510 ac_cv_prog_cc_g=yes
2511 else
2512 echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2515 ac_cv_prog_cc_g=no
2517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2519 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2520 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2521 if test "$ac_test_CFLAGS" = set; then
2522 CFLAGS=$ac_save_CFLAGS
2523 elif test $ac_cv_prog_cc_g = yes; then
2524 if test "$GCC" = yes; then
2525 CFLAGS="-g -O2"
2526 else
2527 CFLAGS="-g"
2529 else
2530 if test "$GCC" = yes; then
2531 CFLAGS="-O2"
2532 else
2533 CFLAGS=
2536 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2537 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2538 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 else
2541 ac_cv_prog_cc_stdc=no
2542 ac_save_CC=$CC
2543 cat >conftest.$ac_ext <<_ACEOF
2544 /* confdefs.h. */
2545 _ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h. */
2549 #include <stdarg.h>
2550 #include <stdio.h>
2551 #include <sys/types.h>
2552 #include <sys/stat.h>
2553 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2554 struct buf { int x; };
2555 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2556 static char *e (p, i)
2557 char **p;
2558 int i;
2560 return p[i];
2562 static char *f (char * (*g) (char **, int), char **p, ...)
2564 char *s;
2565 va_list v;
2566 va_start (v,p);
2567 s = g (p, va_arg (v,int));
2568 va_end (v);
2569 return s;
2572 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2573 function prototypes and stuff, but not '\xHH' hex character constants.
2574 These don't provoke an error unfortunately, instead are silently treated
2575 as 'x'. The following induces an error, until -std1 is added to get
2576 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2577 array size at least. It's necessary to write '\x00'==0 to get something
2578 that's true only with -std1. */
2579 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2581 int test (int i, double x);
2582 struct s1 {int (*f) (int a);};
2583 struct s2 {int (*f) (double a);};
2584 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2585 int argc;
2586 char **argv;
2588 main ()
2590 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2592 return 0;
2594 _ACEOF
2595 # Don't try gcc -ansi; that turns off useful extensions and
2596 # breaks some systems' header files.
2597 # AIX -qlanglvl=ansi
2598 # Ultrix and OSF/1 -std1
2599 # HP-UX 10.20 and later -Ae
2600 # HP-UX older versions -Aa -D_HPUX_SOURCE
2601 # SVR4 -Xc -D__EXTENSIONS__
2602 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2604 CC="$ac_save_CC $ac_arg"
2605 rm -f conftest.$ac_objext
2606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2607 (eval $ac_compile) 2>conftest.er1
2608 ac_status=$?
2609 grep -v '^ *+' conftest.er1 >conftest.err
2610 rm -f conftest.er1
2611 cat conftest.err >&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); } &&
2614 { ac_try='test -z "$ac_c_werror_flag"
2615 || test ! -s conftest.err'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617 (eval $ac_try) 2>&5
2618 ac_status=$?
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; } &&
2621 { ac_try='test -s conftest.$ac_objext'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623 (eval $ac_try) 2>&5
2624 ac_status=$?
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; }; then
2627 ac_cv_prog_cc_stdc=$ac_arg
2628 break
2629 else
2630 echo "$as_me: failed program was:" >&5
2631 sed 's/^/| /' conftest.$ac_ext >&5
2634 rm -f conftest.err conftest.$ac_objext
2635 done
2636 rm -f conftest.$ac_ext conftest.$ac_objext
2637 CC=$ac_save_CC
2641 case "x$ac_cv_prog_cc_stdc" in
2642 x|xno)
2643 echo "$as_me:$LINENO: result: none needed" >&5
2644 echo "${ECHO_T}none needed" >&6 ;;
2646 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2647 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2648 CC="$CC $ac_cv_prog_cc_stdc" ;;
2649 esac
2651 # Some people use a C++ compiler to compile C. Since we use `exit',
2652 # in C++ we need to declare it. In case someone uses the same compiler
2653 # for both compiling C and C++ we need to have the C++ compiler decide
2654 # the declaration of exit, since it's the most demanding environment.
2655 cat >conftest.$ac_ext <<_ACEOF
2656 #ifndef __cplusplus
2657 choke me
2658 #endif
2659 _ACEOF
2660 rm -f conftest.$ac_objext
2661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2662 (eval $ac_compile) 2>conftest.er1
2663 ac_status=$?
2664 grep -v '^ *+' conftest.er1 >conftest.err
2665 rm -f conftest.er1
2666 cat conftest.err >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); } &&
2669 { ac_try='test -z "$ac_c_werror_flag"
2670 || test ! -s conftest.err'
2671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672 (eval $ac_try) 2>&5
2673 ac_status=$?
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }; } &&
2676 { ac_try='test -s conftest.$ac_objext'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678 (eval $ac_try) 2>&5
2679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; }; then
2682 for ac_declaration in \
2683 '' \
2684 'extern "C" void std::exit (int) throw (); using std::exit;' \
2685 'extern "C" void std::exit (int); using std::exit;' \
2686 'extern "C" void exit (int) throw ();' \
2687 'extern "C" void exit (int);' \
2688 'void exit (int);'
2690 cat >conftest.$ac_ext <<_ACEOF
2691 /* confdefs.h. */
2692 _ACEOF
2693 cat confdefs.h >>conftest.$ac_ext
2694 cat >>conftest.$ac_ext <<_ACEOF
2695 /* end confdefs.h. */
2696 $ac_declaration
2697 #include <stdlib.h>
2699 main ()
2701 exit (42);
2703 return 0;
2705 _ACEOF
2706 rm -f conftest.$ac_objext
2707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2708 (eval $ac_compile) 2>conftest.er1
2709 ac_status=$?
2710 grep -v '^ *+' conftest.er1 >conftest.err
2711 rm -f conftest.er1
2712 cat conftest.err >&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); } &&
2715 { ac_try='test -z "$ac_c_werror_flag"
2716 || test ! -s conftest.err'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 (eval $ac_try) 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; } &&
2722 { ac_try='test -s conftest.$ac_objext'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 (eval $ac_try) 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; }; then
2729 else
2730 echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2733 continue
2735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2736 cat >conftest.$ac_ext <<_ACEOF
2737 /* confdefs.h. */
2738 _ACEOF
2739 cat confdefs.h >>conftest.$ac_ext
2740 cat >>conftest.$ac_ext <<_ACEOF
2741 /* end confdefs.h. */
2742 $ac_declaration
2744 main ()
2746 exit (42);
2748 return 0;
2750 _ACEOF
2751 rm -f conftest.$ac_objext
2752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2753 (eval $ac_compile) 2>conftest.er1
2754 ac_status=$?
2755 grep -v '^ *+' conftest.er1 >conftest.err
2756 rm -f conftest.er1
2757 cat conftest.err >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } &&
2760 { ac_try='test -z "$ac_c_werror_flag"
2761 || test ! -s conftest.err'
2762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763 (eval $ac_try) 2>&5
2764 ac_status=$?
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }; } &&
2767 { ac_try='test -s conftest.$ac_objext'
2768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769 (eval $ac_try) 2>&5
2770 ac_status=$?
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; }; then
2773 break
2774 else
2775 echo "$as_me: failed program was:" >&5
2776 sed 's/^/| /' conftest.$ac_ext >&5
2779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2780 done
2781 rm -f conftest*
2782 if test -n "$ac_declaration"; then
2783 echo '#ifdef __cplusplus' >>confdefs.h
2784 echo $ac_declaration >>confdefs.h
2785 echo '#endif' >>confdefs.h
2788 else
2789 echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2794 ac_ext=c
2795 ac_cpp='$CPP $CPPFLAGS'
2796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800 ac_ext=cc
2801 ac_cpp='$CXXCPP $CPPFLAGS'
2802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2805 if test -n "$ac_tool_prefix"; then
2806 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2809 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2810 echo "$as_me:$LINENO: checking for $ac_word" >&5
2811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2812 if test "${ac_cv_prog_CXX+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2814 else
2815 if test -n "$CXX"; then
2816 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2817 else
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 for as_dir in $PATH
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2825 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 break 2
2829 done
2830 done
2834 CXX=$ac_cv_prog_CXX
2835 if test -n "$CXX"; then
2836 echo "$as_me:$LINENO: result: $CXX" >&5
2837 echo "${ECHO_T}$CXX" >&6
2838 else
2839 echo "$as_me:$LINENO: result: no" >&5
2840 echo "${ECHO_T}no" >&6
2843 test -n "$CXX" && break
2844 done
2846 if test -z "$CXX"; then
2847 ac_ct_CXX=$CXX
2848 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2850 # Extract the first word of "$ac_prog", so it can be a program name with args.
2851 set dummy $ac_prog; ac_word=$2
2852 echo "$as_me:$LINENO: checking for $ac_word" >&5
2853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2854 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2856 else
2857 if test -n "$ac_ct_CXX"; then
2858 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2859 else
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $PATH
2863 IFS=$as_save_IFS
2864 test -z "$as_dir" && as_dir=.
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2867 ac_cv_prog_ac_ct_CXX="$ac_prog"
2868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2869 break 2
2871 done
2872 done
2876 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2877 if test -n "$ac_ct_CXX"; then
2878 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2879 echo "${ECHO_T}$ac_ct_CXX" >&6
2880 else
2881 echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6
2885 test -n "$ac_ct_CXX" && break
2886 done
2887 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2889 CXX=$ac_ct_CXX
2893 # Provide some information about the compiler.
2894 echo "$as_me:$LINENO:" \
2895 "checking for C++ compiler version" >&5
2896 ac_compiler=`set X $ac_compile; echo $2`
2897 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2898 (eval $ac_compiler --version </dev/null >&5) 2>&5
2899 ac_status=$?
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }
2902 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2903 (eval $ac_compiler -v </dev/null >&5) 2>&5
2904 ac_status=$?
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); }
2907 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2908 (eval $ac_compiler -V </dev/null >&5) 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }
2913 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2914 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2915 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2917 else
2918 cat >conftest.$ac_ext <<_ACEOF
2919 /* confdefs.h. */
2920 _ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h. */
2926 main ()
2928 #ifndef __GNUC__
2929 choke me
2930 #endif
2933 return 0;
2935 _ACEOF
2936 rm -f conftest.$ac_objext
2937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2938 (eval $ac_compile) 2>conftest.er1
2939 ac_status=$?
2940 grep -v '^ *+' conftest.er1 >conftest.err
2941 rm -f conftest.er1
2942 cat conftest.err >&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } &&
2945 { ac_try='test -z "$ac_cxx_werror_flag"
2946 || test ! -s conftest.err'
2947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948 (eval $ac_try) 2>&5
2949 ac_status=$?
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; } &&
2952 { ac_try='test -s conftest.$ac_objext'
2953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954 (eval $ac_try) 2>&5
2955 ac_status=$?
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; }; then
2958 ac_compiler_gnu=yes
2959 else
2960 echo "$as_me: failed program was:" >&5
2961 sed 's/^/| /' conftest.$ac_ext >&5
2963 ac_compiler_gnu=no
2965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2966 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2969 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2970 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2971 GXX=`test $ac_compiler_gnu = yes && echo yes`
2972 ac_test_CXXFLAGS=${CXXFLAGS+set}
2973 ac_save_CXXFLAGS=$CXXFLAGS
2974 CXXFLAGS="-g"
2975 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2976 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2977 if test "${ac_cv_prog_cxx_g+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2979 else
2980 cat >conftest.$ac_ext <<_ACEOF
2981 /* confdefs.h. */
2982 _ACEOF
2983 cat confdefs.h >>conftest.$ac_ext
2984 cat >>conftest.$ac_ext <<_ACEOF
2985 /* end confdefs.h. */
2988 main ()
2992 return 0;
2994 _ACEOF
2995 rm -f conftest.$ac_objext
2996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2997 (eval $ac_compile) 2>conftest.er1
2998 ac_status=$?
2999 grep -v '^ *+' conftest.er1 >conftest.err
3000 rm -f conftest.er1
3001 cat conftest.err >&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); } &&
3004 { ac_try='test -z "$ac_cxx_werror_flag"
3005 || test ! -s conftest.err'
3006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007 (eval $ac_try) 2>&5
3008 ac_status=$?
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; } &&
3011 { ac_try='test -s conftest.$ac_objext'
3012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013 (eval $ac_try) 2>&5
3014 ac_status=$?
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; }; then
3017 ac_cv_prog_cxx_g=yes
3018 else
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3022 ac_cv_prog_cxx_g=no
3024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3026 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3027 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3028 if test "$ac_test_CXXFLAGS" = set; then
3029 CXXFLAGS=$ac_save_CXXFLAGS
3030 elif test $ac_cv_prog_cxx_g = yes; then
3031 if test "$GXX" = yes; then
3032 CXXFLAGS="-g -O2"
3033 else
3034 CXXFLAGS="-g"
3036 else
3037 if test "$GXX" = yes; then
3038 CXXFLAGS="-O2"
3039 else
3040 CXXFLAGS=
3043 for ac_declaration in \
3044 '' \
3045 'extern "C" void std::exit (int) throw (); using std::exit;' \
3046 'extern "C" void std::exit (int); using std::exit;' \
3047 'extern "C" void exit (int) throw ();' \
3048 'extern "C" void exit (int);' \
3049 'void exit (int);'
3051 cat >conftest.$ac_ext <<_ACEOF
3052 /* confdefs.h. */
3053 _ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3057 $ac_declaration
3058 #include <stdlib.h>
3060 main ()
3062 exit (42);
3064 return 0;
3066 _ACEOF
3067 rm -f conftest.$ac_objext
3068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3069 (eval $ac_compile) 2>conftest.er1
3070 ac_status=$?
3071 grep -v '^ *+' conftest.er1 >conftest.err
3072 rm -f conftest.er1
3073 cat conftest.err >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } &&
3076 { ac_try='test -z "$ac_cxx_werror_flag"
3077 || test ! -s conftest.err'
3078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079 (eval $ac_try) 2>&5
3080 ac_status=$?
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); }; } &&
3083 { ac_try='test -s conftest.$ac_objext'
3084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085 (eval $ac_try) 2>&5
3086 ac_status=$?
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; }; then
3090 else
3091 echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3094 continue
3096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3097 cat >conftest.$ac_ext <<_ACEOF
3098 /* confdefs.h. */
3099 _ACEOF
3100 cat confdefs.h >>conftest.$ac_ext
3101 cat >>conftest.$ac_ext <<_ACEOF
3102 /* end confdefs.h. */
3103 $ac_declaration
3105 main ()
3107 exit (42);
3109 return 0;
3111 _ACEOF
3112 rm -f conftest.$ac_objext
3113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3114 (eval $ac_compile) 2>conftest.er1
3115 ac_status=$?
3116 grep -v '^ *+' conftest.er1 >conftest.err
3117 rm -f conftest.er1
3118 cat conftest.err >&5
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); } &&
3121 { ac_try='test -z "$ac_cxx_werror_flag"
3122 || test ! -s conftest.err'
3123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3124 (eval $ac_try) 2>&5
3125 ac_status=$?
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; } &&
3128 { ac_try='test -s conftest.$ac_objext'
3129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3130 (eval $ac_try) 2>&5
3131 ac_status=$?
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }; }; then
3134 break
3135 else
3136 echo "$as_me: failed program was:" >&5
3137 sed 's/^/| /' conftest.$ac_ext >&5
3140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3141 done
3142 rm -f conftest*
3143 if test -n "$ac_declaration"; then
3144 echo '#ifdef __cplusplus' >>confdefs.h
3145 echo $ac_declaration >>confdefs.h
3146 echo '#endif' >>confdefs.h
3149 ac_ext=c
3150 ac_cpp='$CPP $CPPFLAGS'
3151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3160 # Newer automakes demand CCAS and CCASFLAGS.
3161 : ${CCAS='$(CC)'}
3162 : ${CCASFLAGS='$(CFLAGS)'}
3166 if test -n "$ac_tool_prefix"; then
3167 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3168 set dummy ${ac_tool_prefix}as; ac_word=$2
3169 echo "$as_me:$LINENO: checking for $ac_word" >&5
3170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3171 if test "${ac_cv_prog_AS+set}" = set; then
3172 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 else
3174 if test -n "$AS"; then
3175 ac_cv_prog_AS="$AS" # Let the user override the test.
3176 else
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 for as_dir in $PATH
3180 IFS=$as_save_IFS
3181 test -z "$as_dir" && as_dir=.
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3184 ac_cv_prog_AS="${ac_tool_prefix}as"
3185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 break 2
3188 done
3189 done
3193 AS=$ac_cv_prog_AS
3194 if test -n "$AS"; then
3195 echo "$as_me:$LINENO: result: $AS" >&5
3196 echo "${ECHO_T}$AS" >&6
3197 else
3198 echo "$as_me:$LINENO: result: no" >&5
3199 echo "${ECHO_T}no" >&6
3203 if test -z "$ac_cv_prog_AS"; then
3204 ac_ct_AS=$AS
3205 # Extract the first word of "as", so it can be a program name with args.
3206 set dummy as; ac_word=$2
3207 echo "$as_me:$LINENO: checking for $ac_word" >&5
3208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3209 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 else
3212 if test -n "$ac_ct_AS"; then
3213 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3214 else
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 for as_dir in $PATH
3218 IFS=$as_save_IFS
3219 test -z "$as_dir" && as_dir=.
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222 ac_cv_prog_ac_ct_AS="as"
3223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3224 break 2
3226 done
3227 done
3231 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3232 if test -n "$ac_ct_AS"; then
3233 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3234 echo "${ECHO_T}$ac_ct_AS" >&6
3235 else
3236 echo "$as_me:$LINENO: result: no" >&5
3237 echo "${ECHO_T}no" >&6
3240 AS=$ac_ct_AS
3241 else
3242 AS="$ac_cv_prog_AS"
3245 if test -n "$ac_tool_prefix"; then
3246 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3247 set dummy ${ac_tool_prefix}ar; ac_word=$2
3248 echo "$as_me:$LINENO: checking for $ac_word" >&5
3249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3250 if test "${ac_cv_prog_AR+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3252 else
3253 if test -n "$AR"; then
3254 ac_cv_prog_AR="$AR" # Let the user override the test.
3255 else
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 for as_dir in $PATH
3259 IFS=$as_save_IFS
3260 test -z "$as_dir" && as_dir=.
3261 for ac_exec_ext in '' $ac_executable_extensions; do
3262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3263 ac_cv_prog_AR="${ac_tool_prefix}ar"
3264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3265 break 2
3267 done
3268 done
3272 AR=$ac_cv_prog_AR
3273 if test -n "$AR"; then
3274 echo "$as_me:$LINENO: result: $AR" >&5
3275 echo "${ECHO_T}$AR" >&6
3276 else
3277 echo "$as_me:$LINENO: result: no" >&5
3278 echo "${ECHO_T}no" >&6
3282 if test -z "$ac_cv_prog_AR"; then
3283 ac_ct_AR=$AR
3284 # Extract the first word of "ar", so it can be a program name with args.
3285 set dummy ar; ac_word=$2
3286 echo "$as_me:$LINENO: checking for $ac_word" >&5
3287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3288 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 else
3291 if test -n "$ac_ct_AR"; then
3292 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3293 else
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3297 IFS=$as_save_IFS
3298 test -z "$as_dir" && as_dir=.
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3301 ac_cv_prog_ac_ct_AR="ar"
3302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 break 2
3305 done
3306 done
3310 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3311 if test -n "$ac_ct_AR"; then
3312 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3313 echo "${ECHO_T}$ac_ct_AR" >&6
3314 else
3315 echo "$as_me:$LINENO: result: no" >&5
3316 echo "${ECHO_T}no" >&6
3319 AR=$ac_ct_AR
3320 else
3321 AR="$ac_cv_prog_AR"
3324 if test -n "$ac_tool_prefix"; then
3325 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3326 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3327 echo "$as_me:$LINENO: checking for $ac_word" >&5
3328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3329 if test "${ac_cv_prog_RANLIB+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3331 else
3332 if test -n "$RANLIB"; then
3333 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3334 else
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 for as_dir in $PATH
3338 IFS=$as_save_IFS
3339 test -z "$as_dir" && as_dir=.
3340 for ac_exec_ext in '' $ac_executable_extensions; do
3341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3342 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3344 break 2
3346 done
3347 done
3351 RANLIB=$ac_cv_prog_RANLIB
3352 if test -n "$RANLIB"; then
3353 echo "$as_me:$LINENO: result: $RANLIB" >&5
3354 echo "${ECHO_T}$RANLIB" >&6
3355 else
3356 echo "$as_me:$LINENO: result: no" >&5
3357 echo "${ECHO_T}no" >&6
3361 if test -z "$ac_cv_prog_RANLIB"; then
3362 ac_ct_RANLIB=$RANLIB
3363 # Extract the first word of "ranlib", so it can be a program name with args.
3364 set dummy ranlib; ac_word=$2
3365 echo "$as_me:$LINENO: checking for $ac_word" >&5
3366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3367 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 else
3370 if test -n "$ac_ct_RANLIB"; then
3371 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3372 else
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH
3376 IFS=$as_save_IFS
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3380 ac_cv_prog_ac_ct_RANLIB="ranlib"
3381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3382 break 2
3384 done
3385 done
3387 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3390 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3391 if test -n "$ac_ct_RANLIB"; then
3392 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3393 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3394 else
3395 echo "$as_me:$LINENO: result: no" >&5
3396 echo "${ECHO_T}no" >&6
3399 RANLIB=$ac_ct_RANLIB
3400 else
3401 RANLIB="$ac_cv_prog_RANLIB"
3405 # Find a good install program. We prefer a C program (faster),
3406 # so one script is as good as another. But avoid the broken or
3407 # incompatible versions:
3408 # SysV /etc/install, /usr/sbin/install
3409 # SunOS /usr/etc/install
3410 # IRIX /sbin/install
3411 # AIX /bin/install
3412 # AmigaOS /C/install, which installs bootblocks on floppy discs
3413 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3414 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3415 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3416 # OS/2's system install, which has a completely different semantic
3417 # ./install, which can be erroneously created by make from ./install.sh.
3418 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3419 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3420 if test -z "$INSTALL"; then
3421 if test "${ac_cv_path_install+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 for as_dir in $PATH
3427 IFS=$as_save_IFS
3428 test -z "$as_dir" && as_dir=.
3429 # Account for people who put trailing slashes in PATH elements.
3430 case $as_dir/ in
3431 ./ | .// | /cC/* | \
3432 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3433 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3434 /usr/ucb/* ) ;;
3436 # OSF1 and SCO ODT 3.0 have their own names for install.
3437 # Don't use installbsd from OSF since it installs stuff as root
3438 # by default.
3439 for ac_prog in ginstall scoinst install; do
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3442 if test $ac_prog = install &&
3443 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3444 # AIX install. It has an incompatible calling convention.
3446 elif test $ac_prog = install &&
3447 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3448 # program-specific install script used by HP pwplus--don't use.
3450 else
3451 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3452 break 3
3455 done
3456 done
3458 esac
3459 done
3463 if test "${ac_cv_path_install+set}" = set; then
3464 INSTALL=$ac_cv_path_install
3465 else
3466 # As a last resort, use the slow shell script. We don't cache a
3467 # path for INSTALL within a source directory, because that will
3468 # break other packages using the cache if that directory is
3469 # removed, or if the path is relative.
3470 INSTALL=$ac_install_sh
3473 echo "$as_me:$LINENO: result: $INSTALL" >&5
3474 echo "${ECHO_T}$INSTALL" >&6
3476 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3477 # It thinks the first close brace ends the variable substitution.
3478 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3480 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3482 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3485 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3486 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3487 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3488 if test "${enable_maintainer_mode+set}" = set; then
3489 enableval="$enable_maintainer_mode"
3490 USE_MAINTAINER_MODE=$enableval
3491 else
3492 USE_MAINTAINER_MODE=no
3494 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3495 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3498 if test $USE_MAINTAINER_MODE = yes; then
3499 MAINTAINER_MODE_TRUE=
3500 MAINTAINER_MODE_FALSE='#'
3501 else
3502 MAINTAINER_MODE_TRUE='#'
3503 MAINTAINER_MODE_FALSE=
3505 MAINT=$MAINTAINER_MODE_TRUE
3509 . ${srcdir}/configure.host
3511 case ${gc_basedir} in
3512 /* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
3513 *) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
3514 esac
3516 gc_cflags="${gc_cflags} -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
3517 case "${host}" in
3518 *-*-cygwin32*)
3519 gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
3521 esac
3524 GC_CFLAGS=${gc_cflags}
3527 # Check whether --enable-shared or --disable-shared was given.
3528 if test "${enable_shared+set}" = set; then
3529 enableval="$enable_shared"
3530 p=${PACKAGE-default}
3531 case $enableval in
3532 yes) enable_shared=yes ;;
3533 no) enable_shared=no ;;
3535 enable_shared=no
3536 # Look at the argument we got. We use all the common list separators.
3537 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3538 for pkg in $enableval; do
3539 if test "X$pkg" = "X$p"; then
3540 enable_shared=yes
3542 done
3543 IFS="$ac_save_ifs"
3545 esac
3546 else
3547 enable_shared=yes
3549 # Check whether --enable-static or --disable-static was given.
3550 if test "${enable_static+set}" = set; then
3551 enableval="$enable_static"
3552 p=${PACKAGE-default}
3553 case $enableval in
3554 yes) enable_static=yes ;;
3555 no) enable_static=no ;;
3557 enable_static=no
3558 # Look at the argument we got. We use all the common list separators.
3559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3560 for pkg in $enableval; do
3561 if test "X$pkg" = "X$p"; then
3562 enable_static=yes
3564 done
3565 IFS="$ac_save_ifs"
3567 esac
3568 else
3569 enable_static=yes
3571 # Check whether --enable-fast-install or --disable-fast-install was given.
3572 if test "${enable_fast_install+set}" = set; then
3573 enableval="$enable_fast_install"
3574 p=${PACKAGE-default}
3575 case $enableval in
3576 yes) enable_fast_install=yes ;;
3577 no) enable_fast_install=no ;;
3579 enable_fast_install=no
3580 # Look at the argument we got. We use all the common list separators.
3581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3582 for pkg in $enableval; do
3583 if test "X$pkg" = "X$p"; then
3584 enable_fast_install=yes
3586 done
3587 IFS="$ac_save_ifs"
3589 esac
3590 else
3591 enable_fast_install=yes
3594 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3595 if test "${with_gnu_ld+set}" = set; then
3596 withval="$with_gnu_ld"
3597 test "$withval" = no || with_gnu_ld=yes
3598 else
3599 with_gnu_ld=no
3601 ac_prog=ld
3602 if test "$GCC" = yes; then
3603 # Check if gcc -print-prog-name=ld gives a path.
3604 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3605 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3606 case $host in
3607 *-*-mingw*)
3608 # gcc leaves a trailing carriage return which upsets mingw
3609 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3611 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3612 esac
3613 case $ac_prog in
3614 # Accept absolute paths.
3615 [\\/]* | [A-Za-z]:[\\/]*)
3616 re_direlt='/[^/][^/]*/\.\./'
3617 # Canonicalize the path of ld
3618 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3619 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3620 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3621 done
3622 test -z "$LD" && LD="$ac_prog"
3625 # If it fails, then pretend we aren't using GCC.
3626 ac_prog=ld
3629 # If it is relative, then search for the first ld in PATH.
3630 with_gnu_ld=unknown
3632 esac
3633 elif test "$with_gnu_ld" = yes; then
3634 echo "$as_me:$LINENO: checking for GNU ld" >&5
3635 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3636 else
3637 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3638 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3640 if test "${lt_cv_path_LD+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3642 else
3643 if test -z "$LD"; then
3644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3645 for ac_dir in $PATH; do
3646 test -z "$ac_dir" && ac_dir=.
3647 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3648 lt_cv_path_LD="$ac_dir/$ac_prog"
3649 # Check to see if the program is GNU ld. I'd rather use --version,
3650 # but apparently some GNU ld's only accept -v.
3651 # Break only if it was the GNU/non-GNU ld that we prefer.
3652 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3653 test "$with_gnu_ld" != no && break
3654 else
3655 test "$with_gnu_ld" != yes && break
3658 done
3659 IFS="$ac_save_ifs"
3660 else
3661 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3665 LD="$lt_cv_path_LD"
3666 if test -n "$LD"; then
3667 echo "$as_me:$LINENO: result: $LD" >&5
3668 echo "${ECHO_T}$LD" >&6
3669 else
3670 echo "$as_me:$LINENO: result: no" >&5
3671 echo "${ECHO_T}no" >&6
3673 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3674 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3675 { (exit 1); exit 1; }; }
3676 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3677 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3678 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3682 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3683 lt_cv_prog_gnu_ld=yes
3684 else
3685 lt_cv_prog_gnu_ld=no
3688 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3689 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3690 with_gnu_ld=$lt_cv_prog_gnu_ld
3693 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3694 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3695 if test "${lt_cv_ld_reload_flag+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 else
3698 lt_cv_ld_reload_flag='-r'
3700 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3701 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3702 reload_flag=$lt_cv_ld_reload_flag
3703 test -n "$reload_flag" && reload_flag=" $reload_flag"
3705 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3706 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3707 if test "${lt_cv_path_NM+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 else
3710 if test -n "$NM"; then
3711 # Let the user override the test.
3712 lt_cv_path_NM="$NM"
3713 else
3714 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3715 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3716 test -z "$ac_dir" && ac_dir=.
3717 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3718 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3719 # Check to see if the nm accepts a BSD-compat flag.
3720 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3721 # nm: unknown option "B" ignored
3722 # Tru64's nm complains that /dev/null is an invalid object file
3723 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3724 lt_cv_path_NM="$tmp_nm -B"
3725 break
3726 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3727 lt_cv_path_NM="$tmp_nm -p"
3728 break
3729 else
3730 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3731 continue # so that we can try to find one that supports BSD flags
3734 done
3735 IFS="$ac_save_ifs"
3736 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3740 NM="$lt_cv_path_NM"
3741 echo "$as_me:$LINENO: result: $NM" >&5
3742 echo "${ECHO_T}$NM" >&6
3744 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3745 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3746 LN_S=$as_ln_s
3747 if test "$LN_S" = "ln -s"; then
3748 echo "$as_me:$LINENO: result: yes" >&5
3749 echo "${ECHO_T}yes" >&6
3750 else
3751 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3752 echo "${ECHO_T}no, using $LN_S" >&6
3755 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3756 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3757 if test "${lt_cv_deplibs_check_method+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760 lt_cv_file_magic_cmd='$MAGIC_CMD'
3761 lt_cv_file_magic_test_file=
3762 lt_cv_deplibs_check_method='unknown'
3763 # Need to set the preceding variable on all platforms that support
3764 # interlibrary dependencies.
3765 # 'none' -- dependencies not supported.
3766 # `unknown' -- same as none, but documents that we really don't know.
3767 # 'pass_all' -- all dependencies passed with no checks.
3768 # 'test_compile' -- check by making test program.
3769 # 'file_magic [regex]' -- check by looking for files in library path
3770 # which responds to the $file_magic_cmd with a given egrep regex.
3771 # If you have `file' or equivalent on your system and you're not sure
3772 # whether `pass_all' will *always* work, you probably want this one.
3774 case $host_os in
3775 aix*)
3776 lt_cv_deplibs_check_method=pass_all
3779 beos*)
3780 lt_cv_deplibs_check_method=pass_all
3783 bsdi4*)
3784 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3785 lt_cv_file_magic_cmd='/usr/bin/file -L'
3786 lt_cv_file_magic_test_file=/shlib/libc.so
3789 cygwin* | mingw* |pw32*)
3790 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3791 lt_cv_file_magic_cmd='$OBJDUMP -f'
3794 darwin* | rhapsody*)
3795 # this will be overwritten by pass_all, but leave it in just in case
3796 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3797 lt_cv_file_magic_cmd='/usr/bin/file -L'
3798 case "$host_os" in
3799 rhapsody* | darwin1.012)
3800 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3802 *) # Darwin 1.3 on
3803 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3805 esac
3806 lt_cv_deplibs_check_method=pass_all
3809 freebsd* )
3810 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3811 case $host_cpu in
3812 i*86 )
3813 # Not sure whether the presence of OpenBSD here was a mistake.
3814 # Let's accept both of them until this is cleared up.
3815 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3816 lt_cv_file_magic_cmd=/usr/bin/file
3817 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3819 esac
3820 else
3821 lt_cv_deplibs_check_method=pass_all
3825 gnu*)
3826 lt_cv_deplibs_check_method=pass_all
3829 hpux10.20*|hpux11*)
3830 case $host_cpu in
3831 hppa*)
3832 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3833 lt_cv_file_magic_cmd=/usr/bin/file
3834 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3836 ia64*)
3837 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3838 lt_cv_file_magic_cmd=/usr/bin/file
3839 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3841 esac
3844 irix5* | irix6*)
3845 case $host_os in
3846 irix5*)
3847 # this will be overridden with pass_all, but let us keep it just in case
3848 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3851 case $LD in
3852 *-32|*"-32 ") libmagic=32-bit;;
3853 *-n32|*"-n32 ") libmagic=N32;;
3854 *-64|*"-64 ") libmagic=64-bit;;
3855 *) libmagic=never-match;;
3856 esac
3857 # this will be overridden with pass_all, but let us keep it just in case
3858 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3860 esac
3861 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3862 lt_cv_deplibs_check_method=pass_all
3865 # This must be Linux ELF.
3866 linux-gnu*)
3867 case $host_cpu in
3868 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3869 lt_cv_deplibs_check_method=pass_all ;;
3871 # glibc up to 2.1.1 does not perform some relocations on ARM
3872 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3873 esac
3874 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3877 netbsd*)
3878 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3879 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3880 else
3881 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3885 newsos6)
3886 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3887 lt_cv_file_magic_cmd=/usr/bin/file
3888 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3891 osf3* | osf4* | osf5*)
3892 # this will be overridden with pass_all, but let us keep it just in case
3893 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3894 lt_cv_file_magic_test_file=/shlib/libc.so
3895 lt_cv_deplibs_check_method=pass_all
3898 sco3.2v5*)
3899 lt_cv_deplibs_check_method=pass_all
3902 solaris*)
3903 lt_cv_deplibs_check_method=pass_all
3904 lt_cv_file_magic_test_file=/lib/libc.so
3907 sysv5uw[78]* | sysv4*uw2*)
3908 lt_cv_deplibs_check_method=pass_all
3911 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3912 case $host_vendor in
3913 ncr)
3914 lt_cv_deplibs_check_method=pass_all
3916 motorola)
3917 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]'
3918 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3920 esac
3922 esac
3925 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3926 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3927 file_magic_cmd=$lt_cv_file_magic_cmd
3928 deplibs_check_method=$lt_cv_deplibs_check_method
3934 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3936 # Only perform the check for file, if the check method requires it
3937 case $deplibs_check_method in
3938 file_magic*)
3939 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3940 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3941 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3942 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945 case $MAGIC_CMD in
3947 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3949 ?:/*)
3950 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3953 ac_save_MAGIC_CMD="$MAGIC_CMD"
3954 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3955 ac_dummy="/usr/bin:$PATH"
3956 for ac_dir in $ac_dummy; do
3957 test -z "$ac_dir" && ac_dir=.
3958 if test -f $ac_dir/${ac_tool_prefix}file; then
3959 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3960 if test -n "$file_magic_test_file"; then
3961 case $deplibs_check_method in
3962 "file_magic "*)
3963 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3964 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3965 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3966 egrep "$file_magic_regex" > /dev/null; then
3968 else
3969 cat <<EOF 1>&2
3971 *** Warning: the command libtool uses to detect shared libraries,
3972 *** $file_magic_cmd, produces output that libtool cannot recognize.
3973 *** The result is that libtool may fail to recognize shared libraries
3974 *** as such. This will affect the creation of libtool libraries that
3975 *** depend on shared libraries, but programs linked with such libtool
3976 *** libraries will work regardless of this problem. Nevertheless, you
3977 *** may want to report the problem to your system manager and/or to
3978 *** bug-libtool@gnu.org
3981 fi ;;
3982 esac
3984 break
3986 done
3987 IFS="$ac_save_ifs"
3988 MAGIC_CMD="$ac_save_MAGIC_CMD"
3990 esac
3993 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3994 if test -n "$MAGIC_CMD"; then
3995 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3996 echo "${ECHO_T}$MAGIC_CMD" >&6
3997 else
3998 echo "$as_me:$LINENO: result: no" >&5
3999 echo "${ECHO_T}no" >&6
4002 if test -z "$lt_cv_path_MAGIC_CMD"; then
4003 if test -n "$ac_tool_prefix"; then
4004 echo "$as_me:$LINENO: checking for file" >&5
4005 echo $ECHO_N "checking for file... $ECHO_C" >&6
4006 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4008 else
4009 case $MAGIC_CMD in
4011 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4013 ?:/*)
4014 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4017 ac_save_MAGIC_CMD="$MAGIC_CMD"
4018 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4019 ac_dummy="/usr/bin:$PATH"
4020 for ac_dir in $ac_dummy; do
4021 test -z "$ac_dir" && ac_dir=.
4022 if test -f $ac_dir/file; then
4023 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4024 if test -n "$file_magic_test_file"; then
4025 case $deplibs_check_method in
4026 "file_magic "*)
4027 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4028 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4029 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4030 egrep "$file_magic_regex" > /dev/null; then
4032 else
4033 cat <<EOF 1>&2
4035 *** Warning: the command libtool uses to detect shared libraries,
4036 *** $file_magic_cmd, produces output that libtool cannot recognize.
4037 *** The result is that libtool may fail to recognize shared libraries
4038 *** as such. This will affect the creation of libtool libraries that
4039 *** depend on shared libraries, but programs linked with such libtool
4040 *** libraries will work regardless of this problem. Nevertheless, you
4041 *** may want to report the problem to your system manager and/or to
4042 *** bug-libtool@gnu.org
4045 fi ;;
4046 esac
4048 break
4050 done
4051 IFS="$ac_save_ifs"
4052 MAGIC_CMD="$ac_save_MAGIC_CMD"
4054 esac
4057 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4058 if test -n "$MAGIC_CMD"; then
4059 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4060 echo "${ECHO_T}$MAGIC_CMD" >&6
4061 else
4062 echo "$as_me:$LINENO: result: no" >&5
4063 echo "${ECHO_T}no" >&6
4066 else
4067 MAGIC_CMD=:
4073 esac
4075 if test -n "$ac_tool_prefix"; then
4076 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4077 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4078 echo "$as_me:$LINENO: checking for $ac_word" >&5
4079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4080 if test "${ac_cv_prog_RANLIB+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 else
4083 if test -n "$RANLIB"; then
4084 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4085 else
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 for as_dir in $PATH
4089 IFS=$as_save_IFS
4090 test -z "$as_dir" && as_dir=.
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4093 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4095 break 2
4097 done
4098 done
4102 RANLIB=$ac_cv_prog_RANLIB
4103 if test -n "$RANLIB"; then
4104 echo "$as_me:$LINENO: result: $RANLIB" >&5
4105 echo "${ECHO_T}$RANLIB" >&6
4106 else
4107 echo "$as_me:$LINENO: result: no" >&5
4108 echo "${ECHO_T}no" >&6
4112 if test -z "$ac_cv_prog_RANLIB"; then
4113 ac_ct_RANLIB=$RANLIB
4114 # Extract the first word of "ranlib", so it can be a program name with args.
4115 set dummy ranlib; ac_word=$2
4116 echo "$as_me:$LINENO: checking for $ac_word" >&5
4117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4118 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 else
4121 if test -n "$ac_ct_RANLIB"; then
4122 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4123 else
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 for as_dir in $PATH
4127 IFS=$as_save_IFS
4128 test -z "$as_dir" && as_dir=.
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4131 ac_cv_prog_ac_ct_RANLIB="ranlib"
4132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4133 break 2
4135 done
4136 done
4138 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4141 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4142 if test -n "$ac_ct_RANLIB"; then
4143 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4144 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4145 else
4146 echo "$as_me:$LINENO: result: no" >&5
4147 echo "${ECHO_T}no" >&6
4150 RANLIB=$ac_ct_RANLIB
4151 else
4152 RANLIB="$ac_cv_prog_RANLIB"
4155 if test -n "$ac_tool_prefix"; then
4156 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4157 set dummy ${ac_tool_prefix}strip; ac_word=$2
4158 echo "$as_me:$LINENO: checking for $ac_word" >&5
4159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4160 if test "${ac_cv_prog_STRIP+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163 if test -n "$STRIP"; then
4164 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4165 else
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 break 2
4177 done
4178 done
4182 STRIP=$ac_cv_prog_STRIP
4183 if test -n "$STRIP"; then
4184 echo "$as_me:$LINENO: result: $STRIP" >&5
4185 echo "${ECHO_T}$STRIP" >&6
4186 else
4187 echo "$as_me:$LINENO: result: no" >&5
4188 echo "${ECHO_T}no" >&6
4192 if test -z "$ac_cv_prog_STRIP"; then
4193 ac_ct_STRIP=$STRIP
4194 # Extract the first word of "strip", so it can be a program name with args.
4195 set dummy strip; ac_word=$2
4196 echo "$as_me:$LINENO: checking for $ac_word" >&5
4197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4198 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201 if test -n "$ac_ct_STRIP"; then
4202 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4203 else
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 for as_dir in $PATH
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4211 ac_cv_prog_ac_ct_STRIP="strip"
4212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 break 2
4215 done
4216 done
4218 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4221 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4222 if test -n "$ac_ct_STRIP"; then
4223 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4224 echo "${ECHO_T}$ac_ct_STRIP" >&6
4225 else
4226 echo "$as_me:$LINENO: result: no" >&5
4227 echo "${ECHO_T}no" >&6
4230 STRIP=$ac_ct_STRIP
4231 else
4232 STRIP="$ac_cv_prog_STRIP"
4236 # Check for any special flags to pass to ltconfig.
4237 libtool_flags="--cache-file=$cache_file"
4238 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4239 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4240 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4241 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4242 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4245 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4246 if test "${enable_libtool_lock+set}" = set; then
4247 enableval="$enable_libtool_lock"
4250 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4251 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4254 # Check whether --with-pic or --without-pic was given.
4255 if test "${with_pic+set}" = set; then
4256 withval="$with_pic"
4257 pic_mode="$withval"
4258 else
4259 pic_mode=default
4261 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4262 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4264 # Some flags need to be propagated to the compiler or linker for good
4265 # libtool support.
4266 case $host in
4267 *-*-irix6*)
4268 # Find out which ABI we are using.
4269 echo '#line 4269 "configure"' > conftest.$ac_ext
4270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4271 (eval $ac_compile) 2>&5
4272 ac_status=$?
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; then
4275 if test "$lt_cv_prog_gnu_ld" = yes; then
4276 case `/usr/bin/file conftest.$ac_objext` in
4277 *32-bit*)
4278 LD="${LD-ld} -melf32bsmip"
4280 *N32*)
4281 LD="${LD-ld} -melf32bmipn32"
4283 *64-bit*)
4284 LD="${LD-ld} -melf64bmip"
4286 esac
4287 else
4288 case `/usr/bin/file conftest.$ac_objext` in
4289 *32-bit*)
4290 LD="${LD-ld} -32"
4292 *N32*)
4293 LD="${LD-ld} -n32"
4295 *64-bit*)
4296 LD="${LD-ld} -64"
4298 esac
4301 rm -rf conftest*
4304 ia64-*-hpux*)
4305 # Find out which ABI we are using.
4306 echo 'int i;' > 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 case "`/usr/bin/file conftest.o`" in
4313 *ELF-32*)
4314 HPUX_IA64_MODE="32"
4316 *ELF-64*)
4317 HPUX_IA64_MODE="64"
4319 esac
4321 rm -rf conftest*
4324 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4325 # Find out which ABI we are using.
4326 echo 'int i;' > conftest.$ac_ext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4328 (eval $ac_compile) 2>&5
4329 ac_status=$?
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); }; then
4332 case "`/usr/bin/file conftest.o`" in
4333 *32-bit*)
4334 case $host in
4335 x86_64-*linux*)
4336 LD="${LD-ld} -m elf_i386"
4338 ppc64-*linux*|powerpc64-*linux*)
4339 LD="${LD-ld} -m elf32ppclinux"
4341 s390x-*linux*)
4342 LD="${LD-ld} -m elf_s390"
4344 sparc64-*linux*)
4345 LD="${LD-ld} -m elf32_sparc"
4347 esac
4349 *64-bit*)
4350 case $host in
4351 x86_64-*linux*)
4352 LD="${LD-ld} -m elf_x86_64"
4354 ppc*-*linux*|powerpc*-*linux*)
4355 LD="${LD-ld} -m elf64ppc"
4357 s390*-*linux*)
4358 LD="${LD-ld} -m elf64_s390"
4360 sparc*-*linux*)
4361 LD="${LD-ld} -m elf64_sparc"
4363 esac
4365 esac
4367 rm -rf conftest*
4370 *-*-sco3.2v5*)
4371 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4372 SAVE_CFLAGS="$CFLAGS"
4373 CFLAGS="$CFLAGS -belf"
4374 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4375 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4376 if test "${lt_cv_cc_needs_belf+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4381 ac_ext=c
4382 ac_cpp='$CPP $CPPFLAGS'
4383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4387 if test x$gcc_no_link = xyes; then
4388 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4389 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4390 { (exit 1); exit 1; }; }
4392 cat >conftest.$ac_ext <<_ACEOF
4393 /* confdefs.h. */
4394 _ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4400 main ()
4404 return 0;
4406 _ACEOF
4407 rm -f conftest.$ac_objext conftest$ac_exeext
4408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4409 (eval $ac_link) 2>conftest.er1
4410 ac_status=$?
4411 grep -v '^ *+' conftest.er1 >conftest.err
4412 rm -f conftest.er1
4413 cat conftest.err >&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } &&
4416 { ac_try='test -z "$ac_c_werror_flag"
4417 || test ! -s conftest.err'
4418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419 (eval $ac_try) 2>&5
4420 ac_status=$?
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; } &&
4423 { ac_try='test -s conftest$ac_exeext'
4424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425 (eval $ac_try) 2>&5
4426 ac_status=$?
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; }; then
4429 lt_cv_cc_needs_belf=yes
4430 else
4431 echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4434 lt_cv_cc_needs_belf=no
4436 rm -f conftest.err conftest.$ac_objext \
4437 conftest$ac_exeext conftest.$ac_ext
4438 ac_ext=c
4439 ac_cpp='$CPP $CPPFLAGS'
4440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4445 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4446 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4447 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4448 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4449 CFLAGS="$SAVE_CFLAGS"
4454 esac
4457 # Save cache, so that ltconfig can load it
4458 cat >confcache <<\_ACEOF
4459 # This file is a shell script that caches the results of configure
4460 # tests run on this system so they can be shared between configure
4461 # scripts and configure runs, see configure's option --config-cache.
4462 # It is not useful on other systems. If it contains results you don't
4463 # want to keep, you may remove or edit it.
4465 # config.status only pays attention to the cache file if you give it
4466 # the --recheck option to rerun configure.
4468 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4469 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4470 # following values.
4472 _ACEOF
4474 # The following way of writing the cache mishandles newlines in values,
4475 # but we know of no workaround that is simple, portable, and efficient.
4476 # So, don't put newlines in cache variables' values.
4477 # Ultrix sh set writes to stderr and can't be redirected directly,
4478 # and sets the high bit in the cache file unless we assign to the vars.
4480 (set) 2>&1 |
4481 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4482 *ac_space=\ *)
4483 # `set' does not quote correctly, so add quotes (double-quote
4484 # substitution turns \\\\ into \\, and sed turns \\ into \).
4485 sed -n \
4486 "s/'/'\\\\''/g;
4487 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4490 # `set' quotes correctly as required by POSIX, so do not add quotes.
4491 sed -n \
4492 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4494 esac;
4496 sed '
4497 t clear
4498 : clear
4499 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4500 t end
4501 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4502 : end' >>confcache
4503 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4504 if test -w $cache_file; then
4505 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4506 cat confcache >$cache_file
4507 else
4508 echo "not updating unwritable cache $cache_file"
4511 rm -f confcache
4513 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4514 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4515 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4516 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4517 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4518 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4519 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4520 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4521 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4522 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4523 echo "$as_me: error: libtool configure failed" >&2;}
4524 { (exit 1); exit 1; }; }
4526 # Reload cache, that may have been modified by ltconfig
4527 if test -r "$cache_file"; then
4528 # Some versions of bash will fail to source /dev/null (special
4529 # files actually), so we avoid doing that.
4530 if test -f "$cache_file"; then
4531 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4532 echo "$as_me: loading cache $cache_file" >&6;}
4533 case $cache_file in
4534 [\\/]* | ?:[\\/]* ) . $cache_file;;
4535 *) . ./$cache_file;;
4536 esac
4538 else
4539 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4540 echo "$as_me: creating cache $cache_file" >&6;}
4541 >$cache_file
4545 # This can be used to rebuild libtool when needed
4546 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4548 # Always use our own libtool.
4549 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4551 # Redirect the config.log output again, so that the ltconfig log is not
4552 # clobbered by the next message.
4553 exec 5>>./config.log
4555 ac_ext=cc
4556 ac_cpp='$CXXCPP $CPPFLAGS'
4557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4560 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4561 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4562 if test -z "$CXXCPP"; then
4563 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4564 echo $ECHO_N "(cached) $ECHO_C" >&6
4565 else
4566 # Double quotes because CXXCPP needs to be expanded
4567 for CXXCPP in "$CXX -E" "/lib/cpp"
4569 ac_preproc_ok=false
4570 for ac_cxx_preproc_warn_flag in '' yes
4572 # Use a header file that comes with gcc, so configuring glibc
4573 # with a fresh cross-compiler works.
4574 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4575 # <limits.h> exists even on freestanding compilers.
4576 # On the NeXT, cc -E runs the code through the compiler's parser,
4577 # not just through cpp. "Syntax error" is here to catch this case.
4578 cat >conftest.$ac_ext <<_ACEOF
4579 /* confdefs.h. */
4580 _ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h. */
4584 #ifdef __STDC__
4585 # include <limits.h>
4586 #else
4587 # include <assert.h>
4588 #endif
4589 Syntax error
4590 _ACEOF
4591 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4592 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4593 ac_status=$?
4594 grep -v '^ *+' conftest.er1 >conftest.err
4595 rm -f conftest.er1
4596 cat conftest.err >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); } >/dev/null; then
4599 if test -s conftest.err; then
4600 ac_cpp_err=$ac_cxx_preproc_warn_flag
4601 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4602 else
4603 ac_cpp_err=
4605 else
4606 ac_cpp_err=yes
4608 if test -z "$ac_cpp_err"; then
4610 else
4611 echo "$as_me: failed program was:" >&5
4612 sed 's/^/| /' conftest.$ac_ext >&5
4614 # Broken: fails on valid input.
4615 continue
4617 rm -f conftest.err conftest.$ac_ext
4619 # OK, works on sane cases. Now check whether non-existent headers
4620 # can be detected and how.
4621 cat >conftest.$ac_ext <<_ACEOF
4622 /* confdefs.h. */
4623 _ACEOF
4624 cat confdefs.h >>conftest.$ac_ext
4625 cat >>conftest.$ac_ext <<_ACEOF
4626 /* end confdefs.h. */
4627 #include <ac_nonexistent.h>
4628 _ACEOF
4629 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4630 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4631 ac_status=$?
4632 grep -v '^ *+' conftest.er1 >conftest.err
4633 rm -f conftest.er1
4634 cat conftest.err >&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } >/dev/null; then
4637 if test -s conftest.err; then
4638 ac_cpp_err=$ac_cxx_preproc_warn_flag
4639 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4640 else
4641 ac_cpp_err=
4643 else
4644 ac_cpp_err=yes
4646 if test -z "$ac_cpp_err"; then
4647 # Broken: success on invalid input.
4648 continue
4649 else
4650 echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4653 # Passes both tests.
4654 ac_preproc_ok=:
4655 break
4657 rm -f conftest.err conftest.$ac_ext
4659 done
4660 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4661 rm -f conftest.err conftest.$ac_ext
4662 if $ac_preproc_ok; then
4663 break
4666 done
4667 ac_cv_prog_CXXCPP=$CXXCPP
4670 CXXCPP=$ac_cv_prog_CXXCPP
4671 else
4672 ac_cv_prog_CXXCPP=$CXXCPP
4674 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4675 echo "${ECHO_T}$CXXCPP" >&6
4676 ac_preproc_ok=false
4677 for ac_cxx_preproc_warn_flag in '' yes
4679 # Use a header file that comes with gcc, so configuring glibc
4680 # with a fresh cross-compiler works.
4681 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4682 # <limits.h> exists even on freestanding compilers.
4683 # On the NeXT, cc -E runs the code through the compiler's parser,
4684 # not just through cpp. "Syntax error" is here to catch this case.
4685 cat >conftest.$ac_ext <<_ACEOF
4686 /* confdefs.h. */
4687 _ACEOF
4688 cat confdefs.h >>conftest.$ac_ext
4689 cat >>conftest.$ac_ext <<_ACEOF
4690 /* end confdefs.h. */
4691 #ifdef __STDC__
4692 # include <limits.h>
4693 #else
4694 # include <assert.h>
4695 #endif
4696 Syntax error
4697 _ACEOF
4698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4700 ac_status=$?
4701 grep -v '^ *+' conftest.er1 >conftest.err
4702 rm -f conftest.er1
4703 cat conftest.err >&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } >/dev/null; then
4706 if test -s conftest.err; then
4707 ac_cpp_err=$ac_cxx_preproc_warn_flag
4708 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4709 else
4710 ac_cpp_err=
4712 else
4713 ac_cpp_err=yes
4715 if test -z "$ac_cpp_err"; then
4717 else
4718 echo "$as_me: failed program was:" >&5
4719 sed 's/^/| /' conftest.$ac_ext >&5
4721 # Broken: fails on valid input.
4722 continue
4724 rm -f conftest.err conftest.$ac_ext
4726 # OK, works on sane cases. Now check whether non-existent headers
4727 # can be detected and how.
4728 cat >conftest.$ac_ext <<_ACEOF
4729 /* confdefs.h. */
4730 _ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h. */
4734 #include <ac_nonexistent.h>
4735 _ACEOF
4736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4737 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4738 ac_status=$?
4739 grep -v '^ *+' conftest.er1 >conftest.err
4740 rm -f conftest.er1
4741 cat conftest.err >&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); } >/dev/null; then
4744 if test -s conftest.err; then
4745 ac_cpp_err=$ac_cxx_preproc_warn_flag
4746 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4747 else
4748 ac_cpp_err=
4750 else
4751 ac_cpp_err=yes
4753 if test -z "$ac_cpp_err"; then
4754 # Broken: success on invalid input.
4755 continue
4756 else
4757 echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4760 # Passes both tests.
4761 ac_preproc_ok=:
4762 break
4764 rm -f conftest.err conftest.$ac_ext
4766 done
4767 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4768 rm -f conftest.err conftest.$ac_ext
4769 if $ac_preproc_ok; then
4771 else
4772 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4773 See \`config.log' for more details." >&5
4774 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4775 See \`config.log' for more details." >&2;}
4776 { (exit 1); exit 1; }; }
4779 ac_ext=c
4780 ac_cpp='$CPP $CPPFLAGS'
4781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4787 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
4788 lt_save_CC="$CC"
4789 lt_save_CFLAGS="$CFLAGS"
4790 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
4791 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4792 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4793 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4794 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4795 deplibs_check_method="$deplibs_check_method" \
4796 file_magic_cmd="$file_magic_cmd" \
4797 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4798 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
4799 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
4800 echo "$as_me: error: libtool tag configuration failed" >&2;}
4801 { (exit 1); exit 1; }; }
4802 CC="$lt_save_CC"
4803 CFLAGS="$lt_save_CFLAGS"
4805 # Redirect the config.log output again, so that the ltconfig log is not
4806 # clobbered by the next message.
4807 exec 5>>./config.log
4816 # Check whether --with-target-subdir or --without-target-subdir was given.
4817 if test "${with_target_subdir+set}" = set; then
4818 withval="$with_target_subdir"
4822 # Check whether --with-cross-host or --without-cross-host was given.
4823 if test "${with_cross_host+set}" = set; then
4824 withval="$with_cross_host"
4828 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
4829 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
4830 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4831 if test -z "$THREADS"; then
4832 THREADS=no
4834 echo "$as_me:$LINENO: result: $THREADS" >&5
4835 echo "${ECHO_T}$THREADS" >&6
4837 # Check whether --enable-parallel-mark or --disable-parallel-mark was given.
4838 if test "${enable_parallel_mark+set}" = set; then
4839 enableval="$enable_parallel_mark"
4840 case "$THREADS" in
4841 no | none | single)
4842 { { echo "$as_me:$LINENO: error: Parallel mark requires --enable-threads=x spec" >&5
4843 echo "$as_me: error: Parallel mark requires --enable-threads=x spec" >&2;}
4844 { (exit 1); exit 1; }; }
4846 esac
4850 INCLUDES="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
4851 THREADLIBS=
4852 case "$THREADS" in
4853 no | none | single)
4854 THREADS=none
4856 posix | pthreads)
4857 THREADS=posix
4858 THREADLIBS=-lpthread
4859 case "$host" in
4860 x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
4861 cat >>confdefs.h <<\_ACEOF
4862 #define GC_LINUX_THREADS 1
4863 _ACEOF
4865 cat >>confdefs.h <<\_ACEOF
4866 #define _REENTRANT 1
4867 _ACEOF
4869 if test "${enable_parallel_mark}" = yes; then
4870 cat >>confdefs.h <<\_ACEOF
4871 #define PARALLEL_MARK 1
4872 _ACEOF
4875 cat >>confdefs.h <<\_ACEOF
4876 #define THREAD_LOCAL_ALLOC 1
4877 _ACEOF
4880 *-*-linux*)
4881 cat >>confdefs.h <<\_ACEOF
4882 #define GC_LINUX_THREADS 1
4883 _ACEOF
4885 cat >>confdefs.h <<\_ACEOF
4886 #define _REENTRANT 1
4887 _ACEOF
4890 *-*-aix*)
4891 cat >>confdefs.h <<\_ACEOF
4892 #define GC_AIX_THREADS 1
4893 _ACEOF
4895 cat >>confdefs.h <<\_ACEOF
4896 #define _REENTRANT 1
4897 _ACEOF
4900 *-*-hpux*)
4901 { echo "$as_me:$LINENO: WARNING: \"Only HP/UX 11 threads are supported.\"" >&5
4902 echo "$as_me: WARNING: \"Only HP/UX 11 threads are supported.\"" >&2;}
4903 cat >>confdefs.h <<\_ACEOF
4904 #define GC_HPUX_THREADS 1
4905 _ACEOF
4907 cat >>confdefs.h <<\_ACEOF
4908 #define _POSIX_C_SOURCE 199506L
4909 _ACEOF
4911 if test "${enable_parallel_mark}" = yes; then
4912 cat >>confdefs.h <<\_ACEOF
4913 #define PARALLEL_MARK 1
4914 _ACEOF
4917 cat >>confdefs.h <<\_ACEOF
4918 #define THREAD_LOCAL_ALLOC 1
4919 _ACEOF
4921 THREADLIBS="-lpthread -lrt"
4923 *-*-freebsd*)
4924 { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
4925 echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
4926 cat >>confdefs.h <<\_ACEOF
4927 #define GC_FREEBSD_THREADS 1
4928 _ACEOF
4930 INCLUDES="$INCLUDES -pthread"
4931 THREADLIBS=-pthread
4933 *-*-solaris*)
4934 cat >>confdefs.h <<\_ACEOF
4935 #define GC_SOLARIS_THREADS 1
4936 _ACEOF
4938 cat >>confdefs.h <<\_ACEOF
4939 #define GC_SOLARIS_PTHREADS 1
4940 _ACEOF
4943 *-*-irix*)
4944 cat >>confdefs.h <<\_ACEOF
4945 #define GC_IRIX_THREADS 1
4946 _ACEOF
4949 *-*-cygwin*)
4950 cat >>confdefs.h <<\_ACEOF
4951 #define GC_WIN32_THREADS 1
4952 _ACEOF
4955 *-*-darwin*)
4956 cat >>confdefs.h <<\_ACEOF
4957 #define GC_DARWIN_THREADS 1
4958 _ACEOF
4960 cat >>confdefs.h <<\_ACEOF
4961 #define THREAD_LOCAL_ALLOC 1
4962 _ACEOF
4964 if test "${enable_parallel_mark}" = yes; then
4965 cat >>confdefs.h <<\_ACEOF
4966 #define PARALLEL_MARK 1
4967 _ACEOF
4971 *-*-osf*)
4972 cat >>confdefs.h <<\_ACEOF
4973 #define GC_OSF1_THREADS 1
4974 _ACEOF
4976 if test "${enable_parallel_mark}" = yes; then
4977 cat >>confdefs.h <<\_ACEOF
4978 #define PARALLEL_MARK 1
4979 _ACEOF
4981 cat >>confdefs.h <<\_ACEOF
4982 #define THREAD_LOCAL_ALLOC 1
4983 _ACEOF
4985 # May want to enable it in other cases, too.
4986 # Measurements havent yet been done.
4988 INCLUDES="$INCLUDES -pthread"
4989 THREADLIBS="-lpthread -lrt"
4991 esac
4993 win32)
4994 cat >>confdefs.h <<\_ACEOF
4995 #define GC_WIN32_THREADS 1
4996 _ACEOF
4999 dgux386)
5000 THREADS=dgux386
5001 echo "$as_me:$LINENO: result: $THREADLIBS" >&5
5002 echo "${ECHO_T}$THREADLIBS" >&6
5003 # Use pthread GCC switch
5004 THREADLIBS=-pthread
5005 if test "${enable_parallel_mark}" = yes; then
5006 cat >>confdefs.h <<\_ACEOF
5007 #define PARALLEL_MARK 1
5008 _ACEOF
5011 cat >>confdefs.h <<\_ACEOF
5012 #define THREAD_LOCAL_ALLOC 1
5013 _ACEOF
5015 cat >>confdefs.h <<\_ACEOF
5016 #define GC_DGUX386_THREADS 1
5017 _ACEOF
5019 cat >>confdefs.h <<\_ACEOF
5020 #define DGUX_THREADS 1
5021 _ACEOF
5023 # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
5024 INCLUDES="-pthread $INCLUDES"
5026 aix)
5027 THREADS=posix
5028 THREADLIBS=-lpthread
5029 cat >>confdefs.h <<\_ACEOF
5030 #define GC_AIX_THREADS 1
5031 _ACEOF
5033 cat >>confdefs.h <<\_ACEOF
5034 #define _REENTRANT 1
5035 _ACEOF
5038 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
5039 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
5040 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
5041 { (exit 1); exit 1; }; }
5044 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
5045 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
5046 { (exit 1); exit 1; }; }
5048 esac
5051 case "$host" in
5052 powerpc-*-darwin*)
5053 powerpc_darwin=true
5055 esac
5058 if test x$powerpc_darwin = xtrue; then
5059 POWERPC_DARWIN_TRUE=
5060 POWERPC_DARWIN_FALSE='#'
5061 else
5062 POWERPC_DARWIN_TRUE='#'
5063 POWERPC_DARWIN_FALSE=
5066 # We never want libdl on darwin. It is a fake libdl that just ends up making
5067 # dyld calls anyway
5068 case "$host" in
5069 *-*-darwin*) ;;
5071 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5072 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5073 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 else
5076 ac_check_lib_save_LIBS=$LIBS
5077 LIBS="-ldl $LIBS"
5078 if test x$gcc_no_link = xyes; then
5079 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5080 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5081 { (exit 1); exit 1; }; }
5083 cat >conftest.$ac_ext <<_ACEOF
5084 /* confdefs.h. */
5085 _ACEOF
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h. */
5090 /* Override any gcc2 internal prototype to avoid an error. */
5091 #ifdef __cplusplus
5092 extern "C"
5093 #endif
5094 /* We use char because int might match the return type of a gcc2
5095 builtin and then its argument prototype would still apply. */
5096 char dlopen ();
5098 main ()
5100 dlopen ();
5102 return 0;
5104 _ACEOF
5105 rm -f conftest.$ac_objext conftest$ac_exeext
5106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5107 (eval $ac_link) 2>conftest.er1
5108 ac_status=$?
5109 grep -v '^ *+' conftest.er1 >conftest.err
5110 rm -f conftest.er1
5111 cat conftest.err >&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); } &&
5114 { ac_try='test -z "$ac_c_werror_flag"
5115 || test ! -s conftest.err'
5116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117 (eval $ac_try) 2>&5
5118 ac_status=$?
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); }; } &&
5121 { ac_try='test -s conftest$ac_exeext'
5122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123 (eval $ac_try) 2>&5
5124 ac_status=$?
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); }; }; then
5127 ac_cv_lib_dl_dlopen=yes
5128 else
5129 echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5132 ac_cv_lib_dl_dlopen=no
5134 rm -f conftest.err conftest.$ac_objext \
5135 conftest$ac_exeext conftest.$ac_ext
5136 LIBS=$ac_check_lib_save_LIBS
5138 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5139 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5140 if test $ac_cv_lib_dl_dlopen = yes; then
5141 EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
5145 esac
5149 target_all=libgcjgc.la
5153 TARGET_ECOS="no"
5155 # Check whether --with-ecos or --without-ecos was given.
5156 if test "${with_ecos+set}" = set; then
5157 withval="$with_ecos"
5158 TARGET_ECOS="$with_ecos"
5162 addobjs=
5163 addlibs=
5164 addincludes=
5165 addtests=
5166 CXXINCLUDES=
5167 case "$TARGET_ECOS" in
5171 cat >>confdefs.h <<\_ACEOF
5172 #define ECOS 1
5173 _ACEOF
5175 CXXINCLUDES="-I${TARGET_ECOS}/include"
5176 addobjs="$addobjs ecos.lo"
5178 esac
5180 if test "${enable_cplusplus}" = yes; then
5181 addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
5182 addtests="$addtests test_cpp"
5187 if test "${enable_cplusplus}" = yes; then
5188 CPLUSPLUS_TRUE=
5189 CPLUSPLUS_FALSE='#'
5190 else
5191 CPLUSPLUS_TRUE='#'
5192 CPLUSPLUS_FALSE=
5200 # Configuration of shared libraries
5202 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
5203 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5204 # Check whether --enable-shared or --disable-shared was given.
5205 if test "${enable_shared+set}" = set; then
5206 enableval="$enable_shared"
5207 p=${PACKAGE-default}
5208 case $enableval in
5209 yes) enable_shared=yes ;;
5210 no) enable_shared=no ;;
5212 enable_shared=no
5213 # Look at the argument we got. We use all the common list separators.
5214 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5215 for pkg in $enableval; do
5216 if test "X$pkg" = "X$p"; then
5217 enable_shared=yes
5219 done
5220 IFS="$ac_save_ifs"
5222 esac
5223 else
5224 enable_shared=yes
5227 case "$host" in
5228 alpha-*-openbsd*)
5229 enable_shared=no
5230 echo "$as_me:$LINENO: result: no" >&5
5231 echo "${ECHO_T}no" >&6
5234 echo "$as_me:$LINENO: result: yes" >&5
5235 echo "${ECHO_T}yes" >&6
5237 esac
5239 # Configuration of machine-dependent code
5241 # We don't set NO_EXECUTE_PERMISSION by default because gcj (and
5242 # anything else that creates trampolines in gc-allocated memory)
5243 # always needs exec permission. The exceptions to this are IA-64 and
5244 # some variations of Power PC, where trampolines don't contain
5245 # executable code.
5247 echo "$as_me:$LINENO: checking which machine-dependent code should be used" >&5
5248 echo $ECHO_N "checking which machine-dependent code should be used... $ECHO_C" >&6
5249 machdep=
5250 case "$host" in
5251 alpha*-*-openbsd*)
5252 machdep="alpha_mach_dep.lo"
5253 if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
5254 { echo "$as_me:$LINENO: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
5255 echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
5258 alpha*-*-linux*)
5259 machdep="alpha_mach_dep.lo"
5261 i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
5262 cat >>confdefs.h <<\_ACEOF
5263 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
5264 _ACEOF
5267 mipstx39-*-elf*)
5268 machdep="mips_ultrix_mach_dep.lo"
5269 cat >>confdefs.h <<\_ACEOF
5270 #define STACKBASE __stackbase
5271 _ACEOF
5273 cat >>confdefs.h <<\_ACEOF
5274 #define DATASTART_IS_ETEXT 1
5275 _ACEOF
5278 mips-dec-ultrix*)
5279 machdep="mips_ultrix_mach-dep.lo"
5281 mips-nec-sysv*|mips-unknown-sysv*)
5283 mips*-*-linux*)
5285 mips-*-*)
5286 machdep="mips_sgi_mach_dep.lo"
5288 sparc-*-netbsd*)
5289 machdep="sparc_netbsd_mach_dep.lo"
5291 sparc-sun-solaris2.3)
5292 machdep="sparc_mach_dep.lo"
5293 cat >>confdefs.h <<\_ACEOF
5294 #define SUNOS53_SHARED_LIB 1
5295 _ACEOF
5298 sparc-sun-solaris2.*)
5299 machdep="sparc_mach_dep.lo"
5301 ia64-*-*)
5302 cat >>confdefs.h <<\_ACEOF
5303 #define NO_EXECUTE_PERMISSION 1
5304 _ACEOF
5306 machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
5308 esac
5309 if test x"$machdep" = x; then
5310 echo "$as_me:$LINENO: result: $machdep" >&5
5311 echo "${ECHO_T}$machdep" >&6
5312 machdep="mach_dep.lo"
5314 addobjs="$addobjs $machdep"
5327 # Check for AViiON Machines running DGUX
5329 echo "$as_me:$LINENO: checking if host is AViiON running DGUX" >&5
5330 echo $ECHO_N "checking if host is AViiON running DGUX... $ECHO_C" >&6
5331 ac_is_dgux=no
5332 ac_ext=c
5333 ac_cpp='$CPP $CPPFLAGS'
5334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5337 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5338 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5339 # On Suns, sometimes $CPP names a directory.
5340 if test -n "$CPP" && test -d "$CPP"; then
5341 CPP=
5343 if test -z "$CPP"; then
5344 if test "${ac_cv_prog_CPP+set}" = set; then
5345 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 else
5347 # Double quotes because CPP needs to be expanded
5348 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5350 ac_preproc_ok=false
5351 for ac_c_preproc_warn_flag in '' yes
5353 # Use a header file that comes with gcc, so configuring glibc
5354 # with a fresh cross-compiler works.
5355 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5356 # <limits.h> exists even on freestanding compilers.
5357 # On the NeXT, cc -E runs the code through the compiler's parser,
5358 # not just through cpp. "Syntax error" is here to catch this case.
5359 cat >conftest.$ac_ext <<_ACEOF
5360 /* confdefs.h. */
5361 _ACEOF
5362 cat confdefs.h >>conftest.$ac_ext
5363 cat >>conftest.$ac_ext <<_ACEOF
5364 /* end confdefs.h. */
5365 #ifdef __STDC__
5366 # include <limits.h>
5367 #else
5368 # include <assert.h>
5369 #endif
5370 Syntax error
5371 _ACEOF
5372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5374 ac_status=$?
5375 grep -v '^ *+' conftest.er1 >conftest.err
5376 rm -f conftest.er1
5377 cat conftest.err >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); } >/dev/null; then
5380 if test -s conftest.err; then
5381 ac_cpp_err=$ac_c_preproc_warn_flag
5382 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5383 else
5384 ac_cpp_err=
5386 else
5387 ac_cpp_err=yes
5389 if test -z "$ac_cpp_err"; then
5391 else
5392 echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5395 # Broken: fails on valid input.
5396 continue
5398 rm -f conftest.err conftest.$ac_ext
5400 # OK, works on sane cases. Now check whether non-existent headers
5401 # can be detected and how.
5402 cat >conftest.$ac_ext <<_ACEOF
5403 /* confdefs.h. */
5404 _ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h. */
5408 #include <ac_nonexistent.h>
5409 _ACEOF
5410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5412 ac_status=$?
5413 grep -v '^ *+' conftest.er1 >conftest.err
5414 rm -f conftest.er1
5415 cat conftest.err >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); } >/dev/null; then
5418 if test -s conftest.err; then
5419 ac_cpp_err=$ac_c_preproc_warn_flag
5420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5421 else
5422 ac_cpp_err=
5424 else
5425 ac_cpp_err=yes
5427 if test -z "$ac_cpp_err"; then
5428 # Broken: success on invalid input.
5429 continue
5430 else
5431 echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5434 # Passes both tests.
5435 ac_preproc_ok=:
5436 break
5438 rm -f conftest.err conftest.$ac_ext
5440 done
5441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5442 rm -f conftest.err conftest.$ac_ext
5443 if $ac_preproc_ok; then
5444 break
5447 done
5448 ac_cv_prog_CPP=$CPP
5451 CPP=$ac_cv_prog_CPP
5452 else
5453 ac_cv_prog_CPP=$CPP
5455 echo "$as_me:$LINENO: result: $CPP" >&5
5456 echo "${ECHO_T}$CPP" >&6
5457 ac_preproc_ok=false
5458 for ac_c_preproc_warn_flag in '' yes
5460 # Use a header file that comes with gcc, so configuring glibc
5461 # with a fresh cross-compiler works.
5462 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5463 # <limits.h> exists even on freestanding compilers.
5464 # On the NeXT, cc -E runs the code through the compiler's parser,
5465 # not just through cpp. "Syntax error" is here to catch this case.
5466 cat >conftest.$ac_ext <<_ACEOF
5467 /* confdefs.h. */
5468 _ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5472 #ifdef __STDC__
5473 # include <limits.h>
5474 #else
5475 # include <assert.h>
5476 #endif
5477 Syntax error
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
5498 else
5499 echo "$as_me: failed program was:" >&5
5500 sed 's/^/| /' conftest.$ac_ext >&5
5502 # Broken: fails on valid input.
5503 continue
5505 rm -f conftest.err conftest.$ac_ext
5507 # OK, works on sane cases. Now check whether non-existent headers
5508 # can be detected and how.
5509 cat >conftest.$ac_ext <<_ACEOF
5510 /* confdefs.h. */
5511 _ACEOF
5512 cat confdefs.h >>conftest.$ac_ext
5513 cat >>conftest.$ac_ext <<_ACEOF
5514 /* end confdefs.h. */
5515 #include <ac_nonexistent.h>
5516 _ACEOF
5517 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5519 ac_status=$?
5520 grep -v '^ *+' conftest.er1 >conftest.err
5521 rm -f conftest.er1
5522 cat conftest.err >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } >/dev/null; then
5525 if test -s conftest.err; then
5526 ac_cpp_err=$ac_c_preproc_warn_flag
5527 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5528 else
5529 ac_cpp_err=
5531 else
5532 ac_cpp_err=yes
5534 if test -z "$ac_cpp_err"; then
5535 # Broken: success on invalid input.
5536 continue
5537 else
5538 echo "$as_me: failed program was:" >&5
5539 sed 's/^/| /' conftest.$ac_ext >&5
5541 # Passes both tests.
5542 ac_preproc_ok=:
5543 break
5545 rm -f conftest.err conftest.$ac_ext
5547 done
5548 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5549 rm -f conftest.err conftest.$ac_ext
5550 if $ac_preproc_ok; then
5552 else
5553 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5554 See \`config.log' for more details." >&5
5555 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5556 See \`config.log' for more details." >&2;}
5557 { (exit 1); exit 1; }; }
5560 ac_ext=c
5561 ac_cpp='$CPP $CPPFLAGS'
5562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5567 echo "$as_me:$LINENO: checking for egrep" >&5
5568 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5569 if test "${ac_cv_prog_egrep+set}" = set; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5571 else
5572 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5573 then ac_cv_prog_egrep='grep -E'
5574 else ac_cv_prog_egrep='egrep'
5577 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5578 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5579 EGREP=$ac_cv_prog_egrep
5582 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5583 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5584 if test "${ac_cv_header_stdc+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587 cat >conftest.$ac_ext <<_ACEOF
5588 /* confdefs.h. */
5589 _ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h. */
5593 #include <stdlib.h>
5594 #include <stdarg.h>
5595 #include <string.h>
5596 #include <float.h>
5599 main ()
5603 return 0;
5605 _ACEOF
5606 rm -f conftest.$ac_objext
5607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5608 (eval $ac_compile) 2>conftest.er1
5609 ac_status=$?
5610 grep -v '^ *+' conftest.er1 >conftest.err
5611 rm -f conftest.er1
5612 cat conftest.err >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } &&
5615 { ac_try='test -z "$ac_c_werror_flag"
5616 || test ! -s conftest.err'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618 (eval $ac_try) 2>&5
5619 ac_status=$?
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; } &&
5622 { ac_try='test -s conftest.$ac_objext'
5623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5624 (eval $ac_try) 2>&5
5625 ac_status=$?
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); }; }; then
5628 ac_cv_header_stdc=yes
5629 else
5630 echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.$ac_ext >&5
5633 ac_cv_header_stdc=no
5635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5637 if test $ac_cv_header_stdc = yes; then
5638 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5639 cat >conftest.$ac_ext <<_ACEOF
5640 /* confdefs.h. */
5641 _ACEOF
5642 cat confdefs.h >>conftest.$ac_ext
5643 cat >>conftest.$ac_ext <<_ACEOF
5644 /* end confdefs.h. */
5645 #include <string.h>
5647 _ACEOF
5648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5649 $EGREP "memchr" >/dev/null 2>&1; then
5651 else
5652 ac_cv_header_stdc=no
5654 rm -f conftest*
5658 if test $ac_cv_header_stdc = yes; then
5659 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5660 cat >conftest.$ac_ext <<_ACEOF
5661 /* confdefs.h. */
5662 _ACEOF
5663 cat confdefs.h >>conftest.$ac_ext
5664 cat >>conftest.$ac_ext <<_ACEOF
5665 /* end confdefs.h. */
5666 #include <stdlib.h>
5668 _ACEOF
5669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5670 $EGREP "free" >/dev/null 2>&1; then
5672 else
5673 ac_cv_header_stdc=no
5675 rm -f conftest*
5679 if test $ac_cv_header_stdc = yes; then
5680 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5681 if test "$cross_compiling" = yes; then
5683 else
5684 cat >conftest.$ac_ext <<_ACEOF
5685 /* confdefs.h. */
5686 _ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5690 #include <ctype.h>
5691 #if ((' ' & 0x0FF) == 0x020)
5692 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5693 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5694 #else
5695 # define ISLOWER(c) \
5696 (('a' <= (c) && (c) <= 'i') \
5697 || ('j' <= (c) && (c) <= 'r') \
5698 || ('s' <= (c) && (c) <= 'z'))
5699 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5700 #endif
5702 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5704 main ()
5706 int i;
5707 for (i = 0; i < 256; i++)
5708 if (XOR (islower (i), ISLOWER (i))
5709 || toupper (i) != TOUPPER (i))
5710 exit(2);
5711 exit (0);
5713 _ACEOF
5714 rm -f conftest$ac_exeext
5715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5716 (eval $ac_link) 2>&5
5717 ac_status=$?
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721 (eval $ac_try) 2>&5
5722 ac_status=$?
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); }; }; then
5726 else
5727 echo "$as_me: program exited with status $ac_status" >&5
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5731 ( exit $ac_status )
5732 ac_cv_header_stdc=no
5734 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5738 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5739 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5740 if test $ac_cv_header_stdc = yes; then
5742 cat >>confdefs.h <<\_ACEOF
5743 #define STDC_HEADERS 1
5744 _ACEOF
5748 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5758 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5759 inttypes.h stdint.h unistd.h
5761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5762 echo "$as_me:$LINENO: checking for $ac_header" >&5
5763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5766 else
5767 cat >conftest.$ac_ext <<_ACEOF
5768 /* confdefs.h. */
5769 _ACEOF
5770 cat confdefs.h >>conftest.$ac_ext
5771 cat >>conftest.$ac_ext <<_ACEOF
5772 /* end confdefs.h. */
5773 $ac_includes_default
5775 #include <$ac_header>
5776 _ACEOF
5777 rm -f conftest.$ac_objext
5778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5779 (eval $ac_compile) 2>conftest.er1
5780 ac_status=$?
5781 grep -v '^ *+' conftest.er1 >conftest.err
5782 rm -f conftest.er1
5783 cat conftest.err >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } &&
5786 { ac_try='test -z "$ac_c_werror_flag"
5787 || test ! -s conftest.err'
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); }; } &&
5793 { ac_try='test -s conftest.$ac_objext'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 (eval $ac_try) 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; }; then
5799 eval "$as_ac_Header=yes"
5800 else
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5804 eval "$as_ac_Header=no"
5806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5811 cat >>confdefs.h <<_ACEOF
5812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5813 _ACEOF
5817 done
5820 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
5821 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
5822 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
5823 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
5826 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
5827 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
5828 else
5829 # Is the header compilable?
5830 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
5831 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
5832 cat >conftest.$ac_ext <<_ACEOF
5833 /* confdefs.h. */
5834 _ACEOF
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h. */
5838 $ac_includes_default
5839 #include <sys/dg_sys_info.h>
5840 _ACEOF
5841 rm -f conftest.$ac_objext
5842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5843 (eval $ac_compile) 2>conftest.er1
5844 ac_status=$?
5845 grep -v '^ *+' conftest.er1 >conftest.err
5846 rm -f conftest.er1
5847 cat conftest.err >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } &&
5850 { ac_try='test -z "$ac_c_werror_flag"
5851 || test ! -s conftest.err'
5852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5853 (eval $ac_try) 2>&5
5854 ac_status=$?
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; } &&
5857 { ac_try='test -s conftest.$ac_objext'
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859 (eval $ac_try) 2>&5
5860 ac_status=$?
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; }; then
5863 ac_header_compiler=yes
5864 else
5865 echo "$as_me: failed program was:" >&5
5866 sed 's/^/| /' conftest.$ac_ext >&5
5868 ac_header_compiler=no
5870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5871 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5872 echo "${ECHO_T}$ac_header_compiler" >&6
5874 # Is the header present?
5875 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
5876 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
5877 cat >conftest.$ac_ext <<_ACEOF
5878 /* confdefs.h. */
5879 _ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5883 #include <sys/dg_sys_info.h>
5884 _ACEOF
5885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5887 ac_status=$?
5888 grep -v '^ *+' conftest.er1 >conftest.err
5889 rm -f conftest.er1
5890 cat conftest.err >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } >/dev/null; then
5893 if test -s conftest.err; then
5894 ac_cpp_err=$ac_c_preproc_warn_flag
5895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5896 else
5897 ac_cpp_err=
5899 else
5900 ac_cpp_err=yes
5902 if test -z "$ac_cpp_err"; then
5903 ac_header_preproc=yes
5904 else
5905 echo "$as_me: failed program was:" >&5
5906 sed 's/^/| /' conftest.$ac_ext >&5
5908 ac_header_preproc=no
5910 rm -f conftest.err conftest.$ac_ext
5911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5912 echo "${ECHO_T}$ac_header_preproc" >&6
5914 # So? What about this header?
5915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5916 yes:no: )
5917 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
5918 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5919 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
5920 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
5921 ac_header_preproc=yes
5923 no:yes:* )
5924 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
5925 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
5926 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
5927 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
5928 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
5929 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
5930 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
5931 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
5932 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
5933 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
5934 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
5935 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
5937 cat <<\_ASBOX
5938 ## ------------------------------------------ ##
5939 ## Report this to the AC_PACKAGE_NAME lists. ##
5940 ## ------------------------------------------ ##
5941 _ASBOX
5943 sed "s/^/$as_me: WARNING: /" >&2
5945 esac
5946 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
5947 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
5948 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 else
5951 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
5953 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
5954 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
5957 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
5958 ac_is_dgux=yes;
5963 echo "$as_me:$LINENO: result: $ac_is_dgux" >&5
5964 echo "${ECHO_T}$ac_is_dgux" >&6
5965 ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
5966 if test $ac_is_dgux = yes; then
5967 if test "$enable_full_debug" = "yes"; then
5968 CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
5969 CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
5970 else
5971 CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
5972 CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
5979 # Check whether --with-target-subdir or --without-target-subdir was given.
5980 if test "${with_target_subdir+set}" = set; then
5981 withval="$with_target_subdir"
5985 # Check whether --with-cross-host or --without-cross-host was given.
5986 if test "${with_cross_host+set}" = set; then
5987 withval="$with_cross_host"
5991 echo "$as_me:$LINENO: checking whether Solaris gcc optimization fix is necessary" >&5
5992 echo $ECHO_N "checking whether Solaris gcc optimization fix is necessary... $ECHO_C" >&6
5993 case "$host" in
5994 sparc-sun-solaris2*|*aix*)
5995 if test "$GCC" = yes; then
5996 echo "$as_me:$LINENO: result: yes" >&5
5997 echo "${ECHO_T}yes" >&6
5998 new_CFLAGS=
5999 for i in $CFLAGS; do
6000 case "$i" in
6001 -O*)
6004 new_CFLAGS="$new_CFLAGS $i"
6006 esac
6007 done
6008 CFLAGS="$new_CFLAGS"
6009 else
6010 echo "$as_me:$LINENO: result: no" >&5
6011 echo "${ECHO_T}no" >&6
6014 *) echo "$as_me:$LINENO: result: no" >&5
6015 echo "${ECHO_T}no" >&6 ;;
6016 esac
6018 MY_CFLAGS="$CFLAGS"
6021 cat >>confdefs.h <<\_ACEOF
6022 #define SILENT 1
6023 _ACEOF
6025 cat >>confdefs.h <<\_ACEOF
6026 #define NO_SIGNALS 1
6027 _ACEOF
6029 cat >>confdefs.h <<\_ACEOF
6030 #define ALL_INTERIOR_POINTERS 1
6031 _ACEOF
6034 cat >>confdefs.h <<\_ACEOF
6035 #define JAVA_FINALIZATION 1
6036 _ACEOF
6038 cat >>confdefs.h <<\_ACEOF
6039 #define GC_GCJ_SUPPORT 1
6040 _ACEOF
6042 cat >>confdefs.h <<\_ACEOF
6043 #define ATOMIC_UNCOLLECTABLE 1
6044 _ACEOF
6047 if test -n "${with_cross_host}"; then
6048 cat >>confdefs.h <<\_ACEOF
6049 #define NO_SIGSET 1
6050 _ACEOF
6052 cat >>confdefs.h <<\_ACEOF
6053 #define NO_DEBUGGING 1
6054 _ACEOF
6058 # Check whether --enable-full-debug or --disable-full-debug was given.
6059 if test "${enable_full_debug+set}" = set; then
6060 enableval="$enable_full_debug"
6061 if test "$enable_full_debug" = "yes"; then
6062 { echo "$as_me:$LINENO: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&5
6063 echo "$as_me: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
6064 cat >>confdefs.h <<\_ACEOF
6065 #define KEEP_BACK_PTRS 1
6066 _ACEOF
6068 cat >>confdefs.h <<\_ACEOF
6069 #define DBG_HDRS_ALL 1
6070 _ACEOF
6072 case $host in
6073 ia64-*-linux* )
6074 cat >>confdefs.h <<\_ACEOF
6075 #define MAKE_BACK_GRAPH 1
6076 _ACEOF
6079 x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
6080 cat >>confdefs.h <<\_ACEOF
6081 #define MAKE_BACK_GRAPH 1
6082 _ACEOF
6084 { echo "$as_me:$LINENO: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
6085 echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
6086 cat >>confdefs.h <<\_ACEOF
6087 #define SAVE_CALL_COUNT 8
6088 _ACEOF
6091 i345686-*-dgux*)
6092 cat >>confdefs.h <<\_ACEOF
6093 #define MAKE_BACK_GRAPH 1
6094 _ACEOF
6097 esac
6101 if test -n "$with_cross_host" &&
6102 test x"$with_cross_host" != x"no"; then
6103 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
6104 toolexeclibdir='$(toolexecdir)/lib'
6105 else
6106 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
6107 toolexeclibdir='$(libdir)'
6109 multi_os_directory=`$CC -print-multi-os-directory`
6110 case $multi_os_directory in
6111 .) ;; # Avoid trailing /.
6112 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
6113 esac
6117 if test "${multilib}" = "yes"; then
6118 multilib_arg="--enable-multilib"
6119 else
6120 multilib_arg=
6123 ac_config_files="$ac_config_files Makefile include/Makefile"
6124 ac_config_commands="$ac_config_commands default"
6125 cat >confcache <<\_ACEOF
6126 # This file is a shell script that caches the results of configure
6127 # tests run on this system so they can be shared between configure
6128 # scripts and configure runs, see configure's option --config-cache.
6129 # It is not useful on other systems. If it contains results you don't
6130 # want to keep, you may remove or edit it.
6132 # config.status only pays attention to the cache file if you give it
6133 # the --recheck option to rerun configure.
6135 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6136 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6137 # following values.
6139 _ACEOF
6141 # The following way of writing the cache mishandles newlines in values,
6142 # but we know of no workaround that is simple, portable, and efficient.
6143 # So, don't put newlines in cache variables' values.
6144 # Ultrix sh set writes to stderr and can't be redirected directly,
6145 # and sets the high bit in the cache file unless we assign to the vars.
6147 (set) 2>&1 |
6148 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6149 *ac_space=\ *)
6150 # `set' does not quote correctly, so add quotes (double-quote
6151 # substitution turns \\\\ into \\, and sed turns \\ into \).
6152 sed -n \
6153 "s/'/'\\\\''/g;
6154 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6157 # `set' quotes correctly as required by POSIX, so do not add quotes.
6158 sed -n \
6159 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6161 esac;
6163 sed '
6164 t clear
6165 : clear
6166 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6167 t end
6168 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6169 : end' >>confcache
6170 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6171 if test -w $cache_file; then
6172 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6173 cat confcache >$cache_file
6174 else
6175 echo "not updating unwritable cache $cache_file"
6178 rm -f confcache
6180 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6181 # Let make expand exec_prefix.
6182 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6184 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6185 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6186 # trailing colons and then remove the whole line if VPATH becomes empty
6187 # (actually we leave an empty line to preserve line numbers).
6188 if test "x$srcdir" = x.; then
6189 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6190 s/:*\$(srcdir):*/:/;
6191 s/:*\${srcdir}:*/:/;
6192 s/:*@srcdir@:*/:/;
6193 s/^\([^=]*=[ ]*\):*/\1/;
6194 s/:*$//;
6195 s/^[^=]*=[ ]*$//;
6199 # Transform confdefs.h into DEFS.
6200 # Protect against shell expansion while executing Makefile rules.
6201 # Protect against Makefile macro expansion.
6203 # If the first sed substitution is executed (which looks for macros that
6204 # take arguments), then we branch to the quote section. Otherwise,
6205 # look for a macro that doesn't take arguments.
6206 cat >confdef2opt.sed <<\_ACEOF
6207 t clear
6208 : clear
6209 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
6210 t quote
6211 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
6212 t quote
6214 : quote
6215 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
6216 s,\[,\\&,g
6217 s,\],\\&,g
6218 s,\$,$$,g
6220 _ACEOF
6221 # We use echo to avoid assuming a particular line-breaking character.
6222 # The extra dot is to prevent the shell from consuming trailing
6223 # line-breaks from the sub-command output. A line-break within
6224 # single-quotes doesn't work because, if this script is created in a
6225 # platform that uses two characters for line-breaks (e.g., DOS), tr
6226 # would break.
6227 ac_LF_and_DOT=`echo; echo .`
6228 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
6229 rm -f confdef2opt.sed
6232 ac_libobjs=
6233 ac_ltlibobjs=
6234 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6235 # 1. Remove the extension, and $U if already installed.
6236 ac_i=`echo "$ac_i" |
6237 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6238 # 2. Add them.
6239 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6240 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6241 done
6242 LIBOBJS=$ac_libobjs
6244 LTLIBOBJS=$ac_ltlibobjs
6248 : ${CONFIG_STATUS=./config.status}
6249 ac_clean_files_save=$ac_clean_files
6250 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6251 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6252 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6253 cat >$CONFIG_STATUS <<_ACEOF
6254 #! $SHELL
6255 # Generated by $as_me.
6256 # Run this file to recreate the current configuration.
6257 # Compiler output produced by configure, useful for debugging
6258 # configure, is in config.log if it exists.
6260 debug=false
6261 ac_cs_recheck=false
6262 ac_cs_silent=false
6263 SHELL=\${CONFIG_SHELL-$SHELL}
6264 _ACEOF
6266 cat >>$CONFIG_STATUS <<\_ACEOF
6267 ## --------------------- ##
6268 ## M4sh Initialization. ##
6269 ## --------------------- ##
6271 # Be Bourne compatible
6272 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6273 emulate sh
6274 NULLCMD=:
6275 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6276 # is contrary to our usage. Disable this feature.
6277 alias -g '${1+"$@"}'='"$@"'
6278 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6279 set -o posix
6281 DUALCASE=1; export DUALCASE # for MKS sh
6283 # Support unset when possible.
6284 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6285 as_unset=unset
6286 else
6287 as_unset=false
6291 # Work around bugs in pre-3.0 UWIN ksh.
6292 $as_unset ENV MAIL MAILPATH
6293 PS1='$ '
6294 PS2='> '
6295 PS4='+ '
6297 # NLS nuisances.
6298 for as_var in \
6299 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6300 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6301 LC_TELEPHONE LC_TIME
6303 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6304 eval $as_var=C; export $as_var
6305 else
6306 $as_unset $as_var
6308 done
6310 # Required to use basename.
6311 if expr a : '\(a\)' >/dev/null 2>&1; then
6312 as_expr=expr
6313 else
6314 as_expr=false
6317 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6318 as_basename=basename
6319 else
6320 as_basename=false
6324 # Name of the executable.
6325 as_me=`$as_basename "$0" ||
6326 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6327 X"$0" : 'X\(//\)$' \| \
6328 X"$0" : 'X\(/\)$' \| \
6329 . : '\(.\)' 2>/dev/null ||
6330 echo X/"$0" |
6331 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6332 /^X\/\(\/\/\)$/{ s//\1/; q; }
6333 /^X\/\(\/\).*/{ s//\1/; q; }
6334 s/.*/./; q'`
6337 # PATH needs CR, and LINENO needs CR and PATH.
6338 # Avoid depending upon Character Ranges.
6339 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6340 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6341 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6342 as_cr_digits='0123456789'
6343 as_cr_alnum=$as_cr_Letters$as_cr_digits
6345 # The user is always right.
6346 if test "${PATH_SEPARATOR+set}" != set; then
6347 echo "#! /bin/sh" >conf$$.sh
6348 echo "exit 0" >>conf$$.sh
6349 chmod +x conf$$.sh
6350 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6351 PATH_SEPARATOR=';'
6352 else
6353 PATH_SEPARATOR=:
6355 rm -f conf$$.sh
6359 as_lineno_1=$LINENO
6360 as_lineno_2=$LINENO
6361 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6362 test "x$as_lineno_1" != "x$as_lineno_2" &&
6363 test "x$as_lineno_3" = "x$as_lineno_2" || {
6364 # Find who we are. Look in the path if we contain no path at all
6365 # relative or not.
6366 case $0 in
6367 *[\\/]* ) as_myself=$0 ;;
6368 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 for as_dir in $PATH
6371 IFS=$as_save_IFS
6372 test -z "$as_dir" && as_dir=.
6373 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6374 done
6377 esac
6378 # We did not find ourselves, most probably we were run as `sh COMMAND'
6379 # in which case we are not to be found in the path.
6380 if test "x$as_myself" = x; then
6381 as_myself=$0
6383 if test ! -f "$as_myself"; then
6384 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6385 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6386 { (exit 1); exit 1; }; }
6388 case $CONFIG_SHELL in
6390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6393 IFS=$as_save_IFS
6394 test -z "$as_dir" && as_dir=.
6395 for as_base in sh bash ksh sh5; do
6396 case $as_dir in
6398 if ("$as_dir/$as_base" -c '
6399 as_lineno_1=$LINENO
6400 as_lineno_2=$LINENO
6401 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6402 test "x$as_lineno_1" != "x$as_lineno_2" &&
6403 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6404 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6405 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6406 CONFIG_SHELL=$as_dir/$as_base
6407 export CONFIG_SHELL
6408 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6409 fi;;
6410 esac
6411 done
6412 done
6414 esac
6416 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6417 # uniformly replaced by the line number. The first 'sed' inserts a
6418 # line-number line before each line; the second 'sed' does the real
6419 # work. The second script uses 'N' to pair each line-number line
6420 # with the numbered line, and appends trailing '-' during
6421 # substitution so that $LINENO is not a special case at line end.
6422 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6423 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6424 sed '=' <$as_myself |
6425 sed '
6427 s,$,-,
6428 : loop
6429 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6430 t loop
6431 s,-$,,
6432 s,^['$as_cr_digits']*\n,,
6433 ' >$as_me.lineno &&
6434 chmod +x $as_me.lineno ||
6435 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6436 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6437 { (exit 1); exit 1; }; }
6439 # Don't try to exec as it changes $[0], causing all sort of problems
6440 # (the dirname of $[0] is not the place where we might find the
6441 # original and so on. Autoconf is especially sensible to this).
6442 . ./$as_me.lineno
6443 # Exit status is that of the last command.
6444 exit
6448 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6449 *c*,-n*) ECHO_N= ECHO_C='
6450 ' ECHO_T=' ' ;;
6451 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6452 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6453 esac
6455 if expr a : '\(a\)' >/dev/null 2>&1; then
6456 as_expr=expr
6457 else
6458 as_expr=false
6461 rm -f conf$$ conf$$.exe conf$$.file
6462 echo >conf$$.file
6463 if ln -s conf$$.file conf$$ 2>/dev/null; then
6464 # We could just check for DJGPP; but this test a) works b) is more generic
6465 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6466 if test -f conf$$.exe; then
6467 # Don't use ln at all; we don't have any links
6468 as_ln_s='cp -p'
6469 else
6470 as_ln_s='ln -s'
6472 elif ln conf$$.file conf$$ 2>/dev/null; then
6473 as_ln_s=ln
6474 else
6475 as_ln_s='cp -p'
6477 rm -f conf$$ conf$$.exe conf$$.file
6479 if mkdir -p . 2>/dev/null; then
6480 as_mkdir_p=:
6481 else
6482 test -d ./-p && rmdir ./-p
6483 as_mkdir_p=false
6486 as_executable_p="test -f"
6488 # Sed expression to map a string onto a valid CPP name.
6489 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6491 # Sed expression to map a string onto a valid variable name.
6492 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6495 # IFS
6496 # We need space, tab and new line, in precisely that order.
6497 as_nl='
6499 IFS=" $as_nl"
6501 # CDPATH.
6502 $as_unset CDPATH
6504 exec 6>&1
6506 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6507 # report actual input values of CONFIG_FILES etc. instead of their
6508 # values after options handling. Logging --version etc. is OK.
6509 exec 5>>config.log
6511 echo
6512 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6513 ## Running $as_me. ##
6514 _ASBOX
6515 } >&5
6516 cat >&5 <<_CSEOF
6518 This file was extended by $as_me, which was
6519 generated by GNU Autoconf 2.59. Invocation command line was
6521 CONFIG_FILES = $CONFIG_FILES
6522 CONFIG_HEADERS = $CONFIG_HEADERS
6523 CONFIG_LINKS = $CONFIG_LINKS
6524 CONFIG_COMMANDS = $CONFIG_COMMANDS
6525 $ $0 $@
6527 _CSEOF
6528 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6529 echo >&5
6530 _ACEOF
6532 # Files that config.status was made for.
6533 if test -n "$ac_config_files"; then
6534 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6537 if test -n "$ac_config_headers"; then
6538 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6541 if test -n "$ac_config_links"; then
6542 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6545 if test -n "$ac_config_commands"; then
6546 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6549 cat >>$CONFIG_STATUS <<\_ACEOF
6551 ac_cs_usage="\
6552 \`$as_me' instantiates files from templates according to the
6553 current configuration.
6555 Usage: $0 [OPTIONS] [FILE]...
6557 -h, --help print this help, then exit
6558 -V, --version print version number, then exit
6559 -q, --quiet do not print progress messages
6560 -d, --debug don't remove temporary files
6561 --recheck update $as_me by reconfiguring in the same conditions
6562 --file=FILE[:TEMPLATE]
6563 instantiate the configuration file FILE
6565 Configuration files:
6566 $config_files
6568 Configuration commands:
6569 $config_commands
6571 Report bugs to <bug-autoconf@gnu.org>."
6572 _ACEOF
6574 cat >>$CONFIG_STATUS <<_ACEOF
6575 ac_cs_version="\\
6576 config.status
6577 configured by $0, generated by GNU Autoconf 2.59,
6578 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6580 Copyright (C) 2003 Free Software Foundation, Inc.
6581 This config.status script is free software; the Free Software Foundation
6582 gives unlimited permission to copy, distribute and modify it."
6583 srcdir=$srcdir
6584 INSTALL="$INSTALL"
6585 _ACEOF
6587 cat >>$CONFIG_STATUS <<\_ACEOF
6588 # If no file are specified by the user, then we need to provide default
6589 # value. By we need to know if files were specified by the user.
6590 ac_need_defaults=:
6591 while test $# != 0
6593 case $1 in
6594 --*=*)
6595 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6596 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6597 ac_shift=:
6600 ac_option=$1
6601 ac_optarg=$2
6602 ac_shift=shift
6604 *) # This is not an option, so the user has probably given explicit
6605 # arguments.
6606 ac_option=$1
6607 ac_need_defaults=false;;
6608 esac
6610 case $ac_option in
6611 # Handling of the options.
6612 _ACEOF
6613 cat >>$CONFIG_STATUS <<\_ACEOF
6614 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6615 ac_cs_recheck=: ;;
6616 --version | --vers* | -V )
6617 echo "$ac_cs_version"; exit 0 ;;
6618 --he | --h)
6619 # Conflict between --help and --header
6620 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6621 Try \`$0 --help' for more information." >&5
6622 echo "$as_me: error: ambiguous option: $1
6623 Try \`$0 --help' for more information." >&2;}
6624 { (exit 1); exit 1; }; };;
6625 --help | --hel | -h )
6626 echo "$ac_cs_usage"; exit 0 ;;
6627 --debug | --d* | -d )
6628 debug=: ;;
6629 --file | --fil | --fi | --f )
6630 $ac_shift
6631 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6632 ac_need_defaults=false;;
6633 --header | --heade | --head | --hea )
6634 $ac_shift
6635 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6636 ac_need_defaults=false;;
6637 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6638 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6639 ac_cs_silent=: ;;
6641 # This is an error.
6642 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6643 Try \`$0 --help' for more information." >&5
6644 echo "$as_me: error: unrecognized option: $1
6645 Try \`$0 --help' for more information." >&2;}
6646 { (exit 1); exit 1; }; } ;;
6648 *) ac_config_targets="$ac_config_targets $1" ;;
6650 esac
6651 shift
6652 done
6654 ac_configure_extra_args=
6656 if $ac_cs_silent; then
6657 exec 6>/dev/null
6658 ac_configure_extra_args="$ac_configure_extra_args --silent"
6661 _ACEOF
6662 cat >>$CONFIG_STATUS <<_ACEOF
6663 if \$ac_cs_recheck; then
6664 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6665 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6668 _ACEOF
6670 cat >>$CONFIG_STATUS <<_ACEOF
6672 # INIT-COMMANDS section.
6675 srcdir=${srcdir}
6676 host=${host}
6677 target=${target}
6678 with_multisubdir=${with_multisubdir}
6679 ac_configure_args="${multilib_arg} ${ac_configure_args}"
6680 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
6681 gc_basedir=${gc_basedir}
6682 CC="${CC}"
6683 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
6684 DEFS="$DEFS"
6685 INCLUDES="$INCLUDES"
6688 _ACEOF
6692 cat >>$CONFIG_STATUS <<\_ACEOF
6693 for ac_config_target in $ac_config_targets
6695 case "$ac_config_target" in
6696 # Handling of arguments.
6697 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6698 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
6699 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6700 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6701 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6702 { (exit 1); exit 1; }; };;
6703 esac
6704 done
6706 # If the user did not use the arguments to specify the items to instantiate,
6707 # then the envvar interface is used. Set only those that are not.
6708 # We use the long form for the default assignment because of an extremely
6709 # bizarre bug on SunOS 4.1.3.
6710 if $ac_need_defaults; then
6711 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6712 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6715 # Have a temporary directory for convenience. Make it in the build tree
6716 # simply because there is no reason to put it here, and in addition,
6717 # creating and moving files from /tmp can sometimes cause problems.
6718 # Create a temporary directory, and hook for its removal unless debugging.
6719 $debug ||
6721 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6722 trap '{ (exit 1); exit 1; }' 1 2 13 15
6725 # Create a (secure) tmp directory for tmp files.
6728 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6729 test -n "$tmp" && test -d "$tmp"
6730 } ||
6732 tmp=./confstat$$-$RANDOM
6733 (umask 077 && mkdir $tmp)
6734 } ||
6736 echo "$me: cannot create a temporary directory in ." >&2
6737 { (exit 1); exit 1; }
6740 _ACEOF
6742 cat >>$CONFIG_STATUS <<_ACEOF
6745 # CONFIG_FILES section.
6748 # No need to generate the scripts if there are no CONFIG_FILES.
6749 # This happens for instance when ./config.status config.h
6750 if test -n "\$CONFIG_FILES"; then
6751 # Protect against being on the right side of a sed subst in config.status.
6752 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6753 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6754 s,@SHELL@,$SHELL,;t t
6755 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6756 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6757 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6758 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6759 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6760 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6761 s,@exec_prefix@,$exec_prefix,;t t
6762 s,@prefix@,$prefix,;t t
6763 s,@program_transform_name@,$program_transform_name,;t t
6764 s,@bindir@,$bindir,;t t
6765 s,@sbindir@,$sbindir,;t t
6766 s,@libexecdir@,$libexecdir,;t t
6767 s,@datadir@,$datadir,;t t
6768 s,@sysconfdir@,$sysconfdir,;t t
6769 s,@sharedstatedir@,$sharedstatedir,;t t
6770 s,@localstatedir@,$localstatedir,;t t
6771 s,@libdir@,$libdir,;t t
6772 s,@includedir@,$includedir,;t t
6773 s,@oldincludedir@,$oldincludedir,;t t
6774 s,@infodir@,$infodir,;t t
6775 s,@mandir@,$mandir,;t t
6776 s,@build_alias@,$build_alias,;t t
6777 s,@host_alias@,$host_alias,;t t
6778 s,@target_alias@,$target_alias,;t t
6779 s,@DEFS@,$DEFS,;t t
6780 s,@ECHO_C@,$ECHO_C,;t t
6781 s,@ECHO_N@,$ECHO_N,;t t
6782 s,@ECHO_T@,$ECHO_T,;t t
6783 s,@LIBS@,$LIBS,;t t
6784 s,@gc_basedir@,$gc_basedir,;t t
6785 s,@build@,$build,;t t
6786 s,@build_cpu@,$build_cpu,;t t
6787 s,@build_vendor@,$build_vendor,;t t
6788 s,@build_os@,$build_os,;t t
6789 s,@host@,$host,;t t
6790 s,@host_cpu@,$host_cpu,;t t
6791 s,@host_vendor@,$host_vendor,;t t
6792 s,@host_os@,$host_os,;t t
6793 s,@target@,$target,;t t
6794 s,@target_cpu@,$target_cpu,;t t
6795 s,@target_vendor@,$target_vendor,;t t
6796 s,@target_os@,$target_os,;t t
6797 s,@mkinstalldirs@,$mkinstalldirs,;t t
6798 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6799 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6800 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6801 s,@PACKAGE@,$PACKAGE,;t t
6802 s,@VERSION@,$VERSION,;t t
6803 s,@ACLOCAL@,$ACLOCAL,;t t
6804 s,@AUTOCONF@,$AUTOCONF,;t t
6805 s,@AUTOMAKE@,$AUTOMAKE,;t t
6806 s,@AUTOHEADER@,$AUTOHEADER,;t t
6807 s,@MAKEINFO@,$MAKEINFO,;t t
6808 s,@SET_MAKE@,$SET_MAKE,;t t
6809 s,@CC@,$CC,;t t
6810 s,@ac_ct_CC@,$ac_ct_CC,;t t
6811 s,@EXEEXT@,$EXEEXT,;t t
6812 s,@OBJEXT@,$OBJEXT,;t t
6813 s,@CXX@,$CXX,;t t
6814 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6815 s,@CFLAGS@,$CFLAGS,;t t
6816 s,@CXXFLAGS@,$CXXFLAGS,;t t
6817 s,@CCAS@,$CCAS,;t t
6818 s,@CCASFLAGS@,$CCASFLAGS,;t t
6819 s,@AS@,$AS,;t t
6820 s,@ac_ct_AS@,$ac_ct_AS,;t t
6821 s,@AR@,$AR,;t t
6822 s,@ac_ct_AR@,$ac_ct_AR,;t t
6823 s,@RANLIB@,$RANLIB,;t t
6824 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6825 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6826 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6827 s,@MAINT@,$MAINT,;t t
6828 s,@GC_CFLAGS@,$GC_CFLAGS,;t t
6829 s,@LN_S@,$LN_S,;t t
6830 s,@STRIP@,$STRIP,;t t
6831 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6832 s,@LIBTOOL@,$LIBTOOL,;t t
6833 s,@CXXCPP@,$CXXCPP,;t t
6834 s,@CPPFLAGS@,$CPPFLAGS,;t t
6835 s,@THREADLIBS@,$THREADLIBS,;t t
6836 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
6837 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
6838 s,@EXTRA_TEST_LIBS@,$EXTRA_TEST_LIBS,;t t
6839 s,@target_all@,$target_all,;t t
6840 s,@target_noncanonical@,$target_noncanonical,;t t
6841 s,@CPLUSPLUS_TRUE@,$CPLUSPLUS_TRUE,;t t
6842 s,@CPLUSPLUS_FALSE@,$CPLUSPLUS_FALSE,;t t
6843 s,@INCLUDES@,$INCLUDES,;t t
6844 s,@CXXINCLUDES@,$CXXINCLUDES,;t t
6845 s,@addobjs@,$addobjs,;t t
6846 s,@addincludes@,$addincludes,;t t
6847 s,@addlibs@,$addlibs,;t t
6848 s,@addtests@,$addtests,;t t
6849 s,@CPP@,$CPP,;t t
6850 s,@EGREP@,$EGREP,;t t
6851 s,@MY_CFLAGS@,$MY_CFLAGS,;t t
6852 s,@toolexecdir@,$toolexecdir,;t t
6853 s,@toolexeclibdir@,$toolexeclibdir,;t t
6854 s,@LIBOBJS@,$LIBOBJS,;t t
6855 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6856 CEOF
6858 _ACEOF
6860 cat >>$CONFIG_STATUS <<\_ACEOF
6861 # Split the substitutions into bite-sized pieces for seds with
6862 # small command number limits, like on Digital OSF/1 and HP-UX.
6863 ac_max_sed_lines=48
6864 ac_sed_frag=1 # Number of current file.
6865 ac_beg=1 # First line for current file.
6866 ac_end=$ac_max_sed_lines # Line after last line for current file.
6867 ac_more_lines=:
6868 ac_sed_cmds=
6869 while $ac_more_lines; do
6870 if test $ac_beg -gt 1; then
6871 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6872 else
6873 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6875 if test ! -s $tmp/subs.frag; then
6876 ac_more_lines=false
6877 else
6878 # The purpose of the label and of the branching condition is to
6879 # speed up the sed processing (if there are no `@' at all, there
6880 # is no need to browse any of the substitutions).
6881 # These are the two extra sed commands mentioned above.
6882 (echo ':t
6883 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6884 if test -z "$ac_sed_cmds"; then
6885 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6886 else
6887 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6889 ac_sed_frag=`expr $ac_sed_frag + 1`
6890 ac_beg=$ac_end
6891 ac_end=`expr $ac_end + $ac_max_sed_lines`
6893 done
6894 if test -z "$ac_sed_cmds"; then
6895 ac_sed_cmds=cat
6897 fi # test -n "$CONFIG_FILES"
6899 _ACEOF
6900 cat >>$CONFIG_STATUS <<\_ACEOF
6901 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6902 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6903 case $ac_file in
6904 - | *:- | *:-:* ) # input from stdin
6905 cat >$tmp/stdin
6906 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6907 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6908 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6909 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6910 * ) ac_file_in=$ac_file.in ;;
6911 esac
6913 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6914 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6915 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6916 X"$ac_file" : 'X\(//\)[^/]' \| \
6917 X"$ac_file" : 'X\(//\)$' \| \
6918 X"$ac_file" : 'X\(/\)' \| \
6919 . : '\(.\)' 2>/dev/null ||
6920 echo X"$ac_file" |
6921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6922 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6923 /^X\(\/\/\)$/{ s//\1/; q; }
6924 /^X\(\/\).*/{ s//\1/; q; }
6925 s/.*/./; q'`
6926 { if $as_mkdir_p; then
6927 mkdir -p "$ac_dir"
6928 else
6929 as_dir="$ac_dir"
6930 as_dirs=
6931 while test ! -d "$as_dir"; do
6932 as_dirs="$as_dir $as_dirs"
6933 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6934 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6935 X"$as_dir" : 'X\(//\)[^/]' \| \
6936 X"$as_dir" : 'X\(//\)$' \| \
6937 X"$as_dir" : 'X\(/\)' \| \
6938 . : '\(.\)' 2>/dev/null ||
6939 echo X"$as_dir" |
6940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6941 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6942 /^X\(\/\/\)$/{ s//\1/; q; }
6943 /^X\(\/\).*/{ s//\1/; q; }
6944 s/.*/./; q'`
6945 done
6946 test ! -n "$as_dirs" || mkdir $as_dirs
6947 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6948 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6949 { (exit 1); exit 1; }; }; }
6951 ac_builddir=.
6953 if test "$ac_dir" != .; then
6954 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6955 # A "../" for each directory in $ac_dir_suffix.
6956 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6957 else
6958 ac_dir_suffix= ac_top_builddir=
6961 case $srcdir in
6962 .) # No --srcdir option. We are building in place.
6963 ac_srcdir=.
6964 if test -z "$ac_top_builddir"; then
6965 ac_top_srcdir=.
6966 else
6967 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6968 fi ;;
6969 [\\/]* | ?:[\\/]* ) # Absolute path.
6970 ac_srcdir=$srcdir$ac_dir_suffix;
6971 ac_top_srcdir=$srcdir ;;
6972 *) # Relative path.
6973 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6974 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6975 esac
6977 # Do not use `cd foo && pwd` to compute absolute paths, because
6978 # the directories may not exist.
6979 case `pwd` in
6980 .) ac_abs_builddir="$ac_dir";;
6982 case "$ac_dir" in
6983 .) ac_abs_builddir=`pwd`;;
6984 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6985 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6986 esac;;
6987 esac
6988 case $ac_abs_builddir in
6989 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6991 case ${ac_top_builddir}. in
6992 .) ac_abs_top_builddir=$ac_abs_builddir;;
6993 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6994 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6995 esac;;
6996 esac
6997 case $ac_abs_builddir in
6998 .) ac_abs_srcdir=$ac_srcdir;;
7000 case $ac_srcdir in
7001 .) ac_abs_srcdir=$ac_abs_builddir;;
7002 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7003 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7004 esac;;
7005 esac
7006 case $ac_abs_builddir in
7007 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7009 case $ac_top_srcdir in
7010 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7011 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7012 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7013 esac;;
7014 esac
7017 case $INSTALL in
7018 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7019 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7020 esac
7022 if test x"$ac_file" != x-; then
7023 { echo "$as_me:$LINENO: creating $ac_file" >&5
7024 echo "$as_me: creating $ac_file" >&6;}
7025 rm -f "$ac_file"
7027 # Let's still pretend it is `configure' which instantiates (i.e., don't
7028 # use $as_me), people would be surprised to read:
7029 # /* config.h. Generated by config.status. */
7030 if test x"$ac_file" = x-; then
7031 configure_input=
7032 else
7033 configure_input="$ac_file. "
7035 configure_input=$configure_input"Generated from `echo $ac_file_in |
7036 sed 's,.*/,,'` by configure."
7038 # First look for the input files in the build tree, otherwise in the
7039 # src tree.
7040 ac_file_inputs=`IFS=:
7041 for f in $ac_file_in; do
7042 case $f in
7043 -) echo $tmp/stdin ;;
7044 [\\/$]*)
7045 # Absolute (can't be DOS-style, as IFS=:)
7046 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7047 echo "$as_me: error: cannot find input file: $f" >&2;}
7048 { (exit 1); exit 1; }; }
7049 echo "$f";;
7050 *) # Relative
7051 if test -f "$f"; then
7052 # Build tree
7053 echo "$f"
7054 elif test -f "$srcdir/$f"; then
7055 # Source tree
7056 echo "$srcdir/$f"
7057 else
7058 # /dev/null tree
7059 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7060 echo "$as_me: error: cannot find input file: $f" >&2;}
7061 { (exit 1); exit 1; }; }
7062 fi;;
7063 esac
7064 done` || { (exit 1); exit 1; }
7065 _ACEOF
7066 cat >>$CONFIG_STATUS <<_ACEOF
7067 sed "$ac_vpsub
7068 $extrasub
7069 _ACEOF
7070 cat >>$CONFIG_STATUS <<\_ACEOF
7072 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7073 s,@configure_input@,$configure_input,;t t
7074 s,@srcdir@,$ac_srcdir,;t t
7075 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7076 s,@top_srcdir@,$ac_top_srcdir,;t t
7077 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7078 s,@builddir@,$ac_builddir,;t t
7079 s,@abs_builddir@,$ac_abs_builddir,;t t
7080 s,@top_builddir@,$ac_top_builddir,;t t
7081 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7082 s,@INSTALL@,$ac_INSTALL,;t t
7083 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7084 rm -f $tmp/stdin
7085 if test x"$ac_file" != x-; then
7086 mv $tmp/out $ac_file
7087 else
7088 cat $tmp/out
7089 rm -f $tmp/out
7092 done
7093 _ACEOF
7094 cat >>$CONFIG_STATUS <<\_ACEOF
7097 # CONFIG_COMMANDS section.
7099 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7100 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7101 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7102 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7103 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7104 X"$ac_dest" : 'X\(//\)[^/]' \| \
7105 X"$ac_dest" : 'X\(//\)$' \| \
7106 X"$ac_dest" : 'X\(/\)' \| \
7107 . : '\(.\)' 2>/dev/null ||
7108 echo X"$ac_dest" |
7109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7110 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7111 /^X\(\/\/\)$/{ s//\1/; q; }
7112 /^X\(\/\).*/{ s//\1/; q; }
7113 s/.*/./; q'`
7114 { if $as_mkdir_p; then
7115 mkdir -p "$ac_dir"
7116 else
7117 as_dir="$ac_dir"
7118 as_dirs=
7119 while test ! -d "$as_dir"; do
7120 as_dirs="$as_dir $as_dirs"
7121 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7122 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7123 X"$as_dir" : 'X\(//\)[^/]' \| \
7124 X"$as_dir" : 'X\(//\)$' \| \
7125 X"$as_dir" : 'X\(/\)' \| \
7126 . : '\(.\)' 2>/dev/null ||
7127 echo X"$as_dir" |
7128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7129 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7130 /^X\(\/\/\)$/{ s//\1/; q; }
7131 /^X\(\/\).*/{ s//\1/; q; }
7132 s/.*/./; q'`
7133 done
7134 test ! -n "$as_dirs" || mkdir $as_dirs
7135 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7136 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7137 { (exit 1); exit 1; }; }; }
7139 ac_builddir=.
7141 if test "$ac_dir" != .; then
7142 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7143 # A "../" for each directory in $ac_dir_suffix.
7144 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7145 else
7146 ac_dir_suffix= ac_top_builddir=
7149 case $srcdir in
7150 .) # No --srcdir option. We are building in place.
7151 ac_srcdir=.
7152 if test -z "$ac_top_builddir"; then
7153 ac_top_srcdir=.
7154 else
7155 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7156 fi ;;
7157 [\\/]* | ?:[\\/]* ) # Absolute path.
7158 ac_srcdir=$srcdir$ac_dir_suffix;
7159 ac_top_srcdir=$srcdir ;;
7160 *) # Relative path.
7161 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7162 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7163 esac
7165 # Do not use `cd foo && pwd` to compute absolute paths, because
7166 # the directories may not exist.
7167 case `pwd` in
7168 .) ac_abs_builddir="$ac_dir";;
7170 case "$ac_dir" in
7171 .) ac_abs_builddir=`pwd`;;
7172 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7173 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7174 esac;;
7175 esac
7176 case $ac_abs_builddir in
7177 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7179 case ${ac_top_builddir}. in
7180 .) ac_abs_top_builddir=$ac_abs_builddir;;
7181 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7182 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7183 esac;;
7184 esac
7185 case $ac_abs_builddir in
7186 .) ac_abs_srcdir=$ac_srcdir;;
7188 case $ac_srcdir in
7189 .) ac_abs_srcdir=$ac_abs_builddir;;
7190 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7191 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7192 esac;;
7193 esac
7194 case $ac_abs_builddir in
7195 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7197 case $ac_top_srcdir in
7198 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7199 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7200 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7201 esac;;
7202 esac
7205 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7206 echo "$as_me: executing $ac_dest commands" >&6;}
7207 case $ac_dest in
7208 default )
7209 echo "$INCLUDES $DEFS" > boehm-cflags
7211 if test -n "$CONFIG_FILES"; then
7212 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
7213 ac_file=Makefile . ${gc_basedir}/../config-ml.in
7214 fi ;;
7215 esac
7216 done
7217 _ACEOF
7219 cat >>$CONFIG_STATUS <<\_ACEOF
7221 { (exit 0); exit 0; }
7222 _ACEOF
7223 chmod +x $CONFIG_STATUS
7224 ac_clean_files=$ac_clean_files_save
7227 # configure is writing to config.log, and then calls config.status.
7228 # config.status does its own redirection, appending to config.log.
7229 # Unfortunately, on DOS this fails, as config.log is still kept open
7230 # by configure, so config.status won't be able to write to it; its
7231 # output is simply discarded. So we exec the FD to /dev/null,
7232 # effectively closing config.log, so it can be properly (re)opened and
7233 # appended to by config.status. When coming back to configure, we
7234 # need to make the FD available again.
7235 if test "$no_create" != yes; then
7236 ac_cs_success=:
7237 ac_config_status_args=
7238 test "$silent" = yes &&
7239 ac_config_status_args="$ac_config_status_args --quiet"
7240 exec 5>/dev/null
7241 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7242 exec 5>>config.log
7243 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7244 # would make configure fail if this is the last instruction.
7245 $ac_cs_success || { (exit 1); exit 1; }