root/tags/renetcol-0_0_6/configure.in @ 92

Revision 20, 1.4 KB (checked in by andreu, 16 years ago)

new release 0.0.6, with CRIHAN compilation feature

  • 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.5, 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 -Wall -D _SVID_SOURCE \
11        -DSIGSETJMP_IS_BROKEN \
12        -D _XOPEN_SOURCE \
13        -pedantic \
14        -pg"
15
16CFLAGS_CRIHAN="-DCRIHAN"
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(crihan,[  --enable-crihan allow files outputs for CRIHAN tools default=no],
32crihan=$enableval,crihan=no)
33if test $crihan = yes ; then
34CFLAGS="$CFLAGS $CFLAGS_CRIHAN"
35fi
36
37AC_SUBST(CFLAGS)
38
39# Checks for library functions.
40AC_FUNC_MALLOC
41AC_CHECK_FUNCS([getpass inet_ntoa memset socket strerror strspn])
42AC_CHECK_FUNCS([mempcpy perror syslog sscanf signal malloc strcpy ntohl])
43AC_CHECK_FUNCS([strncmp strtok memcpy getaddrinfo gai_strerror sendto])
44AC_CONFIG_FILES([Makefile
45                 src/Makefile])
46
47
48AC_OUTPUT
Note: See TracBrowser for help on using the browser.