1 /* Copyright 2001-2005 The Apache Software Foundation or its licensors, as
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
20 /* The numeric compile-time version constants. These constants are the
21 * authoritative version numbers for APR.
23 /** Properly quote a value as a string in the C preprocessor */
24 #define AP_STRINGIFY(n) AP_STRINGIFY_HELPER(n)
25 /** Helper macro for AP_STRINGIFY */
26 #define AP_STRINGIFY_HELPER(n) #n
29 * The below defines the base string of the Server: header. Additional
30 * tokens can be added via the ap_add_version_component() API call.
32 * The tokens are listed in order of their significance for identifying the
35 * "Product tokens should be short and to the point -- use of them for
36 * advertizing or other non-essential information is explicitly forbidden."
38 * Example: "Apache/1.1.0 MrWidget/0.1-alpha"
40 #define AP_SERVER_BASEVENDOR "Apache Software Foundation"
41 #define AP_SERVER_BASEPRODUCT "Apache"
43 #define AP_SERVER_MAJORVERSION_NUMBER 2
44 #define AP_SERVER_MINORVERSION_NUMBER 1
45 #define AP_SERVER_PATCHLEVEL_NUMBER 6
46 #define AP_SERVER_DEVBUILD_BOOLEAN 0
48 #if AP_SERVER_DEVBUILD_BOOLEAN
49 #define AP_SERVER_ADD_STRING "-dev"
51 #define AP_SERVER_ADD_STRING ""
54 /* keep old macros as well */
55 #define AP_SERVER_MAJORVERSION AP_STRINGIFY(AP_SERVER_MAJORVERSION_NUMBER)
56 #define AP_SERVER_MINORVERSION AP_STRINGIFY(AP_SERVER_MINORVERSION_NUMBER)
57 #define AP_SERVER_PATCHLEVEL AP_STRINGIFY(AP_SERVER_PATCHLEVEL_NUMBER) \
60 #define AP_SERVER_MINORREVISION AP_SERVER_MAJORVERSION "." AP_SERVER_MINORVERSION
61 #define AP_SERVER_BASEREVISION AP_SERVER_MINORREVISION "." AP_SERVER_PATCHLEVEL
62 #define AP_SERVER_BASEVERSION AP_SERVER_BASEPRODUCT "/" AP_SERVER_BASEREVISION
63 #define AP_SERVER_VERSION AP_SERVER_BASEVERSION
65 /* macro for Win32 .rc files using numeric csv representation */
66 #define AP_SERVER_PATCHLEVEL_CSV AP_SERVER_MAJORVERSION_NUMBER ##, \
67 ##AP_SERVER_MINORVERSION_NUMBER ##, \
68 ##AP_SERVER_PATCHLEVEL_NUMBER