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_SEARCH_LIBS([compress2], [z], [], [AC_MSG_FAILURE([
11 *** compress2() missing, zlib-devel package required])])
13 AC_SEARCH_LIBS([uncompress], [z], [], [AC_MSG_FAILURE([
14 *** uncompress() missing, zlib-devel package required])])
16 AC_SEARCH_LIBS([crc32], [z], [], [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])