diff options
author | Thomas Reim <reimth@gmail.com> | 2022-08-16 12:07:59 +0800 |
---|---|---|
committer | Ian Kent <raven@themaw.net> | 2022-08-26 16:32:55 +0800 |
commit | 69fda4f090e35bec87754932a941f574a1aad4eb (patch) | |
tree | 6ab257063586d210b8182822f64ff524195cac2f | |
parent | d692f7addabc539dbc00c3bff8538afea983fc52 (diff) | |
download | autofs-69fda4f090e35bec87754932a941f574a1aad4eb.tar.gz |
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 <reimth@gmail.com>
Signed-off-by: Ian Kent <raven@themaw.net>
-rw-r--r-- | CHANGELOG | 1 | ||||
-rw-r--r-- | aclocal.m4 | 6 |
2 files changed, 7 insertions, 0 deletions
@@ -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(). @@ -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 <ldap.h> ], @@ -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 <ldap.h> ], @@ -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 -------------------------------------------------------------------------- |