diff options
author | Mark Spruiell <mes@zeroc.com> | 2003-07-27 14:16:26 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2003-07-27 14:16:26 +0000 |
commit | b279ff16aa0447dd808b2fee95bd13fd0a32afcc (patch) | |
tree | 40509b68195d5849e7dd393a71a22579ee2b8d8b /php/src | |
parent | fixing "leaks" (diff) | |
download | ice-b279ff16aa0447dd808b2fee95bd13fd0a32afcc.tar.bz2 ice-b279ff16aa0447dd808b2fee95bd13fd0a32afcc.tar.xz ice-b279ff16aa0447dd808b2fee95bd13fd0a32afcc.zip |
clean up
Diffstat (limited to 'php/src')
-rw-r--r-- | php/src/ice/config.m4 | 44 |
1 files changed, 13 insertions, 31 deletions
diff --git a/php/src/ice/config.m4 b/php/src/ice/config.m4 index 049fd941ae0..bea91baae8d 100644 --- a/php/src/ice/config.m4 +++ b/php/src/ice/config.m4 @@ -5,22 +5,12 @@ dnl Comments in this file start with the string 'dnl'. dnl Remove where necessary. This file will not work dnl without editing. -dnl If your extension references something external, use with: - PHP_ARG_WITH(ice, for Ice support, [ --with-ice Include Ice support]) -dnl Otherwise use enable: - -dnl PHP_ARG_ENABLE(ice, whether to enable Ice support, -dnl Make sure that the comment is aligned: -dnl [ --enable-ice Enable Ice support]) - if test "$PHP_ICE" != "no"; then - dnl Write more examples of tests here... - # --with-ice -> check with-path - SEARCH_PATH="/usr/local /usr" # you might want to change this + SEARCH_PATH="/usr/local /usr" SEARCH_FOR="/include/Ice/Ice.h" if test -r $PHP_ICE/$SEARCH_FOR; then # path given as parameter ICE_DIR=$PHP_ICE @@ -36,33 +26,25 @@ if test "$PHP_ICE" != "no"; then if test -z "$ICE_DIR"; then AC_MSG_RESULT([not found]) - AC_MSG_ERROR([Please reinstall the Ice distribution]) + AC_MSG_ERROR([Please reinstall the Ice distribution from http://www.zeroc.com]) fi - # --with-ice -> add include path PHP_ADD_INCLUDE($ICE_DIR/include) - dnl # --with-ice -> check for lib and symbol presence - dnl LIBNAME=Ice # you may want to change this - dnl LIBSYMBOL=ice # you most likely want to change this - - dnl PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOL, - dnl [ - dnl PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $ICE_DIR/lib, ICE_SHARED_LIBADD) - dnl AC_DEFINE(HAVE_ICELIB,1,[ ]) - dnl ],[ - dnl AC_MSG_ERROR([wrong Ice lib version or lib not found]) - dnl ],[ - dnl -L$ICE_DIR/lib -lm -ldl - dnl ]) - dnl - dnl PHP_SUBST(ICE_SHARED_LIBADD) - PHP_REQUIRE_CXX() PHP_ADD_LIBPATH($ICE_DIR/lib, ICE_SHARED_LIBADD) PHP_ADD_LIBRARY(Ice, 1, ICE_SHARED_LIBADD) PHP_ADD_LIBRARY(Slice, 1, ICE_SHARED_LIBADD) PHP_ADD_LIBRARY(IceUtil, 1, ICE_SHARED_LIBADD) - PHP_ADD_LIBRARY(stdc++, 1, ICE_SHARED_LIBADD) - PHP_NEW_EXTENSION(ice, ice.cpp communicator.cpp exception.cpp identity.cpp marshal.cpp proxy.cpp slice.cpp util.cpp, $ext_shared) + + sources="ice.cpp \ + communicator.cpp \ + exception.cpp \ + identity.cpp \ + marshal.cpp \ + proxy.cpp \ + slice.cpp \ + util.cpp" + + PHP_NEW_EXTENSION(ice, $sources, $ext_shared) fi |