PHP_ARG_WITH(groonga, whether groonga is available,[ --with-groonga[=DIR] With groonga support])
if test "$PHP_GROONGA" != "no"; then
if test -r "$PHP_GROONGA/include/groonga.h"; then
PHP_GROONGA_DIR="$PHP_GROONGA"
PHP_ADD_INCLUDE($PHP_GROONGA_DIR/include) elif test -r "$PHP_GROONGA/include/groonga/groonga.h"; then
PHP_GROONGA_DIR="$PHP_GROONGA"
PHP_ADD_INCLUDE($PHP_GROONGA_DIR/include/groonga) else
AC_MSG_CHECKING(for groonga in default path) for i in /usr /usr/local; do if test -r "$i/include/groonga/groonga.h"; then
PHP_GROONGA_DIR=$i
AC_MSG_RESULT(found in $i)
break fi done if test "x" = "x$PHP_GROONGA_DIR"; then
AC_MSG_ERROR(not found) fi
PHP_ADD_INCLUDE($PHP_GROONGA_DIR/include) fi
AC_MSG_CHECKING(PHP version)
AC_TRY_COMPILE([#include <php_version.h>], [ #if PHP_VERSION_ID < 40000 #error this extension requires at least PHP version 4.0.0 #endif
],
[AC_MSG_RESULT(ok)],
[AC_MSG_ERROR([need at least PHP 4.0.0])])
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.