diff options
author | Ludovic Courtès <ludo@gnu.org> | 2011-11-05 17:58:27 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2011-11-05 17:58:27 +0100 |
commit | 6d7787b87860463038da9ddf4dfa393f103091ff (patch) | |
tree | 0c602a89b399294362d28b189f0037e8323f7361 /configure.in | |
parent | 3aa7bb4849945c7480873567767db3face604260 (diff) |
Disable NFS translator and daemon compilation when Sun RPC is lacking.
* Makefile (prog-subdirs): Make `nfs' and `nfsd' conditional on
$(HAVE_SUN_RPC) = yes.
* config.make.in (HAVE_SUN_RPC): New variable.
* configure.in: Check for <rpc/types.h> and `clnt_create'.
* README.CVS: Document dependency on a Sun RPC implementation.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 1cf4daab..635242d2 100644 --- a/configure.in +++ b/configure.in @@ -230,6 +230,11 @@ AC_MSG_RESULT($boot_store_types) # Check for ncursesw, which is needed for the console-curses client. hurd_LIB_NCURSESW +# Check for Sun RPC headers and library. +AC_CHECK_HEADER([rpc/types.h], [HAVE_SUN_RPC=yes], [HAVE_SUN_RPC=no]) +AC_SEARCH_LIBS([clnt_create], [], [:], [HAVE_SUN_RPC=no]) +AC_SUBST([HAVE_SUN_RPC]) + if test -f ./$ac_unique_file; then # Configuring in source directory; don't create any Makefiles. makefiles= |