Joe Piscitella <Joe(dot)Piscitella(at)knowledgenet(dot)com> writes:
> checking test program... failed
> configure: error:
> *** Could not execute a simple test program. This may be a problem
> *** related to locating shared libraries. Check the file 'config.log'
> *** for the exact reason.
The usual cause of this is that gcc is able to find and link shared
libraries that are not found at runtime by the dynamic loader. You may
need to set LD_LIBRARY_PATH. See
http://www.ca.postgresql.org/docs/faq-solaris.html
item 3
regards, tom lane