diff options
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'): |