This could be useful. I'll think of adding a BOOST_DLL_USE_LIBRARY macro and compiling DLL as a library
Please don't go the macro route. A library that uses this built with the macro set one way linked against another library/application with the macro set another way is a disaster waiting to happen.
If you really wish to do this, one way is to use macros to put the different implementations in different namespaces. --