summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2012-02-17 14:54:25 +0000
committerenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2012-02-17 14:54:25 +0000
commitec220dcf12b6cde4a6046a97ef3ee68f7678cf81 (patch)
tree480b724e65db53b898fe2ba63a5ce7e2bf7cb77a /m4
parentb17136c47a775ab27184d7b9e894ad60bb913bd7 (diff)
downloadmpc-ec220dcf12b6cde4a6046a97ef3ee68f7678cf81.tar.gz
mpc.m4: use AC_SEARCH_LIBS to search for creal, fixes #13901
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1123 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'm4')
-rw-r--r--m4/mpc.m410
1 files changed, 4 insertions, 6 deletions
diff --git a/m4/mpc.m4 b/m4/mpc.m4
index e15fd1d..683c7f0 100644
--- a/m4/mpc.m4
+++ b/m4/mpc.m4
@@ -45,7 +45,7 @@ AC_DEFUN([MPC_COMPLEX_H], [
]
)
- AC_MSG_CHECKING(whether creal and cimag can be used without libm)
+ AC_MSG_CHECKING([whether creal, cimag and I can be used without additional library])
AC_LINK_IFELSE(
[MPC_CONFTEST],
[
@@ -54,19 +54,17 @@ AC_DEFUN([MPC_COMPLEX_H], [
],
[
AC_MSG_RESULT([no])
- AC_CHECK_LIB([m], [creal],
+ AC_SEARCH_LIBS([creal], [m],
[
- AC_MSG_CHECKING(whether creal and cimag can be used with libm)
+ AC_MSG_CHECKING([whether creal and cimag can be used with additional library])
AC_LINK_IFELSE(
[MPC_CONFTEST],
[
AC_MSG_RESULT([yes])
- LIBS="-lm $LIBS"
- AC_DEFINE([HAVE_LIBM], [1], [libm needed for creal])
AC_DEFINE([HAVE_COMPLEX_H], [1], [complex.h present and usable])
],
[
- AC_MSG_RESULT([no])
+ AC_MSG_RESULT([no, build without support for C complex numbers])
]
)
]