diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2002-06-16 23:09:25 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2002-06-16 23:09:25 +0000 |
commit | c951d0b590e07b3ea92350749ced92c4e4873786 (patch) | |
tree | de22a2e3f5f3cc93b56ecbfd058765be06b214fb | |
parent | f462c89847e55f14bccbfebde5520c08b23ebbcf (diff) | |
download | ipacct-c951d0b590e07b3ea92350749ced92c4e4873786.tar.gz ipacct-c951d0b590e07b3ea92350749ced92c4e4873786.tar.bz2 |
Switched to autoconf 2.53
-rw-r--r-- | configure.ac (renamed from configure.in) | 66 |
1 files changed, 35 insertions, 31 deletions
diff --git a/configure.in b/configure.ac index 575365c..a055c11 100644 --- a/configure.in +++ b/configure.ac @@ -1,23 +1,25 @@ -dnl This file is part of IPACCT -dnl Copyright (c) Sergey Poznyakoff -dnl -dnl This program is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2 of the License, or -dnl (at your option) any later version. -dnl -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with this program; if not, write to the Free Software -dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -dnl -AC_INIT(src/ipacct.h) +# This file is part of IPACCT +# Copyright (c) Sergey Poznyakoff +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +AC_PREREQ(2.53) +AC_INIT(ipacct, 0.2, bug-ipacct@cvs.farlep.net) +AC_CONFIG_SRCDIR(src/ipacct.h) AC_CANONICAL_SYSTEM -AM_INIT_AUTOMAKE(ipacct, 0.1) +AM_INIT_AUTOMAKE(no-exeext) AM_CONFIG_HEADER(config.h) dnl Checks for programs. @@ -27,13 +29,12 @@ AM_PROG_LEX AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_RANLIB -AC_ARG_PROGRAM dnl Checks for header files. AC_HEADER_STDC AC_HEADER_DIRENT AC_HEADER_SYS_WAIT -AC_CHECK_HEADERS(fcntl.h limits.h malloc.h sys/file.h sys/ioctl.h sys/time.h syslog.h unistd.h malloc.h sys/ioccom.h sys/sockio.h) +AC_CHECK_HEADERS(fcntl.h limits.h malloc.h sys/file.h sys/ioctl.h sys/time.h syslog.h unistd.h malloc.h sys/ioccom.h sys/sockio.h getopt.h) AC_SUBST(INCLUDES) AC_CHECK_HEADERS(netinet/if_ether.h netinet/ip_var.h, [], @@ -64,6 +65,8 @@ AC_FUNC_VPRINTF AC_FUNC_WAIT3 AC_CHECK_FUNCS(ftime gethostname gettimeofday getusershell getwd select socket strdup strerror strtol ether_hostton strerror) +rad_REPLACE_GNU_GETOPT + dnl libpcap stuff dnl All the stuff below has been shamelessly stolen from libpcap-0.4 dnl configure.in @@ -112,14 +115,15 @@ dlpi) AC_MSG_CHECKING(for /dev/dlpi device) if test -c /dev/dlpi ; then AC_MSG_RESULT(yes) - AC_DEFINE(HAVE_DEV_DLPI) + AC_DEFINE(HAVE_DEV_DLPI,1,[Define this if you have /dev/dlpi]) else AC_MSG_RESULT(no) dir="/dev/dlpi" AC_MSG_CHECKING(for $dir directory) if test -d $dir ; then AC_MSG_RESULT(yes) - AC_DEFINE_UNQUOTED(PCAP_DEV_PREFIX, "$dir") + AC_DEFINE_UNQUOTED(PCAP_DEV_PREFIX, "$dir", + [Path to pcap device]) else AC_MSG_RESULT(no) fi @@ -148,12 +152,11 @@ esac case "$target_os" in aix*) - dnl Workaround to enable certain features - AC_DEFINE(_SUN) + AC_DEFINE(_SUN,1,[workarounds to enable certain features]) ;; hpux9*) - AC_DEFINE(HAVE_HPUX9) + AC_DEFINE(HAVE_HPUX9,1,[Define this if we are on a HP-UX 9 system]) ;; hpux10.0*) @@ -164,7 +167,7 @@ hpux10.1*) hpux*) dnl HPUX 10.20 and above is similar to HPUX 9... - AC_DEFINE(HAVE_HPUX10_20) + AC_DEFINE(HAVE_HPUX10_20,1,[Define this if we are on a HP-UX 10.20 system]) ;; sinix*) @@ -177,12 +180,12 @@ sinix*) ac_cv_cc_sinix_defined=no)) AC_MSG_RESULT($ac_cv_cc_sinix_defined) if test $ac_cv_cc_sinix_defined = no ; then - AC_DEFINE(sinix) + AC_DEFINE(sinix,1,[Define this if we are on a sinix system]) fi ;; solaris*) - AC_DEFINE(HAVE_SOLARIS) + AC_DEFINE(HAVE_SOLARIS,1,[Define this if we are on a Solaris]) ;; linux*) @@ -196,9 +199,10 @@ AC_ARG_WITH(log-facility, [ --with-log-facility=facility enable logging to the given facility], AC_TRY_COMPILE([#include <syslog.h>], int lf = $withval, log_facility=$withval)) -AC_DEFINE_UNQUOTED(LOGFACILITY, $log_facility) +AC_DEFINE_UNQUOTED(LOGFACILITY, $log_facility, + [The syslog facility to be used for diagnostics]) AC_MSG_RESULT($log_facility) -AC_OUTPUT(libpcap/Makefile src/Makefile Makefile) +AC_OUTPUT(libpcap/Makefile lib/Makefile src/Makefile m4/Makefile Makefile) |