From 9583914ba076818ce50dbce10cce990649742952 Mon Sep 17 00:00:00 2001 From: kraxel Date: Fri, 17 Mar 2006 12:46:41 +0000 Subject: sync up, minor fixes --- mk/Autoconf.mk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'mk/Autoconf.mk') diff --git a/mk/Autoconf.mk b/mk/Autoconf.mk index 4d25d21..aea4900 100644 --- a/mk/Autoconf.mk +++ b/mk/Autoconf.mk @@ -1,7 +1,7 @@ # # simple autoconf system for GNU make # -# (c) 2002-2004 Gerd Knorr +# (c) 2002-2006 Gerd Hoffmann # # credits for creating this one go to the autotools people because # they managed it to annoy lots of developers and users (including @@ -110,6 +110,13 @@ ac_resdir = $(shell \ echo "/etc/X11" || echo "/usr/X11R6/lib/X11");\ $(call ac_fini)) +# check if package is installed, via pkg-config +# args: pkg name +ac_pkg_config = $(shell \ + $(call ac_init,for $(1) (using pkg-config));\ + $(call ac_b_cmd, pkg-config $(1));\ + $(call ac_fini)) + ######################################################################## # build Make.config -- cgit