diff options
| author | advect <advect@gmail.com> | 2010-09-29 08:47:06 +0900 |
|---|---|---|
| committer | advect <advect@gmail.com> | 2010-09-29 08:47:06 +0900 |
| commit | 2a0a84763479e6eebd30f685e5f64afd7e7cb3bc (patch) | |
| tree | ec04dceb4c7b378dcabdcab8ad15b9754ae06599 /php/config.m4 | |
| parent | 2ccb09434fcd313fdd48b7edbebec9d18408cf9d (diff) | |
| download | msgpack-python-2a0a84763479e6eebd30f685e5f64afd7e7cb3bc.tar.gz | |
php: update 0.3.0
Diffstat (limited to 'php/config.m4')
| -rw-r--r-- | php/config.m4 | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/php/config.m4 b/php/config.m4 index d319684..a78e1f3 100644 --- a/php/config.m4 +++ b/php/config.m4 @@ -21,52 +21,7 @@ PHP_ARG_WITH(msgpack, for msgpack support, Make sure that the comment is aligned: [ --with-msgpack Include msgpack support]) -dnl PHP_ARG_ENABLE(msgpack, whether to enable msgpack support, -dnl Make sure that the comment is aligned: -dnl [ --enable-msgpack Enable msgpack support]) - if test "$PHP_MSGPACK" != "no"; then - dnl Write more examples of tests here... - - dnl --with-msgpack -> check with-path - SEARCH_PATH="/usr/local /usr" # you might want to change this - SEARCH_FOR="/include/msgpack.h" # you most likely want to change this - if test -r $PHP_MSGPACK/$SEARCH_FOR; then # path given as parameter - MSGPACK_DIR=$PHP_MSGPACK - else # search default path list - AC_MSG_CHECKING([for msgpack files in default path]) - for i in $SEARCH_PATH ; do - if test -r $i/$SEARCH_FOR; then - MSGPACK_DIR=$i - AC_MSG_RESULT(found in $i) - fi - done - fi - - if test -z "$MSGPACK_DIR"; then - AC_MSG_RESULT([not found]) - AC_MSG_ERROR([Please reinstall the msgpack distribution]) - fi - - dnl --with-msgpack -> add include path - PHP_ADD_INCLUDE($MSGPACK_DIR/include) - - dnl --with-msgpack -> check for lib and symbol presence - LIBNAME=msgpack # you may want to change this - LIBSYMBOL=msgpack_pack_object # you most likely want to change this - - PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOL, - [ - PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $MSGPACK_DIR/lib, MSGPACK_SHARED_LIBADD) - AC_DEFINE(HAVE_MSGPACKLIB,1,[ ]) - ],[ - AC_MSG_ERROR([wrong msgpack lib version or lib not found]) - ],[ - -L$MSGPACK_DIR/lib -lm - ]) - - PHP_SUBST(MSGPACK_SHARED_LIBADD) - PHP_NEW_EXTENSION(msgpack, msgpack.c msgpack_pack.c msgpack_unpack.c msgpack_class.c, $ext_shared) PHP_INSTALL_HEADERS([ext/msgpack], [php_msgpack.h]) |
