forked from Merit-Research/AMON
-
Notifications
You must be signed in to change notification settings - Fork 2
/
configure.ac
35 lines (27 loc) · 937 Bytes
/
configure.ac
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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([AMON-SENSS], 1.1, [email protected])
AC_CONFIG_SRCDIR([amonsenss.cc])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
# Checks for libraries.
AC_SEARCH_LIBS(pthread_create,pthread)
AC_SEARCH_LIBS([pcap_open_offline], [pcap], [], [
AC_MSG_ERROR([unable to find libpcap])
])
# Checks for header files.
AC_CHECK_HEADERS([arpa/inet.h fcntl.h locale.h netdb.h netinet/in.h stdint.h string.h sys/socket.h sys/time.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_TYPE_INT32_T
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_STRTOD
AC_CHECK_FUNCS([memset sqrt strcasecmp strdup strstr strtol])
AC_CONFIG_FILES(Makefile)
AC_OUTPUT