From 55b40d0050d8d1c14b76d9f76f8648b49f0e99a0 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Thu, 3 Nov 2022 23:29:08 +0100 Subject: [PATCH] also build pkgconfig with autotools --- Makefile.am | 3 +++ configure.ac | 1 + hdf5.pc.in | 11 +++++++++++ 3 files changed, 15 insertions(+) create mode 100644 hdf5.pc.in diff --git a/Makefile.am b/Makefile.am index 72d49597b4e..45390012087 100644 --- a/Makefile.am +++ b/Makefile.am @@ -224,3 +224,6 @@ $(top_builddir)/config.status: # Don't include conclude.am in root Makefile; tests target needs to # recurse into reguar subdirs. +# +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = hdf5.pc diff --git a/configure.ac b/configure.ac index c52be91bfba..895729b495d 100644 --- a/configure.ac +++ b/configure.ac @@ -4203,6 +4203,7 @@ AM_CONDITIONAL([HAVE_SHARED_CONDITIONAL], [test "X$enable_shared" = "Xyes"]) AC_CONFIG_FILES([src/libhdf5.settings Makefile + hdf5.pc doxygen/Doxyfile src/Makefile test/Makefile diff --git a/hdf5.pc.in b/hdf5.pc.in new file mode 100644 index 00000000000..b2051cfe54f --- /dev/null +++ b/hdf5.pc.in @@ -0,0 +1,11 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: hdf5 +Description: HDF5 (Hierarchical Data Format 5) Software Library +Version: @VERSION@ + +Cflags: -I@includedir@ +Libs: -L@libdir@ -lhdf5