Fix "file is executable, but no shebang" warnings
[zfs.git] / config / user-zlib.m4
blob82c0962e4517d811972061a4287b3674d0cb2cf1
1 dnl #
2 dnl # Check for zlib
3 dnl #
4 AC_DEFUN([ZFS_AC_CONFIG_USER_ZLIB], [
5         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])