From aef31400c4e3781e91f31c5b17c5b948fd7736fb Mon Sep 17 00:00:00 2001 From: Thomas Reim Date: Thu, 28 Jul 2022 10:26:30 +0200 Subject: [PATCH 4/4] autofs-5.1.8 - configure: LDAP function checks ignore implicit declarations 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 --- aclocal.m4 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/aclocal.m4 b/aclocal.m4 index 91b22da..9fc20bf 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 -------------------------------------------------------------------------- -- 2.37.1