summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct9
1 files changed, 9 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 60416c8d..a3b2e6c9 100644
--- a/SConstruct
+++ b/SConstruct
@@ -330,6 +330,7 @@ if 1:
LIBLUA = '',
LIBMEMCACHED = '',
LIBMYSQL = '',
+ LIBPAM = '',
LIBPCRE = '',
LIBPGSQL = '',
LIBSASL = '',
@@ -580,6 +581,14 @@ if 1:
LIBCRYPTO = 'crypto',
)
+ if env['with_pam']:
+ if not autoconf.CheckLibWithHeader('pam', 'security/pam_appl.h', 'C'):
+ fail("Couldn't find pam")
+ autoconf.env.Append(
+ CPPFLAGS = [ '-DHAVE_PAM' ],
+ LIBPAM = 'pam',
+ )
+
if env['with_pcre']:
pcre_config = autoconf.checkProgram('pcre', 'pcre-config')
if not autoconf.CheckParseConfigForLib('LIBPCRE', pcre_config + ' --cflags --libs'):