mirror of
https://github.com/phpv8/v8js.git
synced 2024-11-09 15:18:41 +00:00
fix check for CreateDefaultPlatform, fixes #313
Include libplatform.h, as meanwhile all supported V8 versions have that file.
This commit is contained in:
parent
8fc207a9a6
commit
262707a97b
15
config.m4
15
config.m4
@ -94,12 +94,7 @@ if test "$PHP_V8JS" != "no"; then
|
||||
save_LIBS="$LIBS"
|
||||
LIBS="$LIBS $1 -lv8_libplatform -lv8"
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([
|
||||
namespace v8 {
|
||||
namespace platform {
|
||||
enum class IdleTaskSupport { kDisabled, kEnabled };
|
||||
void* CreateDefaultPlatform($2);
|
||||
}
|
||||
}
|
||||
#include <libplatform/libplatform.h>
|
||||
], [ v8::platform::CreateDefaultPlatform(); ])], [
|
||||
dnl libv8_libplatform.so found
|
||||
AC_MSG_RESULT(found)
|
||||
@ -109,15 +104,11 @@ if test "$PHP_V8JS" != "no"; then
|
||||
LIBS="$save_LIBS"
|
||||
])
|
||||
|
||||
V8_CHECK_LINK([], [int thread_pool_size = 0, IdleTaskSupport idle_task_support = IdleTaskSupport::kDisabled], [], [
|
||||
V8_CHECK_LINK([], [int thread_pool_size = 0], [], [
|
||||
V8_CHECK_LINK([-lv8_libbase], [int thread_pool_size = 0, IdleTaskSupport idle_task_support = IdleTaskSupport::kDisabled], [], [
|
||||
V8_CHECK_LINK([-lv8_libbase], [int thread_pool_size = 0], [], [
|
||||
V8_CHECK_LINK([], [], [], [
|
||||
V8_CHECK_LINK([-lv8_libbase], [], [], [
|
||||
AC_MSG_ERROR([could not find libv8_libplatform library])
|
||||
])
|
||||
])
|
||||
])
|
||||
])
|
||||
|
||||
|
||||
dnl
|
||||
|
Loading…
Reference in New Issue
Block a user