*** pgsql/configure.in 2001/03/20 23:35:18 1.111 --- pgsql/configure.in 2001/03/23 18:42:11 1.112 *************** if test x"$HAVE_LONG_INT_64" = x"no" ; t *** 979,984 **** --- 979,997 ---- fi + dnl If we need to use "long long int", figure out whether nnnLL notation works. + + if [[ x"$HAVE_LONG_LONG_INT_64" = xyes ]] ; then + AC_TRY_COMPILE([ + #define INT64CONST(x) x##LL + long long int foo = INT64CONST(0x1234567890123456); + ], + [], + [AC_DEFINE(HAVE_LL_CONSTANTS)], + []) + fi + + dnl If we found "long int" is 64 bits, assume snprintf handles it. dnl If we found we need to use "long long int", better check. dnl We cope with snprintfs that use either %lld or %qd as the format.