[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where does AC_CHECK_LIB look?

From: Steven G. Johnson
Subject: Re: Where does AC_CHECK_LIB look?
Date: Sat, 28 Dec 2002 20:36:10 -0500
User-agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.0.0) Gecko/20020614 Debian/1.0.0-3

Paul Eggert wrote:
>>From: Chris Albertson <address@hidden>

  1) Where does AC_CHECK_LIB look when it checks for libraries?
  2) How can I get it to look in a few more places?

Unfortunately this is currently a system-dependent thing.
What I tend to do is to set the LD_LIBRARY_PATH and LD_RUN_PATH
environment variables before invoking "configure", but this
is admittedly unsatisfactory.

I thought that the recommended thing was to ./configure LDFLAGS="-L<somedir>" ? (That's what configure --help says.) This way, the -L will get substituted into the Makefile, instead of depending upon the environment (and it is also fairly portable among compilers).

(Of course, if the libraries are shared, you still have to tell the runtime linker the path if you want to run the program after compiling it, and that may require a system-dependent environment variable.)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]