1 // Copyright (C) 2006 Douglas Gregor <doug.gregor -at- gmail.com>
3 // Use, modification and distribution is subject to the Boost Software
4 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
9 * This header provides auto-linking and configuration support for the
10 * Boost.MPI python bindings.
12 #ifndef BOOST_MPI_PYTHON_CONFIG_HPP
13 #define BOOST_MPI_PYTHON_CONFIG_HPP
15 #include <boost/mpi/config.hpp>
17 /*****************************************************************************
19 * DLL import/export options *
21 *****************************************************************************/
23 #if (defined(BOOST_MPI_PYTHON_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)) && !defined(BOOST_MPI_PYTHON_STATIC_LINK)
24 # if defined(BOOST_MPI_PYTHON_SOURCE)
25 # define BOOST_MPI_PYTHON_DECL BOOST_SYMBOL_EXPORT
26 # define BOOST_MPI_PYTHON_BUILD_DLL
28 # define BOOST_MPI_PYTHON_DECL BOOST_SYMBOL_IMPORT
32 #ifndef BOOST_MPI_PYTHON_DECL
33 # define BOOST_MPI_PYTHON_DECL
36 #if !defined(BOOST_MPI_PYTHON_NO_LIB) && !defined(BOOST_MPI_PYTHON_SOURCE) && !defined(BOOST_ALL_NO_LIB)
37 # define BOOST_LIB_NAME boost_mpi_python
38 # if defined(BOOST_MPI_PYTHON_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)
39 # define BOOST_DYN_LINK
41 # ifdef BOOST_MPI_PYTHON_DIAG
42 # define BOOST_LIB_DIAGNOSTIC
44 # include <boost/config/auto_link.hpp>
47 #endif // BOOST_MPI_PYTHON_CONFIG_HPP