summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2014-05-07 22:25:59 +0200
committerAlbert Astals Cid <aacid@kde.org>2014-05-07 22:25:59 +0200
commit7e9fc61e287889eefd6b08ef5991d31fed79cafd (patch)
tree0e61957b658586ec4f013a9430262188b9d52fca
parent0a6c1ff777aa23c7a5654b313b639e66600883b9 (diff)
Fix libopenjpeg 1.5 detection on some systemspoppler-0.26
Someone somewhere decided the pc file will be called libopenjpeg1 instead of libopenjpeg Bug #78389
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 0e703d5f..fdfe5707 100644
--- a/configure.ac
+++ b/configure.ac
@@ -173,7 +173,10 @@ if test x$enable_libopenjpeg = xyes; then
AC_DEFINE(ENABLE_LIBOPENJPEG)
PKG_CHECK_EXISTS(libopenjpeg >= 1.5,
[AC_DEFINE(WITH_OPENJPEG_IGNORE_PCLR_CMAP_CDEF_FLAG, 1, [OpenJPEG with the OPJ_DPARAMETERS_IGNORE_PCLR_CMAP_CDEF_FLAG flag.])],
- [])
+ [PKG_CHECK_EXISTS(libopenjpeg1 >= 1.5,
+ [AC_DEFINE(WITH_OPENJPEG_IGNORE_PCLR_CMAP_CDEF_FLAG, 1, [OpenJPEG with the OPJ_DPARAMETERS_IGNORE_PCLR_CMAP_CDEF_FLAG flag.])],
+ [])
+ ])
fi
AM_CONDITIONAL(BUILD_LIBOPENJPEG, test x$enable_libopenjpeg = xyes)