2011/6/14 Eric Blake <eblake@xxxxxxxxxx>: > On 06/14/2011 10:20 AM, Sergio Belkin wrote: > > Did you mean to drop the list in your reply? It's better to keep the > conversation on list, so others may learn of your answer. Shame on me, you're right. > >>> AC_SEARCH_LIBS([ns_initparse], [resolv], [], >>> [AC_DEFINE([MISSING_NS_INITPARSE], [1], [Define to 1 if ns_initparse >>> is not available in any library])]) >>> >>> Then in your C code: >>> >>> #if MISSING_NS_INITPARSE >>> // implement your static ns_initparse instead >>> #endif >>> >> >> Hmmm. It was my fault. I didn't explain myself well. I meant: I'd >> want to *use* existing static resolv on the system as a fallback (if >> shared lib lacks of ns_initparse), Can I do it with AC_SEARCH_LIBS? > > My answer is unchanged - you can use the action-if-not-found portion of > AC_SEARCH_LIBS to do whatever else you want to do when ns_initparse is > not found, including setting up AC_DEFINE or other modifications that > will let your code use the static resolv as the fallback. > > -- > Eric Blake eblake@xxxxxxxxxx +1-801-349-2682 > Libvirt virtualization library http://libvirt.org > > I thought that there was a way to do it appending static library to LIBS via AC_SEARCH_LIBS... -- -- Sergio Belkin http://www.sergiobelkin.com Watch More TV http://sebelk.blogspot.com LPIC-2 Certified - http://www.lpi.org _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx https://lists.gnu.org/mailman/listinfo/autoconf