00001
00002
00003 #include <config.h>
00004 const char * dummy[] = {
00005 "/** @file version.h",
00006 " * @brief Define preprocesor symbols for the library version",
00007 " */",
00008 "// Copyright (C) 2002,2004,2005,2006,2007,2009 Olly Betts",
00009 "//",
00010 "// This program is free software; you can redistribute it and/or",
00011 "// modify it under the terms of the GNU General Public License as",
00012 "// published by the Free Software Foundation; either version 2 of the",
00013 "// License, or (at your option) any later version.",
00014 "//",
00015 "// This program is distributed in the hope that it will be useful,",
00016 "// but WITHOUT ANY WARRANTY; without even the implied warranty of",
00017 "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the",
00018 "// GNU General Public License for more details.",
00019 "//",
00020 "// You should have received a copy of the GNU General Public License",
00021 "// along with this program; if not, write to the Free Software",
00022 "// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA",
00023 "",
00024 "#ifndef XAPIAN_INCLUDED_VERSION_H",
00025 "#define XAPIAN_INCLUDED_VERSION_H",
00026 #ifdef __GNUC__
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047 #define V2(A,B) J2(A,B)
00048 #define J2(A,B) g++ A##.##B
00049 #define V3(A,B,C) J3(A,B,C)
00050 #define J3(A,B,C) g++ A##.##B##.##C
00051 "",
00052 "#ifdef __GNUC__",
00053 #ifdef __GXX_ABI_VERSION
00054
00055
00056 #if __GNUC__ == 3 && __GNUC_MINOR__ == 0
00057 "#if !(__GNUC__ == 3 && __GNUC_MINOR__ == 0)",
00058 #elif __GNUC__ == 3 && __GNUC_MINOR__ == 1
00059 "#if !(__GNUC__ == 3 && __GNUC_MINOR__ == 1)",
00060 #else
00061 "#if !defined(__GXX_ABI_VERSION) || __GXX_ABI_VERSION != ",__GXX_ABI_VERSION,
00062 #endif
00063 #elif __GNUC__ == 2 && __GNUC_MINOR__ == 96
00064 "#if !(__GNUC__ == 2 && __GNUC_MINOR__ == 96)",
00065 #else
00066 "#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)",
00067 #endif
00068 "#error The C++ ABI version of compiler you are using does not match",
00069 "#error that of the compiler used to build the library. The versions",
00070 "#error must match or your program will not work correctly.",
00071 #ifdef __GNUC_PATCHLEVEL__
00072 "#error The Xapian library was built with ",V3(__GNUC__,__GNUC_MINOR__,__GNUC_PATCHLEVEL__),
00073 #else
00074 "#error The Xapian library was built with ",V2(__GNUC__,__GNUC_MINOR__),
00075 #endif
00076 "#endif",
00077 "",
00078
00079
00080 #if (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || __GNUC__ >= 4
00081 #ifdef _GLIBCXX_DEBUG
00082 "#ifndef _GLIBCXX_DEBUG",
00083 "#error This library was compiled with _GLIBCXX_DEBUG defined, but you",
00084 "#error have not specified this flag. The settings must match or your",
00085 "#error program will not work correctly.",
00086 "#endif",
00087 #else
00088 "#ifdef _GLIBCXX_DEBUG",
00089 "#error You are compiling with _GLIBCXX_DEBUG defined, but the library",
00090 "#error was not compiled with this flag. The settings must match or your",
00091 "#error program will not work correctly.",
00092 "#endif",
00093 #endif
00094 #endif
00095 "#endif",
00096 #endif
00097 "",
00098 "/// The version of Xapian as a C string literal.",
00099 "#define XAPIAN_VERSION ",STRING_VERSION,
00100 "",
00101 "/** The major component of the Xapian version.",
00102 " * E.g. for Xapian 1.0.14 this would be: 1",
00103 " */",
00104 "#define XAPIAN_MAJOR_VERSION ",MAJOR_VERSION,
00105 "",
00106 "/** The minor component of the Xapian version.",
00107 " * E.g. for Xapian 1.0.14 this would be: 0",
00108 " */",
00109 "#define XAPIAN_MINOR_VERSION ",MINOR_VERSION,
00110 "",
00111 "/** The revision component of the Xapian version.",
00112 " * E.g. for Xapian 1.0.14 this would be: 14",
00113 " */",
00114 "#define XAPIAN_REVISION ",REVISION,
00115 "",
00116 "/// XAPIAN_HAS_FLINT_BACKEND Defined if the flint backend is enabled.",
00117 #ifdef XAPIAN_HAS_FLINT_BACKEND
00118 "#define XAPIAN_HAS_FLINT_BACKEND 1",
00119 #else
00120 "/* #undef XAPIAN_HAS_FLINT_BACKEND */",
00121 #endif
00122 "",
00123 "/// XAPIAN_HAS_QUARTZ_BACKEND Defined if the quartz backend is enabled.",
00124 #ifdef XAPIAN_HAS_QUARTZ_BACKEND
00125 "#define XAPIAN_HAS_QUARTZ_BACKEND 1",
00126 #else
00127 "/* #undef XAPIAN_HAS_QUARTZ_BACKEND */",
00128 #endif
00129 "",
00130 "/// XAPIAN_HAS_INMEMORY_BACKEND Defined if the inmemory backend is enabled.",
00131 #ifdef XAPIAN_HAS_INMEMORY_BACKEND
00132 "#define XAPIAN_HAS_INMEMORY_BACKEND 1",
00133 #else
00134 "/* #undef XAPIAN_HAS_INMEMORY_BACKEND */",
00135 #endif
00136 "",
00137 "/// XAPIAN_HAS_REMOTE_BACKEND Defined if the remote backend is enabled.",
00138 #ifdef XAPIAN_HAS_REMOTE_BACKEND
00139 "#define XAPIAN_HAS_REMOTE_BACKEND 1",
00140 #else
00141 "/* #undef XAPIAN_HAS_REMOTE_BACKEND */",
00142 #endif
00143 "",
00144 "#endif /* XAPIAN_INCLUDED_VERSION_H */"
00145 };