diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2016-10-17 12:14:55 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2016-10-17 14:15:50 -0400 |
commit | c073a31f6921496ef194ba3a68a11ee03c07554d (patch) | |
tree | a8ed48be6cbe52296efbad4d25a25c5c23766927 /SConstruct | |
parent | 4184c382ec28fdd060754e23e89045a1add28d76 (diff) | |
download | lighttpd-git-c073a31f6921496ef194ba3a68a11ee03c07554d.tar.gz |
[autobuild] omit module stubs when missing deps
do not build any module (containing module stubs) when the dependencies
for a given module are not present.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -123,6 +123,7 @@ vars.AddVariables( BoolVariable('build_fullstatic', 'enable fullstatic build', 'no'), BoolVariable('with_sqlite3', 'enable sqlite3 support', 'no'), BoolVariable('with_memcached', 'enable memcached support', 'no'), + BoolVariable('with_gdbm', 'enable gdbm support', 'no'), BoolVariable('with_fam', 'enable FAM/gamin support', 'no'), BoolVariable('with_openssl', 'enable openssl support', 'no'), BoolVariable('with_gzip', 'enable gzip compression', 'no'), @@ -228,7 +229,7 @@ if 1: autoconf.env.Append( LIBSQLITE3 = '', LIBXML2 = '', LIBMYSQL = '', LIBZ = '', LIBBZ2 = '', LIBCRYPT = '', LIBMEMCACHED = '', LIBFCGI = '', LIBPCRE = '', LIBLDAP = '', LIBLBER = '', LIBLUA = '', LIBDL = '', LIBUUID = '', - LIBKRB5 = '', LIBGSSAPI_KRB5 = '') + LIBKRB5 = '', LIBGSSAPI_KRB5 = '', LIBGDBM = '') if env['with_fam']: if autoconf.CheckLibWithHeader('fam', 'fam.h', 'C'): @@ -278,6 +279,10 @@ if 1: if autoconf.CheckLibWithHeader('memcached', 'libmemcached/memcached.h', 'C'): autoconf.env.Append(CPPFLAGS = [ '-DUSE_MEMCACHED' ], LIBMEMCACHED = 'memcached') + if env['with_gdbm']: + if autoconf.CheckLibWithHeader('gdbm', 'gdbm.h', 'C'): + autoconf.env.Append(CPPFLAGS = [ '-DHAVE_GDBM_H', '-DHAVE_GDBM' ], LIBGDBM = 'gdbm') + if env['with_sqlite3']: if autoconf.CheckLibWithHeader('sqlite3', 'sqlite3.h', 'C'): autoconf.env.Append(CPPFLAGS = [ '-DHAVE_SQLITE3_H', '-DHAVE_LIBSQLITE3' ], LIBSQLITE3 = 'sqlite3') |