Skip to content
Snippets Groups Projects
Commit 63a6e047 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Now checks if strtol works for large hexadecimal constants.

Rev: src/configure.in:1.194
parent a87200ca
No related branches found
No related tags found
No related merge requests found
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,
[
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment