summaryrefslogtreecommitdiff
path: root/lib/make/configure
diff options
context:
space:
mode:
authorschnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac>2005-09-26 01:06:44 +0000
committerschnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac>2005-09-26 01:06:44 +0000
commit6088cd914c9e75fa2a2e88a463528594c50d710d (patch)
tree4d55788379fb89ff3bc4870330afb8de997104bb /lib/make/configure
parent373e49fdeac6a0e592269464acd6bef1f6405858 (diff)
Introduce a new configuration flag DISABLE_REAL16 which disables
support for the datatype CCTK_REAL16. This is necessary because Cactus only detects whether C supports this datatype, and then assumes that Fortran behaves the same. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4149 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/configure')
-rwxr-xr-xlib/make/configure6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/make/configure b/lib/make/configure
index c18c5920..22237c4e 100755
--- a/lib/make/configure
+++ b/lib/make/configure
@@ -4815,7 +4815,11 @@ case "x$ac_cv_sizeof_float" in
CCTK_REAL4='float' ;;
esac
-if test -n "$CCTK_REAL16" ; then
+if test "x$DISABLE_REAL16" != 'xyes' -a "x$DISABLE_REAL16" != 'xno' -a "x$DISABLE_REAL16" != 'x'; then
+ { echo "configure: error: Didn't recognise setting of DISABLE_REAL16=\"$DISABLE_REAL16\"; should be either \"yes\" or \"no\" or \"\" (empty)" 1>&2; exit 1; }
+fi
+
+if test -n "$CCTK_REAL16" -a "x$DISABLE_REAL16" != 'xyes' ; then
cat >> confdefs.h <<EOF
#define CCTK_REAL16 $CCTK_REAL16
EOF