autoconf-patches
[Top][All Lists]
Advanced

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

traps of AC_CHECK_LIB for standard functions


From: Stepan Kasal
Subject: traps of AC_CHECK_LIB for standard functions
Date: Thu, 9 Dec 2004 10:10:15 +0100
User-agent: Mutt/1.4.1i

Hello,

On Mon, Dec 06, 2004 at 07:37:59PM -0800, Noah Misch wrote:
> [...]  If you prefer definitions from a standard library where
> available, use @code{AC_SEARCH_LIBS} instead of
> @code{AC_CHECK_LIB}.  [...]   Rewriting a test like
> @samp{AC_CHECK_LIB(nsl, gethostbyname)} as
> @samp{AC_SEARCH_LIBS(gethostbyname, nsl)} avoids these problems.

well, I have a somewhat radical idea:
when does one really need the functionality of AC_CHECK_LIB?
Shouldn't we change the interface?
Perhaps we could rename it to AC_ADD_LIB or similar.

Calling AC_CHECK_LIB would issue a warning in future versions.

Opinions?

Stepan




reply via email to

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