Changeset 6acb5a5 in git
- Timestamp:
- Aug 16, 2000, 2:55:48 PM (23 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'ba3e3ef698fa0b7c5867199959cc83330073d3cb')
- Children:
- 4949013aab1d55dfee7b4c883643d1680260f389
- Parents:
- b98efa9343dc4a1c3148508b85d31c7b3c049f1d
- Location:
- omalloc
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
omalloc/configure
rb98efa r6acb5a5 1357 1357 1358 1358 fi 1359 # Extract the first word of "nm", so it can be a program name with args.1360 set dummy nm; ac_word=$21361 echo $ac_n "checking for $ac_word""... $ac_c" 1>&61362 echo "configure:1363: checking for $ac_word" >&51363 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then1364 echo $ac_n "(cached) $ac_c" 1>&61365 else1366 if test -n "$NM"; then1367 ac_cv_prog_NM="$NM" # Let the user override the test.1368 else1369 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"1370 ac_dummy="$PATH"1371 for ac_dir in $ac_dummy; do1372 test -z "$ac_dir" && ac_dir=.1373 if test -f $ac_dir/$ac_word; then1374 ac_cv_prog_NM="nm"1375 break1376 fi1377 done1378 IFS="$ac_save_ifs"1379 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="no"1380 fi1381 fi1382 NM="$ac_cv_prog_NM"1383 if test -n "$NM"; then1384 echo "$ac_t""$NM" 1>&61385 else1386 echo "$ac_t""no" 1>&61387 fi1388 1389 if test "$ac_cv_prog_NM" = nm; then1390 cat >> confdefs.h <<EOF1391 #define OM_PROG_NM "$ac_cv_prog_NM"1392 EOF1393 1394 fi1395 1359 1396 1360 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1397 echo "configure:13 98: checking for ANSI C header files" >&51361 echo "configure:1362: checking for ANSI C header files" >&5 1398 1362 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1399 1363 echo $ac_n "(cached) $ac_c" 1>&6 1400 1364 else 1401 1365 cat > conftest.$ac_ext <<EOF 1402 #line 1 403"configure"1366 #line 1367 "configure" 1403 1367 #include "confdefs.h" 1404 1368 #include <stdlib.h> … … 1408 1372 EOF 1409 1373 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1410 { (eval echo configure:1 411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1374 { (eval echo configure:1375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1411 1375 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1412 1376 if test -z "$ac_err"; then … … 1425 1389 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1426 1390 cat > conftest.$ac_ext <<EOF 1427 #line 1 428"configure"1391 #line 1392 "configure" 1428 1392 #include "confdefs.h" 1429 1393 #include <string.h> … … 1443 1407 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1444 1408 cat > conftest.$ac_ext <<EOF 1445 #line 14 46"configure"1409 #line 1410 "configure" 1446 1410 #include "confdefs.h" 1447 1411 #include <stdlib.h> … … 1464 1428 else 1465 1429 cat > conftest.$ac_ext <<EOF 1466 #line 14 67"configure"1430 #line 1431 "configure" 1467 1431 #include "confdefs.h" 1468 1432 #include <ctype.h> … … 1475 1439 1476 1440 EOF 1477 if { (eval echo configure:14 78: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1441 if { (eval echo configure:1442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1478 1442 then 1479 1443 : … … 1502 1466 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1503 1467 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1504 echo "configure:1 505: checking for $ac_hdr" >&51468 echo "configure:1469: checking for $ac_hdr" >&5 1505 1469 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1506 1470 echo $ac_n "(cached) $ac_c" 1>&6 1507 1471 else 1508 1472 cat > conftest.$ac_ext <<EOF 1509 #line 1 510"configure"1473 #line 1474 "configure" 1510 1474 #include "confdefs.h" 1511 1475 #include <$ac_hdr> 1512 1476 EOF 1513 1477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1514 { (eval echo configure:1 515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1478 { (eval echo configure:1479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1515 1479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1516 1480 if test -z "$ac_err"; then … … 1539 1503 done 1540 1504 1541 for ac_hdr in unistd.h sys/mman.h fcntl.h 1505 for ac_hdr in unistd.h sys/mman.h fcntl.h /usr/include/malloc.h 1542 1506 do 1543 1507 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1544 1508 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1545 echo "configure:15 46: checking for $ac_hdr" >&51509 echo "configure:1510: checking for $ac_hdr" >&5 1546 1510 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1547 1511 echo $ac_n "(cached) $ac_c" 1>&6 1548 1512 else 1549 1513 cat > conftest.$ac_ext <<EOF 1550 #line 15 51"configure"1514 #line 1515 "configure" 1551 1515 #include "confdefs.h" 1552 1516 #include <$ac_hdr> 1553 1517 EOF 1554 1518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1555 { (eval echo configure:15 56: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1519 { (eval echo configure:1520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1556 1520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1557 1521 if test -z "$ac_err"; then … … 1583 1547 do 1584 1548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1585 echo "configure:15 86: checking for $ac_func" >&51549 echo "configure:1550: checking for $ac_func" >&5 1586 1550 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1587 1551 echo $ac_n "(cached) $ac_c" 1>&6 1588 1552 else 1589 1553 cat > conftest.$ac_ext <<EOF 1590 #line 15 91"configure"1554 #line 1555 "configure" 1591 1555 #include "confdefs.h" 1592 1556 /* System header to define __stub macros and hopefully few prototypes, … … 1611 1575 ; return 0; } 1612 1576 EOF 1613 if { (eval echo configure:1 614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1577 if { (eval echo configure:1578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1614 1578 rm -rf conftest* 1615 1579 eval "ac_cv_func_$ac_func=yes" … … 1639 1603 # sizes 1640 1604 echo $ac_n "checking size of long""... $ac_c" 1>&6 1641 echo "configure:16 42: checking size of long" >&51605 echo "configure:1606: checking size of long" >&5 1642 1606 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then 1643 1607 echo $ac_n "(cached) $ac_c" 1>&6 … … 1647 1611 else 1648 1612 cat > conftest.$ac_ext <<EOF 1649 #line 16 50"configure"1613 #line 1614 "configure" 1650 1614 #include "confdefs.h" 1651 1615 #include <stdio.h> … … 1658 1622 } 1659 1623 EOF 1660 if { (eval echo configure:16 61: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1624 if { (eval echo configure:1625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1661 1625 then 1662 1626 ac_cv_sizeof_long=`cat conftestval` … … 1678 1642 1679 1643 echo $ac_n "checking size of void*""... $ac_c" 1>&6 1680 echo "configure:16 81: checking size of void*" >&51644 echo "configure:1645: checking size of void*" >&5 1681 1645 if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then 1682 1646 echo $ac_n "(cached) $ac_c" 1>&6 … … 1686 1650 else 1687 1651 cat > conftest.$ac_ext <<EOF 1688 #line 16 89"configure"1652 #line 1653 "configure" 1689 1653 #include "confdefs.h" 1690 1654 #include <stdio.h> … … 1697 1661 } 1698 1662 EOF 1699 if { (eval echo configure:1 700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1663 if { (eval echo configure:1664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1700 1664 then 1701 1665 ac_cv_sizeof_voidp=`cat conftestval` … … 1717 1681 1718 1682 echo $ac_n "checking size of double""... $ac_c" 1>&6 1719 echo "configure:1 720: checking size of double" >&51683 echo "configure:1684: checking size of double" >&5 1720 1684 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then 1721 1685 echo $ac_n "(cached) $ac_c" 1>&6 … … 1725 1689 else 1726 1690 cat > conftest.$ac_ext <<EOF 1727 #line 1 728"configure"1691 #line 1692 "configure" 1728 1692 #include "confdefs.h" 1729 1693 #include <stdio.h> … … 1736 1700 } 1737 1701 EOF 1738 if { (eval echo configure:17 39: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1702 if { (eval echo configure:1703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1739 1703 then 1740 1704 ac_cv_sizeof_double=`cat conftestval` … … 1756 1720 1757 1721 echo $ac_n "checking size of size_t""... $ac_c" 1>&6 1758 echo "configure:17 59: checking size of size_t" >&51722 echo "configure:1723: checking size of size_t" >&5 1759 1723 if eval "test \"`echo '$''{'ac_cv_sizeof_size_t'+set}'`\" = set"; then 1760 1724 echo $ac_n "(cached) $ac_c" 1>&6 … … 1764 1728 else 1765 1729 cat > conftest.$ac_ext <<EOF 1766 #line 17 67"configure"1730 #line 1731 "configure" 1767 1731 #include "confdefs.h" 1768 1732 #include <stdio.h> … … 1775 1739 } 1776 1740 EOF 1777 if { (eval echo configure:17 78: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1741 if { (eval echo configure:1742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1778 1742 then 1779 1743 ac_cv_sizeof_size_t=`cat conftestval` … … 1806 1770 1807 1771 echo $ac_n "checking size of system page""... $ac_c" 1>&6 1808 echo "configure:1 809: checking size of system page" >&51772 echo "configure:1773: checking size of system page" >&5 1809 1773 if eval "test \"`echo '$''{'ac_cv_pagesize'+set}'`\" = set"; then 1810 1774 echo $ac_n "(cached) $ac_c" 1>&6 … … 1814 1778 else 1815 1779 cat > conftest.$ac_ext <<EOF 1816 #line 1 817"configure"1780 #line 1781 "configure" 1817 1781 #include "confdefs.h" 1818 1782 #include <stdio.h> … … 1827 1791 } 1828 1792 EOF 1829 if { (eval echo configure:1 830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1793 if { (eval echo configure:1794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1830 1794 then 1831 1795 ac_cv_pagesize=`cat conftestval` … … 1853 1817 if test "$ac_cv_func_mmap" = yes; then 1854 1818 echo $ac_n "checking whether mmap works""... $ac_c" 1>&6 1855 echo "configure:18 56: checking whether mmap works" >&51819 echo "configure:1820: checking whether mmap works" >&5 1856 1820 if eval "test \"`echo '$''{'ac_cv_working_mmap'+set}'`\" = set"; then 1857 1821 echo $ac_n "(cached) $ac_c" 1>&6 … … 1861 1825 else 1862 1826 cat > conftest.$ac_ext <<EOF 1863 #line 18 64"configure"1827 #line 1828 "configure" 1864 1828 #include "confdefs.h" 1865 1829 … … 1873 1837 } 1874 1838 EOF 1875 if { (eval echo configure:18 76: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1839 if { (eval echo configure:1840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1876 1840 then 1877 1841 ac_cv_working_mmap=yes … … 1897 1861 1898 1862 echo $ac_n "checking whether alignment needs to be strict""... $ac_c" 1>&6 1899 echo "configure:1 900: checking whether alignment needs to be strict" >&51863 echo "configure:1864: checking whether alignment needs to be strict" >&5 1900 1864 if eval "test \"`echo '$''{'ac_cv_align_need_strict'+set}'`\" = set"; then 1901 1865 echo $ac_n "(cached) $ac_c" 1>&6 … … 1905 1869 else 1906 1870 cat > conftest.$ac_ext <<EOF 1907 #line 1 908"configure"1871 #line 1872 "configure" 1908 1872 #include "confdefs.h" 1909 1873 … … 1920 1884 1921 1885 EOF 1922 if { (eval echo configure:1 923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1886 if { (eval echo configure:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1923 1887 then 1924 1888 ac_cv_align_need_strict=no … … 1937 1901 1938 1902 echo $ac_n "checking for external config files""... $ac_c" 1>&6 1939 echo "configure:19 40: checking for external config files" >&51903 echo "configure:1904: checking for external config files" >&5 1940 1904 if test "${with_external_config_h+set}" = set; then 1941 1905 cat >> confdefs.h <<\EOF … … 1963 1927 1964 1928 echo $ac_n "checking which malloc to use""... $ac_c" 1>&6 1965 echo "configure:19 66: checking which malloc to use" >&51929 echo "configure:1930: checking which malloc to use" >&5 1966 1930 if test "${with_malloc}" = system; then 1967 1931 OM_MALLOC_HEADER=omMallocSystem.h … … 2000 1964 2001 1965 echo $ac_n "checking whether malloc provides SizeOfAddr""... $ac_c" 1>&6 2002 echo "configure: 2003: checking whether malloc provides SizeOfAddr" >&51966 echo "configure:1967: checking whether malloc provides SizeOfAddr" >&5 2003 1967 if test "${ac_cv_malloc_sizeof_addr}" = no; then 2004 1968 echo "$ac_t""(cached) no" 1>&6 … … 2010 1974 else 2011 1975 cat > conftest.$ac_ext <<EOF 2012 #line 2013"configure"1976 #line 1977 "configure" 2013 1977 #include "confdefs.h" 2014 1978 … … 2027 1991 2028 1992 EOF 2029 if { (eval echo configure: 2030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1993 if { (eval echo configure:1994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2030 1994 then 2031 1995 ac_cv_malloc_sizeof_addr="${OM_MALLOC_HEADER}_${OM_MALLOC_SOURCE}" … … 2075 2039 2076 2040 echo $ac_n "checking whether working valloc exists""... $ac_c" 1>&6 2077 echo "configure:20 78: checking whether working valloc exists" >&52041 echo "configure:2042: checking whether working valloc exists" >&5 2078 2042 if test "${ac_cv_working_valloc}" = no; then 2079 2043 echo "$ac_t""(cached) no" 1>&6 … … 2085 2049 else 2086 2050 cat > conftest.$ac_ext <<EOF 2087 #line 20 88"configure"2051 #line 2052 "configure" 2088 2052 #include "confdefs.h" 2089 2053 … … 2103 2067 2104 2068 EOF 2105 if { (eval echo configure:2 106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2069 if { (eval echo configure:2070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2106 2070 then 2107 2071 ac_cv_working_valloc="${OM_MALLOC_HEADER}_${OM_MALLOC_SOURCE}" … … 2123 2087 2124 2088 echo $ac_n "checking which valloc to use""... $ac_c" 1>&6 2125 echo "configure:2 126: checking which valloc to use" >&52089 echo "configure:2090: checking which valloc to use" >&5 2126 2090 if test "${with_valloc+set}" != set || test "${with_valloc}" = mmap; then 2127 2091 if test "${ac_cv_working_mmap}" = yes; then … … 2148 2112 2149 2113 echo $ac_n "checking whether to emulate omalloc""... $ac_c" 1>&6 2150 echo "configure:21 51: checking whether to emulate omalloc" >&52114 echo "configure:2115: checking whether to emulate omalloc" >&5 2151 2115 if test "${with_emulate_omalloc}" = yes; then 2152 2116 cat >> confdefs.h <<\EOF … … 2160 2124 2161 2125 echo $ac_n "checking how to align""... $ac_c" 1>&6 2162 echo "configure:21 63: checking how to align" >&52126 echo "configure:2127: checking how to align" >&5 2163 2127 if test "$with_align" = 8 || test "$ac_cv_sizeof_long" = 8; then 2164 2128 ac_cv_align=8 … … 2181 2145 2182 2146 echo $ac_n "checking whether to use dense bins""... $ac_c" 1>&6 2183 echo "configure:21 84: checking whether to use dense bins" >&52147 echo "configure:2148: checking whether to use dense bins" >&5 2184 2148 if test "$with_dense_bins" = yes; then 2185 2149 echo "$ac_t""yes" 1>&6 … … 2193 2157 2194 2158 echo $ac_n "checking whether to disable debugging""... $ac_c" 1>&6 2195 echo "configure:21 96: checking whether to disable debugging" >&52159 echo "configure:2160: checking whether to disable debugging" >&5 2196 2160 if test "$with_debug" != no; then 2197 2161 echo "$ac_t""no" 1>&6 … … 2206 2170 2207 2171 echo $ac_n "checking whether to have tracking debug functionality""... $ac_c" 1>&6 2208 echo "configure:2 209: checking whether to have tracking debug functionality" >&52172 echo "configure:2173: checking whether to have tracking debug functionality" >&5 2209 2173 if test "$with_track" != no; then 2210 2174 echo "$ac_t""yes" 1>&6 … … 2218 2182 2219 2183 echo $ac_n "checking whether to use internal debug""... $ac_c" 1>&6 2220 echo "configure:2 221: checking whether to use internal debug" >&52184 echo "configure:2185: checking whether to use internal debug" >&5 2221 2185 if test "$with_internal_debug" = yes; then 2222 2186 echo "$ac_t""yes" 1>&6 … … 2231 2195 2232 2196 echo $ac_n "checking whether to inline""... $ac_c" 1>&6 2233 echo "configure:2 234: checking whether to inline" >&52197 echo "configure:2198: checking whether to inline" >&5 2234 2198 if test "$ac_cv_c_inline" != no && test "$with_inline" != no; then 2235 2199 cat >> confdefs.h <<EOF … … 2267 2231 2268 2232 echo $ac_n "checking whether GET_RET_ADDR works""... $ac_c" 1>&6 2269 echo "configure:22 70: checking whether GET_RET_ADDR works" >&52233 echo "configure:2234: checking whether GET_RET_ADDR works" >&5 2270 2234 if eval "test \"`echo '$''{'ac_cv_get_return_addr_works'+set}'`\" = set"; then 2271 2235 echo $ac_n "(cached) $ac_c" 1>&6 … … 2275 2239 else 2276 2240 cat > conftest.$ac_ext <<EOF 2277 #line 22 78"configure"2241 #line 2242 "configure" 2278 2242 #include "confdefs.h" 2279 2243 … … 2291 2255 2292 2256 EOF 2293 if { (eval echo configure:22 94: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2257 if { (eval echo configure:2258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2294 2258 then 2295 2259 ac_cv_get_return_addr_works=yes … … 2314 2278 2315 2279 echo $ac_n "checking whether omGetBackTrace works""... $ac_c" 1>&6 2316 echo "configure:2 317: checking whether omGetBackTrace works" >&52280 echo "configure:2281: checking whether omGetBackTrace works" >&5 2317 2281 if eval "test \"`echo '$''{'ac_cv_get_backtrace_works'+set}'`\" = set"; then 2318 2282 echo $ac_n "(cached) $ac_c" 1>&6 … … 2322 2286 else 2323 2287 cat > conftest.$ac_ext <<EOF 2324 #line 2 325"configure"2288 #line 2289 "configure" 2325 2289 #include "confdefs.h" 2326 2290 … … 2343 2307 2344 2308 EOF 2345 if { (eval echo configure:23 46: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2309 if { (eval echo configure:2310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2346 2310 then 2347 2311 ac_cv_get_backtrace_works=yes … … 2366 2330 2367 2331 echo $ac_n "checking whether addr2line works""... $ac_c" 1>&6 2368 echo "configure:23 69: checking whether addr2line works" >&52332 echo "configure:2333: checking whether addr2line works" >&5 2369 2333 if eval "test \"`echo '$''{'ac_cv_prog_addr2line_works'+set}'`\" = set"; then 2370 2334 echo $ac_n "(cached) $ac_c" 1>&6 … … 2374 2338 else 2375 2339 cat > conftest.$ac_ext <<EOF 2376 #line 23 77"configure"2340 #line 2341 "configure" 2377 2341 #include "confdefs.h" 2378 2342 … … 2407 2371 2408 2372 EOF 2409 if { (eval echo configure:2 410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2373 if { (eval echo configure:2374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2410 2374 then 2411 2375 ac_cv_prog_addr2line_works=yes … … 2424 2388 2425 2389 echo $ac_n "checking whether to track return addresses""... $ac_c" 1>&6 2426 echo "configure:2 427: checking whether to track return addresses" >&52390 echo "configure:2391: checking whether to track return addresses" >&5 2427 2391 if test "$with_track_return" = no || test "$ac_cv_get_return_addr_works" = no || test "$ac_cv_prog_addr2line_works" != yes; then 2428 2392 with_track_return=no … … 2437 2401 2438 2402 echo $ac_n "checking whether to track files and line numbers""... $ac_c" 1>&6 2439 echo "configure:24 40: checking whether to track files and line numbers" >&52403 echo "configure:2404: checking whether to track files and line numbers" >&5 2440 2404 if test "$with_track_fl" = no && test "$with_track_return" = no; then 2441 2405 with_track_fl=yes … … 2457 2421 2458 2422 echo $ac_n "checking whether to track stack backtraces""... $ac_c" 1>&6 2459 echo "configure:24 60: checking whether to track stack backtraces" >&52423 echo "configure:2424: checking whether to track stack backtraces" >&5 2460 2424 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 2461 2425 with_track_backtrace=yes … … 2617 2581 s%@PERL@%$PERL%g 2618 2582 s%@ADDR2LINE@%$ADDR2LINE%g 2619 s%@NM@%$NM%g2620 2583 s%@EXTERNAL_CONFIG_HEADER@%$EXTERNAL_CONFIG_HEADER%g 2621 2584 s%@EXTERNAL_CONFIG_SOURCE@%$EXTERNAL_CONFIG_SOURCE%g -
omalloc/configure.in
rb98efa r6acb5a5 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. 5 2000-08-16 12:06:10obachman Exp $6 dnl Version: $Id: configure.in,v 1.6 2000-08-16 12:55:45 obachman Exp $ 7 7 dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll 8 8 … … 112 112 AC_DEFINE_UNQUOTED(OM_PROG_ADDR2LINE, "$ac_cv_prog_ADDR2LINE") 113 113 fi 114 AC_CHECK_PROG(NM, nm, nm, no)115 if test "$ac_cv_prog_NM" = nm; then116 AC_DEFINE_UNQUOTED(OM_PROG_NM, "$ac_cv_prog_NM")117 fi118 114 119 115 dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll … … 123 119 AC_CHECK_HEADERS(limits.h,, 124 120 AC_MSG_ERROR(Can not compile without limits.h)) 125 AC_CHECK_HEADERS(unistd.h sys/mman.h fcntl.h )121 AC_CHECK_HEADERS(unistd.h sys/mman.h fcntl.h /usr/include/malloc.h) 126 122 127 123 AC_CHECK_FUNCS(popen readlink getcwd getwd mmap sbrk) -
omalloc/dlmalloc.h
rb98efa r6acb5a5 4 4 * This was obtained by taking cutting out the beginning of malloc.c 5 5 * 6 * Version: $Id: dlmalloc.h,v 1. 4 2000-08-14 12:36:59obachman Exp $6 * Version: $Id: dlmalloc.h,v 1.5 2000-08-16 12:55:46 obachman Exp $ 7 7 *******************************************************************/ 8 8 #ifndef DL_MALLOC_H … … 15 15 #endif 16 16 17 #ifndef HAVE__USR_INCLUDE_MALLOC_H 18 #undef HAVE__USR_INCLUDE_MALLOC_H 19 #endif 20 21 #ifdef HAVE__USR_INCLUDE_MALLOC_H 22 #define HAVE_USR_INCLUDE_MALLOC_H 1 23 #endif 17 24 18 25 #define OM_MALLOC_MALLOC mALLOc -
omalloc/omAllocDecl.h
rb98efa r6acb5a5 4 4 * Author: obachman (Olaf Bachmann) 5 5 * Created: 11/99 6 * Version: $Id: omAllocDecl.h,v 1. 3 2000-08-14 12:26:39obachman Exp $6 * Version: $Id: omAllocDecl.h,v 1.4 2000-08-16 12:55:46 obachman Exp $ 7 7 *******************************************************************/ 8 8 #ifndef OM_ALLOC_DECL_H … … 10 10 11 11 12 #if ndef OMALLOC_C12 #if !defined(OMALLOC_C) && !defined(OM_NO_MALLOC_MACROS) 13 13 #define calloc omcalloc 14 14 #define malloc omalloc -
omalloc/omAllocSystem.c
rb98efa r6acb5a5 4 4 * Author: obachman@mathematik.uni-kl.de (Olaf Bachmann) 5 5 * Created: 11/99 6 * Version: $Id: omAllocSystem.c,v 1. 3 2000-08-14 12:26:40obachman Exp $6 * Version: $Id: omAllocSystem.c,v 1.4 2000-08-16 12:55:47 obachman Exp $ 7 7 *******************************************************************/ 8 8 #ifndef OM_ALLOC_SYSTEM_C … … 11 11 #include <unistd.h> 12 12 #include <limits.h> 13 /* disable our malloc macros */ 14 #define OM_NO_MALLOC_MACROS 13 15 #include "omAlloc.h" 14 16 #include "omDefaultConfig.h" -
omalloc/omStats.c
rb98efa r6acb5a5 4 4 * Author: obachman (Olaf Bachmann) 5 5 * Created: 11/99 6 * Version: $Id: omStats.c,v 1. 3 2000-08-14 12:26:49obachman Exp $6 * Version: $Id: omStats.c,v 1.4 2000-08-16 12:55:47 obachman Exp $ 7 7 *******************************************************************/ 8 8 #include <unistd.h> 9 #define OM_NO_MALLOC_MACROS 9 10 #include "omAlloc.h" 10 11 #include "omMalloc.h" -
omalloc/omtTest.c
rb98efa r6acb5a5 148 148 int MyRandSpec() 149 149 { 150 int spec = 1 + (int) ( ((double) SPEC_MAX)* ((double) rand())/(RAND_MAX + 1.0)); 151 150 #if 0 151 /* This behaves badly on the HP's, because RAND_MAX == 32767 */ 152 int spec = 1 + (int) ( ((double) SPEC_MAX)* ((double) random())/(RAND_MAX + 1.0)); 153 #else 154 int spec = random() + 1; 155 #endif 152 156 if (! size_range_number) 153 157 { … … 280 284 if (argc > 1) sscanf(argv[1], "%d", &error_test); 281 285 if (argc > 2) sscanf(argv[2], "%d", &seed); 282 srand (seed);286 srandom(seed); 283 287 284 288 if (argc > 3) sscanf(argv[3], "%d", &n); -
omalloc/omtTest.h
rb98efa r6acb5a5 6 6 // #define MAX_CELLS 500000 7 7 #define MAX_CELLS 100000 8 // #define MAX_CELLS 1000 08 // #define MAX_CELLS 1000 9 9 #define KEEP_ADDR 100 10 10 #define END_CHECK_LEVEL 5
Note: See TracChangeset
for help on using the changeset viewer.