diff options
-rwxr-xr-x | c++/src/h5c++.in | 16 | ||||
-rwxr-xr-x | fortran/src/h5fc.in | 16 | ||||
-rwxr-xr-x | tools/misc/h5cc.in | 16 |
3 files changed, 48 insertions, 0 deletions
diff --git a/c++/src/h5c++.in b/c++/src/h5c++.in index 9d44f12..516aa23 100755 --- a/c++/src/h5c++.in +++ b/c++/src/h5c++.in @@ -73,6 +73,7 @@ usage() { echo " -prefix=DIR Prefix directory to find HDF5 lib/ and include/" echo " subdirectories [default: $prefix]" echo " -show Show the commands without executing them" + echo " -showconfig Show the HDF5 library configuration summary" echo " " echo " <compile line> - the normal compile line options for your compiler." echo " $prog_name uses the same compiler you used to compile" @@ -89,6 +90,17 @@ usage() { exit 1 } +# Show the configuration summary of the library recorded in the +# libhdf5.settings file reside in the lib directory. +showconfigure() +{ + cat ${libdir}/libhdf5.settings + status=$? +} + +# Main +status=0 + if test "$#" = "0"; then # No parameters specified, issue usage statement and exit. usage @@ -163,6 +175,10 @@ for arg in $@ ; do -show) SHOW="echo" ;; + -showconfig) + showconfigure + exit $status + ;; -help) usage ;; diff --git a/fortran/src/h5fc.in b/fortran/src/h5fc.in index acb0b58..382521d 100755 --- a/fortran/src/h5fc.in +++ b/fortran/src/h5fc.in @@ -70,6 +70,7 @@ usage() { echo " -prefix=DIR Prefix directory to find HDF5 lib/ and include/" echo " subdirectories [default: $prefix]" echo " -show Show the commands without executing them" + echo " -showconfig Show the HDF5 library configuration summary" echo " " echo " <compile line> - the normal compile line options for your compiler." echo " $prog_name uses the same compiler you used to compile" @@ -85,6 +86,17 @@ usage() { exit 1 } +# Show the configuration summary of the library recorded in the +# libhdf5.settings file reside in the lib directory. +showconfigure() +{ + cat ${libdir}/libhdf5.settings + status=$? +} + +# Main +status=0 + if test "$#" = "0"; then # No parameters specified, issue usage statement and exit. usage @@ -141,6 +153,10 @@ for arg in $@ ; do -show) SHOW="echo" ;; + -showconfig) + showconfigure + exit $status + ;; -help) usage ;; diff --git a/tools/misc/h5cc.in b/tools/misc/h5cc.in index 77d6bf9..88adcd8 100755 --- a/tools/misc/h5cc.in +++ b/tools/misc/h5cc.in @@ -73,6 +73,7 @@ usage() { echo " -prefix=DIR Prefix directory to find HDF5 lib/ and include/" echo " subdirectories [default: $prefix]" echo " -show Show the commands without executing them" + echo " -showconfig Show the HDF5 library configuration summary" echo " -shlib Compile with shared HDF5 libraries" echo " -noshlib Compile with static HDF5 libraries [default]" echo " " @@ -93,6 +94,17 @@ usage() { exit 1 } +# Show the configuration summary of the library recorded in the +# libhdf5.settings file reside in the lib directory. +showconfigure() +{ + cat ${libdir}/libhdf5.settings + status=$? +} + +# Main +status=0 + if test "$#" = "0"; then # No parameters specified, issue usage statement and exit. usage @@ -167,6 +179,10 @@ for arg in $@ ; do -show) SHOW="echo" ;; + -showconfig) + showconfigure + exit $status + ;; -shlib) USE_SHARED_LIB="yes" ;; |