summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac6
-rw-r--r--m4/mpc.m42
2 files changed, 5 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 1d89134..01b3177 100644
--- a/configure.ac
+++ b/configure.ac
@@ -94,7 +94,11 @@ AC_ARG_ENABLE([valgrind-tests],
)
# Check for CC and CFLAGS in gmp.h unless the user specified one of them
-if test -z $CC -a -z $CFLAGS; then
+# look for EGREP and SED here, see continued problem
+# at http://lists.gforge.inria.fr/pipermail/mpc-discuss/2012-January/001056.html
+AC_PROG_EGREP
+AC_PROG_SED
+if test -z $CC && test -z $CFLAGS; then
MPC_GMP_CC_CFLAGS
fi
diff --git a/m4/mpc.m4 b/m4/mpc.m4
index 4227c92..e15fd1d 100644
--- a/m4/mpc.m4
+++ b/m4/mpc.m4
@@ -143,8 +143,6 @@ AC_DEFUN([MPC_C_CHECK_WARNINGCFLAGS], [
# essentially copied from mpfr
#
AC_DEFUN([MPC_GMP_CC_CFLAGS], [
- AC_PROG_EGREP
- AC_PROG_SED
AC_MSG_CHECKING(for CC and CFLAGS in gmp.h)
# AC_PROG_CPP triggers the search for a C compiler; use hack instead
for cpp in /lib/cpp gcc cc c99