50 lines
1.2 KiB
Text
50 lines
1.2 KiB
Text
dnl Process this file with autoconf to produce a configure script.
|
|
AC_INIT(ipppstats.c)
|
|
|
|
I4LVERSION=${I4LVERSION:-"?.?"}
|
|
CONFIG_SBINDIR=${CONFIG_SBINDIR:-"/sbin"}
|
|
CONFIG_MANDIR=${CONFIG_MANDIR:-"/usr/man"}
|
|
CONFIG_KERNELDIR=`eval echo ${CONFIG_KERNELDIR:-"/usr/src/linux"}`
|
|
MANDATE=`grep CHECKIN ipppstats.man.in | awk '{print $4}'`
|
|
|
|
dnl Checks for programs.
|
|
AC_PROG_CC
|
|
AC_PROG_CPP
|
|
AC_PROG_INSTALL
|
|
|
|
dnl Checks for libraries.
|
|
|
|
dnl Checks for header files.
|
|
AC_CHECK_HEADERS(fcntl.h sys/ioctl.h)
|
|
|
|
AC_FIND_KERNEL
|
|
|
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
dnl Checks for library functions.
|
|
AC_PROG_GCC_TRADITIONAL
|
|
AC_HEADER_STDC
|
|
AC_TYPE_SIGNAL
|
|
AC_CHECK_FUNCS(socket)
|
|
|
|
dnl Optional sbin directory
|
|
AC_ARG_WITH(sbin,
|
|
[ --with-sbin=DIR Set dir where binary is istalled. [/sbin]],
|
|
CONFIG_SBINDIR="${withval}"
|
|
AC_DEFINE(CONFIG_SBINDIR,"${withval}"),
|
|
)
|
|
|
|
dnl Optional man directory
|
|
AC_ARG_WITH(man,
|
|
[ --with-man=DIR Set manpage dir. [/usr/man]],
|
|
CONFIG_MANDIR="${withval}"
|
|
AC_DEFINE(CONFIG_MANDIR,"${withval}"),
|
|
)
|
|
|
|
AC_SUBST(I4LVERSION)
|
|
AC_SUBST(MANDATE)
|
|
AC_SUBST(CONFIG_SBINDIR)
|
|
AC_SUBST(CONFIG_MANDIR)
|
|
AC_SUBST(CONFIG_KERNELDIR)
|
|
AC_OUTPUT(Makefile ipppstats.man)
|