[Top][All Lists]

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

Re: Autoconf and apt

From: Ralf Wildenhues
Subject: Re: Autoconf and apt
Date: Tue, 19 Aug 2008 08:57:12 +0200
User-agent: Mutt/1.5.18 (2008-07-21)

* Robert Rehammar wrote on Tue, Aug 19, 2008 at 08:08:32AM CEST:
> So the next thing would then be for configure to ask apt to download and
> install libfoo, to meet the dependency. This way autotools would
> integrate with (e.g.) apt to make installations more smooth. This would
> save the user the work to download and install all packages that bar
> depends on and that exists in the apt repository.

If the dependencies are already listed in apt's database, then 'apt-get
build-dep libfoo' should be all you ever need.  If not, then I don't see
how Autoconf can behave better than it does now: the mapping of software
given as source to packaging names is still quite distribution-dependent.

So if you like, a good way out would be this, in pseudo-code:

  if $missing_libfoo; then
    AC_MSG_ERROR([This package needs $libfoo.  Please tell your system
administrator to `apt-get build-dep $PACKAGE])

with possibly adjusting for apt, rpm, etc.  What more could Autoconf


reply via email to

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