summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThies C. Arntzen <thies@php.net>2001-07-26 23:07:45 +0000
committerThies C. Arntzen <thies@php.net>2001-07-26 23:07:45 +0000
commit2649b94449dfdb2a5ba3c3acb0da870496ad4fb9 (patch)
treee2630e8137fba87f2231e71a9e60f8248a483090
parent7c43206fb886fd490fe5d7d88cf4333e284e5a5b (diff)
downloadphp-git-2649b94449dfdb2a5ba3c3acb0da870496ad4fb9.tar.gz
detect oracle9i
-rw-r--r--ext/oci8/config.m45
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/oci8/config.m4 b/ext/oci8/config.m4
index 165ab9942c..9c7d422a8c 100644
--- a/ext/oci8/config.m4
+++ b/ext/oci8/config.m4
@@ -5,6 +5,8 @@ AC_DEFUN(AC_OCI8_VERSION,[
if test -s "$OCI8_DIR/orainst/unix.rgs"; then
OCI8_VERSION=`grep '"ocommon"' $OCI8_DIR/orainst/unix.rgs | sed 's/[ ][ ]*/:/g' | cut -d: -f 6 | cut -c 2-4`
test -z "$OCI8_VERSION" && OCI8_VERSION=7.3
+ elif test -f $OCI8_DIR/lib/libclntsh.s?.9.0; then
+ OCI8_VERSION=9.0
elif test -f $OCI8_DIR/lib/libclntsh.s?.8.0; then
OCI8_VERSION=8.1
elif test -f $OCI8_DIR/lib/libclntsh.s?.1.0; then
@@ -62,11 +64,12 @@ if test "$PHP_OCI8" != "no"; then
PHP_ADD_LIBRARY_WITH_PATH(clntsh, $OCI8_DIR/lib, OCI8_SHARED_LIBADD)
;;
- 8.1)
+ 8.1|9.0)
PHP_ADD_LIBRARY(clntsh, 1, OCI8_SHARED_LIBADD)
PHP_ADD_LIBPATH($OCI8_DIR/lib, OCI8_SHARED_LIBADD)
AC_DEFINE(HAVE_OCI8_TEMP_LOB,1,[ ])
;;
+
*)
AC_MSG_ERROR(Unsupported Oracle version!)
;;