autoconf-patches
[Top][All Lists]
Advanced

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

Re: autoconf/176: AC_CHECK_LIB fails to add OTHER-LIBRARIES to LIBS


From: Akim Demaille
Subject: Re: autoconf/176: AC_CHECK_LIB fails to add OTHER-LIBRARIES to LIBS
Date: 19 May 2001 19:48:02 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley)

| | @@ -2624,10 +2624,14 @@ AC_DEFUN([AC_SEARCH_LIBS],
| |  ac_cv_search_$1=no
| |  AC_TRY_LINK_FUNC([$1], [ac_cv_search_$1="none required"])
| |  test "$ac_cv_search_$1" = no && for ac_lib in $2; do
| | -LIBS="-l$ac_lib $5 $ac_func_search_save_LIBS"
| | +LIBS="-l$ac_lib $ac_func_search_save_LIBS"
| 
| I don't understand this.  It looks like a duplicate with the 
| 
|         |  AC_TRY_LINK_FUNC([$1], [ac_cv_search_$1="none required"])
| 
| part to me.
| 
| 
| |  AC_TRY_LINK_FUNC([$1],
| |  [ac_cv_search_$1="-l$ac_lib"
| |  break])
| | +LIBS="-l$ac_lib $5 $ac_func_search_save_LIBS"
| | +AC_TRY_LINK_FUNC([$1],
| | +[ac_cv_search_$1="-l$ac_lib $5"
| | +break])
| |  done
| |  LIBS=$ac_func_search_save_LIBS])
| |  AS_IF([test "$ac_cv_search_$1" != no],

Sorry, I was confused.  It's no duplicate, but the comments I gave
about AC_CHECK_LIB apply here too: I can understand you don't like the
behavior, but it is what is documented.



reply via email to

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