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. --- zephyr.pc.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 zephyr.pc.in (limited to 'zephyr.pc.in') diff --git a/zephyr.pc.in b/zephyr.pc.in new file mode 100644 index 0000000..00782f4 --- /dev/null +++ b/zephyr.pc.in @@ -0,0 +1,12 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: @PACKAGE_NAME@ +Description: Project Athena's notification service +Version: @PACKAGE_VERSION@ +Requires: +Libs: -L${libdir} -l@PACKAGE_NAME@ +Libs.private: @HESIOD_LIBS@ @KRB4_LIBS@ @KRB5_LIBS@ @REGEX_LIBS@ +Cflags: -I${includedir} -- cgit v1.2.3