summaryrefslogtreecommitdiff
path: root/configure.ac
blob: d1da4451d5c75e8a729d1fdef18fdb5bf044ac90 (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
# Process this file with autoconf to produce a configure script.
AC_INIT(iptools, 0.2, nielsen@memberwebs.com)
AM_INIT_AUTOMAKE(iptools, 0.2)

AC_CONFIG_SRCDIR([src/ipsort.c])
AM_CONFIG_HEADER([config.h])

# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([arpa/inet.h fcntl.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T

# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_MEMCMP
AC_CHECK_FUNCS([atexit inet_ntoa inet_pton memset strerror strspn strtol])

AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT