only build pgsql2sqlite if pg_config is available

This commit is contained in:
Dane Springmeyer 2013-10-01 10:13:54 -07:00
parent e9ad589e13
commit 2e630c5c14

View file

@ -1457,6 +1457,9 @@ if not preconfigured:
env.AppendUnique(LIBS='sqlite3') env.AppendUnique(LIBS='sqlite3')
env.AppendUnique(CPPPATH = os.path.realpath(env['SQLITE_INCLUDES'])) env.AppendUnique(CPPPATH = os.path.realpath(env['SQLITE_INCLUDES']))
env.AppendUnique(LIBPATH = os.path.realpath(env['SQLITE_LIBS'])) env.AppendUnique(LIBPATH = os.path.realpath(env['SQLITE_LIBS']))
if 'pq' not in env['LIBS']:
if not conf.parse_pg_config('PG_CONFIG'):
env['PGSQL2SQLITE'] = False
if not SQLITE_HAS_RTREE: if not SQLITE_HAS_RTREE:
env['SKIPPED_DEPS'].append('pgsql2sqlite_rtree') env['SKIPPED_DEPS'].append('pgsql2sqlite_rtree')
env['PGSQL2SQLITE'] = False env['PGSQL2SQLITE'] = False