summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorThibault Saunier <thibault.saunier@osg.samsung.com>2017-10-16 10:43:28 +0200
committerThibault Saunier <thibault.saunier@osg.samsung.com>2017-10-16 11:05:12 +0200
commitef4d6b93e6078b7056c51a928f5620b13e55e323 (patch)
tree875258245544e4be40972ca63f6e7aa9fcd749ea /configure.ac
parent87dcd2959d71a685c4d8a1fa4d74a953766dc0b6 (diff)
downloadgstreamer-plugins-bad-ef4d6b93e6078b7056c51a928f5620b13e55e323.tar.gz
openjpeg: Support building with openjpeg 2.3
And avoid failling the build each time openjpeg releases a new version.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 3745ed246..df58fc594 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2865,6 +2865,11 @@ AG_GST_CHECK_FEATURE(OPENJPEG, [openjpeg library], openjpeg, [
AG_GST_PKG_CHECK_MODULES(OPENJPEG_2_2, libopenjp2 >= 2.2)
if test x"$HAVE_OPENJPEG_2_2" = x"yes"; then
AC_DEFINE([HAVE_OPENJPEG_2_2], 1, [Define if OpenJPEG 2.2 is used])
+
+ AG_GST_PKG_CHECK_MODULES(OPENJPEG_2_3, libopenjp2 >= 2.3 libopenjp2 < 2.4)
+ if test x"$HAVE_OPENJPEG_2_3" = x"yes"; then
+ AC_DEFINE([HAVE_OPENJPEG_2_3], 1, [Define if OpenJPEG 2.3 is used])
+ fi
fi
fi
else