00001 /* Licensed to the Apache Software Foundation (ASF) under one or more 00002 * contributor license agreements. See the NOTICE file distributed with 00003 * this work for additional information regarding copyright ownership. 00004 * The ASF licenses this file to You under the Apache License, Version 2.0 00005 * (the "License"); you may not use this file except in compliance with 00006 * the License. You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 00017 /* 00018 * apu.h is generated from apu.h.in by configure -- do not edit apu.h 00019 */ 00020 /* @file apu.h 00021 * @brief APR-Utility main file 00022 */ 00023 /** 00024 * @defgroup APR_Util APR Utility Functions 00025 * @{ 00026 */ 00027 00028 00029 #ifndef APU_H 00030 #define APU_H 00031 00032 /** 00033 * APU_DECLARE_EXPORT is defined when building the APR-UTIL dynamic library, 00034 * so that all public symbols are exported. 00035 * 00036 * APU_DECLARE_STATIC is defined when including the APR-UTIL public headers, 00037 * to provide static linkage when the dynamic library may be unavailable. 00038 * 00039 * APU_DECLARE_STATIC and APU_DECLARE_EXPORT are left undefined when 00040 * including the APR-UTIL public headers, to import and link the symbols from 00041 * the dynamic APR-UTIL library and assure appropriate indirection and calling 00042 * conventions at compile time. 00043 */ 00044 00045 /** 00046 * The public APR-UTIL functions are declared with APU_DECLARE(), so they may 00047 * use the most appropriate calling convention. Public APR functions with 00048 * variable arguments must use APU_DECLARE_NONSTD(). 00049 * 00050 * @deffunc APU_DECLARE(rettype) apr_func(args); 00051 */ 00052 #define APU_DECLARE(type) type 00053 /** 00054 * The public APR-UTIL functions using variable arguments are declared with 00055 * APU_DECLARE_NONSTD(), as they must use the C language calling convention. 00056 * 00057 * @deffunc APU_DECLARE_NONSTD(rettype) apr_func(args, ...); 00058 */ 00059 #define APU_DECLARE_NONSTD(type) type 00060 /** 00061 * The public APR-UTIL variables are declared with APU_DECLARE_DATA. 00062 * This assures the appropriate indirection is invoked at compile time. 00063 * 00064 * @deffunc APU_DECLARE_DATA type apr_variable; 00065 * @tip APU_DECLARE_DATA extern type apr_variable; syntax is required for 00066 * declarations within headers to properly import the variable. 00067 */ 00068 #define APU_DECLARE_DATA 00069 /* 00070 * we always have SDBM (it's in our codebase) 00071 */ 00072 #define APU_HAVE_SDBM 1 00073 #define APU_HAVE_GDBM 0 00074 #define APU_HAVE_NDBM 0 00075 #define APU_HAVE_DB 1 00076 00077 #if APU_HAVE_DB 00078 #define APU_HAVE_DB_VERSION 4 00079 #endif /* APU_HAVE_DB */ 00080 00081 #define APU_HAVE_PGSQL 1 00082 #define APU_HAVE_MYSQL 1 00083 #define APU_HAVE_SQLITE3 1 00084 #define APU_HAVE_SQLITE2 0 00085 00086 #define APU_HAVE_APR_ICONV 0 00087 #define APU_HAVE_ICONV 1 00088 #define APR_HAS_XLATE (APU_HAVE_APR_ICONV || APU_HAVE_ICONV) 00089 00090 #endif /* APU_H */ 00091 /** @} */