[gthumb] make exiv2 0.20 optional



commit 53c70ba7f3ef0fddaff7d4a25dd15e5114df1138
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Tue Jun 29 21:30:14 2010 +0200

    make exiv2 0.20 optional

 configure.ac |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 34d05de..1e30b03 100644
--- a/configure.ac
+++ b/configure.ac
@@ -143,9 +143,9 @@ if test x$enable_exiv2 = xyes ; then
 			  exiv2 >= $EXIV2_REQUIRED,
 			  [enable_exiv2=yes],
 			  [enable_exiv2=no])
-	PKG_CHECK_MODULES(EXIV2_020,
-			  exiv2 >= 0.20,
-			  [AC_DEFINE(HAVE_EXIV2_020, 1, [Have exiv2 0.20 or greater])],)
+	if pkg-config --atleast-version=0.20 exiv2; then
+		AC_DEFINE(HAVE_EXIV2_020, 1, [Have exiv2 0.20 or greater])
+	fi
 fi
 AC_SUBST(EXIV2_LIBS)
 AC_SUBST(EXIV2_CFLAGS)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]