source: branches/samba-3.5.x/lib/zlib/zlib.m4@ 717

Last change on this file since 717 was 414, checked in by Herwig Bauernfeind, 15 years ago

Samba 3.5.0: Initial import

File size: 499 bytes
Line 
1AC_DEFUN([AC_ZLIB],[
2AC_CHECK_HEADERS(zlib.h)
3
4AC_CHECK_LIB_EXT(z, ZLIB_LIBS, zlibVersion)
5
6AC_CACHE_CHECK([for zlib >= 1.2.3], samba_cv_zlib_1_2_3, [
7 AC_TRY_COMPILE([
8 #include <zlib.h>
9 ],[
10 #if (ZLIB_VERNUM >= 0x1230)
11 #else
12 #error "ZLIB_VERNUM < 0x1230"
13 #endif
14 ],[
15 samba_cv_zlib_1_2_3=yes
16 ],[
17 samba_cv_zlib_1_2_3=no
18 ])
19])
20
21if test x"$ac_cv_header_zlib_h" = x"yes" -a \
22 x"$ac_cv_lib_ext_z_zlibVersion" = x"yes" -a \
23 x"$samba_cv_zlib_1_2_3" = x"yes"; then
24 $1
25else
26 $2
27fi
28])
29
Note: See TracBrowser for help on using the repository browser.