#!/usr/bin/env ascript
import(module_builder) {build, extraDir}
build('postgresql.azd', ['Module_postgresql.cpp']) {
	postgresqlDir = path.join(extraDir, 'postgresql-8.4.4-1-windows-binaries')
	msc = bcc = %{
		`incDirs => [path.join(postgresqlDir, 'pgsql', 'include')]
		`dlls => [path.join(postgresqlDir, 'pgsql', 'lib', 'libpq.dll')]
	}
	gnuc = %{
		`incDirs => ['/usr/include/postgresql', '/usr/local/include/postgresql']
		`libs => ['pq']
		`hint => '''\
It seems necessary libraries have not been installed on your system.
See the following steps to resolve this problem.
- Install Debian package:
  $ sudo apt-get install libpq-dev
'''
	}
}
