From 538cfb0940efaab2729724519b68bee8bdbcfad4 Mon Sep 17 00:00:00 2001 From: Paul Joseph Davis Date: Tue, 4 Aug 2009 16:51:41 +0000 Subject: Proper fix because JS_VERSION cannot distinguish between 1.8.0 and 1.8.1 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@800873 13f79535-47bb-0310-9956-ffa450edef68 --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 5044953e..f8dceebc 100644 --- a/configure.ac +++ b/configure.ac @@ -103,6 +103,16 @@ AC_CHECK_HEADER([jsapi.h], [], [ Are the Mozilla SpiderMonkey headers installed?]) ])]) +AC_LANG_PUSH(C) +AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[]], + [[JS_SetOperationCallback(0, 0);]] + )], + AC_DEFINE([USE_JS_SETOPCB], [], [Use new JS_SetOperationCallback]) +) +AC_LANG_POP(C) + AC_CHECK_ICU([3]) ICU_LOCAL_CFLAGS=`$ICU_CONFIG --cppflags-searchpath` -- cgit v1.2.3