mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
95df0fddf6
metze (This used to be commit 3f4eb091f0dcc53acbfdc63a8d82a5a0f28954a6)
28 lines
531 B
Plaintext
28 lines
531 B
Plaintext
|
|
AC_CHECK_HEADERS(zlib.h)
|
|
|
|
AC_CHECK_LIB_EXT(z, ZLIB_LIBS, zlibVersion)
|
|
|
|
AC_CACHE_CHECK([for zlib >= 1.2.3], samba_cv_zlib_1_2_3, [
|
|
AC_TRY_COMPILE([
|
|
#include <zlib.h>
|
|
],[
|
|
#if (ZLIB_VERNUM >= 0x1230)
|
|
#else
|
|
#error "ZLIB_VERNUM < 0x1230"
|
|
#endif
|
|
],[
|
|
samba_cv_zlib_1_2_3=yes
|
|
],[
|
|
samba_cv_zlib_1_2_3=no
|
|
])
|
|
])
|
|
|
|
if test x"$ac_cv_header_zlib_h" = x"yes" -a \
|
|
x"$ac_cv_lib_ext_z_zlibVersion" = x"yes" -a \
|
|
x"$samba_cv_zlib_1_2_3" = x"yes"; then
|
|
SMB_EXT_LIB(ZLIB, [${ZLIB_LIBS}])
|
|
else
|
|
SMB_INCLUDE_MK(lib/zlib.mk)
|
|
fi
|