diff options
author | Kim Woelders <kim@woelders.dk> | 2021-08-07 18:46:31 +0200 |
---|---|---|
committer | Kim Woelders <kim@woelders.dk> | 2021-08-07 18:46:35 +0200 |
commit | d2ff569608eb113597a35021aa8bab677cb0d7a2 (patch) | |
tree | a2c7a01f230aca277a5ff9e3b880339c8dd7304b | |
parent | 8bd1a401bc20323d8b78f15edf2c4a6cce0a5997 (diff) | |
download | imlib2-d2ff569608eb113597a35021aa8bab677cb0d7a2.tar.gz |
autofoo: Resurrect non-pkg check for bzip2
Apparently upstream (1.0.8) does not provide a .pc file but some
distributions add one.
-rw-r--r-- | configure.ac | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index fe11533..948bd0d 100644 --- a/configure.ac +++ b/configure.ac @@ -339,6 +339,15 @@ AC_MSG_RESULT($bz2_loader) if test "$bz2_loader" != no ; then PKG_CHECK_MODULES(BZ2, bzip2, [ bz2_ok="yes" ], [ bz2_ok="no" ]) if test "$bz2_ok" = no ; then + AC_CHECK_LIB(bz2, BZ2_bzRead, bz2_ok=yes, bz2_ok=no) + if test "$bz2_ok" = yes; then + AC_CHECK_HEADER([bzlib.h], , bz2_ok=no) + if test "$bz2_ok" = yes; then + BZ2_LIBS="-lbz2" + fi + fi + fi + if test "$bz2_ok" = no ; then if test "$bz2_loader" = yes ; then AC_MSG_ERROR(BZIP2 support was requested but system does not support it) else |