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
8 +# Systems with LFS support.
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])
17 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
25 + linux*-gnu* | gnu* | k*bsd*-gnu)
26 # glibc <= 2.3.2 has a broken getgrouplist
29 @@ -1172,7 +1181,10 @@
31 # and these are for particular systems
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]) ;;
39 if test "${ac_cv_gnu_ld_no_default_allow_shlib_undefined}" = "yes"; then
40 LDSHFLAGS="-shared -Wl,-Bsymbolic -Wl,--allow-shlib-undefined"
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,10 +4319,10 @@
51 WINBIND_NSS_LDSHFLAGS=$LDSHFLAGS
55 + linux*-gnu* | gnu* | k*bsd*-gnu)
56 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_linux.o"
59 + freebsd5*|*freebsd[[6-9]]*)
60 # FreeBSD winbind client is implemented as a wrapper around
62 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_freebsd.o \