root/trunk/configure.in @ 57

Revision 57, 2.2 KB (checked in by andreu, 15 years ago)

delete all CRIHAN code and some outputs; add param in check.sh

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