Call configure with --with-pgconfig option, for the benefit of postgis