Branch: Tag:

2006-08-09

2006-08-09 18:52:05 by Martin Stjernholm <mast@lysator.liu.se>

Fixes to make malloc.c jibe with the system malloc.h.

Rev: src/configure.in:1.994
Rev: src/malloc.c:1.3

1: - AC_REVISION("$Id: configure.in,v 1.993 2006/08/09 17:00:50 grubba Exp $") + AC_REVISION("$Id: configure.in,v 1.994 2006/08/09 18:52:05 mast Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
2295:    # MinGW system.    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.993 2006/08/09 17:00:50 grubba Exp $. + # Automatically generated by $Id: configure.in,v 1.994 2006/08/09 18:52:05 mast Exp $.   # MinGW-version. Do NOT edit.   posix_name="`cat`"   posix_prefix="/"
2333:    # Native POSIX system.    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.993 2006/08/09 17:00:50 grubba Exp $. + # Automatically generated by $Id: configure.in,v 1.994 2006/08/09 18:52:05 mast Exp $.   # POSIX-version. Do NOT edit.   cat   EOF
2342:    # rntcl-style    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.993 2006/08/09 17:00:50 grubba Exp $. + # Automatically generated by $Id: configure.in,v 1.994 2006/08/09 18:52:05 mast Exp $.   # RNTCL-version. Do NOT edit.   sed -e "$PIKE_PATH_TRANSLATE"   EOF
4459:      #############################################################################    + if test $ac_cv_header_malloc_h = yes; then +  AC_MSG_CHECKING(struct mallinfo in malloc.h) +  AC_CACHE_VAL(pike_cv_struct_mallinfo, [ +  AC_TRY_LINK([ + #ifdef HAVE_MALLOC_H + #include <malloc.h> + #endif +  ], [ +  struct mallinfo foo; +  ], pike_cv_struct_mallinfo=yes, pike_cv_struct_mallinfo=no) +  ]) +  if test $pike_cv_struct_mallinfo = yes; then +  AC_DEFINE(HAVE_STRUCT_MALLINFO, 1, +  [Defined if malloc.h contains a struct mallinfo.]) +  fi +  AC_MSG_RESULT($pike_cv_struct_mallinfo) + fi +  + ############################################################################# +    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, [