aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/configure
diff options
context:
space:
mode:
authorSteve Ellcey <sje@gcc.gnu.org>2013-06-24 15:24:19 +0000
committerSteve Ellcey <sje@gcc.gnu.org>2013-06-24 15:24:19 +0000
commitb4005c71a2c5d04ee673a0b14d63ab5e8c35c072 (patch)
treece8a2880dadfd053f24a7ad1570e1d7d20d95f40 /libgfortran/configure
parenta4e28c8103ead2320c83a7f18131b8dc91edd94b (diff)
downloadgcc-b4005c71a2c5d04ee673a0b14d63ab5e8c35c072.zip
gcc-b4005c71a2c5d04ee673a0b14d63ab5e8c35c072.tar.gz
gcc-b4005c71a2c5d04ee673a0b14d63ab5e8c35c072.tar.bz2
configure.ac (AC_CHECK_FUNCS_ONCE): Put into if statement.
2013-06-24 Steve Ellcey <sellcey@mips.com> * configure.ac (AC_CHECK_FUNCS_ONCE): Put into if statement. * configure: Regenerate. From-SVN: r200374
Diffstat (limited to 'libgfortran/configure')
-rwxr-xr-xlibgfortran/configure50
1 files changed, 42 insertions, 8 deletions
diff --git a/libgfortran/configure b/libgfortran/configure
index 6c8ee5d..e4f90ea 100755
--- a/libgfortran/configure
+++ b/libgfortran/configure
@@ -654,6 +654,7 @@ CPP
am__fastdepCC_FALSE
am__fastdepCC_TRUE
CCDEPMODE
+am__nodep
AMDEPBACKSLASH
AMDEP_FALSE
AMDEP_TRUE
@@ -3386,11 +3387,11 @@ MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
# We need awk for the "check" target. The system "awk" is bad on
# some platforms.
-# Always define AMTAR for backward compatibility.
+# Always define AMTAR for backward compatibility. Yes, it's still used
+# in the wild :-( We should find a proper way to deprecate it ...
+AMTAR='$${TAR-tar}'
-AMTAR=${AMTAR-"${am_missing_run}tar"}
-
-am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
+am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
@@ -3523,6 +3524,7 @@ fi
if test "x$enable_dependency_tracking" != xno; then
am_depcomp="$ac_aux_dir/depcomp"
AMDEPBACKSLASH='\'
+ am__nodep='_no'
fi
if test "x$enable_dependency_tracking" != xno; then
AMDEP_TRUE=
@@ -4340,6 +4342,7 @@ else
# 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.
@@ -4399,7 +4402,7 @@ else
break
fi
;;
- msvisualcpp | msvcmsys)
+ 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.
@@ -5515,6 +5518,7 @@ else
# 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.
@@ -5574,7 +5578,7 @@ else
break
fi
;;
- msvisualcpp | msvcmsys)
+ 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.
@@ -12331,7 +12335,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12334 "configure"
+#line 12338 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12437,7 +12441,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12440 "configure"
+#line 12444 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -16435,6 +16439,35 @@ fi
# Check for library functions.
+if test "x${with_newlib}" = "xyes"; then
+ # We are being configured with a cross compiler. AC_REPLACE_FUNCS
+ # may not work correctly, because the compiler may not be able to
+ # link executables.
+
+$as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
+
+
+$as_echo "#define HAVE_STRTOF 1" >>confdefs.h
+
+
+$as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
+
+
+$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
+
+
+$as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
+
+
+$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
+
+
+$as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
+
+
+$as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
+
+else
@@ -16554,6 +16587,7 @@ done
+fi
# Check strerror_r, cannot be above as versions with two and three arguments exist