automake
[Top][All Lists]
Advanced

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

Re: Primaries in Conditionals


From: Tim Van Holder
Subject: Re: Primaries in Conditionals
Date: 22 Feb 2002 08:23:35 +0100

On Fri, 2002-02-22 at 03:23, Fausto Sanchez wrote:
> Hi,
> 
> Can anyone tell me how to suppress these warning from automake. I just 
> upgraded
> to automake 1.5, and now these warnings are being displayed when running 
> automake.
> 
> diag_LDADD = @LDFLAGS@ -L../common_objects -ldiagcommonobj -ldiageng -ltcl8.3
> 
> #
> # Depending on the platform we will include either the linecard or 
> supervisor objects.
> #
> if HWPLATFORM_LC1
>    diag_LDADD += -L../lcp_objects -ldiaglcpobj
> endif
> 
> if HWPLATFORM_SUP1
>    diag_LDADD += -L../smp_objects -ldiagsmpobj
> endif
> 
> 
> What would be the correct way to doing something like the above without
> getting automake to complain.

Something like this should help:

if HWPLATFORM_LC1
  MYVARIABLE = -L../lcp_objects -ldiaglcpobj
endif

if HWPLATFORM_SUP1
  MYVARIABLE = -L../smp_objects -ldiagsmpobj
endif

diag_LDADD += $(MYVARIABLE)

Of course, you could probably deduce the correct flags in configure
(unless it's not a configure-time option) and simply AC_SUBST the
flags.  Then it would just be:

diag_LDADD = @LDFLAGS@ ... -ltcl8.3 @MYVARIABLE@





reply via email to

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