[GLUE] Rsync SAMBA_3_0 SVN r25598 in order to create the v3-0-test branch.
[Samba.git] / packaging / Debian / debian-sarge / patches / non-linux-ports.patch
blob2a3f55ed4d4f52adcf27a48c1b966b444862473a
1 diff -uNr samba-3.0.11.orig/source/configure.in samba-3.0.11/source/configure.in
2 --- samba-3.0.11.orig/source/configure.in 2005-03-23 02:39:11.000000000 -0800
3 +++ samba-3.0.11/source/configure.in 2005-03-23 02:43:01.000000000 -0800
4 @@ -573,6 +573,15 @@
5 fi
6 ;;
8 +# Systems with LFS support.
9 +#
10 + gnu* | k*bsd*-gnu)
11 + CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
12 + AC_DEFINE(_LARGEFILE64_SOURCE, 1, [Whether to enable large file support])
13 + AC_DEFINE(_FILE_OFFSET_BITS, 64, [File offset bits])
14 + AC_DEFINE(_GNU_SOURCE, 1, [Whether to use GNU libc extensions])
15 + ;;
17 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
19 *linux*)
20 @@ -1040,7 +1049,7 @@
23 case "$host_os" in
24 - *linux*)
25 + linux*-gnu* | gnu* | k*bsd*-gnu)
26 # glibc <= 2.3.2 has a broken getgrouplist
27 AC_TRY_RUN([
28 #include <unistd.h>
29 @@ -1172,7 +1181,10 @@
31 # and these are for particular systems
32 case "$host_os" in
33 - *linux*) AC_DEFINE(LINUX,1,[Whether the host os is linux])
34 + linux*-gnu* | gnu* | k*bsd*-gnu)
35 + case "$host_os" in linux*)
36 + AC_DEFINE(LINUX,1,[Whether the host os is linux]) ;;
37 + esac
38 BLDSHARED="true"
39 if test "${ac_cv_gnu_ld_no_default_allow_shlib_undefined}" = "yes"; then
40 LDSHFLAGS="-shared -Wl,-Bsymbolic -Wl,--allow-shlib-undefined"
41 @@ -4044,7 +4056,7 @@
42 AC_MSG_RESULT(yes);
44 case "$host_os" in
45 - *linux*)
46 + linux*-gnu* | gnu* | k*bsd*-gnu)
47 AC_CACHE_CHECK([for linux sendfile64 support],samba_cv_HAVE_SENDFILE64,[
48 AC_TRY_LINK([#include <sys/sendfile.h>],
50 @@ -4307,12 +4319,12 @@
51 WINBIND_NSS_LDSHFLAGS=$LDSHFLAGS
53 case "$host_os" in
54 - *linux*)
55 + linux*-gnu* | gnu* | k*bsd*-gnu)
56 NSSSONAMEVERSIONSUFFIX=".2"
57 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_linux.o"
59 - *freebsd[[5-9]]*)
60 + freebsd5*|*freebsd[[6-9]]*)
61 # FreeBSD winbind client is implemented as a wrapper around
62 # the Linux version.
63 NSSSONAMEVERSIONSUFFIX=".1"
64 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_freebsd.o \