aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2012-04-02 07:46:39 +0000
committerTristan Gingold <gingold@gcc.gnu.org>2012-04-02 07:46:39 +0000
commitf38a14ca9008cfe8a4913c8430ba2e13ee20bc2a (patch)
treee3300ffff4954073198b8c587ccb8a167ab078ee /config
parent8b8c34503975ffc41c1ee0f45bf4ff8519fb33e8 (diff)
downloadgcc-f38a14ca9008cfe8a4913c8430ba2e13ee20bc2a.zip
gcc-f38a14ca9008cfe8a4913c8430ba2e13ee20bc2a.tar.gz
gcc-f38a14ca9008cfe8a4913c8430ba2e13ee20bc2a.tar.bz2
math.m4 (GCC_CHECK_MATH_FUNC): Remove if-present argument.
config/ 2012-04-02 Tristan Gingold <gingold@adacore.com> * math.m4 (GCC_CHECK_MATH_FUNC): Remove if-present argument. Define the variable. libgfortran/ 2012-04-02 Tristan Gingold <gingold@adacore.com> * configure.ac: Use new version of GCC_CHECK_MATH_FUNC. * configure: Regenerate * config.h.in: Regenerate. From-SVN: r186063
Diffstat (limited to 'config')
-rw-r--r--config/ChangeLog5
-rw-r--r--config/math.m47
2 files changed, 9 insertions, 3 deletions
diff --git a/config/ChangeLog b/config/ChangeLog
index f502696..ab8916f 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,8 @@
+2012-04-02 Tristan Gingold <gingold@adacore.com>
+
+ * math.m4 (GCC_CHECK_MATH_FUNC): Remove if-present
+ argument. Define the variable.
+
2012-03-26 Tristan Gingold <gingold@adacore.com>
* math.m4: New file.
diff --git a/config/math.m4 b/config/math.m4
index 5527c25..23835f2 100644
--- a/config/math.m4
+++ b/config/math.m4
@@ -14,10 +14,10 @@ dnl functions).
AC_DEFUN([GCC_CHECK_MATH_HEADERS],
[AC_CHECK_HEADERS_ONCE(math.h complex.h)])
-dnl GCC_CHECK_MATH_FUNC([name],[if-present])
+dnl GCC_CHECK_MATH_FUNC([name])
dnl
dnl Check whether math function NAME is available on the system (by compiling
-dnl and linking a C program) and run if-present on success.
+dnl and linking a C program) and run define HAVE_name on success.
dnl
dnl Note that OpenVMS system insists on including complex.h before math.h
AC_DEFUN([GCC_CHECK_MATH_FUNC],
@@ -44,6 +44,7 @@ main ()
[gcc_cv_math_func_$1=yes],
[gcc_cv_math_func_$1=no])])
if test $gcc_cv_math_func_$1 = yes; then
- $2
+ AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_$1),[1],
+ [Define to 1 if you have the `$1' function.])
fi
])