Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rookie mistake. Needed to force a compiler error to determine the dif…

…ference in

function signature.



git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@800912 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
commit fd72a9bc48ebab76976f538c28459a0e26aa1750 1 parent 91a2232
Paul J. Davis davisp authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 configure.ac
7 configure.ac
View
@@ -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])
Please sign in to comment.
Something went wrong with that request. Please try again.