autoconf
[Top][All Lists]
Advanced

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

Re: Correct way to check for clock_gettime()


From: Bob Friesenhahn
Subject: Re: Correct way to check for clock_gettime()
Date: Fri, 30 Jul 2010 12:51:28 -0500 (CDT)
User-agent: Alpine 2.01 (GSO 1266 2009-07-14)

On Fri, 30 Jul 2010, Thomas Petazzoni wrote:

So the question is, which of CTorrent and libglib is wrong in its
configure.{ac,in} ?

I have not inspected your configure script, but I believe that the right approach is to explicitly append -lrt to the LIBS shell variable as soon as you learn that it is needed. This will cause -lrt to be applied to all subsequent tests. Without appending to LIBS, the configure tests will only test what was explicitly requested by the macro arguments. The configure script should be ordered to test the broadest dependency libraries (the ones that other libraries may also depend on) first before drilling down to test more specific dependencies. A good example of a "broad" dependency library is libz.

Bob
--
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/



reply via email to

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