1dnl 2dnl $Id$ 3dnl 4 5PHP_ARG_WITH(pi3web, for Pi3Web support, 6[ --with-pi3web[=DIR] Build PHP as Pi3Web module], no, no) 7 8if test "$PHP_PI3WEB" != "no"; then 9 if test "$PHP_PI3WEB" = "yes"; then 10 PI3PATH=../.. # the default 11 else 12 PI3PATH=$PHP_PI3WEB 13 fi 14 test -f "$PI3PATH/PiAPI/PiAPI.h" || AC_MSG_ERROR([Unable to find PiAPI.h in $PI3PATH/PiAPI]) 15 PHP_BUILD_THREAD_SAFE 16 AC_DEFINE(WITH_PI3WEB, 1, [whether you want Pi3Web support]) 17 PHP_ADD_INCLUDE($PI3PATH/PiAPI) 18 PHP_ADD_INCLUDE($PI3PATH/Pi2API) 19 PHP_ADD_INCLUDE($PI3PATH/Pi3API) 20 PHP_ADD_INCLUDE($PI3PATH/PHP5) 21 PHP_SELECT_SAPI(pi3web, shared, pi3web_sapi.c) 22 INSTALL_IT="\$(SHELL) \$(srcdir)/install-sh -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PI3PATH/bin/" 23fi 24 25dnl ## Local Variables: 26dnl ## tab-width: 4 27dnl ## End: 28