source: trunk/athena/lib/locker/configure.in @ 24069

Revision 24069, 935 bytes checked in by broder, 15 years ago (diff)
In locker: * Add a configure-time option to tear the NFS (and therefore the krb4) out of liblocker. * Shell out to aklog, instead of duplicating all of its code. * On Debathena, build without NFS support.
Line 
1dnl Process this file with autoconf to produce a configure script.
2AC_INIT(locker.h)
3
4AC_PROG_CC
5AC_PROG_INSTALL
6AC_PROG_RANLIB
7
8AC_ARG_ENABLE([nfs],
9        [AS_HELP_STRING([--enable-nfs], [support for kNFS lockers (deprecated)])])
10
11if test "$enable_nfs" = "yes"; then
12    AC_DEFINE([ENABLE_NFS],[1],[Support for kNFS lockers (deprecated).])
13
14    AC_PATH_PROG(MOUNT_CMD, mount, , ${PATH}:/sbin:/usr/sbin)
15    AC_PATH_PROG(UMOUNT_CMD, umount, , ${PATH}:/sbin:/usr/sbin)
16
17    AC_MSG_CHECKING(if rpcsvc/mount.h needs sys/fs/nfs.h)
18    AC_TRY_COMPILE([
19#include <rpc/rpc.h>
20#include <rpcsvc/mount.h>
21    ], , AC_MSG_RESULT(no), AC_TRY_COMPILE([
22#include <rpc/rpc.h>
23#include <sys/fs/nfs.h>
24#include <rpcsvc/mount.h>
25    ], , AC_MSG_RESULT(yes)
26    AC_DEFINE(NEED_SYS_FS_NFS_H),
27    AC_MSG_ERROR(couldn't include rpcsvc/mount.h)))
28
29    ATHENA_KRB4_REQUIRED
30fi
31
32ATHENA_KRB5_REQUIRED
33ATHENA_AFS_REQUIRED
34ATHENA_HESIOD_REQUIRED
35
36AC_OUTPUT(Makefile)
Note: See TracBrowser for help on using the repository browser.