From 63a6e0473f6e570ae2bf4f850fd7f46b128117ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Fri, 29 May 1998 22:41:19 +0200 Subject: [PATCH] Now checks if strtol works for large hexadecimal constants. Rev: src/configure.in:1.194 --- src/configure.in | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/src/configure.in b/src/configure.in index f2b01b3c65..2cd8f6cf63 100644 --- a/src/configure.in +++ b/src/configure.in @@ -1,4 +1,4 @@ -AC_REVISION("$Id: configure.in,v 1.193 1998/05/24 22:40:22 marcus Exp $") +AC_REVISION("$Id: configure.in,v 1.194 1998/05/29 20:41:19 grubba Exp $") AC_INIT(interpret.c) AC_CONFIG_HEADER(machine.h) @@ -1067,6 +1067,28 @@ AC_DEFINE(HAVE_STRUCT_TIMEVAL) ############################################################################# +if test "x$ac_cv_func_strtol" = "xyes"; then + AC_MSG_CHECKING(if strtol works for large hexadecimal constants) + AC_CACHE_VAL(pike_cv_func_strtol_works, [ + AC_TRY_RUN([ +#include <stdlib.h> +int main(int argc, char **argv) +{ + /* On some OS's strtol() rounds this to 0x7fffffff. */ + return(strtol("0xffffffff", NULL, 0) != 0xffffffff); +} + ], pike_cv_func_strtol_works=yes, + pike_cv_func_strtol_works=no, + pike_cv_func_strtol_works=no) + ]) + AC_MSG_RESULT($pike_cv_func_strtol_works) + if test "x$pike_cv_func_strtol_works" = "xyes"; then + AC_DEFINE(HAVE_WORKING_STRTOL) + else :; fi +else :; fi + +############################################################################# + AC_MSG_CHECKING(if gettimeofday takes two arguments) AC_CACHE_VAL(pike_cv_func_gettimeofday_has_two_args, [ -- GitLab