We ship a library, so we might as well be nice and provide a pkg-config
file for the people who want to detect us.
# Store build artifacts in this directory to keep the house clean.
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([-Wall foreign no-dist-gzip dist-xz tar-ustar])
# Store build artifacts in this directory to keep the house clean.
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([-Wall foreign no-dist-gzip dist-xz tar-ustar])
-AC_CONFIG_FILES([Makefile src/Makefile])
+AC_CONFIG_FILES([Makefile src/Makefile src/libadacl.pc])
AC_CONFIG_SRCDIR([src/apply-default-acl.c])
AC_CONFIG_MACRO_DIRS([m4])
# Not used, but keeps the build log clean.
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_SRCDIR([src/apply-default-acl.c])
AC_CONFIG_MACRO_DIRS([m4])
# Not used, but keeps the build log clean.
AC_CONFIG_HEADERS([config.h])
+# Adds --with-pkgconfigdir to the ./configure script and defines
+# the @pkgconfigdir@ variable to be used elsewhere.
+PKG_INSTALLDIR
+
# Checks for programs.
AC_PROG_CC
AM_PROG_AR
# Checks for programs.
AC_PROG_CC
AM_PROG_AR
bin_PROGRAMS = apply-default-acl
apply_default_acl_LDADD = libadacl.la
bin_PROGRAMS = apply-default-acl
apply_default_acl_LDADD = libadacl.la
+
+pkgconfig_DATA = libadacl.pc
--- /dev/null
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libadacl
+Description: The library implementing the @PACKAGE_NAME@ algorithm
+Version: @PACKAGE_VERSION@
+Libs: -L${libdir} -ladacl
+Cflags: -I${includedir}