On Wed, Nov 08, 2006 at 09:46:39AM -0600, Kevin P. Fleming wrote:
> Luigi Rizzo wrote:
> > well, the thing is, on FreeBSD at least libnsl does not exist so
> > putting it in the loader flags breaks the build.
> > The same may happen for other platforms.
> > i would suggest to remove these extra libs (except for gnutls, but probably 
> > it
> > is already there after detecting gnutls) and let autoconf handle the 
> > dependency.
> 
> autoconf doesn't 'handle dependencies' on its own; it does only what we
> tell it to do.

what i meant was the following (examples from our configure.ac):

if AST_EXT_LIB_SETUP([IKSEMEL], [Iksemel Jabber Library], [iksemel])
says yes, it means that iksemel itself links without extra libs,
otherwise we would have used something like this

AST_EXT_LIB_CHECK([OSPTK], [osptk], [OSPPCryptoDecrypt], [osp/osp.h], [-lcrypto 
-lssl])

i.e. tell it what extra libs we need.
I modified the macro (which is "our code", in acinclude.m4)
to support multiple instances and stop at the
first matching one e.g.

AST_EXT_LIB_CHECK([TONEZONE], [tonezone], [tone_zone_find], 
[zaptel/tonezone.h], [${tonezone_extra}], [140])
# other case, old tonezone (0.80)
AST_EXT_LIB_CHECK([TONEZONE], [tonezone], [tone_zone_find], [zaptel/zaptel.h], 
[${tonezone_extra}], [80])

cheers
luigi
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Reply via email to