Skip to content
Snippets Groups Projects
Forked from Core Modules / dune-common
Source project has a limited visibility.
  • Markus Blatt's avatar
    e84d7f77
    [Bugfix] Prevent definition of HAVE_BOOST without value due to race conditions... · e84d7f77
    Markus Blatt authored
    [Bugfix] Prevent definition of HAVE_BOOST without value due to race conditions in some autoconf versions.
    
    For some autoconf versions there was a race condition between ax_boost_base.m4 and dune_boost_base.m4 resulting in HAVE_BOOST being defined with no value (instead of ENABLE_BOOST). For others there were even two definitions of it (one with and one without value). 
    
    This patch renames the symbol being defined in dune_boost_base.m4 to HAVE_DUNE_BOOST and defines a value for it if boost is found.
    
    Please change your code such the preprocessor directives checking for boost from
    #if HAVE_BOOST
    to
    #if HAVE_DUNE_BOOST
    
    Resolves flyspray 1265 and presumably 1249.
    
    [[Imported from SVN: r7422]]
    e84d7f77
    History
    [Bugfix] Prevent definition of HAVE_BOOST without value due to race conditions...
    Markus Blatt authored
    [Bugfix] Prevent definition of HAVE_BOOST without value due to race conditions in some autoconf versions.
    
    For some autoconf versions there was a race condition between ax_boost_base.m4 and dune_boost_base.m4 resulting in HAVE_BOOST being defined with no value (instead of ENABLE_BOOST). For others there were even two definitions of it (one with and one without value). 
    
    This patch renames the symbol being defined in dune_boost_base.m4 to HAVE_DUNE_BOOST and defines a value for it if boost is found.
    
    Please change your code such the preprocessor directives checking for boost from
    #if HAVE_BOOST
    to
    #if HAVE_DUNE_BOOST
    
    Resolves flyspray 1265 and presumably 1249.
    
    [[Imported from SVN: r7422]]