help-gplusplus
[Top][All Lists]
Advanced

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

Re: Automake


From: Simon Richter
Subject: Re: Automake
Date: Thu, 26 Aug 2004 12:39:09 +0000 (UTC)
User-agent: nn/6.6.5

Hi,

Marc Schellens <m_schellens@hotmail.com> writes:

>I try to check for a C++ library (ie. wxWidgets 2.5)

I use the following fragment to check for Debian's APT:

AC_CACHE_CHECK([for libapt-pkg (>= 0.5.0)],
 ac_cv_have_libaptpkg,
 [ac_save_LIBS=${LIBS}
  LIBS=-lapt-pkg
  AC_TRY_LINK(
   [class Configuration {};
    bool pkgInitConfig(Configuration &);],
   [Configuration c;
    (void)pkgInitConfig(c);],
   [ac_cv_have_libaptpkg=yes],
   [ac_cv_have_libaptpkg=no])
  LIBS=${ac_save_LIBS}])
if test "${ac_cv_have_libaptpkg}" != "yes"; then
 AC_MSG_ERROR([*** You need libapt-pkg, version 0.5.0 or greater])
fi
APTPKGLIBS=-lapt-pkg
AC_SUBST(APTPKGLIBS)

   Simon


reply via email to

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