Changeset 97b5d5 in git for omalloc/configure.ac


Ignore:
Timestamp:
Nov 23, 2010, 4:45:24 PM (13 years ago)
Author:
Bradford Hovinen <hovinen@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
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
Message:
Fix build-process:
 * Add templates to AC_DEFINES in configure.ac so that autoheader works
 * Remove omConfig.h.in since that is now automatically generated by autoheader
 * Add -I${top_srcdir}/.. -I${top_builddir}/.. to INCLUDES according to header-file-scheme
 * Add BUILT_SOURCES with sources built at compile-time
File:
1 edited

Legend:

Unmodified
Added
Removed
  • omalloc/configure.ac

    rdeca086 r97b5d5  
    103103AC_PROG_LN_S
    104104AC_PROG_INSTALL
     105AM_PROG_CC_C_O
    105106AC_C_CONST
    106107AC_C_INLINE
     
    144145AC_CHECK_PROG(ADDR2LINE, addr2line, addr2line, no)
    145146if 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")
    147148fi
    148149
     
    199200AC_MSG_RESULT($ac_cv_pagesize)
    200201if 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")
    202203else
    203204AC_MSG_ERROR(need sytem page to be of size 4096 or 8192, but is $ac_cv_pagesize)
     
    221222AC_MSG_RESULT($ac_cv_working_mmap)
    222223if 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")
    224225fi
    225226fi
     
    247248AC_MSG_CHECKING(for external config files)
    248249if 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")
    250251    EXTERNAL_CONFIG_HEADER=${with_external_config_h}
    251252    rm -f omExternalConfig.h
     
    253254fi
    254255if 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")
    256257    EXTERNAL_CONFIG_SOURCE=${with_external_config_c}
    257258fi
     
    270271if test "${with_malloc}" = system; then
    271272  OM_MALLOC_HEADER=omMallocSystem.h
    272   AC_DEFINE(OMALLOC_USES_MALLOC)
     273  AC_DEFINE(OMALLOC_USES_MALLOC,1,"Whether omalloc uses malloc ()")
    273274  if test "${with_provide_malloc}" = yes || test "${with_provide_malloc}" = debug; then
    274275    AC_MSG_ERROR("can not provide malloc for --with-malloc=system")
     
    289290  OM_MALLOC_HEADER=$with_external_malloc_h
    290291  OM_MALLOC_SOURCE=$with_external_malloc_c
    291   AC_DEFINE(OMALLOC_USES_MALLOC)
     292  AC_DEFINE(OMALLOC_USES_MALLOC,1,"Whether omalloc uses malloc ()")
    292293elif test "${with_malloc}" = dlmalloc; then
    293294  with_malloc=dlmalloc
     
    296297else
    297298  OM_MALLOC_HEADER=omMallocSystem.h
    298   AC_DEFINE(OMALLOC_USES_MALLOC)
     299  AC_DEFINE(OMALLOC_USES_MALLOC,1,"Whether omalloc uses malloc ()")
    299300  if test "${with_provide_malloc}" = yes || test "${with_provide_malloc}" = debug; then
    300301    AC_MSG_ERROR("can not provide malloc for --with-malloc=system")
     
    306307AC_SUBST(OM_MALLOC_SOURCE)
    307308if 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 ()")
    309310fi
    310311
     
    336337fi
    337338if test "$ac_cv_malloc_sizeof_addr" != no; then
    338 AC_DEFINE(OM_MALLOC_PROVIDES_SIZEOF_ADDR)
     339AC_DEFINE(OM_MALLOC_PROVIDES_SIZEOF_ADDR,1,"Whether malloc provides SIZEOF_ADDR")
    339340fi
    340341
    341342if test "${with_provide_malloc}" = malloc; then
    342    AC_DEFINE(OM_PROVIDE_MALLOC, 3)
     343   AC_DEFINE(OM_PROVIDE_MALLOC, 3, "Malloc type 3")
    343344elif test "${with_provide_malloc}" = debug; then
    344    AC_DEFINE(OM_PROVIDE_MALLOC, 2)
     345   AC_DEFINE(OM_PROVIDE_MALLOC, 2, "Malloc debug-mode")
    345346elif 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")
     348else
     349  AC_DEFINE(OM_PROVIDE_MALLOC, 0, "No malloc")
    349350fi
    350351
     
    387388  if test "${ac_cv_working_mmap}" = yes; then
    388389    with_valloc=mmap
    389     AC_DEFINE(OM_HAVE_VALLOC_MMAP)
     390    AC_DEFINE(OM_HAVE_VALLOC_MMAP,1,"Have valloc")
    390391  else
    391392    with_valloc=malloc
     
    394395if test "${with_valloc}" = malloc; then
    395396  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")
    397398  else
    398399    with_valloc=emulate
     
    406407AC_MSG_CHECKING(whether to emulate omalloc)
    407408if test "${with_emulate_omalloc}" = yes; then
    408   AC_DEFINE(OM_EMULATE_OMALLOC)
     409  AC_DEFINE(OM_EMULATE_OMALLOC,1,"Emulate omalloc")
    409410  AC_MSG_RESULT(yes)
    410411else
     
    418419if test "$with_align" = 8 || test "$ac_cv_sizeof_long" = 8; then
    419420  ac_cv_align=8
    420   AC_DEFINE(OM_ALIGN_8)
     421  AC_DEFINE(OM_ALIGN_8,1,"Align to 8 bytes")
    421422else
    422423if 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")
    424425  ac_cv_align="strict"
    425426else
     
    435436if test "$with_dense_bins" = yes; then
    436437AC_MSG_RESULT(yes)
    437 AC_DEFINE(OM_HAVE_DENSE_BIN_DISTRIBUTION)
     438AC_DEFINE(OM_HAVE_DENSE_BIN_DISTRIBUTION,1,"Whether we have dense bins")
    438439else
    439440AC_MSG_RESULT(no)
     
    448449else
    449450AC_MSG_RESULT(yes)
    450 AC_DEFINE(OM_NDEBUG)
     451AC_DEFINE(OM_NDEBUG,1,"Disable debug")
    451452with_track=no
    452453fi
     
    455456if test "$with_track" != no; then
    456457AC_MSG_RESULT(yes)
    457 AC_DEFINE(OM_HAVE_TRACK)
     458AC_DEFINE(OM_HAVE_TRACK,1,"Have track")
    458459else
    459460AC_MSG_RESULT(no)
     
    463464if test "$with_internal_debug" = yes; then
    464465AC_MSG_RESULT(yes)
    465 AC_DEFINE(OM_INTERNAL_DEBUG)
     466AC_DEFINE(OM_INTERNAL_DEBUG,1,"Internal debug")
    466467with_inline=no
    467468else
     
    471472AC_MSG_CHECKING(whether to inline)
    472473if 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")
    477478  AC_MSG_RESULT(yes)
    478479else
    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")
    482483  AC_MSG_RESULT(no)
    483484fi
     
    505506AC_MSG_RESULT($ac_cv_get_return_addr_works)
    506507if test "$ac_cv_get_return_addr_works" = yes; then
    507 AC_DEFINE(OM_GET_RETURN_ADDR_WORKS)
     508AC_DEFINE(OM_GET_RETURN_ADDR_WORKS,1, "Whether get return address works")
    508509fi
    509510
     
    532533AC_MSG_RESULT($ac_cv_get_backtrace_works)
    533534if test "$ac_cv_get_backtrace_works" = yes; then
    534 AC_DEFINE(OM_GET_BACKTRACE_WORKS)
     535AC_DEFINE(OM_GET_BACKTRACE_WORKS,1,"Whether omInitGetBackTrace () works")
    535536fi
    536537
     
    574575  with_track_return=no
    575576else
    576   AC_DEFINE(OM_TRACK_RETURN)
     577  AC_DEFINE(OM_TRACK_RETURN,1,"Whether to track return")
    577578  with_track_return=yes
    578579fi
     
    592593AC_MSG_RESULT($with_track_fl)
    593594if 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")
    595596fi
    596597
     
    598599if test "$with_track" != no && test "$ac_cv_get_backtrace_works" = yes && test "$with_track_backtrace" != no && test "$ac_cv_prog_addr2line_works" = yes; then
    599600  with_track_backtrace=yes
    600   AC_DEFINE(OM_TRACK_BACKTRACE)
     601  AC_DEFINE(OM_TRACK_BACKTRACE,1,"Whether to track backtrace")
    601602else
    602603  with_track_backtrace=no
     
    606607AC_MSG_CHECKING(whether to track custom values)
    607608if 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")
    609610else
    610611  with_track_custom=no
     
    623624void *sbrk();
    624625,
    625 AC_DEFINE(Void_t,void),
    626 AC_DEFINE(Void_t,char),
     626AC_DEFINE(Void_t,void,"Type of void"),
     627AC_DEFINE(Void_t,char,"Type of void"),
    627628)
    628629AC_MSG_RESULT(Void_t)
Note: See TracChangeset for help on using the changeset viewer.