1997-09-25 21:41:36 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
2012-04-21 17:55:36 +00:00
|
|
|
|
|
|
|
AC_PREREQ([2.68])
|
|
|
|
|
1997-09-25 21:41:36 +00:00
|
|
|
AC_INIT(actctrl.c)
|
|
|
|
AC_PREFIX_DEFAULT(/usr)
|
|
|
|
|
|
|
|
I4LVERSION=${I4LVERSION:-"?.?"}
|
2005-02-21 17:51:57 +00:00
|
|
|
CONFIG_DATADIR=${CONFIG_FIRMWAREDIR:-"/usr/lib/isdn"}
|
2012-04-21 17:55:36 +00:00
|
|
|
CONFIG_MANDIR=${mandir:-"/usr/man"}
|
|
|
|
CONFIG_SBINDIR=${CONFIG_CARD_SBINDIR:-"/sbin"}
|
1997-09-25 21:41:36 +00:00
|
|
|
|
|
|
|
dnl Checks for programs.
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_CC
|
|
|
|
|
|
|
|
dnl Checks for libraries.
|
|
|
|
|
|
|
|
dnl Checks for header files.
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_CHECK_HEADERS(fcntl.h sys/ioctl.h unistd.h)
|
|
|
|
|
|
|
|
dnl Checks for library functions.
|
|
|
|
AC_FUNC_MMAP
|
|
|
|
|
1997-10-26 22:52:56 +00:00
|
|
|
dnl Optional firmware directory
|
|
|
|
AC_ARG_WITH(firmware,
|
2012-04-21 17:55:36 +00:00
|
|
|
[ --with-firmware=DIR Set dir where firmware installed. [/usr/lib/isdn]],
|
|
|
|
AC_DEFINE(CONFIG_DATADIR, "${withval}", [directory where firmware installed]),
|
1997-10-26 22:52:56 +00:00
|
|
|
)
|
1997-09-25 21:41:36 +00:00
|
|
|
|
2012-04-21 17:55:36 +00:00
|
|
|
dnl Define which variables to substitute & which files to generate
|
1997-09-26 09:08:33 +00:00
|
|
|
AC_SUBST(CONFIG_DATADIR)
|
1997-10-26 22:52:56 +00:00
|
|
|
AC_SUBST(CONFIG_SBINDIR)
|
|
|
|
AC_SUBST(CONFIG_MANDIR)
|
1997-09-25 21:41:36 +00:00
|
|
|
AC_SUBST(I4LVERSION)
|
2012-04-21 17:55:36 +00:00
|
|
|
|
1997-09-25 21:41:36 +00:00
|
|
|
AC_OUTPUT(Makefile actctrl.man)
|