autofs-5.1.8 - configure: LDAP function checks ignore implicit declarations From: Thomas Reim Wrong CFLAGS: gcc handles implicit function declaration as warning with current flag settings. Missing functions in libldap will not be identified. Signed-off-by: Thomas Reim Signed-off-by: Ian Kent --- CHANGELOG | 1 + aclocal.m4 | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 52da6256..02f059d0 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -32,6 +32,7 @@ - restore gcc flags after autoconf Kerberos 5 check. - prepare for OpenLDAP SASL binding. - let OpenLDAP handle SASL binding. +- configure: LDAP function checks ignore implicit declarations. 19/10/2021 autofs-5.1.8 - add xdr_exports(). diff --git a/aclocal.m4 b/aclocal.m4 index 91b22dae..9fc20bf1 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -379,6 +379,8 @@ AC_DEFUN([AF_CHECK_FUNC_LDAP_CREATE_PAGE_CONTROL], # save current libs af_check_ldap_create_page_control_save_libs="$LIBS" LIBS="$LIBS -lldap" +af_check_ldap_create_page_control_save_cflags="$CFLAGS" +CFLAGS="$CFLAGS -Werror=implicit-function-declaration" AC_TRY_LINK( [ #include ], @@ -399,6 +401,7 @@ fi # restore libs LIBS="$af_check_ldap_create_page_control_save_libs" +CFLAGS="$af_check_ldap_create_page_control_save_cflags" ]) dnl -------------------------------------------------------------------------- @@ -412,6 +415,8 @@ AC_DEFUN([AF_CHECK_FUNC_LDAP_PARSE_PAGE_CONTROL], # save current libs af_check_ldap_parse_page_control_save_libs="$LIBS" LIBS="$LIBS -lldap" +af_check_ldap_parse_page_control_save_cflags="$CFLAGS" +CFLAGS="$CFLAGS -Werror=implicit-function-declaration" AC_TRY_LINK( [ #include ], @@ -432,6 +437,7 @@ fi # restore libs LIBS="$af_check_ldap_parse_page_control_save_libs" +CFLAGS="$af_check_ldap_parse_page_control_save_cflags" ]) dnl --------------------------------------------------------------------------