~ubuntu-branches/ubuntu/warty/aqsis/warty

« back to all changes in this revision

Viewing changes to boost/boost/regex/v3/regex_library_include.hpp

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2004-08-24 07:25:04 UTC
  • Revision ID: james.westby@ubuntu.com-20040824072504-zf993vnevvisdsvb
Tags: upstream-0.9.1
ImportĀ upstreamĀ versionĀ 0.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *
 
3
 * Copyright (c) 1998-2002
 
4
 * Dr John Maddock
 
5
 *
 
6
 * Permission to use, copy, modify, distribute and sell this software
 
7
 * and its documentation for any purpose is hereby granted without fee,
 
8
 * provided that the above copyright notice appear in all copies and
 
9
 * that both that copyright notice and this permission notice appear
 
10
 * in supporting documentation.  Dr John Maddock makes no representations
 
11
 * about the suitability of this software for any purpose.  
 
12
 * It is provided "as is" without express or implied warranty.
 
13
 *
 
14
 */
 
15
 
 
16
 /*
 
17
  *   LOCATION:    see http://www.boost.org for most recent version.
 
18
  *   FILE         regex_libary_include.hpp
 
19
  *   VERSION      see <boost/version.hpp>
 
20
  *   DESCRIPTION: Automatic library inclusion for Borland/Microsoft compilers.
 
21
  *                Note this is an internal header file included
 
22
  *                by regex.hpp, do not include on its own.
 
23
  */
 
24
 
 
25
/*************************************************************************
 
26
 
 
27
Libraries for Borland and Microsoft compilers are automatically
 
28
selected here, the name of the lib is selected according to the following
 
29
formula:
 
30
 
 
31
BOOST_LIB_NAME
 
32
   + "_"
 
33
   + BOOST_LIB_TOOLSET
 
34
   + "_"
 
35
   + BOOST_LIB_THREAD_OPT
 
36
   + BOOST_LIB_RT_OPT
 
37
   + BOOST_LIB_LINK_OPT
 
38
   + BOOST_LIB_DEBUG_OPT
 
39
 
 
40
These are defined as:
 
41
 
 
42
BOOST_LIB_NAME:       The base name of the lib (boost_regex).
 
43
 
 
44
BOOST_LIB_TOOLSET:    The compiler toolset name (vc6, vc7, bcb5 etc).
 
45
 
 
46
BOOST_LIB_THREAD_OPT: "s" for single thread builds,
 
47
                      "m" for multithread builds.
 
48
 
 
49
BOOST_LIB_RT_OPT:     "s" for static runtime,
 
50
                      "d" for dynamic runtime.
 
51
 
 
52
BOOST_LIB_LINK_OPT:   "s" for static link,
 
53
                      "i" for dynamic link.
 
54
 
 
55
BOOST_LIB_DEBUG_OPT:  nothing for release builds,
 
56
                      "d" for debug builds,
 
57
                      "dd" for debug-diagnostic builds (_STLP_DEBUG).
 
58
 
 
59
***************************************************************************/
 
60
 
 
61
#if !defined(BOOST_REGEX_LIBRARY_INCLUDE_HPP) && !defined(BOOST_REGEX_NO_LIB)
 
62
#define BOOST_REGEX_LIBRARY_INCLUDE_HPP
 
63
 
 
64
#define BOOST_LIB_NAME "boost_regex"
 
65
 
 
66
//
 
67
// select toolset:
 
68
//
 
69
#if defined(BOOST_MSVC) && (BOOST_MSVC == 1200) && (defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION))
 
70
 
 
71
   // vc6-stlport:
 
72
#  define BOOST_LIB_TOOLSET "vc6-stlport"
 
73
 
 
74
#elif defined(BOOST_MSVC) && (BOOST_MSVC == 1200)
 
75
 
 
76
   // vc6:
 
77
#  define BOOST_LIB_TOOLSET "vc6"
 
78
 
 
79
#elif defined(BOOST_MSVC) && (BOOST_MSVC >= 1300)
 
80
 
 
81
   // vc7:
 
82
#  define BOOST_LIB_TOOLSET "vc7"
 
83
 
 
84
#elif defined(__BORLANDC__) && (__BORLANDC__ >= 0x560)
 
85
 
 
86
   // CBuilder 6:
 
87
#  define BOOST_LIB_TOOLSET "bcb6"
 
88
 
 
89
#elif defined(__BORLANDC__) && (__BORLANDC__ >= 0x550)
 
90
 
 
91
   // CBuilder 6:
 
92
#  define BOOST_LIB_TOOLSET "bcb5"
 
93
 
 
94
#elif defined(__BORLANDC__) && (__BORLANDC__ >= 0x540)
 
95
 
 
96
   // CBuilder 6:
 
97
#  define BOOST_LIB_TOOLSET "bcb4"
 
98
 
 
99
#endif
 
100
 
 
101
//
 
102
// select thread opt:
 
103
//
 
104
#if defined(_MT) || defined(__MT__)
 
105
#  define BOOST_LIB_THREAD_OPT "m"
 
106
#else
 
107
#  define BOOST_LIB_THREAD_OPT "s"
 
108
#endif
 
109
 
 
110
//
 
111
// select runtime opt:
 
112
//
 
113
#if defined(_DLL) || defined(_RTLDLL)
 
114
#  define BOOST_LIB_RT_OPT "d"
 
115
#else
 
116
#  define BOOST_LIB_RT_OPT "s"
 
117
#endif
 
118
 
 
119
//
 
120
// select linkage opt:
 
121
//
 
122
#if (defined(_DLL) || defined(_RTLDLL)) && !defined(BOOST_REGEX_STATIC_LINK)
 
123
#  define BOOST_LIB_LINK_OPT "i"
 
124
#else
 
125
#  define BOOST_LIB_LINK_OPT "s"
 
126
#endif
 
127
 
 
128
//
 
129
// select debug opt:
 
130
//
 
131
#if defined(BOOST_MSVC) && defined(_DEBUG) && (defined(_STLP_DEBUG) || defined(__STL_DEBUG))
 
132
#  define BOOST_LIB_DEBUG_OPT "dd"
 
133
#elif defined(BOOST_MSVC) && defined(_DEBUG)
 
134
#  define BOOST_LIB_DEBUG_OPT "d"
 
135
#elif defined(__BORLANDC__) && (__BORLANDC__ == 0x560) && (defined(_STLP_DEBUG) || defined(__STL_DEBUG))
 
136
#  define BOOST_LIB_DEBUG_OPT "dd"
 
137
#else
 
138
#  define BOOST_LIB_DEBUG_OPT 
 
139
#endif
 
140
 
 
141
//
 
142
// now include the lib:
 
143
//
 
144
#if defined(BOOST_LIB_NAME) \
 
145
      && defined(BOOST_LIB_TOOLSET) \
 
146
      && defined(BOOST_LIB_THREAD_OPT) \
 
147
      && defined(BOOST_LIB_RT_OPT) \
 
148
      && defined(BOOST_LIB_LINK_OPT) \
 
149
      && defined(BOOST_LIB_DEBUG_OPT)
 
150
 
 
151
#  pragma comment(lib, BOOST_LIB_NAME "_" BOOST_LIB_TOOLSET "_" BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT BOOST_LIB_LINK_OPT BOOST_LIB_DEBUG_OPT ".lib")
 
152
 
 
153
#endif
 
154
 
 
155
//
 
156
// finally undef any macros we may have set:
 
157
//
 
158
#if defined(BOOST_LIB_NAME)
 
159
#  undef BOOST_LIB_NAME
 
160
#endif
 
161
#if defined(BOOST_LIB_TOOLSET)
 
162
#  undef BOOST_LIB_TOOLSET
 
163
#endif
 
164
#if defined(BOOST_LIB_THREAD_OPT)
 
165
#  undef BOOST_LIB_THREAD_OPT
 
166
#endif
 
167
#if defined(BOOST_LIB_RT_OPT)
 
168
#  undef BOOST_LIB_RT_OPT
 
169
#endif
 
170
#if defined(BOOST_LIB_LINK_OPT)
 
171
#  undef BOOST_LIB_LINK_OPT
 
172
#endif
 
173
#if defined(BOOST_LIB_DEBUG_OPT)
 
174
#  undef BOOST_LIB_DEBUG_OPT
 
175
#endif
 
176
 
 
177
 
 
178
#endif // BOOST_REGEX_LIBRARY_INCLUDE_HPP
 
179
 
 
180
 
 
181
 
 
182
 
 
183
 
 
184