summaryrefslogtreecommitdiff
path: root/ext/mcve/config.m4
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mcve/config.m4')
-rw-r--r--ext/mcve/config.m425
1 files changed, 25 insertions, 0 deletions
diff --git a/ext/mcve/config.m4 b/ext/mcve/config.m4
new file mode 100644
index 0000000000..62d4f7e391
--- /dev/null
+++ b/ext/mcve/config.m4
@@ -0,0 +1,25 @@
+dnl config.m4 for PHP4 MCVE Extension
+
+PHP_ARG_WITH(mcve, for MCVE support,
+[ --with-mcve[=DIR] Include MCVE support])
+
+if test "$PHP_MCVE" != "no"; then
+ if test -r $PHP_MCVE/include/mcve.h; then
+ MCVE_DIR=$PHP_MCVE
+ else
+ for i in /usr /usr/local /usr/local/mcve ; do
+ if test -r $i/include/mcve.h; then
+ MCVE_DIR=$i
+ fi
+ done
+ fi
+
+ if test -z "$MCVE_DIR"; then
+ AC_MSG_ERROR(not found. Please check your MCVE installation; mcve.h NOT FOUND)
+ fi
+
+ PHP_ADD_INCLUDE($MCVE_DIR/include)
+ PHP_ADD_LIBRARY_WITH_PATH(mcve, $MCVE_DIR/lib, MCVE_SHARED_LIBADD)
+ PHP_EXTENSION(mcve, $ext_shared)
+ PHP_SUBST(MCVE_SHARED_LIBADD)
+fi