This is an automated email from the git hooks/post-receive script.
andyp pushed a commit to branch main in repository gfs2-utils.
The following commit(s) were added to refs/heads/main by this push: new 831c083a configure: Fix check for bzip2 831c083a is described below
commit 831c083a3eea1e624139434a1fa7c711531c40bf Author: Andrew Price anprice@redhat.com AuthorDate: Fri Jan 7 10:03:43 2022 +0000
configure: Fix check for bzip2
Upstream bzip2 doesn't ship a pkg-config file and the one shipped by Fedora/RHEL hasn't been adopted by other distros so add a fall-back check.
Signed-off-by: Andrew Price anprice@redhat.com --- configure.ac | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac index bb85d65c..a33fa2ed 100644 --- a/configure.ac +++ b/configure.ac @@ -104,10 +104,16 @@ PKG_CHECK_MODULES([check], [check >= 0.10.0], AM_CONDITIONAL([HAVE_CHECK], [test "x$have_check" = "xyes"])
PKG_CHECK_MODULES([zlib],[zlib]) -PKG_CHECK_MODULES([bzip2],[bzip2]) PKG_CHECK_MODULES([blkid],[blkid]) PKG_CHECK_MODULES([uuid],[uuid])
+PKG_CHECK_MODULES([bzip2],[bzip2],, + [check_lib_no_libs bz2 BZ2_bzReadOpen]) + +if test -z "$bzip2_CFLAGS" && test -z "$bzip2_LIBS"; then + bzip2_LIBS=-lbz2 +fi + # old versions of ncurses don't ship pkg-config files PKG_CHECK_MODULES([ncurses],[ncurses],, [check_lib_no_libs ncurses printw])