-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathconfigure.ac
More file actions
51 lines (34 loc) · 991 Bytes
/
configure.ac
File metadata and controls
51 lines (34 loc) · 991 Bytes
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
38
39
40
41
42
43
44
45
46
47
48
49
50
AC_INIT([libflowmanager],[3.0.0],[contact@wand.net.nz],[libflowmanager])
AC_USE_SYSTEM_EXTENSIONS
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([lib/libflowmanager.cc])
AM_INIT_AUTOMAKE([subdir-objects])
LT_INIT
# Make sure we use the relatively silent automake output
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
AC_CONFIG_FILES([Makefile lib/Makefile example/Makefile])
AC_CONFIG_HEADERS([config.h])
AC_CHECK_LIB([trace], [trace_create_packet],,trace_found=0)
AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_SYS_LARGEFILE
if test "$GCC" = "yes"; then
CFLAGS="$CFLAGS -Wall -W"
fi
AC_PROG_GCC_TRADITIONAL
AC_CHECK_SIZEOF([long int])
AC_HEADER_STDC
AC_CHECK_HEADERS(inttypes.h)
AC_CHECK_HEADERS(netinet/in.h)
if test "$trace_found" = 0; then
AC_MSG_ERROR(Required library libtrace not found; use LDFLAGS to specify library location)
fi
AC_SUBST([ADD_LIBS])
AC_SUBST([ADD_LDFLAGS])
AC_SUBST([ADD_INCLS])
AC_OUTPUT