also install required files for HAVE_INCLUDES
[buildroot.git] / package / samba / samba-getgrouplist.patch
blobb66ccfb76fa5f25cc2f356cc24bd7ad437c32efa
1 diff -ur samba-3.0.25a/source/configure.in samba-3.0.25a-patched/source/configure.in
2 --- samba-3.0.25a/source/configure.in 2007-05-23 10:29:20.000000000 -0500
3 +++ samba-3.0.25a-patched/source/configure.in 2007-06-19 11:38:21.000000000 -0500
4 @@ -1370,38 +1370,6 @@
5 AC_DEFINE(HAVE_PRCTL, 1, [Whether prctl is available]),[])
8 -#
9 -#
10 -case "$host_os" in
11 - *linux*)
12 - # glibc <= 2.3.2 has a broken getgrouplist
13 - AC_TRY_RUN([
14 -#include <unistd.h>
15 -#include <sys/utsname.h>
16 -main() {
17 - /* glibc up to 2.3 has a broken getgrouplist */
18 -#if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
19 - int libc_major = __GLIBC__;
20 - int libc_minor = __GLIBC_MINOR__;
22 - if (libc_major < 2)
23 - exit(1);
24 - if ((libc_major == 2) && (libc_minor <= 3))
25 - exit(1);
26 -#endif
27 - exit(0);
29 -], [linux_getgrouplist_ok=yes], [linux_getgrouplist_ok=no])
30 - if test x"$linux_getgrouplist_ok" = x"yes"; then
31 - AC_DEFINE(HAVE_GETGROUPLIST, 1, [Have good getgrouplist])
32 - fi
33 - ;;
34 - *)
35 - AC_CHECK_FUNCS(getgrouplist)
36 - ;;
37 -esac
40 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX