[scons] fix warnings with deprecated ldap api

This commit is contained in:
Stefan Bühler 2017-10-24 16:16:36 +02:00 committed by Glenn Strauss
parent 66e0cd16b2
commit f78749d3c6
1 changed files with 1 additions and 0 deletions

View File

@ -329,6 +329,7 @@ if 1:
fail("Couldn't find ldap")
if not autoconf.CheckLibWithHeader('lber', 'lber.h', 'C', autoadd = 0):
fail("Couldn't find lber")
autoconf.env.Append(CPPFLAGS = [ '-DLDAP_DEPRECATED=1' ])
autoconf.env.Append(CPPFLAGS = [ '-DHAVE_LDAP_H', '-DHAVE_LIBLDAP' ], LIBLDAP = 'ldap')
autoconf.env.Append(CPPFLAGS = [ '-DHAVE_LBER_H', '-DHAVE_LIBLBER' ], LIBLBER = 'lber')