ccollect:0.6.2->0.7.0
[nslu2-linux/optware.git] / sources / samba / configure.in-wl500g.patch
blob68fa061969a2001288187e340ffb73f086bf8fdb
1 --- samba-3.0.14a/source/configure.in 2005-04-13 23:14:26 -07:00
2 +++ samba/source/configure.in 2005-06-15 23:04:47 -07:00
3 @@ -591,43 +591,7 @@
4 AC_MSG_CHECKING([for LFS support])
5 old_CPPFLAGS="$CPPFLAGS"
6 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
7 - AC_TRY_RUN([
8 -#include <unistd.h>
9 -#include <sys/utsname.h>
10 -#include <string.h>
11 -#include <stdlib.h>
12 -main() {
13 -#if _LFS64_LARGEFILE == 1
14 - struct utsname uts;
15 - char *release;
16 - int major, minor;
18 - /* Ensure this is glibc 2.2 or higher */
19 -#if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
20 - int libc_major = __GLIBC__;
21 - int libc_minor = __GLIBC_MINOR__;
23 - if (libc_major < 2)
24 - exit(1);
25 - if (libc_minor < 2)
26 - exit(1);
27 -#endif
29 - /* Ensure this is kernel 2.4 or higher */
31 - uname(&uts);
32 - release = strdup(uts.release);
33 - major = atoi(strsep(&release, "."));
34 - minor = atoi(strsep(&release, "."));
36 - if (major > 2 || (major == 2 && minor > 3))
37 - exit(0);
38 - exit(1);
39 -#else
40 - exit(1);
41 -#endif
43 -], [LINUX_LFS_SUPPORT=yes], [LINUX_LFS_SUPPORT=no], [LINUX_LFS_SUPPORT=cross])
44 +LINUX_LFS_SUPPORT=yes
45 CPPFLAGS="$old_CPPFLAGS"
46 if test x$LINUX_LFS_SUPPORT = xyes ; then
47 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
48 @@ -1053,6 +1017,7 @@
50 case "$host_os" in
51 *linux*)
52 +AC_CACHE_CHECK([for getgrouplist],linux_getgrouplist_ok,[
53 # glibc <= 2.3.2 has a broken getgrouplist
54 AC_TRY_RUN([
55 #include <unistd.h>
56 @@ -1070,7 +1035,7 @@
57 #endif
58 exit(0);
60 -], [linux_getgrouplist_ok=yes], [linux_getgrouplist_ok=no])
61 +], [linux_getgrouplist_ok=yes], [linux_getgrouplist_ok=no])])
62 if test x"$linux_getgrouplist_ok" = x"yes"; then
63 AC_DEFINE(HAVE_GETGROUPLIST, 1, [Have good getgrouplist])