1
0
Fork 0
arangodb/m4/all-in-one.v8

59 lines
1.8 KiB
Plaintext

dnl -*- mode: Autoconf; -*-
dnl -----------------------------------------------------------------------------------------
dnl option for V8 support
dnl -----------------------------------------------------------------------------------------
V8_CPPFLAGS="-I${srcdir}/3rdParty/V8/include"
V8_LDFLAGS=""
V8_TARGET="native"
if test x$tr_DARWIN == xyes; then
if test "x$tr_BITS" == x64; then
V8_TARGET="x64.release"
else
V8_TARGET="ia32.release"
fi
V8_LIBS="${srcdir}/3rdParty/V8/out/$V8_TARGET/libv8_base.a ${srcdir}/3rdParty/V8/out/$V8_TARGET/libv8_nosnapshot.a"
else
if test "x$tr_BITS" == x64; then
V8_TARGET="x64.release"
else
V8_TARGET="ia32.release"
fi
V8_LIBS="${srcdir}/3rdParty/V8/out/$V8_TARGET/obj.target/tools/gyp/libv8_base.a ${srcdir}/3rdParty/V8/out/$V8_TARGET/obj.target/tools/gyp/libv8_nosnapshot.a"
fi
TRI_V8_VERSION="3.9.4"
dnl -----------------------------------------------------------------------------------------
dnl add substitutions
dnl -----------------------------------------------------------------------------------------
AC_SUBST(V8_CPPFLAGS)
AC_SUBST(V8_LDFLAGS)
AC_SUBST(V8_LIBS)
AC_SUBST(V8_TARGET)
V8_CPPFLAGS="${V8_CPPFLAGS} -DTRI_V8_VERSION='\"${TRI_V8_VERSION}\"'"
dnl -----------------------------------------------------------------------------------------
dnl informational output
dnl -----------------------------------------------------------------------------------------
LIB_INFO="$LIB_INFO|V8 VERSION: ${TRI_V8_VERSION}"
FLAG_INFO="$FLAG_INFO|V8_TARGET: ${V8_TARGET}"
FLAG_INFO="$FLAG_INFO|V8_CPPFLAGS: ${V8_CPPFLAGS}"
FLAG_INFO="$FLAG_INFO|V8_LDFLAGS: ${V8_LDFLAGS}"
FLAG_INFO="$FLAG_INFO|V8_LIBS: ${V8_LIBS}"
FLAG_INFO="$FLAG_INFO|."
dnl Local Variables:
dnl mode: outline-minor
dnl outline-regexp: "^\\(dnl --SECTION--\\)"
dnl End: