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 TOPLEVEL_CONFIGURE_ARGUMENTS 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 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 extra_mpfr_configure_flags extra_mpc_gmp_configure_flags extra_mpc_mpfr_configure_flags stage1_ldflags stage1_libs poststage1_ldflags poststage1_libs ppllibs pplinc clooglibs clooginc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET CFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET RPATH_ENVVAR GCC_SHLIB_SUBDIR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs AR_FOR_BUILD AS_FOR_BUILD CC_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXX_FOR_BUILD DLLTOOL_FOR_BUILD GCJ_FOR_BUILD GFORTRAN_FOR_BUILD LDFLAGS_FOR_BUILD LD_FOR_BUILD NM_FOR_BUILD RANLIB_FOR_BUILD WINDMC_FOR_BUILD WINDRES_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP 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 WINDMC_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 compare_exclusions LIBOBJS LTLIBOBJS'
276 ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
279 # Initialize some variables set by options.
281 ac_init_version=false
282 # The variables have the same names as the options, with
283 # dashes changed to underlines.
291 program_transform_name=s,x,x,
299 # Installation directory options.
300 # These are left unexpanded so users can "make install exec_prefix=/foo"
301 # and all the variables that are supposed to be based on exec_prefix
302 # by default will actually change.
303 # Use braces instead of parens because sh, perl, etc. also accept them.
304 bindir='${exec_prefix}/bin'
305 sbindir='${exec_prefix}/sbin'
306 libexecdir='${exec_prefix}/libexec'
307 datadir='${prefix}/share'
308 sysconfdir='${prefix}/etc'
309 sharedstatedir='${prefix}/com'
310 localstatedir='${prefix}/var'
311 libdir='${exec_prefix}/lib'
312 includedir='${prefix}/include'
313 oldincludedir='/usr/include'
314 infodir='${prefix}/info'
315 mandir='${prefix}/man'
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
322 eval "$ac_prev=\$ac_option"
327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
329 # Accept the important Cygnus configure options, so we can diagnose typos.
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
338 -build | --build | --buil | --bui | --bu)
339 ac_prev=build_alias ;;
340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341 build_alias=$ac_optarg ;;
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
348 cache_file=$ac_optarg ;;
351 cache_file=config.cache ;;
353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
357 datadir=$ac_optarg ;;
359 -disable-* | --disable-*)
360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
361 # Reject names that are not valid shell variable names.
362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
368 -enable-* | --enable-*)
369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
370 # Reject names that are not valid shell variable names.
371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
379 eval "enable_$ac_feature='$ac_optarg'" ;;
381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383 | --exec | --exe | --ex)
384 ac_prev=exec_prefix ;;
385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387 | --exec=* | --exe=* | --ex=*)
388 exec_prefix=$ac_optarg ;;
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
394 -help | --help | --hel | --he | -h)
396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397 ac_init_help=recursive ;;
398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399 ac_init_help=short ;;
401 -host | --host | --hos | --ho)
402 ac_prev=host_alias ;;
403 -host=* | --host=* | --hos=* | --ho=*)
404 host_alias=$ac_optarg ;;
406 -includedir | --includedir | --includedi | --included | --include \
407 | --includ | --inclu | --incl | --inc)
408 ac_prev=includedir ;;
409 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410 | --includ=* | --inclu=* | --incl=* | --inc=*)
411 includedir=$ac_optarg ;;
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416 infodir=$ac_optarg ;;
418 -libdir | --libdir | --libdi | --libd)
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
423 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424 | --libexe | --libex | --libe)
425 ac_prev=libexecdir ;;
426 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427 | --libexe=* | --libex=* | --libe=*)
428 libexecdir=$ac_optarg ;;
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
437 localstatedir=$ac_optarg ;;
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
445 # Obsolete; use --without-fp.
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c | -n)
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458 | --oldin | --oldi | --old | --ol | --o)
459 ac_prev=oldincludedir ;;
460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
463 oldincludedir=$ac_optarg ;;
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
471 | --program-pre | --program-pr | --program-p)
472 ac_prev=program_prefix ;;
473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
475 program_prefix=$ac_optarg ;;
477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
478 | --program-suf | --program-su | --program-s)
479 ac_prev=program_suffix ;;
480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
482 program_suffix=$ac_optarg ;;
484 -program-transform-name | --program-transform-name \
485 | --program-transform-nam | --program-transform-na \
486 | --program-transform-n | --program-transform- \
487 | --program-transform | --program-transfor \
488 | --program-transfo | --program-transf \
489 | --program-trans | --program-tran \
490 | --progr-tra | --program-tr | --program-t)
491 ac_prev=program_transform_name ;;
492 -program-transform-name=* | --program-transform-name=* \
493 | --program-transform-nam=* | --program-transform-na=* \
494 | --program-transform-n=* | --program-transform-=* \
495 | --program-transform=* | --program-transfor=* \
496 | --program-transfo=* | --program-transf=* \
497 | --program-trans=* | --program-tran=* \
498 | --progr-tra=* | --program-tr=* | --program-t=*)
499 program_transform_name=$ac_optarg ;;
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
509 sbindir=$ac_optarg ;;
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
520 sharedstatedir=$ac_optarg ;;
522 -site | --site | --sit)
524 -site=* | --site=* | --sit=*)
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533 | --syscon | --sysco | --sysc | --sys | --sy)
534 ac_prev=sysconfdir ;;
535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
537 sysconfdir=$ac_optarg ;;
539 -target | --target | --targe | --targ | --tar | --ta | --t)
540 ac_prev=target_alias ;;
541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
542 target_alias=$ac_optarg ;;
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
547 -version | --version | --versio | --versi | --vers | -V)
551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
556 ac_package=`echo $ac_package| sed 's/-/_/g'`
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
561 eval "with_$ac_package='$ac_optarg'" ;;
563 -without-* | --without-*)
564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
573 # Obsolete; use --with-x.
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
581 x_includes=$ac_optarg ;;
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
588 x_libraries=$ac_optarg ;;
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591 Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
606 # FIXME: should be removed in autoconf 3.0.
607 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
616 if test -n "$ac_prev"; then
617 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618 { echo "$as_me: error: missing argument to $ac_option" >&2
619 { (exit 1); exit 1; }; }
622 # Be sure to have absolute paths.
623 for ac_var in exec_prefix prefix
625 eval ac_val=$`echo $ac_var`
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
633 # Be sure to have absolute paths.
634 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
637 eval ac_val=$`echo $ac_var`
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
645 # There might be people who depend on the old broken behavior: `$host'
646 # used to hold the argument of --host etc.
647 # FIXME: To remove some day.
652 # FIXME: To remove some day.
653 if test "x$host_alias" != x; then
654 if test "x$build_alias" = x; then
655 cross_compiling=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
664 test -n "$host_alias" && ac_tool_prefix=$host_alias-
666 test "$silent" = yes && exec 6>/dev/null
669 # Find the source files, if location was not specified.
670 if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
672 # Try the directory containing this script, then its parent.
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
674 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
686 if test ! -r $srcdir/$ac_unique_file; then
690 ac_srcdir_defaulted=no
692 if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698 { (exit 1); exit 1; }; }
701 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703 { (exit 1); exit 1; }; }
704 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705 ac_env_build_alias_set=${build_alias+set}
706 ac_env_build_alias_value=$build_alias
707 ac_cv_env_build_alias_set=${build_alias+set}
708 ac_cv_env_build_alias_value=$build_alias
709 ac_env_host_alias_set=${host_alias+set}
710 ac_env_host_alias_value=$host_alias
711 ac_cv_env_host_alias_set=${host_alias+set}
712 ac_cv_env_host_alias_value=$host_alias
713 ac_env_target_alias_set=${target_alias+set}
714 ac_env_target_alias_value=$target_alias
715 ac_cv_env_target_alias_set=${target_alias+set}
716 ac_cv_env_target_alias_value=$target_alias
717 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
719 ac_env_CC_set=${CC+set}
721 ac_cv_env_CC_set=${CC+set}
722 ac_cv_env_CC_value=$CC
723 ac_env_CFLAGS_set=${CFLAGS+set}
724 ac_env_CFLAGS_value=$CFLAGS
725 ac_cv_env_CFLAGS_set=${CFLAGS+set}
726 ac_cv_env_CFLAGS_value=$CFLAGS
727 ac_env_LDFLAGS_set=${LDFLAGS+set}
728 ac_env_LDFLAGS_value=$LDFLAGS
729 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
730 ac_cv_env_LDFLAGS_value=$LDFLAGS
731 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
732 ac_env_CPPFLAGS_value=$CPPFLAGS
733 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
734 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
735 ac_env_CXX_set=${CXX+set}
736 ac_env_CXX_value=$CXX
737 ac_cv_env_CXX_set=${CXX+set}
738 ac_cv_env_CXX_value=$CXX
739 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
740 ac_env_CXXFLAGS_value=$CXXFLAGS
741 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
742 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
743 ac_env_AR_set=${AR+set}
745 ac_cv_env_AR_set=${AR+set}
746 ac_cv_env_AR_value=$AR
747 ac_env_AS_set=${AS+set}
749 ac_cv_env_AS_set=${AS+set}
750 ac_cv_env_AS_value=$AS
751 ac_env_DLLTOOL_set=${DLLTOOL+set}
752 ac_env_DLLTOOL_value=$DLLTOOL
753 ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
754 ac_cv_env_DLLTOOL_value=$DLLTOOL
755 ac_env_LD_set=${LD+set}
757 ac_cv_env_LD_set=${LD+set}
758 ac_cv_env_LD_value=$LD
759 ac_env_LIPO_set=${LIPO+set}
760 ac_env_LIPO_value=$LIPO
761 ac_cv_env_LIPO_set=${LIPO+set}
762 ac_cv_env_LIPO_value=$LIPO
763 ac_env_NM_set=${NM+set}
765 ac_cv_env_NM_set=${NM+set}
766 ac_cv_env_NM_value=$NM
767 ac_env_RANLIB_set=${RANLIB+set}
768 ac_env_RANLIB_value=$RANLIB
769 ac_cv_env_RANLIB_set=${RANLIB+set}
770 ac_cv_env_RANLIB_value=$RANLIB
771 ac_env_STRIP_set=${STRIP+set}
772 ac_env_STRIP_value=$STRIP
773 ac_cv_env_STRIP_set=${STRIP+set}
774 ac_cv_env_STRIP_value=$STRIP
775 ac_env_WINDRES_set=${WINDRES+set}
776 ac_env_WINDRES_value=$WINDRES
777 ac_cv_env_WINDRES_set=${WINDRES+set}
778 ac_cv_env_WINDRES_value=$WINDRES
779 ac_env_WINDMC_set=${WINDMC+set}
780 ac_env_WINDMC_value=$WINDMC
781 ac_cv_env_WINDMC_set=${WINDMC+set}
782 ac_cv_env_WINDMC_value=$WINDMC
783 ac_env_OBJCOPY_set=${OBJCOPY+set}
784 ac_env_OBJCOPY_value=$OBJCOPY
785 ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
786 ac_cv_env_OBJCOPY_value=$OBJCOPY
787 ac_env_OBJDUMP_set=${OBJDUMP+set}
788 ac_env_OBJDUMP_value=$OBJDUMP
789 ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
790 ac_cv_env_OBJDUMP_value=$OBJDUMP
791 ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
792 ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
793 ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
794 ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
795 ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
796 ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
797 ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
798 ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
799 ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
800 ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
801 ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
802 ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
803 ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
804 ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
805 ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
806 ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
807 ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
808 ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
809 ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
810 ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
811 ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
812 ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
813 ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
814 ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
815 ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
816 ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
817 ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
818 ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
819 ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
820 ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
821 ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
822 ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
823 ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
824 ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
825 ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
826 ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
827 ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
828 ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
829 ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
830 ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
831 ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
832 ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
833 ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
834 ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
835 ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
836 ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
837 ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
838 ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
839 ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
840 ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
841 ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
842 ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
843 ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
844 ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
845 ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
846 ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
847 ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
848 ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
849 ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
850 ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
851 ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
852 ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
853 ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
854 ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
857 # Report the --help message.
859 if test "$ac_init_help" = "long"; then
860 # Omit some internal or obsolete options to make the list less imposing.
861 # This message is too long to be a string in the A/UX 3.1 sh.
863 \`configure' configures this package to adapt to many kinds of systems.
865 Usage: $0 [OPTION]... [VAR=VALUE]...
867 To assign environment variables (e.g., CC, CFLAGS...), specify them as
868 VAR=VALUE. See below for descriptions of some of the useful variables.
870 Defaults for the options are specified in brackets.
873 -h, --help display this help and exit
874 --help=short display options specific to this package
875 --help=recursive display the short help of all the included packages
876 -V, --version display version information and exit
877 -q, --quiet, --silent do not print \`checking...' messages
878 --cache-file=FILE cache test results in FILE [disabled]
879 -C, --config-cache alias for \`--cache-file=config.cache'
880 -n, --no-create do not create output files
881 --srcdir=DIR find the sources in DIR [configure dir or \`..']
886 Installation directories:
887 --prefix=PREFIX install architecture-independent files in PREFIX
889 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
892 By default, \`make install' will install all the files in
893 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
894 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
895 for instance \`--prefix=\$HOME'.
897 For better control, use the options below.
899 Fine tuning of the installation directories:
900 --bindir=DIR user executables [EPREFIX/bin]
901 --sbindir=DIR system admin executables [EPREFIX/sbin]
902 --libexecdir=DIR program executables [EPREFIX/libexec]
903 --datadir=DIR read-only architecture-independent data [PREFIX/share]
904 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
905 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
906 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
907 --libdir=DIR object code libraries [EPREFIX/lib]
908 --includedir=DIR C header files [PREFIX/include]
909 --oldincludedir=DIR C header files for non-gcc [/usr/include]
910 --infodir=DIR info documentation [PREFIX/info]
911 --mandir=DIR man documentation [PREFIX/man]
917 --program-prefix=PREFIX prepend PREFIX to installed program names
918 --program-suffix=SUFFIX append SUFFIX to installed program names
919 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
922 --build=BUILD configure for building on BUILD [guessed]
923 --host=HOST cross-compile to build programs to run on HOST [BUILD]
924 --target=TARGET configure for building compilers for TARGET [HOST]
928 if test -n "$ac_init_help"; then
933 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
934 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
935 --enable-gold use gold instead of ld
936 --enable-libada build libada directory
937 --enable-libssp build libssp directory
938 --enable-build-with-cxx build with C++ compiler instead of C compiler
939 --disable-ppl-version-check disable check for PPL version
940 --disable-cloog-version-check disable check for CLooG version
941 --enable-stage1-languages[=all] choose additional languages to build during
942 stage1. Mostly useful for compiler development.
943 --enable-objc-gc enable use of Boehm's garbage collector with the
944 GNU Objective-C runtime
945 --enable-bootstrap enable bootstrapping [yes if native build]
946 --enable-serial-[{host,target,build}-]configure
947 force sequential configuration of
948 sub-packages for the host, target or build
949 machine, or all sub-packages
950 --enable-maintainer-mode enable make rules and dependencies not useful
951 (and sometimes confusing) to the casual installer
952 --enable-stage1-checking[=all] choose additional checking for stage1
954 --enable-werror enable -Werror in bootstrap stage2 and later
957 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
958 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
959 --with-build-libsubdir=DIR Directory where to find libraries for build system
960 --with-mpc=PATH specify prefix directory for installed MPC package.
961 Equivalent to --with-mpc-include=PATH/include
962 plus --with-mpc-lib=PATH/lib
963 --with-mpc-include=PATH
964 specify directory for installed MPC include files
965 --with-mpc-lib=PATH specify directory for the installed MPC library
966 --with-mpfr-dir=PATH this option has been REMOVED
967 --with-mpfr=PATH specify prefix directory for installed MPFR package.
968 Equivalent to --with-mpfr-include=PATH/include
969 plus --with-mpfr-lib=PATH/lib
970 --with-mpfr-include=PATH
971 specify directory for installed MPFR include files
972 --with-mpfr-lib=PATH specify directory for the installed MPFR library
973 --with-gmp-dir=PATH this option has been REMOVED
974 --with-gmp=PATH specify prefix directory for the installed GMP package.
975 Equivalent to --with-gmp-include=PATH/include
976 plus --with-gmp-lib=PATH/lib
977 --with-gmp-include=PATH specify directory for installed GMP include files
978 --with-gmp-lib=PATH specify directory for the installed GMP library
979 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
980 when linking with PPL
981 --with-stage1-ldflags=FLAGS Linker flags for stage1
982 -with-stage1-libs=LIBS Libraries for stage1
983 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
984 --with-boot-libs=LIBS Libraries for stage2 and later
985 --with-ppl=PATH Specify prefix directory for the installed PPL package
986 Equivalent to --with-ppl-include=PATH/include
987 plus --with-ppl-lib=PATH/lib
988 --with-ppl-include=PATH Specify directory for installed PPL include files
989 --with-ppl-lib=PATH Specify the directory for the installed PPL library
990 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
991 Equivalent to --with-cloog-include=PATH/include
992 plus --with-cloog-lib=PATH/lib
993 --with-cloog-include=PATH Specify directory for installed CLooG include files
994 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
995 --with-build-sysroot=SYSROOT
996 use sysroot as the system root during the build
997 --with-debug-prefix-map='A=B C=D ...'
998 map A to B, C to D ... in debug information
999 --with-build-time-tools=PATH
1000 use given path to find target tools during the build
1001 --with-datarootdir use datarootdir as the data root directory.
1002 --with-docdir install documentation in this directory.
1003 --with-pdfdir install pdf in this directory.
1004 --with-htmldir install html in this directory.
1006 Some influential environment variables:
1007 CC C compiler command
1008 CFLAGS C compiler flags
1009 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1010 nonstandard directory <lib dir>
1011 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1012 headers in a nonstandard directory <include dir>
1013 CXX C++ compiler command
1014 CXXFLAGS C++ compiler flags
1017 DLLTOOL DLLTOOL for the host
1019 LIPO LIPO for the host
1021 RANLIB RANLIB for the host
1022 STRIP STRIP for the host
1023 WINDRES WINDRES for the host
1024 WINDMC WINDMC for the host
1025 OBJCOPY OBJCOPY for the host
1026 OBJDUMP OBJDUMP for the host
1036 GFORTRAN for the target
1042 DLLTOOL for the target
1050 OBJDUMP for the target
1052 RANLIB for the target
1054 STRIP for the target
1056 WINDRES for the target
1058 WINDMC for the target
1060 Use these variables to override the choices made by `configure' or to help
1061 it to find libraries and programs with nonstandard names/locations.
1066 if test "$ac_init_help" = "recursive"; then
1067 # If there are subdirs, report their specific --help.
1069 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1070 test -d $ac_dir || continue
1073 if test "$ac_dir" != .; then
1074 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1075 # A "../" for each directory in $ac_dir_suffix.
1076 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1078 ac_dir_suffix= ac_top_builddir=
1082 .) # No --srcdir option. We are building in place.
1084 if test -z "$ac_top_builddir"; then
1087 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1089 [\\/]* | ?:[\\/]* ) # Absolute path.
1090 ac_srcdir=$srcdir$ac_dir_suffix;
1091 ac_top_srcdir=$srcdir ;;
1093 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1094 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1097 # Do not use `cd foo && pwd` to compute absolute paths, because
1098 # the directories may not exist.
1100 .) ac_abs_builddir="$ac_dir";;
1103 .) ac_abs_builddir=`pwd`;;
1104 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1105 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1108 case $ac_abs_builddir in
1109 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1111 case ${ac_top_builddir}. in
1112 .) ac_abs_top_builddir=$ac_abs_builddir;;
1113 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1114 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1117 case $ac_abs_builddir in
1118 .) ac_abs_srcdir=$ac_srcdir;;
1121 .) ac_abs_srcdir=$ac_abs_builddir;;
1122 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1123 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1126 case $ac_abs_builddir in
1127 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1129 case $ac_top_srcdir in
1130 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1131 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1132 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1137 # Check for guested configure; otherwise get Cygnus style configure.
1138 if test -f $ac_srcdir/configure.gnu; then
1140 $SHELL $ac_srcdir/configure.gnu --help=recursive
1141 elif test -f $ac_srcdir/configure; then
1143 $SHELL $ac_srcdir/configure --help=recursive
1144 elif test -f $ac_srcdir/configure.ac ||
1145 test -f $ac_srcdir/configure.in; then
1147 $ac_configure --help
1149 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1155 test -n "$ac_init_help" && exit 0
1156 if $ac_init_version; then
1159 Copyright (C) 2003 Free Software Foundation, Inc.
1160 This configure script is free software; the Free Software Foundation
1161 gives unlimited permission to copy, distribute and modify it.
1167 This file contains any messages produced by compilers while
1168 running configure, to aid debugging if configure makes a mistake.
1170 It was created by $as_me, which was
1171 generated by GNU Autoconf 2.59. Invocation command line was
1182 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1183 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1184 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1185 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1186 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1188 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1189 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1191 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1192 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1193 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1194 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1195 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1196 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1197 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1205 test -z "$as_dir" && as_dir=.
1206 echo "PATH: $as_dir"
1221 # Keep a trace of the command line.
1222 # Strip out --no-create and --no-recursion so they do not pile up.
1223 # Strip out --silent because we don't want to record it for future runs.
1224 # Also quote any args containing shell meta-characters.
1225 # Make two passes to allow for proper duplicate-argument suppression.
1230 ac_must_keep_next=false
1236 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1237 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1238 | -silent | --silent | --silen | --sile | --sil)
1240 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1241 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1244 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1246 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1247 if test $ac_must_keep_next = true; then
1248 ac_must_keep_next=false # Got value, back to normal.
1251 *=* | --config-cache | -C | -disable-* | --disable-* \
1252 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1253 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1254 | -with-* | --with-* | -without-* | --without-* | --x)
1255 case "$ac_configure_args0 " in
1256 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1259 -* ) ac_must_keep_next=true ;;
1262 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1263 # Get rid of the leading space.
1269 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1270 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1272 # When interrupted or exit'd, cleanup temporary files, and complete
1273 # config.log. We remove comments because anyway the quotes in there
1274 # would cause problems or look ugly.
1275 # WARNING: Be sure not to use single quotes in there, as some shells,
1276 # such as our DU 5.0 friend, will then `close' the trap.
1277 trap 'exit_status=$?
1278 # Save into config.log some information that might help in debugging.
1283 ## ---------------- ##
1284 ## Cache variables. ##
1285 ## ---------------- ##
1288 # The following way of writing the cache mishandles newlines in values,
1291 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1294 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1295 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1299 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1306 ## ----------------- ##
1307 ## Output variables. ##
1308 ## ----------------- ##
1311 for ac_var in $ac_subst_vars
1313 eval ac_val=$`echo $ac_var`
1314 echo "$ac_var='"'"'$ac_val'"'"'"
1318 if test -n "$ac_subst_files"; then
1325 for ac_var in $ac_subst_files
1327 eval ac_val=$`echo $ac_var`
1328 echo "$ac_var='"'"'$ac_val'"'"'"
1333 if test -s confdefs.h; then
1340 sed "/^$/d" confdefs.h | sort
1343 test "$ac_signal" != 0 &&
1344 echo "$as_me: caught signal $ac_signal"
1345 echo "$as_me: exit $exit_status"
1347 rm -f core *.core &&
1348 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1351 for ac_signal in 1 2 13 15; do
1352 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1356 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1357 rm -rf conftest* confdefs.h
1358 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1361 # Predefined preprocessor variables.
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_NAME "$PACKAGE_NAME"
1368 cat >>confdefs.h <<_ACEOF
1369 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_STRING "$PACKAGE_STRING"
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1388 # Let the site file select an alternate cache file if it wants to.
1389 # Prefer explicitly selected file to automatically selected ones.
1390 if test -z "$CONFIG_SITE"; then
1391 if test "x$prefix" != xNONE; then
1392 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1394 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1397 for ac_site_file in $CONFIG_SITE; do
1398 if test -r "$ac_site_file"; then
1399 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1400 echo "$as_me: loading site script $ac_site_file" >&6;}
1401 sed 's/^/| /' "$ac_site_file" >&5
1406 if test -r "$cache_file"; then
1407 # Some versions of bash will fail to source /dev/null (special
1408 # files actually), so we avoid doing that.
1409 if test -f "$cache_file"; then
1410 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1411 echo "$as_me: loading cache $cache_file" >&6;}
1413 [\\/]* | ?:[\\/]* ) . $cache_file;;
1414 *) . ./$cache_file;;
1418 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1419 echo "$as_me: creating cache $cache_file" >&6;}
1423 # Check that the precious variables saved in the cache have kept the same
1425 ac_cache_corrupted=false
1426 for ac_var in `(set) 2>&1 |
1427 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1428 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1429 eval ac_new_set=\$ac_env_${ac_var}_set
1430 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1431 eval ac_new_val="\$ac_env_${ac_var}_value"
1432 case $ac_old_set,$ac_new_set in
1434 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1435 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1436 ac_cache_corrupted=: ;;
1438 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1439 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1440 ac_cache_corrupted=: ;;
1443 if test "x$ac_old_val" != "x$ac_new_val"; then
1444 # differences in whitespace do not lead to failure.
1445 ac_old_val_w=`echo x $ac_old_val`
1446 ac_new_val_w=`echo x $ac_new_val`
1447 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1448 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1449 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1450 ac_cache_corrupted=:
1452 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1453 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1454 eval $ac_var=\$ac_old_val
1456 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1457 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1458 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1459 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1462 # Pass precious variables to config.status.
1463 if test "$ac_new_set" = set; then
1465 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1466 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1467 *) ac_arg=$ac_var=$ac_new_val ;;
1469 case " $ac_configure_args " in
1470 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1471 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1475 if $ac_cache_corrupted; then
1476 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1477 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1478 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1479 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1480 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1481 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1482 { (exit 1); exit 1; }; }
1486 ac_cpp='$CPP $CPPFLAGS'
1487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1515 # if PWD already has a value, it is probably wrong.
1516 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1518 # Export original configure arguments for use by sub-configures.
1519 # Quote arguments with shell meta charatcers.
1520 TOPLEVEL_CONFIGURE_ARGUMENTS=
1521 set -- "$progname" "$@"
1525 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
1526 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1527 # if the argument is of the form -foo=baz, quote the baz part only
1528 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1531 # Add the quoted argument to the list.
1532 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1534 if test "$silent" = yes; then
1535 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1537 # Remove the initial space we just introduced and, as these will be
1538 # expanded by make, quote '$'.
1539 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1542 # Find the build, host, and target systems.
1544 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1545 if test -f $ac_dir/install-sh; then
1547 ac_install_sh="$ac_aux_dir/install-sh -c"
1549 elif test -f $ac_dir/install.sh; then
1551 ac_install_sh="$ac_aux_dir/install.sh -c"
1553 elif test -f $ac_dir/shtool; then
1555 ac_install_sh="$ac_aux_dir/shtool install -c"
1559 if test -z "$ac_aux_dir"; then
1560 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1561 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1562 { (exit 1); exit 1; }; }
1564 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1565 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1566 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1568 # Make sure we can run config.sub.
1569 $ac_config_sub sun4 >/dev/null 2>&1 ||
1570 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1571 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1572 { (exit 1); exit 1; }; }
1574 echo "$as_me:$LINENO: checking build system type" >&5
1575 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1576 if test "${ac_cv_build+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 ac_cv_build_alias=$build_alias
1580 test -z "$ac_cv_build_alias" &&
1581 ac_cv_build_alias=`$ac_config_guess`
1582 test -z "$ac_cv_build_alias" &&
1583 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1584 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1585 { (exit 1); exit 1; }; }
1586 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1588 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1589 { (exit 1); exit 1; }; }
1592 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1593 echo "${ECHO_T}$ac_cv_build" >&6
1595 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1600 case ${build_alias} in
1601 "") build_noncanonical=${build} ;;
1602 *) build_noncanonical=${build_alias} ;;
1607 case ${host_alias} in
1608 "") host_noncanonical=${build_noncanonical} ;;
1609 *) host_noncanonical=${host_alias} ;;
1614 case ${target_alias} in
1615 "") target_noncanonical=${host_noncanonical} ;;
1616 *) target_noncanonical=${target_alias} ;;
1622 test "$host_noncanonical" = "$target_noncanonical" &&
1623 test "$program_prefix$program_suffix$program_transform_name" = \
1625 program_transform_name=s,y,y,
1627 echo "$as_me:$LINENO: checking host system type" >&5
1628 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1629 if test "${ac_cv_host+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1632 ac_cv_host_alias=$host_alias
1633 test -z "$ac_cv_host_alias" &&
1634 ac_cv_host_alias=$ac_cv_build_alias
1635 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1636 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1637 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1638 { (exit 1); exit 1; }; }
1641 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1642 echo "${ECHO_T}$ac_cv_host" >&6
1644 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1649 echo "$as_me:$LINENO: checking target system type" >&5
1650 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1651 if test "${ac_cv_target+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 ac_cv_target_alias=$target_alias
1655 test "x$ac_cv_target_alias" = "x" &&
1656 ac_cv_target_alias=$ac_cv_host_alias
1657 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1658 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1659 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1660 { (exit 1); exit 1; }; }
1663 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1664 echo "${ECHO_T}$ac_cv_target" >&6
1665 target=$ac_cv_target
1666 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1671 # The aliases save the names the user supplied, while $host etc.
1672 # will get canonicalized.
1673 test -n "$target_alias" &&
1674 test "$program_prefix$program_suffix$program_transform_name" = \
1676 program_prefix=${target_alias}-
1677 test "$program_prefix" != NONE &&
1678 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1679 # Use a double $ so make ignores it.
1680 test "$program_suffix" != NONE &&
1681 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1682 # Double any \ or $. echo might interpret backslashes.
1683 # By default was `s,x,x', remove it if useless.
1684 cat <<\_ACEOF >conftest.sed
1685 s/[\\$]/&&/g;s/;s,x,x,$//
1687 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1692 # Get 'install' or 'install-sh' and its variants.
1693 # Find a good install program. We prefer a C program (faster),
1694 # so one script is as good as another. But avoid the broken or
1695 # incompatible versions:
1696 # SysV /etc/install, /usr/sbin/install
1697 # SunOS /usr/etc/install
1698 # IRIX /sbin/install
1700 # AmigaOS /C/install, which installs bootblocks on floppy discs
1701 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1702 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1703 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1704 # OS/2's system install, which has a completely different semantic
1705 # ./install, which can be erroneously created by make from ./install.sh.
1706 # Reject install programs that cannot install multiple files.
1707 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1708 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1709 if test -z "$INSTALL"; then
1710 if test "${ac_cv_path_install+set}" = set; then
1711 echo $ECHO_N "(cached) $ECHO_C" >&6
1713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717 test -z "$as_dir" && as_dir=.
1718 # Account for people who put trailing slashes in PATH elements.
1720 ./ | .// | /cC/* | \
1721 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1722 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1725 # OSF1 and SCO ODT 3.0 have their own names for install.
1726 # Don't use installbsd from OSF since it installs stuff as root
1728 for ac_prog in ginstall scoinst install; do
1729 for ac_exec_ext in '' $ac_executable_extensions; do
1730 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1731 if test $ac_prog = install &&
1732 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1733 # AIX install. It has an incompatible calling convention.
1735 elif test $ac_prog = install &&
1736 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1737 # program-specific install script used by HP pwplus--don't use.
1740 rm -rf conftest.one conftest.two conftest.dir
1741 echo one > conftest.one
1742 echo two > conftest.two
1744 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1745 test -s conftest.one && test -s conftest.two &&
1746 test -s conftest.dir/conftest.one &&
1747 test -s conftest.dir/conftest.two
1749 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1760 rm -rf conftest.one conftest.two conftest.dir
1763 if test "${ac_cv_path_install+set}" = set; then
1764 INSTALL=$ac_cv_path_install
1766 # As a last resort, use the slow shell script. Don't cache a
1767 # value for INSTALL within a source directory, because that will
1768 # break other packages using the cache if that directory is
1769 # removed, or if the value is a relative name.
1770 INSTALL=$ac_install_sh
1773 echo "$as_me:$LINENO: result: $INSTALL" >&5
1774 echo "${ECHO_T}$INSTALL" >&6
1776 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1777 # It thinks the first close brace ends the variable substitution.
1778 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1780 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1782 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1784 echo "$as_me:$LINENO: checking whether ln works" >&5
1785 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1786 if test "${acx_cv_prog_LN+set}" = set; then
1787 echo $ECHO_N "(cached) $ECHO_C" >&6
1789 rm -f conftestdata_t
1790 echo >conftestdata_f
1791 if ln conftestdata_f conftestdata_t 2>/dev/null
1797 rm -f conftestdata_f conftestdata_t
1800 if test $acx_cv_prog_LN = no; then
1802 echo "$as_me:$LINENO: result: no, using $LN" >&5
1803 echo "${ECHO_T}no, using $LN" >&6
1805 LN="$acx_cv_prog_LN"
1806 echo "$as_me:$LINENO: result: yes" >&5
1807 echo "${ECHO_T}yes" >&6
1810 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1811 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1813 if test "$LN_S" = "ln -s"; then
1814 echo "$as_me:$LINENO: result: yes" >&5
1815 echo "${ECHO_T}yes" >&6
1817 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1818 echo "${ECHO_T}no, using $LN_S" >&6
1822 ### we might need to use some other shell than /bin/sh for running subshells
1823 ### If we are on Windows, search for the shell. This will permit people
1824 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1825 ### without also having to set CONFIG_SHELL. This code will work when
1826 ### using bash, which sets OSTYPE.
1829 if test x${CONFIG_SHELL} = x ; then
1830 if test ! -f /bin/sh ; then
1831 if test x${SHELL} != x && test -f ${SHELL} ; then
1832 CONFIG_SHELL=${SHELL}
1835 for prog in sh sh.exe bash bash.exe; do
1836 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1837 for dir in $PATH; do
1838 test -z "$dir" && dir=.
1839 if test -f $dir/$prog; then
1840 CONFIG_SHELL=$dir/$prog
1846 test -n "${CONFIG_SHELL}" && break
1854 config_shell=${CONFIG_SHELL-/bin/sh}
1856 moveifchange=${srcdir}/move-if-change
1858 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1860 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
1862 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1863 INSTALL="${srcpwd}/install-sh -c"
1866 # Set srcdir to "." if that's what it is.
1867 # This is important for multilib support.
1869 if test "${pwd}" = "${srcpwd}" ; then
1877 ### To add a new directory to the tree, first choose whether it is a target
1878 ### or a host dependent tool. Then put it into the appropriate list
1879 ### (library or tools, host or target), doing a dependency sort.
1881 # Subdirs will be configured in the order listed in build_configdirs,
1882 # configdirs, or target_configdirs; see the serialization section below.
1884 # Dependency sorting is only needed when *configuration* must be done in
1885 # a particular order. In all cases a dependency should be specified in
1886 # the Makefile, whether or not it's implicitly specified here.
1888 # Double entries in build_configdirs, configdirs, or target_configdirs may
1889 # cause circular dependencies and break everything horribly.
1891 # these library is used by various programs built for the build
1894 build_libs="build-libiberty"
1896 # these tools are built for the build environment
1897 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
1899 # these libraries are used by various programs built for the host environment
1901 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libiconv"
1903 # these tools are built for the host environment
1904 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1905 # know that we are building the simulator.
1906 # binutils, gas and ld appear in that order because it makes sense to run
1907 # "make check" in that particular order.
1908 # If --enable-gold is used, "gold" will replace "ld".
1909 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen 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"
1911 # libgcj represents the runtime libraries only used by gcj.
1912 libgcj="target-libffi \
1917 # these libraries are built for the target environment, and are built after
1918 # the host libraries and the host tools (which may be a cross compiler)
1920 target_libraries="target-libgcc \
1925 target-libstdc++-v3 \
1928 target-libgfortran \
1934 # these tools are built using the target libraries, and are intended to
1935 # run only in the target environment
1937 # note: any program that *uses* libraries that are in the "target_libraries"
1938 # list belongs in this list. those programs are also very likely
1939 # candidates for the "native_only" list which follows
1941 target_tools="target-examples target-groff target-gperf target-rda"
1943 ################################################################################
1945 ## All tools belong in one of the four categories, and are assigned above
1946 ## We assign ${configdirs} this way to remove all embedded newlines. This
1947 ## is important because configure will choke if they ever get through.
1948 ## ${configdirs} is directories we build using the host tools.
1949 ## ${target_configdirs} is directories we build using the target tools.
1950 configdirs=`echo ${host_libs} ${host_tools}`
1951 target_configdirs=`echo ${target_libraries} ${target_tools}`
1952 build_configdirs=`echo ${build_libs} ${build_tools}`
1956 ################################################################################
1958 srcname="gnu development package"
1960 # This gets set non-empty for some net releases of packages.
1963 # Define is_cross_compiler to save on calls to 'test'.
1965 if test x"${host}" = x"${target}" ; then
1966 is_cross_compiler=no
1968 is_cross_compiler=yes
1971 # Find the build and target subdir names.
1973 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1974 # have matching libraries, they should use host libraries: Makefile.tpl
1975 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1976 # However, they still use the build modules, because the corresponding
1977 # host modules (e.g. bison) are only built for the host when bootstrap
1979 # - build_subdir is where we find build modules, and never changes.
1980 # - build_libsubdir is where we find build libraries, and can be overridden.
1982 # Prefix 'build-' so this never conflicts with target_subdir.
1983 build_subdir="build-${build_noncanonical}"
1985 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1986 if test "${with_build_libsubdir+set}" = set; then
1987 withval="$with_build_libsubdir"
1988 build_libsubdir="$withval"
1990 build_libsubdir="$build_subdir"
1992 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1993 if ( test $srcdir = . && test -d gcc ) \
1994 || test -d $srcdir/../host-${host_noncanonical}; then
1995 host_subdir="host-${host_noncanonical}"
2000 target_subdir=${target_noncanonical}
2003 # Skipdirs are removed silently.
2005 # Noconfigdirs are removed loudly.
2009 # Make sure we don't let GNU ld be added if we didn't want it.
2010 if test x$with_gnu_ld = xno ; then
2012 noconfigdirs="$noconfigdirs ld gold"
2016 # Make sure we don't let GNU as be added if we didn't want it.
2017 if test x$with_gnu_as = xno ; then
2019 noconfigdirs="$noconfigdirs gas"
2022 # some tools are so dependent upon X11 that if we're not building with X,
2023 # it's not even worth trying to configure, much less build, that tool.
2026 yes | "") ;; # the default value for this tree is that X11 is available
2028 skipdirs="${skipdirs} tk itcl libgui"
2029 # We won't be able to build gdbtk without X.
2032 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2035 # Some tools are only suitable for building in a "native" situation.
2036 # Remove these if host!=target.
2037 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"
2039 # Similarly, some are only suitable for cross toolchains.
2040 # Remove these if host=target.
2041 cross_only="target-libgloss target-newlib target-opcodes"
2043 case $is_cross_compiler in
2044 no) skipdirs="${skipdirs} ${cross_only}" ;;
2045 yes) skipdirs="${skipdirs} ${native_only}" ;;
2048 # If both --with-headers and --with-libs are specified, default to
2050 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2051 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2052 if test x"${with_newlib}" = x ; then
2057 # Recognize --with-newlib/--without-newlib.
2058 case ${with_newlib} in
2059 no) skipdirs="${skipdirs} target-newlib" ;;
2060 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2063 # Handle --enable-gold.
2065 # Check whether --enable-gold or --disable-gold was given.
2066 if test "${enable_gold+set}" = set; then
2067 enableval="$enable_gold"
2068 ENABLE_GOLD=$enableval
2072 if test "${ENABLE_GOLD}" = "yes"; then
2073 # Check for ELF target.
2076 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2077 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2078 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2080 *-*-linux*aout* | *-*-linux*oldld*)
2088 if test "$is_elf" = "yes"; then
2089 # Check for target supported by gold.
2091 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2092 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2098 # Configure extra directories which are host specific
2102 configdirs="$configdirs libtermcap" ;;
2105 # A target can indicate whether a language isn't supported for some reason.
2106 # Only spaces may be used in this macro; not newlines or tabs.
2107 unsupported_languages=
2109 # Remove more programs from consideration, based on the host or
2110 # target this usually means that a port of the program doesn't
2115 noconfigdirs="$noconfigdirs byacc"
2117 i[3456789]86-*-vsta)
2118 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2120 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2121 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2124 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2126 i[3456789]86-*-mingw32*)
2127 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2128 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2130 i[3456789]86-*-beos*)
2131 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2134 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2137 noconfigdirs="$noconfigdirs rcs"
2140 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2143 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2148 # Check whether --enable-libada or --disable-libada was given.
2149 if test "${enable_libada+set}" = set; then
2150 enableval="$enable_libada"
2151 ENABLE_LIBADA=$enableval
2155 if test "${ENABLE_LIBADA}" != "yes" ; then
2156 noconfigdirs="$noconfigdirs gnattools"
2159 # Check whether --enable-libssp or --disable-libssp was given.
2160 if test "${enable_libssp+set}" = set; then
2161 enableval="$enable_libssp"
2162 ENABLE_LIBSSP=$enableval
2167 # Save it here so that, even in case of --enable-libgcj, if the Java
2168 # front-end isn't enabled, we still get libgcj disabled.
2169 libgcj_saved=$libgcj
2170 case $enable_libgcj in
2172 # If we reset it here, it won't get added to noconfigdirs in the
2173 # target-specific build rules, so it will be forcibly enabled
2174 # (unless the Java language itself isn't enabled).
2178 # Make sure we get it printed in the list of not supported target libs.
2179 noconfigdirs="$noconfigdirs ${libgcj}"
2184 # Disable libmudflap on some systems.
2185 if test x$enable_libmudflap = x ; then
2187 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
2188 # Enable libmudflap by default in GNU and friends.
2191 # Enable libmudflap by default in FreeBSD.
2194 # Disable it by default everywhere else.
2195 noconfigdirs="$noconfigdirs target-libmudflap"
2200 # Disable libgomp on non POSIX hosted systems.
2201 if test x$enable_libgomp = x ; then
2202 # Enable libgomp by default on hosted POSIX systems.
2204 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
2206 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2208 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
2210 *-*-darwin* | *-*-aix*)
2213 noconfigdirs="$noconfigdirs target-libgomp"
2218 # Default libgloss CPU subdirectory.
2219 libgloss_dir="$target_cpu"
2223 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2226 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2227 noconfigdirs="$noconfigdirs sim target-rda"
2229 i[3456789]86-*-darwin* | x86_64-*-darwin[912]*)
2230 noconfigdirs="$noconfigdirs ld gas gprof"
2231 noconfigdirs="$noconfigdirs sim target-rda"
2234 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2235 noconfigdirs="$noconfigdirs sim target-rda"
2236 noconfigdirs="$noconfigdirs ${libgcj}"
2238 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
2239 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2242 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2243 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2244 && test -f /usr/local/include/gmp.h; then
2248 # Skip some stuff that's unsupported on some FreeBSD configurations.
2253 noconfigdirs="$noconfigdirs ${libgcj}"
2258 # Remove unsupported stuff on all kaOS configurations.
2259 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
2260 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2261 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2262 noconfigdirs="$noconfigdirs target-libgloss"
2265 # Skip some stuff on all NetBSD configurations.
2266 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2268 # Skip some stuff that's unsupported on some NetBSD configurations.
2270 i*86-*-netbsdelf*) ;;
2271 arm*-*-netbsdelf*) ;;
2273 noconfigdirs="$noconfigdirs ${libgcj}"
2278 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
2281 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2283 # The tpf target doesn't support gdb yet.
2285 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
2288 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
2291 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
2294 # ld works, but does not support shared libraries.
2295 # newlib is not 64 bit ready. I'm not sure about fileutils.
2296 # gas doesn't generate exception information.
2297 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2300 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
2303 # newlib is not 64 bit ready
2304 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2307 # newlib is not 64 bit ready
2308 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2311 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2314 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2316 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
2317 noconfigdirs="$noconfigdirs ${libgcj}"
2318 noconfigdirs="$noconfigdirs target-examples"
2319 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
2320 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
2321 noconfigdirs="$noconfigdirs expect dejagnu"
2322 # the C++ libraries don't build on top of CE's C libraries
2323 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2324 noconfigdirs="$noconfigdirs target-newlib"
2326 *-*-cygwin*) ;; # keep gdb and readline
2327 *) noconfigdirs="$noconfigdirs gdb readline"
2333 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2337 arm-*-coff | strongarm-*-coff | xscale-*-coff)
2338 noconfigdirs="$noconfigdirs ${libgcj}"
2341 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
2342 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2345 arm*-*-linux-gnueabi)
2346 noconfigdirs="$noconfigdirs target-qthreads"
2347 case ${with_newlib} in
2348 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2353 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
2357 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2360 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2363 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2366 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2369 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2372 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
2375 noconfigdirs="$noconfigdirs gdb"
2376 if test x${is_cross_compiler} != xno ; then
2377 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2380 c4x-*-* | tic4x-*-*)
2381 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2383 c54x*-*-* | tic54x-*-*)
2384 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2387 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2389 cris-*-* | crisv32-*-*)
2390 unsupported_languages="$unsupported_languages java"
2393 unsupported_languages="$unsupported_languages fortran"
2394 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2396 noconfigdirs="$noconfigdirs target-boehm-gc";;
2398 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
2400 unsupported_languages="$unsupported_languages fortran"
2401 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2406 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2409 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2412 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2414 ep9312-*-elf | ep9312-*-coff)
2418 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2421 noconfigdirs="$noconfigdirs ${libgcj}"
2424 noconfigdirs="$noconfigdirs ${libgcj}"
2425 noconfigdirs="$noconfigdirs gprof"
2428 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2431 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2433 hppa1.1-*-osf* | hppa1.1-*-bsd* )
2435 hppa*64*-*-linux* | parisc*64*-*-linux*)
2436 # In this case, it's because the hppa64-linux target is for
2437 # the kernel only at this point and has no libc, and thus no
2438 # headers, crt*.o, etc., all of which are needed by these.
2439 noconfigdirs="$noconfigdirs target-zlib"
2441 parisc*-*-linux* | hppa*-*-linux*)
2445 hppa*-*-openbsd* | \
2447 noconfigdirs="$noconfigdirs ${libgcj}"
2450 noconfigdirs="$noconfigdirs ld shellutils"
2456 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2457 # build on HP-UX 10.20.
2458 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
2461 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2464 # No gdb support yet.
2465 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
2468 # No gdb or ld support yet.
2469 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2472 # No gdb or ld support yet.
2473 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
2477 i[3456789]86-*-coff | i[3456789]86-*-elf)
2478 noconfigdirs="$noconfigdirs ${libgcj}"
2481 i[3456789]86-*-linux*)
2482 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2483 # not build java stuff by default.
2486 noconfigdirs="$noconfigdirs ${libgcj}";;
2489 # This section makes it possible to build newlib natively on linux.
2490 # If we are using a cross compiler then don't configure newlib.
2491 if test x${is_cross_compiler} != xno ; then
2492 noconfigdirs="$noconfigdirs target-newlib"
2494 noconfigdirs="$noconfigdirs target-libgloss"
2495 # If we are not using a cross compiler, do configure newlib.
2496 # Note however, that newlib will only be configured in this situation
2497 # if the --with-newlib option has been given, because otherwise
2498 # 'target-newlib' will appear in skipdirs.
2500 i[3456789]86-*-mingw32*)
2501 target_configdirs="$target_configdirs target-winsup"
2502 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2505 target_configdirs="$target_configdirs target-winsup"
2506 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2509 target_configdirs="$target_configdirs target-libtermcap target-winsup"
2510 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
2511 # always build newlib if winsup directory is present.
2512 if test -d "$srcdir/winsup/cygwin"; then
2513 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2514 elif test -d "$srcdir/newlib"; then
2515 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2518 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2519 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
2522 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2524 i[3456789]86-*-sco3.2v5*)
2525 # The linker does not yet know about weak symbols in COFF,
2526 # and is not configured to handle mixed ELF and COFF.
2527 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2529 i[3456789]86-*-sco*)
2530 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2532 i[3456789]86-*-solaris2*)
2533 noconfigdirs="$noconfigdirs target-libgloss"
2535 i[3456789]86-*-sysv4*)
2536 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2538 i[3456789]86-*-beos*)
2539 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2541 i[3456789]86-*-rdos*)
2542 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2545 noconfigdirs="$noconfigdirs ${libgcj}"
2547 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
2548 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2549 libgloss_dir=m68hc11
2552 noconfigdirs="$noconfigdirs ${libgcj}"
2555 noconfigdirs="$noconfigdirs ${libgcj}"
2557 m68*-*-* | fido-*-*)
2561 # The EPOC C++ environment does not support exceptions or rtti,
2562 # and so building libstdc++-v3 tends not to always work.
2563 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2566 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2567 unsupported_languages="$unsupported_languages fortran java"
2570 noconfigdirs="$noconfigdirs ${libgcj}"
2573 noconfigdirs="$noconfigdirs ${libgcj}"
2576 noconfigdirs="$noconfigdirs sim"
2579 # copied from rs6000-*-* entry
2580 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
2582 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2583 target_configdirs="$target_configdirs target-winsup"
2584 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
2585 # always build newlib.
2586 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2588 # This is temporary until we can link against shared libraries
2589 powerpcle-*-solaris*)
2590 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
2594 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2597 noconfigdirs="$noconfigdirs ${libgcj}"
2600 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
2604 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
2607 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
2610 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2613 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
2616 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2619 skipdirs="$skipdirs target-libiberty"
2620 noconfigdirs="$noconfigdirs ${libgcj}"
2621 if test x$with_newlib = xyes; then
2622 noconfigdirs="$noconfigdirs gprof"
2627 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2630 # Linking libjava exceeds command-line length limits on at least
2631 # IRIX 6.2, but not on IRIX 6.5.
2632 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2633 # <oldham@codesourcery.com>
2634 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2637 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2640 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2643 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2647 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
2651 i[3456789]86-*-vsta) ;; # don't add gprof back in
2652 i[3456789]86-*-go32*) ;; # don't add gprof back in
2653 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
2654 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2658 noconfigdirs="$noconfigdirs ${libgcj}" ;;
2660 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
2663 sparclet-*-aout* | sparc86x-*-*)
2667 noconfigdirs="$noconfigdirs ${libgcj}"
2670 noconfigdirs="$noconfigdirs ${libgcj}"
2674 noconfigdirs="$noconfigdirs ${libgcj}"
2678 noconfigdirs="$noconfigdirs ${libgcj}"
2679 if test x${is_cross_compiler} != xno ; then
2680 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2685 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
2686 noconfigdirs="$noconfigdirs ${libgcj}"
2688 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2691 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
2694 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2697 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2700 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2703 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
2706 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2709 noconfigdirs="$noconfigdirs ${libgcj}"
2712 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2714 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
2715 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2718 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2721 noconfigdirs="$noconfigdirs ${libgcj}"
2725 # If we aren't building newlib, then don't build libgloss, since libgloss
2726 # depends upon some newlib header files.
2727 case "${noconfigdirs}" in
2728 *target-libgloss*) ;;
2729 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2732 # Work in distributions that contain no compiler tools, like Autoconf.
2734 host_makefile_frag=/dev/null
2735 if test -d ${srcdir}/config ; then
2738 # Avoid "too much defining" errors from HPUX compiler.
2739 tentative_cc="cc -Wp,-H256000"
2740 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2741 # If it's HP/UX ar, this should be harmless.
2745 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2748 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2749 # chokes on bfd, the compiler won't let you assign integers to enums, and
2750 # other problems. Defining CC to gcc is a questionable way to say "don't use
2751 # the apollo compiler" (the preferred version of GCC could be called cc,
2752 # or whatever), but I'm not sure leaving CC as cc is any better...
2753 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2754 # Used to have BISON=yacc.
2758 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2761 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2762 tentative_cc="cc -Xa"
2763 host_makefile_frag="config/mh-cxux"
2765 m88k-motorola-sysv*)
2768 tentative_cc="cc -Wf,-XNg1000"
2769 host_makefile_frag="config/mh-decstation"
2772 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2773 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2774 host_makefile_frag="config/mh-necv4"
2777 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2778 # environment. Also bump switch table size so that cp-parse will
2779 # compile. Bump string length limit so linker builds.
2780 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2783 host_makefile_frag="config/mh-sysv4"
2786 # This is for a MIPS running RISC/os 4.52C.
2788 # This is needed for GDB, but needs to be in the top-level make because
2789 # if a library is compiled with the bsd headers and gets linked with the
2790 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2791 # a different size).
2792 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2793 # known except to select the sysv environment. Could we use /proc instead?
2794 # These "sysv environments" and "bsd environments" often end up being a pain.
2796 # This is not part of CFLAGS because perhaps not all C compilers have this
2798 tentative_cc="cc -systype sysv"
2803 i[3456789]86-*-sysv5*)
2804 host_makefile_frag="config/mh-sysv5"
2806 i[3456789]86-*-dgux*)
2807 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2808 host_makefile_frag="config/mh-dgux386"
2810 i[3456789]86-ncr-sysv4.3*)
2811 # The MetaWare compiler will generate a copyright message unless you
2812 # turn it off by adding the -Hnocopyr flag.
2813 tentative_cc="cc -Hnocopyr"
2815 i[3456789]86-ncr-sysv4*)
2816 # for an NCR 3000 (i486/SVR4) system.
2817 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2818 # This compiler not only emits obnoxious copyright messages every time
2819 # you run it, but it chokes and dies on a whole bunch of GNU source
2820 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2821 tentative_cc="/usr/ccs/ATT/cc"
2822 host_makefile_frag="config/mh-ncr3000"
2824 i[3456789]86-*-sco3.2v5*)
2826 i[3456789]86-*-sco*)
2827 # The native C compiler botches some simple uses of const. Unfortunately,
2828 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2829 tentative_cc="cc -Dconst="
2830 host_makefile_frag="config/mh-sco"
2832 i[3456789]86-*-udk*)
2833 host_makefile_frag="config/mh-sysv5"
2835 i[3456789]86-*-solaris2*)
2836 host_makefile_frag="config/mh-sysv4"
2838 i[3456789]86-*-msdosdjgpp*)
2839 host_makefile_frag="config/mh-djgpp"
2843 echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2844 echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2845 echo a >cygwin-cat-check
2846 if test `cat cygwin-cat-check` == a ; then
2848 echo "$as_me:$LINENO: result: yes" >&5
2849 echo "${ECHO_T}yes" >&6
2852 echo "$as_me:$LINENO: result: no" >&5
2853 echo "${ECHO_T}no" >&6
2854 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2855 Please either mount the build directory in binary mode or run the following
2856 commands before running any configure script:
2860 echo "$as_me: error: The cat command does not ignore carriage return characters.
2861 Please either mount the build directory in binary mode or run the following
2862 commands before running any configure script:
2866 { (exit 1); exit 1; }; }
2869 host_makefile_frag="config/mh-cygwin"
2872 host_makefile_frag="config/mh-mingw"
2875 host_makefile_frag="config/mh-interix"
2878 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2882 host_makefile_frag="config/mh-solaris"
2885 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2886 # without overflowing the jump tables (-J says to use a 32 bit table)
2887 tentative_cc="cc -J"
2890 tentative_cc="cc -Wp,-H256000"
2891 host_makefile_frag="config/mh-pa-hpux10"
2893 hppa*-hp-hpux* | hppa*-*-hiux*)
2894 tentative_cc="cc -Wp,-H256000"
2895 host_makefile_frag="config/mh-pa"
2898 host_makefile_frag="config/mh-pa"
2900 *-hp-hpux* | *-*-hiux*)
2901 tentative_cc="cc -Wp,-H256000"
2904 # /bin/cc is less than useful for our purposes. Always use GCC
2905 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2906 host_makefile_frag="config/mh-lynxrs6k"
2909 host_makefile_frag="config/mh-ppc-darwin"
2912 host_makefile_frag="config/mh-ppc-aix"
2915 host_makefile_frag="config/mh-ppc-aix"
2918 # /bin/cc is less than useful for our purposes. Always use GCC
2919 tentative_cc="/bin/gcc"
2922 host_makefile_frag="config/mh-sysv4"
2924 # This is placed last to prevent interfering with the cases above.
2926 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2927 host_makefile_frag="config/mh-x86omitfp"
2932 # If we aren't going to be using gcc, see if we can extract a definition
2933 # of CC from the fragment.
2934 # Actually, use the 'pre-extracted' version above.
2935 if test -z "${CC}" && test "${build}" = "${host}" ; then
2936 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2938 for dir in $PATH; do
2939 test -z "$dir" && dir=.
2940 if test -f $dir/gcc; then
2946 if test -z "${found}" && test -n "${tentative_cc}" ; then
2951 if test "${build}" != "${host}" ; then
2952 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2953 AS_FOR_BUILD=${AS_FOR_BUILD-as}
2954 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
2955 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2956 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2957 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2958 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2959 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2960 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2961 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2962 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2963 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2965 AR_FOR_BUILD="\$(AR)"
2966 AS_FOR_BUILD="\$(AS)"
2967 CC_FOR_BUILD="\$(CC)"
2968 CXX_FOR_BUILD="\$(CXX)"
2969 GCJ_FOR_BUILD="\$(GCJ)"
2970 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2971 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2972 LD_FOR_BUILD="\$(LD)"
2973 NM_FOR_BUILD="\$(NM)"
2974 RANLIB_FOR_BUILD="\$(RANLIB)"
2975 WINDRES_FOR_BUILD="\$(WINDRES)"
2976 WINDMC_FOR_BUILD="\$(WINDMC)"
2980 ac_cpp='$CPP $CPPFLAGS'
2981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2984 if test -n "$ac_tool_prefix"; then
2985 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2986 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2987 echo "$as_me:$LINENO: checking for $ac_word" >&5
2988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2989 if test "${ac_cv_prog_CC+set}" = set; then
2990 echo $ECHO_N "(cached) $ECHO_C" >&6
2992 if test -n "$CC"; then
2993 ac_cv_prog_CC="$CC" # Let the user override the test.
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3002 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3012 if test -n "$CC"; then
3013 echo "$as_me:$LINENO: result: $CC" >&5
3014 echo "${ECHO_T}$CC" >&6
3016 echo "$as_me:$LINENO: result: no" >&5
3017 echo "${ECHO_T}no" >&6
3021 if test -z "$ac_cv_prog_CC"; then
3023 # Extract the first word of "gcc", so it can be a program name with args.
3024 set dummy gcc; ac_word=$2
3025 echo "$as_me:$LINENO: checking for $ac_word" >&5
3026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3027 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
3030 if test -n "$ac_ct_CC"; then
3031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3040 ac_cv_prog_ac_ct_CC="gcc"
3041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3050 if test -n "$ac_ct_CC"; then
3051 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3052 echo "${ECHO_T}$ac_ct_CC" >&6
3054 echo "$as_me:$LINENO: result: no" >&5
3055 echo "${ECHO_T}no" >&6
3063 if test -z "$CC"; then
3064 if test -n "$ac_tool_prefix"; then
3065 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3066 set dummy ${ac_tool_prefix}cc; ac_word=$2
3067 echo "$as_me:$LINENO: checking for $ac_word" >&5
3068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3069 if test "${ac_cv_prog_CC+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3072 if test -n "$CC"; then
3073 ac_cv_prog_CC="$CC" # Let the user override the test.
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082 ac_cv_prog_CC="${ac_tool_prefix}cc"
3083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 if test -n "$CC"; then
3093 echo "$as_me:$LINENO: result: $CC" >&5
3094 echo "${ECHO_T}$CC" >&6
3096 echo "$as_me:$LINENO: result: no" >&5
3097 echo "${ECHO_T}no" >&6
3101 if test -z "$ac_cv_prog_CC"; then
3103 # Extract the first word of "cc", so it can be a program name with args.
3104 set dummy cc; ac_word=$2
3105 echo "$as_me:$LINENO: checking for $ac_word" >&5
3106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3107 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3110 if test -n "$ac_ct_CC"; then
3111 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120 ac_cv_prog_ac_ct_CC="cc"
3121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3129 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3130 if test -n "$ac_ct_CC"; then
3131 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3132 echo "${ECHO_T}$ac_ct_CC" >&6
3134 echo "$as_me:$LINENO: result: no" >&5
3135 echo "${ECHO_T}no" >&6
3144 if test -z "$CC"; then
3145 # Extract the first word of "cc", so it can be a program name with args.
3146 set dummy cc; ac_word=$2
3147 echo "$as_me:$LINENO: checking for $ac_word" >&5
3148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3149 if test "${ac_cv_prog_CC+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
3152 if test -n "$CC"; then
3153 ac_cv_prog_CC="$CC" # Let the user override the test.
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160 test -z "$as_dir" && as_dir=.
3161 for ac_exec_ext in '' $ac_executable_extensions; do
3162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3163 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3164 ac_prog_rejected=yes
3168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3174 if test $ac_prog_rejected = yes; then
3175 # We found a bogon in the path, so make sure we never use it.
3176 set dummy $ac_cv_prog_CC
3178 if test $# != 0; then
3179 # We chose a different compiler from the bogus one.
3180 # However, it has the same basename, so the bogon will be chosen
3181 # first if we set CC to just the basename; use the full file name.
3183 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3189 if test -n "$CC"; then
3190 echo "$as_me:$LINENO: result: $CC" >&5
3191 echo "${ECHO_T}$CC" >&6
3193 echo "$as_me:$LINENO: result: no" >&5
3194 echo "${ECHO_T}no" >&6
3198 if test -z "$CC"; then
3199 if test -n "$ac_tool_prefix"; then
3202 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3203 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3204 echo "$as_me:$LINENO: checking for $ac_word" >&5
3205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3206 if test "${ac_cv_prog_CC+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 if test -n "$CC"; then
3210 ac_cv_prog_CC="$CC" # Let the user override the test.
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 test -z "$as_dir" && as_dir=.
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3229 if test -n "$CC"; then
3230 echo "$as_me:$LINENO: result: $CC" >&5
3231 echo "${ECHO_T}$CC" >&6
3233 echo "$as_me:$LINENO: result: no" >&5
3234 echo "${ECHO_T}no" >&6
3237 test -n "$CC" && break
3240 if test -z "$CC"; then
3244 # Extract the first word of "$ac_prog", so it can be a program name with args.
3245 set dummy $ac_prog; ac_word=$2
3246 echo "$as_me:$LINENO: checking for $ac_word" >&5
3247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3248 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 if test -n "$ac_ct_CC"; then
3252 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258 test -z "$as_dir" && as_dir=.
3259 for ac_exec_ext in '' $ac_executable_extensions; do
3260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3261 ac_cv_prog_ac_ct_CC="$ac_prog"
3262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3271 if test -n "$ac_ct_CC"; then
3272 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3273 echo "${ECHO_T}$ac_ct_CC" >&6
3275 echo "$as_me:$LINENO: result: no" >&5
3276 echo "${ECHO_T}no" >&6
3279 test -n "$ac_ct_CC" && break
3288 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3289 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3291 See \`config.log' for more details." >&5
3292 echo "$as_me: error: no acceptable C compiler found in \$PATH
3293 See \`config.log' for more details." >&2;}
3294 { (exit 1); exit 1; }; }; }
3296 # Provide some information about the compiler.
3297 echo "$as_me:$LINENO:" \
3298 "checking for C compiler version" >&5
3299 ac_compiler=`set X $ac_compile; echo $2`
3300 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3301 (eval $ac_compiler --version </dev/null >&5) 2>&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }
3305 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3306 (eval $ac_compiler -v </dev/null >&5) 2>&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); }
3310 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3311 (eval $ac_compiler -V </dev/null >&5) 2>&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }
3316 cat >conftest.$ac_ext <<_ACEOF
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h. */
3331 ac_clean_files_save=$ac_clean_files
3332 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3333 # Try to create an executable without -o first, disregard a.out.
3334 # It will help us diagnose broken compilers, and finding out an intuition
3336 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3337 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3338 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3339 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3340 (eval $ac_link_default) 2>&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }; then
3344 # Find the output, starting from the most likely. This scheme is
3345 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3348 # Be careful to initialize this variable, since it used to be cached.
3349 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3351 # b.out is created by i960 compilers.
3352 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3354 test -f "$ac_file" || continue
3356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3359 # This is the source file.
3362 # We found the default executable, but exeext='' is most
3366 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3367 # FIXME: I believe we export ac_cv_exeext for Libtool,
3368 # but it would be cool to find out if it's true. Does anybody
3369 # maintain Libtool? --akim.
3377 echo "$as_me: failed program was:" >&5
3378 sed 's/^/| /' conftest.$ac_ext >&5
3380 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3381 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3382 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3383 See \`config.log' for more details." >&5
3384 echo "$as_me: error: C compiler cannot create executables
3385 See \`config.log' for more details." >&2;}
3386 { (exit 77); exit 77; }; }; }
3389 ac_exeext=$ac_cv_exeext
3390 echo "$as_me:$LINENO: result: $ac_file" >&5
3391 echo "${ECHO_T}$ac_file" >&6
3393 # Check the compiler produces executables we can run. If not, either
3394 # the compiler is broken, or we cross compile.
3395 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3396 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3397 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3398 # If not cross compiling, check that we can run a simple program.
3399 if test "$cross_compiling" != yes; then
3400 if { ac_try='./$ac_file'
3401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; }; then
3408 if test "$cross_compiling" = maybe; then
3411 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3412 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3414 If you meant to cross compile, use \`--host'.
3415 See \`config.log' for more details." >&5
3416 echo "$as_me: error: cannot run C compiled programs.
3417 If you meant to cross compile, use \`--host'.
3418 See \`config.log' for more details." >&2;}
3419 { (exit 1); exit 1; }; }; }
3423 echo "$as_me:$LINENO: result: yes" >&5
3424 echo "${ECHO_T}yes" >&6
3426 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3427 ac_clean_files=$ac_clean_files_save
3428 # Check the compiler produces executables we can run. If not, either
3429 # the compiler is broken, or we cross compile.
3430 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3431 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3432 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3433 echo "${ECHO_T}$cross_compiling" >&6
3435 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3436 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3438 (eval $ac_link) 2>&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; then
3442 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3443 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3444 # work properly (i.e., refer to `conftest.exe'), while it won't with
3446 for ac_file in conftest.exe conftest conftest.*; do
3447 test -f "$ac_file" || continue
3449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3450 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3457 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3458 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3460 See \`config.log' for more details." >&5
3461 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3462 See \`config.log' for more details." >&2;}
3463 { (exit 1); exit 1; }; }; }
3466 rm -f conftest$ac_cv_exeext
3467 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3468 echo "${ECHO_T}$ac_cv_exeext" >&6
3470 rm -f conftest.$ac_ext
3471 EXEEXT=$ac_cv_exeext
3473 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3474 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3475 if test "${ac_cv_objext+set}" = set; then
3476 echo $ECHO_N "(cached) $ECHO_C" >&6
3478 cat >conftest.$ac_ext <<_ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h. */
3493 rm -f conftest.o conftest.obj
3494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3495 (eval $ac_compile) 2>&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); }; then
3499 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3502 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3507 echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3510 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3511 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3512 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3513 See \`config.log' for more details." >&5
3514 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3515 See \`config.log' for more details." >&2;}
3516 { (exit 1); exit 1; }; }; }
3519 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3521 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3522 echo "${ECHO_T}$ac_cv_objext" >&6
3523 OBJEXT=$ac_cv_objext
3525 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3526 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3527 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3530 cat >conftest.$ac_ext <<_ACEOF
3533 cat confdefs.h >>conftest.$ac_ext
3534 cat >>conftest.$ac_ext <<_ACEOF
3535 /* end confdefs.h. */
3548 rm -f conftest.$ac_objext
3549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3550 (eval $ac_compile) 2>conftest.er1
3552 grep -v '^ *+' conftest.er1 >conftest.err
3554 cat conftest.err >&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); } &&
3557 { ac_try='test -z "$ac_c_werror_flag"
3558 || test ! -s conftest.err'
3559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; } &&
3564 { ac_try='test -s conftest.$ac_objext'
3565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }; }; then
3572 echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3578 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3581 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3582 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3583 GCC=`test $ac_compiler_gnu = yes && echo yes`
3584 ac_test_CFLAGS=${CFLAGS+set}
3585 ac_save_CFLAGS=$CFLAGS
3587 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3588 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3589 if test "${ac_cv_prog_cc_g+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3592 cat >conftest.$ac_ext <<_ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h. */
3607 rm -f conftest.$ac_objext
3608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3609 (eval $ac_compile) 2>conftest.er1
3611 grep -v '^ *+' conftest.er1 >conftest.err
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } &&
3616 { ac_try='test -z "$ac_c_werror_flag"
3617 || test ! -s conftest.err'
3618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); }; } &&
3623 { ac_try='test -s conftest.$ac_objext'
3624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; }; then
3631 echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3638 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3639 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3640 if test "$ac_test_CFLAGS" = set; then
3641 CFLAGS=$ac_save_CFLAGS
3642 elif test $ac_cv_prog_cc_g = yes; then
3643 if test "$GCC" = yes; then
3649 if test "$GCC" = yes; then
3655 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3656 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3657 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3660 ac_cv_prog_cc_stdc=no
3662 cat >conftest.$ac_ext <<_ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3670 #include <sys/types.h>
3671 #include <sys/stat.h>
3672 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3673 struct buf { int x; };
3674 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3675 static char *e (p, i)
3681 static char *f (char * (*g) (char **, int), char **p, ...)
3686 s = g (p, va_arg (v,int));
3691 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3692 function prototypes and stuff, but not '\xHH' hex character constants.
3693 These don't provoke an error unfortunately, instead are silently treated
3694 as 'x'. The following induces an error, until -std1 is added to get
3695 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3696 array size at least. It's necessary to write '\x00'==0 to get something
3697 that's true only with -std1. */
3698 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3700 int test (int i, double x);
3701 struct s1 {int (*f) (int a);};
3702 struct s2 {int (*f) (double a);};
3703 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3709 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3714 # Don't try gcc -ansi; that turns off useful extensions and
3715 # breaks some systems' header files.
3716 # AIX -qlanglvl=ansi
3717 # Ultrix and OSF/1 -std1
3718 # HP-UX 10.20 and later -Ae
3719 # HP-UX older versions -Aa -D_HPUX_SOURCE
3720 # SVR4 -Xc -D__EXTENSIONS__
3721 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3723 CC="$ac_save_CC $ac_arg"
3724 rm -f conftest.$ac_objext
3725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3726 (eval $ac_compile) 2>conftest.er1
3728 grep -v '^ *+' conftest.er1 >conftest.err
3730 cat conftest.err >&5
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); } &&
3733 { ac_try='test -z "$ac_c_werror_flag"
3734 || test ! -s conftest.err'
3735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; } &&
3740 { ac_try='test -s conftest.$ac_objext'
3741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); }; }; then
3746 ac_cv_prog_cc_stdc=$ac_arg
3749 echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3753 rm -f conftest.err conftest.$ac_objext
3755 rm -f conftest.$ac_ext conftest.$ac_objext
3760 case "x$ac_cv_prog_cc_stdc" in
3762 echo "$as_me:$LINENO: result: none needed" >&5
3763 echo "${ECHO_T}none needed" >&6 ;;