diff --git a/SConstruct b/SConstruct index 64b397a44..f5f5a6dbd 100644 --- a/SConstruct +++ b/SConstruct @@ -1457,6 +1457,9 @@ if not preconfigured: env.AppendUnique(LIBS='sqlite3') env.AppendUnique(CPPPATH = os.path.realpath(env['SQLITE_INCLUDES'])) 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: env['SKIPPED_DEPS'].append('pgsql2sqlite_rtree') env['PGSQL2SQLITE'] = False