s3: Fix netgrent configure checks for compilers not supporting -Werror-implicit-funct...
authorKai Blin <kai@samba.org>
Sat, 14 Aug 2010 05:40:51 +0000 (07:40 +0200)
committerKai Blin <kai@samba.org>
Sat, 21 Aug 2010 10:05:40 +0000 (12:05 +0200)
This should fix bug 7620.

source3/configure.in

index 5156159aa1a7e6f357f3ee8896c34b371e871a86..db524d58919368bc7b315be242a97c0aac488806 100644 (file)
@@ -6510,7 +6510,9 @@ AC_SUBST(FLAGS1)
 ###################################################
 # Check for different/missing (set|get|end)netgrent prototypes
 CFLAGS_SAVE=$CFLAGS
-CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
+if test x"$samba_cv_HAVE_Wdeclaration_after_statement" = x"yes"; then
+       CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
+fi
 AC_CACHE_CHECK([for setnetgrent prototype],samba_cv_setnetgrent_prototype, [
     AC_TRY_COMPILE([#include<netdb.h>
                     #ifdef HAVE_NETGROUP_H