On Thursday 2009-04-02 23:45, Gerald I. Evenden wrote: >After trying so many options related to libraries I am exhausted. > >I have a simple program that needs to link with a shared library installed >in /usr/local/lib. > >When using my own simple Makefile and simply adding "-lproject -lm" everything >works fine (libproject is the shared library). > >But regardless of how many tests, etc., I do in the .ac and .am files I cannot >get the final Makefile to link with "project."
Perhaps you need ./configure LDFLAGS="-L/usr/local/lib"? I remember having to do that on MSYS and some BSDs (along with -I/usr/local/include in CFLAGS).