diff options
author | sje <sje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-06-24 15:24:19 +0000 |
---|---|---|
committer | sje <sje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-06-24 15:24:19 +0000 |
commit | e4812daac49ef178604424347851231c04e28ab7 (patch) | |
tree | ce8a2880dadfd053f24a7ad1570e1d7d20d95f40 /libgfortran | |
parent | 524f76d3c571a569e164c5c6da545295591180cf (diff) | |
download | gcc-e4812daac49ef178604424347851231c04e28ab7.tar.gz |
2013-06-24 Steve Ellcey <sellcey@mips.com>
* configure.ac (AC_CHECK_FUNCS_ONCE): Put into if statement.
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200374 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran')
-rwxr-xr-x | libgfortran/configure | 50 | ||||
-rw-r--r-- | libgfortran/configure.ac | 28 |
2 files changed, 63 insertions, 15 deletions
diff --git a/libgfortran/configure b/libgfortran/configure index 6c8ee5d987f..e4f90eaf787 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 diff --git a/libgfortran/configure.ac b/libgfortran/configure.ac index 1cf06978eb9..1021eea2671 100644 --- a/libgfortran/configure.ac +++ b/libgfortran/configure.ac @@ -261,13 +261,27 @@ GCC_HEADER_STDINT(gstdint.h) AC_CHECK_MEMBERS([struct stat.st_blksize, struct stat.st_blocks, struct stat.st_rdev]) # Check for library functions. -AC_CHECK_FUNCS_ONCE(getrusage times mkstemp strtof strtold snprintf \ -ftruncate chsize chdir getlogin gethostname kill link symlink sleep ttyname \ -alarm access fork execl wait setmode execve pipe dup2 close \ -strcasestr getrlimit gettimeofday stat fstat lstat getpwuid vsnprintf dup \ -getcwd localtime_r gmtime_r getpwuid_r ttyname_r clock_gettime \ -readlink getgid getpid getppid getuid geteuid umask getegid \ -secure_getenv __secure_getenv) +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. + AC_DEFINE(HAVE_MKSTEMP, 1, [Define if you have mkstemp.]) + AC_DEFINE(HAVE_STRTOF, 1, [Define if you have strtof.]) + AC_DEFINE(HAVE_STRTOLD, 1, [Define if you have strtold.]) + AC_DEFINE(HAVE_SNPRINTF, 1, [Define if you have snprintf.]) + AC_DEFINE(HAVE_STRCASESTR, 1, [Define if you have strcasestr.]) + AC_DEFINE(HAVE_VSNPRINTF, 1, [Define if you have vsnprintf.]) + AC_DEFINE(HAVE_LOCALTIME_R, 1, [Define if you have localtime_r.]) + AC_DEFINE(HAVE_GMTIME_R, 1, [Define if you have gmtime_r.]) +else + AC_CHECK_FUNCS_ONCE(getrusage times mkstemp strtof strtold snprintf \ + ftruncate chsize chdir getlogin gethostname kill link symlink sleep ttyname \ + alarm access fork execl wait setmode execve pipe dup2 close \ + strcasestr getrlimit gettimeofday stat fstat lstat getpwuid vsnprintf dup \ + getcwd localtime_r gmtime_r getpwuid_r ttyname_r clock_gettime \ + readlink getgid getpid getppid getuid geteuid umask getegid \ + secure_getenv __secure_getenv) +fi # Check strerror_r, cannot be above as versions with two and three arguments exist LIBGFOR_CHECK_STRERROR_R |