diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2019-09-19 11:02:48 +0100 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2019-09-19 17:48:57 +0100 |
commit | 18316aba11fafc57ee77dbd7774b2c88b964a9d9 (patch) | |
tree | 7280bdb0f5e14a2d51df68e1743baab5babd8cbe | |
parent | 569a551f2a57f6e6c1e692f6b834c765dcbe7cfa (diff) | |
download | ghostpdl-18316aba11fafc57ee77dbd7774b2c88b964a9d9.tar.gz |
Make missing jbig2 decoder fatal error.
If we have neither Luratech nor jbig2dec, have configure fail, unless
explicitly run with --without-jbig2dec
-rw-r--r-- | configure.ac | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index c5ddefe7d..3b72367dc 100644 --- a/configure.ac +++ b/configure.ac @@ -1621,6 +1621,7 @@ if test x$with_luratech != xno; then fi JB2_STDINT_TYPES_IN= +JBIG2DEC_REQ=0.16 if test "x$JBIG2_DECODER" = x; then dnl look for jbig2dec @@ -1680,7 +1681,6 @@ if test "x$JBIG2_DECODER" = x; then # autoconf macro and b) requires pkg-config on the system, which is # NOT standard on ANY OS, including Linux! if test "x$PKGCONFIG" != x; then - JBIG2DEC_REQ=0.16 AC_MSG_CHECKING(for jbig2dec $JBIG2DEC_REQ with pkg-config) if $PKGCONFIG --atleast-version=$JBIG2DEC_REQ jbig2dec; then AC_MSG_RESULT(yes) @@ -1688,17 +1688,14 @@ if test "x$JBIG2_DECODER" = x; then JBIG2DEC_LIBS="`$PKGCONFIG --libs jbig2dec`" SHARE_JBIG2=1 else - AC_MSG_RESULT(no) - AC_MSG_WARN([disabling support for JBIG2 files]) - with_jbig2dec=no + AC_MSG_ERROR([jbig2 decoder not found, or too old]) fi else AC_MSG_CHECKING(for jbig2dec library) AC_CHECK_LIB([jbig2dec], [jbig2_page_out], [ SHARE_JBIG2=1 ], [ - AC_MSG_WARN([disabling support for JBIG2 files]) - with_jbig2dec=no + AC_MSG_ERROR([jbig2 decoder not found, or too old]) ]) fi if test x$with_jbig2dec != xno; then |