Changeset: 80230b188e8f for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=80230b188e8f
Modified Files:
        configure.ag
        testing/Mtest.py.in
Branch: int128
Log Message:

added HAVE_HGE conditional


diffs (47 lines):

diff --git a/configure.ag b/configure.ag
--- a/configure.ag
+++ b/configure.ag
@@ -2590,7 +2590,11 @@ AC_TYPE_SSIZE_T
 AC_TYPE_PID_T
 AC_TYPE_OFF_T
 
-AC_CHECK_TYPES([__int64, long long, __int128, __int128_t, __uint128_t])
+AC_CHECK_TYPES([__int64, long long])
+have_hge=no
+why_have_hge-'(no 128-bit integer type found)'
+AC_CHECK_TYPES([__int128, __int128_t, __uint128_t], [have_hge=yes; 
why_have_hge=''])
+AM_CONDITIONAL(HAVE_HGE, test "x$have_hge" = xyes)
 AC_CHECK_TYPES([ptrdiff_t],,,[#include <stddef.h>
 #include <sys/types.h>])
 AC_CHECK_TYPES(bool)
@@ -3330,9 +3334,18 @@ for comp in \
        echo $ECHO_N "    $comp = $ECHO_C"
        if test "x$have" != xno ; then echo "yes"; else echo "no  $why"; fi
 done
+if test "x$have_hge" = xyes ; then
+       hge_bits='128'
+       hge_digits=' 38'
+else
+       hge_bits=' 64'
+       hge_digits=' 18'
+fi
 echo
 echo "* Important options:"
-echo "    OID size: " ${oids} bits
+echo "    OID size:              ${oids} bits"
+echo "    largest integer type: ${hge_bits} bits"
+echo "    largest decimal type: ${hge_digits} digits"
 echo
 
 dnl give some hints to the user
diff --git a/testing/Mtest.py.in b/testing/Mtest.py.in
--- a/testing/Mtest.py.in
+++ b/testing/Mtest.py.in
@@ -312,6 +312,7 @@ CONDITIONALS = {
     'HAVE_DEVELOPER'       : "@HAVE_DEVELOPER_FALSE@",
     'HAVE_GDK'             : "@HAVE_GDK_FALSE@",
     'HAVE_GEOM'            : "@HAVE_GEOM_FALSE@",
+    'HAVE_HGE'             : "@HAVE_HGE_FALSE@",
     'HAVE_JAVA'            : "@HAVE_JAVA_FALSE@",
     'HAVE_JAVAJDBC'        : "@HAVE_JAVAJDBC_FALSE@",
     'HAVE_JAVAMEROCONTROL' : "@HAVE_JAVAMEROCONTROL_FALSE@",
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to