From fd72a9bc48ebab76976f538c28459a0e26aa1750 Mon Sep 17 00:00:00 2001 From: Paul Joseph Davis Date: Tue, 4 Aug 2009 18:32:03 +0000 Subject: 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 --- configure.ac | 7 +++++-- 1 file 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 ]], [[JS_SetOperationCallback(0, 0);]] )], AC_DEFINE([USE_JS_SETOPCB], [], [Use new JS_SetOperationCallback]) ) +CFLAGS="$OLD_CFLAGS" AC_LANG_POP(C) AC_CHECK_ICU([3]) -- cgit v1.2.3