1
dnl Copyright (C) 2009 Sun Microsystems, Inc.
2
dnl This file is free software; Sun Microsystems, Inc.
3
dnl gives unlimited permission to copy and/or distribute it,
4
dnl with or without modifications, as long as this notice is preserved.
6
#--------------------------------------------------------------------
8
#--------------------------------------------------------------------
11
AC_DEFUN([_PANDORA_SEARCH_LIBV8],[
12
AC_REQUIRE([AC_LIB_PREFIX])
14
# v8 is written in C++, need to use g++ for test link below
17
AC_LIB_HAVE_LINKFLAGS(v8, pthread,
21
v8::HandleScope handle_scope;
24
AM_CONDITIONAL(HAVE_LIBV8, [test "x${ac_cv_libv8}" = "xyes"])
27
AC_DEFUN([_PANDORA_HAVE_LIBV8],[
28
AC_ARG_ENABLE([libv8],
29
[AS_HELP_STRING([--disable-libv8],
30
[Build with libv8 support @<:@default=on@:>@])],
31
[ac_enable_libv8="$enableval"],
32
[ac_enable_libv8="yes"])
38
AC_DEFUN([PANDORA_HAVE_LIBV8],[
39
AC_REQUIRE([_PANDORA_HAVE_LIBV8])
42
AC_DEFUN([_PANDORA_REQUIRE_LIBV8],[
46
AS_IF([test x$ac_cv_libv8 = xno],[
47
PANDORA_MSG_ERROR([libv8 is required for ${PACKAGE}. On Debian this can be found in libv8-dev. On RedHat this can be found in libv8-devel.])
51
AC_DEFUN([PANDORA_REQUIRE_LIBV8],[
52
AC_REQUIRE([_PANDORA_REQUIRE_LIBV8])