summaryrefslogtreecommitdiffstats
path: root/c++
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2004-07-22 22:27:40 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2004-07-22 22:27:40 (GMT)
commitba5b63d23156c1e355972b2e10611107781a4159 (patch)
tree185b2f65f97b70fd128ed9d879919874ca415ea3 /c++
parenta12aaab67fff0564913c5c05f13dc3b9e29c21aa (diff)
downloadhdf5-ba5b63d23156c1e355972b2e10611107781a4159.zip
hdf5-ba5b63d23156c1e355972b2e10611107781a4159.tar.gz
hdf5-ba5b63d23156c1e355972b2e10611107781a4159.tar.bz2
[svn-r8933] Purpose:
Feature Description: Added a configure summary at the end. configure: generated from configure.in. Platforms tested: No h5committest by tested by hand in tg-ncsa. Misc. update:
Diffstat (limited to 'c++')
-rwxr-xr-xc++/configure66
-rw-r--r--c++/configure.in72
2 files changed, 138 insertions, 0 deletions
diff --git a/c++/configure b/c++/configure
index 14e478b..9695078 100755
--- a/c++/configure
+++ b/c++/configure
@@ -10527,3 +10527,69 @@ no_create=$saved_no_create
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
chmod 755 src/h5c++
+
+if test -z "$ECHO_N" -o -z "$ECHO_C"; then
+ if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
+ if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
+ ECHO_N=''
+ ECHO_C='
+'
+ else
+ ECHO_N=-n
+ ECHO_C=''
+ fi
+ else
+ ECHO_N=''
+ ECHO_C='\c'
+ fi
+fi
+
+PRINT_PLAIN() {
+ echo $ECHO_N "$1$ECHO_C"
+ echo $ECHO_N "$1$ECHO_C" 1>>src/libhdf5.settings
+}
+
+PRINT_N() {
+ echo $ECHO_N "$1: $ECHO_C"
+ echo $ECHO_N "$1: $ECHO_C" 1>>src/libhdf5.settings
+}
+
+PRINT() {
+ echo "$1"
+ echo "$1" 1>>src/libhdf5.settings
+}
+
+IF_YES_NO() {
+ if test $# -lt 1; then
+ PRINT "No"
+ return
+ else
+ while test $# -gt 0; do
+ if test "$1" != "yes"; then
+ PRINT "No"
+ return
+ fi
+ shift
+ done
+ fi
+ PRINT "Yes"
+}
+
+IF_ENABLED_DISABLED() {
+ if test "$1" = "yes"; then
+ PRINT "Enabled"
+ else
+ PRINT "Disabled"
+ fi
+}
+
+PRINT "C++ Configure Summary"
+PRINT "Compiling Options:"
+
+PRINT_N " C++ Compiler"
+PRINT "$CXX"
+
+PRINT_N " CXXFLAGS"
+PRINT "$CXXFLAGS"
+
+PRINT "Features:"
diff --git a/c++/configure.in b/c++/configure.in
index a3d06b6..1780176 100644
--- a/c++/configure.in
+++ b/c++/configure.in
@@ -810,3 +810,75 @@ dnl Finally the makefiles
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
chmod 755 src/h5c++
+
+dnl ----------------------------------------------------------------------
+dnl Print out a summary of what we are going to build.
+dnl
+if test -z "$ECHO_N" -o -z "$ECHO_C"; then
+ if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
+ if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
+ ECHO_N=''
+ ECHO_C='
+'
+ else
+ ECHO_N=-n
+ ECHO_C=''
+ fi
+ else
+ ECHO_N=''
+ ECHO_C='\c'
+ fi
+fi
+
+PRINT_PLAIN() {
+ echo $ECHO_N "$1$ECHO_C"
+ echo $ECHO_N "$1$ECHO_C" 1>>src/libhdf5.settings
+}
+
+PRINT_N() {
+ echo $ECHO_N "$1: $ECHO_C"
+ echo $ECHO_N "$1: $ECHO_C" 1>>src/libhdf5.settings
+}
+
+PRINT() {
+ echo "$1"
+ echo "$1" 1>>src/libhdf5.settings
+}
+
+dnl ----------------------------------------------------------------------
+dnl Print "Yes" if all arguments are "yes", otherwise "No"
+dnl
+IF_YES_NO() {
+ if test $# -lt 1; then
+ PRINT "No"
+ return
+ else
+ while test $# -gt 0; do
+ if test "$1" != "yes"; then
+ PRINT "No"
+ return
+ fi
+ shift
+ done
+ fi
+ PRINT "Yes"
+}
+
+IF_ENABLED_DISABLED() {
+ if test "$1" = "yes"; then
+ PRINT "Enabled"
+ else
+ PRINT "Disabled"
+ fi
+}
+
+PRINT "C++ Configure Summary"
+PRINT "Compiling Options:"
+
+PRINT_N " C++ Compiler"
+PRINT "$CXX"
+
+PRINT_N " CXXFLAGS"
+PRINT "$CXXFLAGS"
+
+PRINT "Features:"