[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha7-1564-g66dff40

Michael Adam obnox at samba.org
Tue May 12 06:42:19 GMT 2009


The branch, master has been updated
       via  66dff4073d0013bfd11ac29e341765141393ea23 (commit)
       via  5fba1e938c59492872d026c452cbbf8d2239c95f (commit)
      from  6708b926a47b53a2984de6af9bb9d319ed6efe58 (commit)

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


- Log -----------------------------------------------------------------
commit 66dff4073d0013bfd11ac29e341765141393ea23
Author: Michael Adam <obnox at samba.org>
Date:   Sat May 9 00:10:51 2009 +0200

    s3:build: extend the support fo Debian GNU/kFooBar to kOpenSolaris
    
    As suggested by Robert Millan.
    
    Michael

commit 5fba1e938c59492872d026c452cbbf8d2239c95f
Author: Michael Adam <obnox at samba.org>
Date:   Thu Apr 30 21:59:07 2009 +0200

    s3:build: support non-linux gnu ports
    
    This is based on a patch by the debian package maintainers,
    adapted for the merged branch.
    
    Michael

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

Summary of changes:
 source3/configure.in |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/configure.in b/source3/configure.in
index b6cdcc8..8adf24e 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -579,6 +579,15 @@ exit(1);
       fi
     ;;
 
+# Systems with LFS support.
+#
+    gnu* | k*bsd*-gnu | kopensolaris*-gnu)
+	CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
+	AC_DEFINE(_LARGEFILE64_SOURCE, 1, [Whether to enable large file support])
+	AC_DEFINE(_FILE_OFFSET_BITS, 64, [File offset bits])
+	AC_DEFINE(_GNU_SOURCE, 1, [Whether to use GNU libc extensions])
+	;;
+
 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
 #
     *linux*)
@@ -1243,7 +1252,7 @@ AC_DEFINE(HAVE_PRCTL, 1, [Whether prctl is available]),[])
 #
 #
 case "$host_os" in
-    *linux*)
+    *linux* | gnu* | k*bsd*-gnu | kopensolaris*-gnu)
        # glibc <= 2.3.2 has a broken getgrouplist
        AC_TRY_RUN([
 #include <unistd.h>
@@ -1542,7 +1551,10 @@ DSO_EXPORTS=""
 
   # and these are for particular systems
   case "$host_os" in
-		*linux*)   AC_DEFINE(LINUX,1,[Whether the host os is linux])
+		*linux* | gnu* | k*bsd*-gnu | kopensolaris*-gnu)
+			case "$host_os" in *linux*)
+				AC_DEFINE(LINUX,1,[Whether the host os is linux]) ;;
+			esac
 			BLDSHARED="true"
 			if test "${ac_cv_gnu_ld_no_default_allow_shlib_undefined}" = "yes"; then
 				LDSHFLAGS="-shared -Wl,-Bsymbolic -Wl,--allow-shlib-undefined"
@@ -5391,7 +5403,7 @@ AC_ARG_WITH(sendfile-support,
 	AC_MSG_RESULT(yes);
 
 	case "$host_os" in
-	*linux*)
+	*linux* | gnu* | k*bsd*-gnu | kopensolaris*-gnu)
 		AC_CACHE_CHECK([for linux sendfile64 support],samba_cv_HAVE_SENDFILE64,[
 		AC_TRY_LINK([#include <sys/sendfile.h>],
 [\
@@ -5762,7 +5774,7 @@ NSSSONAMEVERSIONSUFFIX=""
 WINBIND_NSS_PTHREAD=""
 
 case "$host_os" in
-	*linux*)
+	*linux* | gnu* | k*bsd*-gnu | kopensolaris*-gnu)
 		NSSSONAMEVERSIONSUFFIX=".2"
 		WINBIND_NSS_EXTRA_OBJS="../nsswitch/winbind_nss_linux.o"
 		;;


-- 
Samba Shared Repository


More information about the samba-cvs mailing list