/usr/local/bin/pg_config
The pg_config utility prints configuration parameters of the currently installed version of PostgreSQL.