summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorryde <ryde@280ebfd0-de03-0410-8827-d642c229c3f4>2002-12-12 22:30:05 +0000
committerryde <ryde@280ebfd0-de03-0410-8827-d642c229c3f4>2002-12-12 22:30:05 +0000
commit9903e2536024b6a1e6d786b06640e37aeaa3aa56 (patch)
tree17eb8a61ed947558db23e7de83bc9a37ac051371 /configure.in
parent5537ed47d7e2fac03294ab46b6a10c2db34541d0 (diff)
downloadmpfr-9903e2536024b6a1e6d786b06640e37aeaa3aa56.tar.gz
Don't -D define PACKAGE_VERSION etc, to avoid conflict with gmp config.h.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2117 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index eda4a9577..9e7456a7a 100644
--- a/configure.in
+++ b/configure.in
@@ -98,6 +98,17 @@ default target architecture may be different, hence the error.])],
MPFR_CONFIGS
+# Recent autoconf creates AC_DEFINEs of PACKAGE_VERSION etc, unfortunately
+# those -D defines in $DEFS conflict with the same defines in config.h from
+# GMP. Unless or until autoconf gives us a better way for two closely
+# related packages to cooperate, use this hack to get rid of them from $DEFS
+# here.
+#
+if test -f confdefs.h; then
+ sed '/#define PACKAGE_/d' <confdefs.h >confdefs.tmp
+ mv confdefs.tmp confdefs.h
+fi
+
AC_MY_LIBS($with_gmp_lib, gmp)
AC_SUBST(INCLUDES)
AC_SUBST(LDADD)