build: fixed the build without sasl libraries
[nivanova/samba-autobuild/.git] / source4 / auth / wscript_configure
index 842870cca34b8442aa380aef39db523c25492e81..7a932697c6ca0c74e103331844d6c067efee151b 100644 (file)
@@ -1,6 +1,6 @@
 conf.CHECK_HEADERS('security/pam_appl.h')
 conf.CHECK_FUNCS_IN('pam_start', 'pam')
 
-conf.CHECK_HEADERS('sasl/sasl.h')
-conf.CHECK_FUNCS_IN('sasl_client_init', 'sasl2')
-
+if (conf.CHECK_HEADERS('sasl/sasl.h') and
+    conf.CHECK_FUNCS_IN('sasl_client_init', 'sasl2')):
+    conf.DEFINE('HAVE_SASL', 1)