From: Arch Librarian Date: Thu, 14 Jul 2005 13:04:06 +0000 (+0000) Subject: updates X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6725d8ee36c13dcd9dfd93d1c2cf31ff4f30908e;p=pkg-config updates Author: hp Date: 2001-06-05 17:00:58 GMT updates --- diff --git a/ChangeLog b/ChangeLog index ecf5ca2..7efc79b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,8 @@ * pkg.m4: remove unrelated macros + * README, AUTHORS: updates + 2001-05-20 Havoc Pennington * configure.in: revert package name change, just screwing things up. diff --git a/README b/README index 4d3cea3..4e9cf22 100644 --- a/README +++ b/README @@ -3,7 +3,7 @@ flags when compiling/linking a lot easier. to use it, do something like the following in your configure.in - PKG_CHECK_MODULES(GNOME, gtk:1.2.8, gnomeui) + PKG_CHECK_MODULES(GNOME, gtk > 1.2.8 gnomeui >= 1.2.0) AC_SUBST(GNOME_CFLAGS) AC_SUBST(GNOME_LIBS) @@ -11,7 +11,15 @@ This puts the neccesary include flags to compile/link something against libgnomeui and all its dependencies in $(GNOME_CFLAGS), and the -L/-l flags for linking in $(GNOME_LIBS) -The gtk:1.2.8 part is only neccesary if you want to specifically check -if libgtk is version 1.2.8 or higher. otherwise, the flags for gtk +The "gtk > 1.2.8" part is only neccesary if you want to specifically check +if libgtk is version 1.2.8 or higher. Otherwise, the flags for gtk will be included automatically, since libgnomeui depends on gtk. +So you could just say: + + PKG_CHECK_MODULES(GNOME, gnomeui) + +for any version of gnomeui. + +For more info, there's even a man page, try 'man pkg-config' + diff --git a/pkg.m4 b/pkg.m4 index 4d0afef..bc67203 100644 --- a/pkg.m4 +++ b/pkg.m4 @@ -48,3 +48,5 @@ AC_DEFUN(PKG_CHECK_MODULES, ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4]) fi ]) + +