1
1
// vim:ft=javascript
2
2
3
- if ( PHP_OCI8 != "no" && PHP_OCI8_11G != "no" ) {
4
- if ( ! PHP_OCI8_SHARED && ! PHP_OCI8_11G_SHARED ) {
5
- WARNING ( "oci8 and oci8-11g provide the same extension and cannot both be built statically" ) ;
6
- PHP_OCI8 = "no"
7
- }
8
- }
9
-
10
- if ( PHP_OCI8 != "no" && PHP_OCI8_12C != "no" ) {
11
- if ( ! PHP_OCI8_SHARED && ! PHP_OCI8_12C_SHARED ) {
12
- WARNING ( "oci8 and oci8-12c provide the same extension and cannot both be built statically" ) ;
13
- PHP_OCI8 = "no"
14
- }
15
- }
16
-
17
3
if ( PHP_OCI8_11G != "no" && PHP_OCI8_12C != "no" ) {
18
4
if ( ! PHP_OCI8_11G_SHARED && ! PHP_OCI8_12C_SHARED ) {
19
5
WARNING ( "oci8-11g and oci8-12c provide the same extension and cannot both be built statically" ) ;
20
6
PHP_OCI8_11G = "no"
21
7
}
22
8
}
23
9
24
- if ( PHP_OCI8 != "no" && PHP_OCI8_19 != "no" ) {
25
- if ( ! PHP_OCI8_SHARED && ! PHP_OCI8_19_SHARED ) {
26
- WARNING ( "oci8 and oci8-19 provide the same extension and cannot both be built statically" ) ;
27
- PHP_OCI8 = "no"
28
- }
29
- }
30
-
31
10
if ( PHP_OCI8_11G != "no" && PHP_OCI8_19 != "no" ) {
32
11
if ( ! PHP_OCI8_11G_SHARED && ! PHP_OCI8_19_SHARED ) {
33
12
WARNING ( "oci8-11g and oci8-19 provide the same extension and cannot both be built statically" ) ;
@@ -42,41 +21,6 @@ if (PHP_OCI8_12C != "no" && PHP_OCI8_19 != "no") {
42
21
}
43
22
}
44
23
45
- ARG_WITH ( "oci8" , "OCI8 support" , "no" ) ;
46
-
47
- if ( PHP_OCI8 != "no" ) {
48
-
49
- oci8_dirs = new Array (
50
- PHP_OCI8
51
- ) ;
52
-
53
- oci8_lib_paths = "" ;
54
- oci8_inc_paths = "" ;
55
-
56
- // find the Oracle install
57
- for ( i = 0 ; i < oci8_dirs . length ; i ++ ) {
58
- oci8_lib_paths += oci8_dirs [ i ] + "\\lib;" ;
59
- oci8_lib_paths += oci8_dirs [ i ] + "\\lib\\msvc;" ;
60
- oci8_inc_paths += oci8_dirs [ i ] + "\\include;" ;
61
- }
62
-
63
- oci8_inc_paths += PHP_PHP_BUILD + "\\include\\instantclient;"
64
- oci8_lib_paths += PHP_PHP_BUILD + "\\lib\\instantclient;" ;
65
-
66
- if ( CHECK_HEADER_ADD_INCLUDE ( "oci.h" , "CFLAGS_OCI8" , oci8_inc_paths ) &&
67
- CHECK_LIB ( "oci.lib" , "oci8" , oci8_lib_paths ) )
68
- {
69
- EXTENSION ( 'oci8' , 'oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c oci8_failover.c' ) ;
70
-
71
- AC_DEFINE ( 'HAVE_OCI8' , 1 ) ;
72
- AC_DEFINE ( 'HAVE_OCI_INSTANT_CLIENT' , 1 ) ;
73
-
74
- } else {
75
- WARNING ( "oci8 not enabled: Oracle Database client libraries or Oracle 10g Instant Client not found" ) ;
76
- PHP_OCI8 = "no"
77
- }
78
- }
79
-
80
24
ARG_WITH ( "oci8-11g" , "OCI8 support using Oracle 11g Instant Client" , "no" ) ;
81
25
82
26
if ( PHP_OCI8_11G != "no" ) {
0 commit comments