source: trunk/third/inetd/configure.in @ 11726

Revision 11726, 702 bytes checked in by danw, 27 years ago (diff)
Port from NetBSD, add Athena inetd switched/unswitched behavior
Line 
1dnl Process this file with autoconf to produce a configure script.
2AC_INIT(inetd.c)
3
4AC_PROG_CC
5AC_PROG_INSTALL
6
7AC_CHECK_HEADERS(rpc/rpcent.h)
8
9AC_CHECK_FUNC(gethostbyname, :, AC_CHECK_LIB(nsl, gethostbyname))
10AC_CHECK_FUNC(socket, :, AC_CHECK_LIB(socket, socket))
11AC_MSG_CHECKING(for libwrap)
12save_LIBS="$LIBS"
13LIBS="-L$ATHTOOLROOT/usr/athena/lib -lwrap $LIBS"
14AC_TRY_LINK(
15    [int allow_severity, deny_severity;],
16    [hosts_access();],
17    [AC_MSG_RESULT(yes)
18     AC_DEFINE(LIBWRAP)
19     WRAP_LIB="-L$ATHTOOLROOT/usr/athena/lib -lwrap"
20     WRAP_INCLUDES=-I$ATHTOOLROOT/usr/athena/include],
21    AC_MSG_RESULT(no))
22LIBS="$save_LIBS"
23AC_SUBST(WRAP_LIB)
24AC_SUBST(WRAP_INCLUDES)
25
26AC_OUTPUT(Makefile)
Note: See TracBrowser for help on using the repository browser.