diff options
author | Kai Blin <kai@samba.org> | 2010-04-05 14:41:23 +0200 |
---|---|---|
committer | Kai Blin <kai@samba.org> | 2010-05-20 22:16:13 +0200 |
commit | 2b5f82f259e9f6529567de54a347737587f0b2d6 (patch) | |
tree | 9a348193dc5d4fd19b459f9429f8d3c0eb078fb0 /source3/wscript | |
parent | d3c9d299e8d9bac8ab5504e61c99b4ad4a46afb0 (diff) | |
download | samba-2b5f82f259e9f6529567de54a347737587f0b2d6.tar.gz samba-2b5f82f259e9f6529567de54a347737587f0b2d6.tar.bz2 samba-2b5f82f259e9f6529567de54a347737587f0b2d6.zip |
s3-waf: Move cups, ldap and krb5 checks to the end of the wscript file
Diffstat (limited to 'source3/wscript')
-rw-r--r-- | source3/wscript | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/source3/wscript b/source3/wscript index 3b0e36c1f5..c9589bcffc 100644 --- a/source3/wscript +++ b/source3/wscript @@ -174,31 +174,6 @@ if (0) { }''', 'HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS', msg="Checking if the compiler will optimize out functions") - # Look for CUPS - conf.find_program('cups-config', var='CUPS_CONFIG') - if conf.env.CUPS_CONFIG: - conf.check_cfg(path="cups-config", args="--cflags --ldflags --libs", package="", uselib_store="CUPS") - conf.CHECK_HEADERS('cups/cups.h cups/language.h', lib='CUPS') - - # Check for LDAP - conf.CHECK_HEADERS('ldap.h lber.h') - conf.CHECK_TYPE('ber_tag_t', 'unsigned int', headers='ldap.h lber.h') - - # Check for kerberos - conf.find_program('krb5-config', var='KRB5_CONFIG') - if conf.env.KRB5_CONFIG: - conf.check_cfg(path="krb5-config", args="--cflags --libs", - package="gssapi", uselib_store="KRB5") - conf.CHECK_HEADERS('krb5.h krb5/locate_plugin.h', lib='KRB5') - conf.CHECK_HEADERS('gssapi.h gssapi/gssapi_generic.h gssapi/gssapi.h com_err.h', lib='KRB5') - - # Check for KRB5_DEPRECATED handling - conf.CHECK_CODE('''#define KRB5_DEPRECATED 1 -#include <krb5.h>''', - 'HAVE_KRB5_DEPRECATED_WITH_IDENTIFIER', addmain=False, - link=False, - msg="for KRB5_DEPRECATED define taking an identifier") - conf.CHECK_FUNCS(''' _acl __acl add_proplist_entry atexit attr_getf attr_list attr_listf attropen attr_remove attr_removef attr_set attr_setf backtrace_symbols @@ -297,5 +272,30 @@ yp_get_default_domain conf.DEFINE('WITH_WINBIND', '1') conf.DEFINE('WITH_ADS', '1') + # Look for CUPS + conf.find_program('cups-config', var='CUPS_CONFIG') + if conf.env.CUPS_CONFIG: + conf.check_cfg(path="cups-config", args="--cflags --ldflags --libs", package="", uselib_store="CUPS") + conf.CHECK_HEADERS('cups/cups.h cups/language.h', lib='CUPS') + + # Check for LDAP + conf.CHECK_HEADERS('ldap.h lber.h') + conf.CHECK_TYPE('ber_tag_t', 'unsigned int', headers='ldap.h lber.h') + + # Check for kerberos + conf.find_program('krb5-config', var='KRB5_CONFIG') + if conf.env.KRB5_CONFIG: + conf.check_cfg(path="krb5-config", args="--cflags --libs", + package="gssapi", uselib_store="KRB5") + conf.CHECK_HEADERS('krb5.h krb5/locate_plugin.h', lib='KRB5') + conf.CHECK_HEADERS('gssapi.h gssapi/gssapi_generic.h gssapi/gssapi.h com_err.h', lib='KRB5') + + # Check for KRB5_DEPRECATED handling + conf.CHECK_CODE('''#define KRB5_DEPRECATED 1 +#include <krb5.h>''', + 'HAVE_KRB5_DEPRECATED_WITH_IDENTIFIER', addmain=False, + link=False, + msg="for KRB5_DEPRECATED define taking an identifier") + conf.SAMBA_CONFIG_H('include/config.h') #define static_init_idmap { idmap_tdb_init(); idmap_passdb_init(); idmap_nss_init();} |