automake
[Top][All Lists]
Advanced

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

Re: two binaries with different libraries


From: Frederik Fouvry
Subject: Re: two binaries with different libraries
Date: Thu, 2 Sep 2004 11:59:13 +0200 (CEST)

,-- On Tue, 31 Aug 2004 21:56:43 +0200, Andreas Schwab wrote:
| 
| Frederik Fouvry <address@hidden> writes:
| 
| > - I use *_LDADD.  In that case, as far as I know, I cannot check
| >   for the libraries in the configuration anymore.  Is it sensible
| >   to add AC_SUBST(program_LDADD) in configure.ac?
| 
| Let autoconf define and substitute a variable for each library to be
| checked for and use the appropriate @LIBFOO@ in the definition for each
| program_LDADD.

Thanks, that's working very nicely.  A problem is however that
autoheader is not detecting the library checks anymore for
config.h.in.  I have calls like these in configure.ac:

AC_CHECK_LIB([itsdb], [main], [cat >>confdefs.h <<_ACEOF
#define HAVE_LIBITSDB 1
_ACEOF
LIBITSDB=-litsdb])

This third argument (almost the default behaviour, just the
variable assignment is different) has the desired effect, except
that autoheader does not put HAVE_LIBITSDB in config.h.in.
I looked at autom4te.cache/traces.0, and there's not call to
AH_OUTPUT there.  What can I do to get that functionality back?

Thanks,

Frederik




reply via email to

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