Rework configure stuff
[senf.git] / senf / config.hh
1 // $Id$
2 //
3 // Copyright (C) 2007
4 // Fraunhofer Institute for Open Communication Systems (FOKUS)
5 // Competence Center NETwork research (NET), St. Augustin, GERMANY
6 //     Stefan Bund <g0dil@berlios.de>
7 //
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.
12 //
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.
17 //
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.
22
23 /** \file
24     \brief config public header */
25
26 #ifndef HH_config_
27 #define HH_config_ 1
28
29 // Custom includes
30 #include <boost/cstdint.hpp>
31 #include <limits.h>
32
33 ///////////////////////////////hh.p////////////////////////////////////////
34
35 namespace senf {
36 namespace config {
37
38     typedef boost::int_fast64_t time_type;
39
40 }}
41
42 # include "autoconf.hh"
43 # include "local_config.hh"
44 #
45 # ifndef SENF_ABSOLUTE_INCLUDE_PATH
46 #     define SENF_ABSOLUTE_INCLUDE_PATH(senf_relative_include_file_path) <senf/senf_relative_include_file_path>
47 # endif
48 #
49 # ifndef SENF_copy_n
50 #     ifdef HAVE_GNUCXX_COPYN
51 #         include <ext/algorithm>
52 #         define SENF_copy_n __gnu_cxx::copy_n
53 #     endif
54 #     ifdef HAVE_STD_COPYN
55 #         include <algorithm>
56 #         define SENF_copy_n std::copy_n
57 #     endif
58 #  endif
59 #
60 # ifndef SENF_MPL_RV_ALIGNMENT
61 #     define SENF_MPL_RV_ALIGNMENT 16
62 # endif
63 #
64 # if !defined(SENF_BUFFER_USE_LOCALS) && !defined(SENF_BUFFER_USE_ALLOCA) && !defined(SENF_BUFFER_USE_NEW)
65 #     define SENF_BUFFER_USE_NEW 1
66 # endif
67 #
68 # ifndef SENF_SENFLOG_LIMIT
69 #     ifndef SENF_DEBUG
70 #         define SENF_SENFLOG_LIMIT senf::log::IMPORTANT
71 #     else
72 #         define SENF_SENFLOG_LIMIT senf::log::NOTICE
73 #     endif
74 # endif
75 #
76 # ifndef SENF_DEBUG_BACKTRACE_NUMCALLERS
77 #     define SENF_DEBUG_BACKTRACE_NUMCALLERS 64
78 # endif
79 #
80 # ifndef SENF_CONSOLE_MAX_COMMAND_ARITY
81 #     define SENF_CONSOLE_MAX_COMMAND_ARITY 6
82 # endif
83 #
84 # ifndef PHOENIX_LIMIT
85 #     define PHOENIX_LIMIT 6
86 # endif
87 #
88 # ifndef SENF_PACKET_ANNOTATION_SLOTS
89 #     define SENF_PACKET_ANNOTATION_SLOTS 8
90 # endif
91 #
92 //# define SENF_PACKET_NO_COMPLEX_ANNOTATIONS
93
94
95 ///////////////////////////////hh.e////////////////////////////////////////
96 #endif
97
98 \f
99 // Local Variables:
100 // mode: c++
101 // fill-column: 100
102 // comment-column: 40
103 // c-file-style: "senf"
104 // indent-tabs-mode: nil
105 // ispell-local-dictionary: "american"
106 // compile-command: "scons -u all_tests"
107 // End: