[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha7-1974-g089ba38

Stefan Metzmacher metze at samba.org
Wed Jun 3 12:19:21 GMT 2009


The branch, master has been updated
       via  089ba385aff8ed3f53bb92464cc842c6c00a90f6 (commit)
      from  71fcd5bf6400da04cb181b6f43a9353617811bef (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 089ba385aff8ed3f53bb92464cc842c6c00a90f6
Author: Stefan Metzmacher <metze at samba.org>
Date:   Wed Jun 3 14:11:37 2009 +0200

    s4:torture/libnetapi: fix netapi detection
    
    We need to set SMB_ENABLE(TORTURE_LIBNETAPI,NO) first
    to overwrite the default of YES for MODULES and
    then only set it to YES if netapi was found.
    
    metze

-----------------------------------------------------------------------

Summary of changes:
 source4/torture/libnetapi/config.m4 |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/torture/libnetapi/config.m4 b/source4/torture/libnetapi/config.m4
index 4372490..fadef69 100644
--- a/source4/torture/libnetapi/config.m4
+++ b/source4/torture/libnetapi/config.m4
@@ -4,7 +4,7 @@
 
 use_netapi=auto
 AC_ARG_ENABLE(netapi,
-AS_HELP_STRING([--enable-netapi],[Turn on netapi support (default=yes)]),
+AS_HELP_STRING([--enable-netapi],[Turn on netapi support (default=auto)]),
     [if test x$enable_netapi = xno; then
         use_netapi=no
     fi])
@@ -16,13 +16,17 @@ AS_HELP_STRING([--enable-netapi],[Turn on netapi support (default=yes)]),
 #							   [use_netapi=no])
 #fi
 
-if test x$use_netapi = xauto; then
+SMB_ENABLE(TORTURE_LIBNETAPI,NO)
+if test x$use_netapi != xno; then
 	AC_CHECK_HEADERS(netapi.h)
 	AC_CHECK_LIB_EXT(netapi, NETAPI_LIBS, libnetapi_init)
 	if test x"$ac_cv_header_netapi_h" = x"yes" -a x"$ac_cv_lib_ext_netapi_libnetapi_init" = x"yes";then
 		SMB_ENABLE(NETAPI,YES)
+		SMB_ENABLE(TORTURE_LIBNETAPI,YES)
 	else
-		SMB_ENABLE(TORTURE_LIBNETAPI,NO)
+		if test x$use_netapi != xauto; then
+			AC_MSG_ERROR([--enable-netapi: libnetapi not found])
+		fi
 	fi
 	SMB_EXT_LIB(NETAPI, $NETAPI_LIBS)
 fi


-- 
Samba Shared Repository


More information about the samba-cvs mailing list