4 AC_DEFUN([ZFS_AC_CONFIG_USER_ZLIB], [
7 AC_CHECK_HEADER([zlib.h], [], [AC_MSG_FAILURE([
8 *** zlib.h missing, zlib-devel package required])])
10 AC_CHECK_LIB([z], [compress2], [], [AC_MSG_FAILURE([
11 *** compress2() missing, zlib-devel package required])])
13 AC_CHECK_LIB([z], [uncompress], [], [AC_MSG_FAILURE([
14 *** uncompress() missing, zlib-devel package required])])
16 AC_CHECK_LIB([z], [crc32], [], [AC_MSG_FAILURE([
17 *** crc32() missing, zlib-devel package required])])
19 AC_SUBST([ZLIB], ["-lz"])
20 AC_DEFINE([HAVE_ZLIB], 1, [Define if you have zlib])