Changeset fe7bd4 in git for omalloc


Ignore:
Timestamp:
Sep 12, 2000, 6:02:19 PM (24 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
efbf544c4a216d0e1e4f4462018152a06d127e68
Parents:
a6a2396499d2b156f4ca28edaeb2a93bc1f3e68c
Message:
* small changes


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

Legend:

Unmodified
Added
Removed
  • omalloc/configure

    ra6a239 rfe7bd4  
    5656 --with-track-backtrace track stack backtraces"
    5757ac_help="$ac_help
     58"
     59ac_help="$ac_help
    5860 --with-internal-debug       
    5961                       turn on internal debugging"
     
    668670fi
    669671
     672# Check whether --with- --with-track-custom track custom values or --without- --with-track-custom track custom values was given.
     673if test "${with_ __with_track_custom track custom values+set}" = set; then
     674  withval="$with_ __with_track_custom track custom values"
     675  :
     676fi
     677 
    670678# Check whether --with-internal_debug or --without-internal_debug was given.
    671679if test "${with_internal_debug+set}" = set; then
     
    676684
    677685echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    678 echo "configure:679: checking whether ${MAKE-make} sets \${MAKE}" >&5
     686echo "configure:687: checking whether ${MAKE-make} sets \${MAKE}" >&5
    679687set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    680688if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    705713set dummy gcc; ac_word=$2
    706714echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    707 echo "configure:708: checking for $ac_word" >&5
     715echo "configure:716: checking for $ac_word" >&5
    708716if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    709717  echo $ac_n "(cached) $ac_c" 1>&6
     
    735743set dummy cc; ac_word=$2
    736744echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    737 echo "configure:738: checking for $ac_word" >&5
     745echo "configure:746: checking for $ac_word" >&5
    738746if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    739747  echo $ac_n "(cached) $ac_c" 1>&6
     
    786794set dummy cl; ac_word=$2
    787795echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    788 echo "configure:789: checking for $ac_word" >&5
     796echo "configure:797: checking for $ac_word" >&5
    789797if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    790798  echo $ac_n "(cached) $ac_c" 1>&6
     
    818826
    819827echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    820 echo "configure:821: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     828echo "configure:829: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    821829
    822830ac_ext=c
     
    829837cat > conftest.$ac_ext << EOF
    830838
    831 #line 832 "configure"
     839#line 840 "configure"
    832840#include "confdefs.h"
    833841
    834842main(){return(0);}
    835843EOF
    836 if { (eval echo configure:837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     844if { (eval echo configure:845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    837845  ac_cv_prog_cc_works=yes
    838846  # If we can't run a trivial program, we are probably using a cross compiler.
     
    860868fi
    861869echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    862 echo "configure:863: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     870echo "configure:871: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    863871echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    864872cross_compiling=$ac_cv_prog_cc_cross
    865873
    866874echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    867 echo "configure:868: checking whether we are using GNU C" >&5
     875echo "configure:876: checking whether we are using GNU C" >&5
    868876if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    869877  echo $ac_n "(cached) $ac_c" 1>&6
     
    874882#endif
    875883EOF
    876 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     884if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    877885  ac_cv_prog_gcc=yes
    878886else
     
    893901CFLAGS=
    894902echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    895 echo "configure:896: checking whether ${CC-cc} accepts -g" >&5
     903echo "configure:904: checking whether ${CC-cc} accepts -g" >&5
    896904if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    897905  echo $ac_n "(cached) $ac_c" 1>&6
     
    925933
    926934echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    927 echo "configure:928: checking how to run the C preprocessor" >&5
     935echo "configure:936: checking how to run the C preprocessor" >&5
    928936# On Suns, sometimes $CPP names a directory.
    929937if test -n "$CPP" && test -d "$CPP"; then
     
    940948  # not just through cpp.
    941949  cat > conftest.$ac_ext <<EOF
    942 #line 943 "configure"
     950#line 951 "configure"
    943951#include "confdefs.h"
    944952#include <assert.h>
     
    946954EOF
    947955ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    948 { (eval echo configure:949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     956{ (eval echo configure:957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    949957ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    950958if test -z "$ac_err"; then
     
    957965  CPP="${CC-cc} -E -traditional-cpp"
    958966  cat > conftest.$ac_ext <<EOF
    959 #line 960 "configure"
     967#line 968 "configure"
    960968#include "confdefs.h"
    961969#include <assert.h>
     
    963971EOF
    964972ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    965 { (eval echo configure:966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     973{ (eval echo configure:974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    966974ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    967975if test -z "$ac_err"; then
     
    974982  CPP="${CC-cc} -nologo -E"
    975983  cat > conftest.$ac_ext <<EOF
    976 #line 977 "configure"
     984#line 985 "configure"
    977985#include "confdefs.h"
    978986#include <assert.h>
     
    980988EOF
    981989ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    982 { (eval echo configure:983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     990{ (eval echo configure:991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    983991ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    984992if test -z "$ac_err"; then
     
    10071015set dummy ranlib; ac_word=$2
    10081016echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1009 echo "configure:1010: checking for $ac_word" >&5
     1017echo "configure:1018: checking for $ac_word" >&5
    10101018if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
    10111019  echo $ac_n "(cached) $ac_c" 1>&6
     
    10351043
    10361044echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
    1037 echo "configure:1038: checking whether ln -s works" >&5
     1045echo "configure:1046: checking whether ln -s works" >&5
    10381046if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
    10391047  echo $ac_n "(cached) $ac_c" 1>&6
     
    10861094# ./install, which can be erroneously created by make from ./install.sh.
    10871095echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    1088 echo "configure:1089: checking for a BSD compatible install" >&5
     1096echo "configure:1097: checking for a BSD compatible install" >&5
    10891097if test -z "$INSTALL"; then
    10901098if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    11391147
    11401148echo $ac_n "checking for working const""... $ac_c" 1>&6
    1141 echo "configure:1142: checking for working const" >&5
     1149echo "configure:1150: checking for working const" >&5
    11421150if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    11431151  echo $ac_n "(cached) $ac_c" 1>&6
    11441152else
    11451153  cat > conftest.$ac_ext <<EOF
    1146 #line 1147 "configure"
     1154#line 1155 "configure"
    11471155#include "confdefs.h"
    11481156
     
    11931201; return 0; }
    11941202EOF
    1195 if { (eval echo configure:1196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1203if { (eval echo configure:1204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    11961204  rm -rf conftest*
    11971205  ac_cv_c_const=yes
     
    12141222
    12151223echo $ac_n "checking for inline""... $ac_c" 1>&6
    1216 echo "configure:1217: checking for inline" >&5
     1224echo "configure:1225: checking for inline" >&5
    12171225if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
    12181226  echo $ac_n "(cached) $ac_c" 1>&6
     
    12211229for ac_kw in inline __inline__ __inline; do
    12221230  cat > conftest.$ac_ext <<EOF
    1223 #line 1224 "configure"
     1231#line 1232 "configure"
    12241232#include "confdefs.h"
    12251233
     
    12281236; return 0; }
    12291237EOF
    1230 if { (eval echo configure:1231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1238if { (eval echo configure:1239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    12311239  rm -rf conftest*
    12321240  ac_cv_c_inline=$ac_kw; break
     
    12571265set dummy ar; ac_word=$2
    12581266echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1259 echo "configure:1260: checking for $ac_word" >&5
     1267echo "configure:1268: checking for $ac_word" >&5
    12601268if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
    12611269  echo $ac_n "(cached) $ac_c" 1>&6
     
    12921300set dummy $ac_prog; ac_word=$2
    12931301echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1294 echo "configure:1295: checking for $ac_word" >&5
     1302echo "configure:1303: checking for $ac_word" >&5
    12951303if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
    12961304  echo $ac_n "(cached) $ac_c" 1>&6
     
    13291337set dummy addr2line; ac_word=$2
    13301338echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1331 echo "configure:1332: checking for $ac_word" >&5
     1339echo "configure:1340: checking for $ac_word" >&5
    13321340if eval "test \"`echo '$''{'ac_cv_prog_ADDR2LINE'+set}'`\" = set"; then
    13331341  echo $ac_n "(cached) $ac_c" 1>&6
     
    13641372
    13651373echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    1366 echo "configure:1367: checking for ANSI C header files" >&5
     1374echo "configure:1375: checking for ANSI C header files" >&5
    13671375if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    13681376  echo $ac_n "(cached) $ac_c" 1>&6
    13691377else
    13701378  cat > conftest.$ac_ext <<EOF
    1371 #line 1372 "configure"
     1379#line 1380 "configure"
    13721380#include "confdefs.h"
    13731381#include <stdlib.h>
     
    13771385EOF
    13781386ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1379 { (eval echo configure:1380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1387{ (eval echo configure:1388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    13801388ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    13811389if test -z "$ac_err"; then
     
    13941402  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    13951403cat > conftest.$ac_ext <<EOF
    1396 #line 1397 "configure"
     1404#line 1405 "configure"
    13971405#include "confdefs.h"
    13981406#include <string.h>
     
    14121420  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    14131421cat > conftest.$ac_ext <<EOF
    1414 #line 1415 "configure"
     1422#line 1423 "configure"
    14151423#include "confdefs.h"
    14161424#include <stdlib.h>
     
    14331441else
    14341442  cat > conftest.$ac_ext <<EOF
    1435 #line 1436 "configure"
     1443#line 1444 "configure"
    14361444#include "confdefs.h"
    14371445#include <ctype.h>
     
    14441452
    14451453EOF
    1446 if { (eval echo configure:1447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1454if { (eval echo configure:1455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    14471455then
    14481456  :
     
    14711479ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    14721480echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1473 echo "configure:1474: checking for $ac_hdr" >&5
     1481echo "configure:1482: checking for $ac_hdr" >&5
    14741482if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    14751483  echo $ac_n "(cached) $ac_c" 1>&6
    14761484else
    14771485  cat > conftest.$ac_ext <<EOF
    1478 #line 1479 "configure"
     1486#line 1487 "configure"
    14791487#include "confdefs.h"
    14801488#include <$ac_hdr>
    14811489EOF
    14821490ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1483 { (eval echo configure:1484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1491{ (eval echo configure:1492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    14841492ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    14851493if test -z "$ac_err"; then
     
    15121520ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    15131521echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1514 echo "configure:1515: checking for $ac_hdr" >&5
     1522echo "configure:1523: checking for $ac_hdr" >&5
    15151523if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    15161524  echo $ac_n "(cached) $ac_c" 1>&6
    15171525else
    15181526  cat > conftest.$ac_ext <<EOF
    1519 #line 1520 "configure"
     1527#line 1528 "configure"
    15201528#include "confdefs.h"
    15211529#include <$ac_hdr>
    15221530EOF
    15231531ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1524 { (eval echo configure:1525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1532{ (eval echo configure:1533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    15251533ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    15261534if test -z "$ac_err"; then
     
    15491557
    15501558
    1551 for ac_func in popen readlink getcwd getwd mmap sbrk
     1559for ac_func in popen readlink getcwd getwd mmap sbrk random
    15521560do
    15531561echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1554 echo "configure:1555: checking for $ac_func" >&5
     1562echo "configure:1563: checking for $ac_func" >&5
    15551563if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    15561564  echo $ac_n "(cached) $ac_c" 1>&6
    15571565else
    15581566  cat > conftest.$ac_ext <<EOF
    1559 #line 1560 "configure"
     1567#line 1568 "configure"
    15601568#include "confdefs.h"
    15611569/* System header to define __stub macros and hopefully few prototypes,
     
    15801588; return 0; }
    15811589EOF
    1582 if { (eval echo configure:1583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1590if { (eval echo configure:1591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    15831591  rm -rf conftest*
    15841592  eval "ac_cv_func_$ac_func=yes"
     
    16081616# sizes
    16091617echo $ac_n "checking size of long""... $ac_c" 1>&6
    1610 echo "configure:1611: checking size of long" >&5
     1618echo "configure:1619: checking size of long" >&5
    16111619if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
    16121620  echo $ac_n "(cached) $ac_c" 1>&6
     
    16161624else
    16171625  cat > conftest.$ac_ext <<EOF
    1618 #line 1619 "configure"
     1626#line 1627 "configure"
    16191627#include "confdefs.h"
    16201628#include <stdio.h>
     
    16271635}
    16281636EOF
    1629 if { (eval echo configure:1630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1637if { (eval echo configure:1638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    16301638then
    16311639  ac_cv_sizeof_long=`cat conftestval`
     
    16471655
    16481656echo $ac_n "checking size of void*""... $ac_c" 1>&6
    1649 echo "configure:1650: checking size of void*" >&5
     1657echo "configure:1658: checking size of void*" >&5
    16501658if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then
    16511659  echo $ac_n "(cached) $ac_c" 1>&6
     
    16551663else
    16561664  cat > conftest.$ac_ext <<EOF
    1657 #line 1658 "configure"
     1665#line 1666 "configure"
    16581666#include "confdefs.h"
    16591667#include <stdio.h>
     
    16661674}
    16671675EOF
    1668 if { (eval echo configure:1669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1676if { (eval echo configure:1677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    16691677then
    16701678  ac_cv_sizeof_voidp=`cat conftestval`
     
    16861694
    16871695echo $ac_n "checking size of double""... $ac_c" 1>&6
    1688 echo "configure:1689: checking size of double" >&5
     1696echo "configure:1697: checking size of double" >&5
    16891697if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
    16901698  echo $ac_n "(cached) $ac_c" 1>&6
     
    16941702else
    16951703  cat > conftest.$ac_ext <<EOF
    1696 #line 1697 "configure"
     1704#line 1705 "configure"
    16971705#include "confdefs.h"
    16981706#include <stdio.h>
     
    17051713}
    17061714EOF
    1707 if { (eval echo configure:1708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1715if { (eval echo configure:1716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    17081716then
    17091717  ac_cv_sizeof_double=`cat conftestval`
     
    17251733
    17261734echo $ac_n "checking size of size_t""... $ac_c" 1>&6
    1727 echo "configure:1728: checking size of size_t" >&5
     1735echo "configure:1736: checking size of size_t" >&5
    17281736if eval "test \"`echo '$''{'ac_cv_sizeof_size_t'+set}'`\" = set"; then
    17291737  echo $ac_n "(cached) $ac_c" 1>&6
     
    17331741else
    17341742  cat > conftest.$ac_ext <<EOF
    1735 #line 1736 "configure"
     1743#line 1744 "configure"
    17361744#include "confdefs.h"
    17371745#include <stdio.h>
     
    17441752}
    17451753EOF
    1746 if { (eval echo configure:1747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1754if { (eval echo configure:1755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    17471755then
    17481756  ac_cv_sizeof_size_t=`cat conftestval`
     
    17751783
    17761784echo $ac_n "checking size of system page""... $ac_c" 1>&6
    1777 echo "configure:1778: checking size of system page" >&5
     1785echo "configure:1786: checking size of system page" >&5
    17781786if eval "test \"`echo '$''{'ac_cv_pagesize'+set}'`\" = set"; then
    17791787  echo $ac_n "(cached) $ac_c" 1>&6
     
    17831791else
    17841792  cat > conftest.$ac_ext <<EOF
    1785 #line 1786 "configure"
     1793#line 1794 "configure"
    17861794#include "confdefs.h"
    17871795#include <stdio.h>
     
    17961804}
    17971805EOF
    1798 if { (eval echo configure:1799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1806if { (eval echo configure:1807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    17991807then
    18001808  ac_cv_pagesize=`cat conftestval`
     
    18221830if test "$ac_cv_func_mmap" = yes; then
    18231831echo $ac_n "checking whether mmap works""... $ac_c" 1>&6
    1824 echo "configure:1825: checking whether mmap works" >&5
     1832echo "configure:1833: checking whether mmap works" >&5
    18251833if eval "test \"`echo '$''{'ac_cv_working_mmap'+set}'`\" = set"; then
    18261834  echo $ac_n "(cached) $ac_c" 1>&6
     
    18301838else
    18311839  cat > conftest.$ac_ext <<EOF
    1832 #line 1833 "configure"
     1840#line 1841 "configure"
    18331841#include "confdefs.h"
    18341842
     
    18421850}
    18431851EOF
    1844 if { (eval echo configure:1845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1852if { (eval echo configure:1853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    18451853then
    18461854  ac_cv_working_mmap=yes
     
    18661874
    18671875echo $ac_n "checking whether alignment needs to be strict""... $ac_c" 1>&6
    1868 echo "configure:1869: checking whether alignment needs to be strict" >&5
     1876echo "configure:1877: checking whether alignment needs to be strict" >&5
    18691877if eval "test \"`echo '$''{'ac_cv_align_need_strict'+set}'`\" = set"; then
    18701878  echo $ac_n "(cached) $ac_c" 1>&6
     
    18741882else
    18751883  cat > conftest.$ac_ext <<EOF
    1876 #line 1877 "configure"
     1884#line 1885 "configure"
    18771885#include "confdefs.h"
    18781886 
     
    18891897
    18901898EOF
    1891 if { (eval echo configure:1892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1899if { (eval echo configure:1900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    18921900then
    18931901  ac_cv_align_need_strict=no
     
    19061914
    19071915echo $ac_n "checking for external config files""... $ac_c" 1>&6
    1908 echo "configure:1909: checking for external config files" >&5
     1916echo "configure:1917: checking for external config files" >&5
    19091917if test "${with_external_config_h+set}" = set; then
    19101918    cat >> confdefs.h <<\EOF
     
    19321940
    19331941echo $ac_n "checking which malloc to use""... $ac_c" 1>&6
    1934 echo "configure:1935: checking which malloc to use" >&5
     1942echo "configure:1943: checking which malloc to use" >&5
    19351943if test "${with_malloc}" = system; then
    19361944  OM_MALLOC_HEADER=omMallocSystem.h
     
    19691977
    19701978echo $ac_n "checking whether malloc provides SizeOfAddr""... $ac_c" 1>&6
    1971 echo "configure:1972: checking whether malloc provides SizeOfAddr" >&5
     1979echo "configure:1980: checking whether malloc provides SizeOfAddr" >&5
    19721980if test "${ac_cv_malloc_sizeof_addr}" = no; then
    19731981  echo "$ac_t""(cached) no" 1>&6
     
    19791987else
    19801988  cat > conftest.$ac_ext <<EOF
    1981 #line 1982 "configure"
     1989#line 1990 "configure"
    19821990#include "confdefs.h"
    19831991
     
    19962004
    19972005EOF
    1998 if { (eval echo configure:1999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2006if { (eval echo configure:2007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    19992007then
    20002008  ac_cv_malloc_sizeof_addr="${OM_MALLOC_HEADER}_${OM_MALLOC_SOURCE}"
     
    20442052
    20452053echo $ac_n "checking whether working valloc exists""... $ac_c" 1>&6
    2046 echo "configure:2047: checking whether working valloc exists" >&5
     2054echo "configure:2055: checking whether working valloc exists" >&5
    20472055if test "${ac_cv_working_valloc}" = no; then
    20482056  echo "$ac_t""(cached) no" 1>&6
     
    20542062else
    20552063  cat > conftest.$ac_ext <<EOF
    2056 #line 2057 "configure"
     2064#line 2065 "configure"
    20572065#include "confdefs.h"
    20582066
     
    20722080
    20732081EOF
    2074 if { (eval echo configure:2075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2082if { (eval echo configure:2083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    20752083then
    20762084  ac_cv_working_valloc="${OM_MALLOC_HEADER}_${OM_MALLOC_SOURCE}"
     
    20922100
    20932101echo $ac_n "checking which valloc to use""... $ac_c" 1>&6
    2094 echo "configure:2095: checking which valloc to use" >&5
     2102echo "configure:2103: checking which valloc to use" >&5
    20952103if test "${with_valloc+set}" != set || test "${with_valloc}" = mmap; then
    20962104  if test "${ac_cv_working_mmap}" = yes; then
     
    21172125
    21182126echo $ac_n "checking whether to emulate omalloc""... $ac_c" 1>&6
    2119 echo "configure:2120: checking whether to emulate omalloc" >&5
     2127echo "configure:2128: checking whether to emulate omalloc" >&5
    21202128if test "${with_emulate_omalloc}" = yes; then
    21212129  cat >> confdefs.h <<\EOF
     
    21292137
    21302138echo $ac_n "checking how to align""... $ac_c" 1>&6
    2131 echo "configure:2132: checking how to align" >&5
     2139echo "configure:2140: checking how to align" >&5
    21322140if test "$with_align" = 8 || test "$ac_cv_sizeof_long" = 8; then
    21332141  ac_cv_align=8
     
    21502158
    21512159echo $ac_n "checking whether to use dense bins""... $ac_c" 1>&6
    2152 echo "configure:2153: checking whether to use dense bins" >&5
     2160echo "configure:2161: checking whether to use dense bins" >&5
    21532161if test "$with_dense_bins" = yes; then
    21542162echo "$ac_t""yes" 1>&6
     
    21622170
    21632171echo $ac_n "checking whether to disable debugging""... $ac_c" 1>&6
    2164 echo "configure:2165: checking whether to disable debugging" >&5
     2172echo "configure:2173: checking whether to disable debugging" >&5
    21652173if test "$with_debug" != no; then
    21662174echo "$ac_t""no" 1>&6
     
    21752183
    21762184echo $ac_n "checking whether to have tracking debug functionality""... $ac_c" 1>&6
    2177 echo "configure:2178: checking whether to have tracking debug functionality" >&5
     2185echo "configure:2186: checking whether to have tracking debug functionality" >&5
    21782186if test "$with_track" != no; then
    21792187echo "$ac_t""yes" 1>&6
     
    21872195
    21882196echo $ac_n "checking whether to use internal debug""... $ac_c" 1>&6
    2189 echo "configure:2190: checking whether to use internal debug" >&5
     2197echo "configure:2198: checking whether to use internal debug" >&5
    21902198if test "$with_internal_debug" = yes; then
    21912199echo "$ac_t""yes" 1>&6
     
    22002208
    22012209echo $ac_n "checking whether to inline""... $ac_c" 1>&6
    2202 echo "configure:2203: checking whether to inline" >&5
     2210echo "configure:2211: checking whether to inline" >&5
    22032211if test "$ac_cv_c_inline" != no && test "$with_inline" != no; then
    22042212  cat >> confdefs.h <<EOF
     
    22362244
    22372245echo $ac_n "checking whether GET_RET_ADDR works""... $ac_c" 1>&6
    2238 echo "configure:2239: checking whether GET_RET_ADDR works" >&5
     2246echo "configure:2247: checking whether GET_RET_ADDR works" >&5
    22392247if eval "test \"`echo '$''{'ac_cv_get_return_addr_works'+set}'`\" = set"; then
    22402248  echo $ac_n "(cached) $ac_c" 1>&6
     
    22442252else
    22452253  cat > conftest.$ac_ext <<EOF
    2246 #line 2247 "configure"
     2254#line 2255 "configure"
    22472255#include "confdefs.h"
    22482256
     
    22602268
    22612269EOF
    2262 if { (eval echo configure:2263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2270if { (eval echo configure:2271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    22632271then
    22642272  ac_cv_get_return_addr_works=yes
     
    22832291
    22842292echo $ac_n "checking whether omGetBackTrace works""... $ac_c" 1>&6
    2285 echo "configure:2286: checking whether omGetBackTrace works" >&5
     2293echo "configure:2294: checking whether omGetBackTrace works" >&5
    22862294if eval "test \"`echo '$''{'ac_cv_get_backtrace_works'+set}'`\" = set"; then
    22872295  echo $ac_n "(cached) $ac_c" 1>&6
     
    22912299else
    22922300  cat > conftest.$ac_ext <<EOF
    2293 #line 2294 "configure"
     2301#line 2302 "configure"
    22942302#include "confdefs.h"
    22952303
     
    23122320
    23132321EOF
    2314 if { (eval echo configure:2315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2322if { (eval echo configure:2323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    23152323then
    23162324  ac_cv_get_backtrace_works=yes
     
    23352343
    23362344echo $ac_n "checking whether addr2line works""... $ac_c" 1>&6
    2337 echo "configure:2338: checking whether addr2line works" >&5
     2345echo "configure:2346: checking whether addr2line works" >&5
    23382346if eval "test \"`echo '$''{'ac_cv_prog_addr2line_works'+set}'`\" = set"; then
    23392347  echo $ac_n "(cached) $ac_c" 1>&6
     
    23432351else
    23442352  cat > conftest.$ac_ext <<EOF
    2345 #line 2346 "configure"
     2353#line 2354 "configure"
    23462354#include "confdefs.h"
    23472355
     
    23762384
    23772385EOF
    2378 if { (eval echo configure:2379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2386if { (eval echo configure:2387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    23792387then
    23802388  ac_cv_prog_addr2line_works=yes
     
    23932401 
    23942402echo $ac_n "checking whether to track return addresses""... $ac_c" 1>&6
    2395 echo "configure:2396: checking whether to track return addresses" >&5
     2403echo "configure:2404: checking whether to track return addresses" >&5
    23962404if test "$with_track_return" = no || test "$ac_cv_get_return_addr_works" = no || test "$ac_cv_prog_addr2line_works" != yes; then
    23972405  with_track_return=no
     
    24062414
    24072415echo $ac_n "checking whether to track files and line numbers""... $ac_c" 1>&6
    2408 echo "configure:2409: checking whether to track files and line numbers" >&5
     2416echo "configure:2417: checking whether to track files and line numbers" >&5
    24092417if test "$with_track_fl" = no && test "$with_track_return" = no; then
    24102418  with_track_fl=yes
     
    24262434
    24272435echo $ac_n "checking whether to track stack backtraces""... $ac_c" 1>&6
    2428 echo "configure:2429: checking whether to track stack backtraces" >&5
     2436echo "configure:2437: checking whether to track stack backtraces" >&5
    24292437if test "$with_track" != no && test "$ac_cv_get_backtrace_works" = yes && test "$with_track_backtrace" != no && test "$ac_cv_prog_addr2line_works" = yes; then
    24302438  with_track_backtrace=yes
     
    24372445fi
    24382446echo "$ac_t""$with_track_backtrace" 1>&6
    2439  
     2447
     2448echo $ac_n "checking whether to track custom values""... $ac_c" 1>&6
     2449echo "configure:2450: checking whether to track custom values" >&5 
     2450if test "$with_track" != no && test "$with_track_custom" = yes; then
     2451  cat >> confdefs.h <<\EOF
     2452#define OM_TRACK_CUSTOM 1
     2453EOF
     2454
     2455else
     2456  with_track_custom=no
     2457fi
     2458echo "$ac_t""$with_track_custom" 1>&6
     2459
    24402460
    24412461
  • omalloc/configure.in

    ra6a239 rfe7bd4  
    44dnl Author:  obachman@mathematik.uni-kl.de (Olaf Bachmann)
    55dnl Created: 11/99
    6 dnl Version: $Id: configure.in,v 1.7 2000-08-18 09:02:01 obachman Exp $
     6dnl Version: $Id: configure.in,v 1.8 2000-09-12 16:02:17 obachman Exp $
    77dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
    88
     
    7474  track-backtrace,
    7575  [ --with-track-backtrace track stack backtraces])
     76AC_ARG_WITH(
     77  [ --with-track-custom track custom values])
    7678AC_ARG_WITH(
    7779  internal_debug,
     
    556558fi
    557559AC_MSG_RESULT($with_track_backtrace)
    558  
     560
     561AC_MSG_CHECKING(whether to track custom values) 
     562if test "$with_track" != no && test "$with_track_custom" = yes; then
     563  AC_DEFINE(OM_TRACK_CUSTOM)
     564else
     565  with_track_custom=no
     566fi
     567AC_MSG_RESULT($with_track_custom)
     568
    559569dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
    560570dnl wrap it up
  • omalloc/omBinPage.c

    ra6a239 rfe7bd4  
    44 *  Author:  obachman (Olaf Bachmann)
    55 *  Created: 11/99
    6  *  Version: $Id: omBinPage.c,v 1.3 2000-08-14 12:26:41 obachman Exp $
     6 *  Version: $Id: omBinPage.c,v 1.4 2000-09-12 16:02:17 obachman Exp $
    77 *******************************************************************/
    88#include <limits.h>
     
    323323    om_Info.MaxRegionsAlloc = om_Info.CurrentRegionsAlloc;
    324324
    325   /* Update info so that max fields can be updated */
    326   omUpdateInfo();
    327 
    328325  return region;
    329326}
  • omalloc/omConfig.h.in

    ra6a239 rfe7bd4  
    55 *  Author:  obachman (Olaf Bachmann)
    66 *  Created: 11/99
    7  *  Version: $Id: omConfig.h.in,v 1.5 2000-08-14 12:37:00 obachman Exp $
     7 *  Version: $Id: omConfig.h.in,v 1.6 2000-09-12 16:02:18 obachman Exp $
    88 *******************************************************************/
    99#ifndef OM_CONFIG_H
     
    162162#undef OM_TRACK_BACKTRACE
    163163#endif
     164/* define to enable tracking of custom value */
     165#ifndef OM_TRACK_CUSTOM
     166#undef OM_TRACK_CUSTOM
     167#endif
    164168/* define to enable internal debugging */
    165169#ifndef OM_INTERNAL_DEBUG
  • omalloc/omDebug.c

    ra6a239 rfe7bd4  
    44 *  Author:  obachman@mathematik.uni-kl.de (Olaf Bachmann)
    55 *  Created: 7/00
    6  *  Version: $Id: omDebug.c,v 1.7 2000-08-18 09:05:51 obachman Exp $
     6 *  Version: $Id: omDebug.c,v 1.8 2000-09-12 16:02:18 obachman Exp $
    77 *******************************************************************/
    88#include <limits.h>
     
    225225  track = MAX(track, om_Opts.MinTrack);
    226226
     227#if 0
     228  // this breaks if SizeOfAddr(addr) > PAGESIZE
    227229  if (omIsBinPageAddr(addr))
    228230  {
     
    230232  }
    231233  else
     234#endif
    232235  {
    233236    size = ULONG_MAX;
    234237  }
    235 
    236238  while (addr[i] != '\0' && i < size) i++;
    237239  if (i == size)
  • omalloc/omDebug.h

    ra6a239 rfe7bd4  
    44 *  Author:  obachman@mathematik.uni-kl.de (Olaf Bachmann)
    55 *  Created: 7/00
    6  *  Version: $Id: omDebug.h,v 1.7 2000-08-18 09:05:51 obachman Exp $
     6 *  Version: $Id: omDebug.h,v 1.8 2000-09-12 16:02:18 obachman Exp $
    77 *******************************************************************/
    88#ifndef OM_DEBUG_H
     
    6565void omUnMarkMemoryAsStatic();
    6666#endif /* ! OM_NDEBUG */
     67
     68
     69#ifdef OM_TRACK_CUSTOM
     70#ifdef OM_NDEBUG
     71#define omSetCustomOfAddr(addr) ((void)0)
     72#define omGetCustomOfAddr(addr) ((void*)0)
     73#define omSetCustomOfTrackAddr(addr) ((void)0)
     74#define omGetCustomOfTrackAddr(addr) ((void*)0)
     75#else
     76void omSetCustomOfTrackAddr(void* addr, void* value);
     77void* omGetCustomOfTrackAddr(void* addr);
     78#define omSetCustomOfAddr(addr,value) \
     79  do{if (omIsTrackAddr(addr)) omSetCustomOfTrackAddr(addr,value);}while(0)
     80#define omGetCustomOfAddr(addr) \
     81  (omIsTrackAddr(addr) ? omGetCustomOfTrackAddr(addr) : NULL)
     82#endif /* OM_NDEBUG */
     83#endif /* OM_TRACK_CUSTOM */
    6784
    6885/*BEGINPRIVATE*/
  • omalloc/omDebugTrack.c

    ra6a239 rfe7bd4  
    44 *  Author:  obachman@mathematik.uni-kl.de (Olaf Bachmann)
    55 *  Created: 11/99
    6  *  Version: $Id: omDebugTrack.c,v 1.5 2000-08-24 14:07:10 obachman Exp $
     6 *  Version: $Id: omDebugTrack.c,v 1.6 2000-09-12 16:02:18 obachman Exp $
    77 *******************************************************************/
    88#include <limits.h>
     
    5858  /* track > 2 */
    5959  void*             bin_size;
     60    #ifdef OM_TRACK_CUSTOM
     61  void*             custom;
     62    #endif
    6063    #ifdef OM_TRACK_FILE_LINE
    6164      #define OM_TRACK_ADDR_MEM_3 free_line
     
    649652}
    650653
     654#ifdef OM_TRACK_CUSTOM
     655void omSetCustomOfTrackAddr(void* addr, void* value)
     656{
     657  omTrackAddr d_addr = omOutAddr_2_TrackAddr(addr);
     658  omAssume(omIsTrackAddr(addr));
     659 
     660  if (d_addr->track > 2)
     661  {
     662    d_addr->custom = value;
     663  }
     664}
     665
     666void* omGetCustomOfTrackAddr(void* addr)
     667{
     668  omTrackAddr d_addr = omOutAddr_2_TrackAddr(addr);
     669  omAssume(omIsTrackAddr(addr));
     670 
     671  if (d_addr->track > 2)
     672  {
     673    return d_addr->custom;
     674  }
     675  else
     676  {
     677    return NULL;
     678  }
     679}
     680#endif
     681
    651682#endif /* OM_HAVE_TRACK */
  • omalloc/omRet2Info.c

    ra6a239 rfe7bd4  
    44 *  Author:  obachman (Olaf Bachmann)
    55 *  Created: 11/99
    6  *  Version: $Id: omRet2Info.c,v 1.4 2000-08-16 12:06:11 obachman Exp $
     6 *  Version: $Id: omRet2Info.c,v 1.5 2000-09-12 16:02:19 obachman Exp $
    77 *******************************************************************/
    88#include <stdio.h>
     
    181181  omRetInfo_t info[OM_MAX_BACKTRACE_DEPTH];
    182182  if (max > OM_MAX_BACKTRACE_DEPTH) max = OM_MAX_BACKTRACE_DEPTH;
    183  
     183  for (i=0; i<max; i++)
     184  {
     185    if (bt[i] == NULL)
     186    {
     187      max = i+1;
     188      break;
     189    }
     190  }
    184191  i = omBackTrace_2_RetInfo(bt, info, max);
    185192#ifdef OM_TRACK_RETURN
Note: See TracChangeset for help on using the changeset viewer.