root/trunk/configure.in @ 88

Revision 83, 3.2 KB (checked in by andreu, 14 years ago)

release tag 0.0.13beta ; beginning of multisampling implementation

  • Property svn:eol-style set to native
Line 
1#                                               -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ(2.59)
5AC_INIT(RENETCOL, 0.0.13beta, andreu@renater.fr)
6AC_CONFIG_SRCDIR(src/)
7AC_PROG_MAKE_SET
8AM_CONFIG_HEADER(config.h)
9AM_INIT_AUTOMAKE
10CFLAGS="-I/usr/local/include -g -ansi -Wno-long-long -Wall -D _SVID_SOURCE -DSIGSETJMP_IS_BROKEN -D _XOPEN_SOURCE -pedantic"
11
12CFLAGS_OPTIMIZE="-O2"
13CFLAGS_ASACC="-DASACC"
14CFLAGS_IPV4AGGIDSNMP="-DIPV4AGGIDSNMP"
15CFLAGS_IPV4AGGIDR="-DIPV4AGGIDR"
16CFLAGS_MATRIX="-DMATRIX"
17CFLAGS_DEBUG="-DDEBUG"
18CFLAGS_DEBUGAGG="-DDEBUGAGG"
19CFLAGS_PRINTUNKNOWNSUBNET="-DPRINTUNKNOWNSUBNET"
20CFLAGS_MULTISAMPLING="-DMULTISAMPLING"
21
22# Checks for programs.
23AC_PROG_CC
24
25# Checks for header files.
26AC_HEADER_STDC
27AC_CHECK_HEADERS([unistd.h stdio.h string.h stdlib.h syslog.h sys/types.h sys/socket.h netinet/in.h time.h errno.h sys/ipc.h sys/shm.h sys/sem.h ctype.h netdb.h net/if.h sys/ioctl.h arpa/inet.h signal.h setjmp.h sys/wait.h])
28
29# Checks for typedefs, structures, and compiler characteristics.
30AC_C_CONST
31AC_STRUCT_TM
32AC_C_VOLATILE
33AC_TYPE_SIZE_T
34
35AC_ARG_ENABLE(optimize,[  --enable-optimize gcc O2 option compilation default=no],
36optimize=$enableval,optimize=no)
37if test $optimize = yes ; then
38CFLAGS="$CFLAGS $CFLAGS_OPTIMIZE"
39fi
40
41AC_ARG_ENABLE(asacc,[  --enable-asacc AS accounting default=no],
42asacc=$enableval,asacc=no)
43if test $asacc = yes ; then
44CFLAGS="$CFLAGS $CFLAGS_ASACC"
45fi
46
47AC_ARG_ENABLE(matrix,[  --enable-matrix inter pop matrix default=no],
48matrix=$enableval,matrix=no)
49if test $matrix = yes ; then
50CFLAGS="$CFLAGS $CFLAGS_MATRIX"
51fi
52
53AC_ARG_ENABLE(ipv4aggidr,[  --enable-ipv4aggidr aggregation for IPv4 prefix=no, flow localisation by routeur identification, if yes, enable-ipv4aggsnmp MUST be NO],
54ipv4aggidr=$enableval,ipv4aggidr=no)
55if test $ipv4aggidr = yes ; then
56CFLAGS="$CFLAGS $CFLAGS_IPV4AGGIDR"
57fi
58
59AC_ARG_ENABLE(ipv4aggidsnmp,[  --enable-ipv4aggidsnmp aggregation for IPv4 prefix, localisation based on SNMP ID=yes],
60ipv4aggidsnmp=$enableval,ipv4aggidsnmp=yes)
61if test $ipv4aggidsnmp = yes ; then
62CFLAGS="$CFLAGS $CFLAGS_IPV4AGGIDSNMP"
63fi
64
65AC_ARG_ENABLE(debug,[  --enable-debug Debug mode definition=no],
66debug=$enableval,debug=no)
67if test $debug = yes ; then
68CFLAGS="$CFLAGS $CFLAGS_DEBUG"
69fi
70
71AC_ARG_ENABLE(debugagg,[  --enable-debugagg Debug Agg mode definition=no],
72debugagg=$enableval,debugagg=no)
73if test $debugagg = yes ; then
74CFLAGS="$CFLAGS $CFLAGS_DEBUGAGG"
75fi
76
77
78AC_ARG_ENABLE(multisampling,[  --enable-multisampling Multi-Sampling mode=no],
79multisampling=$enableval,multisampling=no)
80if test $multisampling = yes ; then
81CFLAGS="$CFLAGS $CFLAGS_MULTISAMPLING"
82fi
83
84AC_ARG_ENABLE(printunknownsubnet,[  --enable-printunknownsubnet Print Subnets who are not registered in subnet configuration file=no],
85printunknownsubnet=$enableval,printunknownsubnet=no)
86if test $printunknownsubnet = yes ; then
87CFLAGS="$CFLAGS $CFLAGS_PRINTUNKNOWNSUBNET"
88fi
89
90AC_SUBST(CFLAGS)
91
92# Checks for library functions.
93AC_FUNC_MALLOC
94AC_CHECK_FUNCS([getpass inet_ntoa memset socket strerror strspn])
95AC_CHECK_FUNCS([mempcpy perror syslog sscanf signal malloc strcpy ntohl])
96AC_CHECK_FUNCS([strncmp strtok memcpy getaddrinfo gai_strerror sendto])
97AC_CONFIG_FILES([Makefile
98                 src/Makefile])
99
100
101AC_OUTPUT
Note: See TracBrowser for help on using the browser.