On Thu, 27 Oct 2005, Daniel Pekelharing wrote:

Can anyone tell me how Gtk+ is normally detected using autoconf?
I'm not sure how I'd go about using "pkg-config" with autoconf..

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",)

--
Allin Cottrell
Department of Economics
Wake Forest University, NC
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to