[Top][All Lists]

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

Re: static library as fallback

From: Sergio Belkin
Subject: Re: static library as fallback
Date: Tue, 14 Jun 2011 18:02:41 -0300

2011/6/14 Eric Blake <address@hidden>:
> 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:
>>> // 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   address@hidden    +1-801-349-2682
> Libvirt virtualization library

I thought that there was a way to do it appending static library to

Sergio Belkin
Watch More TV
LPIC-2 Certified -

reply via email to

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