From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1521) id B1CC63858D1E; Wed, 9 Feb 2022 00:44:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B1CC63858D1E Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Frysinger To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] newlib: move AC_NO_EXECUTABLES logic up to common code X-Act-Checkin: newlib-cygwin X-Git-Author: Mike Frysinger X-Git-Refname: refs/heads/master X-Git-Oldrev: 953ba1e6d1cc146113b42a56b8c3ec412d9d4873 X-Git-Newrev: 9b50254377986a12469be5322daa72fd113b452e Message-Id: <20220209004418.B1CC63858D1E@sourceware.org> Date: Wed, 9 Feb 2022 00:44:18 +0000 (GMT) X-BeenThere: newlib-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib GIT logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Feb 2022 00:44:18 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D9b502543779= 86a12469be5322daa72fd113b452e commit 9b50254377986a12469be5322daa72fd113b452e Author: Mike Frysinger Date: Sat Feb 5 01:05:06 2022 -0500 newlib: move AC_NO_EXECUTABLES logic up to common code =20 This logic was added to libc & libm to get it working again after some reworks in the CPP handling, but now that that's settled, let's move this to the common newlib configure logic. This will make it easier to consolidate all the configure calls into the top-level newlib dir. =20 This does create a lot of noise in the generate scripts, but that's because of the ordering of the calls, not because of correctness. We will try to draw that back down in follow up commits as we modernize the toolchain calls in here. Diff: --- newlib/acinclude.m4 | 3 + newlib/configure | 3828 ++++++++++------= ---- newlib/libc/configure | 3568 +++++++++-------= -- newlib/libc/configure.ac | 2 - newlib/libc/sys/linux/configure | 3828 ++++++++++------= ---- newlib/libc/sys/linux/linuxthreads/configure | 3828 ++++++++++------= ---- .../libc/sys/linux/linuxthreads/machine/configure | 3828 ++++++++++------= ---- .../sys/linux/linuxthreads/machine/i386/configure | 3828 ++++++++++------= ---- newlib/libc/sys/linux/machine/configure | 3828 ++++++++++------= ---- newlib/libc/sys/linux/machine/i386/configure | 3828 ++++++++++------= ---- newlib/libc/sys/phoenix/Makefile.in | 6 + newlib/libc/sys/phoenix/aclocal.m4 | 64 + newlib/libc/sys/phoenix/configure | 1405 ++++++- newlib/libc/sys/phoenix/machine/Makefile.in | 6 + newlib/libc/sys/phoenix/machine/aclocal.m4 | 64 + newlib/libc/sys/phoenix/machine/arm/Makefile.in | 6 + newlib/libc/sys/phoenix/machine/arm/aclocal.m4 | 64 + newlib/libc/sys/phoenix/machine/arm/configure | 1405 ++++++- newlib/libc/sys/phoenix/machine/configure | 1405 ++++++- newlib/libm/configure | 3568 +++++++++-------= -- newlib/libm/configure.ac | 2 - 21 files changed, 21391 insertions(+), 16973 deletions(-) diff --git a/newlib/acinclude.m4 b/newlib/acinclude.m4 index 888d41794..c851d622e 100644 --- a/newlib/acinclude.m4 +++ b/newlib/acinclude.m4 @@ -118,6 +118,8 @@ AM_INIT_AUTOMAKE([foreign no-installinfo no-dependencie= s no-dist no-define subdi AM_MAINTAINER_MODE() AM_SILENT_RULES(yes) =20 +AC_NO_EXECUTABLES + # FIXME: We temporarily define our own version of AC_PROG_CC. This is # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We # are probably using a cross compiler, which will not be able to fully @@ -180,6 +182,7 @@ fi ]) =20 LIB_AC_PROG_CC +AC_REQUIRE([AC_PROG_CPP])dnl =20 AC_CHECK_TOOL(AS, as) AC_CHECK_TOOL(AR, ar) diff --git a/newlib/configure b/newlib/configure index a39a3e51a..c893d5c64 100755 --- a/newlib/configure +++ b/newlib/configure @@ -593,6 +593,7 @@ PACKAGE_BUGREPORT=3D'' PACKAGE_URL=3D'' =20 ac_unique_file=3D"libc" +ac_no_link=3Dno # Factoring default headers for most tests. ac_includes_default=3D"\ #include @@ -667,7 +668,6 @@ subdirs CC_FOR_NEWLIB NEWLIB_HW_FP_FALSE NEWLIB_HW_FP_TRUE -CPP OTOOL64 OTOOL LIPO @@ -681,11 +681,6 @@ LD FGREP EGREP GREP -EXEEXT -ac_ct_CC -CPPFLAGS -LDFLAGS -CFLAGS LIBTOOL OBJDUMP DLLTOOL @@ -697,7 +692,6 @@ libm_machine_dir lpfx aext oext -OBJEXT USE_LIBTOOL_FALSE USE_LIBTOOL_TRUE ELIX_LEVEL_4_FALSE @@ -718,6 +712,13 @@ READELF RANLIB AR AS +CPP +OBJEXT +EXEEXT +ac_ct_CC +CPPFLAGS +LDFLAGS +CFLAGS am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE @@ -860,14 +861,14 @@ enable_libtool_lock ac_precious_vars=3D'build_alias host_alias target_alias -CCAS -CCASFLAGS CC CFLAGS LDFLAGS LIBS CPPFLAGS -CPP' +CPP +CCAS +CCASFLAGS' ac_subdirs_all=3D'libc libm' =20 @@ -1544,8 +1545,6 @@ Optional Packages: --with-gnu-ld assume the C compiler uses GNU ld [default=3Dno] =20 Some influential environment variables: - CCAS assembler compiler command (defaults to CC) - CCASFLAGS assembler compiler flags (defaults to CFLAGS) CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a @@ -1554,6 +1553,8 @@ Some influential environment variables: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor + CCAS assembler compiler command (defaults to CC) + CCASFLAGS assembler compiler flags (defaults to CFLAGS) =20 Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. @@ -1673,6 +1674,43 @@ fi =20 } # ac_fn_c_try_compile =20 +# ac_fn_c_try_cpp LINENO +# ---------------------- +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=3D${as_lineno-"$1"} as_lineno_stack=3Das_lineno_stack=3D$as_li= neno_stack + if { { ac_try=3D"$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=3D\$ac_try;; + *) ac_try_echo=3D$ac_try;; +esac +eval ac_try_echo=3D"\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=3D$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 + test $ac_status =3D 0; } > conftest.i && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=3D0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=3D1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_cpp + # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. @@ -1750,43 +1788,6 @@ $as_echo "$ac_res" >&6; } =20 } # ac_fn_c_check_header_compile =20 -# ac_fn_c_try_cpp LINENO -# ---------------------- -# Try to preprocess conftest.$ac_ext, and return whether this succeeded. -ac_fn_c_try_cpp () -{ - as_lineno=3D${as_lineno-"$1"} as_lineno_stack=3Das_lineno_stack=3D$as_li= neno_stack - if { { ac_try=3D"$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=3D\$ac_try;; - *) ac_try_echo=3D$ac_try;; -esac -eval ac_try_echo=3D"\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err - ac_status=3D$? - if test -s conftest.err; then - grep -v '^ *+' conftest.err >conftest.er1 - cat conftest.er1 >&5 - mv -f conftest.er1 conftest.err - fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 - test $ac_status =3D 0; } > conftest.i && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then : - ac_retval=3D0 -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=3D1 -fi - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_cpp - # ac_fn_c_try_run LINENO # ---------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes @@ -1840,7 +1841,10 @@ $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + if test x$ac_no_link =3D xyes; then + as_fn_error $? "link tests are not allowed after AC_NO_EXECUTABLES" "$LI= NENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ @@ -3161,6 +3165,7 @@ else fi AM_BACKSLASH=3D'\' =20 + DEPDIR=3D"${am__leading_dot}deps" =20 ac_config_commands=3D"$ac_config_commands depfiles" @@ -3224,312 +3229,147 @@ else fi =20 =20 - -# Check whether --enable-target-optspace was given. -if test "${enable_target_optspace+set}" =3D set; then : - enableval=3D$enable_target_optspace; case "${enableval}" in - yes) target_optspace=3Dyes ;; - no) target_optspace=3Dno ;; - *) as_fn_error $? "bad value ${enableval} for target-optspace option" = "$LINENO" 5 ;; - esac +ac_ext=3Dc +ac_cpp=3D'$CPP $CPPFLAGS' +ac_compile=3D'$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link=3D'$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$= ac_ext $LIBS >&5' +ac_compiler_gnu=3D$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a progr= am name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=3D$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 else - target_optspace=3D -fi - -# Check whether --enable-malloc-debugging was given. -if test "${enable_malloc_debugging+set}" =3D set; then : - enableval=3D$enable_malloc_debugging; case "${enableval}" in - yes) malloc_debugging=3Dyes ;; - no) malloc_debugging=3Dno ;; - *) as_fn_error $? "bad value ${enableval} for malloc-debugging option"= "$LINENO" 5 ;; - esac + if test -n "$CC"; then + ac_cv_prog_CC=3D"$CC" # Let the user override the test. else - malloc_debugging=3D -fi +as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=3D$as_save_IFS + test -z "$as_dir" && as_dir=3D. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC=3D"${ac_tool_prefix}gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_= ext" >&5 + break 2 + fi +done + done +IFS=3D$as_save_IFS =20 -# Check whether --enable-newlib-multithread was given. -if test "${enable_newlib_multithread+set}" =3D set; then : - enableval=3D$enable_newlib_multithread; case "${enableval}" in - yes) newlib_multithread=3Dyes ;; - no) newlib_multithread=3Dno ;; - *) as_fn_error $? "bad value ${enableval} for newlib-multithread optio= n" "$LINENO" 5 ;; - esac -else - newlib_multithread=3Dyes fi - -# Check whether --enable-newlib-iconv was given. -if test "${enable_newlib_iconv+set}" =3D set; then : - enableval=3D$enable_newlib_iconv; if test "${newlib_iconv+set}" !=3D set= ; then - case "${enableval}" in - yes) newlib_iconv=3Dyes ;; - no) newlib_iconv=3Dno ;; - *) as_fn_error $? "bad value ${enableval} for newlib-iconv option" = "$LINENO" 5 ;; - esac - fi -else - newlib_iconv=3D${newlib_iconv} fi - -# Check whether --enable-newlib-elix-level was given. -if test "${enable_newlib_elix_level+set}" =3D set; then : - enableval=3D$enable_newlib_elix_level; case "${enableval}" in - 0) newlib_elix_level=3D0 ;; - 1) newlib_elix_level=3D1 ;; - 2) newlib_elix_level=3D2 ;; - 3) newlib_elix_level=3D3 ;; - 4) newlib_elix_level=3D4 ;; - *) as_fn_error $? "bad value ${enableval} for newlib-elix-level option= " "$LINENO" 5 ;; - esac +CC=3D$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } else - newlib_elix_level=3D0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi =20 -# Check whether --enable-newlib-io-float was given. -if test "${enable_newlib_io_float+set}" =3D set; then : - enableval=3D$enable_newlib_io_float; case "${enableval}" in - yes) newlib_io_float=3Dyes ;; - no) newlib_io_float=3Dno ;; - *) as_fn_error $? "bad value ${enableval} for newlib-io-float option" = "$LINENO" 5 ;; - esac -else - newlib_io_float=3Dyes + fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=3D$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=3D$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC=3D"$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=3D$as_save_IFS + test -z "$as_dir" && as_dir=3D. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC=3D"gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_= ext" >&5 + break 2 + fi +done + done +IFS=3D$as_save_IFS =20 -# Check whether --enable-newlib-supplied-syscalls was given. -if test "${enable_newlib_supplied_syscalls+set}" =3D set; then : - enableval=3D$enable_newlib_supplied_syscalls; case "${enableval}" in - yes) newlib_may_supply_syscalls=3Dyes ;; - no) newlib_may_supply_syscalls=3Dno ;; - *) as_fn_error $? "bad value ${enableval} for newlib-supplied-syscalls= option" "$LINENO" 5 ;; - esac +fi +fi +ac_ct_CC=3D$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } else - newlib_may_supply_syscalls=3Dyes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi =20 - if test x${newlib_may_supply_syscalls} =3D xyes; then - MAY_SUPPLY_SYSCALLS_TRUE=3D - MAY_SUPPLY_SYSCALLS_FALSE=3D'#' + if test "x$ac_ct_CC" =3D x; then + CC=3D"" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not pr= efixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triple= t" >&2;} +ac_tool_warned=3Dyes ;; +esac + CC=3D$ac_ct_CC + fi else - MAY_SUPPLY_SYSCALLS_TRUE=3D'#' - MAY_SUPPLY_SYSCALLS_FALSE=3D + CC=3D"$ac_cv_prog_CC" fi =20 - -# Check whether --enable-newlib-fno-builtin was given. -if test "${enable_newlib_fno_builtin+set}" =3D set; then : - enableval=3D$enable_newlib_fno_builtin; case "${enableval}" in - yes) newlib_fno_builtin=3Dyes ;; - no) newlib_fno_builtin=3Dno ;; - *) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin optio= n" "$LINENO" 5 ;; - esac +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a prog= ram name with args. +set dummy ${ac_tool_prefix}cc; ac_word=3D$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 else - newlib_fno_builtin=3D -fi - - - -test -z "${with_target_subdir}" && with_target_subdir=3D. - -if test "${srcdir}" =3D "."; then - if test "${with_target_subdir}" !=3D "."; then - newlib_basedir=3D"${srcdir}/${with_multisrctop}../." - else - newlib_basedir=3D"${srcdir}/${with_multisrctop}." - fi + if test -n "$CC"; then + ac_cv_prog_CC=3D"$CC" # Let the user override the test. else - newlib_basedir=3D"${srcdir}/." -fi - - -abs_newlib_basedir=3D`cd "${newlib_basedir}" && pwd` - - - - -if test "`cd $srcdir && pwd`" !=3D "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) !=3D ., so that make's output - # is not polluted with repeated "-I." - am__isrc=3D' -I$(srcdir)' - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - as_fn_error $? "source directory already configured; run \"make distcl= ean\" there first" "$LINENO" 5 - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W=3D'cygpath -w' - else - CYGPATH_W=3Decho +as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=3D$as_save_IFS + test -z "$as_dir" && as_dir=3D. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC=3D"${ac_tool_prefix}cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_= ext" >&5 + break 2 fi -fi - - -# Define the identity of the package. - PACKAGE=3D'newlib' - VERSION=3D'4.2.0' - - -# Some tools Automake needs. - -ACLOCAL=3D${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} - - -AUTOCONF=3D${AUTOCONF-"${am_missing_run}autoconf"} - - -AUTOMAKE=3D${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} - - -AUTOHEADER=3D${AUTOHEADER-"${am_missing_run}autoheader"} - - -MAKEINFO=3D${MAKEINFO-"${am_missing_run}makeinfo"} - -# For better backward compatibility. To be removed once Automake 1.9.x -# dies out for good. For more background, see: -# -# -mkdir_p=3D'$(MKDIR_P)' - -# We need awk for the "check" target (and possibly the TAP driver). The -# system "awk" is bad on some platforms. -# Always define AMTAR for backward compatibility. Yes, it's still used -# in the wild :-( We should find a proper way to deprecate it ... -AMTAR=3D'$${TAR-tar}' - - -# We'll loop over all known methods to create a tar archive until one work= s. -_am_tools=3D'gnutar pax cpio none' - -am__tar=3D'$${TAR-tar} chof - "$$tardir"' am__untar=3D'$${TAR-tar} xf -' - - - - - - -# POSIX will say in a future version that running "rm -f" with no argument -# is OK; and we want to be able to make that assumption in our Makefile -# recipes. So use an aggressive probe to check that the usage we want is -# actually supported "in the wild" to an acceptable degree. -# See automake bug#10828. -# To make any issue more visible, cause the running configure to be aborted -# by default if the 'rm' program in use doesn't match our expectations; the -# user can still override this though. -if rm -f && rm -fr && rm -rf; then : OK; else - cat >&2 <<'END' -Oops! - -Your 'rm' program seems unable to run without file operands specified -on the command line, even when the '-f' option is present. This is contra= ry -to the behaviour of most rm programs out there, and not conforming with -the upcoming POSIX standard: - -Please tell bug-automake@gnu.org about your system, including the value -of your $PATH and any error possibly output before this message. This -can help us improve future automake versions. - -END - if test x"$ACCEPT_INFERIOR_RM_PROGRAM" =3D x"yes"; then - echo 'Configuration will proceed anyway, since you have set the' >&2 - echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 - echo >&2 - else - cat >&2 <<'END' -Aborting the configuration process, to ensure you take notice of the issue. - -You can download and install GNU coreutils to get an 'rm' implementation -that behaves properly: . - -If you want to complete the configuration process using your problematic -'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM -to "yes", and re-run configure. +done + done +IFS=3D$as_save_IFS =20 -END - as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 - fi fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mainta= iner-specific portions of Makefiles" >&5 -$as_echo_n "checking whether to enable maintainer-specific portions of Mak= efiles... " >&6; } - # Check whether --enable-maintainer-mode was given. -if test "${enable_maintainer_mode+set}" =3D set; then : - enableval=3D$enable_maintainer_mode; USE_MAINTAINER_MODE=3D$enableval -else - USE_MAINTAINER_MODE=3Dno fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >= &5 -$as_echo "$USE_MAINTAINER_MODE" >&6; } - if test $USE_MAINTAINER_MODE =3D yes; then - MAINTAINER_MODE_TRUE=3D - MAINTAINER_MODE_FALSE=3D'#' +CC=3D$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } else - MAINTAINER_MODE_TRUE=3D'#' - MAINTAINER_MODE_FALSE=3D + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi =20 - MAINT=3D$MAINTAINER_MODE_TRUE - - -# Check whether --enable-silent-rules was given. -if test "${enable_silent_rules+set}" =3D set; then : - enableval=3D$enable_silent_rules; -fi =20 -case $enable_silent_rules in # ((( - yes) AM_DEFAULT_VERBOSITY=3D0;; - no) AM_DEFAULT_VERBOSITY=3D1;; - *) AM_DEFAULT_VERBOSITY=3D0;; -esac -am_make=3D${MAKE-make} -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make support= s nested variables" >&5 -$as_echo_n "checking whether $am_make supports nested variables... " >&6; } -if ${am_cv_make_support_nested_variables+:} false; then : - $as_echo_n "(cached) " >&6 -else - if $as_echo 'TRUE=3D$(BAR$(V)) -BAR0=3Dfalse -BAR1=3Dtrue -V=3D1 -am__doit: - @$(TRUE) -.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then - am_cv_make_support_nested_variables=3Dyes -else - am_cv_make_support_nested_variables=3Dno -fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_neste= d_variables" >&5 -$as_echo "$am_cv_make_support_nested_variables" >&6; } -if test $am_cv_make_support_nested_variables =3D yes; then - AM_V=3D'$(V)' - AM_DEFAULT_V=3D'$(AM_DEFAULT_VERBOSITY)' -else - AM_V=3D$AM_DEFAULT_VERBOSITY - AM_DEFAULT_V=3D$AM_DEFAULT_VERBOSITY + fi fi -AM_BACKSLASH=3D'\' - - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - - - - - - - -# Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=3D$2 +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=3D$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : @@ -3538,6 +3378,7 @@ else if test -n "$CC"; then ac_cv_prog_CC=3D"$CC" # Let the user override the test. else + ac_prog_rejected=3Dno as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR for as_dir in $PATH do @@ -3545,7 +3386,11 @@ do test -z "$as_dir" && as_dir=3D. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC=3D"gcc" + if test "$as_dir/$ac_word$ac_exec_ext" =3D "/usr/ucb/cc"; then + ac_prog_rejected=3Dyes + continue + fi + ac_cv_prog_CC=3D"cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_= ext" >&5 break 2 fi @@ -3553,6 +3398,18 @@ done done IFS=3D$as_save_IFS =20 +if test $ac_prog_rejected =3D yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $# !=3D 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC=3D"$as_dir/$ac_word${1+' '}$@" + fi +fi fi fi CC=3D$ac_cv_prog_CC @@ -3565,138 +3422,13 @@ $as_echo "no" >&6; } fi =20 =20 - -depcc=3D"$CC" am_compiler_list=3D - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $dep= cc" >&5 -$as_echo_n "checking dependency style of $depcc... " >&6; } -if ${am_cv_CC_dependencies_compiler_type+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named 'D' -- because '-MD' means "put the output - # in D". - rm -rf conftest.dir - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_CC_dependencies_compiler_type=3Dnone - if test "$am_compiler_list" =3D ""; then - am_compiler_list=3D`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - am__universal=3Dfalse - case " $depcc " in #( - *\ -arch\ *\ -arch\ *) am__universal=3Dtrue ;; - esac - - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with - # Solaris 10 /bin/sh. - echo '/* dummy */' > sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - # We check with '-c' and '-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle '-M -o', and we need to detect this. Also, some Intel - # versions had trouble with output in subdirs. - am__obj=3Dsub/conftest.${OBJEXT-o} - am__minus_obj=3D"-o $am__obj" - case $depmode in - gcc) - # This depmode causes a compiler race in universal mode. - test "$am__universal" =3D false || continue - ;; - nosideeffect) - # After this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested. - if test "x$enable_dependency_tracking" =3D xyes; then - continue - else - break - fi - ;; - msvc7 | msvc7msys | msvisualcpp | msvcmsys) - # This compiler won't grok '-c -o', but also, the minuso test has - # not run yet. These depmodes are late enough in the game, and - # so weak that their functioning should not be impacted. - am__obj=3Dconftest.${OBJEXT-o} - am__minus_obj=3D - ;; - none) break ;; - esac - if depmode=3D$depmode \ - source=3Dsub/conftest.c object=3D$am__obj \ - depfile=3Dsub/conftest.Po tmpdepfile=3Dsub/conftest.TPo \ - $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep $am__obj sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument req= uired - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_CC_dependencies_compiler_type=3D$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_CC_dependencies_compiler_type=3Dnone -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_co= mpiler_type" >&5 -$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } -CCDEPMODE=3Ddepmode=3D$am_cv_CC_dependencies_compiler_type - - if - test "x$enable_dependency_tracking" !=3D xno \ - && test "$am_cv_CC_dependencies_compiler_type" =3D gcc3; then - am__fastdepCC_TRUE=3D - am__fastdepCC_FALSE=3D'#' -else - am__fastdepCC_TRUE=3D'#' - am__fastdepCC_FALSE=3D fi - - if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=3D$2 + if test -n "$ac_tool_prefix"; then + for ac_prog in cl.exe + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a = program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=3D$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : @@ -3705,7 +3437,6 @@ else if test -n "$CC"; then ac_cv_prog_CC=3D"$CC" # Let the user override the test. else - ac_prog_rejected=3Dno as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR for as_dir in $PATH do @@ -3713,11 +3444,7 @@ do test -z "$as_dir" && as_dir=3D. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - if test "$as_dir/$ac_word$ac_exec_ext" =3D "/usr/ucb/cc"; then - ac_prog_rejected=3Dyes - continue - fi - ac_cv_prog_CC=3D"cc" + ac_cv_prog_CC=3D"$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_= ext" >&5 break 2 fi @@ -3725,18 +3452,6 @@ done done IFS=3D$as_save_IFS =20 -if test $ac_prog_rejected =3D yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# !=3D 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - ac_cv_prog_CC=3D"$as_dir/$ac_word${1+' '}$@" - fi -fi fi fi CC=3D$ac_cv_prog_CC @@ -3749,80 +3464,123 @@ $as_echo "no" >&6; } fi =20 =20 - test -z "$CC" && as_fn_error $? "no acceptable cc found in \$PATH" "$LIN= ENO" 5 + test -n "$CC" && break + done fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU= C" >&5 -$as_echo_n "checking whether we are using GNU C... " >&6; } -if ${ac_cv_c_compiler_gnu+:} false; then : +if test -z "$CC"; then + ac_ct_CC=3D$CC + for ac_prog in cl.exe +do + # Extract the first word of "$ac_prog", so it can be a program name with= args. +set dummy $ac_prog; ac_word=3D$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else - cat > conftest.c <&5 - (eval $ac_try) 2>&5 - ac_status=3D$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 - test $ac_status =3D 0; }; } | egrep yes >/dev/null 2>&1; then - ac_cv_c_compiler_gnu=3Dyes + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC=3D"$ac_ct_CC" # Let the user override the test. else - ac_cv_c_compiler_gnu=3Dno +as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=3D$as_save_IFS + test -z "$as_dir" && as_dir=3D. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC=3D"$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_= ext" >&5 + break 2 + fi +done + done +IFS=3D$as_save_IFS + fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 -$as_echo "$ac_cv_c_compiler_gnu" >&6; } - -if test $ac_cv_c_compiler_gnu =3D yes; then - GCC=3Dyes - ac_test_CFLAGS=3D"${CFLAGS+set}" - ac_save_CFLAGS=3D"$CFLAGS" - ac_test_CFLAGS=3D${CFLAGS+set} -ac_save_CFLAGS=3D$CFLAGS -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" = >&5 -$as_echo_n "checking whether $CC accepts -g... " >&6; } -if ${ac_cv_prog_cc_g+:} false; then : - $as_echo_n "(cached) " >&6 +ac_ct_CC=3D$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } else - ac_save_c_werror_flag=3D$ac_c_werror_flag - ac_c_werror_flag=3Dyes - ac_cv_prog_cc_g=3Dno - CFLAGS=3D"-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi =20 -int -main () -{ =20 - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_g=3Dyes -else - CFLAGS=3D"" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ + test -n "$ac_ct_CC" && break +done =20 -int -main () -{ + if test "x$ac_ct_CC" =3D x; then + CC=3D"" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not pr= efixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triple= t" >&2;} +ac_tool_warned=3Dyes ;; +esac + CC=3D$ac_ct_CC + fi +fi + +fi + + +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$a= c_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "no acceptable C compiler found in \$PATH +See \`config.log' for more details" "$LINENO" 5; } + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=3D$2 +for ac_option in --version -v -V -qversion; do + { { ac_try=3D"$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=3D\$ac_try;; + *) ac_try_echo=3D$ac_try;; +esac +eval ac_try_echo=3D"\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=3D$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 + test $ac_status =3D 0; } +done + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ =20 ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - -else - ac_c_werror_flag=3D$ac_save_c_werror_flag - CFLAGS=3D"-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +if { { ac_try=3D"$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=3D\$ac_try;; + *) ac_try_echo=3D$ac_try;; +esac +eval ac_try_echo=3D"\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=3D$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 + test $ac_status =3D 0; }; then + ac_no_link=3Dno + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ =20 int @@ -3833,418 +3591,933 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_g=3Dyes -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_c_werror_flag=3D$ac_save_c_werror_flag -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 -$as_echo "$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" =3D set; then - CFLAGS=3D$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g =3D yes; then - if test "$GCC" =3D yes; then - CFLAGS=3D"-g -O2" - else - CFLAGS=3D"-g" - fi -else - if test "$GCC" =3D yes; then - CFLAGS=3D"-O2" - else - CFLAGS=3D - fi -fi - if test "$ac_test_CFLAGS" =3D set; then - CFLAGS=3D"$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g =3D yes; then - CFLAGS=3D"-g -O2" - else - CFLAGS=3D"-O2" - fi -else - GCC=3D - test "${CFLAGS+set}" =3D set || CFLAGS=3D"-g" -fi +ac_clean_files_save=3D$ac_clean_files +ac_clean_files=3D"$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler w= orks" >&5 +$as_echo_n "checking whether the C compiler works... " >&6; } +ac_link_default=3D`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` =20 +# The possible output files: +ac_files=3D"a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" =20 -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}as", so it can be a progra= m name with args. -set dummy ${ac_tool_prefix}as; ac_word=3D$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_AS+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$AS"; then - ac_cv_prog_AS=3D"$AS" # Let the user override the test. -else -as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR -for as_dir in $PATH +ac_rmfiles=3D +for ac_file in $ac_files do - IFS=3D$as_save_IFS - test -z "$as_dir" && as_dir=3D. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_AS=3D"${ac_tool_prefix}as" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_= ext" >&5 - break 2 - fi + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.= map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles=3D"$ac_rmfiles $ac_file";; + esac done - done -IFS=3D$as_save_IFS - -fi -fi -AS=3D$ac_cv_prog_AS -if test -n "$AS"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 -$as_echo "$AS" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - +rm -f $ac_rmfiles =20 -fi -if test -z "$ac_cv_prog_AS"; then - ac_ct_AS=3D$AS - # Extract the first word of "as", so it can be a program name with args. -set dummy as; ac_word=3D$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_AS+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_AS"; then - ac_cv_prog_ac_ct_AS=3D"$ac_ct_AS" # Let the user override the test. -else -as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR -for as_dir in $PATH +if { { ac_try=3D"$ac_link_default" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=3D\$ac_try;; + *) ac_try_echo=3D$ac_try;; +esac +eval ac_try_echo=3D"\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 + ac_status=3D$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 + test $ac_status =3D 0; }; then : + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT =3D no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' do - IFS=3D$as_save_IFS - test -z "$as_dir" && as_dir=3D. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_AS=3D"as" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_= ext" >&5 - break 2 - fi + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.= map | *.inf | *.dSYM | *.o | *.obj ) + ;; + [ab].out ) + # We found the default executable, but exeext=3D'' is most + # certainly right. + break;; + *.* ) + if test "${ac_cv_exeext+set}" =3D set && test "$ac_cv_exeext" !=3D no; + then :; else + ac_cv_exeext=3D`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac done - done -IFS=3D$as_save_IFS +test "$ac_cv_exeext" =3D no && ac_cv_exeext=3D =20 -fi -fi -ac_ct_AS=3D$ac_cv_prog_ac_ct_AS -if test -n "$ac_ct_AS"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 -$as_echo "$ac_ct_AS" >&6; } else + ac_file=3D'' +fi +if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } -fi +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 =20 - if test "x$ac_ct_AS" =3D x; then - AS=3D"" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not pr= efixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triple= t" >&2;} -ac_tool_warned=3Dyes ;; -esac - AS=3D$ac_ct_AS - fi +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "C compiler cannot create executables +See \`config.log' for more details" "$LINENO" 5; } else - AS=3D"$ac_cv_prog_AS" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default o= utput file name" >&5 +$as_echo_n "checking for C compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +ac_exeext=3D$ac_cv_exeext =20 -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ar", so it can be a progra= m name with args. -set dummy ${ac_tool_prefix}ar; ac_word=3D$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_AR+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$AR"; then - ac_cv_prog_AR=3D"$AR" # Let the user override the test. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=3D$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executable= s" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try=3D"$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=3D\$ac_try;; + *) ac_try_echo=3D$ac_try;; +esac +eval ac_try_echo=3D"\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=3D$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 + test $ac_status =3D 0; }; then : + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.= map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=3D`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of executables: cannot compile and l= ink +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=3D$ac_cv_exeext +ac_exeext=3D$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +FILE *f =3D fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) !=3D 0; + + ; + return 0; +} +_ACEOF +ac_clean_files=3D"$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross com= piling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" !=3D yes; then + { { ac_try=3D"$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=3D\$ac_try;; + *) ac_try_echo=3D$ac_try;; +esac +eval ac_try_echo=3D"\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=3D$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 + test $ac_status =3D 0; } + if { ac_try=3D'./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=3D\$ac_try;; + *) ac_try_echo=3D$ac_try;; +esac +eval ac_try_echo=3D"\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=3D$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 + test $ac_status =3D 0; }; }; then + cross_compiling=3Dno + else + if test "$cross_compiling" =3D maybe; then + cross_compiling=3Dyes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details" "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=3D$ac_clean_files_save + +else + rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.o conftest.obj conf= test.dSYM + ac_no_link=3Dyes + # Setting cross_compile will disable run tests; it will + # also disable AC_CHECK_FILE but that's generally + # correct if we can't link. + cross_compiling=3Dyes + EXEEXT=3D + # Check that the compiler produces executables we can run. If not, eith= er +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross com= piling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" !=3D yes; then + { { ac_try=3D"$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=3D\$ac_try;; + *) ac_try_echo=3D$ac_try;; +esac +eval ac_try_echo=3D"\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=3D$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 + test $ac_status =3D 0; } + if { ac_try=3D'./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=3D\$ac_try;; + *) ac_try_echo=3D$ac_try;; +esac +eval ac_try_echo=3D"\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=3D$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 + test $ac_status =3D 0; }; }; then + cross_compiling=3Dno + else + if test "$cross_compiling" =3D maybe; then + cross_compiling=3Dyes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details" "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object fil= es" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if ${ac_cv_objext+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { { ac_try=3D"$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=3D\$ac_try;; + *) ac_try_echo=3D$ac_try;; +esac +eval ac_try_echo=3D"\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 + ac_status=3D$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 + test $ac_status =3D 0; }; then : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.= map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=3D`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of object files: cannot compile +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=3D$ac_cv_objext +ac_objext=3D$OBJEXT +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the= GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if ${ac_cv_c_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=3Dyes +else + ac_compiler_gnu=3Dno +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=3D$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu =3D yes; then + GCC=3Dyes +else + GCC=3D +fi +ac_test_CFLAGS=3D${CFLAGS+set} +ac_save_CFLAGS=3D$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" = >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if ${ac_cv_prog_cc_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=3D$ac_c_werror_flag + ac_c_werror_flag=3Dyes + ac_cv_prog_cc_g=3Dno + CFLAGS=3D"-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=3Dyes +else + CFLAGS=3D"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + ac_c_werror_flag=3D$ac_save_c_werror_flag + CFLAGS=3D"-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=3Dyes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=3D$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" =3D set; then + CFLAGS=3D$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g =3D yes; then + if test "$GCC" =3D yes; then + CFLAGS=3D"-g -O2" + else + CFLAGS=3D"-g" + fi +else + if test "$GCC" =3D yes; then + CFLAGS=3D"-O2" + else + CFLAGS=3D + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept= ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if ${ac_cv_prog_cc_c89+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=3Dno +ac_save_CC=3D$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +struct stat; +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s =3D g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!=3D'x' always comes out true, for an + array size at least. It's necessary to write '\x00'=3D=3D0 to get some= thing + that's true only with -std. */ +int osf4_cc_array ['\x00' =3D=3D 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parame= ters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) =3D=3D 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), = int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) !=3D argv[0] || f (e, argv, 1) !=3D argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=3Dextc89 -qlanglvl=3Dansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC=3D"$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=3D$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" !=3D "xno" && break +done +rm -f conftest.$ac_ext +CC=3D$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC=3D"$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >= &5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" !=3D xno; then : + +fi + +ac_ext=3Dc +ac_cpp=3D'$CPP $CPPFLAGS' +ac_compile=3D'$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link=3D'$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$= ac_ext $LIBS >&5' +ac_compiler_gnu=3D$ac_cv_c_compiler_gnu + +ac_ext=3Dc +ac_cpp=3D'$CPP $CPPFLAGS' +ac_compile=3D'$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link=3D'$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$= ac_ext $LIBS >&5' +ac_compiler_gnu=3D$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands = -c and -o together" >&5 +$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } +if ${am_cv_prog_cc_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF + # Make sure it works both with $CC and with simple cc. + # Following AC_PROG_CC_C_O, we do the test twice because some + # compilers refuse to overwrite an existing .o file with -o, + # though they will create one. + am_cv_prog_cc_c_o=3Dyes + for am_i in 1 2; do + if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_ob= jext" >&5 + ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 + ac_status=3D$? + echo "$as_me:$LINENO: \$? =3D $ac_status" >&5 + (exit $ac_status); } \ + && test -f conftest2.$ac_objext; then + : OK + else + am_cv_prog_cc_c_o=3Dno + break + fi + done + rm -f core conftest* + unset am_i +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 +$as_echo "$am_cv_prog_cc_c_o" >&6; } +if test "$am_cv_prog_cc_c_o" !=3D yes; then + # Losing compiler, so override with the script. + # FIXME: It is wrong to rewrite CC. + # But if we don't then we get into trouble of one sort or another. + # A longer-term fix would be to have automake use am__CC in this case, + # and then we could set am__CC=3D"\$(top_srcdir)/compile \$(CC)" + CC=3D"$am_aux_dir/compile $CC" +fi +ac_ext=3Dc +ac_cpp=3D'$CPP $CPPFLAGS' +ac_compile=3D'$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link=3D'$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$= ac_ext $LIBS >&5' +ac_compiler_gnu=3D$ac_cv_c_compiler_gnu + + +ac_ext=3Dc +ac_cpp=3D'$CPP $CPPFLAGS' +ac_compile=3D'$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link=3D'$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$= ac_ext $LIBS >&5' +ac_compiler_gnu=3D$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preproc= essor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP=3D +fi +if test -z "$CPP"; then + if ${ac_cv_prog_CPP+:} false; then : + $as_echo_n "(cached) " >&6 else -as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR -for as_dir in $PATH + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=3Dfalse +for ac_c_preproc_warn_flag in '' yes do - IFS=3D$as_save_IFS - test -z "$as_dir" && as_dir=3D. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_AR=3D"${ac_tool_prefix}ar" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_= ext" >&5 - break 2 - fi + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=3D: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + done - done -IFS=3D$as_save_IFS +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CPP=3D$CPP =20 fi + CPP=3D$ac_cv_prog_CPP +else + ac_cv_prog_CPP=3D$CPP fi -AR=3D$ac_cv_prog_AR -if test -n "$AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 -$as_echo "$AR" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=3Dfalse +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=3D: +break fi +rm -f conftest.err conftest.i conftest.$ac_ext =20 +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : =20 +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } fi -if test -z "$ac_cv_prog_AR"; then - ac_ct_AR=3D$AR - # Extract the first word of "ar", so it can be a program name with args. -set dummy ar; ac_word=3D$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_AR+:} false; then : - $as_echo_n "(cached) " >&6 + +ac_ext=3Dc +ac_cpp=3D'$CPP $CPPFLAGS' +ac_compile=3D'$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link=3D'$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$= ac_ext $LIBS >&5' +ac_compiler_gnu=3D$ac_cv_c_compiler_gnu + + +# Check whether --enable-target-optspace was given. +if test "${enable_target_optspace+set}" =3D set; then : + enableval=3D$enable_target_optspace; case "${enableval}" in + yes) target_optspace=3Dyes ;; + no) target_optspace=3Dno ;; + *) as_fn_error $? "bad value ${enableval} for target-optspace option" = "$LINENO" 5 ;; + esac else - if test -n "$ac_ct_AR"; then - ac_cv_prog_ac_ct_AR=3D"$ac_ct_AR" # Let the user override the test. + target_optspace=3D +fi + +# Check whether --enable-malloc-debugging was given. +if test "${enable_malloc_debugging+set}" =3D set; then : + enableval=3D$enable_malloc_debugging; case "${enableval}" in + yes) malloc_debugging=3Dyes ;; + no) malloc_debugging=3Dno ;; + *) as_fn_error $? "bad value ${enableval} for malloc-debugging option"= "$LINENO" 5 ;; + esac else -as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=3D$as_save_IFS - test -z "$as_dir" && as_dir=3D. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_AR=3D"ar" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_= ext" >&5 - break 2 - fi -done - done -IFS=3D$as_save_IFS + malloc_debugging=3D +fi =20 +# Check whether --enable-newlib-multithread was given. +if test "${enable_newlib_multithread+set}" =3D set; then : + enableval=3D$enable_newlib_multithread; case "${enableval}" in + yes) newlib_multithread=3Dyes ;; + no) newlib_multithread=3Dno ;; + *) as_fn_error $? "bad value ${enableval} for newlib-multithread optio= n" "$LINENO" 5 ;; + esac +else + newlib_multithread=3Dyes fi + +# Check whether --enable-newlib-iconv was given. +if test "${enable_newlib_iconv+set}" =3D set; then : + enableval=3D$enable_newlib_iconv; if test "${newlib_iconv+set}" !=3D set= ; then + case "${enableval}" in + yes) newlib_iconv=3Dyes ;; + no) newlib_iconv=3Dno ;; + *) as_fn_error $? "bad value ${enableval} for newlib-iconv option" = "$LINENO" 5 ;; + esac + fi +else + newlib_iconv=3D${newlib_iconv} fi -ac_ct_AR=3D$ac_cv_prog_ac_ct_AR -if test -n "$ac_ct_AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 -$as_echo "$ac_ct_AR" >&6; } + +# Check whether --enable-newlib-elix-level was given. +if test "${enable_newlib_elix_level+set}" =3D set; then : + enableval=3D$enable_newlib_elix_level; case "${enableval}" in + 0) newlib_elix_level=3D0 ;; + 1) newlib_elix_level=3D1 ;; + 2) newlib_elix_level=3D2 ;; + 3) newlib_elix_level=3D3 ;; + 4) newlib_elix_level=3D4 ;; + *) as_fn_error $? "bad value ${enableval} for newlib-elix-level option= " "$LINENO" 5 ;; + esac +else + newlib_elix_level=3D0 +fi + +# Check whether --enable-newlib-io-float was given. +if test "${enable_newlib_io_float+set}" =3D set; then : + enableval=3D$enable_newlib_io_float; case "${enableval}" in + yes) newlib_io_float=3Dyes ;; + no) newlib_io_float=3Dno ;; + *) as_fn_error $? "bad value ${enableval} for newlib-io-float option" = "$LINENO" 5 ;; + esac +else + newlib_io_float=3Dyes +fi + +# Check whether --enable-newlib-supplied-syscalls was given. +if test "${enable_newlib_supplied_syscalls+set}" =3D set; then : + enableval=3D$enable_newlib_supplied_syscalls; case "${enableval}" in + yes) newlib_may_supply_syscalls=3Dyes ;; + no) newlib_may_supply_syscalls=3Dno ;; + *) as_fn_error $? "bad value ${enableval} for newlib-supplied-syscalls= option" "$LINENO" 5 ;; + esac else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + newlib_may_supply_syscalls=3Dyes fi =20 - if test "x$ac_ct_AR" =3D x; then - AR=3D"" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not pr= efixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triple= t" >&2;} -ac_tool_warned=3Dyes ;; -esac - AR=3D$ac_ct_AR - fi + if test x${newlib_may_supply_syscalls} =3D xyes; then + MAY_SUPPLY_SYSCALLS_TRUE=3D + MAY_SUPPLY_SYSCALLS_FALSE=3D'#' else - AR=3D"$ac_cv_prog_AR" + MAY_SUPPLY_SYSCALLS_TRUE=3D'#' + MAY_SUPPLY_SYSCALLS_FALSE=3D fi =20 -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a pr= ogram name with args. -set dummy ${ac_tool_prefix}ranlib; ac_word=3D$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_RANLIB+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB=3D"$RANLIB" # Let the user override the test. -else -as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=3D$as_save_IFS - test -z "$as_dir" && as_dir=3D. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_RANLIB=3D"${ac_tool_prefix}ranlib" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_= ext" >&5 - break 2 - fi -done - done -IFS=3D$as_save_IFS =20 -fi -fi -RANLIB=3D$ac_cv_prog_RANLIB -if test -n "$RANLIB"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 -$as_echo "$RANLIB" >&6; } +# Check whether --enable-newlib-fno-builtin was given. +if test "${enable_newlib_fno_builtin+set}" =3D set; then : + enableval=3D$enable_newlib_fno_builtin; case "${enableval}" in + yes) newlib_fno_builtin=3Dyes ;; + no) newlib_fno_builtin=3Dno ;; + *) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin optio= n" "$LINENO" 5 ;; + esac else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + newlib_fno_builtin=3D fi =20 =20 -fi -if test -z "$ac_cv_prog_RANLIB"; then - ac_ct_RANLIB=3D$RANLIB - # Extract the first word of "ranlib", so it can be a program name with a= rgs. -set dummy ranlib; ac_word=3D$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_RANLIB"; then - ac_cv_prog_ac_ct_RANLIB=3D"$ac_ct_RANLIB" # Let the user override the te= st. -else -as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=3D$as_save_IFS - test -z "$as_dir" && as_dir=3D. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_RANLIB=3D"ranlib" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_= ext" >&5 - break 2 - fi -done - done -IFS=3D$as_save_IFS =20 -fi -fi -ac_ct_RANLIB=3D$ac_cv_prog_ac_ct_RANLIB -if test -n "$ac_ct_RANLIB"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 -$as_echo "$ac_ct_RANLIB" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi +test -z "${with_target_subdir}" && with_target_subdir=3D. =20 - if test "x$ac_ct_RANLIB" =3D x; then - RANLIB=3D":" +if test "${srcdir}" =3D "."; then + if test "${with_target_subdir}" !=3D "."; then + newlib_basedir=3D"${srcdir}/${with_multisrctop}../." else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not pr= efixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triple= t" >&2;} -ac_tool_warned=3Dyes ;; -esac - RANLIB=3D$ac_ct_RANLIB + newlib_basedir=3D"${srcdir}/${with_multisrctop}." fi else - RANLIB=3D"$ac_cv_prog_RANLIB" + newlib_basedir=3D"${srcdir}/." fi =20 -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}readelf", so it can be a p= rogram name with args. -set dummy ${ac_tool_prefix}readelf; ac_word=3D$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_READELF+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$READELF"; then - ac_cv_prog_READELF=3D"$READELF" # Let the user override the test. -else -as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=3D$as_save_IFS - test -z "$as_dir" && as_dir=3D. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_READELF=3D"${ac_tool_prefix}readelf" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_= ext" >&5 - break 2 - fi -done - done -IFS=3D$as_save_IFS =20 -fi -fi -READELF=3D$ac_cv_prog_READELF -if test -n "$READELF"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 -$as_echo "$READELF" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi +abs_newlib_basedir=3D`cd "${newlib_basedir}" && pwd` =20 =20 + + +if test "`cd $srcdir && pwd`" !=3D "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) !=3D ., so that make's output + # is not polluted with repeated "-I." + am__isrc=3D' -I$(srcdir)' + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + as_fn_error $? "source directory already configured; run \"make distcl= ean\" there first" "$LINENO" 5 + fi fi -if test -z "$ac_cv_prog_READELF"; then - ac_ct_READELF=3D$READELF - # Extract the first word of "readelf", so it can be a program name with = args. -set dummy readelf; ac_word=3D$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_READELF+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_READELF"; then - ac_cv_prog_ac_ct_READELF=3D"$ac_ct_READELF" # Let the user override the = test. -else -as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=3D$as_save_IFS - test -z "$as_dir" && as_dir=3D. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_READELF=3D"readelf" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_= ext" >&5 - break 2 + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W=3D'cygpath -w' + else + CYGPATH_W=3Decho fi -done - done -IFS=3D$as_save_IFS +fi + + +# Define the identity of the package. + PACKAGE=3D'newlib' + VERSION=3D'4.2.0' + + +# Some tools Automake needs. + +ACLOCAL=3D${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} + + +AUTOCONF=3D${AUTOCONF-"${am_missing_run}autoconf"} + + +AUTOMAKE=3D${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + + +AUTOHEADER=3D${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=3D${MAKEINFO-"${am_missing_run}makeinfo"} + +# For better backward compatibility. To be removed once Automake 1.9.x +# dies out for good. For more background, see: +# +# +mkdir_p=3D'$(MKDIR_P)' + +# We need awk for the "check" target (and possibly the TAP driver). The +# system "awk" is bad on some platforms. +# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AMTAR=3D'$${TAR-tar}' + + +# We'll loop over all known methods to create a tar archive until one work= s. +_am_tools=3D'gnutar pax cpio none' + +am__tar=3D'$${TAR-tar} chof - "$$tardir"' am__untar=3D'$${TAR-tar} xf -' + + + + + + +# POSIX will say in a future version that running "rm -f" with no argument +# is OK; and we want to be able to make that assumption in our Makefile +# recipes. So use an aggressive probe to check that the usage we want is +# actually supported "in the wild" to an acceptable degree. +# See automake bug#10828. +# To make any issue more visible, cause the running configure to be aborted +# by default if the 'rm' program in use doesn't match our expectations; the +# user can still override this though. +if rm -f && rm -fr && rm -rf; then : OK; else + cat >&2 <<'END' +Oops! + +Your 'rm' program seems unable to run without file operands specified +on the command line, even when the '-f' option is present. This is contra= ry +to the behaviour of most rm programs out there, and not conforming with +the upcoming POSIX standard: =20 -fi -fi -ac_ct_READELF=3D$ac_cv_prog_ac_ct_READELF -if test -n "$ac_ct_READELF"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 -$as_echo "$ac_ct_READELF" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi +Please tell bug-automake@gnu.org about your system, including the value +of your $PATH and any error possibly output before this message. This +can help us improve future automake versions. =20 - if test "x$ac_ct_READELF" =3D x; then - READELF=3D":" +END + if test x"$ACCEPT_INFERIOR_RM_PROGRAM" =3D x"yes"; then + echo 'Configuration will proceed anyway, since you have set the' >&2 + echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 + echo >&2 else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not pr= efixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triple= t" >&2;} -ac_tool_warned=3Dyes ;; -esac - READELF=3D$ac_ct_READELF - fi -else - READELF=3D"$ac_cv_prog_READELF" -fi + cat >&2 <<'END' +Aborting the configuration process, to ensure you take notice of the issue. =20 +You can download and install GNU coreutils to get an 'rm' implementation +that behaves properly: . =20 +If you want to complete the configuration process using your problematic +'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM +to "yes", and re-run configure. =20 -# Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13. */ -ac_given_INSTALL=3D$INSTALL +END + as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 + fi +fi =20 =20 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mainta= iner-specific portions of Makefiles" >&5 @@ -4269,297 +4542,507 @@ fi MAINT=3D$MAINTAINER_MODE_TRUE =20 =20 -# By default we simply use the C compiler to build assembly code. +# Check whether --enable-silent-rules was given. +if test "${enable_silent_rules+set}" =3D set; then : + enableval=3D$enable_silent_rules; +fi =20 -test "${CCAS+set}" =3D set || CCAS=3D$CC -test "${CCASFLAGS+set}" =3D set || CCASFLAGS=3D$CFLAGS +case $enable_silent_rules in # ((( + yes) AM_DEFAULT_VERBOSITY=3D0;; + no) AM_DEFAULT_VERBOSITY=3D1;; + *) AM_DEFAULT_VERBOSITY=3D0;; +esac +am_make=3D${MAKE-make} +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make support= s nested variables" >&5 +$as_echo_n "checking whether $am_make supports nested variables... " >&6; } +if ${am_cv_make_support_nested_variables+:} false; then : + $as_echo_n "(cached) " >&6 +else + if $as_echo 'TRUE=3D$(BAR$(V)) +BAR0=3Dfalse +BAR1=3Dtrue +V=3D1 +am__doit: + @$(TRUE) +.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then + am_cv_make_support_nested_variables=3Dyes +else + am_cv_make_support_nested_variables=3Dno +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_neste= d_variables" >&5 +$as_echo "$am_cv_make_support_nested_variables" >&6; } +if test $am_cv_make_support_nested_variables =3D yes; then + AM_V=3D'$(V)' + AM_DEFAULT_V=3D'$(AM_DEFAULT_VERBOSITY)' +else + AM_V=3D$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=3D$AM_DEFAULT_VERBOSITY +fi +AM_BACKSLASH=3D'\' =20 =20 =20 =20 -# We need AC_EXEEXT to keep automake happy in cygnus mode. However, -# at least currently, we never actually build a program, so we never -# need to use $(EXEEXT). Moreover, the test for EXEEXT normally -# fails, because we are probably configuring with a cross compiler -# which can't create executables. So we include AC_EXEEXT to keep -# automake happy, but we don't execute it, since we don't care about -# the result. -if false; then +# FIXME: We temporarily define our own version of AC_PROG_CC. This is +# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We +# are probably using a cross compiler, which will not be able to fully +# link an executable. This should really be fixed in autoconf +# itself. =20 - dummy_var=3D1 -fi =20 -. ${newlib_basedir}/configure.host =20 -NEWLIB_CFLAGS=3D${newlib_cflags} =20 =20 -NO_INCLUDE_LIST=3D${noinclude} =20 =20 - if test x${newlib_elix_level} =3D x0; then - ELIX_LEVEL_0_TRUE=3D - ELIX_LEVEL_0_FALSE=3D'#' +# Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=3D$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 else - ELIX_LEVEL_0_TRUE=3D'#' - ELIX_LEVEL_0_FALSE=3D -fi + if test -n "$CC"; then + ac_cv_prog_CC=3D"$CC" # Let the user override the test. +else +as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=3D$as_save_IFS + test -z "$as_dir" && as_dir=3D. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC=3D"gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_= ext" >&5 + break 2 + fi +done + done +IFS=3D$as_save_IFS =20 - if test x${newlib_elix_level} =3D x1; then - ELIX_LEVEL_1_TRUE=3D - ELIX_LEVEL_1_FALSE=3D'#' +fi +fi +CC=3D$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } else - ELIX_LEVEL_1_TRUE=3D'#' - ELIX_LEVEL_1_FALSE=3D + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi =20 - if test x${newlib_elix_level} =3D x2; then - ELIX_LEVEL_2_TRUE=3D - ELIX_LEVEL_2_FALSE=3D'#' + + +depcc=3D"$CC" am_compiler_list=3D + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $dep= cc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CC_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 else - ELIX_LEVEL_2_TRUE=3D'#' - ELIX_LEVEL_2_FALSE=3D -fi + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named 'D' -- because '-MD' means "put the output + # in D". + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CC_dependencies_compiler_type=3Dnone + if test "$am_compiler_list" =3D ""; then + am_compiler_list=3D`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=3Dfalse + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=3Dtrue ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with + # Solaris 10 /bin/sh. + echo '/* dummy */' > sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with '-c' and '-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle '-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs. + am__obj=3Dsub/conftest.${OBJEXT-o} + am__minus_obj=3D"-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" =3D false || continue + ;; + nosideeffect) + # After this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested. + if test "x$enable_dependency_tracking" =3D xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok '-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=3Dconftest.${OBJEXT-o} + am__minus_obj=3D + ;; + none) break ;; + esac + if depmode=3D$depmode \ + source=3Dsub/conftest.c object=3D$am__obj \ + depfile=3Dsub/conftest.Po tmpdepfile=3Dsub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument req= uired + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CC_dependencies_compiler_type=3D$depmode + break + fi + fi + done =20 - if test x${newlib_elix_level} =3D x3; then - ELIX_LEVEL_3_TRUE=3D - ELIX_LEVEL_3_FALSE=3D'#' + cd .. + rm -rf conftest.dir else - ELIX_LEVEL_3_TRUE=3D'#' - ELIX_LEVEL_3_FALSE=3D + am_cv_CC_dependencies_compiler_type=3Dnone fi =20 - if test x${newlib_elix_level} =3D x4; then - ELIX_LEVEL_4_TRUE=3D - ELIX_LEVEL_4_FALSE=3D'#' -else - ELIX_LEVEL_4_TRUE=3D'#' - ELIX_LEVEL_4_FALSE=3D fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_co= mpiler_type" >&5 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +CCDEPMODE=3Ddepmode=3D$am_cv_CC_dependencies_compiler_type =20 - - if test x${use_libtool} =3D xyes; then - USE_LIBTOOL_TRUE=3D - USE_LIBTOOL_FALSE=3D'#' + if + test "x$enable_dependency_tracking" !=3D xno \ + && test "$am_cv_CC_dependencies_compiler_type" =3D gcc3; then + am__fastdepCC_TRUE=3D + am__fastdepCC_FALSE=3D'#' else - USE_LIBTOOL_TRUE=3D'#' - USE_LIBTOOL_FALSE=3D -fi - - -# Emit any target-specific warnings. -if test "x${newlib_msg_warn}" !=3D "x"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${newlib_msg_warn}" >= &5 -$as_echo "$as_me: WARNING: ${newlib_msg_warn}" >&2;} + am__fastdepCC_TRUE=3D'#' + am__fastdepCC_FALSE=3D fi =20 -# Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we -# use oext, which is set in configure.host based on the target platform. -OBJEXT=3D${oext} - - - - - - - =20 - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not = truncate output" >&5 -$as_echo_n "checking for a sed that does not truncate output... " >&6; } -if ${ac_cv_path_SED+:} false; then : +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=3D$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else - ac_script=3Ds/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbb= bbbbbbbbbbbbbbbbbbbbb/ - for ac_i in 1 2 3 4 5 6 7; do - ac_script=3D"$ac_script$as_nl$ac_script" - done - echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed - { ac_script=3D; unset ac_script;} - if test -z "$SED"; then - ac_path_SED_found=3Dfalse - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR + if test -n "$CC"; then + ac_cv_prog_CC=3D"$CC" # Let the user override the test. +else + ac_prog_rejected=3Dno +as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR for as_dir in $PATH do IFS=3D$as_save_IFS test -z "$as_dir" && as_dir=3D. - for ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_SED=3D"$as_dir/$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_SED" || continue -# Check for GNU ac_path_SED and select it if it is found. - # Check for GNU $ac_path_SED -case `"$ac_path_SED" --version 2>&1` in -*GNU*) - ac_cv_path_SED=3D"$ac_path_SED" ac_path_SED_found=3D:;; -*) - ac_count=3D0 - $as_echo_n 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - $as_echo '' >> "conftest.nl" - "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/= null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=3D$as_val - if test $ac_count -gt ${ac_path_SED_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_SED=3D"$ac_path_SED" - ac_path_SED_max=3D$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_SED_found && break 3 - done - done + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if test "$as_dir/$ac_word$ac_exec_ext" =3D "/usr/ucb/cc"; then + ac_prog_rejected=3Dyes + continue + fi + ac_cv_prog_CC=3D"cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_= ext" >&5 + break 2 + fi +done done IFS=3D$as_save_IFS - if test -z "$ac_cv_path_SED"; then - as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 + +if test $ac_prog_rejected =3D yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $# !=3D 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC=3D"$as_dir/$ac_word${1+' '}$@" fi -else - ac_cv_path_SED=3D$SED fi - fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 -$as_echo "$ac_cv_path_SED" >&6; } - SED=3D"$ac_cv_path_SED" - rm -f conftest.sed - -test -z "$SED" && SED=3Dsed -Xsed=3D"$SED -e 1s/^X//" - - - - - - - - - - - -ECHO=3D'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\= \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -ECHO=3D$ECHO$ECHO$ECHO$ECHO$ECHO -ECHO=3D$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 -$as_echo_n "checking how to print strings... " >&6; } -# Test print first, because it will be a builtin if present. -if test "X`print -r -- -n 2>/dev/null`" =3D X-n && \ - test "X`print -r -- $ECHO 2>/dev/null`" =3D "X$ECHO"; then - ECHO=3D'print -r --' -elif test "X`printf %s $ECHO 2>/dev/null`" =3D "X$ECHO"; then - ECHO=3D'printf %s\n' +fi +CC=3D$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } else - # Use this function as a fallback that always works. - func_fallback_echo () - { - eval 'cat <<_LTECHO_EOF -$1 -_LTECHO_EOF' - } - ECHO=3D'func_fallback_echo' + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi =20 -# func_echo_all arg... -# Invoke $ECHO with all args, space-separated. -func_echo_all () -{ - $ECHO "" -} - -case "$ECHO" in - printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 -$as_echo "printf" >&6; } ;; - print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 -$as_echo "print -r" >&6; } ;; - *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 -$as_echo "cat" >&6; } ;; -esac - - - - - - - - - - - - - - -if test "${use_libtool}" =3D "yes"; then -case `pwd` in - *\ * | *\ *) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cop= e well with whitespace in \`pwd\`" >&5 -$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \= `pwd\`" >&2;} ;; -esac - - - -macro_version=3D'2.2.7a' -macro_revision=3D'1.3134' - =20 + test -z "$CC" && as_fn_error $? "no acceptable cc found in \$PATH" "$LIN= ENO" 5 +fi =20 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU= C" >&5 +$as_echo_n "checking whether we are using GNU C... " >&6; } +if ${ac_cv_c_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat > conftest.c <&5 + (eval $ac_try) 2>&5 + ac_status=3D$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 + test $ac_status =3D 0; }; } | egrep yes >/dev/null 2>&1; then + ac_cv_c_compiler_gnu=3Dyes +else + ac_cv_c_compiler_gnu=3Dno +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } =20 +if test $ac_cv_c_compiler_gnu =3D yes; then + GCC=3Dyes + ac_test_CFLAGS=3D"${CFLAGS+set}" + ac_save_CFLAGS=3D"$CFLAGS" + ac_test_CFLAGS=3D${CFLAGS+set} +ac_save_CFLAGS=3D$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" = >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if ${ac_cv_prog_cc_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=3D$ac_c_werror_flag + ac_c_werror_flag=3Dyes + ac_cv_prog_cc_g=3Dno + CFLAGS=3D"-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ =20 +int +main () +{ =20 + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=3Dyes +else + CFLAGS=3D"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ =20 +int +main () +{ =20 + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : =20 +else + ac_c_werror_flag=3D$ac_save_c_werror_flag + CFLAGS=3D"-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ =20 +int +main () +{ =20 + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=3Dyes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=3D$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" =3D set; then + CFLAGS=3D$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g =3D yes; then + if test "$GCC" =3D yes; then + CFLAGS=3D"-g -O2" + else + CFLAGS=3D"-g" + fi +else + if test "$GCC" =3D yes; then + CFLAGS=3D"-O2" + else + CFLAGS=3D + fi +fi + if test "$ac_test_CFLAGS" =3D set; then + CFLAGS=3D"$ac_save_CFLAGS" + elif test $ac_cv_prog_cc_g =3D yes; then + CFLAGS=3D"-g -O2" + else + CFLAGS=3D"-O2" + fi +else + GCC=3D + test "${CFLAGS+set}" =3D set || CFLAGS=3D"-g" +fi =20 =20 -ltmain=3D"$ac_aux_dir/ltmain.sh" +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}as", so it can be a progra= m name with args. +set dummy ${ac_tool_prefix}as; ac_word=3D$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AS"; then + ac_cv_prog_AS=3D"$AS" # Let the user override the test. +else +as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=3D$as_save_IFS + test -z "$as_dir" && as_dir=3D. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AS=3D"${ac_tool_prefix}as" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_= ext" >&5 + break 2 + fi +done + done +IFS=3D$as_save_IFS =20 -# Backslashify metacharacters that are still active within -# double-quoted strings. -sed_quote_subst=3D's/\(["`$\\]\)/\\\1/g' +fi +fi +AS=3D$ac_cv_prog_AS +if test -n "$AS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 +$as_echo "$AS" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi =20 -# Same as above, but do not quote variable references. -double_quote_subst=3D's/\(["`\\]\)/\\\1/g' =20 -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst=3D's/\\\\\\\\\\\$/\\\\\\$/g' +fi +if test -z "$ac_cv_prog_AS"; then + ac_ct_AS=3D$AS + # Extract the first word of "as", so it can be a program name with args. +set dummy as; ac_word=3D$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_AS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AS"; then + ac_cv_prog_ac_ct_AS=3D"$ac_ct_AS" # Let the user override the test. +else +as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=3D$as_save_IFS + test -z "$as_dir" && as_dir=3D. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_AS=3D"as" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_= ext" >&5 + break 2 + fi +done + done +IFS=3D$as_save_IFS =20 -# Sed substitution to delay expansion of an escaped single quote. -delay_single_quote_subst=3D's/'\''/'\'\\\\\\\'\''/g' +fi +fi +ac_ct_AS=3D$ac_cv_prog_ac_ct_AS +if test -n "$ac_ct_AS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 +$as_echo "$ac_ct_AS" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi =20 -# Sed substitution to avoid accidental globbing in evaled expressions -no_glob_subst=3D's/\*/\\\*/g' + if test "x$ac_ct_AS" =3D x; then + AS=3D"" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not pr= efixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triple= t" >&2;} +ac_tool_warned=3Dyes ;; +esac + AS=3D$ac_ct_AS + fi +else + AS=3D"$ac_cv_prog_AS" +fi =20 -ac_ext=3Dc -ac_cpp=3D'$CPP $CPPFLAGS' -ac_compile=3D'$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link=3D'$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$= ac_ext $LIBS >&5' -ac_compiler_gnu=3D$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a progr= am name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=3D$2 + # Extract the first word of "${ac_tool_prefix}ar", so it can be a progra= m name with args. +set dummy ${ac_tool_prefix}ar; ac_word=3D$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : +if ${ac_cv_prog_AR+:} false; then : $as_echo_n "(cached) " >&6 else - if test -n "$CC"; then - ac_cv_prog_CC=3D"$CC" # Let the user override the test. + if test -n "$AR"; then + ac_cv_prog_AR=3D"$AR" # Let the user override the test. else as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR for as_dir in $PATH @@ -4568,7 +5051,7 @@ do test -z "$as_dir" && as_dir=3D. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC=3D"${ac_tool_prefix}gcc" + ac_cv_prog_AR=3D"${ac_tool_prefix}ar" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_= ext" >&5 break 2 fi @@ -4578,10 +5061,10 @@ IFS=3D$as_save_IFS =20 fi fi -CC=3D$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } +AR=3D$ac_cv_prog_AR +if test -n "$AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +$as_echo "$AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } @@ -4589,17 +5072,17 @@ fi =20 =20 fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=3D$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=3D$2 +if test -z "$ac_cv_prog_AR"; then + ac_ct_AR=3D$AR + # Extract the first word of "ar", so it can be a program name with args. +set dummy ar; ac_word=3D$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CC+:} false; then : +if ${ac_cv_prog_ac_ct_AR+:} false; then : $as_echo_n "(cached) " >&6 else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC=3D"$ac_ct_CC" # Let the user override the test. + if test -n "$ac_ct_AR"; then + ac_cv_prog_ac_ct_AR=3D"$ac_ct_AR" # Let the user override the test. else as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR for as_dir in $PATH @@ -4608,7 +5091,7 @@ do test -z "$as_dir" && as_dir=3D. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC=3D"gcc" + ac_cv_prog_ac_ct_AR=3D"ar" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_= ext" >&5 break 2 fi @@ -4618,17 +5101,17 @@ IFS=3D$as_save_IFS =20 fi fi -ac_ct_CC=3D$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } +ac_ct_AR=3D$ac_cv_prog_ac_ct_AR +if test -n "$ac_ct_AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +$as_echo "$ac_ct_AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi =20 - if test "x$ac_ct_CC" =3D x; then - CC=3D"" + if test "x$ac_ct_AR" =3D x; then + AR=3D"" else case $cross_compiling:$ac_tool_warned in yes:) @@ -4636,23 +5119,22 @@ yes:) $as_echo "$as_me: WARNING: using cross tools not prefixed with host triple= t" >&2;} ac_tool_warned=3Dyes ;; esac - CC=3D$ac_ct_CC + AR=3D$ac_ct_AR fi else - CC=3D"$ac_cv_prog_CC" + AR=3D"$ac_cv_prog_AR" fi =20 -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a prog= ram name with args. -set dummy ${ac_tool_prefix}cc; ac_word=3D$2 +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a pr= ogram name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=3D$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } [...] [diff truncated at 100000 bytes]