[scons] fix dbi
This commit is contained in:
parent
2eb7287a98
commit
a4f7845dbf
|
@ -314,6 +314,10 @@ if 1:
|
|||
if autoconf.CheckLibWithHeader('GeoIP', 'GeoIP.h', 'C', autoadd = 0):
|
||||
autoconf.env.Append(CPPFLAGS = [ '-DHAVE_GEOIP' ], LIBGEOIP = 'GeoIP')
|
||||
|
||||
if env['with_dbi']:
|
||||
if autoconf.CheckLibWithHeader('dbi', 'dbi/dbi.h', 'C', autoadd = 0):
|
||||
env.Append(CPPFLAGS = [ '-DHAVE_DBI_H', '-DHAVE_LIBDBI' ], LIBDBI = 'dbi')
|
||||
|
||||
if autoconf.CheckLibWithHeader('fcgi', 'fastcgi.h', 'C', autoadd = 0):
|
||||
autoconf.env.Append(LIBFCGI = 'fcgi')
|
||||
|
||||
|
@ -391,10 +395,6 @@ if env['with_pgsql']:
|
|||
env.Append(CPPFLAGS = [ '-DHAVE_PGSQL_H', '-DHAVE_LIBPGSQL' ], LIBPGSQL = 'pq')
|
||||
env['LIBS'] = oldlib
|
||||
|
||||
if env['with_dbi']:
|
||||
if autoconf.CheckLibWithHeader('dbi', 'dbi/dbi.h', 'C'):
|
||||
env.Append(CPPFLAGS = [ '-DHAVE_DBI_H', '-DHAVE_LIBDBI' ], LIBDBI = 'dbi')
|
||||
|
||||
if re.compile("cygwin|mingw|midipix").search(env['PLATFORM']):
|
||||
env.Append(COMMON_LIB = 'bin')
|
||||
elif re.compile("darwin|aix").search(env['PLATFORM']):
|
||||
|
|
Loading…
Reference in New Issue