diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2018-09-18 01:51:45 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2018-09-23 18:01:58 -0400 |
commit | df4812ec2e14e06509f34e6c886c32ad0b31bd18 (patch) | |
tree | f11b674395a3274f51f5bac68b576e7f6e1aa68b /SConstruct | |
parent | 5c2d52b4acd32719691ef19013da2cd6165d0e98 (diff) | |
download | lighttpd-git-df4812ec2e14e06509f34e6c886c32ad0b31bd18.tar.gz |
[mod_authn_pam] mod_auth PAM support (fixes #688)
x-ref:
"auth via pam"
https://redmine.lighttpd.net/issues/688
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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'): |