File: configure.in

package info (click to toggle)
nstreams 1.0.4%2Bds-0.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 356 kB
  • sloc: ansic: 1,548; sh: 152; makefile: 49
file content (38 lines) | stat: -rw-r--r-- 1,031 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
dnl
dnl autoconf script for nstreams
dnl


AC_INIT(nstreams, 1.0.4)
AC_REVISION($Revision: 1.2 $)dnl
AC_CANONICAL_TARGET

dnl Set up the main lines of the config script
AC_CONFIG_HEADERS([includes/config.h])
AC_PREFIX_DEFAULT("/usr/local")
AC_LANG([C])


PWDD=$PWD

dnl Check for several programs
AC_PROG_CC
AC_PROG_MAKE_SET
AC_PROG_INSTALL
AC_CHECK_HEADERS(errno.h sys/types.h netinet/in.h sys/socket.h netdb.h \
arpa/inet.h string.h signal.h netinet/in_systm.h sys/types.h sys/time.h \
unistd.h ctype.h getopt.h)


CFLAGS="$CFLAGS -I/usr/include/pcap"

AC_CHECK_LIB(pcap, pcap_open_live,,AC_MSG_ERROR("*** You need the pcap library"))

test "$prefix" = NONE && prefix=/usr/local
sysconfdir=/etc
AC_DEFINE_UNQUOTED([ETC_NSTREAMS_NETWORKS], "${sysconfdir}/nstreams/nstreams-networks", [Path to nstreams-networks file])
AC_DEFINE_UNQUOTED([ETC_NSTREAMS_SERVICES], "${sysconfdir}/nstreams/nstreams-services", [Path to nstreams-services file])
AC_CHECK_FUNCS(bzero inet_ntoa)
AC_SUBST(PWDD)
AC_CONFIG_FILES([nstreams.tmpl])
AC_OUTPUT