From baee6c47e7a44180ff5132e71ca04b252dfbebe3 Mon Sep 17 00:00:00 2001 From: Hugh McMaster Date: Sun, 29 Sep 2019 11:38:17 +1000 Subject: [PATCH] ITS#8996 - Generate and install a pkg-config file for the libldap library --- configure.ac | 1 + libraries/Makefile.in | 2 +- libraries/libldap/ldap.pc.in | 13 +++++++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 libraries/libldap/ldap.pc.in diff --git a/configure.ac b/configure.ac index d8ecf6782f..2945f278bb 100644 --- a/configure.ac +++ b/configure.ac @@ -3196,6 +3196,7 @@ AC_CONFIG_FILES([Makefile:build/top.mk:Makefile.in:build/dir.mk] [libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk] [libraries/liblber/lber.pc] [libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk] +[libraries/libldap/ldap.pc] [libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk] [libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk] [libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk] diff --git a/libraries/Makefile.in b/libraries/Makefile.in index bf69557624..d9cb2ffce2 100644 --- a/libraries/Makefile.in +++ b/libraries/Makefile.in @@ -21,7 +21,7 @@ SUBDIRS= \ librewrite PKGCONFIG_DIR=$(DESTDIR)$(libdir)/pkgconfig -PKGCONFIG_SRCDIRS=liblber +PKGCONFIG_SRCDIRS=liblber libldap install-local: @$(MKDIR) $(PKGCONFIG_DIR) diff --git a/libraries/libldap/ldap.pc.in b/libraries/libldap/ldap.pc.in new file mode 100644 index 0000000000..3f7dd46e18 --- /dev/null +++ b/libraries/libldap/ldap.pc.in @@ -0,0 +1,13 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +includedir=@includedir@ +libdir=@libdir@ + +Name: ldap (@PACKAGE@) +Description: OpenLDAP Lightweight Directory Access Protocol library +URL: https://www.openldap.org +Version: @VERSION@ +Requires: lber +Cflags: -I${includedir} +Libs: -L${libdir} -lldap +Libs.private: @LIBS@ @SASL_LIBS@ @TLS_LIBS@ @AUTH_LIBS@