build: add cflags from pkg_config results to header/function tests
[nivanova/samba-autobuild/.git] / source4 / lib / tls / wscript
index 66cc762b988febb48cbc94374fec2069486da2b3..4fbbd0deaa02168ffba607a67d552d92e76b9a15 100644 (file)
@@ -15,17 +15,21 @@ def configure(conf):
     if 'HAVE_GNUTLS' in conf.env and not Options.options.disable_gnutls:
         conf.DEFINE('ENABLE_GNUTLS', 1)
 
-    conf.CHECK_FUNCS_IN('gnutls_global_init', 'gnutls', headers='gnutls/gnutls.h')
+    conf.CHECK_FUNCS_IN('gnutls_global_init', 'gnutls',
+                        headers='gnutls/gnutls.h')
 
     conf.CHECK_VARIABLE('gnutls_x509_crt_set_version',
                         headers='gnutls/gnutls.h gnutls/x509.h',
-                        define='HAVE_GNUTLS_X509_CRT_SET_VERSION')
+                        define='HAVE_GNUTLS_X509_CRT_SET_VERSION',
+                        lib='gnutls')
     conf.CHECK_VARIABLE('gnutls_x509_crt_set_subject_key_id',
                         headers='gnutls/gnutls.h gnutls/x509.h',
-                        define='HAVE_GNUTLS_X509_CRT_SET_SUBJECT_KEY_ID')
+                        define='HAVE_GNUTLS_X509_CRT_SET_SUBJECT_KEY_ID',
+                        lib='gnutls')
 
     # check for gnutls_datum types
-    conf.CHECK_TYPES('gnutls_datum gnutls_datum_t', headers='gnutls/gnutls.h')
+    conf.CHECK_TYPES('gnutls_datum gnutls_datum_t',
+                     headers='gnutls/gnutls.h', lib='gnutls')
 
     conf.CHECK_FUNCS_IN('gcry_control', 'gcrypt', headers='gcrypt.h')
     conf.CHECK_FUNCS_IN('gpg_err_code_from_errno', 'gpg-error')