diff options
author | Jeffrey Yasskin <jyasskin@google.com> | 2010-02-09 23:03:44 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@google.com> | 2010-02-09 23:03:44 +0000 |
commit | bc83d064c320ff942385fcfe4f0df9c692b37447 (patch) | |
tree | d25b68c7a70c72c6fc8284a69baa09d0a67a56e5 /autoconf/configure.ac | |
parent | 39143700a41cc450252bf2e0b000ce1dd723eb0c (diff) | |
download | external_llvm-bc83d064c320ff942385fcfe4f0df9c692b37447.zip external_llvm-bc83d064c320ff942385fcfe4f0df9c692b37447.tar.gz external_llvm-bc83d064c320ff942385fcfe4f0df9c692b37447.tar.bz2 |
Make --disable-libffi work on systems with libffi installed. Also
make no-ffi the default even on systems with libffi. This fixes
http://llvm.org/PR5018.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95712 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf/configure.ac')
-rw-r--r-- | autoconf/configure.ac | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index a534866..40f77d8 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -727,13 +727,13 @@ fi dnl --enable-libffi : check whether the user wants to turn off libffi: AC_ARG_ENABLE(libffi,AS_HELP_STRING( - --enable-libffi,[Check for the presence of libffi (default is YES)]),, - enableval=yes) -case "$enableval" in - yes) llvm_cv_enable_libffi="yes" ;; - no) llvm_cv_enable_libffi="no" ;; - *) AC_MSG_ERROR([Invalid setting for --enable-libffi. Use "yes" or "no"]) ;; -esac + --enable-libffi,[Check for the presence of libffi (default is NO)]), + [case "$enableval" in + yes) llvm_cv_enable_libffi="yes" ;; + no) llvm_cv_enable_libffi="no" ;; + *) AC_MSG_ERROR([Invalid setting for --enable-libffi. Use "yes" or "no"]) ;; + esac], + llvm_cv_enable_libffi=no) dnl Only Windows needs dynamic libCompilerDriver to support plugins. if test "$llvm_cv_os_type" = "Win32" ; then @@ -1021,7 +1021,7 @@ dnl libffi is optional; used to call external functions from the interpreter if test "$llvm_cv_enable_libffi" = "yes" ; then AC_SEARCH_LIBS(ffi_call,ffi,AC_DEFINE([HAVE_FFI_CALL],[1], [Define if libffi is available on this platform.]), - AC_MSG_WARN([libffi not found - disabling external calls from interpreter])) + AC_MSG_ERROR([libffi not found - configure without --enable-libffi to compile without it])) fi dnl mallinfo is optional; the code can compile (minus features) without it |