Merge branch '1925_mcserver_conditional'

* 1925_mcserver_conditional:
  Added check for empty value of 'enable_mcserver' variable for more proper summary output.
  Ticket #1925: Fixed conditional compile of mcserver
This commit is contained in:
Enrico Weigelt, metux IT service 2010-01-27 22:00:06 +01:00
commit 837295b62a
4 changed files with 15 additions and 12 deletions

View File

@ -641,6 +641,10 @@ po/Makefile.in
AC_OUTPUT
if test x$enable_mcserver = x; then
enable_mcserver='no'
fi
echo "
Configuration:

View File

@ -25,7 +25,7 @@
#include <config.h>
#ifdef ENABLE_VFS_MCFS
#if defined(ENABLE_VFS_MCFS) || defined(ENABLE_MCSERVER)
#include <unistd.h>
#include <stdlib.h>
#include <stdarg.h>
@ -210,4 +210,4 @@ rpc_get (int sock, ...)
}
}
}
#endif /* ENABLE_VFS_MCFS */
#endif /* ENABLE_VFS_MCFS || ENABLE_MCSERVER */

View File

@ -7,19 +7,18 @@ dnl If PAM is found, other methods are not checked.
AC_DEFUN([MC_MCSERVER_CHECKS], [
dnl
dnl mcfs support
dnl mcfs server support
dnl
AC_ARG_ENABLE([mcserver],
[ --enable-mcserver Support mc-specific networking file system server [[no]]],
[if test "x$enableval" != "xno"; then
AC_DEFINE(ENABLE_MCSERVER, 1, [Define to enable mc-specific networking file system server])
AC_MC_VFS_ADDNAME([mcfs])
enable_mcserver=yes
fi]
[enable_mcserver="$enableval"]
)
if test x"$enable_mcserver" = "xyes"; then
AC_MC_VFS_MCFS_SET
AC_DEFINE(ENABLE_MCSERVER, 1, [Define to enable mc-specific networking file system server])
AC_REQUIRE_SOCKET
AC_CHECK_RPC
use_net_code=true
dnl Check if PAM can be used for mcserv
AC_CHECK_LIB(dl, dlopen, [LIB_DL="-ldl"])
@ -65,5 +64,6 @@ AC_DEFUN([MC_MCSERVER_CHECKS], [
fi
fi
fi
AM_CONDITIONAL(ENABLE_MCSERVER, [test x"$enable_mcserver" = "xyes"])
AC_SUBST(MCSERVLIBS)
])

View File

@ -49,13 +49,10 @@ AC_DEFUN([MC_WITH_VFS],
AC_CHECK_RPC
AC_REQUIRE_SOCKET
MC_MCSERVER_CHECKS
use_net_code=true
fi
fi
AC_DEFINE(ENABLE_VFS, 1, [Define to enable VFS support])
if $use_net_code; then
AC_DEFINE(USE_NETCODE, 1, [Define to use networked VFS])
@ -94,5 +91,7 @@ AC_DEFUN([AC_MC_VFS_CHECKS],[
AM_CONDITIONAL(ENABLE_VFS_UNDELFS, [false])
fi
MC_MCSERVER_CHECKS
AM_CONDITIONAL(ENABLE_VFS, [test x"$enable_vfs" = x"yes"])
])