[LLVMbugs] [Bug 5018] New: ffi/oprofile checked for even when explicitly disabled
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Mon Sep 21 06:07:22 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=5018
Summary: ffi/oprofile checked for even when explicitly disabled
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: edwintorok at gmail.com
CC: llvmbugs at cs.uiuc.edu
./configure --enable-ffi=no --enable-oprofile=no still checks for ffi and
oprofile
and adds it to LIBS.
The problem is here in configure.ac:
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
enableval should be tested inside AC_ARG_ENABLE, otherwise it contains
something else:
+ eval 'enable_ffi=$ac_optarg'
++ enable_ffi=no
...
+ case "$withval" in
+ with_ocaml_libdir=auto
+ test '' = set
+ withval=default
+ case "$withval" in
+ WITH_BINUTILS_INCDIR=default
+ test xdefault '!=' xdefault
+ test '' = set
+ enableval=yes
+ case "$enableval" in
+ llvm_cv_enable_libffi=yes
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list