s3: Fix bug 6992, make test for getgrouplist cacheable
authorJonas Gorski <jonas.gorski+samba@gmail.com>
Thu, 17 Dec 2009 10:32:21 +0000 (11:32 +0100)
committerVolker Lendecke <vl@samba.org>
Thu, 17 Dec 2009 10:38:03 +0000 (11:38 +0100)
source3/configure.in

index 0bd10068bbe8267a0366f7fc044a5d4eeadf6860..7d342371851a33c040fb73bfedeb58e64bfb5f23 100644 (file)
@@ -1244,7 +1244,7 @@ AC_DEFINE(HAVE_PRCTL, 1, [Whether prctl is available]),[])
 case "$host_os" in
     *linux* | gnu* | k*bsd*-gnu | kopensolaris*-gnu)
        # glibc <= 2.3.2 has a broken getgrouplist
-       AC_TRY_RUN([
+       AC_CACHE_CHECK([for good getgrouplist],samba_cv_linux_getgrouplist_ok,[AC_TRY_RUN([
 #include <unistd.h>
 #include <sys/utsname.h>
 main() {
@@ -1260,8 +1260,8 @@ main() {
 #endif
        exit(0);
 }
-], [linux_getgrouplist_ok=yes], [linux_getgrouplist_ok=no])
-       if test x"$linux_getgrouplist_ok" = x"yes"; then
+], [samba_cv_linux_getgrouplist_ok=yes], [samba_cv_linux_getgrouplist_ok=no])])
+       if test x"$samba_cv_linux_getgrouplist_ok" = x"yes"; then
           AC_DEFINE(HAVE_GETGROUPLIST, 1, [Have good getgrouplist])
        fi
        ;;