diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2004-07-22 22:27:40 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2004-07-22 22:27:40 (GMT) |
commit | ba5b63d23156c1e355972b2e10611107781a4159 (patch) | |
tree | 185b2f65f97b70fd128ed9d879919874ca415ea3 /fortran | |
parent | a12aaab67fff0564913c5c05f13dc3b9e29c21aa (diff) | |
download | hdf5-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 'fortran')
-rwxr-xr-x | fortran/configure | 78 | ||||
-rw-r--r-- | fortran/configure.in | 84 |
2 files changed, 162 insertions, 0 deletions
diff --git a/fortran/configure b/fortran/configure index 99d36a0..8c646d5 100755 --- a/fortran/configure +++ b/fortran/configure @@ -11913,3 +11913,81 @@ touch ./config/stamp2 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 chmod 755 src/h5fc + +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 "Fortran Configure Summary" +PRINT "Compiling Options:" + +PRINT_N " Fortran Compiler" +PRINT "$F9X" + +PRINT_N " FFLAGS" +PRINT "$FFLAGS" + +PRINT_N " C Compiler" +PRINT "$CC" + +PRINT_N " CFLAGS" +PRINT "$CFLAGS" + +PRINT_N " CPPFLAGS" +PRINT "$CPPFLAGS" + +PRINT_N " LDFLAGS" +PRINT "$LDFLAGS" + +PRINT "Features:" diff --git a/fortran/configure.in b/fortran/configure.in index f091c77..41444e8 100644 --- a/fortran/configure.in +++ b/fortran/configure.in @@ -1223,3 +1223,87 @@ dnl Finally the makefiles test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 chmod 755 src/h5fc + +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 "Fortran Configure Summary" +PRINT "Compiling Options:" + +PRINT_N " Fortran Compiler" +PRINT "$F9X" + +PRINT_N " FFLAGS" +PRINT "$FFLAGS" + +PRINT_N " C Compiler" +PRINT "$CC" + +PRINT_N " CFLAGS" +PRINT "$CFLAGS" + +PRINT_N " CPPFLAGS" +PRINT "$CPPFLAGS" + +PRINT_N " LDFLAGS" +PRINT "$LDFLAGS" + +PRINT "Features:" |