aboutsummaryrefslogtreecommitdiff
path: root/libpam_misc
diff options
context:
space:
mode:
authorMathieu Trossevin <mathieu.trossevin@gmail.com>2021-06-12 20:41:15 +0200
committerTomáš Mráz <tm@t8m.info>2021-06-14 18:22:04 +0200
commitb4f0e2e1f7a18169938eedeff8180e0c75473bb5 (patch)
tree007a46df1c1b22561b1f485ad1d37f4917c2a66e /libpam_misc
parent530c9f9e2d746e1d168c6b17863debda7664ac7c (diff)
downloadpam-b4f0e2e1f7a18169938eedeff8180e0c75473bb5.tar.gz
pam-b4f0e2e1f7a18169938eedeff8180e0c75473bb5.tar.bz2
pam-b4f0e2e1f7a18169938eedeff8180e0c75473bb5.zip
Add pkgconfig files for provided libraries
* .gitignore: Add .pc files as they are generated by autoconf. * configure.ac: Generate .pc files for libpam, libpam_misc and libpamc. * libpam/Makefile.am: Install pam.pc. * libpam/pam.pc.in: New file. * libpam_misc/Makefile.am: Install pam_misc.pc * libpam_misc/pam_misc.pc.in: New file. * libpamc/Makefile.am: Install pamc.pc This allow applications and PAM modules to automatically find libpam, libpam_misc and libpamc if they are installed instead of having to manually search for them.
Diffstat (limited to 'libpam_misc')
-rw-r--r--libpam_misc/Makefile.am4
-rw-r--r--libpam_misc/pam_misc.pc.in9
2 files changed, 13 insertions, 0 deletions
diff --git a/libpam_misc/Makefile.am b/libpam_misc/Makefile.am
index a4900bd9..4f01d322 100644
--- a/libpam_misc/Makefile.am
+++ b/libpam_misc/Makefile.am
@@ -20,3 +20,7 @@ libpam_misc_la_LIBADD = $(top_builddir)/libpam/libpam.la
lib_LTLIBRARIES = libpam_misc.la
libpam_misc_la_SOURCES = help_env.c misc_conv.c
+
+# Pkg-config script.
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = pam_misc.pc
diff --git a/libpam_misc/pam_misc.pc.in b/libpam_misc/pam_misc.pc.in
new file mode 100644
index 00000000..0c8898cd
--- /dev/null
+++ b/libpam_misc/pam_misc.pc.in
@@ -0,0 +1,9 @@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: pam_misc
+Description: Miscellaneous functions that make the job of writing PAM-aware applications easier.
+URL: http://www.linux-pam.org/
+Version: @VERSION@
+Cflags: -I${includedir}
+Libs: -L${libdir} -lpam_misc