config.w32 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. // vim:ft=javascript
  2. if (PHP_OCI8 != "no" && PHP_OCI8_11G != "no") {
  3. if (!PHP_OCI8_SHARED && !PHP_OCI8_11G_SHARED) {
  4. WARNING("oci8 and oci8-11g provide the same extension and cannot both be built statically");
  5. PHP_OCI8 = "no"
  6. }
  7. }
  8. if (PHP_OCI8 != "no" && PHP_OCI8_12C != "no") {
  9. if (!PHP_OCI8_SHARED && !PHP_OCI8_12C_SHARED) {
  10. WARNING("oci8 and oci8-12c provide the same extension and cannot both be built statically");
  11. PHP_OCI8 = "no"
  12. }
  13. }
  14. if (PHP_OCI8_11G != "no" && PHP_OCI8_12C != "no") {
  15. if (!PHP_OCI8_11G_SHARED && !PHP_OCI8_12C_SHARED) {
  16. WARNING("oci8-11g and oci8-12c provide the same extension and cannot both be built statically");
  17. PHP_OCI8_11G = "no"
  18. }
  19. }
  20. if (PHP_OCI8 != "no" && PHP_OCI8_19 != "no") {
  21. if (!PHP_OCI8_SHARED && !PHP_OCI8_19_SHARED) {
  22. WARNING("oci8 and oci8-19 provide the same extension and cannot both be built statically");
  23. PHP_OCI8 = "no"
  24. }
  25. }
  26. if (PHP_OCI8_11G != "no" && PHP_OCI8_19 != "no") {
  27. if (!PHP_OCI8_11G_SHARED && !PHP_OCI8_19_SHARED) {
  28. WARNING("oci8-11g and oci8-19 provide the same extension and cannot both be built statically");
  29. PHP_OCI8_11G = "no"
  30. }
  31. }
  32. if (PHP_OCI8_12C != "no" && PHP_OCI8_19 != "no") {
  33. if (!PHP_OCI8_12C_SHARED && !PHP_OCI8_19_SHARED) {
  34. WARNING("oci8-12c and oci8-19 provide the same extension and cannot both be built statically");
  35. PHP_OCI8_12C = "no"
  36. }
  37. }
  38. ARG_WITH("oci8", "OCI8 support", "no");
  39. if (PHP_OCI8 != "no") {
  40. oci8_dirs = new Array(
  41. PHP_OCI8
  42. );
  43. oci8_lib_paths = "";
  44. oci8_inc_paths = "";
  45. // find the Oracle install
  46. for (i = 0; i < oci8_dirs.length; i++) {
  47. oci8_lib_paths += oci8_dirs[i] + "\\lib;";
  48. oci8_lib_paths += oci8_dirs[i] + "\\lib\\msvc;";
  49. oci8_inc_paths += oci8_dirs[i] + "\\include;";
  50. }
  51. oci8_inc_paths += PHP_PHP_BUILD + "\\include\\instantclient;"
  52. oci8_lib_paths += PHP_PHP_BUILD + "\\lib\\instantclient;";
  53. if (CHECK_HEADER_ADD_INCLUDE("oci.h", "CFLAGS_OCI8", oci8_inc_paths) &&
  54. CHECK_LIB("oci.lib", "oci8", oci8_lib_paths))
  55. {
  56. EXTENSION('oci8', 'oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c oci8_failover.c');
  57. AC_DEFINE('HAVE_OCI8', 1);
  58. AC_DEFINE('HAVE_OCI_INSTANT_CLIENT', 1);
  59. } else {
  60. WARNING("oci8 not enabled: Oracle Database client libraries or Oracle 10g Instant Client not found");
  61. PHP_OCI8 = "no"
  62. }
  63. }
  64. ARG_WITH("oci8-11g", "OCI8 support using Oracle 11g Instant Client", "no");
  65. if (PHP_OCI8_11G != "no") {
  66. oci8_11g_dirs = new Array(
  67. PHP_OCI8_11G
  68. );
  69. oci8_11g_lib_paths = "";
  70. oci8_11g_inc_paths = "";
  71. // find the Oracle install
  72. for (i = 0; i < oci8_11g_dirs.length; i++) {
  73. oci8_11g_lib_paths += oci8_11g_dirs[i] + "\\lib;";
  74. oci8_11g_lib_paths += oci8_11g_dirs[i] + "\\lib\\msvc;";
  75. oci8_11g_inc_paths += oci8_11g_dirs[i] + "\\include;";
  76. }
  77. oci8_11g_inc_paths += PHP_PHP_BUILD + "\\include\\instantclient_11;"
  78. oci8_11g_lib_paths += PHP_PHP_BUILD + "\\lib\\instantclient_11;";
  79. if (CHECK_HEADER_ADD_INCLUDE("oci.h", "CFLAGS_OCI8_11G", oci8_11g_inc_paths) &&
  80. CHECK_LIB("oci.lib", "oci8_11g", oci8_11g_lib_paths))
  81. {
  82. EXTENSION('oci8_11g', 'oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c oci8_failover.c', null, null, null, "ext\\oci8_11g")
  83. AC_DEFINE('HAVE_OCI8', 1);
  84. AC_DEFINE('HAVE_OCI_INSTANT_CLIENT', 1);
  85. } else {
  86. WARNING("oci8-11g not enabled: Oracle Database client libraries or Oracle 11g Instant Client not found");
  87. PHP_OCI8_11G = "no"
  88. }
  89. }
  90. ARG_WITH("oci8-12c", "OCI8 support using Oracle Database 12c Instant Client", "no");
  91. if (PHP_OCI8_12C != "no") {
  92. oci8_12c_dirs = new Array(
  93. PHP_OCI8_12C
  94. );
  95. oci8_12c_lib_paths = "";
  96. oci8_12c_inc_paths = "";
  97. // find the Oracle install
  98. for (i = 0; i < oci8_12c_dirs.length; i++) {
  99. oci8_12c_lib_paths += oci8_12c_dirs[i] + "\\lib;";
  100. oci8_12c_lib_paths += oci8_12c_dirs[i] + "\\lib\\msvc;";
  101. oci8_12c_inc_paths += oci8_12c_dirs[i] + "\\include;";
  102. }
  103. oci8_12c_inc_paths += PHP_PHP_BUILD + "\\include\\instantclient_12;"
  104. oci8_12c_lib_paths += PHP_PHP_BUILD + "\\lib\\instantclient_12;";
  105. if (CHECK_HEADER_ADD_INCLUDE("oci.h", "CFLAGS_OCI8_12C", oci8_12c_inc_paths) &&
  106. CHECK_LIB("oci.lib", "oci8_12c", oci8_12c_lib_paths))
  107. {
  108. EXTENSION('oci8_12c', 'oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c oci8_failover.c', null, null, null, "ext\\oci8_12c")
  109. AC_DEFINE('HAVE_OCI8', 1);
  110. AC_DEFINE('HAVE_OCI_INSTANT_CLIENT', 1);
  111. } else {
  112. WARNING("oci8-12c not enabled: Oracle Database client libraries or Oracle Database 12c Instant Client not found");
  113. PHP_OCI8_12C = "no"
  114. }
  115. }
  116. ARG_WITH("oci8-19", "OCI8 support using Oracle Database 19 Instant Client", "no");
  117. if (PHP_OCI8_19 != "no") {
  118. oci8_19_dirs = new Array(
  119. PHP_OCI8_19
  120. );
  121. oci8_19_lib_paths = "";
  122. oci8_19_inc_paths = "";
  123. // find the Oracle install
  124. for (i = 0; i < oci8_19_dirs.length; i++) {
  125. oci8_19_lib_paths += oci8_19_dirs[i] + "\\lib;";
  126. oci8_19_lib_paths += oci8_19_dirs[i] + "\\lib\\msvc;";
  127. oci8_19_inc_paths += oci8_19_dirs[i] + "\\include;";
  128. }
  129. oci8_19_inc_paths += PHP_PHP_BUILD + "\\include\\instantclient_12;"
  130. oci8_19_lib_paths += PHP_PHP_BUILD + "\\lib\\instantclient_12;";
  131. if (CHECK_HEADER_ADD_INCLUDE("oci.h", "CFLAGS_OCI8_19", oci8_19_inc_paths) &&
  132. CHECK_LIB("oci.lib", "oci8_19", oci8_19_lib_paths))
  133. {
  134. EXTENSION('oci8_19', 'oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c oci8_failover.c', null, null, null, "ext\\oci8_19")
  135. AC_DEFINE('HAVE_OCI8', 1);
  136. AC_DEFINE('HAVE_OCI_INSTANT_CLIENT', 1);
  137. } else {
  138. WARNING("oci8-19 not enabled: Oracle Database client libraries or Oracle Database 19 Instant Client not found");
  139. PHP_OCI8_19 = "no"
  140. }
  141. }