Re: [PATCH] configure: use AC_SEARCH_LIBS instead of AC_CHECK_LIB
- From
- Brandon Casey <brandon.casey.ctr@nrlssc.navy.mil>
- Date
- Jul 21, 2009, 15:12 UTC
- Message-ID
- <ROnxPc_FlcxpQoCOZcOfoalyiRYK1R7qCAowbfiQsNLLI8qrrtJEUw@cipher.nrlssc.navy.mil>
- In-Reply-To
- <6WnEB0at_uuAu9kicWjrHLsBbTv58WtCNOANkKzk-SqTgqjuWyh8WA@cipher.nrlssc.navy.mil>
Brandon Casey wrote:
Show 5 quoted lines
> A question about AC_SEARCH_LIBS: > > With AC_SEARCH_LIBS, which of [action-if-found] or [action-if-not-found] > is executed if the function is found in the standard c library i.e. "calling > `AC_LINK_IFELSE([AC_LANG_CALL([], [function])])' first with no libraries"?
btw, the "`AC_LINK_IFELSE(..." line is from the autoconf documentation. It is the first thing that AC_SEARCH_LIBS does. It tries to link without any of the specified libraries first, then it iterates trying to link using each specified library, stopping when it is successful.
If you didn't recognize that that line was from the documentation, it may be confusing.
-brandon