1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 18:53:33 +02:00

add oracle 9 detection for oracle-module

This commit is contained in:
Thies C. Arntzen
2002-02-04 12:08:40 +00:00
parent 23258ef145
commit 32495f256c
+3 -1
View File
@@ -7,6 +7,8 @@ AC_DEFUN(AC_ORACLE_VERSION,[
if test -s "$ORACLE_DIR/orainst/unix.rgs"; then
ORACLE_VERSION=`grep '"ocommon"' $ORACLE_DIR/orainst/unix.rgs | sed 's/[ ][ ]*/:/g' | cut -d: -f 6 | cut -c 2-4`
test -z "$ORACLE_VERSION" && ORACLE_VERSION=7.3
elif test -f $ORACLE_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.9.0; then
ORACLE_VERSION=9.0
elif test -f $ORACLE_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.8.0; then
ORACLE_VERSION=8.1
elif test -f $ORACLE_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.1.0; then
@@ -140,7 +142,7 @@ if test "$PHP_ORACLE" != "no"; then
PHP_ADD_LIBRARY_WITH_PATH(clntsh, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
;;
8.1)
8.1|9.0)
PHP_ADD_LIBRARY(clntsh, 1, ORACLE_SHARED_LIBADD)
PHP_ADD_LIBPATH($ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
;;