blob: 8d21dbb4a90527cc288f0f252384d7c6783c4415 [file] [log] [blame]
Ravi Gummadidala5dcfae22013-01-23 20:13:27 -08001# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ([2.65])
5AC_INIT(data-ipa, 1.0.0)
6AM_INIT_AUTOMAKE(data-ipa, 1.0.0)
7AC_OUTPUT(Makefile ipanat/src/Makefile ipacm/src/Makefile)
8AC_CONFIG_SRCDIR([ipanat/src/ipa_nat_drv.c])
9AC_CONFIG_HEADERS([config.h])
10AC_CONFIG_MACRO_DIR([m4])
11
12# Checks for programs.
13AC_PROG_CC
14AC_PROG_LIBTOOL
15AC_PROG_CXX
16
Ekta Shah17889f92013-03-06 18:20:32 -080017PKG_CHECK_MODULES([LIBXML], [libxml-2.0])
18AC_SUBST([LIBXML_CFLAGS])
19AC_SUBST([LIBXML_LIBS])
Ravi Gummadidala5dcfae22013-01-23 20:13:27 -080020
21# Checks for libraries.
22
Ravi Gummadidala70267d32013-03-12 13:45:23 -070023AC_ARG_WITH(sanitized-headers,
24 AS_HELP_STRING([--with-sanitized-headers=DIR],
25 [Specify the location of the sanitized Linux headers]),
26 [CPPFLAGS="$CPPFLAGS -idirafter $withval"])
27
Ravi Gummadidala5dcfae22013-01-23 20:13:27 -080028# Checks for header files.
29AC_CHECK_HEADERS([fcntl.h netinet/in.h sys/ioctl.h unistd.h])
30
31# Checks for typedefs, structures, and compiler characteristics.
32AC_TYPE_OFF_T
33
34# Checks for library functions.
35AC_FUNC_MALLOC
36AC_FUNC_MMAP
37AC_CHECK_FUNCS([memset munmap])
38
39AC_OUTPUT