root/trunk/configure.in @ 59

Revision 59, 2.8 KB (checked in by andreu, 15 years ago)

new aggregation method, based on SNMP index. New parameters in renetcolParam.h and new compilation options in configure.in.

  • 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.12beta, 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_IPV4AGGIDSNMP="-DIPV4AGGIDSNMP"
14CFLAGS_IPV4AGGIDR="-DIPV4AGGIDR"
15CFLAGS_MATRIX="-DMATRIX"
16CFLAGS_DEBUG="-DDEBUG"
17CFLAGS_DEBUGAGG="-DDEBUGAGG"
18CFLAGS_PRINTUNKNOWNSUBNET="-DPRINTUNKNOWNSUBNET"
19                               
20# Checks for programs.
21AC_PROG_CC
22
23# Checks for header files.
24AC_HEADER_STDC
25AC_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])
26
27# Checks for typedefs, structures, and compiler characteristics.
28AC_C_CONST
29AC_STRUCT_TM
30AC_C_VOLATILE
31AC_TYPE_SIZE_T
32
33AC_ARG_ENABLE(optimize,[  --enable-optimize gcc O2 option compilation default=no],
34optimize=$enableval,optimize=no)
35if test $optimize = yes ; then
36CFLAGS="$CFLAGS $CFLAGS_OPTIMIZE"
37fi
38
39AC_ARG_ENABLE(optimize,[  --enable-matrix inter pop matrix default=no],
40matrix=$enableval,matrix=no)
41if test $matrix = yes ; then
42CFLAGS="$CFLAGS $CFLAGS_MATRIX"
43fi
44
45AC_ARG_ENABLE(ipv4aggidr,[  --enable-ipv4aggidr aggregation for IPv4 prefix=no, flow localisation by routeur identification, if yes, enable-ipv4aggsnmp MUST be NO],
46ipv4aggidr=$enableval,ipv4aggidr=no)
47if test $ipv4aggidr = yes ; then
48CFLAGS="$CFLAGS $CFLAGS_IPV4AGGIDR"
49fi
50
51AC_ARG_ENABLE(ipv4aggidsnmp,[  --enable-ipv4aggsnmp aggregation for IPv4 prefix, localisation based on SNMP ID=yes],
52ipv4aggidsnmp=$enableval,ipv4aggidsnmp=yes)
53if test $ipv4aggidsnmp = yes ; then
54CFLAGS="$CFLAGS $CFLAGS_IPV4AGGIDSNMP"
55fi
56
57AC_ARG_ENABLE(debug,[  --enable-debug Debug mode definition=no],
58debug=$enableval,debug=no)
59if test $debug = yes ; then
60CFLAGS="$CFLAGS $CFLAGS_DEBUG"
61fi
62
63AC_ARG_ENABLE(debugagg,[  --enable-debugagg Debug Agg mode definition=no],
64debugagg=$enableval,debugagg=no)
65if test $debugagg = yes ; then
66CFLAGS="$CFLAGS $CFLAGS_DEBUGAGG"
67fi
68
69AC_ARG_ENABLE(printunknownsubnet,[  --enable-printunknownsubnet Print Subnets who are not registered in subnet configuration file=no],
70printunknownsubnet=$enableval,printunknownsubnet=no)
71if test $printunknownsubnet = yes ; then
72CFLAGS="$CFLAGS $CFLAGS_PRINTUNKNOWNSUBNET"
73fi
74
75AC_SUBST(CFLAGS)
76
77# Checks for library functions.
78AC_FUNC_MALLOC
79AC_CHECK_FUNCS([getpass inet_ntoa memset socket strerror strspn])
80AC_CHECK_FUNCS([mempcpy perror syslog sscanf signal malloc strcpy ntohl])
81AC_CHECK_FUNCS([strncmp strtok memcpy getaddrinfo gai_strerror sendto])
82AC_CONFIG_FILES([Makefile
83                 src/Makefile])
84
85
86AC_OUTPUT
Note: See TracBrowser for help on using the browser.