svn: /pecl/amqp/tags/amqp-1.0.0/ config.m4 package2.xml
| From: | Pieter de Zwart | Date: | Tue, 17 Jan 2012 21:39:13 +0000 |
| Subject: | svn: /pecl/amqp/tags/amqp-1.0.0/ config.m4 package2.xml | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-17471@lists.php.net to get a copy of this message | ||
pdezwart Tue, 17 Jan 2012 21:39:13 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=322427
Log:
Fixing config.m4
Updating package information
Changed paths:
U pecl/amqp/tags/amqp-1.0.0/config.m4
U pecl/amqp/tags/amqp-1.0.0/package2.xml
Modified: pecl/amqp/tags/amqp-1.0.0/config.m4
===================================================================
--- pecl/amqp/tags/amqp-1.0.0/config.m4 2012-01-17 21:38:44 UTC (rev 322426)
+++ pecl/amqp/tags/amqp-1.0.0/config.m4 2012-01-17 21:39:13 UTC (rev 322427)
@@ -1,5 +1,5 @@
dnl $Id$
-dnl config.m4 for extension rabbit
+dnl config.m4 for extension amqp
dnl Comments in this file start with the string 'dnl'.
dnl Remove where necessary. This file will not work
@@ -9,51 +9,62 @@
dnl Make sure that the comment is aligned:
- PHP_ARG_WITH(amqp, for amqp support,
- [ --with-amqp Include amqp support])
+PHP_ARG_WITH(amqp, for amqp support,
+[ --with-amqp Include amqp support])
+PHP_ARG_WITH(librabbitmq-dir, for amqp,
+[ --with-librabbitmq-dir[=DIR] Set the path to librabbit-mq install prefix.], yes)
+
if test "$PHP_AMQP" != "no"; then
- dnl Write more examples of tests here...
+ dnl Write more examples of tests here...
- dnl # --with-amqp -> check with-path
-
- SEARCH_PATH="/usr/local" # you might want to change this
+ AC_MSG_RESULT($PHP_AMQP)
- #SEARCH_FOR="/usr/local/include/amqp.h"
- #SEARCH_FOR="/usr/local/include/amqp_framing.h"
- SEARCH_FOR="amqp_framing.h"
+ dnl # --with-amqp -> check with-path
- AC_MSG_CHECKING([for amqp files in default path])
- for i in $PHP_AMQP $SEARCH_PATH ; do
- if test -r $i/include/$SEARCH_FOR;
- then
- AMQP_DIR=$i
- AC_MSG_RESULT(found in $i)
- break
- fi
- done
+ SEARCH_FOR="amqp_framing.h"
+ AC_MSG_CHECKING([for amqp files in default path])
+ if test "$PHP_LIBRABBITMQ_DIR" != "no" && test
"$PHP_LIBRABBITMQ_DIR" != "yes"; then
+ for i in $PHP_LIBRABBITMQ_DIR; do
+ if test -r $i/include/$SEARCH_FOR;
+ then
+ AMQP_DIR=$i
+ AC_MSG_RESULT(found in $i)
+ break
+ fi
+ done
+ else
+ for i in $PHP_AMQP /usr/local /usr ; do
+ if test -r $i/include/$SEARCH_FOR;
+ then
+ AMQP_DIR=$i
+ AC_MSG_RESULT(found in $i)
+ break
+ fi
+ done
+ fi
- if test -z "$AMQP_DIR"; then
- AC_MSG_RESULT([not found])
- AC_MSG_ERROR([Please reinstall the amqp distribution])
- fi
+ if test -z "$AMQP_DIR"; then
+ AC_MSG_RESULT([not found])
+ AC_MSG_ERROR([Please reinstall the librabbit-mq distribution])
+ fi
- dnl # --with-amqp -> add include path
-
- PHP_ADD_INCLUDE($AMQP_DIR/include)
+ dnl # --with-amqp -> add include path
- dnl # --with-amqp -> check for lib and symbol presence
+ PHP_ADD_INCLUDE($AMQP_DIR/include)
- LIBNAME=rabbitmq # you may want to change this
- LIBSYMBOL=rabbitmq # you most likely want to change this
+ dnl # --with-amqp -> check for lib and symbol presence
+ LIBNAME=amqp # you may want to change this
+ LIBSYMBOL=amqp # you most likely want to change this
- PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $AMQP_DIR/lib, AMQP_SHARED_LIBADD)
- PHP_SUBST(AMQP_SHARED_LIBADD)
- AMQP_SOURCES="amqp.c amqp_exchange.c amqp_queue.c amqp_connection.c amqp_channel.c
amqp_envelope.c"
-
- PHP_NEW_EXTENSION(amqp, $AMQP_SOURCES, $ext_shared)
+ PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $AMQP_DIR/lib, AMQP_SHARED_LIBADD)
+ PHP_SUBST(AMQP_SHARED_LIBADD)
+
+ AMQP_SOURCES="amqp.c amqp_exchange.c amqp_queue.c amqp_connection.c amqp_channel.c
amqp_envelope.c"
+
+ PHP_NEW_EXTENSION(amqp, $AMQP_SOURCES, $ext_shared)
fi
Modified: pecl/amqp/tags/amqp-1.0.0/package2.xml
===================================================================
--- pecl/amqp/tags/amqp-1.0.0/package2.xml 2012-01-17 21:38:44 UTC (rev 322426)
+++ pecl/amqp/tags/amqp-1.0.0/package2.xml 2012-01-17 21:39:13 UTC (rev 322427)
@@ -21,8 +21,8 @@
<api>1.0.0</api>
</version>
<stability>
- <release>production</release>
- <api>production</api>
+ <release>stable</release>
+ <api>stable</api>
</stability>
<license uri="http://www.php.net/license">PHP
License</license>
<notes>