4 // Fraunhofer Institute for Open Communication Systems (FOKUS)
5 // Competence Center NETwork research (NET), St. Augustin, GERMANY
6 // Stefan Bund <g0dil@berlios.de>
8 // This program is free software; you can redistribute it and/or modify
9 // it under the terms of the GNU General Public License as published by
10 // the Free Software Foundation; either version 2 of the License, or
11 // (at your option) any later version.
13 // This program is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 // GNU General Public License for more details.
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the
20 // Free Software Foundation, Inc.,
21 // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 \brief config public header */
30 #include <boost/cstdint.hpp>
33 ///////////////////////////////hh.p////////////////////////////////////////
38 typedef boost::int_fast64_t time_type;
42 # include "autoconf.hh"
43 # include "local_config.hh"
45 # ifndef SENF_ABSOLUTE_INCLUDE_PATH
46 # define SENF_ABSOLUTE_INCLUDE_PATH(senf_relative_include_file_path) <senf/senf_relative_include_file_path>
51 # if defined(__GNUC__) && ! defined(_STLP_ALGORITHM) && (__GNUC__>=4 || (__GNUC__==3 && __GNUC_MINOR__>=4))
52 # include <ext/algorithm>
53 # define SENF_copy_n __gnu_cxx::copy_n
55 # define SENF_copy_n std::copy_n
59 # ifndef SENF_MPL_RV_ALIGNMENT
60 # define SENF_MPL_RV_ALIGNMENT 16
63 # if !defined(SENF_BUFFER_USE_LOCALS) && !defined(SENF_BUFFER_USE_ALLOCA) && !defined(SENF_BUFFER_USE_NEW)
65 # if defined(__GNUC__)
66 # define SENF_BUFFER_USE_LOCALS 1
68 # // Add other compilers here ...
70 # // dynamic arrays are part of C99. Which is NOT part of C++
71 # // but lets try nonetheless ...
72 # elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
73 # define SENF_BUFFER_USE_LOCALS 1
76 # if !defined(SENF_BUFFER_USE_LOCALS) && !defined(SENF_BUFFER_USE_ALLOCA)
77 # define SENF_BUFFER_USE_NEW 1
82 # ifndef SENF_SENFLOG_LIMIT
84 # define SENF_SENFLOG_LIMIT senf::log::IMPORTANT
86 # define SENF_SENFLOG_LIMIT senf::log::NOTICE
90 # ifndef SENF_DEBUG_BACKTRACE_NUMCALLERS
91 # define SENF_DEBUG_BACKTRACE_NUMCALLERS 64
94 # ifndef SENF_CONSOLE_MAX_COMMAND_ARITY
95 # define SENF_CONSOLE_MAX_COMMAND_ARITY 6
98 # ifndef PHOENIX_LIMIT
99 # define PHOENIX_LIMIT 6
102 # if __GLIBC__>=2 && __GLIBC_MINOR__>=8
103 # define HAVE_TIMERFD 1
106 ///////////////////////////////hh.e////////////////////////////////////////
113 // comment-column: 40
114 // c-file-style: "senf"
115 // indent-tabs-mode: nil
116 // ispell-local-dictionary: "american"
117 // compile-command: "scons -u all_tests"