summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rules/php5.in7
-rw-r--r--rules/php5.make6
2 files changed, 13 insertions, 0 deletions
diff --git a/rules/php5.in b/rules/php5.in
index 45415b35..65f986f4 100644
--- a/rules/php5.in
+++ b/rules/php5.in
@@ -533,6 +533,13 @@ config PHP5_EXT_SOAP
Enable SOAP support for PHP.
# --enable-sockets Enable sockets support
+
+config PHP5_EXT_SOCKETS
+ bool
+ prompt "sockets"
+ help
+ Enable sockets support for PHP.
+
# --disable-spl Disable Standard PHP Library
# --without-sqlite Do not include sqlite support.
# Use --with-sqlite=DIR to specify DIR where
diff --git a/rules/php5.make b/rules/php5.make
index ef3b7de9..450f488d 100644
--- a/rules/php5.make
+++ b/rules/php5.make
@@ -261,6 +261,12 @@ else
PHP5_AUTOCONF += --disable-soap
endif
+ifdef PTXCONF_PHP5_EXT_SOCKETS
+PHP5_AUTOCONF += --enable-sockets
+else
+PHP5_AUTOCONF += --disable-sockets
+endif
+
ifdef PTXCONF_PHP5_EXT_PEAR
PHP5_AUTOCONF += --with-pear=FIXME
else