I\'m having a terribly difficult time getting the command \"pg_connect()\" to work properly on my Mac. I\'m currently writing a PHP script (to be executed from console) to r
PostgreSQL by default is installed in a unusual place on MAC OS X:
/Library/PostgreSQL/9.3
Given the location above you can type this:
./configure --with-pgsql=/Library/PostgreSQL/9.3