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 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
305 # So, first we look for a working echo in the user's PATH.
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
358 # maybe with a smaller string...
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 # Oops. We lost completely, so just stick with echo.
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
409 SHELL=${CONFIG_SHELL-/bin/sh}
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
416 # Identity of this package.
423 ac_unique_file="tree.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
428 # include <sys/types.h>
431 # include <sys/stat.h>
442 # if !STDC_HEADERS && HAVE_MEMORY_H
448 # include <strings.h>
451 # include <inttypes.h>
461 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_libsubdir build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP loose_warn c_loose_warn strict_warn c_strict_warn warn_cflags warn_cxxflags nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags ENABLE_BUILD_WITH_CXX enable_multilib enable_decimal_float enable_fixed_point enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI datarootdir docdir htmldir SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS BUILD_LDFLAGS STMP_FIXINC collect2 LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN OBJDUMP ac_ct_OBJDUMP ac_ct_AR STRIP ac_ct_STRIP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CXXCPP objdir enable_fast_install gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump gcc_cv_readelf libgcc_visibility GGC HOST_LIBS zlibdir zlibinc MAINT gcc_tooldir dollar slibdir subdirs srcdir all_compilers all_gtfiles all_lang_makefrags all_lang_makefiles all_languages all_selected_languages build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines build_file_translate check_languages cpp_install_dir xmake_file tmake_file TM_ENDIAN_CONFIG TM_MULTILIB_CONFIG TM_MULTILIB_EXCEPTIONS_CONFIG extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines use_gcc_stdint c_target_objs cxx_target_objs fortran_target_objs target_cpu_default GMPLIBS GMPINC PPLLIBS PPLINC CLOOGLIBS CLOOGINC pluginlibs enable_plugin LIBOBJS LTLIBOBJS'
462 ac_subst_files='language_hooks'
465 # Initialize some variables set by options.
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
477 program_transform_name=s,x,x,
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534 cache_file=$ac_optarg ;;
537 cache_file=config.cache ;;
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
543 datadir=$ac_optarg ;;
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
565 eval "enable_$ac_feature='$ac_optarg'" ;;
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
574 exec_prefix=$ac_optarg ;;
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
580 -help | --help | --hel | --he | -h)
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
597 includedir=$ac_optarg ;;
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
604 -libdir | --libdir | --libdi | --libd)
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
631 # Obsolete; use --without-fp.
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649 oldincludedir=$ac_optarg ;;
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661 program_prefix=$ac_optarg ;;
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668 program_suffix=$ac_optarg ;;
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
685 program_transform_name=$ac_optarg ;;
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
695 sbindir=$ac_optarg ;;
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
706 sharedstatedir=$ac_optarg ;;
708 -site | --site | --sit)
710 -site=* | --site=* | --sit=*)
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723 sysconfdir=$ac_optarg ;;
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
733 -version | --version | --versio | --versi | --vers | -V)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
747 eval "with_$ac_package='$ac_optarg'" ;;
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
759 # Obsolete; use --with-x.
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767 x_includes=$ac_optarg ;;
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774 x_libraries=$ac_optarg ;;
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802 if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
811 eval ac_val=$`echo $ac_var`
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
823 eval ac_val=$`echo $ac_var`
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
852 test "$silent" = yes && exec 6>/dev/null
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
872 if test ! -r $srcdir/$ac_unique_file; then
876 ac_srcdir_defaulted=no
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CC_set=${CC+set}
905 ac_cv_env_CC_set=${CC+set}
906 ac_cv_env_CC_value=$CC
907 ac_env_CFLAGS_set=${CFLAGS+set}
908 ac_env_CFLAGS_value=$CFLAGS
909 ac_cv_env_CFLAGS_set=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value=$CFLAGS
911 ac_env_LDFLAGS_set=${LDFLAGS+set}
912 ac_env_LDFLAGS_value=$LDFLAGS
913 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value=$LDFLAGS
915 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919 ac_env_CXX_set=${CXX+set}
920 ac_env_CXX_value=$CXX
921 ac_cv_env_CXX_set=${CXX+set}
922 ac_cv_env_CXX_value=$CXX
923 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
924 ac_env_CXXFLAGS_value=$CXXFLAGS
925 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
926 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
927 ac_env_CPP_set=${CPP+set}
928 ac_env_CPP_value=$CPP
929 ac_cv_env_CPP_set=${CPP+set}
930 ac_cv_env_CPP_value=$CPP
931 ac_env_CXXCPP_set=${CXXCPP+set}
932 ac_env_CXXCPP_value=$CXXCPP
933 ac_cv_env_CXXCPP_set=${CXXCPP+set}
934 ac_cv_env_CXXCPP_value=$CXXCPP
935 ac_env_GMPLIBS_set=${GMPLIBS+set}
936 ac_env_GMPLIBS_value=$GMPLIBS
937 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
938 ac_cv_env_GMPLIBS_value=$GMPLIBS
939 ac_env_GMPINC_set=${GMPINC+set}
940 ac_env_GMPINC_value=$GMPINC
941 ac_cv_env_GMPINC_set=${GMPINC+set}
942 ac_cv_env_GMPINC_value=$GMPINC
943 ac_env_PPLLIBS_set=${PPLLIBS+set}
944 ac_env_PPLLIBS_value=$PPLLIBS
945 ac_cv_env_PPLLIBS_set=${PPLLIBS+set}
946 ac_cv_env_PPLLIBS_value=$PPLLIBS
947 ac_env_PPLINC_set=${PPLINC+set}
948 ac_env_PPLINC_value=$PPLINC
949 ac_cv_env_PPLINC_set=${PPLINC+set}
950 ac_cv_env_PPLINC_value=$PPLINC
951 ac_env_CLOOGLIBS_set=${CLOOGLIBS+set}
952 ac_env_CLOOGLIBS_value=$CLOOGLIBS
953 ac_cv_env_CLOOGLIBS_set=${CLOOGLIBS+set}
954 ac_cv_env_CLOOGLIBS_value=$CLOOGLIBS
955 ac_env_CLOOGINC_set=${CLOOGINC+set}
956 ac_env_CLOOGINC_value=$CLOOGINC
957 ac_cv_env_CLOOGINC_set=${CLOOGINC+set}
958 ac_cv_env_CLOOGINC_value=$CLOOGINC
961 # Report the --help message.
963 if test "$ac_init_help" = "long"; then
964 # Omit some internal or obsolete options to make the list less imposing.
965 # This message is too long to be a string in the A/UX 3.1 sh.
967 \`configure' configures this package to adapt to many kinds of systems.
969 Usage: $0 [OPTION]... [VAR=VALUE]...
971 To assign environment variables (e.g., CC, CFLAGS...), specify them as
972 VAR=VALUE. See below for descriptions of some of the useful variables.
974 Defaults for the options are specified in brackets.
977 -h, --help display this help and exit
978 --help=short display options specific to this package
979 --help=recursive display the short help of all the included packages
980 -V, --version display version information and exit
981 -q, --quiet, --silent do not print \`checking...' messages
982 --cache-file=FILE cache test results in FILE [disabled]
983 -C, --config-cache alias for \`--cache-file=config.cache'
984 -n, --no-create do not create output files
985 --srcdir=DIR find the sources in DIR [configure dir or \`..']
990 Installation directories:
991 --prefix=PREFIX install architecture-independent files in PREFIX
993 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
996 By default, \`make install' will install all the files in
997 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
998 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
999 for instance \`--prefix=\$HOME'.
1001 For better control, use the options below.
1003 Fine tuning of the installation directories:
1004 --bindir=DIR user executables [EPREFIX/bin]
1005 --sbindir=DIR system admin executables [EPREFIX/sbin]
1006 --libexecdir=DIR program executables [EPREFIX/libexec]
1007 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1008 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1009 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1010 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1011 --libdir=DIR object code libraries [EPREFIX/lib]
1012 --includedir=DIR C header files [PREFIX/include]
1013 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1014 --infodir=DIR info documentation [PREFIX/info]
1015 --mandir=DIR man documentation [PREFIX/man]
1021 --program-prefix=PREFIX prepend PREFIX to installed program names
1022 --program-suffix=SUFFIX append SUFFIX to installed program names
1023 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1026 --build=BUILD configure for building on BUILD [guessed]
1027 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1028 --target=TARGET configure for building compilers for TARGET [HOST]
1032 if test -n "$ac_init_help"; then
1037 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1038 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1039 --enable-generated-files-in-srcdir
1040 put copies of generated files in source dir
1041 intended for creating source tarballs for users
1042 without texinfo bison or flex.
1043 --enable-werror-always enable -Werror despite compiler version
1044 --enable-checking=LIST
1045 enable expensive run-time checks. With LIST,
1046 enable only specific categories of checks.
1047 Categories are: yes,no,all,none,release.
1048 Flags are: assert,df,fold,gc,gcac,gimple,misc,
1049 rtlflag,rtl,runtime,tree,valgrind,types.
1050 --enable-coverage=LEVEL
1051 enable compiler's code coverage collection.
1052 Use to measure compiler performance and locate
1053 unused parts of the compiler. With LEVEL, specify
1054 optimization. Values are opt, noopt,
1056 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1057 --enable-build-with-cxx build with C++ compiler instead of C compiler
1058 --enable-multilib enable library support for multiple ABIs
1059 --enable-__cxa_atexit enable __cxa_atexit for C++
1060 --enable-decimal-float={no,yes,bid,dpd}
1061 enable decimal float extension to C. Selecting 'bid'
1062 or 'dpd' choses which decimal floating point format
1064 --enable-fixed-point enable fixed-point arithmetic extension to C
1065 --enable-threads enable thread usage for target GCC
1066 --enable-threads=LIB use LIB thread package for target GCC
1067 --enable-tls enable or disable generation of tls code
1068 overriding the assembler check for tls support
1069 --enable-objc-gc enable the use of Boehm's garbage collector with
1070 the GNU Objective-C runtime
1071 --disable-shared don't provide a shared libgcc
1072 --enable-intermodule build the compiler in one step
1073 --enable-languages=LIST specify which front-ends to build
1074 --disable-rpath do not hardcode runtime library paths
1075 --enable-initfini-array use .init_array/.fini_array sections
1076 --enable-sjlj-exceptions
1077 arrange to use setjmp/longjmp exception handling
1078 --enable-secureplt enable -msecure-plt by default for PowerPC
1079 --enable-cld enable -mcld by default for 32bit x86
1080 --disable-win32-registry
1081 disable lookup of installation paths in the
1082 Registry on Windows hosts
1083 --enable-win32-registry enable registry lookup (default)
1084 --enable-win32-registry=KEY
1085 use KEY instead of GCC version as the last portion
1087 --enable-shared[=PKGS]
1088 build shared libraries [default=yes]
1089 --enable-static[=PKGS]
1090 build static libraries [default=yes]
1091 --enable-fast-install[=PKGS]
1092 optimize for fast installation [default=yes]
1093 --disable-libtool-lock avoid locking (might break parallel builds)
1094 --enable-linker-build-id
1095 compiler will always pass --build-id to linker
1096 --enable-maintainer-mode
1097 enable make rules and dependencies not useful
1098 (and sometimes confusing) to the casual installer
1099 --enable-version-specific-runtime-libs
1100 specify that runtime libraries should be
1101 installed in a compiler-specific directory
1102 --enable-plugin enable plugin support
1105 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1106 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1107 --with-build-libsubdir=DIR Directory where to find libraries for build system
1108 --with-local-prefix=DIR specifies directory to put local include
1109 --with-gxx-include-dir=DIR
1110 specifies directory to put g++ header files
1111 --with-cpp-install-dir=DIR
1112 install the user visible C preprocessor in DIR
1113 (relative to PREFIX) as well as PREFIX/bin
1114 --with-gnu-ld arrange to work with GNU ld.
1115 --with-ld arrange to use the specified ld (full pathname)
1116 --with-demangler-in-ld try to use demangler in GNU ld.
1117 --with-gnu-as arrange to work with GNU as
1118 --with-as arrange to use the specified as (full pathname)
1119 --with-stabs arrange to use stabs instead of host debug format
1120 --with-dwarf2 force the default debug format to be DWARF 2
1121 --with-build-sysroot=sysroot
1122 use sysroot as the system root during the build
1123 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1124 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1125 --with-bugurl=URL Direct users to URL to report a bug
1126 --with-multilib-list Select multilibs (SH only)
1127 --with-gnu-ld assume the C compiler uses GNU ld default=no
1128 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1129 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1130 --with-system-libunwind use installed libunwind
1131 --with-pic try to use only PIC/non-PIC objects [default=use
1133 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1134 --with-long-double-128 Use 128-bit long double by default.
1135 --with-gc={page,zone} choose the garbage collection mechanism to use
1137 --with-system-zlib use installed libz
1138 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1139 --with-datarootdir=DIR Use DIR as the data root [PREFIX/share]
1140 --with-docdir=DIR Install documentation in DIR [DATAROOTDIR]
1141 --with-htmldir=DIR html documentation in in DIR [DOCDIR]
1143 Some influential environment variables:
1144 CC C compiler command
1145 CFLAGS C compiler flags
1146 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1147 nonstandard directory <lib dir>
1148 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1149 headers in a nonstandard directory <include dir>
1150 CXX C++ compiler command
1151 CXXFLAGS C++ compiler flags
1153 CXXCPP C++ preprocessor
1154 GMPLIBS How to link GMP
1155 GMPINC How to find GMP include files
1156 PPLLIBS How to link PPL
1157 PPLINC How to find PPL include files
1158 CLOOGLIBS How to link CLOOG
1159 CLOOGINC How to find CLOOG include files
1161 Use these variables to override the choices made by `configure' or to help
1162 it to find libraries and programs with nonstandard names/locations.
1167 if test "$ac_init_help" = "recursive"; then
1168 # If there are subdirs, report their specific --help.
1170 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1171 test -d $ac_dir || continue
1174 if test "$ac_dir" != .; then
1175 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1176 # A "../" for each directory in $ac_dir_suffix.
1177 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1179 ac_dir_suffix= ac_top_builddir=
1183 .) # No --srcdir option. We are building in place.
1185 if test -z "$ac_top_builddir"; then
1188 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1190 [\\/]* | ?:[\\/]* ) # Absolute path.
1191 ac_srcdir=$srcdir$ac_dir_suffix;
1192 ac_top_srcdir=$srcdir ;;
1194 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1195 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1198 # Do not use `cd foo && pwd` to compute absolute paths, because
1199 # the directories may not exist.
1201 .) ac_abs_builddir="$ac_dir";;
1204 .) ac_abs_builddir=`pwd`;;
1205 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1206 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1209 case $ac_abs_builddir in
1210 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1212 case ${ac_top_builddir}. in
1213 .) ac_abs_top_builddir=$ac_abs_builddir;;
1214 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1215 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1218 case $ac_abs_builddir in
1219 .) ac_abs_srcdir=$ac_srcdir;;
1222 .) ac_abs_srcdir=$ac_abs_builddir;;
1223 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1224 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1227 case $ac_abs_builddir in
1228 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1230 case $ac_top_srcdir in
1231 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1232 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1233 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1238 # Check for guested configure; otherwise get Cygnus style configure.
1239 if test -f $ac_srcdir/configure.gnu; then
1241 $SHELL $ac_srcdir/configure.gnu --help=recursive
1242 elif test -f $ac_srcdir/configure; then
1244 $SHELL $ac_srcdir/configure --help=recursive
1245 elif test -f $ac_srcdir/configure.ac ||
1246 test -f $ac_srcdir/configure.in; then
1248 $ac_configure --help
1250 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1256 test -n "$ac_init_help" && exit 0
1257 if $ac_init_version; then
1260 Copyright (C) 2003 Free Software Foundation, Inc.
1261 This configure script is free software; the Free Software Foundation
1262 gives unlimited permission to copy, distribute and modify it.
1268 This file contains any messages produced by compilers while
1269 running configure, to aid debugging if configure makes a mistake.
1271 It was created by $as_me, which was
1272 generated by GNU Autoconf 2.59. Invocation command line was
1283 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1284 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1285 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1286 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1287 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1289 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1290 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1292 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1293 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1294 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1295 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1296 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1297 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1298 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1306 test -z "$as_dir" && as_dir=.
1307 echo "PATH: $as_dir"
1322 # Keep a trace of the command line.
1323 # Strip out --no-create and --no-recursion so they do not pile up.
1324 # Strip out --silent because we don't want to record it for future runs.
1325 # Also quote any args containing shell meta-characters.
1326 # Make two passes to allow for proper duplicate-argument suppression.
1331 ac_must_keep_next=false
1337 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1339 | -silent | --silent | --silen | --sile | --sil)
1341 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1342 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1345 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1347 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1348 if test $ac_must_keep_next = true; then
1349 ac_must_keep_next=false # Got value, back to normal.
1352 *=* | --config-cache | -C | -disable-* | --disable-* \
1353 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1354 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1355 | -with-* | --with-* | -without-* | --without-* | --x)
1356 case "$ac_configure_args0 " in
1357 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1360 -* ) ac_must_keep_next=true ;;
1363 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1364 # Get rid of the leading space.
1370 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1371 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1373 # When interrupted or exit'd, cleanup temporary files, and complete
1374 # config.log. We remove comments because anyway the quotes in there
1375 # would cause problems or look ugly.
1376 # WARNING: Be sure not to use single quotes in there, as some shells,
1377 # such as our DU 5.0 friend, will then `close' the trap.
1378 trap 'exit_status=$?
1379 # Save into config.log some information that might help in debugging.
1384 ## ---------------- ##
1385 ## Cache variables. ##
1386 ## ---------------- ##
1389 # The following way of writing the cache mishandles newlines in values,
1392 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1395 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1396 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1400 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1407 ## ----------------- ##
1408 ## Output variables. ##
1409 ## ----------------- ##
1412 for ac_var in $ac_subst_vars
1414 eval ac_val=$`echo $ac_var`
1415 echo "$ac_var='"'"'$ac_val'"'"'"
1419 if test -n "$ac_subst_files"; then
1426 for ac_var in $ac_subst_files
1428 eval ac_val=$`echo $ac_var`
1429 echo "$ac_var='"'"'$ac_val'"'"'"
1434 if test -s confdefs.h; then
1441 sed "/^$/d" confdefs.h | sort
1444 test "$ac_signal" != 0 &&
1445 echo "$as_me: caught signal $ac_signal"
1446 echo "$as_me: exit $exit_status"
1448 rm -f core *.core &&
1449 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1452 for ac_signal in 1 2 13 15; do
1453 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1457 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1458 rm -rf conftest* confdefs.h
1459 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1462 # Predefined preprocessor variables.
1464 cat >>confdefs.h <<_ACEOF
1465 #define PACKAGE_NAME "$PACKAGE_NAME"
1469 cat >>confdefs.h <<_ACEOF
1470 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1474 cat >>confdefs.h <<_ACEOF
1475 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1479 cat >>confdefs.h <<_ACEOF
1480 #define PACKAGE_STRING "$PACKAGE_STRING"
1484 cat >>confdefs.h <<_ACEOF
1485 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1489 # Let the site file select an alternate cache file if it wants to.
1490 # Prefer explicitly selected file to automatically selected ones.
1491 if test -z "$CONFIG_SITE"; then
1492 if test "x$prefix" != xNONE; then
1493 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1495 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1498 for ac_site_file in $CONFIG_SITE; do
1499 if test -r "$ac_site_file"; then
1500 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1501 echo "$as_me: loading site script $ac_site_file" >&6;}
1502 sed 's/^/| /' "$ac_site_file" >&5
1507 if test -r "$cache_file"; then
1508 # Some versions of bash will fail to source /dev/null (special
1509 # files actually), so we avoid doing that.
1510 if test -f "$cache_file"; then
1511 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1512 echo "$as_me: loading cache $cache_file" >&6;}
1514 [\\/]* | ?:[\\/]* ) . $cache_file;;
1515 *) . ./$cache_file;;
1519 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1520 echo "$as_me: creating cache $cache_file" >&6;}
1524 # Check that the precious variables saved in the cache have kept the same
1526 ac_cache_corrupted=false
1527 for ac_var in `(set) 2>&1 |
1528 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1529 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1530 eval ac_new_set=\$ac_env_${ac_var}_set
1531 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1532 eval ac_new_val="\$ac_env_${ac_var}_value"
1533 case $ac_old_set,$ac_new_set in
1535 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1536 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1537 ac_cache_corrupted=: ;;
1539 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1540 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1541 ac_cache_corrupted=: ;;
1544 if test "x$ac_old_val" != "x$ac_new_val"; then
1545 # differences in whitespace do not lead to failure.
1546 ac_old_val_w=`echo x $ac_old_val`
1547 ac_new_val_w=`echo x $ac_new_val`
1548 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1549 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1550 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1551 ac_cache_corrupted=:
1553 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1554 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1555 eval $ac_var=\$ac_old_val
1557 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1558 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1559 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1560 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1563 # Pass precious variables to config.status.
1564 if test "$ac_new_set" = set; then
1566 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1567 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1568 *) ac_arg=$ac_var=$ac_new_val ;;
1570 case " $ac_configure_args " in
1571 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1572 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1576 if $ac_cache_corrupted; then
1577 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1578 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1579 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1580 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1581 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1582 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1583 { (exit 1); exit 1; }; }
1587 ac_cpp='$CPP $CPPFLAGS'
1588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1614 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1617 gcc_version=`cat $srcdir/BASE-VER`
1619 # Determine the host, build, and target systems
1621 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1622 if test -f $ac_dir/install-sh; then
1624 ac_install_sh="$ac_aux_dir/install-sh -c"
1626 elif test -f $ac_dir/install.sh; then
1628 ac_install_sh="$ac_aux_dir/install.sh -c"
1630 elif test -f $ac_dir/shtool; then
1632 ac_install_sh="$ac_aux_dir/shtool install -c"
1636 if test -z "$ac_aux_dir"; then
1637 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1638 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1639 { (exit 1); exit 1; }; }
1641 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1642 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1643 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1645 # Make sure we can run config.sub.
1646 $ac_config_sub sun4 >/dev/null 2>&1 ||
1647 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1648 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1649 { (exit 1); exit 1; }; }
1651 echo "$as_me:$LINENO: checking build system type" >&5
1652 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1653 if test "${ac_cv_build+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1656 ac_cv_build_alias=$build_alias
1657 test -z "$ac_cv_build_alias" &&
1658 ac_cv_build_alias=`$ac_config_guess`
1659 test -z "$ac_cv_build_alias" &&
1660 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1661 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1662 { (exit 1); exit 1; }; }
1663 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1664 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1665 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1666 { (exit 1); exit 1; }; }
1669 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1670 echo "${ECHO_T}$ac_cv_build" >&6
1672 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1673 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1674 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1677 echo "$as_me:$LINENO: checking host system type" >&5
1678 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1679 if test "${ac_cv_host+set}" = set; then
1680 echo $ECHO_N "(cached) $ECHO_C" >&6
1682 ac_cv_host_alias=$host_alias
1683 test -z "$ac_cv_host_alias" &&
1684 ac_cv_host_alias=$ac_cv_build_alias
1685 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1686 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1687 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1688 { (exit 1); exit 1; }; }
1691 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1692 echo "${ECHO_T}$ac_cv_host" >&6
1694 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1695 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1696 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1699 echo "$as_me:$LINENO: checking target system type" >&5
1700 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1701 if test "${ac_cv_target+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1704 ac_cv_target_alias=$target_alias
1705 test "x$ac_cv_target_alias" = "x" &&
1706 ac_cv_target_alias=$ac_cv_host_alias
1707 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1708 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1709 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1710 { (exit 1); exit 1; }; }
1713 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1714 echo "${ECHO_T}$ac_cv_target" >&6
1715 target=$ac_cv_target
1716 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1717 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1718 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1721 # The aliases save the names the user supplied, while $host etc.
1722 # will get canonicalized.
1723 test -n "$target_alias" &&
1724 test "$program_prefix$program_suffix$program_transform_name" = \
1726 program_prefix=${target_alias}-
1728 # Determine the noncanonical target name, for directory use.
1729 case ${build_alias} in
1730 "") build_noncanonical=${build} ;;
1731 *) build_noncanonical=${build_alias} ;;
1734 case ${host_alias} in
1735 "") host_noncanonical=${build_noncanonical} ;;
1736 *) host_noncanonical=${host_alias} ;;
1739 case ${target_alias} in
1740 "") target_noncanonical=${host_noncanonical} ;;
1741 *) target_noncanonical=${target_alias} ;;
1747 # Determine the target- and build-specific subdirectories
1749 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1750 # have matching libraries, they should use host libraries: Makefile.tpl
1751 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1752 # However, they still use the build modules, because the corresponding
1753 # host modules (e.g. bison) are only built for the host when bootstrap
1755 # - build_subdir is where we find build modules, and never changes.
1756 # - build_libsubdir is where we find build libraries, and can be overridden.
1758 # Prefix 'build-' so this never conflicts with target_subdir.
1759 build_subdir="build-${build_noncanonical}"
1761 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1762 if test "${with_build_libsubdir+set}" = set; then
1763 withval="$with_build_libsubdir"
1764 build_libsubdir="$withval"
1766 build_libsubdir="$build_subdir"
1768 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1769 if ( test $srcdir = . && test -d gcc ) \
1770 || test -d $srcdir/../host-${host_noncanonical}; then
1771 host_subdir="host-${host_noncanonical}"
1776 target_subdir=${target_noncanonical}
1779 # Set program_transform_name
1780 test "$program_prefix" != NONE &&
1781 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1782 # Use a double $ so make ignores it.
1783 test "$program_suffix" != NONE &&
1784 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1785 # Double any \ or $. echo might interpret backslashes.
1786 # By default was `s,x,x', remove it if useless.
1787 cat <<\_ACEOF >conftest.sed
1788 s/[\\$]/&&/g;s/;s,x,x,$//
1790 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1794 # Check for bogus environment variables.
1795 # Test if LIBRARY_PATH contains the notation for the current directory
1796 # since this would lead to problems installing/building glibc.
1797 # LIBRARY_PATH contains the current directory if one of the following
1799 # - one of the terminals (":" and ";") is the first or last sign
1800 # - two terminals occur directly after each other
1801 # - the path contains an element with a dot in it
1802 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1803 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1804 case ${LIBRARY_PATH} in
1805 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1806 library_path_setting="contains current directory"
1809 library_path_setting="ok"
1812 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1813 echo "${ECHO_T}$library_path_setting" >&6
1814 if test "$library_path_setting" != "ok"; then
1815 { { echo "$as_me:$LINENO: error:
1816 *** LIBRARY_PATH shouldn't contain the current directory when
1817 *** building gcc. Please change the environment variable
1818 *** and run configure again." >&5
1819 echo "$as_me: error:
1820 *** LIBRARY_PATH shouldn't contain the current directory when
1821 *** building gcc. Please change the environment variable
1822 *** and run configure again." >&2;}
1823 { (exit 1); exit 1; }; }
1826 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1827 # since this would lead to problems installing/building glibc.
1828 # GCC_EXEC_PREFIX contains the current directory if one of the following
1830 # - one of the terminals (":" and ";") is the first or last sign
1831 # - two terminals occur directly after each other
1832 # - the path contains an element with a dot in it
1833 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1834 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1835 case ${GCC_EXEC_PREFIX} in
1836 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1837 gcc_exec_prefix_setting="contains current directory"
1840 gcc_exec_prefix_setting="ok"
1843 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1844 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1845 if test "$gcc_exec_prefix_setting" != "ok"; then
1846 { { echo "$as_me:$LINENO: error:
1847 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1848 *** building gcc. Please change the environment variable
1849 *** and run configure again." >&5
1850 echo "$as_me: error:
1851 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1852 *** building gcc. Please change the environment variable
1853 *** and run configure again." >&2;}
1854 { (exit 1); exit 1; }; }
1861 # Specify the local prefix
1864 # Check whether --with-local-prefix or --without-local-prefix was given.
1865 if test "${with_local_prefix+set}" = set; then
1866 withval="$with_local_prefix"
1867 case "${withval}" in
1868 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1869 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1870 { (exit 1); exit 1; }; } ;;
1872 *) local_prefix=$with_local_prefix ;;
1876 # Default local prefix if it is empty
1877 if test x$local_prefix = x; then
1878 local_prefix=/usr/local
1881 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1882 # passed in by the toplevel make and thus we'd get different behavior
1883 # depending on where we built the sources.
1884 gcc_gxx_include_dir=
1885 # Specify the g++ header file directory
1887 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1888 if test "${with_gxx_include_dir+set}" = set; then
1889 withval="$with_gxx_include_dir"
1890 case "${withval}" in
1891 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1892 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1893 { (exit 1); exit 1; }; } ;;
1895 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1899 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1900 if test x${gcc_gxx_include_dir} = x; then
1901 if test x${enable_version_specific_runtime_libs} = xyes; then
1902 gcc_gxx_include_dir='${libsubdir}/include/c++'
1904 libstdcxx_incdir='include/c++/$(version)'
1905 if test x$host != x$target; then
1906 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1908 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1913 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1914 if test "${with_cpp_install_dir+set}" = set; then
1915 withval="$with_cpp_install_dir"
1916 if test x$withval = xyes; then
1917 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1918 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1919 { (exit 1); exit 1; }; }
1920 elif test x$withval != xno; then
1921 cpp_install_dir=$withval
1925 # We would like to our source tree to be readonly. However when releases or
1926 # pre-releases are generated, the flex/bison generated files as well as the
1927 # various formats of manuals need to be included along with the rest of the
1928 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1931 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1932 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1933 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1934 if test "${enable_generated_files_in_srcdir+set}" = set; then
1935 enableval="$enable_generated_files_in_srcdir"
1936 generated_files_in_srcdir=$enableval
1938 generated_files_in_srcdir=no
1941 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1942 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1944 if test "$generated_files_in_srcdir" = "yes"; then
1951 # -------------------
1952 # Find default linker
1953 # -------------------
1957 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1958 if test "${with_gnu_ld+set}" = set; then
1959 withval="$with_gnu_ld"
1960 gnu_ld_flag="$with_gnu_ld"
1965 # With pre-defined ld
1967 # Check whether --with-ld or --without-ld was given.
1968 if test "${with_ld+set}" = set; then
1970 DEFAULT_LINKER="$with_ld"
1972 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1973 if test ! -x "$DEFAULT_LINKER"; then
1974 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1975 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1976 { (exit 1); exit 1; }; }
1977 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1981 cat >>confdefs.h <<_ACEOF
1982 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1987 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1989 cat >>confdefs.h <<_ACEOF
1990 #define HAVE_GNU_LD $gnu_ld
1994 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1995 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1996 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1997 if test x"$gnu_ld_flag" = x"no"; then
1998 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1999 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
2001 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
2002 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
2005 echo "$as_me:$LINENO: result: no" >&5
2006 echo "${ECHO_T}no" >&6
2009 # With demangler in GNU ld
2011 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
2012 if test "${with_demangler_in_ld+set}" = set; then
2013 withval="$with_demangler_in_ld"
2014 demangler_in_ld="$with_demangler_in_ld"
2019 # ----------------------
2020 # Find default assembler
2021 # ----------------------
2025 # Check whether --with-gnu-as or --without-gnu-as was given.
2026 if test "${with_gnu_as+set}" = set; then
2027 withval="$with_gnu_as"
2028 gas_flag="$with_gnu_as"
2034 # Check whether --with-as or --without-as was given.
2035 if test "${with_as+set}" = set; then
2037 DEFAULT_ASSEMBLER="$with_as"
2039 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2040 if test ! -x "$DEFAULT_ASSEMBLER"; then
2041 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
2042 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
2043 { (exit 1); exit 1; }; }
2044 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
2048 cat >>confdefs.h <<_ACEOF
2049 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2054 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
2056 cat >>confdefs.h <<_ACEOF
2057 #define HAVE_GNU_AS $gnu_as
2061 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2062 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
2063 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2064 if test x"$gas_flag" = x"no"; then
2065 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2066 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
2068 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2069 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
2072 echo "$as_me:$LINENO: result: no" >&5
2073 echo "${ECHO_T}no" >&6
2080 # If a non-executable a.out is present (e.g. created by GNU as above even if
2081 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2082 # file, even when creating an executable, so an execution test fails.
2083 # Remove possible default executable files to avoid this.
2085 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2086 # Autoconf includes it.
2087 rm -f a.out a.exe b.out
2089 # Find the native compiler
2091 ac_cpp='$CPP $CPPFLAGS'
2092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2095 if test -n "$ac_tool_prefix"; then
2096 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2097 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2098 echo "$as_me:$LINENO: checking for $ac_word" >&5
2099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2100 if test "${ac_cv_prog_CC+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 if test -n "$CC"; then
2104 ac_cv_prog_CC="$CC" # Let the user override the test.
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 test -z "$as_dir" && as_dir=.
2111 for ac_exec_ext in '' $ac_executable_extensions; do
2112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2113 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2123 if test -n "$CC"; then
2124 echo "$as_me:$LINENO: result: $CC" >&5
2125 echo "${ECHO_T}$CC" >&6
2127 echo "$as_me:$LINENO: result: no" >&5
2128 echo "${ECHO_T}no" >&6
2132 if test -z "$ac_cv_prog_CC"; then
2134 # Extract the first word of "gcc", so it can be a program name with args.
2135 set dummy gcc; ac_word=$2
2136 echo "$as_me:$LINENO: checking for $ac_word" >&5
2137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2138 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2141 if test -n "$ac_ct_CC"; then
2142 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148 test -z "$as_dir" && as_dir=.
2149 for ac_exec_ext in '' $ac_executable_extensions; do
2150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2151 ac_cv_prog_ac_ct_CC="gcc"
2152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2161 if test -n "$ac_ct_CC"; then
2162 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2163 echo "${ECHO_T}$ac_ct_CC" >&6
2165 echo "$as_me:$LINENO: result: no" >&5
2166 echo "${ECHO_T}no" >&6
2174 if test -z "$CC"; then
2175 if test -n "$ac_tool_prefix"; then
2176 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2177 set dummy ${ac_tool_prefix}cc; ac_word=$2
2178 echo "$as_me:$LINENO: checking for $ac_word" >&5
2179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2180 if test "${ac_cv_prog_CC+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2183 if test -n "$CC"; then
2184 ac_cv_prog_CC="$CC" # Let the user override the test.
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2193 ac_cv_prog_CC="${ac_tool_prefix}cc"
2194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203 if test -n "$CC"; then
2204 echo "$as_me:$LINENO: result: $CC" >&5
2205 echo "${ECHO_T}$CC" >&6
2207 echo "$as_me:$LINENO: result: no" >&5
2208 echo "${ECHO_T}no" >&6
2212 if test -z "$ac_cv_prog_CC"; then
2214 # Extract the first word of "cc", so it can be a program name with args.
2215 set dummy cc; ac_word=$2
2216 echo "$as_me:$LINENO: checking for $ac_word" >&5
2217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2218 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 if test -n "$ac_ct_CC"; then
2222 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 test -z "$as_dir" && as_dir=.
2229 for ac_exec_ext in '' $ac_executable_extensions; do
2230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2231 ac_cv_prog_ac_ct_CC="cc"
2232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2240 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2241 if test -n "$ac_ct_CC"; then
2242 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2243 echo "${ECHO_T}$ac_ct_CC" >&6
2245 echo "$as_me:$LINENO: result: no" >&5
2246 echo "${ECHO_T}no" >&6
2255 if test -z "$CC"; then
2256 # Extract the first word of "cc", so it can be a program name with args.
2257 set dummy cc; ac_word=$2
2258 echo "$as_me:$LINENO: checking for $ac_word" >&5
2259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2260 if test "${ac_cv_prog_CC+set}" = set; then
2261 echo $ECHO_N "(cached) $ECHO_C" >&6
2263 if test -n "$CC"; then
2264 ac_cv_prog_CC="$CC" # Let the user override the test.
2267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271 test -z "$as_dir" && as_dir=.
2272 for ac_exec_ext in '' $ac_executable_extensions; do
2273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2274 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2275 ac_prog_rejected=yes
2279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285 if test $ac_prog_rejected = yes; then
2286 # We found a bogon in the path, so make sure we never use it.
2287 set dummy $ac_cv_prog_CC
2289 if test $# != 0; then
2290 # We chose a different compiler from the bogus one.
2291 # However, it has the same basename, so the bogon will be chosen
2292 # first if we set CC to just the basename; use the full file name.
2294 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2300 if test -n "$CC"; then
2301 echo "$as_me:$LINENO: result: $CC" >&5
2302 echo "${ECHO_T}$CC" >&6
2304 echo "$as_me:$LINENO: result: no" >&5
2305 echo "${ECHO_T}no" >&6
2309 if test -z "$CC"; then
2310 if test -n "$ac_tool_prefix"; then
2313 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2314 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2315 echo "$as_me:$LINENO: checking for $ac_word" >&5
2316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2317 if test "${ac_cv_prog_CC+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2320 if test -n "$CC"; then
2321 ac_cv_prog_CC="$CC" # Let the user override the test.
2323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 test -z "$as_dir" && as_dir=.
2328 for ac_exec_ext in '' $ac_executable_extensions; do
2329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2330 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2340 if test -n "$CC"; then
2341 echo "$as_me:$LINENO: result: $CC" >&5
2342 echo "${ECHO_T}$CC" >&6
2344 echo "$as_me:$LINENO: result: no" >&5
2345 echo "${ECHO_T}no" >&6
2348 test -n "$CC" && break
2351 if test -z "$CC"; then
2355 # Extract the first word of "$ac_prog", so it can be a program name with args.
2356 set dummy $ac_prog; ac_word=$2
2357 echo "$as_me:$LINENO: checking for $ac_word" >&5
2358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2359 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 if test -n "$ac_ct_CC"; then
2363 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 test -z "$as_dir" && as_dir=.
2370 for ac_exec_ext in '' $ac_executable_extensions; do
2371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2372 ac_cv_prog_ac_ct_CC="$ac_prog"
2373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2382 if test -n "$ac_ct_CC"; then
2383 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2384 echo "${ECHO_T}$ac_ct_CC" >&6
2386 echo "$as_me:$LINENO: result: no" >&5
2387 echo "${ECHO_T}no" >&6
2390 test -n "$ac_ct_CC" && break
2399 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2400 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2401 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2402 See \`config.log' for more details." >&5
2403 echo "$as_me: error: no acceptable C compiler found in \$PATH
2404 See \`config.log' for more details." >&2;}
2405 { (exit 1); exit 1; }; }; }
2407 # Provide some information about the compiler.
2408 echo "$as_me:$LINENO:" \
2409 "checking for C compiler version" >&5
2410 ac_compiler=`set X $ac_compile; echo $2`
2411 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2412 (eval $ac_compiler --version </dev/null >&5) 2>&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }
2416 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2417 (eval $ac_compiler -v </dev/null >&5) 2>&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }
2421 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2422 (eval $ac_compiler -V </dev/null >&5) 2>&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }
2427 cat >conftest.$ac_ext <<_ACEOF
2430 cat confdefs.h >>conftest.$ac_ext
2431 cat >>conftest.$ac_ext <<_ACEOF
2432 /* end confdefs.h. */
2442 ac_clean_files_save=$ac_clean_files
2443 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2444 # Try to create an executable without -o first, disregard a.out.
2445 # It will help us diagnose broken compilers, and finding out an intuition
2447 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2448 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2449 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2450 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2451 (eval $ac_link_default) 2>&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; then
2455 # Find the output, starting from the most likely. This scheme is
2456 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2459 # Be careful to initialize this variable, since it used to be cached.
2460 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2462 # b.out is created by i960 compilers.
2463 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2465 test -f "$ac_file" || continue
2467 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2470 # This is the source file.
2473 # We found the default executable, but exeext='' is most
2477 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2478 # FIXME: I believe we export ac_cv_exeext for Libtool,
2479 # but it would be cool to find out if it's true. Does anybody
2480 # maintain Libtool? --akim.
2488 echo "$as_me: failed program was:" >&5
2489 sed 's/^/| /' conftest.$ac_ext >&5
2491 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2492 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2493 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2494 See \`config.log' for more details." >&5
2495 echo "$as_me: error: C compiler cannot create executables
2496 See \`config.log' for more details." >&2;}
2497 { (exit 77); exit 77; }; }; }
2500 ac_exeext=$ac_cv_exeext
2501 echo "$as_me:$LINENO: result: $ac_file" >&5
2502 echo "${ECHO_T}$ac_file" >&6
2504 # Check the compiler produces executables we can run. If not, either
2505 # the compiler is broken, or we cross compile.
2506 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2507 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2508 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2509 # If not cross compiling, check that we can run a simple program.
2510 if test "$cross_compiling" != yes; then
2511 if { ac_try='./$ac_file'
2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; }; then
2519 if test "$cross_compiling" = maybe; then
2522 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2523 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2524 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2525 If you meant to cross compile, use \`--host'.
2526 See \`config.log' for more details." >&5
2527 echo "$as_me: error: cannot run C compiled programs.
2528 If you meant to cross compile, use \`--host'.
2529 See \`config.log' for more details." >&2;}
2530 { (exit 1); exit 1; }; }; }
2534 echo "$as_me:$LINENO: result: yes" >&5
2535 echo "${ECHO_T}yes" >&6
2537 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2538 ac_clean_files=$ac_clean_files_save
2539 # Check the compiler produces executables we can run. If not, either
2540 # the compiler is broken, or we cross compile.
2541 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2542 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2543 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2544 echo "${ECHO_T}$cross_compiling" >&6
2546 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2547 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2549 (eval $ac_link) 2>&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; then
2553 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2554 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2555 # work properly (i.e., refer to `conftest.exe'), while it won't with
2557 for ac_file in conftest.exe conftest conftest.*; do
2558 test -f "$ac_file" || continue
2560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2561 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2568 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2569 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2570 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2571 See \`config.log' for more details." >&5
2572 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2573 See \`config.log' for more details." >&2;}
2574 { (exit 1); exit 1; }; }; }
2577 rm -f conftest$ac_cv_exeext
2578 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2579 echo "${ECHO_T}$ac_cv_exeext" >&6
2581 rm -f conftest.$ac_ext
2582 EXEEXT=$ac_cv_exeext
2584 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2585 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2586 if test "${ac_cv_objext+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 cat >conftest.$ac_ext <<_ACEOF
2592 cat confdefs.h >>conftest.$ac_ext
2593 cat >>conftest.$ac_ext <<_ACEOF
2594 /* end confdefs.h. */
2604 rm -f conftest.o conftest.obj
2605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2606 (eval $ac_compile) 2>&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; then
2610 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2613 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2618 echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2621 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2622 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2623 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2624 See \`config.log' for more details." >&5
2625 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2626 See \`config.log' for more details." >&2;}
2627 { (exit 1); exit 1; }; }; }
2630 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2632 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2633 echo "${ECHO_T}$ac_cv_objext" >&6
2634 OBJEXT=$ac_cv_objext
2636 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2637 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2638 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2641 cat >conftest.$ac_ext <<_ACEOF
2644 cat confdefs.h >>conftest.$ac_ext
2645 cat >>conftest.$ac_ext <<_ACEOF
2646 /* end confdefs.h. */
2659 rm -f conftest.$ac_objext
2660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2661 (eval $ac_compile) 2>conftest.er1
2663 grep -v '^ *+' conftest.er1 >conftest.err
2665 cat conftest.err >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); } &&
2668 { ac_try='test -z "$ac_c_werror_flag"
2669 || test ! -s conftest.err'
2670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }; } &&
2675 { ac_try='test -s conftest.$ac_objext'
2676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; }; then
2683 echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2689 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2692 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2693 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2694 GCC=`test $ac_compiler_gnu = yes && echo yes`
2695 ac_test_CFLAGS=${CFLAGS+set}
2696 ac_save_CFLAGS=$CFLAGS
2698 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2699 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2700 if test "${ac_cv_prog_cc_g+set}" = set; then
2701 echo $ECHO_N "(cached) $ECHO_C" >&6
2703 cat >conftest.$ac_ext <<_ACEOF
2706 cat confdefs.h >>conftest.$ac_ext
2707 cat >>conftest.$ac_ext <<_ACEOF
2708 /* end confdefs.h. */
2718 rm -f conftest.$ac_objext
2719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2720 (eval $ac_compile) 2>conftest.er1
2722 grep -v '^ *+' conftest.er1 >conftest.err
2724 cat conftest.err >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); } &&
2727 { ac_try='test -z "$ac_c_werror_flag"
2728 || test ! -s conftest.err'
2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; } &&
2734 { ac_try='test -s conftest.$ac_objext'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; }; then
2742 echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2749 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2750 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2751 if test "$ac_test_CFLAGS" = set; then
2752 CFLAGS=$ac_save_CFLAGS
2753 elif test $ac_cv_prog_cc_g = yes; then
2754 if test "$GCC" = yes; then
2760 if test "$GCC" = yes; then
2766 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2767 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2768 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2771 ac_cv_prog_cc_stdc=no
2773 cat >conftest.$ac_ext <<_ACEOF
2776 cat confdefs.h >>conftest.$ac_ext
2777 cat >>conftest.$ac_ext <<_ACEOF
2778 /* end confdefs.h. */
2781 #include <sys/types.h>
2782 #include <sys/stat.h>
2783 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2784 struct buf { int x; };
2785 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2786 static char *e (p, i)
2792 static char *f (char * (*g) (char **, int), char **p, ...)
2797 s = g (p, va_arg (v,int));
2802 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2803 function prototypes and stuff, but not '\xHH' hex character constants.
2804 These don't provoke an error unfortunately, instead are silently treated
2805 as 'x'. The following induces an error, until -std1 is added to get
2806 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2807 array size at least. It's necessary to write '\x00'==0 to get something
2808 that's true only with -std1. */
2809 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2811 int test (int i, double x);
2812 struct s1 {int (*f) (int a);};
2813 struct s2 {int (*f) (double a);};
2814 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2820 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2825 # Don't try gcc -ansi; that turns off useful extensions and
2826 # breaks some systems' header files.
2827 # AIX -qlanglvl=ansi
2828 # Ultrix and OSF/1 -std1
2829 # HP-UX 10.20 and later -Ae
2830 # HP-UX older versions -Aa -D_HPUX_SOURCE
2831 # SVR4 -Xc -D__EXTENSIONS__
2832 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2834 CC="$ac_save_CC $ac_arg"
2835 rm -f conftest.$ac_objext
2836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2837 (eval $ac_compile) 2>conftest.er1
2839 grep -v '^ *+' conftest.er1 >conftest.err
2841 cat conftest.err >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } &&
2844 { ac_try='test -z "$ac_c_werror_flag"
2845 || test ! -s conftest.err'
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; } &&
2851 { ac_try='test -s conftest.$ac_objext'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; }; then
2857 ac_cv_prog_cc_stdc=$ac_arg
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2864 rm -f conftest.err conftest.$ac_objext
2866 rm -f conftest.$ac_ext conftest.$ac_objext
2871 case "x$ac_cv_prog_cc_stdc" in
2873 echo "$as_me:$LINENO: result: none needed" >&5
2874 echo "${ECHO_T}none needed" >&6 ;;
2876 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2877 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2878 CC="$CC $ac_cv_prog_cc_stdc" ;;
2881 # Some people use a C++ compiler to compile C. Since we use `exit',
2882 # in C++ we need to declare it. In case someone uses the same compiler
2883 # for both compiling C and C++ we need to have the C++ compiler decide
2884 # the declaration of exit, since it's the most demanding environment.
2885 cat >conftest.$ac_ext <<_ACEOF
2890 rm -f conftest.$ac_objext
2891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2892 (eval $ac_compile) 2>conftest.er1
2894 grep -v '^ *+' conftest.er1 >conftest.err
2896 cat conftest.err >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } &&
2899 { ac_try='test -z "$ac_c_werror_flag"
2900 || test ! -s conftest.err'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; } &&
2906 { ac_try='test -s conftest.$ac_objext'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2912 for ac_declaration in \
2914 'extern "C" void std::exit (int) throw (); using std::exit;' \
2915 'extern "C" void std::exit (int); using std::exit;' \
2916 'extern "C" void exit (int) throw ();' \
2917 'extern "C" void exit (int);' \
2920 cat >conftest.$ac_ext <<_ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2936 rm -f conftest.$ac_objext
2937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2938 (eval $ac_compile) 2>conftest.er1
2940 grep -v '^ *+' conftest.er1 >conftest.err
2942 cat conftest.err >&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } &&
2945 { ac_try='test -z "$ac_c_werror_flag"
2946 || test ! -s conftest.err'
2947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; } &&
2952 { ac_try='test -s conftest.$ac_objext'
2953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; }; then
2960 echo "$as_me: failed program was:" >&5
2961 sed 's/^/| /' conftest.$ac_ext >&5
2965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2966 cat >conftest.$ac_ext <<_ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h. */
2981 rm -f conftest.$ac_objext
2982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2983 (eval $ac_compile) 2>conftest.er1
2985 grep -v '^ *+' conftest.er1 >conftest.err
2987 cat conftest.err >&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); } &&
2990 { ac_try='test -z "$ac_c_werror_flag"
2991 || test ! -s conftest.err'
2992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; } &&
2997 { ac_try='test -s conftest.$ac_objext'
2998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; }; then
3005 echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3012 if test -n "$ac_declaration"; then
3013 echo '#ifdef __cplusplus' >>confdefs.h
3014 echo $ac_declaration >>confdefs.h
3015 echo '#endif' >>confdefs.h
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3025 ac_cpp='$CPP $CPPFLAGS'
3026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3030 if test "x$CC" != xcc; then
3031 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3032 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3034 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3035 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3037 set dummy $CC; ac_cc=`echo $2 |
3038 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3039 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
3042 cat >conftest.$ac_ext <<_ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3057 # Make sure it works both with $CC and with simple cc.
3058 # We do the test twice because some compilers refuse to overwrite an
3059 # existing .o file with -o, though they will create one.
3060 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3061 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); } &&
3066 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); };
3072 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3073 if test "x$CC" != xcc; then
3074 # Test first that cc exists at all.
3075 if { ac_try='cc -c conftest.$ac_ext >&5'
3076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; }; then
3081 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3082 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); } &&
3087 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); };
3096 # cc exists but doesn't like -o.
3097 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3102 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3107 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3108 echo "$as_me:$LINENO: result: yes" >&5
3109 echo "${ECHO_T}yes" >&6
3111 echo "$as_me:$LINENO: result: no" >&5
3112 echo "${ECHO_T}no" >&6
3114 cat >>confdefs.h <<\_ACEOF
3115 #define NO_MINUS_C_MINUS_O 1
3120 # expand $ac_aux_dir to an absolute path
3121 am_aux_dir=`cd $ac_aux_dir && pwd`
3123 # FIXME: we rely on the cache variable name because
3124 # there is no other way.
3126 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3127 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3128 # Losing compiler, so override with the script.
3129 # FIXME: It is wrong to rewrite CC.
3130 # But if we don't then we get into trouble of one sort or another.
3131 # A longer-term fix would be to have automake use am__CC in this case,
3132 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3133 CC="$am_aux_dir/compile $CC"
3137 ac_cpp='$CXXCPP $CPPFLAGS'
3138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3141 if test -n "$ac_tool_prefix"; then
3142 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3144 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3145 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3146 echo "$as_me:$LINENO: checking for $ac_word" >&5
3147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3148 if test "${ac_cv_prog_CXX+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 if test -n "$CXX"; then
3152 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 test -z "$as_dir" && as_dir=.
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3161 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 if test -n "$CXX"; then
3172 echo "$as_me:$LINENO: result: $CXX" >&5
3173 echo "${ECHO_T}$CXX" >&6
3175 echo "$as_me:$LINENO: result: no" >&5
3176 echo "${ECHO_T}no" >&6
3179 test -n "$CXX" && break
3182 if test -z "$CXX"; then
3184 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3186 # Extract the first word of "$ac_prog", so it can be a program name with args.
3187 set dummy $ac_prog; ac_word=$2
3188 echo "$as_me:$LINENO: checking for $ac_word" >&5
3189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3190 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 if test -n "$ac_ct_CXX"; then
3194 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203 ac_cv_prog_ac_ct_CXX="$ac_prog"
3204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3212 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3213 if test -n "$ac_ct_CXX"; then
3214 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3215 echo "${ECHO_T}$ac_ct_CXX" >&6
3217 echo "$as_me:$LINENO: result: no" >&5
3218 echo "${ECHO_T}no" >&6
3221 test -n "$ac_ct_CXX" && break
3223 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3229 # Provide some information about the compiler.
3230 echo "$as_me:$LINENO:" \
3231 "checking for C++ compiler version" >&5
3232 ac_compiler=`set X $ac_compile; echo $2`
3233 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3234 (eval $ac_compiler --version </dev/null >&5) 2>&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }
3238 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3239 (eval $ac_compiler -v </dev/null >&5) 2>&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }
3243 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3244 (eval $ac_compiler -V </dev/null >&5) 2>&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }
3249 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3250 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3251 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 cat >conftest.$ac_ext <<_ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3272 rm -f conftest.$ac_objext
3273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3274 (eval $ac_compile) 2>conftest.er1
3276 grep -v '^ *+' conftest.er1 >conftest.err
3278 cat conftest.err >&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); } &&
3281 { ac_try='test -z "$ac_cxx_werror_flag"
3282 || test ! -s conftest.err'
3283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }; } &&
3288 { ac_try='test -s conftest.$ac_objext'
3289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; }; then
3296 echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3302 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3305 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3306 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3307 GXX=`test $ac_compiler_gnu = yes && echo yes`
3308 ac_test_CXXFLAGS=${CXXFLAGS+set}
3309 ac_save_CXXFLAGS=$CXXFLAGS
3311 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3312 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3313 if test "${ac_cv_prog_cxx_g+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 cat >conftest.$ac_ext <<_ACEOF
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h. */
3331 rm -f conftest.$ac_objext
3332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3333 (eval $ac_compile) 2>conftest.er1
3335 grep -v '^ *+' conftest.er1 >conftest.err
3337 cat conftest.err >&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } &&
3340 { ac_try='test -z "$ac_cxx_werror_flag"
3341 || test ! -s conftest.err'
3342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); }; } &&
3347 { ac_try='test -s conftest.$ac_objext'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3353 ac_cv_prog_cxx_g=yes
3355 echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3362 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3363 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3364 if test "$ac_test_CXXFLAGS" = set; then
3365 CXXFLAGS=$ac_save_CXXFLAGS
3366 elif test $ac_cv_prog_cxx_g = yes; then
3367 if test "$GXX" = yes; then
3373 if test "$GXX" = yes; then
3379 for ac_declaration in \
3381 'extern "C" void std::exit (int) throw (); using std::exit;' \
3382 'extern "C" void std::exit (int); using std::exit;' \
3383 'extern "C" void exit (int) throw ();' \
3384 'extern "C" void exit (int);' \
3387 cat >conftest.$ac_ext <<_ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3403 rm -f conftest.$ac_objext
3404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3405 (eval $ac_compile) 2>conftest.er1
3407 grep -v '^ *+' conftest.er1 >conftest.err
3409 cat conftest.err >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } &&
3412 { ac_try='test -z "$ac_cxx_werror_flag"
3413 || test ! -s conftest.err'
3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; } &&
3419 { ac_try='test -s conftest.$ac_objext'
3420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; }; then
3427 echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3433 cat >conftest.$ac_ext <<_ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3448 rm -f conftest.$ac_objext
3449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3450 (eval $ac_compile) 2>conftest.er1
3452 grep -v '^ *+' conftest.er1 >conftest.err
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } &&
3457 { ac_try='test -z "$ac_cxx_werror_flag"
3458 || test ! -s conftest.err'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; } &&
3464 { ac_try='test -s conftest.$ac_objext'
3465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); }; }; then
3472 echo "$as_me: failed program was:" >&5
3473 sed 's/^/| /' conftest.$ac_ext >&5
3476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3479 if test -n "$ac_declaration"; then
3480 echo '#ifdef __cplusplus' >>confdefs.h
3481 echo $ac_declaration >>confdefs.h
3482 echo '#endif' >>confdefs.h
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494 if test -n "$ac_tool_prefix"; then
3495 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3496 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3497 echo "$as_me:$LINENO: checking for $ac_word" >&5
3498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3499 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 if test -n "$GNATBIND"; then
3503 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3521 GNATBIND=$ac_cv_prog_GNATBIND
3522 if test -n "$GNATBIND"; then
3523 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3524 echo "${ECHO_T}$GNATBIND" >&6
3526 echo "$as_me:$LINENO: result: no" >&5
3527 echo "${ECHO_T}no" >&6
3531 if test -z "$ac_cv_prog_GNATBIND"; then
3532 ac_ct_GNATBIND=$GNATBIND
3533 # Extract the first word of "gnatbind", so it can be a program name with args.
3534 set dummy gnatbind; ac_word=$2
3535 echo "$as_me:$LINENO: checking for $ac_word" >&5
3536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3537 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3540 if test -n "$ac_ct_GNATBIND"; then
3541 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 test -z "$as_dir" && as_dir=.
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3550 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3557 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3560 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3561 if test -n "$ac_ct_GNATBIND"; then
3562 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3563 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3565 echo "$as_me:$LINENO: result: no" >&5
3566 echo "${ECHO_T}no" >&6
3569 GNATBIND=$ac_ct_GNATBIND
3571 GNATBIND="$ac_cv_prog_GNATBIND"
3574 if test -n "$ac_tool_prefix"; then
3575 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
3576 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
3577 echo "$as_me:$LINENO: checking for $ac_word" >&5
3578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3579 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 if test -n "$GNATMAKE"; then
3583 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3592 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
3593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3601 GNATMAKE=$ac_cv_prog_GNATMAKE
3602 if test -n "$GNATMAKE"; then
3603 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
3604 echo "${ECHO_T}$GNATMAKE" >&6
3606 echo "$as_me:$LINENO: result: no" >&5
3607 echo "${ECHO_T}no" >&6
3611 if test -z "$ac_cv_prog_GNATMAKE"; then
3612 ac_ct_GNATMAKE=$GNATMAKE
3613 # Extract the first word of "gnatmake", so it can be a program name with args.
3614 set dummy gnatmake; ac_word=$2
3615 echo "$as_me:$LINENO: checking for $ac_word" >&5
3616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3617 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 if test -n "$ac_ct_GNATMAKE"; then
3621 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
3623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 test -z "$as_dir" && as_dir=.
3628 for ac_exec_ext in '' $ac_executable_extensions; do
3629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3630 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
3631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3637 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
3640 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
3641 if test -n "$ac_ct_GNATMAKE"; then
3642 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
3643 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
3645 echo "$as_me:$LINENO: result: no" >&5
3646 echo "${ECHO_T}no" >&6
3649 GNATMAKE=$ac_ct_GNATMAKE
3651 GNATMAKE="$ac_cv_prog_GNATMAKE"
3654 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3655 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3656 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 cat >conftest.adb <<EOF
3660 procedure conftest is begin null; end conftest;
3662 acx_cv_cc_gcc_supports_ada=no
3663 # There is a bug in old released versions of GCC which causes the
3664 # driver to exit successfully when the appropriate language module
3665 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3666 # Therefore we must check for the error message as well as an
3667 # unsuccessful exit.
3668 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
3669 # given a .adb file, but produce no object file. So we must check
3670 # if an object file was really produced to guard against this.
3671 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
3672 if test x"$errors" = x && test -f conftest.$ac_objext; then
3673 acx_cv_cc_gcc_supports_ada=yes
3677 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3678 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
3680 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
3687 # autoconf is lame and doesn't give us any substitution variable for this.
3688 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3689 NO_MINUS_C_MINUS_O=yes
3691 OUTPUT_OPTION='-o $@'
3696 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
3697 # optimizations to be activated explicitly by the toplevel.
3699 */prev-gcc/xgcc*) ;;
3700 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
3704 # -------------------------
3705 # Check C compiler features
3706 # -------------------------
3710 ac_cpp='$CPP $CPPFLAGS'
3711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3714 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3715 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3716 # On Suns, sometimes $CPP names a directory.
3717 if test -n "$CPP" && test -d "$CPP"; then
3720 if test -z "$CPP"; then
3721 if test "${ac_cv_prog_CPP+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 # Double quotes because CPP needs to be expanded
3725 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3728 for ac_c_preproc_warn_flag in '' yes
3730 # Use a header file that comes with gcc, so configuring glibc
3731 # with a fresh cross-compiler works.
3732 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3733 # <limits.h> exists even on freestanding compilers.
3734 # On the NeXT, cc -E runs the code through the compiler's parser,
3735 # not just through cpp. "Syntax error" is here to catch this case.
3736 cat >conftest.$ac_ext <<_ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3743 # include <limits.h>
3745 # include <assert.h>
3749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3752 grep -v '^ *+' conftest.er1 >conftest.err
3754 cat conftest.err >&5
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); } >/dev/null; then
3757 if test -s conftest.err; then
3758 ac_cpp_err=$ac_c_preproc_warn_flag
3759 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3766 if test -z "$ac_cpp_err"; then
3769 echo "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.$ac_ext >&5
3772 # Broken: fails on valid input.
3775 rm -f conftest.err conftest.$ac_ext
3777 # OK, works on sane cases. Now check whether non-existent headers
3778 # can be detected and how.
3779 cat >conftest.$ac_ext <<_ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h. */
3785 #include <ac_nonexistent.h>
3787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3790 grep -v '^ *+' conftest.er1 >conftest.err
3792 cat conftest.err >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } >/dev/null; then
3795 if test -s conftest.err; then
3796 ac_cpp_err=$ac_c_preproc_warn_flag
3797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3804 if test -z "$ac_cpp_err"; then
3805 # Broken: success on invalid input.
3808 echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3811 # Passes both tests.
3815 rm -f conftest.err conftest.$ac_ext
3818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3819 rm -f conftest.err conftest.$ac_ext
3820 if $ac_preproc_ok; then
3832 echo "$as_me:$LINENO: result: $CPP" >&5
3833 echo "${ECHO_T}$CPP" >&6
3835 for ac_c_preproc_warn_flag in '' yes
3837 # Use a header file that comes with gcc, so configuring glibc
3838 # with a fresh cross-compiler works.
3839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3840 # <limits.h> exists even on freestanding compilers.
3841 # On the NeXT, cc -E runs the code through the compiler's parser,
3842 # not just through cpp. "Syntax error" is here to catch this case.
3843 cat >conftest.$ac_ext <<_ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3850 # include <limits.h>
3852 # include <assert.h>
3856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3859 grep -v '^ *+' conftest.er1 >conftest.err
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } >/dev/null; then
3864 if test -s conftest.err; then
3865 ac_cpp_err=$ac_c_preproc_warn_flag
3866 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3873 if test -z "$ac_cpp_err"; then
3876 echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.$ac_ext >&5
3879 # Broken: fails on valid input.
3882 rm -f conftest.err conftest.$ac_ext
3884 # OK, works on sane cases. Now check whether non-existent headers
3885 # can be detected and how.
3886 cat >conftest.$ac_ext <<_ACEOF
3889 cat confdefs.h >>conftest.$ac_ext
3890 cat >>conftest.$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3892 #include <ac_nonexistent.h>
3894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3897 grep -v '^ *+' conftest.er1 >conftest.err
3899 cat conftest.err >&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } >/dev/null; then
3902 if test -s conftest.err; then
3903 ac_cpp_err=$ac_c_preproc_warn_flag
3904 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3911 if test -z "$ac_cpp_err"; then
3912 # Broken: success on invalid input.
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3918 # Passes both tests.
3922 rm -f conftest.err conftest.$ac_ext
3925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3926 rm -f conftest.err conftest.$ac_ext
3927 if $ac_preproc_ok; then
3930 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3931 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3932 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3933 See \`config.log' for more details." >&5
3934 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3935 See \`config.log' for more details." >&2;}
3936 { (exit 1); exit 1; }; }; }
3940 ac_cpp='$CPP $CPPFLAGS'
3941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3946 echo "$as_me:$LINENO: checking for egrep" >&5
3947 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3948 if test "${ac_cv_prog_egrep+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3952 then ac_cv_prog_egrep='grep -E'
3953 else ac_cv_prog_egrep='egrep'
3956 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3957 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3958 EGREP=$ac_cv_prog_egrep
3961 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3962 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3963 if test "${ac_cv_header_stdc+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 cat >conftest.$ac_ext <<_ACEOF
3969 cat confdefs.h >>conftest.$ac_ext
3970 cat >>conftest.$ac_ext <<_ACEOF
3971 /* end confdefs.h. */
3985 rm -f conftest.$ac_objext
3986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3987 (eval $ac_compile) 2>conftest.er1
3989 grep -v '^ *+' conftest.er1 >conftest.err
3991 cat conftest.err >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } &&
3994 { ac_try='test -z "$ac_c_werror_flag"
3995 || test ! -s conftest.err'
3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; } &&
4001 { ac_try='test -s conftest.$ac_objext'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; }; then
4007 ac_cv_header_stdc=yes
4009 echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4012 ac_cv_header_stdc=no
4014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4016 if test $ac_cv_header_stdc = yes; then
4017 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4018 cat >conftest.$ac_ext <<_ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h. */
4027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4028 $EGREP "memchr" >/dev/null 2>&1; then
4031 ac_cv_header_stdc=no
4037 if test $ac_cv_header_stdc = yes; then
4038 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4039 cat >conftest.$ac_ext <<_ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4049 $EGREP "free" >/dev/null 2>&1; then
4052 ac_cv_header_stdc=no
4058 if test $ac_cv_header_stdc = yes; then
4059 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4060 if test "$cross_compiling" = yes; then
4063 cat >conftest.$ac_ext <<_ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h. */
4070 #if ((' ' & 0x0FF) == 0x020)
4071 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4072 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4074 # define ISLOWER(c) \
4075 (('a' <= (c) && (c) <= 'i') \
4076 || ('j' <= (c) && (c) <= 'r') \
4077 || ('s' <= (c) && (c) <= 'z'))
4078 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4081 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4086 for (i = 0; i < 256; i++)
4087 if (XOR (islower (i), ISLOWER (i))
4088 || toupper (i) != TOUPPER (i))
4093 rm -f conftest$ac_exeext
4094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4095 (eval $ac_link) 2>&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }; }; then
4106 echo "$as_me: program exited with status $ac_status" >&5
4107 echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.$ac_ext >&5
4111 ac_cv_header_stdc=no
4113 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4117 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4118 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4119 if test $ac_cv_header_stdc = yes; then
4121 cat >>confdefs.h <<\_ACEOF
4122 #define STDC_HEADERS 1
4127 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4137 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4138 inttypes.h stdint.h unistd.h
4140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4141 echo "$as_me:$LINENO: checking for $ac_header" >&5
4142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4146 cat >conftest.$ac_ext <<_ACEOF
4149 cat confdefs.h >>conftest.$ac_ext
4150 cat >>conftest.$ac_ext <<_ACEOF
4151 /* end confdefs.h. */
4152 $ac_includes_default
4154 #include <$ac_header>
4156 rm -f conftest.$ac_objext
4157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4158 (eval $ac_compile) 2>conftest.er1
4160 grep -v '^ *+' conftest.er1 >conftest.err
4162 cat conftest.err >&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); } &&
4165 { ac_try='test -z "$ac_c_werror_flag"
4166 || test ! -s conftest.err'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; } &&
4172 { ac_try='test -s conftest.$ac_objext'
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; }; then
4178 eval "$as_ac_Header=yes"
4180 echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4183 eval "$as_ac_Header=no"
4185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4190 cat >>confdefs.h <<_ACEOF
4191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4200 if test "${ac_cv_header_minix_config_h+set}" = set; then
4201 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4202 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4203 if test "${ac_cv_header_minix_config_h+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4207 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4209 # Is the header compilable?
4210 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4211 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4212 cat >conftest.$ac_ext <<_ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h. */
4218 $ac_includes_default
4219 #include <minix/config.h>
4221 rm -f conftest.$ac_objext
4222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4223 (eval $ac_compile) 2>conftest.er1
4225 grep -v '^ *+' conftest.er1 >conftest.err
4227 cat conftest.err >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } &&
4230 { ac_try='test -z "$ac_c_werror_flag"
4231 || test ! -s conftest.err'
4232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; } &&
4237 { ac_try='test -s conftest.$ac_objext'
4238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); }; }; then
4243 ac_header_compiler=yes
4245 echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4248 ac_header_compiler=no
4250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4252 echo "${ECHO_T}$ac_header_compiler" >&6
4254 # Is the header present?
4255 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4256 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4257 cat >conftest.$ac_ext <<_ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h. */
4263 #include <minix/config.h>
4265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4268 grep -v '^ *+' conftest.er1 >conftest.err
4270 cat conftest.err >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } >/dev/null; then
4273 if test -s conftest.err; then
4274 ac_cpp_err=$ac_c_preproc_warn_flag
4275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4282 if test -z "$ac_cpp_err"; then
4283 ac_header_preproc=yes
4285 echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4288 ac_header_preproc=no
4290 rm -f conftest.err conftest.$ac_ext
4291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4292 echo "${ECHO_T}$ac_header_preproc" >&6
4294 # So? What about this header?
4295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4297 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4298 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4299 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4300 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4301 ac_header_preproc=yes
4304 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4305 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4306 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4307 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4308 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4309 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4310 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4311 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4312 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4313 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4314 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4315 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4318 ## ------------------------------------------ ##
4319 ## Report this to the AC_PACKAGE_NAME lists. ##
4320 ## ------------------------------------------ ##
4323 sed "s/^/$as_me: WARNING: /" >&2
4326 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4327 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4328 if test "${ac_cv_header_minix_config_h+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 ac_cv_header_minix_config_h=$ac_header_preproc
4333 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4334 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4337 if test $ac_cv_header_minix_config_h = yes; then
4344 if test "$MINIX" = yes; then
4346 cat >>confdefs.h <<\_ACEOF
4347 #define _POSIX_SOURCE 1
4351 cat >>confdefs.h <<\_ACEOF
4352 #define _POSIX_1_SOURCE 2
4356 cat >>confdefs.h <<\_ACEOF
4364 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4365 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4366 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4369 cat >conftest.$ac_ext <<_ACEOF
4372 cat confdefs.h >>conftest.$ac_ext
4373 cat >>conftest.$ac_ext <<_ACEOF
4374 /* end confdefs.h. */
4376 # define __EXTENSIONS__ 1
4377 $ac_includes_default
4386 rm -f conftest.$ac_objext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388 (eval $ac_compile) 2>conftest.er1
4390 grep -v '^ *+' conftest.er1 >conftest.err
4392 cat conftest.err >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } &&
4395 { ac_try='test -z "$ac_c_werror_flag"
4396 || test ! -s conftest.err'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; } &&
4402 { ac_try='test -s conftest.$ac_objext'
4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; }; then
4408 ac_cv_safe_to_define___extensions__=yes
4410 echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4413 ac_cv_safe_to_define___extensions__=no
4415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4417 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4418 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4419 test $ac_cv_safe_to_define___extensions__ = yes &&
4420 cat >>confdefs.h <<\_ACEOF
4421 #define __EXTENSIONS__ 1
4424 cat >>confdefs.h <<\_ACEOF
4425 #define _ALL_SOURCE 1
4428 cat >>confdefs.h <<\_ACEOF
4429 #define _GNU_SOURCE 1
4432 cat >>confdefs.h <<\_ACEOF
4433 #define _POSIX_PTHREAD_SEMANTICS 1
4436 cat >>confdefs.h <<\_ACEOF
4437 #define _TANDEM_SOURCE 1
4442 ac_cpp='$CPP $CPPFLAGS'
4443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4446 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4447 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6