blob: f378b63d3dbf36f5005148700207c5247c42e891 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
AC_INIT(gzio.c)
AC_CANONICAL_SYSTEM
AC_PREREQ(2.12)
AC_CONFIG_HEADERS
AM_INIT_AUTOMAKE(zlib, 1.1.4)
dnl Check for programs.
AC_PROG_CC
AC_PROG_LIBTOOL
AC_SYS_LARGEFILE
CFLAGS="-DHAS_snprintf -DHAS_snprintf"
if test "$ac_cv_prog_gcc" = yes; then
CFLAGS="-DWITH_RSYNC_PAD -O3 -fomit-frame-pointer -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts"
fi
export CFLAGS
AC_CHECK_HEADERS(unistd.h errno.h)
AC_MSG_CHECKING(if mmap is available)
AC_TRY_COMPILE([
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/stat.h> ], [
caddr_t hello() {
return mmap((caddr_t)0, (off_t)0, PROT_READ, MAP_SHARED, 0, (off_t)0);
}
],
[AC_MSG_RESULT(yes)
CFLAGS="-DUSE_MMAP $CFLAGS"],
[AC_MSG_RESULT(no)]
)
AC_OUTPUT([ Doxyfile Makefile ],
[ echo timestamp > stamp-h.in ]
)
|