File: configure.in

package info (click to toggle)
nstreams 1.0.4-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, jessie, jessie-kfreebsd, stretch, trixie
  • size: 368 kB
  • ctags: 140
  • sloc: sh: 1,562; ansic: 1,537; makefile: 50
file content (37 lines) | stat: -rw-r--r-- 935 bytes parent folder | download | duplicates (3)
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
dnl
dnl autoconf script for nstreams
dnl


AC_INIT(.root-dir)
AC_REVISION($Revision: 1.2 $)dnl
AC_CANONICAL_SYSTEM

dnl Set up the main lines of the config script
AC_CONFIG_HEADER(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_ERROR("*** You need the pcap library"))

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