From 9a79bcb678a3b26c8fa4a8231d9b7e51b0cf0b2c Mon Sep 17 00:00:00 2001 From: Alex Chernyakhovsky Date: Sun, 2 Jun 2013 00:32:17 -0400 Subject: Provide a pkg-config file for zephyr Previously, it was difficult to detect the presence of the zephyr library in autoconf, and required custom macros. However, the world has since developed pkg-config, which is a simple tool for detecting the presence of a package, its compile-time flags, and its link-time flags, even in the presence of recursive dependencies. This adds "zephyr.pc" as a file generated by the build process, and installs it into the appropriate directory, allowing the target system to use PKG_CHECK_MODULES([ZEPHYR], [zephyr]) AC_SUBST([ZEPHYR_CFLAGS]) AC_SUBST([ZEPHYR_LIBS]) to detect all necessary information to incorporate the zephyr library. --- configure.ac | 1 + 1 file changed, 1 insertion(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 7278b41..647107e 100644 --- a/configure.ac +++ b/configure.ac @@ -398,4 +398,5 @@ AC_OUTPUT(Makefile clients/Makefile clients/zaway/Makefile clients/zshutdown_notify/Makefile clients/zstat/Makefile clients/zwrite/Makefile lib/Makefile server/Makefile zhm/Makefile zwgc/Makefile + zephyr.pc ) -- cgit v1.2.3