Commit b3eeda24 authored by tavit ohanian's avatar tavit ohanian

change with php test

parent 88566c68
......@@ -57,6 +57,28 @@ case "${gcc_version}" in
;;
esac
AC_SUBST(GCC_33)
dnl Look for php
if test "$enable_php" = "yes" ; then
dnl We don't want php < 5
dnl upstream required SWIGPHP5
AC_MSG_CHECKING([for a supported version of php])
php_version=`${PHP} -v | grep OPcache | sed 's/^.*v/v/' | sed 's/\-.*//'`
PHP_5=0
case "${php_version}" in
4.*)
AC_MSG_RESULT([no (${php_version})])
AC_MSG_ERROR([please use a recent (>= php5) version of php])
;;
*)
AC_MSG_RESULT([ok (${php_version})])
PHP_5=1
;;
esac
AC_SUBST(PHP_5)
done
AC_SUBST(SHARED)
VANK_STANDALONE=1
AC_DEFINE(VANK_STANDALONE, 1, [standalone vank])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment