From: Ralf Wildenhues Date: Mon, 30 Nov 2009 20:37:00 +0000 (+0100) Subject: manual: AC_SEARCH_LIBS also prepends to LIBS. X-Git-Tag: v2.66~114 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8edd55bbea8a59f7b0c4a31ae8403e4bb44bfc6b;p=thirdparty%2Fautoconf.git manual: AC_SEARCH_LIBS also prepends to LIBS. * doc/autoconf.texi (Libraries): Document that AC_SEARCH_LIBS prepends to LIBS, just like AC_CHECK_LIB. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index 572d6451..0ee8a521 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-11-30 Ralf Wildenhues + + manual: AC_SEARCH_LIBS also prepends to LIBS. + * doc/autoconf.texi (Libraries): Document that AC_SEARCH_LIBS + prepends to LIBS, just like AC_CHECK_LIB. + 2009-11-27 Paolo Bonzini Bump m4.m4 serial number. diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 01778310..bf6b7feb 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -4428,7 +4428,7 @@ available. This equates to calling @samp{AC_LINK_IFELSE([AC_LANG_CALL([], [@var{function}])])} first with no libraries, then for each library listed in @var{search-libs}. -Add @option{-l@var{library}} to @code{LIBS} for the first library found +Prepend @option{-l@var{library}} to @code{LIBS} for the first library found to contain @var{function}, and run @var{action-if-found}. If the function is not found, run @var{action-if-not-found}. @@ -4443,7 +4443,7 @@ The result of this test is cached in the @code{ac_cv_search_@var{function}} variable as @samp{none required} if @var{function} is already available, as @samp{no} if no library containing @var{function} was found, otherwise as the -@option{-l@var{library}} option that needs to be added to @code{LIBS}. +@option{-l@var{library}} option that needs to be prepended to @code{LIBS}. @end defmac