php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch config.m4.61551.patch for OCI8 related Bug #61551

Patch version 2013-01-22 07:14 UTC

Return to Bug #61551 | Download this patch
Patch Revisions:

Developer: sixd@php.net

--- config.m4.orig	2013-01-21 23:13:04.188453460 -0800
+++ config.m4	2013-01-21 23:13:08.228516932 -0800
@@ -260,6 +260,12 @@
     esac
 
     PHP_ADD_LIBRARY(clntsh, 1, OCI8_SHARED_LIBADD)
+
+    OCI8_NNZ_LIB=`ls $OCI8_DIR/$OCI8_LIB_DIR/libnnz*.$SHLIB_SUFFIX_NAME 2> /dev/null | tail -1 | $PHP_OCI8_SED -e 's/.*libnnz\(.*\)\.'${SHLIB_SUFFIX_NAME}'/nnz\1/'`
+    if test -n "$OCI8_NNZ_LIB"; then
+       PHP_ADD_LIBRARY($OCI8_NNZ_LIB, 1, OCI8_SHARED_LIBADD)
+    fi
+
     PHP_ADD_LIBPATH($OCI8_DIR/$OCI8_LIB_DIR, OCI8_SHARED_LIBADD)
     PHP_NEW_EXTENSION(oci8, oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c, $ext_shared)
     AC_DEFINE(HAVE_OCI8,1,[ ])
@@ -328,6 +334,10 @@
 
     AC_OCI8IC_VERSION($PHP_OCI8_INSTANT_CLIENT)
     PHP_ADD_LIBRARY(clntsh, 1, OCI8_SHARED_LIBADD)
+    if test -n "$OCI8_NNZ"; then
+       OCI8_NNZ_LIB=`echo $OCI8_NNZ | $PHP_OCI8_SED -e 's/.*libnnz\(.*\)\.'${SHLIB_SUFFIX_NAME}'/nnz\1/'`
+       PHP_ADD_LIBRARY($OCI8_NNZ_LIB, 1, OCI8_SHARED_LIBADD)
+    fi
     PHP_ADD_LIBPATH($PHP_OCI8_INSTANT_CLIENT, OCI8_SHARED_LIBADD)
 
     AC_DEFINE(HAVE_OCI_INSTANT_CLIENT,1,[ ])
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 23 21:01:28 2024 UTC