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
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
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
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
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 \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; 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
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
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
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
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).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
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'"
235 # We need space, tab and new line, in precisely that order.
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`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
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.
274 ac_unique_file="move-if-change"
275 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 build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs CC_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES OBJCOPY OBJDUMP CFLAGS_FOR_BUILD CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS'
276 ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
278 # Initialize some variables set by options.
280 ac_init_version=false
281 # The variables have the same names as the options, with
282 # dashes changed to underlines.
290 program_transform_name=s,x,x,
298 # Installation directory options.
299 # These are left unexpanded so users can "make install exec_prefix=/foo"
300 # and all the variables that are supposed to be based on exec_prefix
301 # by default will actually change.
302 # Use braces instead of parens because sh, perl, etc. also accept them.
303 bindir='${exec_prefix}/bin'
304 sbindir='${exec_prefix}/sbin'
305 libexecdir='${exec_prefix}/libexec'
306 datadir='${prefix}/share'
307 sysconfdir='${prefix}/etc'
308 sharedstatedir='${prefix}/com'
309 localstatedir='${prefix}/var'
310 libdir='${exec_prefix}/lib'
311 includedir='${prefix}/include'
312 oldincludedir='/usr/include'
313 infodir='${prefix}/info'
314 mandir='${prefix}/man'
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328 # Accept the important Cygnus configure options, so we can diagnose typos.
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
337 -build | --build | --buil | --bui | --bu)
338 ac_prev=build_alias ;;
339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340 build_alias=$ac_optarg ;;
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
347 cache_file=$ac_optarg ;;
350 cache_file=config.cache ;;
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356 datadir=$ac_optarg ;;
358 -disable-* | --disable-*)
359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360 # Reject names that are not valid shell variable names.
361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
367 -enable-* | --enable-*)
368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369 # Reject names that are not valid shell variable names.
370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
378 eval "enable_$ac_feature='$ac_optarg'" ;;
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
387 exec_prefix=$ac_optarg ;;
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
393 -help | --help | --hel | --he | -h)
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
400 -host | --host | --hos | --ho)
401 ac_prev=host_alias ;;
402 -host=* | --host=* | --hos=* | --ho=*)
403 host_alias=$ac_optarg ;;
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
410 includedir=$ac_optarg ;;
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415 infodir=$ac_optarg ;;
417 -libdir | --libdir | --libdi | --libd)
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
427 libexecdir=$ac_optarg ;;
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
436 localstatedir=$ac_optarg ;;
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
444 # Obsolete; use --without-fp.
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448 | --no-cr | --no-c | -n)
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
462 oldincludedir=$ac_optarg ;;
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
474 program_prefix=$ac_optarg ;;
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
481 program_suffix=$ac_optarg ;;
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
498 program_transform_name=$ac_optarg ;;
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508 sbindir=$ac_optarg ;;
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519 sharedstatedir=$ac_optarg ;;
521 -site | --site | --sit)
523 -site=* | --site=* | --sit=*)
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
536 sysconfdir=$ac_optarg ;;
538 -target | --target | --targe | --targ | --tar | --ta | --t)
539 ac_prev=target_alias ;;
540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541 target_alias=$ac_optarg ;;
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
546 -version | --version | --versio | --versi | --vers | -V)
550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
555 ac_package=`echo $ac_package| sed 's/-/_/g'`
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
560 eval "with_$ac_package='$ac_optarg'" ;;
562 -without-* | --without-*)
563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
572 # Obsolete; use --with-x.
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
580 x_includes=$ac_optarg ;;
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
587 x_libraries=$ac_optarg ;;
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590 Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
615 if test -n "$ac_prev"; then
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
621 # Be sure to have absolute paths.
622 for ac_var in exec_prefix prefix
624 eval ac_val=$`echo $ac_var`
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
632 # Be sure to have absolute paths.
633 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
636 eval ac_val=$`echo $ac_var`
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
644 # There might be people who depend on the old broken behavior: `$host'
645 # used to hold the argument of --host etc.
646 # FIXME: To remove some day.
651 # FIXME: To remove some day.
652 if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
663 test -n "$host_alias" && ac_tool_prefix=$host_alias-
665 test "$silent" = yes && exec 6>/dev/null
668 # Find the source files, if location was not specified.
669 if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
673 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
685 if test ! -r $srcdir/$ac_unique_file; then
689 ac_srcdir_defaulted=no
691 if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
700 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702 { (exit 1); exit 1; }; }
703 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704 ac_env_build_alias_set=${build_alias+set}
705 ac_env_build_alias_value=$build_alias
706 ac_cv_env_build_alias_set=${build_alias+set}
707 ac_cv_env_build_alias_value=$build_alias
708 ac_env_host_alias_set=${host_alias+set}
709 ac_env_host_alias_value=$host_alias
710 ac_cv_env_host_alias_set=${host_alias+set}
711 ac_cv_env_host_alias_value=$host_alias
712 ac_env_target_alias_set=${target_alias+set}
713 ac_env_target_alias_value=$target_alias
714 ac_cv_env_target_alias_set=${target_alias+set}
715 ac_cv_env_target_alias_value=$target_alias
716 ac_env_CC_set=${CC+set}
718 ac_cv_env_CC_set=${CC+set}
719 ac_cv_env_CC_value=$CC
720 ac_env_CFLAGS_set=${CFLAGS+set}
721 ac_env_CFLAGS_value=$CFLAGS
722 ac_cv_env_CFLAGS_set=${CFLAGS+set}
723 ac_cv_env_CFLAGS_value=$CFLAGS
724 ac_env_LDFLAGS_set=${LDFLAGS+set}
725 ac_env_LDFLAGS_value=$LDFLAGS
726 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727 ac_cv_env_LDFLAGS_value=$LDFLAGS
728 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729 ac_env_CPPFLAGS_value=$CPPFLAGS
730 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732 ac_env_CXX_set=${CXX+set}
733 ac_env_CXX_value=$CXX
734 ac_cv_env_CXX_set=${CXX+set}
735 ac_cv_env_CXX_value=$CXX
736 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
737 ac_env_CXXFLAGS_value=$CXXFLAGS
738 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
739 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
740 ac_env_AR_set=${AR+set}
742 ac_cv_env_AR_set=${AR+set}
743 ac_cv_env_AR_value=$AR
744 ac_env_AS_set=${AS+set}
746 ac_cv_env_AS_set=${AS+set}
747 ac_cv_env_AS_value=$AS
748 ac_env_DLLTOOL_set=${DLLTOOL+set}
749 ac_env_DLLTOOL_value=$DLLTOOL
750 ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
751 ac_cv_env_DLLTOOL_value=$DLLTOOL
752 ac_env_LD_set=${LD+set}
754 ac_cv_env_LD_set=${LD+set}
755 ac_cv_env_LD_value=$LD
756 ac_env_LIPO_set=${LIPO+set}
757 ac_env_LIPO_value=$LIPO
758 ac_cv_env_LIPO_set=${LIPO+set}
759 ac_cv_env_LIPO_value=$LIPO
760 ac_env_NM_set=${NM+set}
762 ac_cv_env_NM_set=${NM+set}
763 ac_cv_env_NM_value=$NM
764 ac_env_RANLIB_set=${RANLIB+set}
765 ac_env_RANLIB_value=$RANLIB
766 ac_cv_env_RANLIB_set=${RANLIB+set}
767 ac_cv_env_RANLIB_value=$RANLIB
768 ac_env_STRIP_set=${STRIP+set}
769 ac_env_STRIP_value=$STRIP
770 ac_cv_env_STRIP_set=${STRIP+set}
771 ac_cv_env_STRIP_value=$STRIP
772 ac_env_WINDRES_set=${WINDRES+set}
773 ac_env_WINDRES_value=$WINDRES
774 ac_cv_env_WINDRES_set=${WINDRES+set}
775 ac_cv_env_WINDRES_value=$WINDRES
776 ac_env_OBJCOPY_set=${OBJCOPY+set}
777 ac_env_OBJCOPY_value=$OBJCOPY
778 ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
779 ac_cv_env_OBJCOPY_value=$OBJCOPY
780 ac_env_OBJDUMP_set=${OBJDUMP+set}
781 ac_env_OBJDUMP_value=$OBJDUMP
782 ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
783 ac_cv_env_OBJDUMP_value=$OBJDUMP
784 ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
785 ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
786 ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
787 ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
788 ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
789 ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
790 ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
791 ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
792 ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
793 ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
794 ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
795 ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
796 ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
797 ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
798 ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
799 ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
800 ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
801 ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
802 ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
803 ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
804 ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
805 ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
806 ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
807 ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
808 ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
809 ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
810 ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
811 ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
812 ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
813 ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
814 ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
815 ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
816 ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
817 ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
818 ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
819 ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
820 ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
821 ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
822 ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
823 ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
824 ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
825 ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
826 ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
827 ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
828 ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
829 ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
830 ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
831 ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
832 ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
833 ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
834 ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
835 ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
836 ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
837 ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
838 ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
839 ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
840 ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
841 ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
842 ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
843 ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
846 # Report the --help message.
848 if test "$ac_init_help" = "long"; then
849 # Omit some internal or obsolete options to make the list less imposing.
850 # This message is too long to be a string in the A/UX 3.1 sh.
852 \`configure' configures this package to adapt to many kinds of systems.
854 Usage: $0 [OPTION]... [VAR=VALUE]...
856 To assign environment variables (e.g., CC, CFLAGS...), specify them as
857 VAR=VALUE. See below for descriptions of some of the useful variables.
859 Defaults for the options are specified in brackets.
862 -h, --help display this help and exit
863 --help=short display options specific to this package
864 --help=recursive display the short help of all the included packages
865 -V, --version display version information and exit
866 -q, --quiet, --silent do not print \`checking...' messages
867 --cache-file=FILE cache test results in FILE [disabled]
868 -C, --config-cache alias for \`--cache-file=config.cache'
869 -n, --no-create do not create output files
870 --srcdir=DIR find the sources in DIR [configure dir or \`..']
875 Installation directories:
876 --prefix=PREFIX install architecture-independent files in PREFIX
878 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
881 By default, \`make install' will install all the files in
882 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
883 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
884 for instance \`--prefix=\$HOME'.
886 For better control, use the options below.
888 Fine tuning of the installation directories:
889 --bindir=DIR user executables [EPREFIX/bin]
890 --sbindir=DIR system admin executables [EPREFIX/sbin]
891 --libexecdir=DIR program executables [EPREFIX/libexec]
892 --datadir=DIR read-only architecture-independent data [PREFIX/share]
893 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
894 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
895 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
896 --libdir=DIR object code libraries [EPREFIX/lib]
897 --includedir=DIR C header files [PREFIX/include]
898 --oldincludedir=DIR C header files for non-gcc [/usr/include]
899 --infodir=DIR info documentation [PREFIX/info]
900 --mandir=DIR man documentation [PREFIX/man]
906 --program-prefix=PREFIX prepend PREFIX to installed program names
907 --program-suffix=SUFFIX append SUFFIX to installed program names
908 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
911 --build=BUILD configure for building on BUILD [guessed]
912 --host=HOST cross-compile to build programs to run on HOST [BUILD]
913 --target=TARGET configure for building compilers for TARGET [HOST]
917 if test -n "$ac_init_help"; then
922 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
923 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
924 --enable-libada Builds libada directory
925 --enable-libssp Builds libssp directory
926 --enable-stage1-languages=all choose additional languages to build during
927 stage1. Mostly useful for compiler development.
928 --enable-objc-gc enable the use of Boehm's garbage collector with
929 the GNU Objective-C runtime.
930 --enable-bootstrap Enable bootstrapping yes if native build
931 --enable-serial-{host,target,build}-configure
932 Force sequential configuration of
933 sub-packages for the host, target or build
934 machine, or all sub-packages
935 --enable-maintainer-mode enable make rules and dependencies not useful
936 (and sometimes confusing) to the casual installer
937 --enable-stage1-checking=all choose additional checking for stage1
939 --enable-werror enable -Werror in bootstrap stage2 and later
942 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
943 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
944 --with-build-libsubdir=DIR Directory where to find libraries for build system
945 --with-mpfr-dir=PATH This option has been REMOVED
946 --with-mpfr=PATH Specify prefix directory for installed MPFR package
947 Equivalent to --with-mpfr-include=PATH/include
948 plus --with-mpfr-lib=PATH/lib
949 --with-mpfr-include=PATH
950 Specify directory for installed MPFR include files
951 --with-mpfr-lib=PATH Specify the directory for the installed MPFR library
952 --with-gmp-dir=PATH This option has been REMOVED
953 --with-gmp=PATH Specify prefix directory for the installed GMP package
954 Equivalent to --with-gmp-include=PATH/include
955 plus --with-gmp-lib=PATH/lib
956 --with-gmp-include=PATH Specify directory for installed GMP include files
957 --with-gmp-lib=PATH Specify the directory for the installed GMP library
958 --with-build-sysroot=sysroot
959 use sysroot as the system root during the build
960 --with-build-time-tools=path
961 use given path to find target tools during the build
962 --with-datarootdir Use datarootdir as the data root directory.
963 --with-docdir Install documentation in this directory.
964 --with-pdfdir Install pdf in this directory.
965 --with-htmldir Install html in this directory.
967 Some influential environment variables:
968 CC C compiler command
969 CFLAGS C compiler flags
970 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
971 nonstandard directory <lib dir>
972 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
973 headers in a nonstandard directory <include dir>
974 CXX C++ compiler command
975 CXXFLAGS C++ compiler flags
978 DLLTOOL DLLTOOL for the host
980 LIPO LIPO for the host
982 RANLIB RANLIB for the host
983 STRIP STRIP for the host
984 WINDRES WINDRES for the host
985 OBJCOPY OBJCOPY for the host
986 OBJDUMP OBJDUMP for the host
996 GFORTRAN for the target
1002 DLLTOOL for the target
1010 OBJDUMP for the target
1012 RANLIB for the target
1014 STRIP for the target
1016 WINDRES for the target
1018 Use these variables to override the choices made by `configure' or to help
1019 it to find libraries and programs with nonstandard names/locations.
1024 if test "$ac_init_help" = "recursive"; then
1025 # If there are subdirs, report their specific --help.
1027 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1028 test -d $ac_dir || continue
1031 if test "$ac_dir" != .; then
1032 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1033 # A "../" for each directory in $ac_dir_suffix.
1034 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1036 ac_dir_suffix= ac_top_builddir=
1040 .) # No --srcdir option. We are building in place.
1042 if test -z "$ac_top_builddir"; then
1045 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1047 [\\/]* | ?:[\\/]* ) # Absolute path.
1048 ac_srcdir=$srcdir$ac_dir_suffix;
1049 ac_top_srcdir=$srcdir ;;
1051 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1052 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1055 # Do not use `cd foo && pwd` to compute absolute paths, because
1056 # the directories may not exist.
1058 .) ac_abs_builddir="$ac_dir";;
1061 .) ac_abs_builddir=`pwd`;;
1062 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1063 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1066 case $ac_abs_builddir in
1067 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1069 case ${ac_top_builddir}. in
1070 .) ac_abs_top_builddir=$ac_abs_builddir;;
1071 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1072 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1075 case $ac_abs_builddir in
1076 .) ac_abs_srcdir=$ac_srcdir;;
1079 .) ac_abs_srcdir=$ac_abs_builddir;;
1080 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1081 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1084 case $ac_abs_builddir in
1085 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1087 case $ac_top_srcdir in
1088 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1089 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1090 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1095 # Check for guested configure; otherwise get Cygnus style configure.
1096 if test -f $ac_srcdir/configure.gnu; then
1098 $SHELL $ac_srcdir/configure.gnu --help=recursive
1099 elif test -f $ac_srcdir/configure; then
1101 $SHELL $ac_srcdir/configure --help=recursive
1102 elif test -f $ac_srcdir/configure.ac ||
1103 test -f $ac_srcdir/configure.in; then
1105 $ac_configure --help
1107 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1113 test -n "$ac_init_help" && exit 0
1114 if $ac_init_version; then
1117 Copyright (C) 2003 Free Software Foundation, Inc.
1118 This configure script is free software; the Free Software Foundation
1119 gives unlimited permission to copy, distribute and modify it.
1125 This file contains any messages produced by compilers while
1126 running configure, to aid debugging if configure makes a mistake.
1128 It was created by $as_me, which was
1129 generated by GNU Autoconf 2.59. Invocation command line was
1140 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1141 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1142 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1143 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1144 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1146 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1147 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1149 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1150 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1151 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1152 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1153 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1154 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1155 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1163 test -z "$as_dir" && as_dir=.
1164 echo "PATH: $as_dir"
1179 # Keep a trace of the command line.
1180 # Strip out --no-create and --no-recursion so they do not pile up.
1181 # Strip out --silent because we don't want to record it for future runs.
1182 # Also quote any args containing shell meta-characters.
1183 # Make two passes to allow for proper duplicate-argument suppression.
1188 ac_must_keep_next=false
1194 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1195 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1196 | -silent | --silent | --silen | --sile | --sil)
1198 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1199 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1202 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1204 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1205 if test $ac_must_keep_next = true; then
1206 ac_must_keep_next=false # Got value, back to normal.
1209 *=* | --config-cache | -C | -disable-* | --disable-* \
1210 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1211 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1212 | -with-* | --with-* | -without-* | --without-* | --x)
1213 case "$ac_configure_args0 " in
1214 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1217 -* ) ac_must_keep_next=true ;;
1220 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1221 # Get rid of the leading space.
1227 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1228 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1230 # When interrupted or exit'd, cleanup temporary files, and complete
1231 # config.log. We remove comments because anyway the quotes in there
1232 # would cause problems or look ugly.
1233 # WARNING: Be sure not to use single quotes in there, as some shells,
1234 # such as our DU 5.0 friend, will then `close' the trap.
1235 trap 'exit_status=$?
1236 # Save into config.log some information that might help in debugging.
1241 ## ---------------- ##
1242 ## Cache variables. ##
1243 ## ---------------- ##
1246 # The following way of writing the cache mishandles newlines in values,
1249 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1252 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1253 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1257 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1264 ## ----------------- ##
1265 ## Output variables. ##
1266 ## ----------------- ##
1269 for ac_var in $ac_subst_vars
1271 eval ac_val=$`echo $ac_var`
1272 echo "$ac_var='"'"'$ac_val'"'"'"
1276 if test -n "$ac_subst_files"; then
1283 for ac_var in $ac_subst_files
1285 eval ac_val=$`echo $ac_var`
1286 echo "$ac_var='"'"'$ac_val'"'"'"
1291 if test -s confdefs.h; then
1298 sed "/^$/d" confdefs.h | sort
1301 test "$ac_signal" != 0 &&
1302 echo "$as_me: caught signal $ac_signal"
1303 echo "$as_me: exit $exit_status"
1305 rm -f core *.core &&
1306 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1309 for ac_signal in 1 2 13 15; do
1310 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1314 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1315 rm -rf conftest* confdefs.h
1316 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1319 # Predefined preprocessor variables.
1321 cat >>confdefs.h <<_ACEOF
1322 #define PACKAGE_NAME "$PACKAGE_NAME"
1326 cat >>confdefs.h <<_ACEOF
1327 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1331 cat >>confdefs.h <<_ACEOF
1332 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1336 cat >>confdefs.h <<_ACEOF
1337 #define PACKAGE_STRING "$PACKAGE_STRING"
1341 cat >>confdefs.h <<_ACEOF
1342 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1346 # Let the site file select an alternate cache file if it wants to.
1347 # Prefer explicitly selected file to automatically selected ones.
1348 if test -z "$CONFIG_SITE"; then
1349 if test "x$prefix" != xNONE; then
1350 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1352 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1355 for ac_site_file in $CONFIG_SITE; do
1356 if test -r "$ac_site_file"; then
1357 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1358 echo "$as_me: loading site script $ac_site_file" >&6;}
1359 sed 's/^/| /' "$ac_site_file" >&5
1364 if test -r "$cache_file"; then
1365 # Some versions of bash will fail to source /dev/null (special
1366 # files actually), so we avoid doing that.
1367 if test -f "$cache_file"; then
1368 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1369 echo "$as_me: loading cache $cache_file" >&6;}
1371 [\\/]* | ?:[\\/]* ) . $cache_file;;
1372 *) . ./$cache_file;;
1376 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1377 echo "$as_me: creating cache $cache_file" >&6;}
1381 # Check that the precious variables saved in the cache have kept the same
1383 ac_cache_corrupted=false
1384 for ac_var in `(set) 2>&1 |
1385 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1386 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1387 eval ac_new_set=\$ac_env_${ac_var}_set
1388 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1389 eval ac_new_val="\$ac_env_${ac_var}_value"
1390 case $ac_old_set,$ac_new_set in
1392 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1393 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1394 ac_cache_corrupted=: ;;
1396 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1397 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1398 ac_cache_corrupted=: ;;
1401 if test "x$ac_old_val" != "x$ac_new_val"; then
1402 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1403 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1404 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1405 echo "$as_me: former value: $ac_old_val" >&2;}
1406 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1407 echo "$as_me: current value: $ac_new_val" >&2;}
1408 ac_cache_corrupted=:
1411 # Pass precious variables to config.status.
1412 if test "$ac_new_set" = set; then
1414 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1415 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1416 *) ac_arg=$ac_var=$ac_new_val ;;
1418 case " $ac_configure_args " in
1419 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1420 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1424 if $ac_cache_corrupted; then
1425 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1426 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1427 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1428 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1429 { (exit 1); exit 1; }; }
1433 ac_cpp='$CPP $CPPFLAGS'
1434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458 # Find the build, host, and target systems.
1460 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1461 if test -f $ac_dir/install-sh; then
1463 ac_install_sh="$ac_aux_dir/install-sh -c"
1465 elif test -f $ac_dir/install.sh; then
1467 ac_install_sh="$ac_aux_dir/install.sh -c"
1469 elif test -f $ac_dir/shtool; then
1471 ac_install_sh="$ac_aux_dir/shtool install -c"
1475 if test -z "$ac_aux_dir"; then
1476 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1477 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1478 { (exit 1); exit 1; }; }
1480 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1481 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1482 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1484 # Make sure we can run config.sub.
1485 $ac_config_sub sun4 >/dev/null 2>&1 ||
1486 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1487 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1488 { (exit 1); exit 1; }; }
1490 echo "$as_me:$LINENO: checking build system type" >&5
1491 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1492 if test "${ac_cv_build+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1495 ac_cv_build_alias=$build_alias
1496 test -z "$ac_cv_build_alias" &&
1497 ac_cv_build_alias=`$ac_config_guess`
1498 test -z "$ac_cv_build_alias" &&
1499 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1500 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1501 { (exit 1); exit 1; }; }
1502 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1503 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1504 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1505 { (exit 1); exit 1; }; }
1508 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1509 echo "${ECHO_T}$ac_cv_build" >&6
1511 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1512 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1513 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1516 case ${build_alias} in
1517 "") build_noncanonical=${build} ;;
1518 *) build_noncanonical=${build_alias} ;;
1523 case ${host_alias} in
1524 "") host_noncanonical=${build_noncanonical} ;;
1525 *) host_noncanonical=${host_alias} ;;
1530 case ${target_alias} in
1531 "") target_noncanonical=${host_noncanonical} ;;
1532 *) target_noncanonical=${target_alias} ;;
1538 test "$host_noncanonical" = "$target_noncanonical" &&
1539 test "$program_prefix$program_suffix$program_transform_name" = \
1541 program_transform_name=s,y,y,
1543 echo "$as_me:$LINENO: checking host system type" >&5
1544 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1545 if test "${ac_cv_host+set}" = set; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
1548 ac_cv_host_alias=$host_alias
1549 test -z "$ac_cv_host_alias" &&
1550 ac_cv_host_alias=$ac_cv_build_alias
1551 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1552 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1553 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1554 { (exit 1); exit 1; }; }
1557 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1558 echo "${ECHO_T}$ac_cv_host" >&6
1560 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1561 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1562 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1565 echo "$as_me:$LINENO: checking target system type" >&5
1566 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1567 if test "${ac_cv_target+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1570 ac_cv_target_alias=$target_alias
1571 test "x$ac_cv_target_alias" = "x" &&
1572 ac_cv_target_alias=$ac_cv_host_alias
1573 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1574 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1575 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1576 { (exit 1); exit 1; }; }
1579 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1580 echo "${ECHO_T}$ac_cv_target" >&6
1581 target=$ac_cv_target
1582 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1583 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1584 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1587 # The aliases save the names the user supplied, while $host etc.
1588 # will get canonicalized.
1589 test -n "$target_alias" &&
1590 test "$program_prefix$program_suffix$program_transform_name" = \
1592 program_prefix=${target_alias}-
1593 test "$program_prefix" != NONE &&
1594 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1595 # Use a double $ so make ignores it.
1596 test "$program_suffix" != NONE &&
1597 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1598 # Double any \ or $. echo might interpret backslashes.
1599 # By default was `s,x,x', remove it if useless.
1600 cat <<\_ACEOF >conftest.sed
1601 s/[\\$]/&&/g;s/;s,x,x,$//
1603 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1608 # Get 'install' or 'install-sh' and its variants.
1609 # Find a good install program. We prefer a C program (faster),
1610 # so one script is as good as another. But avoid the broken or
1611 # incompatible versions:
1612 # SysV /etc/install, /usr/sbin/install
1613 # SunOS /usr/etc/install
1614 # IRIX /sbin/install
1616 # AmigaOS /C/install, which installs bootblocks on floppy discs
1617 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1618 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1619 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1620 # OS/2's system install, which has a completely different semantic
1621 # ./install, which can be erroneously created by make from ./install.sh.
1622 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1623 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1624 if test -z "$INSTALL"; then
1625 if test "${ac_cv_path_install+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1632 test -z "$as_dir" && as_dir=.
1633 # Account for people who put trailing slashes in PATH elements.
1635 ./ | .// | /cC/* | \
1636 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1637 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1640 # OSF1 and SCO ODT 3.0 have their own names for install.
1641 # Don't use installbsd from OSF since it installs stuff as root
1643 for ac_prog in ginstall scoinst install; do
1644 for ac_exec_ext in '' $ac_executable_extensions; do
1645 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1646 if test $ac_prog = install &&
1647 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1648 # AIX install. It has an incompatible calling convention.
1650 elif test $ac_prog = install &&
1651 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1652 # program-specific install script used by HP pwplus--don't use.
1655 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1667 if test "${ac_cv_path_install+set}" = set; then
1668 INSTALL=$ac_cv_path_install
1670 # As a last resort, use the slow shell script. We don't cache a
1671 # path for INSTALL within a source directory, because that will
1672 # break other packages using the cache if that directory is
1673 # removed, or if the path is relative.
1674 INSTALL=$ac_install_sh
1677 echo "$as_me:$LINENO: result: $INSTALL" >&5
1678 echo "${ECHO_T}$INSTALL" >&6
1680 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1681 # It thinks the first close brace ends the variable substitution.
1682 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1684 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1686 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1688 echo "$as_me:$LINENO: checking whether ln works" >&5
1689 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1690 if test "${acx_cv_prog_LN+set}" = set; then
1691 echo $ECHO_N "(cached) $ECHO_C" >&6
1693 rm -f conftestdata_t
1694 echo >conftestdata_f
1695 if ln conftestdata_f conftestdata_t 2>/dev/null
1701 rm -f conftestdata_f conftestdata_t
1704 if test $acx_cv_prog_LN = no; then
1706 echo "$as_me:$LINENO: result: no, using $LN" >&5
1707 echo "${ECHO_T}no, using $LN" >&6
1709 LN="$acx_cv_prog_LN"
1710 echo "$as_me:$LINENO: result: yes" >&5
1711 echo "${ECHO_T}yes" >&6
1714 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1715 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1717 if test "$LN_S" = "ln -s"; then
1718 echo "$as_me:$LINENO: result: yes" >&5
1719 echo "${ECHO_T}yes" >&6
1721 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1722 echo "${ECHO_T}no, using $LN_S" >&6
1726 ### we might need to use some other shell than /bin/sh for running subshells
1727 ### If we are on Windows, search for the shell. This will permit people
1728 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1729 ### without also having to set CONFIG_SHELL. This code will work when
1730 ### using bash, which sets OSTYPE.
1733 if test x${CONFIG_SHELL} = x ; then
1734 if test ! -f /bin/sh ; then
1735 if test x${SHELL} != x && test -f ${SHELL} ; then
1736 CONFIG_SHELL=${SHELL}
1739 for prog in sh sh.exe bash bash.exe; do
1740 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1741 for dir in $PATH; do
1742 test -z "$dir" && dir=.
1743 if test -f $dir/$prog; then
1744 CONFIG_SHELL=$dir/$prog
1750 test -n "${CONFIG_SHELL}" && break
1758 config_shell=${CONFIG_SHELL-/bin/sh}
1761 # if PWD already has a value, it is probably wrong.
1762 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1764 # Export original configure arguments for use by sub-configures.
1765 # Quote arguments with shell meta charatcers.
1766 TOPLEVEL_CONFIGURE_ARGUMENTS=
1767 set -- "$progname" "$@"
1771 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
1772 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1773 # if the argument is of the form -foo=baz, quote the baz part only
1774 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1777 # Add the quoted argument to the list.
1778 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1780 # Remove the initial space we just introduced and, as these will be
1781 # expanded by make, quote '$'.
1782 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1785 moveifchange=${srcdir}/move-if-change
1787 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1789 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
1791 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1792 INSTALL="${srcpwd}/install-sh -c"
1795 # Set srcdir to "." if that's what it is.
1796 # This is important for multilib support.
1798 if test "${pwd}" = "${srcpwd}" ; then
1806 ### To add a new directory to the tree, first choose whether it is a target
1807 ### or a host dependent tool. Then put it into the appropriate list
1808 ### (library or tools, host or target), doing a dependency sort.
1810 # Subdirs will be configured in the order listed in build_configdirs,
1811 # configdirs, or target_configdirs; see the serialization section below.
1813 # Dependency sorting is only needed when *configuration* must be done in
1814 # a particular order. In all cases a dependency should be specified in
1815 # the Makefile, whether or not it's implicitly specified here.
1817 # Double entries in build_configdirs, configdirs, or target_configdirs may
1818 # cause circular dependencies and break everything horribly.
1820 # these library is used by various programs built for the build
1823 build_libs="build-libiberty"
1825 # these tools are built for the build environment
1826 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
1828 # these libraries are used by various programs built for the host environment
1830 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
1832 # these tools are built for the host environment
1833 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1834 # know that we are building the simulator.
1835 # binutils, gas and ld appear in that order because it makes sense to run
1836 # "make check" in that particular order.
1837 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
1839 # libgcj represents the runtime libraries only used by gcj.
1840 libgcj="target-libffi \
1845 # these libraries are built for the target environment, and are built after
1846 # the host libraries and the host tools (which may be a cross compiler)
1848 target_libraries="target-libgcc \
1852 target-libstdc++-v3 \
1855 target-libgfortran \
1862 # these tools are built using the target libraries, and are intended to
1863 # run only in the target environment
1865 # note: any program that *uses* libraries that are in the "target_libraries"
1866 # list belongs in this list. those programs are also very likely
1867 # candidates for the "native_only" list which follows
1869 target_tools="target-examples target-groff target-gperf target-rda"
1871 ################################################################################
1873 ## All tools belong in one of the four categories, and are assigned above
1874 ## We assign ${configdirs} this way to remove all embedded newlines. This
1875 ## is important because configure will choke if they ever get through.
1876 ## ${configdirs} is directories we build using the host tools.
1877 ## ${target_configdirs} is directories we build using the target tools.
1878 configdirs=`echo ${host_libs} ${host_tools}`
1879 target_configdirs=`echo ${target_libraries} ${target_tools}`
1880 build_configdirs=`echo ${build_libs} ${build_tools}`
1882 ################################################################################
1884 srcname="gnu development package"
1886 # This gets set non-empty for some net releases of packages.
1889 # Define is_cross_compiler to save on calls to 'test'.
1891 if test x"${host}" = x"${target}" ; then
1892 is_cross_compiler=no
1894 is_cross_compiler=yes
1897 # Find the build and target subdir names.
1899 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1900 # have matching libraries, they should use host libraries: Makefile.tpl
1901 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1902 # However, they still use the build modules, because the corresponding
1903 # host modules (e.g. bison) are only built for the host when bootstrap
1905 # - build_subdir is where we find build modules, and never changes.
1906 # - build_libsubdir is where we find build libraries, and can be overridden.
1908 # Prefix 'build-' so this never conflicts with target_subdir.
1909 build_subdir="build-${build_noncanonical}"
1911 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1912 if test "${with_build_libsubdir+set}" = set; then
1913 withval="$with_build_libsubdir"
1914 build_libsubdir="$withval"
1916 build_libsubdir="$build_subdir"
1918 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1919 if ( test $srcdir = . && test -d gcc ) \
1920 || test -d $srcdir/../host-${host_noncanonical}; then
1921 host_subdir="host-${host_noncanonical}"
1926 target_subdir=${target_noncanonical}
1929 # Skipdirs are removed silently.
1931 # Noconfigdirs are removed loudly.
1935 # Make sure we don't let GNU ld be added if we didn't want it.
1936 if test x$with_gnu_ld = xno ; then
1938 noconfigdirs="$noconfigdirs ld"
1942 # Make sure we don't let GNU as be added if we didn't want it.
1943 if test x$with_gnu_as = xno ; then
1945 noconfigdirs="$noconfigdirs gas"
1948 # some tools are so dependent upon X11 that if we're not building with X,
1949 # it's not even worth trying to configure, much less build, that tool.
1952 yes | "") ;; # the default value for this tree is that X11 is available
1954 skipdirs="${skipdirs} tk itcl libgui"
1955 # We won't be able to build gdbtk without X.
1958 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1961 # Some tools are only suitable for building in a "native" situation.
1962 # Remove these if host!=target.
1963 native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
1965 # Similarly, some are only suitable for cross toolchains.
1966 # Remove these if host=target.
1967 cross_only="target-libgloss target-newlib target-opcodes"
1969 case $is_cross_compiler in
1970 no) skipdirs="${skipdirs} ${cross_only}" ;;
1971 yes) skipdirs="${skipdirs} ${native_only}" ;;
1974 # If both --with-headers and --with-libs are specified, default to
1976 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1977 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
1978 if test x"${with_newlib}" = x ; then
1983 # Recognize --with-newlib/--without-newlib.
1984 case ${with_newlib} in
1985 no) skipdirs="${skipdirs} target-newlib" ;;
1986 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1989 # Configure extra directories which are host specific
1993 configdirs="$configdirs libtermcap" ;;
1996 # A target can indicate whether a language isn't supported for some reason.
1997 # Only spaces may be used in this macro; not newlines or tabs.
1998 unsupported_languages=
2000 # Remove more programs from consideration, based on the host or
2001 # target this usually means that a port of the program doesn't
2006 noconfigdirs="$noconfigdirs byacc"
2008 i[3456789]86-*-vsta)
2009 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2011 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2012 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2015 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2017 i[3456789]86-*-mingw32*)
2018 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2019 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2021 i[3456789]86-*-beos*)
2022 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2025 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2028 noconfigdirs="$noconfigdirs rcs"
2031 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2034 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2039 # Check whether --enable-libada or --disable-libada was given.
2040 if test "${enable_libada+set}" = set; then
2041 enableval="$enable_libada"
2042 ENABLE_LIBADA=$enableval
2046 if test "${ENABLE_LIBADA}" != "yes" ; then
2047 noconfigdirs="$noconfigdirs gnattools"
2050 # Check whether --enable-libssp or --disable-libssp was given.
2051 if test "${enable_libssp+set}" = set; then
2052 enableval="$enable_libssp"
2053 ENABLE_LIBSSP=$enableval
2058 # Save it here so that, even in case of --enable-libgcj, if the Java
2059 # front-end isn't enabled, we still get libgcj disabled.
2060 libgcj_saved=$libgcj
2061 case $enable_libgcj in
2063 # If we reset it here, it won't get added to noconfigdirs in the
2064 # target-specific build rules, so it will be forcibly enabled
2065 # (unless the Java language itself isn't enabled).
2069 # Make sure we get it printed in the list of not supported target libs.
2070 noconfigdirs="$noconfigdirs ${libgcj}"
2075 # Disable libmudflap on some systems.
2076 if test x$enable_libmudflap = x ; then
2078 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2079 # Enable libmudflap by default in GNU and friends.
2082 # Enable libmudflap by default in FreeBSD.
2085 # Disable it by default everywhere else.
2086 noconfigdirs="$noconfigdirs target-libmudflap"
2091 # Disable libgomp on non POSIX hosted systems.
2092 if test x$enable_libgomp = x ; then
2093 # Enable libgomp by default on hosted POSIX systems.
2095 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2097 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2099 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
2101 *-*-darwin* | *-*-aix*)
2104 noconfigdirs="$noconfigdirs target-libgomp"
2112 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2114 powerpc-*-darwin* | i[3456789]86-*-darwin*)
2115 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
2116 noconfigdirs="$noconfigdirs sim target-rda"
2119 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2120 noconfigdirs="$noconfigdirs sim target-rda"
2121 noconfigdirs="$noconfigdirs ${libgcj}"
2123 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
2124 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2127 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2128 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2129 && test -f /usr/local/include/gmp.h; then
2133 # Skip some stuff that's unsupported on some FreeBSD configurations.
2138 noconfigdirs="$noconfigdirs ${libgcj}"
2143 # Remove unsupported stuff on all kaOS configurations.
2144 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
2145 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2146 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2147 noconfigdirs="$noconfigdirs target-libgloss"
2150 # Skip some stuff on all NetBSD configurations.
2151 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2153 # Skip some stuff that's unsupported on some NetBSD configurations.
2155 i*86-*-netbsdelf*) ;;
2156 arm*-*-netbsdelf*) ;;
2158 noconfigdirs="$noconfigdirs ${libgcj}"
2163 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
2166 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2168 # The tpf target doesn't support gdb yet.
2170 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
2173 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
2176 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
2179 # ld works, but does not support shared libraries.
2180 # newlib is not 64 bit ready. I'm not sure about fileutils.
2181 # gas doesn't generate exception information.
2182 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2185 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
2188 # newlib is not 64 bit ready
2189 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2192 # newlib is not 64 bit ready
2193 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2196 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2199 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2201 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
2202 noconfigdirs="$noconfigdirs ${libgcj}"
2203 noconfigdirs="$noconfigdirs target-examples"
2204 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
2205 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
2206 noconfigdirs="$noconfigdirs expect dejagnu"
2207 # the C++ libraries don't build on top of CE's C libraries
2208 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2209 noconfigdirs="$noconfigdirs target-newlib"
2211 *-*-cygwin*) ;; # keep gdb and readline
2212 *) noconfigdirs="$noconfigdirs gdb readline"
2217 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2221 arm-*-coff | strongarm-*-coff | xscale-*-coff)
2222 noconfigdirs="$noconfigdirs ${libgcj}"
2224 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
2225 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2227 arm*-*-linux-gnueabi)
2228 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2229 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
2232 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
2235 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2238 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2241 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2244 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2247 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2250 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2253 noconfigdirs="$noconfigdirs gdb"
2254 if test x${is_cross_compiler} != xno ; then
2255 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2258 c4x-*-* | tic4x-*-*)
2259 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2261 c54x*-*-* | tic54x-*-*)
2262 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2264 cris-*-* | crisv32-*-*)
2265 unsupported_languages="$unsupported_languages java"
2268 unsupported_languages="$unsupported_languages fortran"
2269 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2271 unsupported_languages="$unsupported_languages fortran"
2272 noconfigdirs="$noconfigdirs target-boehm-gc";;
2274 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
2276 unsupported_languages="$unsupported_languages fortran"
2277 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2281 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2284 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2287 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2290 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2293 noconfigdirs="$noconfigdirs ${libgcj}"
2296 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2299 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2301 hppa1.1-*-osf* | hppa1.1-*-bsd* )
2303 hppa*64*-*-linux* | parisc*64*-*-linux*)
2304 # In this case, it's because the hppa64-linux target is for
2305 # the kernel only at this point and has no libc, and thus no
2306 # headers, crt*.o, etc., all of which are needed by these.
2307 noconfigdirs="$noconfigdirs target-zlib"
2309 parisc*-*-linux* | hppa*-*-linux*)
2313 hppa*-*-openbsd* | \
2315 noconfigdirs="$noconfigdirs ${libgcj}"
2318 noconfigdirs="$noconfigdirs ld shellutils"
2321 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2322 # build on HP-UX 10.20.
2323 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
2326 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2329 # No gdb support yet.
2330 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
2333 # No gdb or ld support yet.
2334 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2338 i[3456789]86-*-coff | i[3456789]86-*-elf)
2339 noconfigdirs="$noconfigdirs ${libgcj}"
2341 i[3456789]86-*-linux*)
2342 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2343 # not build java stuff by default.
2346 noconfigdirs="$noconfigdirs ${libgcj}";;
2349 # This section makes it possible to build newlib natively on linux.
2350 # If we are using a cross compiler then don't configure newlib.
2351 if test x${is_cross_compiler} != xno ; then
2352 noconfigdirs="$noconfigdirs target-newlib"
2354 noconfigdirs="$noconfigdirs target-libgloss"
2355 # If we are not using a cross compiler, do configure newlib.
2356 # Note however, that newlib will only be configured in this situation
2357 # if the --with-newlib option has been given, because otherwise
2358 # 'target-newlib' will appear in skipdirs.
2360 i[3456789]86-*-mingw32*)
2361 target_configdirs="$target_configdirs target-winsup"
2362 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2365 target_configdirs="$target_configdirs target-winsup"
2366 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2369 target_configdirs="$target_configdirs target-libtermcap target-winsup"
2370 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
2371 # always build newlib if winsup directory is present.
2372 if test -d "$srcdir/winsup/cygwin"; then
2373 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2374 elif test -d "$srcdir/newlib"; then
2375 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2378 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2379 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
2382 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2384 i[3456789]86-*-sco3.2v5*)
2385 # The linker does not yet know about weak symbols in COFF,
2386 # and is not configured to handle mixed ELF and COFF.
2387 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2389 i[3456789]86-*-sco*)
2390 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2392 i[3456789]86-*-solaris2*)
2393 noconfigdirs="$noconfigdirs target-libgloss"
2395 i[3456789]86-*-sysv4*)
2396 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2398 i[3456789]86-*-beos*)
2399 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2401 i[3456789]86-*-rdos*)
2402 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2405 noconfigdirs="$noconfigdirs ${libgcj}"
2407 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
2408 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2411 noconfigdirs="$noconfigdirs ${libgcj}"
2414 noconfigdirs="$noconfigdirs ${libgcj}"
2417 # The EPOC C++ environment does not support exceptions or rtti,
2418 # and so building libstdc++-v3 tends not to always work.
2419 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2422 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2423 unsupported_languages="$unsupported_languages fortran java"
2426 noconfigdirs="$noconfigdirs ${libgcj}"
2429 noconfigdirs="$noconfigdirs ${libgcj}"
2432 noconfigdirs="$noconfigdirs sim"
2435 # copied from rs6000-*-* entry
2436 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2438 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2439 target_configdirs="$target_configdirs target-winsup"
2440 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
2441 # always build newlib.
2442 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2444 # This is temporary until we can link against shared libraries
2445 powerpcle-*-solaris*)
2446 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
2449 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2452 noconfigdirs="$noconfigdirs ${libgcj}"
2454 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
2457 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
2460 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2463 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2466 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
2469 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2472 # Linking libjava exceeds command-line length limits on at least
2473 # IRIX 6.2, but not on IRIX 6.5.
2474 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2475 # <oldham@codesourcery.com>
2476 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2479 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2482 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2485 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2488 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2491 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
2495 i[3456789]86-*-vsta) ;; # don't add gprof back in
2496 i[3456789]86-*-go32*) ;; # don't add gprof back in
2497 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
2498 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2500 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2503 noconfigdirs="$noconfigdirs ${libgcj}"
2506 noconfigdirs="$noconfigdirs ${libgcj}"
2509 noconfigdirs="$noconfigdirs ${libgcj}"
2512 noconfigdirs="$noconfigdirs ${libgcj}"
2513 if test x${is_cross_compiler} != xno ; then
2514 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2519 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
2520 noconfigdirs="$noconfigdirs ${libgcj}"
2522 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2525 skipdirs="target-libssp"
2528 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
2531 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2534 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2537 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2540 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
2543 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2546 noconfigdirs="$noconfigdirs ${libgcj}"
2549 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2551 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2552 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2555 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2558 noconfigdirs="$noconfigdirs ${libgcj}"
2562 # If we aren't building newlib, then don't build libgloss, since libgloss
2563 # depends upon some newlib header files.
2564 case "${noconfigdirs}" in
2565 *target-libgloss*) ;;
2566 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2569 # Work in distributions that contain no compiler tools, like Autoconf.
2571 host_makefile_frag=/dev/null
2572 if test -d ${srcdir}/config ; then
2575 # Avoid "too much defining" errors from HPUX compiler.
2576 tentative_cc="cc -Wp,-H256000"
2577 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2578 # If it's HP/UX ar, this should be harmless.
2582 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2585 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2586 # chokes on bfd, the compiler won't let you assign integers to enums, and
2587 # other problems. Defining CC to gcc is a questionable way to say "don't use
2588 # the apollo compiler" (the preferred version of GCC could be called cc,
2589 # or whatever), but I'm not sure leaving CC as cc is any better...
2590 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2591 # Used to have BISON=yacc.
2595 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2598 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2599 tentative_cc="cc -Xa"
2600 host_makefile_frag="config/mh-cxux"
2602 m88k-motorola-sysv*)
2605 tentative_cc="cc -Wf,-XNg1000"
2606 host_makefile_frag="config/mh-decstation"
2609 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2610 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2611 host_makefile_frag="config/mh-necv4"
2614 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2615 # environment. Also bump switch table size so that cp-parse will
2616 # compile. Bump string length limit so linker builds.
2617 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2620 host_makefile_frag="config/mh-sysv4"
2623 # This is for a MIPS running RISC/os 4.52C.
2625 # This is needed for GDB, but needs to be in the top-level make because
2626 # if a library is compiled with the bsd headers and gets linked with the
2627 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2628 # a different size).
2629 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2630 # known except to select the sysv environment. Could we use /proc instead?
2631 # These "sysv environments" and "bsd environments" often end up being a pain.
2633 # This is not part of CFLAGS because perhaps not all C compilers have this
2635 tentative_cc="cc -systype sysv"
2640 i[3456789]86-*-sysv5*)
2641 host_makefile_frag="config/mh-sysv5"
2643 i[3456789]86-*-dgux*)
2644 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2645 host_makefile_frag="config/mh-dgux386"
2647 i[3456789]86-ncr-sysv4.3*)
2648 # The MetaWare compiler will generate a copyright message unless you
2649 # turn it off by adding the -Hnocopyr flag.
2650 tentative_cc="cc -Hnocopyr"
2652 i[3456789]86-ncr-sysv4*)
2653 # for an NCR 3000 (i486/SVR4) system.
2654 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2655 # This compiler not only emits obnoxious copyright messages every time
2656 # you run it, but it chokes and dies on a whole bunch of GNU source
2657 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2658 tentative_cc="/usr/ccs/ATT/cc"
2659 host_makefile_frag="config/mh-ncr3000"
2661 i[3456789]86-*-sco3.2v5*)
2663 i[3456789]86-*-sco*)
2664 # The native C compiler botches some simple uses of const. Unfortunately,
2665 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2666 tentative_cc="cc -Dconst="
2667 host_makefile_frag="config/mh-sco"
2669 i[3456789]86-*-udk*)
2670 host_makefile_frag="config/mh-sysv5"
2672 i[3456789]86-*-solaris2*)
2673 host_makefile_frag="config/mh-sysv4"
2675 i[3456789]86-*-msdosdjgpp*)
2676 host_makefile_frag="config/mh-djgpp"
2679 host_makefile_frag="config/mh-cygwin"
2686 host_makefile_frag="config/mh-interix"
2689 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2693 host_makefile_frag="config/mh-solaris"
2696 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2697 # without overflowing the jump tables (-J says to use a 32 bit table)
2698 tentative_cc="cc -J"
2701 tentative_cc="cc -Wp,-H256000"
2704 tentative_cc="cc -Wp,-H256000"
2707 # /bin/cc is less than useful for our purposes. Always use GCC
2708 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2709 host_makefile_frag="config/mh-lynxrs6k"
2712 host_makefile_frag="config/mh-ppc-darwin"
2715 host_makefile_frag="config/mh-ppc-aix"
2718 host_makefile_frag="config/mh-ppc-aix"
2721 # /bin/cc is less than useful for our purposes. Always use GCC
2722 tentative_cc="/bin/gcc"
2725 host_makefile_frag="config/mh-sysv4"
2727 # This is placed last to prevent interfering with the cases above.
2729 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2730 host_makefile_frag="config/mh-x86omitfp"
2735 # If we aren't going to be using gcc, see if we can extract a definition
2736 # of CC from the fragment.
2737 # Actually, use the 'pre-extracted' version above.
2738 if test -z "${CC}" && test "${build}" = "${host}" ; then
2739 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2741 for dir in $PATH; do
2742 test -z "$dir" && dir=.
2743 if test -f $dir/gcc; then
2749 if test -z "${found}" && test -n "${tentative_cc}" ; then
2754 if test "${build}" != "${host}" ; then
2755 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
2757 CC_FOR_BUILD="\$(CC)"
2761 ac_cpp='$CPP $CPPFLAGS'
2762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2765 if test -n "$ac_tool_prefix"; then
2766 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2767 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2768 echo "$as_me:$LINENO: checking for $ac_word" >&5
2769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2770 if test "${ac_cv_prog_CC+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2773 if test -n "$CC"; then
2774 ac_cv_prog_CC="$CC" # Let the user override the test.
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 if test -n "$CC"; then
2794 echo "$as_me:$LINENO: result: $CC" >&5
2795 echo "${ECHO_T}$CC" >&6
2797 echo "$as_me:$LINENO: result: no" >&5
2798 echo "${ECHO_T}no" >&6
2802 if test -z "$ac_cv_prog_CC"; then
2804 # Extract the first word of "gcc", so it can be a program name with args.
2805 set dummy gcc; ac_word=$2
2806 echo "$as_me:$LINENO: checking for $ac_word" >&5
2807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2808 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2811 if test -n "$ac_ct_CC"; then
2812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_prog_ac_ct_CC="gcc"
2822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2831 if test -n "$ac_ct_CC"; then
2832 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2833 echo "${ECHO_T}$ac_ct_CC" >&6
2835 echo "$as_me:$LINENO: result: no" >&5
2836 echo "${ECHO_T}no" >&6
2844 if test -z "$CC"; then
2845 if test -n "$ac_tool_prefix"; then
2846 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2847 set dummy ${ac_tool_prefix}cc; ac_word=$2
2848 echo "$as_me:$LINENO: checking for $ac_word" >&5
2849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2850 if test "${ac_cv_prog_CC+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2853 if test -n "$CC"; then
2854 ac_cv_prog_CC="$CC" # Let the user override the test.
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 test -z "$as_dir" && as_dir=.
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2863 ac_cv_prog_CC="${ac_tool_prefix}cc"
2864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 if test -n "$CC"; then
2874 echo "$as_me:$LINENO: result: $CC" >&5
2875 echo "${ECHO_T}$CC" >&6
2877 echo "$as_me:$LINENO: result: no" >&5
2878 echo "${ECHO_T}no" >&6
2882 if test -z "$ac_cv_prog_CC"; then
2884 # Extract the first word of "cc", so it can be a program name with args.
2885 set dummy cc; ac_word=$2
2886 echo "$as_me:$LINENO: checking for $ac_word" >&5
2887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2888 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 if test -n "$ac_ct_CC"; then
2892 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2901 ac_cv_prog_ac_ct_CC="cc"
2902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2910 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2911 if test -n "$ac_ct_CC"; then
2912 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2913 echo "${ECHO_T}$ac_ct_CC" >&6
2915 echo "$as_me:$LINENO: result: no" >&5
2916 echo "${ECHO_T}no" >&6
2925 if test -z "$CC"; then
2926 # Extract the first word of "cc", so it can be a program name with args.
2927 set dummy cc; ac_word=$2
2928 echo "$as_me:$LINENO: checking for $ac_word" >&5
2929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2930 if test "${ac_cv_prog_CC+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
2933 if test -n "$CC"; then
2934 ac_cv_prog_CC="$CC" # Let the user override the test.
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2944 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2945 ac_prog_rejected=yes
2949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 if test $ac_prog_rejected = yes; then
2956 # We found a bogon in the path, so make sure we never use it.
2957 set dummy $ac_cv_prog_CC
2959 if test $# != 0; then
2960 # We chose a different compiler from the bogus one.
2961 # However, it has the same basename, so the bogon will be chosen
2962 # first if we set CC to just the basename; use the full file name.
2964 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2970 if test -n "$CC"; then
2971 echo "$as_me:$LINENO: result: $CC" >&5
2972 echo "${ECHO_T}$CC" >&6
2974 echo "$as_me:$LINENO: result: no" >&5
2975 echo "${ECHO_T}no" >&6
2979 if test -z "$CC"; then
2980 if test -n "$ac_tool_prefix"; then
2983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2984 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2985 echo "$as_me:$LINENO: checking for $ac_word" >&5
2986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2987 if test "${ac_cv_prog_CC+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 if test -n "$CC"; then
2991 ac_cv_prog_CC="$CC" # Let the user override the test.
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 test -z "$as_dir" && as_dir=.
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3010 if test -n "$CC"; then
3011 echo "$as_me:$LINENO: result: $CC" >&5
3012 echo "${ECHO_T}$CC" >&6
3014 echo "$as_me:$LINENO: result: no" >&5
3015 echo "${ECHO_T}no" >&6
3018 test -n "$CC" && break
3021 if test -z "$CC"; then
3025 # Extract the first word of "$ac_prog", so it can be a program name with args.
3026 set dummy $ac_prog; ac_word=$2
3027 echo "$as_me:$LINENO: checking for $ac_word" >&5
3028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3029 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3032 if test -n "$ac_ct_CC"; then
3033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042 ac_cv_prog_ac_ct_CC="$ac_prog"
3043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3052 if test -n "$ac_ct_CC"; then
3053 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3054 echo "${ECHO_T}$ac_ct_CC" >&6
3056 echo "$as_me:$LINENO: result: no" >&5
3057 echo "${ECHO_T}no" >&6
3060 test -n "$ac_ct_CC" && break
3069 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3070 See \`config.log' for more details." >&5
3071 echo "$as_me: error: no acceptable C compiler found in \$PATH
3072 See \`config.log' for more details." >&2;}
3073 { (exit 1); exit 1; }; }
3075 # Provide some information about the compiler.
3076 echo "$as_me:$LINENO:" \
3077 "checking for C compiler version" >&5
3078 ac_compiler=`set X $ac_compile; echo $2`
3079 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3080 (eval $ac_compiler --version </dev/null >&5) 2>&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }
3084 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3085 (eval $ac_compiler -v </dev/null >&5) 2>&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }
3089 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3090 (eval $ac_compiler -V </dev/null >&5) 2>&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }
3095 cat >conftest.$ac_ext <<_ACEOF
3098 cat confdefs.h >>conftest.$ac_ext
3099 cat >>conftest.$ac_ext <<_ACEOF
3100 /* end confdefs.h. */
3110 ac_clean_files_save=$ac_clean_files
3111 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3112 # Try to create an executable without -o first, disregard a.out.
3113 # It will help us diagnose broken compilers, and finding out an intuition
3115 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3116 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3117 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3118 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3119 (eval $ac_link_default) 2>&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; then
3123 # Find the output, starting from the most likely. This scheme is
3124 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3127 # Be careful to initialize this variable, since it used to be cached.
3128 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3130 # b.out is created by i960 compilers.
3131 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3133 test -f "$ac_file" || continue
3135 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3138 # This is the source file.
3141 # We found the default executable, but exeext='' is most
3145 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3146 # FIXME: I believe we export ac_cv_exeext for Libtool,
3147 # but it would be cool to find out if it's true. Does anybody
3148 # maintain Libtool? --akim.
3156 echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3159 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3160 See \`config.log' for more details." >&5
3161 echo "$as_me: error: C compiler cannot create executables
3162 See \`config.log' for more details." >&2;}
3163 { (exit 77); exit 77; }; }
3166 ac_exeext=$ac_cv_exeext
3167 echo "$as_me:$LINENO: result: $ac_file" >&5
3168 echo "${ECHO_T}$ac_file" >&6
3170 # Check the compiler produces executables we can run. If not, either
3171 # the compiler is broken, or we cross compile.
3172 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3173 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3174 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3175 # If not cross compiling, check that we can run a simple program.
3176 if test "$cross_compiling" != yes; then
3177 if { ac_try='./$ac_file'
3178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
3185 if test "$cross_compiling" = maybe; then
3188 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3189 If you meant to cross compile, use \`--host'.
3190 See \`config.log' for more details." >&5
3191 echo "$as_me: error: cannot run C compiled programs.
3192 If you meant to cross compile, use \`--host'.
3193 See \`config.log' for more details." >&2;}
3194 { (exit 1); exit 1; }; }
3198 echo "$as_me:$LINENO: result: yes" >&5
3199 echo "${ECHO_T}yes" >&6
3201 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3202 ac_clean_files=$ac_clean_files_save
3203 # Check the compiler produces executables we can run. If not, either
3204 # the compiler is broken, or we cross compile.
3205 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3206 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3207 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3208 echo "${ECHO_T}$cross_compiling" >&6
3210 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3211 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3213 (eval $ac_link) 2>&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }; then
3217 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3218 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3219 # work properly (i.e., refer to `conftest.exe'), while it won't with
3221 for ac_file in conftest.exe conftest conftest.*; do
3222 test -f "$ac_file" || continue
3224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3225 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3232 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3233 See \`config.log' for more details." >&5
3234 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3235 See \`config.log' for more details." >&2;}
3236 { (exit 1); exit 1; }; }
3239 rm -f conftest$ac_cv_exeext
3240 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3241 echo "${ECHO_T}$ac_cv_exeext" >&6
3243 rm -f conftest.$ac_ext
3244 EXEEXT=$ac_cv_exeext
3246 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3247 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3248 if test "${ac_cv_objext+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 cat >conftest.$ac_ext <<_ACEOF
3254 cat confdefs.h >>conftest.$ac_ext
3255 cat >>conftest.$ac_ext <<_ACEOF
3256 /* end confdefs.h. */
3266 rm -f conftest.o conftest.obj
3267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3268 (eval $ac_compile) 2>&5
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }; then
3272 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3275 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3280 echo "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3283 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3284 See \`config.log' for more details." >&5
3285 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3286 See \`config.log' for more details." >&2;}
3287 { (exit 1); exit 1; }; }
3290 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3292 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3293 echo "${ECHO_T}$ac_cv_objext" >&6
3294 OBJEXT=$ac_cv_objext
3296 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3297 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3298 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3301 cat >conftest.$ac_ext <<_ACEOF
3304 cat confdefs.h >>conftest.$ac_ext
3305 cat >>conftest.$ac_ext <<_ACEOF
3306 /* end confdefs.h. */
3319 rm -f conftest.$ac_objext
3320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3321 (eval $ac_compile) 2>conftest.er1
3323 grep -v '^ *+' conftest.er1 >conftest.err
3325 cat conftest.err >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } &&
3328 { ac_try='test -z "$ac_c_werror_flag"
3329 || test ! -s conftest.err'
3330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); }; } &&
3335 { ac_try='test -s conftest.$ac_objext'
3336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; }; then
3343 echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3349 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3352 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3353 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3354 GCC=`test $ac_compiler_gnu = yes && echo yes`
3355 ac_test_CFLAGS=${CFLAGS+set}
3356 ac_save_CFLAGS=$CFLAGS
3358 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3359 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3360 if test "${ac_cv_prog_cc_g+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 cat >conftest.$ac_ext <<_ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h. */
3378 rm -f conftest.$ac_objext
3379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3380 (eval $ac_compile) 2>conftest.er1
3382 grep -v '^ *+' conftest.er1 >conftest.err
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } &&
3387 { ac_try='test -z "$ac_c_werror_flag"
3388 || test ! -s conftest.err'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; } &&
3394 { ac_try='test -s conftest.$ac_objext'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; }; then
3402 echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3409 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3410 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3411 if test "$ac_test_CFLAGS" = set; then
3412 CFLAGS=$ac_save_CFLAGS
3413 elif test $ac_cv_prog_cc_g = yes; then
3414 if test "$GCC" = yes; then
3420 if test "$GCC" = yes; then
3426 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3427 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3428 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3429 echo $ECHO_N "(cached) $ECHO_C" >&6
3431 ac_cv_prog_cc_stdc=no
3433 cat >conftest.$ac_ext <<_ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3441 #include <sys/types.h>
3442 #include <sys/stat.h>
3443 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3444 struct buf { int x; };
3445 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3446 static char *e (p, i)
3452 static char *f (char * (*g) (char **, int), char **p, ...)
3457 s = g (p, va_arg (v,int));
3462 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3463 function prototypes and stuff, but not '\xHH' hex character constants.
3464 These don't provoke an error unfortunately, instead are silently treated
3465 as 'x'. The following induces an error, until -std1 is added to get
3466 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3467 array size at least. It's necessary to write '\x00'==0 to get something
3468 that's true only with -std1. */
3469 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3471 int test (int i, double x);
3472 struct s1 {int (*f) (int a);};
3473 struct s2 {int (*f) (double a);};
3474 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3480 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3485 # Don't try gcc -ansi; that turns off useful extensions and
3486 # breaks some systems' header files.
3487 # AIX -qlanglvl=ansi
3488 # Ultrix and OSF/1 -std1
3489 # HP-UX 10.20 and later -Ae
3490 # HP-UX older versions -Aa -D_HPUX_SOURCE
3491 # SVR4 -Xc -D__EXTENSIONS__
3492 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3494 CC="$ac_save_CC $ac_arg"
3495 rm -f conftest.$ac_objext
3496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3497 (eval $ac_compile) 2>conftest.er1
3499 grep -v '^ *+' conftest.er1 >conftest.err
3501 cat conftest.err >&5
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); } &&
3504 { ac_try='test -z "$ac_c_werror_flag"
3505 || test ! -s conftest.err'
3506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }; } &&
3511 { ac_try='test -s conftest.$ac_objext'
3512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); }; }; then
3517 ac_cv_prog_cc_stdc=$ac_arg
3520 echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3524 rm -f conftest.err conftest.$ac_objext
3526 rm -f conftest.$ac_ext conftest.$ac_objext
3531 case "x$ac_cv_prog_cc_stdc" in
3533 echo "$as_me:$LINENO: result: none needed" >&5
3534 echo "${ECHO_T}none needed" >&6 ;;
3536 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3537 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3538 CC="$CC $ac_cv_prog_cc_stdc" ;;
3541 # Some people use a C++ compiler to compile C. Since we use `exit',
3542 # in C++ we need to declare it. In case someone uses the same compiler
3543 # for both compiling C and C++ we need to have the C++ compiler decide
3544 # the declaration of exit, since it's the most demanding environment.
3545 cat >conftest.$ac_ext <<_ACEOF
3550 rm -f conftest.$ac_objext
3551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3552 (eval $ac_compile) 2>conftest.er1
3554 grep -v '^ *+' conftest.er1 >conftest.err
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } &&
3559 { ac_try='test -z "$ac_c_werror_flag"
3560 || test ! -s conftest.err'
3561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; } &&
3566 { ac_try='test -s conftest.$ac_objext'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; }; then
3572 for ac_declaration in \
3574 'extern "C" void std::exit (int) throw (); using std::exit;' \
3575 'extern "C" void std::exit (int); using std::exit;' \
3576 'extern "C" void exit (int) throw ();' \
3577 'extern "C" void exit (int);' \
3580 cat >conftest.$ac_ext <<_ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h. */
3596 rm -f conftest.$ac_objext
3597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3598 (eval $ac_compile) 2>conftest.er1
3600 grep -v '^ *+' conftest.er1 >conftest.err
3602 cat conftest.err >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } &&
3605 { ac_try='test -z "$ac_c_werror_flag"
3606 || test ! -s conftest.err'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; } &&
3612 { ac_try='test -s conftest.$ac_objext'
3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; }; then
3620 echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3626 cat >conftest.$ac_ext <<_ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3641 rm -f conftest.$ac_objext
3642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3643 (eval $ac_compile) 2>conftest.er1
3645 grep -v '^ *+' conftest.er1 >conftest.err
3647 cat conftest.err >&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); } &&
3650 { ac_try='test -z "$ac_c_werror_flag"
3651 || test ! -s conftest.err'
3652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); }; } &&
3657 { ac_try='test -s conftest.$ac_objext'
3658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; }; then
3665 echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3672 if test -n "$ac_declaration"; then
3673 echo '#ifdef __cplusplus' >>confdefs.h
3674 echo $ac_declaration >>confdefs.h
3675 echo '#endif' >>confdefs.h
3679 echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3685 ac_cpp='$CPP $CPPFLAGS'
3686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3691 ac_cpp='$CXXCPP $CPPFLAGS'
3692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3695 if test -n "$ac_tool_prefix"; then
3696 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3698 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3699 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3700 echo "$as_me:$LINENO: checking for $ac_word" >&5
3701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3702 if test "${ac_cv_prog_CXX+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 if test -n "$CXX"; then
3706 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 test -z "$as_dir" && as_dir=.
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3715 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3725 if test -n "$CXX"; then
3726 echo "$as_me:$LINENO: result: $CXX" >&5
3727 echo "${ECHO_T}$CXX" >&6
3729 echo "$as_me:$LINENO: result: no" >&5
3730 echo "${ECHO_T}no" >&6
3733 test -n "$CXX" && break
3736 if test -z "$CXX"; then
3738 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3740 # Extract the first word of "$ac_prog", so it can be a program name with args.
3741 set dummy $ac_prog; ac_word=$2
3742 echo "$as_me:$LINENO: checking for $ac_word" >&5
3743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3744 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 if test -n "$ac_ct_CXX"; then
3748 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757 ac_cv_prog_ac_ct_CXX="$ac_prog"
3758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3766 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3767 if test -n "$ac_ct_CXX"; then
3768 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3769 echo "${ECHO_T}$ac_ct_CXX" >&6
3771 echo "$as_me:$LINENO: result: no" >&5
3772 echo "${ECHO_T}no" >&6
3775 test -n "$ac_ct_CXX" && break
3777 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3783 # Provide some information about the compiler.
3784 echo "$as_me:$LINENO:" \
3785 "checking for C++ compiler version" >&5
3786 ac_compiler=`set X $ac_compile; echo $2`
3787 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3788 (eval $ac_compiler --version </dev/null >&5) 2>&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }
3792 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3793 (eval $ac_compiler -v </dev/null >&5) 2>&5
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); }
3797 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3798 (eval $ac_compiler -V </dev/null >&5) 2>&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }
3803 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3804 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3805 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 cat >conftest.$ac_ext <<_ACEOF
3811 cat confdefs.h >>conftest.$ac_ext
3812 cat >>conftest.$ac_ext <<_ACEOF
3813 /* end confdefs.h. */
3826 rm -f conftest.$ac_objext
3827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3828 (eval $ac_compile) 2>conftest.er1
3830 grep -v '^ *+' conftest.er1 >conftest.err
3832 cat conftest.err >&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } &&
3835 { ac_try='test -z "$ac_cxx_werror_flag"
3836 || test ! -s conftest.err'
3837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); }; } &&
3842 { ac_try='test -s conftest.$ac_objext'
3843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); }; }; then
3850 echo "$as_me: failed program was:" >&5
3851 sed 's/^/| /' conftest.$ac_ext >&5
3855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3856 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3859 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3860 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3861 GXX=`test $ac_compiler_gnu = yes && echo yes`
3862 ac_test_CXXFLAGS=${CXXFLAGS+set}
3863 ac_save_CXXFLAGS=$CXXFLAGS
3865 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3866 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3867 if test "${ac_cv_prog_cxx_g+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3870 cat >conftest.$ac_ext <<_ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3885 rm -f conftest.$ac_objext
3886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3887 (eval $ac_compile) 2>conftest.er1
3889 grep -v '^ *+' conftest.er1 >conftest.err
3891 cat conftest.err >&5
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); } &&
3894 { ac_try='test -z "$ac_cxx_werror_flag"
3895 || test ! -s conftest.err'
3896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); }; } &&
3901 { ac_try='test -s conftest.$ac_objext'
3902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); }; }; then
3907 ac_cv_prog_cxx_g=yes
3909 echo "$as_me: failed program was:" >&5
3910 sed 's/^/| /' conftest.$ac_ext >&5
3914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3916 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3917 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3918 if test "$ac_test_CXXFLAGS" = set; then
3919 CXXFLAGS=$ac_save_CXXFLAGS
3920 elif test $ac_cv_prog_cxx_g = yes; then
3921 if test "$GXX" = yes; then
3927 if test "$GXX" = yes; then
3933 for ac_declaration in \
3935 'extern "C" void std::exit (int) throw (); using std::exit;' \
3936 'extern "C" void std::exit (int); using std::exit;' \
3937 'extern "C" void exit (int) throw ();' \
3938 'extern "C" void exit (int);' \
3941 cat >conftest.$ac_ext <<_ACEOF
3944 cat confdefs.h >>conftest.$ac_ext
3945 cat >>conftest.$ac_ext <<_ACEOF
3946 /* end confdefs.h. */
3957 rm -f conftest.$ac_objext
3958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3959 (eval $ac_compile) 2>conftest.er1
3961 grep -v '^ *+' conftest.er1 >conftest.err
3963 cat conftest.err >&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } &&
3966 { ac_try='test -z "$ac_cxx_werror_flag"
3967 || test ! -s conftest.err'
3968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }; } &&
3973 { ac_try='test -s conftest.$ac_objext'
3974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }; }; then
3981 echo "$as_me: failed program was:" >&5
3982 sed 's/^/| /' conftest.$ac_ext >&5
3986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3987 cat >conftest.$ac_ext <<_ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
4002 rm -f conftest.$ac_objext
4003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4004 (eval $ac_compile) 2>conftest.er1
4006 grep -v '^ *+' conftest.er1 >conftest.err
4008 cat conftest.err >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } &&
4011 { ac_try='test -z "$ac_cxx_werror_flag"
4012 || test ! -s conftest.err'
4013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; } &&
4018 { ac_try='test -s conftest.$ac_objext'
4019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); }; }; then
4026 echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4033 if test -n "$ac_declaration"; then
4034 echo '#ifdef __cplusplus' >>confdefs.h
4035 echo $ac_declaration >>confdefs.h
4036 echo '#endif' >>confdefs.h
4040 ac_cpp='$CPP $CPPFLAGS'
4041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4046 # We must set the default linker to the linker used by gcc for the correct
4047 # operation of libtool. If LD is not defined and we are using gcc, try to
4048 # set the LD default to the ld used by gcc.
4049 if test -z "$LD"; then
4050 if test "$GCC" = yes; then
4053 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4055 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4057 case $gcc_prog_ld in
4058 # Accept absolute paths.
4059 [\\/]* | [A-Za-z]:[\\/]*)
4060 LD="$gcc_prog_ld" ;;
4068 if test -n "$ac_tool_prefix"; then
4069 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4070 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4071 echo "$as_me:$LINENO: checking for $ac_word" >&5
4072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4073 if test "${ac_cv_prog_GNATBIND+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 if test -n "$GNATBIND"; then
4077 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083 test -z "$as_dir" && as_dir=.
4084 for ac_exec_ext in '' $ac_executable_extensions; do
4085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4086 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4095 GNATBIND=$ac_cv_prog_GNATBIND
4096 if test -n "$GNATBIND"; then
4097 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4098 echo "${ECHO_T}$GNATBIND" >&6
4100 echo "$as_me:$LINENO: result: no" >&5
4101 echo "${ECHO_T}no" >&6
4105 if test -z "$ac_cv_prog_GNATBIND"; then
4106 ac_ct_GNATBIND=$GNATBIND
4107 # Extract the first word of "gnatbind", so it can be a program name with args.
4108 set dummy gnatbind; ac_word=$2
4109 echo "$as_me:$LINENO: checking for $ac_word" >&5
4110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4111 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 if test -n "$ac_ct_GNATBIND"; then
4115 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 test -z "$as_dir" && as_dir=.
4122 for ac_exec_ext in '' $ac_executable_extensions; do
4123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4124 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4131 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
4134 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4135 if test -n "$ac_ct_GNATBIND"; then
4136 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4137 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
4139 echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6
4143 GNATBIND=$ac_ct_GNATBIND
4145 GNATBIND="$ac_cv_prog_GNATBIND"
4148 if test -n "$ac_tool_prefix"; then
4149 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4150 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4151 echo "$as_me:$LINENO: checking for $ac_word" >&5
4152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4153 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4156 if test -n "$GNATMAKE"; then
4157 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 test -z "$as_dir" && as_dir=.
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4166 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 GNATMAKE=$ac_cv_prog_GNATMAKE
4176 if test -n "$GNATMAKE"; then
4177 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4178 echo "${ECHO_T}$GNATMAKE" >&6
4180 echo "$as_me:$LINENO: result: no" >&5
4181 echo "${ECHO_T}no" >&6
4185 if test -z "$ac_cv_prog_GNATMAKE"; then
4186 ac_ct_GNATMAKE=$GNATMAKE
4187 # Extract the first word of "gnatmake", so it can be a program name with args.
4188 set dummy gnatmake; ac_word=$2
4189 echo "$as_me:$LINENO: checking for $ac_word" >&5
4190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4191 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 if test -n "$ac_ct_GNATMAKE"; then
4195 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 test -z "$as_dir" && as_dir=.
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4204 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4211 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
4214 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4215 if test -n "$ac_ct_GNATMAKE"; then
4216 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4217 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
4219 echo "$as_me:$LINENO: result: no" >&5
4220 echo "${ECHO_T}no" >&6
4223 GNATMAKE=$ac_ct_GNATMAKE
4225 GNATMAKE="$ac_cv_prog_GNATMAKE"
4228 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4229 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4230 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 cat >conftest.adb <<EOF
4234 procedure conftest is begin null; end conftest;
4236 acx_cv_cc_gcc_supports_ada=no
4237 # There is a bug in old released versions of GCC which causes the
4238 # driver to exit successfully when the appropriate language module
4239 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4240 # Therefore we must check for the error message as well as an
4241 # unsuccessful exit.
4242 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4243 # given a .adb file, but produce no object file. So we must check
4244 # if an object file was really produced to guard against this.
4245 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4246 if test x"$errors" = x && test -f conftest.$ac_objext; then
4247 acx_cv_cc_gcc_supports_ada=yes
4251 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4252 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
4254 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4260 echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4261 echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4262 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4268 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4269 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4272 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4275 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4276 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4279 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4285 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4286 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4287 do_compare="$gcc_cv_prog_cmp_skip"
4291 # Check for GMP and MPFR
4292 gmplibs="-lmpfr -lgmp"
4296 # Specify a location for mpfr
4297 # check for this first so it ends up on the link line before gmp.
4299 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4300 if test "${with_mpfr_dir+set}" = set; then
4301 withval="$with_mpfr_dir"
4302 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4303 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4304 echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4305 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4306 { (exit 1); exit 1; }; }
4310 # Check whether --with-mpfr or --without-mpfr was given.
4311 if test "${with_mpfr+set}" = set; then
4312 withval="$with_mpfr"
4316 # Check whether --with-mpfr_include or --without-mpfr_include was given.
4317 if test "${with_mpfr_include+set}" = set; then
4318 withval="$with_mpfr_include"
4322 # Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4323 if test "${with_mpfr_lib+set}" = set; then
4324 withval="$with_mpfr_lib"
4328 if test "x$with_mpfr" != x; then
4329 gmplibs="-L$with_mpfr/lib $gmplibs"
4330 gmpinc="-I$with_mpfr/include"
4332 if test "x$with_mpfr_include" != x; then
4333 gmpinc="-I$with_mpfr_include"
4335 if test "x$with_mpfr_lib" != x; then
4336 gmplibs="-L$with_mpfr_lib $gmplibs"
4338 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4339 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4340 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4341 # Do not test the mpfr version. Assume that it is sufficient, since
4342 # it is in the source tree, and the library has not been built yet
4343 # but it would be included on the link line in the version check below
4344 # hence making the test fail.
4348 # Specify a location for gmp
4350 # Check whether --with-gmp-dir or --without-gmp-dir was given.
4351 if test "${with_gmp_dir+set}" = set; then
4352 withval="$with_gmp_dir"
4353 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4354 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4355 echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4356 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4357 { (exit 1); exit 1; }; }
4361 # Check whether --with-gmp or --without-gmp was given.
4362 if test "${with_gmp+set}" = set; then
4367 # Check whether --with-gmp_include or --without-gmp_include was given.
4368 if test "${with_gmp_include+set}" = set; then
4369 withval="$with_gmp_include"
4373 # Check whether --with-gmp_lib or --without-gmp_lib was given.
4374 if test "${with_gmp_lib+set}" = set; then
4375 withval="$with_gmp_lib"
4380 if test "x$with_gmp" != x; then
4381 gmplibs="-L$with_gmp/lib $gmplibs"
4382 gmpinc="-I$with_gmp/include $gmpinc"
4384 if test "x$with_gmp_include" != x; then
4385 gmpinc="-I$with_gmp_include $gmpinc"
4387 if test "x$with_gmp_lib" != x; then
4388 gmplibs="-L$with_gmp_lib $gmplibs"
4390 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4391 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4392 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4393 # Do not test the gmp version. Assume that it is sufficient, since
4394 # it is in the source tree, and the library has not been built yet
4395 # but it would be included on the link line in the version check below
4396 # hence making the test fail.
4400 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4402 saved_CFLAGS="$CFLAGS"
4403 CFLAGS="$CFLAGS $gmpinc"
4404 # Check GMP actually works
4405 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4406 echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4408 cat >conftest.$ac_ext <<_ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h. */
4419 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4427 rm -f conftest.$ac_objext
4428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4429 (eval $ac_compile) 2>conftest.er1
4431 grep -v '^ *+' conftest.er1 >conftest.err
4433 cat conftest.err >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } &&
4436 { ac_try='test -z "$ac_c_werror_flag"
4437 || test ! -s conftest.err'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; } &&
4443 { ac_try='test -s conftest.$ac_objext'
4444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); }; }; then
4449 echo "$as_me:$LINENO: result: yes" >&5
4450 echo "${ECHO_T}yes" >&6
4452 echo "$as_me: failed program was:" >&5
4453 sed 's/^/| /' conftest.$ac_ext >&5
4455 echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6; have_gmp=no
4458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4460 if test x"$have_gmp" = xyes; then
4462 LIBS="$LIBS $gmplibs"
4463 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4464 echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4465 cat >conftest.$ac_ext <<_ACEOF
4468 cat confdefs.h >>conftest.$ac_ext
4469 cat >>conftest.$ac_ext <<_ACEOF
4470 /* end confdefs.h. */
4477 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4485 mpfr_atan2 (n, n, x, GMP_RNDN);
4486 mpfr_erfc (n, x, GMP_RNDN);
4487 mpfr_subnormalize (x, t, GMP_RNDN);
4493 rm -f conftest.$ac_objext conftest$ac_exeext
4494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4495 (eval $ac_link) 2>conftest.er1
4497 grep -v '^ *+' conftest.er1 >conftest.err
4499 cat conftest.err >&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); } &&
4502 { ac_try='test -z "$ac_c_werror_flag"
4503 || test ! -s conftest.err'
4504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); }; } &&
4509 { ac_try='test -s conftest$ac_exeext'
4510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
4515 cat >conftest.$ac_ext <<_ACEOF
4518 cat confdefs.h >>conftest.$ac_ext
4519 cat >>conftest.$ac_ext <<_ACEOF
4520 /* end confdefs.h. */
4527 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)