summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Benkard <code@mail.matthias.benkard.de>2008-03-03 21:33:06 +0100
committerMatthias Benkard <code@mail.matthias.benkard.de>2008-03-03 21:33:06 +0100
commitb2342735e543f8fec2f6914d5e628391dd0ffc46 (patch)
tree73c4a92f29e0cdf2813b4441aa85d7263045c2e9
parentb47bc1b65a3db942bb7e7b2e9b62ddc92d98ca8f (diff)
Require libffi 3.x.
darcs-hash:336a6b83c9f36e68a26822ae40c0f7bb9a005feb
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index f777adf..6f070c2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -24,7 +24,9 @@ AC_PROG_OBJC
#AC_PROG_LN_S
AC_PROG_MAKE_SET
-AC_SEARCH_LIBS([ffi_call], [ffi], [HAVE_LIBFFI=1; break], [HAVE_LIBFFI=0])
+# Note that ffi_prep_closure_loc is not available in libffi versions
+# prior to 3.0.0. This includes Leopard's preinstalled libffi.
+AC_SEARCH_LIBS([ffi_prep_closure_loc], [ffi], [HAVE_LIBFFI=1; break], [HAVE_LIBFFI=0])
HAVE_ANY_FFI_H=0
if test x$HAVE_LIBFFI = x1; then