summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Joseph Davis <davisp@apache.org>2009-08-04 18:32:03 +0000
committerPaul Joseph Davis <davisp@apache.org>2009-08-04 18:32:03 +0000
commitfd72a9bc48ebab76976f538c28459a0e26aa1750 (patch)
tree0e0056d60aea4d0031aacb3af0e68dbe01768ba1
parent91a22321c2f30ec18dbbb56ba3df65b0d683315f (diff)
Rookie mistake. Needed to force a compiler error to determine the difference in
function signature. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@800912 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--configure.ac7
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index f8dceebc..a0ced9f3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -104,13 +104,16 @@ Are the Mozilla SpiderMonkey headers installed?])
])])
AC_LANG_PUSH(C)
-AC_LINK_IFELSE(
+OLD_CFLAGS="$CFLAGS"
+CFLAGS="-Werror-implicit-function-declaration"
+AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
- [[]],
+ [[#include <jsapi.h>]],
[[JS_SetOperationCallback(0, 0);]]
)],
AC_DEFINE([USE_JS_SETOPCB], [], [Use new JS_SetOperationCallback])
)
+CFLAGS="$OLD_CFLAGS"
AC_LANG_POP(C)
AC_CHECK_ICU([3])