Commit 8e1ea421 8e1ea4214c98e381d41bfe4ec01a89de78bce299 by Sergey Poznyakoff

Compute the value of ULONG_MAX for use in the testsute.

1 parent 63307164
...@@ -306,6 +306,23 @@ AC_CHECK_TYPE(socklen_t, , AC_DEFINE(socklen_t, int, [Define to int if <sys/type ...@@ -306,6 +306,23 @@ AC_CHECK_TYPE(socklen_t, , AC_DEFINE(socklen_t, int, [Define to int if <sys/type
306 AC_CHECK_TYPE(long long, , AC_DEFINE(LONG_LONG, long, [Define to long if compiler does not support])) 306 AC_CHECK_TYPE(long long, , AC_DEFINE(LONG_LONG, long, [Define to long if compiler does not support]))
307 AC_CHECK_TYPE(long double, , AC_DEFINE(LONG_DOUBLE, double, [Define to double if compiler does not support])) 307 AC_CHECK_TYPE(long double, , AC_DEFINE(LONG_DOUBLE, double, [Define to double if compiler does not support]))
308 308
309 AC_SUBST(MU_ULONG_MAX)
310 AC_RUN_IFELSE([AC_LANG_PROGRAM(
311 [#include <stdio.h>
312 #include <stdlib.h>
313 #include <limits.h>],
314 [
315 FILE *f = fopen ("conftest.val", "w");
316 if (! f)
317 exit (1);
318 fprintf(f, "%lu\n", ULONG_MAX);
319 fclose(f);
320 return 0;]
321 )],
322 [MU_ULONG_MAX=`cat conftest.val`],
323 [MU_ULONG_MAX=0],
324 [MU_ULONG_MAX=0])
325
309 AC_STRUCT_TM 326 AC_STRUCT_TM
310 AC_CHECK_MEMBERS([struct tm.tm_zone, struct tm.tm_gmtoff, struct tm.tm_isdst], 327 AC_CHECK_MEMBERS([struct tm.tm_zone, struct tm.tm_gmtoff, struct tm.tm_isdst],
311 ,, 328 ,,
......