blob: 88725382465180e5da6a554bc57005acf603f377 [file] [log] [blame]
openvcdiff28db8072008-10-10 23:29:11 +00001## Process this file with autoconf to produce configure.
2## In general, the safest way to proceed is to run ./autogen.sh
3
4# make sure we're interpreted by some minimal autoconf
5AC_PREREQ(2.57)
6
7AC_INIT(open-vcdiff, 0.2, opensource@google.com)
8AC_CONFIG_SRCDIR(README)
9AM_INIT_AUTOMAKE
10AM_CONFIG_HEADER(src/config.h)
11
12# Checks for programs.
13AC_PROG_CC
14AC_PROG_CPP
15AC_PROG_CXX
16AM_CONDITIONAL(GCC, test "$GCC" = yes) # let the Makefile know if we're gcc
17AC_CANONICAL_HOST
18
19AC_PROG_LIBTOOL
20AC_SUBST(LIBTOOL_DEPS)
21
22# Check whether some low-level functions/files are available
23AC_HEADER_STDC
24
25case $host in
26 *86*-*-*bsd* | *86*-*-gnu*)
27 AC_DEFINE(VCDIFF_USE_BLOCK_COMPARE_WORDS, 1,
28 Use custom compare function instead of memcmp)
29 ;;
30esac
31
32AC_CHECK_HEADERS([ext/rope])
33AC_CHECK_HEADERS([getopt.h])
34AC_CHECK_HEADERS([malloc.h])
35AC_CHECK_HEADERS([sys/mman.h])
36AC_CHECK_HEADERS([sys/time.h])
37AC_CHECK_HEADERS([unistd.h])
38AC_CHECK_HEADERS([windows.h])
39AC_CHECK_FUNCS([gettimeofday QueryPerformanceCounter])
40AC_CHECK_FUNCS([memalign posix_memalign])
41AC_CHECK_FUNCS([mprotect])
42
43# Start of definitions needed by gflags package
44
45AC_CHECK_HEADERS([stdint.h sys/types.h inttypes.h])
46AC_CHECK_HEADERS([fnmatch.h])
47AC_CHECK_FUNCS([strtoll strtoq])
48AC_CHECK_TYPES([uint16_t, u_int16_t, __int16])
49
50AX_C___ATTRIBUTE__
51
52# End of definitions needed by gflags package
53
54AC_CONFIG_FILES([Makefile])
55AC_OUTPUT