summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2022-03-11 19:29:58 (GMT)
committerGitHub <noreply@github.com>2022-03-11 19:29:58 (GMT)
commit9dc35264c768a9c9869946ab987a1a66f9540c35 (patch)
tree370dd1ac3771b746dd36bf78f4d0cebbe25ad25b /config
parent6f1f02a5b18f56923c66d579057d91a1778e4074 (diff)
downloadhdf5-9dc35264c768a9c9869946ab987a1a66f9540c35.zip
hdf5-9dc35264c768a9c9869946ab987a1a66f9540c35.tar.gz
hdf5-9dc35264c768a9c9869946ab987a1a66f9540c35.tar.bz2
1 12 Add -showconfig to h5cc scripts to dump libhdf5.settings file (#1482)
* Merge Add -showconfig to h5cc scripts to dump libhdf5.settings file * Added note * Fix comments
Diffstat (limited to 'config')
-rw-r--r--config/cmake/libh5cc.in23
1 files changed, 22 insertions, 1 deletions
diff --git a/config/cmake/libh5cc.in b/config/cmake/libh5cc.in
index ecdd13e..6d54088 100644
--- a/config/cmake/libh5cc.in
+++ b/config/cmake/libh5cc.in
@@ -27,6 +27,27 @@ prg=$dir/$(basename -- "$prg") || exit
printf '%s\n' "$prg"
printf 'dir is %s\n' "$dir"
+
+# Show the configuration summary of the library recorded in the
+# libhdf5.settings file residing in the lib directory.
+showconfigure()
+{
+ cat $dir/lib/libhdf5.settings
+ status=$?
+}
+
export PKG_CONFIG_PATH=$dir/lib/pkgconfig
-@_PKG_CONFIG_COMPILER@ $@ `pkg-config --define-variable=prefix=$dir --cflags --libs @_PKG_CONFIG_LIBNAME@`
+for arg in $@ ; do
+ case "$arg" in
+ -showconfig)
+ showconfigure
+ exit $status
+ ;;
+ *)
+ @_PKG_CONFIG_COMPILER@ $@ `pkg-config --define-variable=prefix=$dir --cflags --libs @_PKG_CONFIG_LIBNAME@`
+ status=$?
+ exit $status
+ ;;
+ esac
+done