Changeset 97b5d5 in git
- Timestamp:
- Nov 23, 2010, 4:45:24 PM (13 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 9ddc41b14e688827f10b1d157e5f7aff8521d1b0
- Parents:
- deca086fe821db633c79d0199acc9007b1a2096d
- git-author:
- Bradford Hovinen <hovinen@gmail.com>2010-11-23 16:45:24+01:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 11:55:42+01:00
- Location:
- omalloc
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
omalloc/Makefile.am
rdeca086 r97b5d5 20 20 omalloc_provide.c omAllocFunc.c 21 21 22 INCLUDES=-I${top_srcdir}/.. -I${top_builddir}/.. 23 22 24 libomalloc_a_SOURCES=$(SOURCES) $(noinst_HEADERS) 23 25 libomalloc_debug_a_SOURCES=$(SOURCES) $(noinst_HEADERS) … … 27 29 28 30 libomalloc_a_CPPFLAGS= -DOM_NDEBUG 31 32 BUILT_SOURCES = omalloc.h omTables.inc 29 33 30 34 omalloc.h: $(noinst_HEADERS) omTables.h -
omalloc/configure.ac
rdeca086 r97b5d5 103 103 AC_PROG_LN_S 104 104 AC_PROG_INSTALL 105 AM_PROG_CC_C_O 105 106 AC_C_CONST 106 107 AC_C_INLINE … … 144 145 AC_CHECK_PROG(ADDR2LINE, addr2line, addr2line, no) 145 146 if test "$ac_cv_prog_ADDR2LINE" = addr2line; then 146 AC_DEFINE_UNQUOTED(OM_PROG_ADDR2LINE, "$ac_cv_prog_ADDR2LINE" )147 AC_DEFINE_UNQUOTED(OM_PROG_ADDR2LINE, "$ac_cv_prog_ADDR2LINE", "Name of addr2line") 147 148 fi 148 149 … … 199 200 AC_MSG_RESULT($ac_cv_pagesize) 200 201 if test "$ac_cv_pagesize" = 4096 || test "$ac_cv_pagesize" = 8192; then 201 AC_DEFINE_UNQUOTED(SIZEOF_SYSTEM_PAGE, $ac_cv_pagesize )202 AC_DEFINE_UNQUOTED(SIZEOF_SYSTEM_PAGE, $ac_cv_pagesize, "Page-size of the build-system") 202 203 else 203 204 AC_MSG_ERROR(need sytem page to be of size 4096 or 8192, but is $ac_cv_pagesize) … … 221 222 AC_MSG_RESULT($ac_cv_working_mmap) 222 223 if test "$ac_cv_working_mmap" = yes; then 223 AC_DEFINE(HAVE_WORKING_MMAP )224 AC_DEFINE(HAVE_WORKING_MMAP,1,"Whether we have a working mmap") 224 225 fi 225 226 fi … … 247 248 AC_MSG_CHECKING(for external config files) 248 249 if test "${with_external_config_h+set}" = set; then 249 AC_DEFINE(OM_HAVE_EXTERNAL_CONFIG_H )250 AC_DEFINE(OM_HAVE_EXTERNAL_CONFIG_H,1,"Whether we have external config.h") 250 251 EXTERNAL_CONFIG_HEADER=${with_external_config_h} 251 252 rm -f omExternalConfig.h … … 253 254 fi 254 255 if test "${with_external_config_c+set}" = set; then 255 AC_DEFINE(OM_HAVE_EXTERNAL_CONFIG_C )256 AC_DEFINE(OM_HAVE_EXTERNAL_CONFIG_C,1,"Wether we have an external config.c") 256 257 EXTERNAL_CONFIG_SOURCE=${with_external_config_c} 257 258 fi … … 270 271 if test "${with_malloc}" = system; then 271 272 OM_MALLOC_HEADER=omMallocSystem.h 272 AC_DEFINE(OMALLOC_USES_MALLOC )273 AC_DEFINE(OMALLOC_USES_MALLOC,1,"Whether omalloc uses malloc ()") 273 274 if test "${with_provide_malloc}" = yes || test "${with_provide_malloc}" = debug; then 274 275 AC_MSG_ERROR("can not provide malloc for --with-malloc=system") … … 289 290 OM_MALLOC_HEADER=$with_external_malloc_h 290 291 OM_MALLOC_SOURCE=$with_external_malloc_c 291 AC_DEFINE(OMALLOC_USES_MALLOC )292 AC_DEFINE(OMALLOC_USES_MALLOC,1,"Whether omalloc uses malloc ()") 292 293 elif test "${with_malloc}" = dlmalloc; then 293 294 with_malloc=dlmalloc … … 296 297 else 297 298 OM_MALLOC_HEADER=omMallocSystem.h 298 AC_DEFINE(OMALLOC_USES_MALLOC )299 AC_DEFINE(OMALLOC_USES_MALLOC,1,"Whether omalloc uses malloc ()") 299 300 if test "${with_provide_malloc}" = yes || test "${with_provide_malloc}" = debug; then 300 301 AC_MSG_ERROR("can not provide malloc for --with-malloc=system") … … 306 307 AC_SUBST(OM_MALLOC_SOURCE) 307 308 if test "${OM_MALLOC_SOURCE+set}" = set; then 308 AC_DEFINE(OM_HAVE_MALLOC_SOURCE )309 AC_DEFINE(OM_HAVE_MALLOC_SOURCE,1,"Whether we have the source for malloc ()") 309 310 fi 310 311 … … 336 337 fi 337 338 if test "$ac_cv_malloc_sizeof_addr" != no; then 338 AC_DEFINE(OM_MALLOC_PROVIDES_SIZEOF_ADDR )339 AC_DEFINE(OM_MALLOC_PROVIDES_SIZEOF_ADDR,1,"Whether malloc provides SIZEOF_ADDR") 339 340 fi 340 341 341 342 if test "${with_provide_malloc}" = malloc; then 342 AC_DEFINE(OM_PROVIDE_MALLOC, 3 )343 AC_DEFINE(OM_PROVIDE_MALLOC, 3, "Malloc type 3") 343 344 elif test "${with_provide_malloc}" = debug; then 344 AC_DEFINE(OM_PROVIDE_MALLOC, 2 )345 AC_DEFINE(OM_PROVIDE_MALLOC, 2, "Malloc debug-mode") 345 346 elif test "${with_provide_malloc}" = yes; then 346 AC_DEFINE(OM_PROVIDE_MALLOC, 1 )347 else 348 AC_DEFINE(OM_PROVIDE_MALLOC, 0 )347 AC_DEFINE(OM_PROVIDE_MALLOC, 1, "Malloc type 1") 348 else 349 AC_DEFINE(OM_PROVIDE_MALLOC, 0, "No malloc") 349 350 fi 350 351 … … 387 388 if test "${ac_cv_working_mmap}" = yes; then 388 389 with_valloc=mmap 389 AC_DEFINE(OM_HAVE_VALLOC_MMAP )390 AC_DEFINE(OM_HAVE_VALLOC_MMAP,1,"Have valloc") 390 391 else 391 392 with_valloc=malloc … … 394 395 if test "${with_valloc}" = malloc; then 395 396 if test "${ac_cv_working_valloc}" != no; then 396 AC_DEFINE(OM_HAVE_VALLOC_MALLOC )397 AC_DEFINE(OM_HAVE_VALLOC_MALLOC,1,"Have valloc") 397 398 else 398 399 with_valloc=emulate … … 406 407 AC_MSG_CHECKING(whether to emulate omalloc) 407 408 if test "${with_emulate_omalloc}" = yes; then 408 AC_DEFINE(OM_EMULATE_OMALLOC )409 AC_DEFINE(OM_EMULATE_OMALLOC,1,"Emulate omalloc") 409 410 AC_MSG_RESULT(yes) 410 411 else … … 418 419 if test "$with_align" = 8 || test "$ac_cv_sizeof_long" = 8; then 419 420 ac_cv_align=8 420 AC_DEFINE(OM_ALIGN_8 )421 AC_DEFINE(OM_ALIGN_8,1,"Align to 8 bytes") 421 422 else 422 423 if test "$ac_cv_align_need_strict" = "yes" || test "$with_align" = "strict"; then 423 AC_DEFINE(OM_ALIGNMENT_NEEDS_WORK )424 AC_DEFINE(OM_ALIGNMENT_NEEDS_WORK,1,"Whether alignment needs work") 424 425 ac_cv_align="strict" 425 426 else … … 435 436 if test "$with_dense_bins" = yes; then 436 437 AC_MSG_RESULT(yes) 437 AC_DEFINE(OM_HAVE_DENSE_BIN_DISTRIBUTION )438 AC_DEFINE(OM_HAVE_DENSE_BIN_DISTRIBUTION,1,"Whether we have dense bins") 438 439 else 439 440 AC_MSG_RESULT(no) … … 448 449 else 449 450 AC_MSG_RESULT(yes) 450 AC_DEFINE(OM_NDEBUG )451 AC_DEFINE(OM_NDEBUG,1,"Disable debug") 451 452 with_track=no 452 453 fi … … 455 456 if test "$with_track" != no; then 456 457 AC_MSG_RESULT(yes) 457 AC_DEFINE(OM_HAVE_TRACK )458 AC_DEFINE(OM_HAVE_TRACK,1,"Have track") 458 459 else 459 460 AC_MSG_RESULT(no) … … 463 464 if test "$with_internal_debug" = yes; then 464 465 AC_MSG_RESULT(yes) 465 AC_DEFINE(OM_INTERNAL_DEBUG )466 AC_DEFINE(OM_INTERNAL_DEBUG,1,"Internal debug") 466 467 with_inline=no 467 468 else … … 471 472 AC_MSG_CHECKING(whether to inline) 472 473 if test "$ac_cv_c_inline" != no && test "$with_inline" != no; then 473 AC_DEFINE_UNQUOTED(OM_INLINE, static $ac_cv_c_inline )474 AC_DEFINE_UNQUOTED(OM_INLINE_DECL, static $ac_cv_c_inline )475 AC_DEFINE_UNQUOTED(OM_INLINE_IMPL, static $ac_cv_c_inline )476 AC_DEFINE_UNQUOTED(OM_INLINE_LOCAL, static $ac_cv_c_inline )474 AC_DEFINE_UNQUOTED(OM_INLINE, static $ac_cv_c_inline, "inline-declaration") 475 AC_DEFINE_UNQUOTED(OM_INLINE_DECL, static $ac_cv_c_inline, "inline-declaration") 476 AC_DEFINE_UNQUOTED(OM_INLINE_IMPL, static $ac_cv_c_inline, "inline-declaration") 477 AC_DEFINE_UNQUOTED(OM_INLINE_LOCAL, static $ac_cv_c_inline, "inline-declaration") 477 478 AC_MSG_RESULT(yes) 478 479 else 479 AC_DEFINE_UNQUOTED(OM_INLINE_DECL, extern )480 AC_DEFINE_UNQUOTED(OM_INLINE_IMPL, )481 AC_DEFINE_UNQUOTED(OM_INLINE_LOCAL, static )480 AC_DEFINE_UNQUOTED(OM_INLINE_DECL, extern, "inline-declaration") 481 AC_DEFINE_UNQUOTED(OM_INLINE_IMPL,, "inline-declaration") 482 AC_DEFINE_UNQUOTED(OM_INLINE_LOCAL, static, "inline-declaration") 482 483 AC_MSG_RESULT(no) 483 484 fi … … 505 506 AC_MSG_RESULT($ac_cv_get_return_addr_works) 506 507 if test "$ac_cv_get_return_addr_works" = yes; then 507 AC_DEFINE(OM_GET_RETURN_ADDR_WORKS )508 AC_DEFINE(OM_GET_RETURN_ADDR_WORKS,1, "Whether get return address works") 508 509 fi 509 510 … … 532 533 AC_MSG_RESULT($ac_cv_get_backtrace_works) 533 534 if test "$ac_cv_get_backtrace_works" = yes; then 534 AC_DEFINE(OM_GET_BACKTRACE_WORKS )535 AC_DEFINE(OM_GET_BACKTRACE_WORKS,1,"Whether omInitGetBackTrace () works") 535 536 fi 536 537 … … 574 575 with_track_return=no 575 576 else 576 AC_DEFINE(OM_TRACK_RETURN )577 AC_DEFINE(OM_TRACK_RETURN,1,"Whether to track return") 577 578 with_track_return=yes 578 579 fi … … 592 593 AC_MSG_RESULT($with_track_fl) 593 594 if test "$with_track_fl" = yes; then 594 AC_DEFINE(OM_TRACK_FILE_LINE )595 AC_DEFINE(OM_TRACK_FILE_LINE,1,"Whether to track file-line") 595 596 fi 596 597 … … 598 599 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 599 600 with_track_backtrace=yes 600 AC_DEFINE(OM_TRACK_BACKTRACE )601 AC_DEFINE(OM_TRACK_BACKTRACE,1,"Whether to track backtrace") 601 602 else 602 603 with_track_backtrace=no … … 606 607 AC_MSG_CHECKING(whether to track custom values) 607 608 if test "$with_track" != no && test "$with_track_custom" = yes; then 608 AC_DEFINE(OM_TRACK_CUSTOM )609 AC_DEFINE(OM_TRACK_CUSTOM,1,"Enable custom tracking") 609 610 else 610 611 with_track_custom=no … … 623 624 void *sbrk(); 624 625 , 625 AC_DEFINE(Void_t,void ),626 AC_DEFINE(Void_t,char ),626 AC_DEFINE(Void_t,void,"Type of void"), 627 AC_DEFINE(Void_t,char,"Type of void"), 627 628 ) 628 629 AC_MSG_RESULT(Void_t)
Note: See TracChangeset
for help on using the changeset viewer.