diff --git a/source/configure.in b/source/configure.in index dce60bc..b6d964a 100644 --- a/source/configure.in +++ b/source/configure.in @@ -1204,6 +1204,7 @@ AC_DEFINE(HAVE_PRCTL, 1, [Whether prctl is available]),[]) case "$host_os" in *linux*) # glibc <= 2.3.2 has a broken getgrouplist + AC_CACHE_CHECK([for broken getgrouplist],samba_cv_linux_getgrouplist_ok,[ AC_TRY_RUN([ #include #include @@ -1220,8 +1221,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 ;;