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:
@@ -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)
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user