summaryrefslogtreecommitdiff
path: root/source4/auth/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'source4/auth/SConscript')
-rw-r--r--source4/auth/SConscript7
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/auth/SConscript b/source4/auth/SConscript
index 34cff89bb3..557690cfdb 100644
--- a/source4/auth/SConscript
+++ b/source4/auth/SConscript
@@ -7,9 +7,10 @@ hostenv.StaticLibrary('auth_domain.c')
hostenv.StaticLibrary('auth_developer.c')
hostenv.StaticLibrary('auth_unix.c')
-conf = hostenv.Configure()
-have_pam = conf.CheckLibWithHeader('pam', 'security/pam_appl.h', 'c', 'pam_start')
-conf.Finish()
+if hostenv['configure']:
+ conf = hostenv.Configure()
+ have_pam = conf.CheckLibWithHeader('pam', 'security/pam_appl.h', 'c', 'pam_start')
+ conf.Finish()
hostenv.StaticLibrary('pam_errors.c')
hostenv.StaticLibrary('auth',['auth.c','auth_util.c','auth_sam_reply.c','ntlm_check.c'])