Changeset 78f1ab in git for omalloc


Ignore:
Timestamp:
Aug 18, 2000, 11:02:02 AM (24 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
91c4012e92bce3bc415daea0a46673b73670bbc3
Parents:
c27956fe36110f606d89715478bf953a97316957
Message:
HP porting


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

Legend:

Unmodified
Added
Removed
  • omalloc/configure

    rc27956 r78f1ab  
    12871287  { echo "configure: error: *** ar program not found" 1>&2; exit 1; }
    12881288fi
    1289 # Extract the first word of "perl", so it can be a program name with args.
    1290 set dummy perl; ac_word=$2
     1289for ac_prog in perl
     1290do
     1291# Extract the first word of "$ac_prog", so it can be a program name with args.
     1292set dummy $ac_prog; ac_word=$2
    12911293echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1292 echo "configure:1293: checking for $ac_word" >&5
     1294echo "configure:1295: checking for $ac_word" >&5
    12931295if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
    12941296  echo $ac_n "(cached) $ac_c" 1>&6
     
    13021304    test -z "$ac_dir" && ac_dir=.
    13031305    if test -f $ac_dir/$ac_word; then
    1304       ac_cv_prog_PERL="perl"
     1306      ac_cv_prog_PERL="$ac_prog"
    13051307      break
    13061308    fi
    13071309  done
    13081310  IFS="$ac_save_ifs"
    1309   test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL=":"
    13101311fi
    13111312fi
     
    13171318fi
    13181319
    1319 if test "$ac_cv_prog_PERL" != perl; then
     1320test -n "$PERL" && break
     1321done
     1322test -n "$PERL" || PERL=""no""
     1323
     1324if test "$ac_cv_prog_PERL" = no; then
    13201325  { echo "configure: error: *** perl program not found" 1>&2; exit 1; }
    13211326fi
     
    13241329set dummy addr2line; ac_word=$2
    13251330echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1326 echo "configure:1327: checking for $ac_word" >&5
     1331echo "configure:1332: checking for $ac_word" >&5
    13271332if eval "test \"`echo '$''{'ac_cv_prog_ADDR2LINE'+set}'`\" = set"; then
    13281333  echo $ac_n "(cached) $ac_c" 1>&6
     
    13591364
    13601365echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    1361 echo "configure:1362: checking for ANSI C header files" >&5
     1366echo "configure:1367: checking for ANSI C header files" >&5
    13621367if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    13631368  echo $ac_n "(cached) $ac_c" 1>&6
    13641369else
    13651370  cat > conftest.$ac_ext <<EOF
    1366 #line 1367 "configure"
     1371#line 1372 "configure"
    13671372#include "confdefs.h"
    13681373#include <stdlib.h>
     
    13721377EOF
    13731378ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1374 { (eval echo configure:1375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1379{ (eval echo configure:1380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    13751380ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    13761381if test -z "$ac_err"; then
     
    13891394  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    13901395cat > conftest.$ac_ext <<EOF
    1391 #line 1392 "configure"
     1396#line 1397 "configure"
    13921397#include "confdefs.h"
    13931398#include <string.h>
     
    14071412  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    14081413cat > conftest.$ac_ext <<EOF
    1409 #line 1410 "configure"
     1414#line 1415 "configure"
    14101415#include "confdefs.h"
    14111416#include <stdlib.h>
     
    14281433else
    14291434  cat > conftest.$ac_ext <<EOF
    1430 #line 1431 "configure"
     1435#line 1436 "configure"
    14311436#include "confdefs.h"
    14321437#include <ctype.h>
     
    14391444
    14401445EOF
    1441 if { (eval echo configure:1442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1446if { (eval echo configure:1447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    14421447then
    14431448  :
     
    14661471ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    14671472echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1468 echo "configure:1469: checking for $ac_hdr" >&5
     1473echo "configure:1474: checking for $ac_hdr" >&5
    14691474if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    14701475  echo $ac_n "(cached) $ac_c" 1>&6
    14711476else
    14721477  cat > conftest.$ac_ext <<EOF
    1473 #line 1474 "configure"
     1478#line 1479 "configure"
    14741479#include "confdefs.h"
    14751480#include <$ac_hdr>
    14761481EOF
    14771482ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1478 { (eval echo configure:1479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1483{ (eval echo configure:1484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    14791484ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    14801485if test -z "$ac_err"; then
     
    15071512ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    15081513echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1509 echo "configure:1510: checking for $ac_hdr" >&5
     1514echo "configure:1515: checking for $ac_hdr" >&5
    15101515if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    15111516  echo $ac_n "(cached) $ac_c" 1>&6
    15121517else
    15131518  cat > conftest.$ac_ext <<EOF
    1514 #line 1515 "configure"
     1519#line 1520 "configure"
    15151520#include "confdefs.h"
    15161521#include <$ac_hdr>
    15171522EOF
    15181523ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1519 { (eval echo configure:1520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1524{ (eval echo configure:1525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    15201525ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    15211526if test -z "$ac_err"; then
     
    15471552do
    15481553echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1549 echo "configure:1550: checking for $ac_func" >&5
     1554echo "configure:1555: checking for $ac_func" >&5
    15501555if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    15511556  echo $ac_n "(cached) $ac_c" 1>&6
    15521557else
    15531558  cat > conftest.$ac_ext <<EOF
    1554 #line 1555 "configure"
     1559#line 1560 "configure"
    15551560#include "confdefs.h"
    15561561/* System header to define __stub macros and hopefully few prototypes,
     
    15751580; return 0; }
    15761581EOF
    1577 if { (eval echo configure:1578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1582if { (eval echo configure:1583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    15781583  rm -rf conftest*
    15791584  eval "ac_cv_func_$ac_func=yes"
     
    16031608# sizes
    16041609echo $ac_n "checking size of long""... $ac_c" 1>&6
    1605 echo "configure:1606: checking size of long" >&5
     1610echo "configure:1611: checking size of long" >&5
    16061611if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
    16071612  echo $ac_n "(cached) $ac_c" 1>&6
     
    16111616else
    16121617  cat > conftest.$ac_ext <<EOF
    1613 #line 1614 "configure"
     1618#line 1619 "configure"
    16141619#include "confdefs.h"
    16151620#include <stdio.h>
     
    16221627}
    16231628EOF
    1624 if { (eval echo configure:1625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1629if { (eval echo configure:1630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    16251630then
    16261631  ac_cv_sizeof_long=`cat conftestval`
     
    16421647
    16431648echo $ac_n "checking size of void*""... $ac_c" 1>&6
    1644 echo "configure:1645: checking size of void*" >&5
     1649echo "configure:1650: checking size of void*" >&5
    16451650if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then
    16461651  echo $ac_n "(cached) $ac_c" 1>&6
     
    16501655else
    16511656  cat > conftest.$ac_ext <<EOF
    1652 #line 1653 "configure"
     1657#line 1658 "configure"
    16531658#include "confdefs.h"
    16541659#include <stdio.h>
     
    16611666}
    16621667EOF
    1663 if { (eval echo configure:1664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1668if { (eval echo configure:1669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    16641669then
    16651670  ac_cv_sizeof_voidp=`cat conftestval`
     
    16811686
    16821687echo $ac_n "checking size of double""... $ac_c" 1>&6
    1683 echo "configure:1684: checking size of double" >&5
     1688echo "configure:1689: checking size of double" >&5
    16841689if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
    16851690  echo $ac_n "(cached) $ac_c" 1>&6
     
    16891694else
    16901695  cat > conftest.$ac_ext <<EOF
    1691 #line 1692 "configure"
     1696#line 1697 "configure"
    16921697#include "confdefs.h"
    16931698#include <stdio.h>
     
    17001705}
    17011706EOF
    1702 if { (eval echo configure:1703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1707if { (eval echo configure:1708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    17031708then
    17041709  ac_cv_sizeof_double=`cat conftestval`
     
    17201725
    17211726echo $ac_n "checking size of size_t""... $ac_c" 1>&6
    1722 echo "configure:1723: checking size of size_t" >&5
     1727echo "configure:1728: checking size of size_t" >&5
    17231728if eval "test \"`echo '$''{'ac_cv_sizeof_size_t'+set}'`\" = set"; then
    17241729  echo $ac_n "(cached) $ac_c" 1>&6
     
    17281733else
    17291734  cat > conftest.$ac_ext <<EOF
    1730 #line 1731 "configure"
     1735#line 1736 "configure"
    17311736#include "confdefs.h"
    17321737#include <stdio.h>
     
    17391744}
    17401745EOF
    1741 if { (eval echo configure:1742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1746if { (eval echo configure:1747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    17421747then
    17431748  ac_cv_sizeof_size_t=`cat conftestval`
     
    17701775
    17711776echo $ac_n "checking size of system page""... $ac_c" 1>&6
    1772 echo "configure:1773: checking size of system page" >&5
     1777echo "configure:1778: checking size of system page" >&5
    17731778if eval "test \"`echo '$''{'ac_cv_pagesize'+set}'`\" = set"; then
    17741779  echo $ac_n "(cached) $ac_c" 1>&6
     
    17781783else
    17791784  cat > conftest.$ac_ext <<EOF
    1780 #line 1781 "configure"
     1785#line 1786 "configure"
    17811786#include "confdefs.h"
    17821787#include <stdio.h>
     
    17911796}
    17921797EOF
    1793 if { (eval echo configure:1794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1798if { (eval echo configure:1799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    17941799then
    17951800  ac_cv_pagesize=`cat conftestval`
     
    18171822if test "$ac_cv_func_mmap" = yes; then
    18181823echo $ac_n "checking whether mmap works""... $ac_c" 1>&6
    1819 echo "configure:1820: checking whether mmap works" >&5
     1824echo "configure:1825: checking whether mmap works" >&5
    18201825if eval "test \"`echo '$''{'ac_cv_working_mmap'+set}'`\" = set"; then
    18211826  echo $ac_n "(cached) $ac_c" 1>&6
     
    18251830else
    18261831  cat > conftest.$ac_ext <<EOF
    1827 #line 1828 "configure"
     1832#line 1833 "configure"
    18281833#include "confdefs.h"
    18291834
     
    18371842}
    18381843EOF
    1839 if { (eval echo configure:1840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1844if { (eval echo configure:1845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    18401845then
    18411846  ac_cv_working_mmap=yes
     
    18611866
    18621867echo $ac_n "checking whether alignment needs to be strict""... $ac_c" 1>&6
    1863 echo "configure:1864: checking whether alignment needs to be strict" >&5
     1868echo "configure:1869: checking whether alignment needs to be strict" >&5
    18641869if eval "test \"`echo '$''{'ac_cv_align_need_strict'+set}'`\" = set"; then
    18651870  echo $ac_n "(cached) $ac_c" 1>&6
     
    18691874else
    18701875  cat > conftest.$ac_ext <<EOF
    1871 #line 1872 "configure"
     1876#line 1877 "configure"
    18721877#include "confdefs.h"
    18731878 
     
    18841889
    18851890EOF
    1886 if { (eval echo configure:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1891if { (eval echo configure:1892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    18871892then
    18881893  ac_cv_align_need_strict=no
     
    19011906
    19021907echo $ac_n "checking for external config files""... $ac_c" 1>&6
    1903 echo "configure:1904: checking for external config files" >&5
     1908echo "configure:1909: checking for external config files" >&5
    19041909if test "${with_external_config_h+set}" = set; then
    19051910    cat >> confdefs.h <<\EOF
     
    19271932
    19281933echo $ac_n "checking which malloc to use""... $ac_c" 1>&6
    1929 echo "configure:1930: checking which malloc to use" >&5
     1934echo "configure:1935: checking which malloc to use" >&5
    19301935if test "${with_malloc}" = system; then
    19311936  OM_MALLOC_HEADER=omMallocSystem.h
     
    19641969
    19651970echo $ac_n "checking whether malloc provides SizeOfAddr""... $ac_c" 1>&6
    1966 echo "configure:1967: checking whether malloc provides SizeOfAddr" >&5
     1971echo "configure:1972: checking whether malloc provides SizeOfAddr" >&5
    19671972if test "${ac_cv_malloc_sizeof_addr}" = no; then
    19681973  echo "$ac_t""(cached) no" 1>&6
     
    19741979else
    19751980  cat > conftest.$ac_ext <<EOF
    1976 #line 1977 "configure"
     1981#line 1982 "configure"
    19771982#include "confdefs.h"
    19781983
     
    19911996
    19921997EOF
    1993 if { (eval echo configure:1994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1998if { (eval echo configure:1999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    19941999then
    19952000  ac_cv_malloc_sizeof_addr="${OM_MALLOC_HEADER}_${OM_MALLOC_SOURCE}"
     
    20392044
    20402045echo $ac_n "checking whether working valloc exists""... $ac_c" 1>&6
    2041 echo "configure:2042: checking whether working valloc exists" >&5
     2046echo "configure:2047: checking whether working valloc exists" >&5
    20422047if test "${ac_cv_working_valloc}" = no; then
    20432048  echo "$ac_t""(cached) no" 1>&6
     
    20492054else
    20502055  cat > conftest.$ac_ext <<EOF
    2051 #line 2052 "configure"
     2056#line 2057 "configure"
    20522057#include "confdefs.h"
    20532058
     
    20672072
    20682073EOF
    2069 if { (eval echo configure:2070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2074if { (eval echo configure:2075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    20702075then
    20712076  ac_cv_working_valloc="${OM_MALLOC_HEADER}_${OM_MALLOC_SOURCE}"
     
    20872092
    20882093echo $ac_n "checking which valloc to use""... $ac_c" 1>&6
    2089 echo "configure:2090: checking which valloc to use" >&5
     2094echo "configure:2095: checking which valloc to use" >&5
    20902095if test "${with_valloc+set}" != set || test "${with_valloc}" = mmap; then
    20912096  if test "${ac_cv_working_mmap}" = yes; then
     
    21122117
    21132118echo $ac_n "checking whether to emulate omalloc""... $ac_c" 1>&6
    2114 echo "configure:2115: checking whether to emulate omalloc" >&5
     2119echo "configure:2120: checking whether to emulate omalloc" >&5
    21152120if test "${with_emulate_omalloc}" = yes; then
    21162121  cat >> confdefs.h <<\EOF
     
    21242129
    21252130echo $ac_n "checking how to align""... $ac_c" 1>&6
    2126 echo "configure:2127: checking how to align" >&5
     2131echo "configure:2132: checking how to align" >&5
    21272132if test "$with_align" = 8 || test "$ac_cv_sizeof_long" = 8; then
    21282133  ac_cv_align=8
     
    21452150
    21462151echo $ac_n "checking whether to use dense bins""... $ac_c" 1>&6
    2147 echo "configure:2148: checking whether to use dense bins" >&5
     2152echo "configure:2153: checking whether to use dense bins" >&5
    21482153if test "$with_dense_bins" = yes; then
    21492154echo "$ac_t""yes" 1>&6
     
    21572162
    21582163echo $ac_n "checking whether to disable debugging""... $ac_c" 1>&6
    2159 echo "configure:2160: checking whether to disable debugging" >&5
     2164echo "configure:2165: checking whether to disable debugging" >&5
    21602165if test "$with_debug" != no; then
    21612166echo "$ac_t""no" 1>&6
     
    21702175
    21712176echo $ac_n "checking whether to have tracking debug functionality""... $ac_c" 1>&6
    2172 echo "configure:2173: checking whether to have tracking debug functionality" >&5
     2177echo "configure:2178: checking whether to have tracking debug functionality" >&5
    21732178if test "$with_track" != no; then
    21742179echo "$ac_t""yes" 1>&6
     
    21822187
    21832188echo $ac_n "checking whether to use internal debug""... $ac_c" 1>&6
    2184 echo "configure:2185: checking whether to use internal debug" >&5
     2189echo "configure:2190: checking whether to use internal debug" >&5
    21852190if test "$with_internal_debug" = yes; then
    21862191echo "$ac_t""yes" 1>&6
     
    21952200
    21962201echo $ac_n "checking whether to inline""... $ac_c" 1>&6
    2197 echo "configure:2198: checking whether to inline" >&5
     2202echo "configure:2203: checking whether to inline" >&5
    21982203if test "$ac_cv_c_inline" != no && test "$with_inline" != no; then
    21992204  cat >> confdefs.h <<EOF
     
    22312236
    22322237echo $ac_n "checking whether GET_RET_ADDR works""... $ac_c" 1>&6
    2233 echo "configure:2234: checking whether GET_RET_ADDR works" >&5
     2238echo "configure:2239: checking whether GET_RET_ADDR works" >&5
    22342239if eval "test \"`echo '$''{'ac_cv_get_return_addr_works'+set}'`\" = set"; then
    22352240  echo $ac_n "(cached) $ac_c" 1>&6
     
    22392244else
    22402245  cat > conftest.$ac_ext <<EOF
    2241 #line 2242 "configure"
     2246#line 2247 "configure"
    22422247#include "confdefs.h"
    22432248
     
    22552260
    22562261EOF
    2257 if { (eval echo configure:2258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2262if { (eval echo configure:2263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    22582263then
    22592264  ac_cv_get_return_addr_works=yes
     
    22782283
    22792284echo $ac_n "checking whether omGetBackTrace works""... $ac_c" 1>&6
    2280 echo "configure:2281: checking whether omGetBackTrace works" >&5
     2285echo "configure:2286: checking whether omGetBackTrace works" >&5
    22812286if eval "test \"`echo '$''{'ac_cv_get_backtrace_works'+set}'`\" = set"; then
    22822287  echo $ac_n "(cached) $ac_c" 1>&6
     
    22862291else
    22872292  cat > conftest.$ac_ext <<EOF
    2288 #line 2289 "configure"
     2293#line 2294 "configure"
    22892294#include "confdefs.h"
    22902295
     
    23072312
    23082313EOF
    2309 if { (eval echo configure:2310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2314if { (eval echo configure:2315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    23102315then
    23112316  ac_cv_get_backtrace_works=yes
     
    23302335
    23312336echo $ac_n "checking whether addr2line works""... $ac_c" 1>&6
    2332 echo "configure:2333: checking whether addr2line works" >&5
     2337echo "configure:2338: checking whether addr2line works" >&5
    23332338if eval "test \"`echo '$''{'ac_cv_prog_addr2line_works'+set}'`\" = set"; then
    23342339  echo $ac_n "(cached) $ac_c" 1>&6
     
    23382343else
    23392344  cat > conftest.$ac_ext <<EOF
    2340 #line 2341 "configure"
     2345#line 2346 "configure"
    23412346#include "confdefs.h"
    23422347
     
    23712376
    23722377EOF
    2373 if { (eval echo configure:2374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2378if { (eval echo configure:2379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    23742379then
    23752380  ac_cv_prog_addr2line_works=yes
     
    23882393 
    23892394echo $ac_n "checking whether to track return addresses""... $ac_c" 1>&6
    2390 echo "configure:2391: checking whether to track return addresses" >&5
     2395echo "configure:2396: checking whether to track return addresses" >&5
    23912396if test "$with_track_return" = no || test "$ac_cv_get_return_addr_works" = no || test "$ac_cv_prog_addr2line_works" != yes; then
    23922397  with_track_return=no
     
    24012406
    24022407echo $ac_n "checking whether to track files and line numbers""... $ac_c" 1>&6
    2403 echo "configure:2404: checking whether to track files and line numbers" >&5
     2408echo "configure:2409: checking whether to track files and line numbers" >&5
    24042409if test "$with_track_fl" = no && test "$with_track_return" = no; then
    24052410  with_track_fl=yes
     
    24212426
    24222427echo $ac_n "checking whether to track stack backtraces""... $ac_c" 1>&6
    2423 echo "configure:2424: checking whether to track stack backtraces" >&5
     2428echo "configure:2429: checking whether to track stack backtraces" >&5
    24242429if test "$with_track" != no && test "$ac_cv_get_backtrace_works" = yes && test "$with_track_backtrace" != no && test "$ac_cv_prog_addr2line_works" = yes; then
    24252430  with_track_backtrace=yes
  • omalloc/configure.in

    rc27956 r78f1ab  
    44dnl Author:  obachman@mathematik.uni-kl.de (Olaf Bachmann)
    55dnl Created: 11/99
    6 dnl Version: $Id: configure.in,v 1.6 2000-08-16 12:55:45 obachman Exp $
     6dnl Version: $Id: configure.in,v 1.7 2000-08-18 09:02:01 obachman Exp $
    77dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
    88
     
    103103  AC_MSG_ERROR(*** ar program not found)
    104104fi
    105 AC_CHECK_PROG(PERL, perl, perl, :)
    106 if test "$ac_cv_prog_PERL" != perl; then
     105AC_CHECK_PROGS(PERL, perl, "no")
     106if test "$ac_cv_prog_PERL" = no; then
    107107  AC_MSG_ERROR(*** perl program not found)
    108108fi
     
    121121AC_CHECK_HEADERS(unistd.h sys/mman.h fcntl.h /usr/include/malloc.h)
    122122
    123 AC_CHECK_FUNCS(popen readlink getcwd getwd mmap sbrk)
     123AC_CHECK_FUNCS(popen readlink getcwd getwd mmap sbrk random)
    124124
    125125dnl llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
  • omalloc/omtTest.c

    rc27956 r78f1ab  
    1313int seed;
    1414
     15#if defined (__hpux) || defined (__alpha)  || defined (__svr4__) || defined (__SVR4)
     16/* HPUX lacks random().  DEC OSF/1 1.2 random() returns a double.  */
     17long mrand48 ();
     18void srand48();
     19static long
     20random ()
     21{
     22  return mrand48 ();
     23}
     24static void srandom(long seed)
     25{
     26  srand48(seed);
     27}
     28#endif
    1529
    1630#if CHECK_LEVEL > 0
     
    152166  int spec = 1 + (int) ( ((double) SPEC_MAX)* ((double) random())/(RAND_MAX + 1.0));
    153167#else
    154   int spec = random() + 1;
     168  unsigned long spec = random() + 1;
    155169#endif 
    156170  if (! size_range_number)
     
    167181
    168182
    169 void TestAlloc(omMemCell cell, int spec)
     183void TestAlloc(omMemCell cell, unsigned long spec)
    170184{
    171185  if (DO_CHECK(spec))
     
    187201}
    188202
    189 void TestRealloc(omMemCell cell, int spec)
     203void TestRealloc(omMemCell cell, unsigned long spec)
    190204{
    191205  if (DO_CHECK(spec))
     
    207221}
    208222
    209 void TestDup(omMemCell cell, int spec)
     223void TestDup(omMemCell cell, unsigned long spec)
    210224{
    211225  if (DO_CHECK(spec))
     
    269283{
    270284  int i=0, error_test = 1;
    271   int spec, j;
     285  unsigned long spec, j;
    272286  int n = 1;
    273287  int n_cells = MAX_CELLS;
     
    340354    }
    341355    spec = MyRandSpec();
    342     myprintf("%d:%d:%d:%d", i, spec, GET_SIZE(spec), GET_TRACK(spec));
     356    myprintf("%d:%lu:%ld:%ld", i, spec, GET_SIZE(spec), GET_TRACK(spec));
    343357    myfflush(stdout);
    344358    if (DO_FREE(spec))
     
    348362        myprintf(" FREE");
    349363        j = spec % i;
    350         myprintf(" %d ", j);
     364        myprintf(" %ld ", j);
    351365        myfflush(stdout);
    352366        TestFree(&cells[j]);
     
    360374        myprintf(" REALLOC");
    361375        j = spec % i;
    362         myprintf(" %d ", j);
     376        myprintf(" %ld ", j);
    363377        myfflush(stdout);
    364378        TestRealloc(&cells[j], spec);
     
    371385        myprintf(" DUP");
    372386        j = spec % i;
    373         myprintf(" %d ", j);
     387        myprintf(" %ld ", j);
    374388        myfflush(stdout);
    375389        TestDup(&cells[j], spec);
  • omalloc/omtTest.h

    rc27956 r78f1ab  
    2121  void* addr;
    2222  omBin bin;
    23   int spec;
     23  unsigned long spec;
    2424};
    2525
     
    2828
    2929extern omMemCell_t cells[];
    30 void TestAlloc(omMemCell cell, int spec);
    31 void TestRealloc(omMemCell cell, int spec);
     30void TestAlloc(omMemCell cell, unsigned long spec);
     31void TestRealloc(omMemCell cell, unsigned long spec);
    3232void TestFree(omMemCell cell);
    3333
     
    8080#define PAGES_PER_REGION 128
    8181
    82 void omTestAlloc(omMemCell cell, int spec);
    83 void omTestRealloc(omMemCell cell, int spec);
    84 void omTestDup(omMemCell cell, int spec);
    85 void omTestFree(omMemCell cell);
     82void omtTestAlloc(omMemCell cell, unsigned long spec);
     83void omtTestRealloc(omMemCell cell, unsigned long spec);
     84void omtTestDup(omMemCell cell, unsigned long spec);
     85void omtTestFree(omMemCell cell);
    8686
    87 void omTestAllocDebug(omMemCell cell, int spec);
    88 void omTestReallocDebug(omMemCell cell, int spec);
    89 void omTestDupDebug(omMemCell cell, int spec);
    90 void omTestFreeDebug(omMemCell cell);
     87void omtTestAllocDebug(omMemCell cell, unsigned long spec);
     88void omtTestReallocDebug(omMemCell cell, unsigned long spec);
     89void omtTestDupDebug(omMemCell cell, unsigned long spec);
     90void omtTestFreeDebug(omMemCell cell);
    9191void InitCellAddrContent(omMemCell cell);
    92 int omTestErrors();
     92int omtTestErrors();
    9393
    9494#if CHECK_LEVEL > 0
    95 void omTestDebug(omMemCell cell);
     95void omtTestDebug(omMemCell cell);
    9696void TestAddrContent(void* addr, unsigned long value, size_t size);
    9797void TestAddrContentEqual(void* s1, void* s2, size_t size);
    9898#else
    99 #define omTestDebug(cell)               ((void)0)
     99#define omtTestDebug(cell)               ((void)0)
    100100#define TestAddrContent(a,v,s)          ((void)0)
    101101#define TestAddrContentEqual(s1, s2, s) ((void)0)
  • omalloc/omtTestAlloc.c

    rc27956 r78f1ab  
    44 *  Author:  obachman@mathematik.uni-kl.de (Olaf Bachmann)
    55 *  Created: 11/99
    6  *  Version: $Id: omtTestAlloc.c,v 1.3 2000-08-14 12:26:52 obachman Exp $
     6 *  Version: $Id: omtTestAlloc.c,v 1.4 2000-08-18 09:02:02 obachman Exp $
    77 *******************************************************************/
    88#include "omtTest.h"
     
    2222#endif
    2323
    24 void omtTestAlloc(omMemCell cell, int spec)
     24void omtTestAlloc(omMemCell cell, unsigned long spec)
    2525{
    2626  int size = GET_SIZE(spec);
     
    119119{
    120120  void* addr = cell->addr;
    121   int spec = cell->spec;
     121  unsigned long spec = cell->spec;
    122122  omBin bin = cell->bin;
    123123  size_t size = GET_SIZE(spec);
     
    150150}
    151151
    152 void omtTestRealloc(omMemCell cell, int new_spec)
     152void omtTestRealloc(omMemCell cell, unsigned long new_spec)
    153153{
    154154  void* old_addr = cell->addr;
     
    304304
    305305#define DO_STRDUP(l) (l & 1)
    306 void omtTestDup(omMemCell cell, int spec)
     306void omtTestDup(omMemCell cell, unsigned long spec)
    307307{
    308308  omtTestDebug(cell);
Note: See TracChangeset for help on using the changeset viewer.