this is pg_config output
BINDIR = /Library/PostgreSQL/9.4/bin
DOCDIR = /Library/PostgreSQL/9.4/doc/postgresql
HTMLDIR = /Library/PostgreSQL/9.4/doc/postgresql
INCLUDEDIR = /Library/PostgreSQL/9.4/include
PKGINCLUDEDIR = /Library/PostgreSQL/9.4/include/postgresql
INCLUDEDIR-SERVER = /Library/PostgreSQL/9.4/include/postgresql/server
LIBDIR = /Library/PostgreSQL/9.4/lib
PKGLIBDIR = /Library/PostgreSQL/9.4/lib/postgresql
LOCALEDIR = /Library/PostgreSQL/9.4/share/locale
MANDIR = /Library/PostgreSQL/9.4/share/man
SHAREDIR = /Library/PostgreSQL/9.4/share/postgresql
SYSCONFDIR = /Library/PostgreSQL/9.4/etc/postgresql
PGXS = /Library/PostgreSQL/9.4/lib/postgresql/pgxs/src/makefiles/
pgxs.mkCONFIGURE = '--prefix=/mnt/hgfs/pginstaller.pune/server/staging/osx' '--with-ldap' '--with-openssl' '--with-perl' '--with-python' '--with-tcl' '--with-bonjour' '--with-pam' '--enable-thread-safety' '--with-libxml' '--with-uuid=e2fs' '--with-includes=/opt/local/Current/include/libxml2:/opt/local/Current/include:/opt/local/Current/include/security' '--docdir=/mnt/hgfs/pginstaller.pune/server/staging/osx/doc/postgresql' '--with-libxslt' '--with-libedit-preferred' '--with-gssapi' 'CFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.7 -arch i386 -arch x86_64' 'LDFLAGS=-L/opt/local/Current/lib'
CC = gcc
CPPFLAGS = -I/opt/local/20140401/include/libxml2 -I/opt/local/Current/include/libxml2 -I/opt/local/Current/include
CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.7 -arch i386 -arch x86_64
CFLAGS_SL =
LDFLAGS = -L../../../src/common -L/opt/local/Current/lib -L/opt/local/20140401/lib -Wl,-dead_strip_dylibs
LDFLAGS_EX =
LDFLAGS_SL =
LIBS = -lpgcommon -lpgport -lxslt -lxml2 -lpam -lssl -lcrypto -lgssapi_krb5 -lz -ledit -lm
VERSION = PostgreSQL 9.4.5