Changeset 638b6a in git


Ignore:
Timestamp:
Mar 15, 2004, 2:36:29 PM (20 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
a5e67fb1d8c3b440c5911cc422d60e30701248ab
Parents:
a880e537d54d933abe28e817d141a624a3dd2fce
Message:
*hannes: --with-malloc_h


git-svn-id: file:///usr/local/Singular/svn/trunk@7083 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
MP
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • MP/configure

    ra880e53 r638b6a  
    6464ac_help="$ac_help
    6565\
    66   --with-malloc=HEADER     use external malloc routines declared in HEADER"
     66  --with-malloc_h=HEADER     use external malloc routines declared in HEADER"
    6767
    6868# Initialize some variables set by options.
     
    37753775
    37763776
    3777 # Check whether --with-malloc or --without-malloc was given.
    3778 if test "${with_malloc+set}" = set; then
    3779   withval="$with_malloc"
    3780   :
    3781 fi
    3782 
    3783 
    3784 if test "${with_malloc+set}" = set; then
    3785   ac_safe=`echo "${with_malloc}" | sed 'y%./+-%__p_%'`
    3786 echo $ac_n "checking for ${with_malloc}""... $ac_c" 1>&6
    3787 echo "configure:3788: checking for ${with_malloc}" >&5
     3777# Check whether --with-malloc_h or --without-malloc_h was given.
     3778if test "${with_malloc_h+set}" = set; then
     3779  withval="$with_malloc_h"
     3780  :
     3781fi
     3782
     3783
     3784if test "${with_malloc_h+set}" = set; then
     3785  ac_safe=`echo "${with_malloc_h}" | sed 'y%./+-%__p_%'`
     3786echo $ac_n "checking for ${with_malloc_h}""... $ac_c" 1>&6
     3787echo "configure:3788: checking for ${with_malloc_h}" >&5
    37883788if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    37893789  echo $ac_n "(cached) $ac_c" 1>&6
     
    37923792#line 3793 "configure"
    37933793#include "confdefs.h"
    3794 #include <${with_malloc}>
     3794#include <${with_malloc_h}>
    37953795EOF
    37963796ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     
    38203820echo $ac_n "checking where malloc rotuines come from""... $ac_c" 1>&6
    38213821echo "configure:3822: checking where malloc rotuines come from" >&5
    3822 if test "${with_malloc+set}" = set; then
    3823   echo "$ac_t""${with_malloc}" 1>&6
     3822if test "${with_malloc_h+set}" = set; then
     3823  echo "$ac_t""${with_malloc_h}" 1>&6
    38243824  cat >> confdefs.h <<\EOF
    38253825#define WITH_EXTERNAL_MALLOC 1
     
    38273827
    38283828  cat >> confdefs.h <<EOF
    3829 #define EXTERNAL_MALLOC_H "${with_malloc}"
     3829#define EXTERNAL_MALLOC_H "${with_malloc_h}"
    38303830EOF
    38313831
  • MP/configure.in

    ra880e53 r638b6a  
    477477
    478478dnl Check for external memory managements
    479 AC_ARG_WITH(malloc, \
    480  [ --with-malloc=HEADER     use external malloc routines declared in HEADER])
    481 
    482 if test "${with_malloc+set}" = set; then
    483   AC_CHECK_HEADER(${with_malloc},,with_malloc=)
     479AC_ARG_WITH(malloc_h, \
     480 [ --with-malloc_h=HEADER     use external malloc routines declared in HEADER])
     481
     482if test "${with_malloc_h+set}" = set; then
     483  AC_CHECK_HEADER(${with_malloc_h},,with_malloc=)
    484484fi
    485485AC_MSG_CHECKING(where malloc rotuines come from)
    486 if test "${with_malloc+set}" = set; then
    487   AC_MSG_RESULT(${with_malloc})
     486if test "${with_malloc_h+set}" = set; then
     487  AC_MSG_RESULT(${with_malloc_h})
    488488  AC_DEFINE(WITH_EXTERNAL_MALLOC)
    489   AC_DEFINE_UNQUOTED(EXTERNAL_MALLOC_H, "${with_malloc}")
     489  AC_DEFINE_UNQUOTED(EXTERNAL_MALLOC_H, "${with_malloc_h}")
    490490else
    491491  AC_MSG_RESULT(stdlib.h)
Note: See TracChangeset for help on using the changeset viewer.