apu.hnw 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. /* Licensed to the Apache Software Foundation (ASF) under one or more
  2. * contributor license agreements. See the NOTICE file distributed with
  3. * this work for additional information regarding copyright ownership.
  4. * The ASF licenses this file to You under the Apache License, Version 2.0
  5. * (the "License"); you may not use this file except in compliance with
  6. * the License. You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  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.
  15. */
  16. /*
  17. * Note: This is a NetWare specific version of apu.h. It is renamed to
  18. * apu.h at the start of a NetWare build.
  19. */
  20. /* @file apu.h
  21. * @brief APR-Utility main file
  22. */
  23. #ifdef NETWARE
  24. #ifndef APU_H
  25. #define APU_H
  26. /**
  27. * @defgroup APR_Util APR Utility Functions
  28. * @{
  29. */
  30. /**
  31. * APU_DECLARE_EXPORT is defined when building the APR-UTIL dynamic library,
  32. * so that all public symbols are exported.
  33. *
  34. * APU_DECLARE_STATIC is defined when including the APR-UTIL public headers,
  35. * to provide static linkage when the dynamic library may be unavailable.
  36. *
  37. * APU_DECLARE_STATIC and APU_DECLARE_EXPORT are left undefined when
  38. * including the APR-UTIL public headers, to import and link the symbols from
  39. * the dynamic APR-UTIL library and assure appropriate indirection and calling
  40. * conventions at compile time.
  41. */
  42. /**
  43. * The public APR-UTIL functions are declared with APU_DECLARE(), so they may
  44. * use the most appropriate calling convention. Public APR functions with
  45. * variable arguments must use APU_DECLARE_NONSTD().
  46. *
  47. * @fn APU_DECLARE(rettype) apr_func(args);
  48. */
  49. #define APU_DECLARE(type) type
  50. /**
  51. * The public APR-UTIL functions using variable arguments are declared with
  52. * APU_DECLARE_NONSTD(), as they must use the C language calling convention.
  53. *
  54. * @fn APU_DECLARE_NONSTD(rettype) apr_func(args, ...);
  55. */
  56. #define APU_DECLARE_NONSTD(type) type
  57. /**
  58. * The public APR-UTIL variables are declared with APU_DECLARE_DATA.
  59. * This assures the appropriate indirection is invoked at compile time.
  60. *
  61. * @fn APU_DECLARE_DATA type apr_variable;
  62. * @note APU_DECLARE_DATA extern type apr_variable; syntax is required for
  63. * declarations within headers to properly import the variable.
  64. */
  65. #define APU_DECLARE_DATA
  66. /**
  67. * Declare a dso module's exported module structure as APU_MODULE_DECLARE_DATA.
  68. *
  69. * Unless APU_MODULE_DECLARE_STATIC is defined at compile time, symbols
  70. * declared with APU_MODULE_DECLARE_DATA are always exported.
  71. * @code
  72. * module APU_MODULE_DECLARE_DATA mod_tag
  73. * @endcode
  74. */
  75. #define APU_MODULE_DECLARE_DATA
  76. /*
  77. * we always have SDBM (it's in our codebase)
  78. */
  79. #define APU_HAVE_SDBM 1
  80. #ifndef APU_DSO_MODULE_BUILD
  81. #define APU_HAVE_GDBM 0
  82. #define APU_HAVE_NDBM 0
  83. #define APU_HAVE_DB 0
  84. #if APU_HAVE_DB
  85. #define APU_HAVE_DB_VERSION 0
  86. #endif
  87. #endif
  88. /*
  89. * we always enable dynamic driver loads within apr_dbd
  90. */
  91. #ifndef APU_DSO_MODULE_BUILD
  92. #define APU_HAVE_PGSQL 0
  93. #define APU_HAVE_MYSQL 0
  94. #define APU_HAVE_SQLITE3 0
  95. #define APU_HAVE_SQLITE2 0
  96. #define APU_HAVE_ORACLE 0
  97. #define APU_HAVE_FREETDS 0
  98. #define APU_HAVE_ODBC 0
  99. #endif
  100. #define APU_HAVE_CRYPTO 0
  101. #ifndef APU_DSO_MODULE_BUILD
  102. #define APU_HAVE_OPENSSL 0
  103. #define APU_HAVE_NSS 0
  104. #endif
  105. #define APU_HAVE_APR_ICONV 0
  106. #define APU_HAVE_ICONV 1
  107. #define APR_HAS_XLATE (APU_HAVE_APR_ICONV || APU_HAVE_ICONV)
  108. #endif /* APU_H */
  109. #endif /* NETWARE */