summaryrefslogtreecommitdiffstats
path: root/patches/samba-3.0.33/samba-3.0.23-configure.diff
blob: 4bf7bf77e82abb10e783d380645a41630eb83340 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
 source/configure.in |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

Index: source/configure.in
===================================================================
--- source/configure.in.orig
+++ source/configure.in
@@ -1386,7 +1386,7 @@ AC_DEFINE(HAVE_PRCTL, 1, [Whether prctl 
 case "$host_os" in
     *linux*)
        # glibc <= 2.3.2 has a broken getgrouplist
-       AC_TRY_RUN([
+       AC_RUN_IFELSE([
 #include <unistd.h>
 #include <sys/utsname.h>
 main() {
@@ -1402,10 +1402,14 @@ main() {
 #endif
        exit(0);
 }
-], [linux_getgrouplist_ok=yes], [linux_getgrouplist_ok=no])
+], [linux_getgrouplist_ok=yes], [linux_getgrouplist_ok=no], [linux_getgrouplist_ok=maybe])
+
        if test x"$linux_getgrouplist_ok" = x"yes"; then
           AC_DEFINE(HAVE_GETGROUPLIST, 1, [Have good getgrouplist])
        fi
+       if test x"$linux_getgrouplist_ok" = x"maybe"; then
+          AC_DEFINE(HAVE_GETGROUPLIST, 1, [Have good getgrouplist - guessed while crosscompiling])
+       fi
        ;;
     *)
        AC_CHECK_FUNCS(getgrouplist)