diff options
-rw-r--r-- | ext/oci8/config.m4 | 12 | ||||
-rw-r--r-- | ext/oracle/config.m4 | 8 |
2 files changed, 14 insertions, 6 deletions
diff --git a/ext/oci8/config.m4 b/ext/oci8/config.m4 index b9c79df155..d832b52d8b 100644 --- a/ext/oci8/config.m4 +++ b/ext/oci8/config.m4 @@ -9,8 +9,12 @@ AC_DEFUN(AC_OCI8_VERSION,[ OCI8_VERSION=8.1 elif test -f $OCI8_DIR/lib/libclntsh.s?.1.0; then OCI8_VERSION=8.0 - elif test -f $OCI8_DIR/lib/libclntsh.a; then # AIX - XXX is this check still right for 8.1? - OCI8_VERSION=8.0 + elif test -f $OCI8_DIR/lib/libclntsh.a; then + if test -f $OCI8_DIR/lib/libcore4.a; then + OCI8_VERSION=8.0 + else + OCI8_VERSION=8.1 + fi else AC_MSG_ERROR(Oracle-OCI8 needed libraries not found) fi @@ -78,7 +82,7 @@ if test "$PHP_OCI8" != "no"; then PHP_EXTENSION(oci8, $ext_shared) AC_DEFINE(HAVE_OCI8,1,[ ]) - PHP_SUBST(OCI8_SHARED_LIBADD) - PHP_SUBST(OCI8_DIR) + PHP_SUBST_OLD(OCI8_SHARED_LIBADD) + PHP_SUBST_OLD(OCI8_DIR) PHP_SUBST_OLD(OCI8_VERSION) fi diff --git a/ext/oracle/config.m4 b/ext/oracle/config.m4 index 7fed23f385..1a720108cf 100644 --- a/ext/oracle/config.m4 +++ b/ext/oracle/config.m4 @@ -9,8 +9,12 @@ AC_DEFUN(AC_ORACLE_VERSION,[ ORACLE_VERSION=8.1 elif test -f $ORACLE_DIR/lib/libclntsh.s?.1.0; then ORACLE_VERSION=8.0 - elif test -f $ORACLE_DIR/lib/libclntsh.a; then # AIX - XXX is this check still right for 8.1? - ORACLE_VERSION=8.0 + elif test -f $OCI8_DIR/lib/libclntsh.a; then + if test -f $OCI8_DIR/lib/libcore4.a; then + OCI8_VERSION=8.0 + else + OCI8_VERSION=8.1 + fi else AC_MSG_ERROR(Oracle needed libraries not found) fi |