use pg_config output, seems the right way