[GiNaC-devel] [PATCH] configure: use pkg-config to check for CLN.

Alexei Sheplyakov varg at theor.jinr.ru
Thu Mar 22 11:56:29 CET 2007


---
 configure.ac |   18 ++++++------------
 1 files changed, 6 insertions(+), 12 deletions(-)

diff --git a/configure.ac b/configure.ac
index 44356f2..92399dc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -129,18 +129,12 @@ AC_CHECK_LIB(dl, dlopen,
 LIBS="$LIBS $DL_LIBS"
 
 dnl We need to have Bruno Haible's CLN installed.
-dnl (CLN versions >= 1.1.0 must have installed cln.m4 at a visible place,
-dnl which provides this macro):
-AC_PATH_CLN(1.1.0, [
-  LIBS="$LIBS $CLN_LIBS"
-  CPPFLAGS="$CPPFLAGS $CLN_CPPFLAGS"
-], GINAC_ERROR([No suitable installed version of CLN could be found.]))
-
-dnl Expand the cppflags and libraries needed by apps using GiNaC
-GINACLIB_CPPFLAGS=$CPPFLAGS
-GINACLIB_LIBS=$LIBS
-AC_SUBST(GINACLIB_CPPFLAGS)
-AC_SUBST(GINACLIB_LIBS)
+dnl (pkg-config must have installed pkg.m4 at a visible place, which provides
+dnl this macro. CLN >= 1.1.13 must have installed cln.pc at a visible place,
+dnl which provides the actual dependency info
+PKG_CHECK_MODULES(CLN, cln >= 1.1.13)
+LIBS="$LIBS $CLN_LIBS"
+CPPFLAGS="$CPPFLAGS $CLN_CFLAGS"
 
 dnl Check for utilities needed by the different kinds of documentation.
 dnl Documentation needs only be built when extending it, so never mind if it
-- 
1.4.4.4

-- 
All science is either physics or stamp collecting.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: Digital signature
Url : http://www.cebix.net/pipermail/ginac-devel/attachments/20070322/ae30469d/attachment.pgp


More information about the GiNaC-devel mailing list