mirror of
https://github.com/php/php-src.git
synced 2024-10-14 13:02:37 +00:00
281b5d96e2
Hypwerwave SDK. The function of this module is similar to the existing hyperwave extension but the api is very different.
41 lines
1.0 KiB
Plaintext
41 lines
1.0 KiB
Plaintext
dnl $Id$
|
|
|
|
PHP_ARG_WITH(hwapi, for hwapi support,
|
|
[ --with-hwapi[=DIR] Include official Hyperwave API support])
|
|
|
|
if test "$PHP_HWAPI" != "no"; then
|
|
if test -r $PHP_HWAPI/include/sdk/api/object.h; then
|
|
HWAPI_DIR=$PHP_HWAPI
|
|
else
|
|
AC_MSG_CHECKING(for HWAPI in default path)
|
|
for i in /usr/local /usr; do
|
|
if test -r $i/include/hwapi/sdk/api/object.h; then
|
|
HWAPI_DIR=$i
|
|
AC_MSG_RESULT(found in $i)
|
|
fi
|
|
done
|
|
fi
|
|
|
|
if test -z "$HWAPI_DIR"; then
|
|
AC_MSG_RESULT(not found)
|
|
AC_MSG_ERROR(Please install the hwapi >= 1.0.0 distribution)
|
|
fi
|
|
|
|
PHP_ADD_INCLUDE($HWAPI_DIR/include/hwapi)
|
|
PHP_SUBST(HWAPI_SHARED_LIBADD)
|
|
PHP_ADD_LIBRARY_WITH_PATH(hwapi, $HWAPI_DIR/lib, HWAPI_SHARED_LIBADD)
|
|
AC_DEFINE(HAVE_HWAPI,1,[ ])
|
|
|
|
AC_MSG_RESULT(yes)
|
|
PHP_REQUIRE_CXX
|
|
dnl PHP_EXTENSION(hwapi, $ext_shared)
|
|
PHP_NEW_EXTENSION(hwapi, hwapi.cpp)
|
|
PHP_ADD_LIBRARY(hwapi)
|
|
PHP_ADD_LIBRARY(pthread)
|
|
PHP_ADD_LIBRARY(stdc++)
|
|
PHP_ADD_INCLUDE($HWAPI_DIR/include)
|
|
else
|
|
AC_DEFINE(HAVE_HWAPI,0,[ ])
|
|
AC_MSG_RESULT(no)
|
|
fi
|