root/trunk/configure.in @ 28

Revision 28, 1.7 KB (checked in by andreu, 16 years ago)

debug mode in compilation option - Wno-long-long - copyright update

  • 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.8, 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 -pg"
11
12CFLAGS_CRIHAN="-DCRIHAN"
13CFLAGS_IPV4AGG="-DIPV4AGG"
14CFLAGS_DEBUG="-DDEBUG"
15                               
16# Checks for programs.
17AC_PROG_CC
18
19# Checks for header files.
20AC_HEADER_STDC
21AC_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])
22
23# Checks for typedefs, structures, and compiler characteristics.
24AC_C_CONST
25AC_STRUCT_TM
26AC_C_VOLATILE
27AC_TYPE_SIZE_T
28
29AC_ARG_ENABLE(crihan,[  --enable-crihan allow files outputs for CRIHAN tools default=no],
30crihan=$enableval,crihan=no)
31if test $crihan = yes ; then
32CFLAGS="$CFLAGS $CFLAGS_CRIHAN"
33fi
34
35AC_ARG_ENABLE(ipv4agg,[  --enable-ipv4agg aggregation for IPv4 prefix=yes],
36ipv4agg=$enableval,ipv4agg=yes)
37if test $ipv4agg = yes ; then
38CFLAGS="$CFLAGS $CFLAGS_IPV4AGG"
39fi
40
41AC_ARG_ENABLE(debug,[  --enable-debug Debug mode definition=no],
42debug=$enableval,debug=no)
43if test $debug = yes ; then
44CFLAGS="$CFLAGS $CFLAGS_DEBUG"
45fi
46
47AC_SUBST(CFLAGS)
48
49# Checks for library functions.
50AC_FUNC_MALLOC
51AC_CHECK_FUNCS([getpass inet_ntoa memset socket strerror strspn])
52AC_CHECK_FUNCS([mempcpy perror syslog sscanf signal malloc strcpy ntohl])
53AC_CHECK_FUNCS([strncmp strtok memcpy getaddrinfo gai_strerror sendto])
54AC_CONFIG_FILES([Makefile
55                 src/Makefile])
56
57
58AC_OUTPUT
Note: See TracBrowser for help on using the browser.