summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-19 20:06:33 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:55 +1000
commit5aacacea678b104b9ead9e4ea642c583791282b7 (patch)
tree87567703746978709fa527bfbc855dd2baf1f713
parent8ea03369bcd8ebb351e280222184f6d583640f46 (diff)
downloadsamba-5aacacea678b104b9ead9e4ea642c583791282b7.tar.gz
build: check for pam headers
-rw-r--r--nsswitch/wscript_configure5
-rw-r--r--source4/wscript1
2 files changed, 6 insertions, 0 deletions
diff --git a/nsswitch/wscript_configure b/nsswitch/wscript_configure
new file mode 100644
index 00000000000..93ab5b107a2
--- /dev/null
+++ b/nsswitch/wscript_configure
@@ -0,0 +1,5 @@
+conf.CHECK_HEADERS('nss.h nss_common.h ns_api.h')
+
+conf.CHECK_HEADERS('security/pam_appl.h')
+conf.CHECK_FUNCS_IN('pam_start', 'pam')
+conf.CHECK_HEADERS('security/pam_modules.h pam/pam_modules.h')
diff --git a/source4/wscript b/source4/wscript
index 659876793fe..06206435f21 100644
--- a/source4/wscript
+++ b/source4/wscript
@@ -59,6 +59,7 @@ def configure(conf):
conf.sub_config('../lib/util/charset')
conf.sub_config('auth')
conf.sub_config('../lib/nss_wrapper')
+ conf.sub_config('../nsswitch')
conf.sub_config('../lib/socket_wrapper')
conf.sub_config('../lib/uid_wrapper')
conf.sub_config('../lib/popt')