X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=config.m4;h=ed20d5620964ea98c6da02ed0e6c277cb0adf9d0;hp=8301db03f49553b6e76b66f4a063b597bea3ee2c;hb=dd52670ccf9557faa0152babbfcf72b5c1be2ceb;hpb=daf2e8ab5eb324b0a0447e87a92afb6788a722a7 diff --git a/config.m4 b/config.m4 index 8301db0..ed20d56 100644 --- a/config.m4 +++ b/config.m4 @@ -1,5 +1,5 @@ PHP_ARG_WITH(pq, [whether to enable libpq (PostgreSQL) support], -[ --with-pq Include libpq support]) +[ --with-pq[=DIR] Include libpq support]) if test "$PHP_PQ" != "no"; then SEARCH_PATH="/usr/local /usr /opt" @@ -31,8 +31,29 @@ if test "$PHP_PQ" != "no"; then -L$PQ_DIR/$PHP_LIBDIR ]) PHP_CHECK_LIBRARY(pq, PQlibVersion, [AC_DEFINE(HAVE_PQLIBVERSION, 1, Have PQlibVersion)]) - - PHP_NEW_EXTENSION(pq, php_pq.c, $ext_shared) - PHP_ADD_EXTENSION_DEP(pq, raphf) + + PQ_SRC="\ + src/php_pq_module.c\ + src/php_pq_misc.c\ + src/php_pq_callback.c\ + src/php_pq_object.c\ + src/php_pq_params.c\ + src/php_pqcancel.c\ + src/php_pqconn.c\ + src/php_pqconn_event.c\ + src/php_pqcopy.c\ + src/php_pqexc.c\ + src/php_pqlob.c\ + src/php_pqres.c\ + src/php_pqstm.c\ + src/php_pqtxn.c\ + src/php_pqtypes.c\ + src/php_pqcur.c\ + " + PHP_NEW_EXTENSION(pq, $PQ_SRC, $ext_shared) + PHP_ADD_BUILD_DIR($ext_builddir/src) + PHP_ADD_INCLUDE($ext_srcdir/src) + PHP_ADD_EXTENSION_DEP(pq, raphf) + fi