AC_PROG_MAKE_SET
AC_PROG_LIBTOOL
+PKG_PROG_PKG_CONFIG
PKG_CHECK_MODULES(BOTAN, botan-1.8 >= 1.8.0)
AC_SUBST(BOTAN_CFLAGS)
AC_SUBST(BOTAN_LIBS)
-AC_CONFIG_FILES([Makefile lib/Makefile src/Makefile])
+AC_CONFIG_FILES([Makefile lib/Makefile lib/fides.pc src/Makefile])
AC_OUTPUT
libfides_la_SOURCES = fides.cc certificate.cc publickey.cc privatekey.cc utility.cc
include_HEADERS = fides.h certificate.h publickey.h privatekey.h utility.h
libfides_la_LIBADD = $(BOTAN_LIBS)
+
+EXTRA_DIST = fides.pc.in
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = fides.pc
+
--- /dev/null
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: fides
+Description: A lightweight cryptographic authorisation framework
+URL: http://www.tinc-vpn.org/
+Requires: botan-1.8
+Version: @VERSION@
+Libs: -L${libdir} -lfides
+Cflags: -I${includedir}