diff options
author | Jay Berkenbilt <ejb@ql.org> | 2017-08-18 01:12:19 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2017-08-21 22:54:48 +0200 |
commit | a0a8f45a1c8ca7952e4596785ad399ec47b7a0af (patch) | |
tree | eb2e1dd1b72e61ef4ac93c450dc3e7ca7d6c75ff /configure.ac | |
parent | 2d2f61966525cb948bcb6307cccbc3493b1825b5 (diff) | |
download | qpdf-a0a8f45a1c8ca7952e4596785ad399ec47b7a0af.tar.zst |
Add libjpeg dependency
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 36119999..8d8e2d15 100644 --- a/configure.ac +++ b/configure.ac @@ -102,6 +102,8 @@ fi if test "$BUILD_INTERNAL_LIBS" = "0"; then AC_CHECK_HEADER(zlib.h,,[MISSING_ZLIB_H=1; MISSING_ANY=1]) AC_SEARCH_LIBS(deflate,z zlib,,[MISSING_ZLIB=1; MISSING_ANY=1]) + AC_CHECK_HEADER(jpeglib.h,,[MISSING_JPEG_H=1; MISSING_ANY=1]) + AC_SEARCH_LIBS(jpeg_destroy,jpeg,,[MISSING_JPEG=1; MISSING_ANY=1]) fi if test "x$qpdf_OS_SECURE_RANDOM" = "x1"; then @@ -471,6 +473,14 @@ if test "$MISSING_ZLIB" = "1"; then AC_MSG_WARN(unable to find required library z (or zlib)) fi +if test "$MISSING_JPEG_H" = "1"; then + AC_MSG_WARN(unable to find required header jpeglib.h) +fi + +if test "$MISSING_JPEG" = "1"; then + AC_MSG_WARN(unable to find required library jpeg) +fi + if test "$MISSING_DOCBOOK_FO" = "1"; then AC_MSG_WARN(docbook fo stylesheets are required to build PDF documentation) fi @@ -507,7 +517,7 @@ if test "$USE_EXTERNAL_LIBS" = "1"; then # much trouble getting it to work with a different compiler. CPPFLAGS="$CPPFLAGS -Iexternal-libs/include" LDFLAGS="$LDFLAGS -Lexternal-libs/lib-$BUILDRULES$WINDOWS_WORDSIZE" - LIBS="$LIBS -lz" + LIBS="$LIBS -lz -ljpeg" fi AC_OUTPUT |