autoconf
[Top][All Lists]
Advanced

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

Re: detecting required libraries in AC_CHECK_LIB


From: Jeff Dubrule
Subject: Re: detecting required libraries in AC_CHECK_LIB
Date: Mon, 4 Jun 2001 12:10:16 -0400
User-agent: Mutt/1.2.5i

On Mon, Jun 04, 2001 at 05:49:41PM +0200, Peter Eisentraut wrote:
> 
> Unfortunately it's hardly possible to automatically detect dependencies
> that have not been declared anywhere by a means other than trying out all
> possible candidates.

While we're on the subject, what about this situation:
My program needs the cook_pie() function, which, depending on the
system, requires either -lfood or both -lpie and -lkitchen.

AC_CHECK_LIB(food, cook_pie) works for the first case,
AC_CHECK_LIB(pie, cook_pie,,,-lkitchen) works for the second case, but
-lkitchen does not get included in LIBS.

How should I be doing checks like these?

-jeff



reply via email to

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