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 39 40 41 42 43 44
|
Author: Andreas Tille <tille@debian.org>
Last-Update: 2024-12-11
Bug-Debian: https://bugs.debian.org/1075323
Description: Fix configure.in
--- a/configure.in
+++ b/configure.in
@@ -3,14 +3,14 @@ dnl autoconf script for nstreams
dnl
-AC_INIT(.root-dir)
+AC_INIT
AC_REVISION($Revision: 1.2 $)dnl
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET
dnl Set up the main lines of the config script
-AC_CONFIG_HEADER(includes/config.h)
+AC_CONFIG_HEADERS([includes/config.h])
AC_PREFIX_DEFAULT("/usr/local")
-AC_LANG_C
+AC_LANG([C])
PWDD=`pwd`
@@ -26,12 +26,13 @@ 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"))
+AC_CHECK_LIB(pcap, pcap_open_live,,AC_MSG_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_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_OUTPUT(nstreams.tmpl)
+AC_CONFIG_FILES([nstreams.tmpl])
+AC_OUTPUT
|