Don't add HAVE_LDAP_H HAVE_WINLDAP_H to pg_config.h
They're not referenced, so we don't need them in in pg_config.h. Reviewed-by: Peter Eisentraut <peter.eisentraut@enterprisedb.com> Discussion: http://postgr.es/m/e0c44fb2-8b66-a4b9-b274-7ed3a1a0ab74@enterprisedb.com
This commit is contained in:
parent
6566133c5f
commit
4ab53b647a
16
configure
vendored
16
configure
vendored
@ -14197,19 +14197,13 @@ fi
|
||||
|
||||
if test "$with_ldap" = yes ; then
|
||||
if test "$PORTNAME" != "win32"; then
|
||||
for ac_header in ldap.h
|
||||
do :
|
||||
ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
|
||||
ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
|
||||
if test "x$ac_cv_header_ldap_h" = xyes; then :
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_LDAP_H 1
|
||||
_ACEOF
|
||||
|
||||
else
|
||||
as_fn_error $? "header file <ldap.h> is required for LDAP" "$LINENO" 5
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible LDAP implementation" >&5
|
||||
$as_echo_n "checking for compatible LDAP implementation... " >&6; }
|
||||
@ -14253,22 +14247,16 @@ $as_echo "$as_me: WARNING:
|
||||
*** also uses LDAP will crash on exit." >&2;}
|
||||
fi
|
||||
else
|
||||
for ac_header in winldap.h
|
||||
do :
|
||||
ac_fn_c_check_header_compile "$LINENO" "winldap.h" "ac_cv_header_winldap_h" "$ac_includes_default
|
||||
ac_fn_c_check_header_compile "$LINENO" "winldap.h" "ac_cv_header_winldap_h" "$ac_includes_default
|
||||
#include <windows.h>
|
||||
|
||||
"
|
||||
if test "x$ac_cv_header_winldap_h" = xyes; then :
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_WINLDAP_H 1
|
||||
_ACEOF
|
||||
|
||||
else
|
||||
as_fn_error $? "header file <winldap.h> is required for LDAP" "$LINENO" 5
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
fi
|
||||
fi
|
||||
|
12
configure.ac
12
configure.ac
@ -1547,15 +1547,15 @@ fi
|
||||
|
||||
if test "$with_ldap" = yes ; then
|
||||
if test "$PORTNAME" != "win32"; then
|
||||
AC_CHECK_HEADERS(ldap.h, [],
|
||||
[AC_MSG_ERROR([header file <ldap.h> is required for LDAP])])
|
||||
AC_CHECK_HEADER(ldap.h, [],
|
||||
[AC_MSG_ERROR([header file <ldap.h> is required for LDAP])])
|
||||
PGAC_LDAP_SAFE
|
||||
else
|
||||
AC_CHECK_HEADERS(winldap.h, [],
|
||||
[AC_MSG_ERROR([header file <winldap.h> is required for LDAP])],
|
||||
[AC_INCLUDES_DEFAULT
|
||||
AC_CHECK_HEADER(winldap.h, [],
|
||||
[AC_MSG_ERROR([header file <winldap.h> is required for LDAP])],
|
||||
[AC_INCLUDES_DEFAULT
|
||||
#include <windows.h>
|
||||
])
|
||||
])
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -253,9 +253,6 @@
|
||||
/* Define to 1 if you have the <langinfo.h> header file. */
|
||||
#undef HAVE_LANGINFO_H
|
||||
|
||||
/* Define to 1 if you have the <ldap.h> header file. */
|
||||
#undef HAVE_LDAP_H
|
||||
|
||||
/* Define to 1 if you have the `ldap_initialize' function. */
|
||||
#undef HAVE_LDAP_INITIALIZE
|
||||
|
||||
@ -541,9 +538,6 @@
|
||||
/* Define to 1 if you have the `wcstombs_l' function. */
|
||||
#undef HAVE_WCSTOMBS_L
|
||||
|
||||
/* Define to 1 if you have the <winldap.h> header file. */
|
||||
#undef HAVE_WINLDAP_H
|
||||
|
||||
/* Define to 1 if you have the `X509_get_signature_nid' function. */
|
||||
#undef HAVE_X509_GET_SIGNATURE_NID
|
||||
|
||||
|
@ -281,7 +281,6 @@ sub GenerateFiles
|
||||
HAVE_I_CONSTRAINT__BUILTIN_CONSTANT_P => undef,
|
||||
HAVE_KQUEUE => undef,
|
||||
HAVE_LANGINFO_H => undef,
|
||||
HAVE_LDAP_H => undef,
|
||||
HAVE_LDAP_INITIALIZE => undef,
|
||||
HAVE_LIBCRYPTO => undef,
|
||||
HAVE_LIBLDAP => undef,
|
||||
@ -374,7 +373,6 @@ sub GenerateFiles
|
||||
HAVE_UUID_OSSP => undef,
|
||||
HAVE_UUID_H => undef,
|
||||
HAVE_UUID_UUID_H => undef,
|
||||
HAVE_WINLDAP_H => undef,
|
||||
HAVE_WCSTOMBS_L => 1,
|
||||
HAVE_VISIBILITY_ATTRIBUTE => undef,
|
||||
HAVE_X509_GET_SIGNATURE_NID => 1,
|
||||
|
Loading…
x
Reference in New Issue
Block a user