- Timestamp:
- Aug 18, 2000, 11:02:02 AM (24 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 91c4012e92bce3bc415daea0a46673b73670bbc3
- Parents:
- c27956fe36110f606d89715478bf953a97316957
- Location:
- omalloc
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
omalloc/configure
rc27956 r78f1ab 1287 1287 { echo "configure: error: *** ar program not found" 1>&2; exit 1; } 1288 1288 fi 1289 # Extract the first word of "perl", so it can be a program name with args. 1290 set dummy perl; ac_word=$2 1289 for ac_prog in perl 1290 do 1291 # Extract the first word of "$ac_prog", so it can be a program name with args. 1292 set dummy $ac_prog; ac_word=$2 1291 1293 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1292 echo "configure:129 3: checking for $ac_word" >&51294 echo "configure:1295: checking for $ac_word" >&5 1293 1295 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then 1294 1296 echo $ac_n "(cached) $ac_c" 1>&6 … … 1302 1304 test -z "$ac_dir" && ac_dir=. 1303 1305 if test -f $ac_dir/$ac_word; then 1304 ac_cv_prog_PERL=" perl"1306 ac_cv_prog_PERL="$ac_prog" 1305 1307 break 1306 1308 fi 1307 1309 done 1308 1310 IFS="$ac_save_ifs" 1309 test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL=":"1310 1311 fi 1311 1312 fi … … 1317 1318 fi 1318 1319 1319 if test "$ac_cv_prog_PERL" != perl; then 1320 test -n "$PERL" && break 1321 done 1322 test -n "$PERL" || PERL=""no"" 1323 1324 if test "$ac_cv_prog_PERL" = no; then 1320 1325 { echo "configure: error: *** perl program not found" 1>&2; exit 1; } 1321 1326 fi … … 1324 1329 set dummy addr2line; ac_word=$2 1325 1330 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1326 echo "configure:13 27: checking for $ac_word" >&51331 echo "configure:1332: checking for $ac_word" >&5 1327 1332 if eval "test \"`echo '$''{'ac_cv_prog_ADDR2LINE'+set}'`\" = set"; then 1328 1333 echo $ac_n "(cached) $ac_c" 1>&6 … … 1359 1364 1360 1365 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1361 echo "configure:136 2: checking for ANSI C header files" >&51366 echo "configure:1367: checking for ANSI C header files" >&5 1362 1367 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1363 1368 echo $ac_n "(cached) $ac_c" 1>&6 1364 1369 else 1365 1370 cat > conftest.$ac_ext <<EOF 1366 #line 13 67"configure"1371 #line 1372 "configure" 1367 1372 #include "confdefs.h" 1368 1373 #include <stdlib.h> … … 1372 1377 EOF 1373 1378 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1374 { (eval echo configure:13 75: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1379 { (eval echo configure:1380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1375 1380 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1376 1381 if test -z "$ac_err"; then … … 1389 1394 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1390 1395 cat > conftest.$ac_ext <<EOF 1391 #line 139 2"configure"1396 #line 1397 "configure" 1392 1397 #include "confdefs.h" 1393 1398 #include <string.h> … … 1407 1412 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1408 1413 cat > conftest.$ac_ext <<EOF 1409 #line 141 0"configure"1414 #line 1415 "configure" 1410 1415 #include "confdefs.h" 1411 1416 #include <stdlib.h> … … 1428 1433 else 1429 1434 cat > conftest.$ac_ext <<EOF 1430 #line 143 1"configure"1435 #line 1436 "configure" 1431 1436 #include "confdefs.h" 1432 1437 #include <ctype.h> … … 1439 1444 1440 1445 EOF 1441 if { (eval echo configure:144 2: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1446 if { (eval echo configure:1447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1442 1447 then 1443 1448 : … … 1466 1471 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1467 1472 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1468 echo "configure:14 69: checking for $ac_hdr" >&51473 echo "configure:1474: checking for $ac_hdr" >&5 1469 1474 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1470 1475 echo $ac_n "(cached) $ac_c" 1>&6 1471 1476 else 1472 1477 cat > conftest.$ac_ext <<EOF 1473 #line 147 4"configure"1478 #line 1479 "configure" 1474 1479 #include "confdefs.h" 1475 1480 #include <$ac_hdr> 1476 1481 EOF 1477 1482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1478 { (eval echo configure:14 79: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1483 { (eval echo configure:1484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1479 1484 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1480 1485 if test -z "$ac_err"; then … … 1507 1512 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1508 1513 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1509 echo "configure:151 0: checking for $ac_hdr" >&51514 echo "configure:1515: checking for $ac_hdr" >&5 1510 1515 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1511 1516 echo $ac_n "(cached) $ac_c" 1>&6 1512 1517 else 1513 1518 cat > conftest.$ac_ext <<EOF 1514 #line 15 15"configure"1519 #line 1520 "configure" 1515 1520 #include "confdefs.h" 1516 1521 #include <$ac_hdr> 1517 1522 EOF 1518 1523 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1519 { (eval echo configure:152 0: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1524 { (eval echo configure:1525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1520 1525 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1521 1526 if test -z "$ac_err"; then … … 1547 1552 do 1548 1553 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1549 echo "configure:155 0: checking for $ac_func" >&51554 echo "configure:1555: checking for $ac_func" >&5 1550 1555 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1551 1556 echo $ac_n "(cached) $ac_c" 1>&6 1552 1557 else 1553 1558 cat > conftest.$ac_ext <<EOF 1554 #line 15 55"configure"1559 #line 1560 "configure" 1555 1560 #include "confdefs.h" 1556 1561 /* System header to define __stub macros and hopefully few prototypes, … … 1575 1580 ; return 0; } 1576 1581 EOF 1577 if { (eval echo configure:15 78: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1582 if { (eval echo configure:1583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1578 1583 rm -rf conftest* 1579 1584 eval "ac_cv_func_$ac_func=yes" … … 1603 1608 # sizes 1604 1609 echo $ac_n "checking size of long""... $ac_c" 1>&6 1605 echo "configure:16 06: checking size of long" >&51610 echo "configure:1611: checking size of long" >&5 1606 1611 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then 1607 1612 echo $ac_n "(cached) $ac_c" 1>&6 … … 1611 1616 else 1612 1617 cat > conftest.$ac_ext <<EOF 1613 #line 161 4"configure"1618 #line 1619 "configure" 1614 1619 #include "confdefs.h" 1615 1620 #include <stdio.h> … … 1622 1627 } 1623 1628 EOF 1624 if { (eval echo configure:16 25: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1629 if { (eval echo configure:1630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1625 1630 then 1626 1631 ac_cv_sizeof_long=`cat conftestval` … … 1642 1647 1643 1648 echo $ac_n "checking size of void*""... $ac_c" 1>&6 1644 echo "configure:16 45: checking size of void*" >&51649 echo "configure:1650: checking size of void*" >&5 1645 1650 if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then 1646 1651 echo $ac_n "(cached) $ac_c" 1>&6 … … 1650 1655 else 1651 1656 cat > conftest.$ac_ext <<EOF 1652 #line 165 3"configure"1657 #line 1658 "configure" 1653 1658 #include "confdefs.h" 1654 1659 #include <stdio.h> … … 1661 1666 } 1662 1667 EOF 1663 if { (eval echo configure:166 4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1668 if { (eval echo configure:1669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1664 1669 then 1665 1670 ac_cv_sizeof_voidp=`cat conftestval` … … 1681 1686 1682 1687 echo $ac_n "checking size of double""... $ac_c" 1>&6 1683 echo "configure:168 4: checking size of double" >&51688 echo "configure:1689: checking size of double" >&5 1684 1689 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then 1685 1690 echo $ac_n "(cached) $ac_c" 1>&6 … … 1689 1694 else 1690 1695 cat > conftest.$ac_ext <<EOF 1691 #line 169 2"configure"1696 #line 1697 "configure" 1692 1697 #include "confdefs.h" 1693 1698 #include <stdio.h> … … 1700 1705 } 1701 1706 EOF 1702 if { (eval echo configure:170 3: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1707 if { (eval echo configure:1708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1703 1708 then 1704 1709 ac_cv_sizeof_double=`cat conftestval` … … 1720 1725 1721 1726 echo $ac_n "checking size of size_t""... $ac_c" 1>&6 1722 echo "configure:172 3: checking size of size_t" >&51727 echo "configure:1728: checking size of size_t" >&5 1723 1728 if eval "test \"`echo '$''{'ac_cv_sizeof_size_t'+set}'`\" = set"; then 1724 1729 echo $ac_n "(cached) $ac_c" 1>&6 … … 1728 1733 else 1729 1734 cat > conftest.$ac_ext <<EOF 1730 #line 173 1"configure"1735 #line 1736 "configure" 1731 1736 #include "confdefs.h" 1732 1737 #include <stdio.h> … … 1739 1744 } 1740 1745 EOF 1741 if { (eval echo configure:174 2: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1746 if { (eval echo configure:1747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1742 1747 then 1743 1748 ac_cv_sizeof_size_t=`cat conftestval` … … 1770 1775 1771 1776 echo $ac_n "checking size of system page""... $ac_c" 1>&6 1772 echo "configure:177 3: checking size of system page" >&51777 echo "configure:1778: checking size of system page" >&5 1773 1778 if eval "test \"`echo '$''{'ac_cv_pagesize'+set}'`\" = set"; then 1774 1779 echo $ac_n "(cached) $ac_c" 1>&6 … … 1778 1783 else 1779 1784 cat > conftest.$ac_ext <<EOF 1780 #line 178 1"configure"1785 #line 1786 "configure" 1781 1786 #include "confdefs.h" 1782 1787 #include <stdio.h> … … 1791 1796 } 1792 1797 EOF 1793 if { (eval echo configure:179 4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1798 if { (eval echo configure:1799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1794 1799 then 1795 1800 ac_cv_pagesize=`cat conftestval` … … 1817 1822 if test "$ac_cv_func_mmap" = yes; then 1818 1823 echo $ac_n "checking whether mmap works""... $ac_c" 1>&6 1819 echo "configure:182 0: checking whether mmap works" >&51824 echo "configure:1825: checking whether mmap works" >&5 1820 1825 if eval "test \"`echo '$''{'ac_cv_working_mmap'+set}'`\" = set"; then 1821 1826 echo $ac_n "(cached) $ac_c" 1>&6 … … 1825 1830 else 1826 1831 cat > conftest.$ac_ext <<EOF 1827 #line 18 28"configure"1832 #line 1833 "configure" 1828 1833 #include "confdefs.h" 1829 1834 … … 1837 1842 } 1838 1843 EOF 1839 if { (eval echo configure:184 0: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1844 if { (eval echo configure:1845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1840 1845 then 1841 1846 ac_cv_working_mmap=yes … … 1861 1866 1862 1867 echo $ac_n "checking whether alignment needs to be strict""... $ac_c" 1>&6 1863 echo "configure:186 4: checking whether alignment needs to be strict" >&51868 echo "configure:1869: checking whether alignment needs to be strict" >&5 1864 1869 if eval "test \"`echo '$''{'ac_cv_align_need_strict'+set}'`\" = set"; then 1865 1870 echo $ac_n "(cached) $ac_c" 1>&6 … … 1869 1874 else 1870 1875 cat > conftest.$ac_ext <<EOF 1871 #line 187 2"configure"1876 #line 1877 "configure" 1872 1877 #include "confdefs.h" 1873 1878 … … 1884 1889 1885 1890 EOF 1886 if { (eval echo configure:18 87: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1891 if { (eval echo configure:1892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1887 1892 then 1888 1893 ac_cv_align_need_strict=no … … 1901 1906 1902 1907 echo $ac_n "checking for external config files""... $ac_c" 1>&6 1903 echo "configure:190 4: checking for external config files" >&51908 echo "configure:1909: checking for external config files" >&5 1904 1909 if test "${with_external_config_h+set}" = set; then 1905 1910 cat >> confdefs.h <<\EOF … … 1927 1932 1928 1933 echo $ac_n "checking which malloc to use""... $ac_c" 1>&6 1929 echo "configure:193 0: checking which malloc to use" >&51934 echo "configure:1935: checking which malloc to use" >&5 1930 1935 if test "${with_malloc}" = system; then 1931 1936 OM_MALLOC_HEADER=omMallocSystem.h … … 1964 1969 1965 1970 echo $ac_n "checking whether malloc provides SizeOfAddr""... $ac_c" 1>&6 1966 echo "configure:19 67: checking whether malloc provides SizeOfAddr" >&51971 echo "configure:1972: checking whether malloc provides SizeOfAddr" >&5 1967 1972 if test "${ac_cv_malloc_sizeof_addr}" = no; then 1968 1973 echo "$ac_t""(cached) no" 1>&6 … … 1974 1979 else 1975 1980 cat > conftest.$ac_ext <<EOF 1976 #line 19 77"configure"1981 #line 1982 "configure" 1977 1982 #include "confdefs.h" 1978 1983 … … 1991 1996 1992 1997 EOF 1993 if { (eval echo configure:199 4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1998 if { (eval echo configure:1999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1994 1999 then 1995 2000 ac_cv_malloc_sizeof_addr="${OM_MALLOC_HEADER}_${OM_MALLOC_SOURCE}" … … 2039 2044 2040 2045 echo $ac_n "checking whether working valloc exists""... $ac_c" 1>&6 2041 echo "configure:204 2: checking whether working valloc exists" >&52046 echo "configure:2047: checking whether working valloc exists" >&5 2042 2047 if test "${ac_cv_working_valloc}" = no; then 2043 2048 echo "$ac_t""(cached) no" 1>&6 … … 2049 2054 else 2050 2055 cat > conftest.$ac_ext <<EOF 2051 #line 205 2"configure"2056 #line 2057 "configure" 2052 2057 #include "confdefs.h" 2053 2058 … … 2067 2072 2068 2073 EOF 2069 if { (eval echo configure:207 0: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2074 if { (eval echo configure:2075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2070 2075 then 2071 2076 ac_cv_working_valloc="${OM_MALLOC_HEADER}_${OM_MALLOC_SOURCE}" … … 2087 2092 2088 2093 echo $ac_n "checking which valloc to use""... $ac_c" 1>&6 2089 echo "configure:209 0: checking which valloc to use" >&52094 echo "configure:2095: checking which valloc to use" >&5 2090 2095 if test "${with_valloc+set}" != set || test "${with_valloc}" = mmap; then 2091 2096 if test "${ac_cv_working_mmap}" = yes; then … … 2112 2117 2113 2118 echo $ac_n "checking whether to emulate omalloc""... $ac_c" 1>&6 2114 echo "configure:21 15: checking whether to emulate omalloc" >&52119 echo "configure:2120: checking whether to emulate omalloc" >&5 2115 2120 if test "${with_emulate_omalloc}" = yes; then 2116 2121 cat >> confdefs.h <<\EOF … … 2124 2129 2125 2130 echo $ac_n "checking how to align""... $ac_c" 1>&6 2126 echo "configure:21 27: checking how to align" >&52131 echo "configure:2132: checking how to align" >&5 2127 2132 if test "$with_align" = 8 || test "$ac_cv_sizeof_long" = 8; then 2128 2133 ac_cv_align=8 … … 2145 2150 2146 2151 echo $ac_n "checking whether to use dense bins""... $ac_c" 1>&6 2147 echo "configure:21 48: checking whether to use dense bins" >&52152 echo "configure:2153: checking whether to use dense bins" >&5 2148 2153 if test "$with_dense_bins" = yes; then 2149 2154 echo "$ac_t""yes" 1>&6 … … 2157 2162 2158 2163 echo $ac_n "checking whether to disable debugging""... $ac_c" 1>&6 2159 echo "configure:216 0: checking whether to disable debugging" >&52164 echo "configure:2165: checking whether to disable debugging" >&5 2160 2165 if test "$with_debug" != no; then 2161 2166 echo "$ac_t""no" 1>&6 … … 2170 2175 2171 2176 echo $ac_n "checking whether to have tracking debug functionality""... $ac_c" 1>&6 2172 echo "configure:217 3: checking whether to have tracking debug functionality" >&52177 echo "configure:2178: checking whether to have tracking debug functionality" >&5 2173 2178 if test "$with_track" != no; then 2174 2179 echo "$ac_t""yes" 1>&6 … … 2182 2187 2183 2188 echo $ac_n "checking whether to use internal debug""... $ac_c" 1>&6 2184 echo "configure:21 85: checking whether to use internal debug" >&52189 echo "configure:2190: checking whether to use internal debug" >&5 2185 2190 if test "$with_internal_debug" = yes; then 2186 2191 echo "$ac_t""yes" 1>&6 … … 2195 2200 2196 2201 echo $ac_n "checking whether to inline""... $ac_c" 1>&6 2197 echo "configure:2 198: checking whether to inline" >&52202 echo "configure:2203: checking whether to inline" >&5 2198 2203 if test "$ac_cv_c_inline" != no && test "$with_inline" != no; then 2199 2204 cat >> confdefs.h <<EOF … … 2231 2236 2232 2237 echo $ac_n "checking whether GET_RET_ADDR works""... $ac_c" 1>&6 2233 echo "configure:223 4: checking whether GET_RET_ADDR works" >&52238 echo "configure:2239: checking whether GET_RET_ADDR works" >&5 2234 2239 if eval "test \"`echo '$''{'ac_cv_get_return_addr_works'+set}'`\" = set"; then 2235 2240 echo $ac_n "(cached) $ac_c" 1>&6 … … 2239 2244 else 2240 2245 cat > conftest.$ac_ext <<EOF 2241 #line 224 2"configure"2246 #line 2247 "configure" 2242 2247 #include "confdefs.h" 2243 2248 … … 2255 2260 2256 2261 EOF 2257 if { (eval echo configure:22 58: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2262 if { (eval echo configure:2263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2258 2263 then 2259 2264 ac_cv_get_return_addr_works=yes … … 2278 2283 2279 2284 echo $ac_n "checking whether omGetBackTrace works""... $ac_c" 1>&6 2280 echo "configure:228 1: checking whether omGetBackTrace works" >&52285 echo "configure:2286: checking whether omGetBackTrace works" >&5 2281 2286 if eval "test \"`echo '$''{'ac_cv_get_backtrace_works'+set}'`\" = set"; then 2282 2287 echo $ac_n "(cached) $ac_c" 1>&6 … … 2286 2291 else 2287 2292 cat > conftest.$ac_ext <<EOF 2288 #line 22 89"configure"2293 #line 2294 "configure" 2289 2294 #include "confdefs.h" 2290 2295 … … 2307 2312 2308 2313 EOF 2309 if { (eval echo configure:231 0: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2314 if { (eval echo configure:2315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2310 2315 then 2311 2316 ac_cv_get_backtrace_works=yes … … 2330 2335 2331 2336 echo $ac_n "checking whether addr2line works""... $ac_c" 1>&6 2332 echo "configure:233 3: checking whether addr2line works" >&52337 echo "configure:2338: checking whether addr2line works" >&5 2333 2338 if eval "test \"`echo '$''{'ac_cv_prog_addr2line_works'+set}'`\" = set"; then 2334 2339 echo $ac_n "(cached) $ac_c" 1>&6 … … 2338 2343 else 2339 2344 cat > conftest.$ac_ext <<EOF 2340 #line 234 1"configure"2345 #line 2346 "configure" 2341 2346 #include "confdefs.h" 2342 2347 … … 2371 2376 2372 2377 EOF 2373 if { (eval echo configure:237 4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2378 if { (eval echo configure:2379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2374 2379 then 2375 2380 ac_cv_prog_addr2line_works=yes … … 2388 2393 2389 2394 echo $ac_n "checking whether to track return addresses""... $ac_c" 1>&6 2390 echo "configure:239 1: checking whether to track return addresses" >&52395 echo "configure:2396: checking whether to track return addresses" >&5 2391 2396 if test "$with_track_return" = no || test "$ac_cv_get_return_addr_works" = no || test "$ac_cv_prog_addr2line_works" != yes; then 2392 2397 with_track_return=no … … 2401 2406 2402 2407 echo $ac_n "checking whether to track files and line numbers""... $ac_c" 1>&6 2403 echo "configure:240 4: checking whether to track files and line numbers" >&52408 echo "configure:2409: checking whether to track files and line numbers" >&5 2404 2409 if test "$with_track_fl" = no && test "$with_track_return" = no; then 2405 2410 with_track_fl=yes … … 2421 2426 2422 2427 echo $ac_n "checking whether to track stack backtraces""... $ac_c" 1>&6 2423 echo "configure:242 4: checking whether to track stack backtraces" >&52428 echo "configure:2429: checking whether to track stack backtraces" >&5 2424 2429 if test "$with_track" != no && test "$ac_cv_get_backtrace_works" = yes && test "$with_track_backtrace" != no && test "$ac_cv_prog_addr2line_works" = yes; then 2425 2430 with_track_backtrace=yes -
omalloc/configure.in
rc27956 r78f1ab 4 4 dnl Author: obachman@mathematik.uni-kl.de (Olaf Bachmann) 5 5 dnl Created: 11/99 6 dnl Version: $Id: configure.in,v 1. 6 2000-08-16 12:55:45obachman Exp $6 dnl Version: $Id: configure.in,v 1.7 2000-08-18 09:02:01 obachman Exp $ 7 7 dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll 8 8 … … 103 103 AC_MSG_ERROR(*** ar program not found) 104 104 fi 105 AC_CHECK_PROG (PERL, perl, perl, :)106 if test "$ac_cv_prog_PERL" != perl; then105 AC_CHECK_PROGS(PERL, perl, "no") 106 if test "$ac_cv_prog_PERL" = no; then 107 107 AC_MSG_ERROR(*** perl program not found) 108 108 fi … … 121 121 AC_CHECK_HEADERS(unistd.h sys/mman.h fcntl.h /usr/include/malloc.h) 122 122 123 AC_CHECK_FUNCS(popen readlink getcwd getwd mmap sbrk )123 AC_CHECK_FUNCS(popen readlink getcwd getwd mmap sbrk random) 124 124 125 125 dnl llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll -
omalloc/omtTest.c
rc27956 r78f1ab 13 13 int seed; 14 14 15 #if defined (__hpux) || defined (__alpha) || defined (__svr4__) || defined (__SVR4) 16 /* HPUX lacks random(). DEC OSF/1 1.2 random() returns a double. */ 17 long mrand48 (); 18 void srand48(); 19 static long 20 random () 21 { 22 return mrand48 (); 23 } 24 static void srandom(long seed) 25 { 26 srand48(seed); 27 } 28 #endif 15 29 16 30 #if CHECK_LEVEL > 0 … … 152 166 int spec = 1 + (int) ( ((double) SPEC_MAX)* ((double) random())/(RAND_MAX + 1.0)); 153 167 #else 154 intspec = random() + 1;168 unsigned long spec = random() + 1; 155 169 #endif 156 170 if (! size_range_number) … … 167 181 168 182 169 void TestAlloc(omMemCell cell, intspec)183 void TestAlloc(omMemCell cell, unsigned long spec) 170 184 { 171 185 if (DO_CHECK(spec)) … … 187 201 } 188 202 189 void TestRealloc(omMemCell cell, intspec)203 void TestRealloc(omMemCell cell, unsigned long spec) 190 204 { 191 205 if (DO_CHECK(spec)) … … 207 221 } 208 222 209 void TestDup(omMemCell cell, intspec)223 void TestDup(omMemCell cell, unsigned long spec) 210 224 { 211 225 if (DO_CHECK(spec)) … … 269 283 { 270 284 int i=0, error_test = 1; 271 intspec, j;285 unsigned long spec, j; 272 286 int n = 1; 273 287 int n_cells = MAX_CELLS; … … 340 354 } 341 355 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)); 343 357 myfflush(stdout); 344 358 if (DO_FREE(spec)) … … 348 362 myprintf(" FREE"); 349 363 j = spec % i; 350 myprintf(" % d ", j);364 myprintf(" %ld ", j); 351 365 myfflush(stdout); 352 366 TestFree(&cells[j]); … … 360 374 myprintf(" REALLOC"); 361 375 j = spec % i; 362 myprintf(" % d ", j);376 myprintf(" %ld ", j); 363 377 myfflush(stdout); 364 378 TestRealloc(&cells[j], spec); … … 371 385 myprintf(" DUP"); 372 386 j = spec % i; 373 myprintf(" % d ", j);387 myprintf(" %ld ", j); 374 388 myfflush(stdout); 375 389 TestDup(&cells[j], spec); -
omalloc/omtTest.h
rc27956 r78f1ab 21 21 void* addr; 22 22 omBin bin; 23 intspec;23 unsigned long spec; 24 24 }; 25 25 … … 28 28 29 29 extern omMemCell_t cells[]; 30 void TestAlloc(omMemCell cell, intspec);31 void TestRealloc(omMemCell cell, intspec);30 void TestAlloc(omMemCell cell, unsigned long spec); 31 void TestRealloc(omMemCell cell, unsigned long spec); 32 32 void TestFree(omMemCell cell); 33 33 … … 80 80 #define PAGES_PER_REGION 128 81 81 82 void om TestAlloc(omMemCell cell, intspec);83 void om TestRealloc(omMemCell cell, intspec);84 void om TestDup(omMemCell cell, intspec);85 void om TestFree(omMemCell cell);82 void omtTestAlloc(omMemCell cell, unsigned long spec); 83 void omtTestRealloc(omMemCell cell, unsigned long spec); 84 void omtTestDup(omMemCell cell, unsigned long spec); 85 void omtTestFree(omMemCell cell); 86 86 87 void om TestAllocDebug(omMemCell cell, intspec);88 void om TestReallocDebug(omMemCell cell, intspec);89 void om TestDupDebug(omMemCell cell, intspec);90 void om TestFreeDebug(omMemCell cell);87 void omtTestAllocDebug(omMemCell cell, unsigned long spec); 88 void omtTestReallocDebug(omMemCell cell, unsigned long spec); 89 void omtTestDupDebug(omMemCell cell, unsigned long spec); 90 void omtTestFreeDebug(omMemCell cell); 91 91 void InitCellAddrContent(omMemCell cell); 92 int om TestErrors();92 int omtTestErrors(); 93 93 94 94 #if CHECK_LEVEL > 0 95 void om TestDebug(omMemCell cell);95 void omtTestDebug(omMemCell cell); 96 96 void TestAddrContent(void* addr, unsigned long value, size_t size); 97 97 void TestAddrContentEqual(void* s1, void* s2, size_t size); 98 98 #else 99 #define om TestDebug(cell) ((void)0)99 #define omtTestDebug(cell) ((void)0) 100 100 #define TestAddrContent(a,v,s) ((void)0) 101 101 #define TestAddrContentEqual(s1, s2, s) ((void)0) -
omalloc/omtTestAlloc.c
rc27956 r78f1ab 4 4 * Author: obachman@mathematik.uni-kl.de (Olaf Bachmann) 5 5 * 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 $ 7 7 *******************************************************************/ 8 8 #include "omtTest.h" … … 22 22 #endif 23 23 24 void omtTestAlloc(omMemCell cell, intspec)24 void omtTestAlloc(omMemCell cell, unsigned long spec) 25 25 { 26 26 int size = GET_SIZE(spec); … … 119 119 { 120 120 void* addr = cell->addr; 121 intspec = cell->spec;121 unsigned long spec = cell->spec; 122 122 omBin bin = cell->bin; 123 123 size_t size = GET_SIZE(spec); … … 150 150 } 151 151 152 void omtTestRealloc(omMemCell cell, intnew_spec)152 void omtTestRealloc(omMemCell cell, unsigned long new_spec) 153 153 { 154 154 void* old_addr = cell->addr; … … 304 304 305 305 #define DO_STRDUP(l) (l & 1) 306 void omtTestDup(omMemCell cell, intspec)306 void omtTestDup(omMemCell cell, unsigned long spec) 307 307 { 308 308 omtTestDebug(cell);
Note: See TracChangeset
for help on using the changeset viewer.