[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question about AC_SEARCH_LIBS ([other-libraries] argument)
From: |
Ralf Wildenhues |
Subject: |
Re: Question about AC_SEARCH_LIBS ([other-libraries] argument) |
Date: |
Tue, 23 Oct 2007 06:56:49 +0200 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Hello Daniel
* Daniel Leidert wrote on Tue, Oct 23, 2007 at 06:28:16AM CEST:
>
> The AC_SEARCH_LIBS accepts an argument to link with additional libraries
> given in that argument. Reading the code in autoconf/libs.m4 makes me
> think, that only the library, that contains the function I'm looking
> for, is added to LIBS if the test succeeeds. But even if
> [other-libraries] are given and necessary, they are not added. So I have
> to manually add them to LIBS in [action-if-found]. Is that right?
Yes, that is right. If those additional libraries also need individual
tests done for them, then do them beforehand, and add them to LIBS after
their tests. IOW: in that case you would only need the OTHER-LIBRARIES
argument to satisfy some link ordering constraint if at all.
Cheers,
Ralf