summaryrefslogtreecommitdiff
path: root/config/math.m4
diff options
context:
space:
mode:
authorgingold <gingold@138bc75d-0d04-0410-961f-82ee72b054a4>2012-04-02 07:46:39 +0000
committergingold <gingold@138bc75d-0d04-0410-961f-82ee72b054a4>2012-04-02 07:46:39 +0000
commit6affa8e1be4662de95271488094fa5facada04c0 (patch)
treee3300ffff4954073198b8c587ccb8a167ab078ee /config/math.m4
parent3e1795da5ccb742620fa6611f9a41f51f9438993 (diff)
downloadgcc-6affa8e1be4662de95271488094fa5facada04c0.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186063 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'config/math.m4')
-rw-r--r--config/math.m47
1 files changed, 4 insertions, 3 deletions
diff --git a/config/math.m4 b/config/math.m4
index 5527c25aec3..23835f230cb 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
])