SHARE
TWEET

Gena01

a guest Jul 30th, 2008 181 Never
  1. --- config.m4.bak       2008-07-30 15:11:36.521797900 -0400
  2. +++ config.m4   2008-07-30 15:16:44.526444081 -0400
  3.  -143,7 +143,21 @@
  4.    fi
  5.  fi
  6.  
  7. -PHP_OCI8_INSTANT_CLIENT="no"
  8. +dnl PHP_OCI8_INSTANT_CLIENT="no"
  9. +AC_CHECK_SIZEOF(long int, 4)
  10. +LIBDIR_SUFFIX=""
  11. +if test "$ac_cv_sizeof_long_int" = "8" ; then
  12. +   LIBDIR_SUFFIX=64
  13. +fi
  14. +
  15. +dnl Find the directory if user specified "instantclient" but did not give a dir.
  16. +dnl Generally the Instant Client can be anywhere so the user must pass in the
  17. +dnl directory to the libraries.  But on Linux we default to the most recent
  18. +dnl version in /usr/lib
  19. +PHP_OCI8_INSTANT_CLIENT=`ls -d /usr/lib/oracle/*/client${LIBDIR_SUFFIX}/lib 2> /dev/null | tail -1`
  20. +if test -z "$PHP_OCI8_INSTANT_CLIENT"; then
  21. +       PHP_OCI8_INSTANT_CLIENT="no"
  22. +fi
  23.  
  24.  if test "`echo $PHP_OCI8`" = "instantclient"; then
  25.      PHP_OCI8_INSTANT_CLIENT="yes"
RAW Paste Data
Top