* configure.ac: Pass -lgdcmzlib to OLN_WITH_LIB when searching for
libgdcmCommon.
---
ChangeLog | 7 +++++++
configure.ac | 7 ++-----
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 10f5d0a..b88687b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2009-06-12 Roland Levillain <roland(a)lrde.epita.fr>
+ Handle libgdcmCommon's dependencies.
+
+ * configure.ac: Pass -lgdcmzlib to OLN_WITH_LIB when searching for
+ libgdcmCommon.
+
+2009-06-12 Roland Levillain <roland(a)lrde.epita.fr>
+
Extend Autoconf macro OLN_WITH_LIB to handle the library's dependencies.
* m4/oln-with-lib.m4 (OLN_WITH_LIB): Add a sixth (optional)
diff --git a/configure.ac b/configure.ac
index 95ea349..f37bbb5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -148,11 +148,8 @@ OLN_WITH_LIB([Magick++], [Magick++.h], [Magick++], [magickxx],
[MAGICKXX])
OLN_WITH_LIB([TIFF], [tiff.h], [tiff])
# Grassroots DiCoM (GDCM).
-# FIXME: Linking against the sole libgdcmCommon.{a,so,dylib} is
-# probably not enough in many cases (there are other libraries in the
-# GDCM package). Write a decent test first (in
-# milena/tests/io/dicom/), and improve the configuration.
-OLN_WITH_LIB([GDCM], [gdcm-2.0/gdcmReader.h], [gdcmCommon], [gdcm], [GDCM])
+OLN_WITH_LIB([GDCM], [gdcm-2.0/gdcmReader.h], [gdcmCommon], [gdcm], [GDCM],
+ [-lgdcmzlib])
## ---------------------------- ##
--
1.6.2.4
Show replies by date