summaryrefslogtreecommitdiff
path: root/php/ext/google/protobuf/config.m4
diff options
context:
space:
mode:
Diffstat (limited to 'php/ext/google/protobuf/config.m4')
-rw-r--r--php/ext/google/protobuf/config.m410
1 files changed, 10 insertions, 0 deletions
diff --git a/php/ext/google/protobuf/config.m4 b/php/ext/google/protobuf/config.m4
new file mode 100644
index 00000000..b5946f74
--- /dev/null
+++ b/php/ext/google/protobuf/config.m4
@@ -0,0 +1,10 @@
+dnl lines starting with "dnl" are comments
+
+PHP_ARG_ENABLE(protobuf, whether to enable Protobuf extension, [ --enable-protobuf Enable Protobuf extension])
+
+if test "$PHP_PROTOBUF" != "no"; then
+
+ dnl this defines the extension
+ PHP_NEW_EXTENSION(protobuf, upb.c protobuf.c def.c message.c storage.c, $ext_shared)
+
+fi