Re: Gtk+ and Autoconf?
- From: Ralf Corsepius <rc040203 freenet de>
- To: Daniel Pekelharing <legendstar gmail com>
- Cc: Gtk-App-Devel-List <gtk-app-devel-list gnome org>, Allin Cottrell <cottrell wfu edu>
- Subject: Re: Gtk+ and Autoconf?
- Date: Thu, 27 Oct 2005 17:03:31 +0200
On Thu, 2005-10-27 at 17:00 +0200, Daniel Pekelharing wrote:
On Thu, 2005-10-27 at 10:46 -0400, Allin Cottrell wrote:
The standard thing is to use the macro PKG_CHECK_MODULES(), e.g.
something like:
if test -z "$PKG_CONFIG"; then
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
fi
if test "$PKG_CONFIG" = "no" ; then
echo "*** pkg-config not found, can't build with gtk 2.0"
fi
PKG_CHECK_MODULES(GTK, gtk+-2.0,
CFLAGS="$CFLAGS $GTK_CFLAGS"
LIBS="$LIBS $GTK_LIBS",)
Thanks! that seems simple enough..
Actually, the whole PKG_CONFIG magic above is unnecessary.
Have a look into /usr/share/aclocal/pkg.m4 you probably have installed
on your system.
Ralf
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]