[Top][All Lists]

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

RE: Configure gripes about gnome-config

From: Marshall, Simon
Subject: RE: Configure gripes about gnome-config
Date: Fri, 30 Jun 2006 13:57:15 +0100

>     $ /usr/local/bin/pkg-config --exists foo
>     sh: gnome-config: not found
>     $ 
> Systems without GNOME probably don't have gnome-config.
> Does it check for the presence of GNOME before it runs 
> gnome-config?  If so, this is not a bug--your setup is broken.
> If not, that seems like a bug.  If the code that uses 
> gnome-config comes from Autoconf, it is a bug in Autoconf.
> If that code comes from configure.in, the bug is in configure.in.
> Does your system have GNOME?

Yes, the Solaris8 box has the GNOME 2.0 desktop, which appears to work.
Note that configure checks for the existence of pkg-config (not
gnome-config), which it finds.  Configure does not run gnome-config, it runs
pkg-config, which runs gnome-config (at least on my system - as you can see
in the above shell snippet).

So, to reiterate, configure finds pkg-config (in /usr/local/bin) and then
uses it:

        if $PKG_CONFIG --exists "$ALSA_MODULES" ; then

It is at this point that we get the error wrt gnome-config.  My comment was
perhaps the definition of PKG_CHECK_MODULES in configure.in could be
modified, ie:

        if $PKG_CONFIG --exists "$2" ; then

Changed to redirect stderr from $PKG_CONFIG to /dev/null.

But it might be that the correct fix is not to use pkg-config, or to use it
in a different way.  I don't know.


reply via email to

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