From 4ec9a6a9c66f1a3c051332350f2967d022d80eb8 Mon Sep 17 00:00:00 2001 From: "Jeffrey H. Johnson" Date: Thu, 2 Feb 2023 11:35:40 -0500 Subject: [PATCH] Add pkg-config file (upstream PR #92) --- Makefile.am | 3 +++ configure.ac | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 2fd4c7e..5eb1349 100644 --- a/Makefile.am +++ b/Makefile.am @@ -84,6 +84,9 @@ libbacktrace_la_LIBADD = \ libbacktrace_la_DEPENDENCIES = $(libbacktrace_la_LIBADD) +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = libbacktrace.pc + # Testsuite. # Add a test to this variable if you want it to be built as a program, diff --git a/configure.ac b/configure.ac index 557b2c2..d3fd1cc 100644 --- a/configure.ac +++ b/configure.ac @@ -30,7 +30,8 @@ # POSSIBILITY OF SUCH DAMAGE. AC_PREREQ(2.69) -AC_INIT(package-unused, version-unused,, libbacktrace) +AC_INIT(libbacktrace, 1.0, https://github.com/ianlancetaylor/libbacktrace/issues, + libbacktrace, https://github.com/ianlancetaylor/libbacktrace) AC_CONFIG_SRCDIR(backtrace.h) AC_CONFIG_HEADER(config.h) AC_CONFIG_MACRO_DIR(config) @@ -567,7 +568,7 @@ else multilib_arg= fi -AC_CONFIG_FILES(Makefile backtrace-supported.h) +AC_CONFIG_FILES(Makefile backtrace-supported.h libbacktrace.pc) AC_CONFIG_FILES(install-debuginfo-for-buildid.sh, chmod +x install-debuginfo-for-buildid.sh) # We need multilib support, but only if configuring for the target.