define='HAVE_DIRENT_D_OFF')
conf.CHECK_FUNCS('setnetgrent getnetgrent endnetgrent')
+ if conf.CHECK_CFLAGS('-Werror-implicit-function-declaration'):
+ netgrent_cflags = '-Werror-implicit-function-declaration'
+ else:
+ netgrent_cflags = ''
conf.CHECK_CODE('setnetgrent("foo")', 'HAVE_SETNETGRENT_PROTOTYPE',
msg="Checking for setnetgrent prototype",
headers='netdb.h netgroup.h',
- cflags="-Werror-implicit-function-declaration")
+ cflags=netgrent_cflags)
conf.CHECK_CODE('getnetgrent', 'HAVE_GETNETGRENT_PROTOTYPE',
msg="Checking for getnetgrent prototype",
headers='netdb.h netgroup.h',
- cflags="-Werror-implicit-function-declaration")
+ cflags=netgrent_cflags)
conf.CHECK_CODE('endnetgrent', 'HAVE_ENDNETGRENT_PROTOTYPE',
msg="Checking for endnetgrent prototype",
headers='netdb.h netgroup.h',
- cflags="-Werror-implicit-function-declaration")
+ cflags=netgrent_cflags)
# Look for CUPS