summaryrefslogtreecommitdiffstats
path: root/llvm/autoconf/configure.ac
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2007-01-19 17:25:17 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2007-01-19 17:25:17 +0000
commit3e956974b3cf704dc1dca125e5e626110cb747fd (patch)
tree02138df8c8c95c7fd1c8738183da795887368c6e /llvm/autoconf/configure.ac
parent49c6e09c7cad8e95beccf51b906e44498d1d0919 (diff)
downloadbcm5719-llvm-3e956974b3cf704dc1dca125e5e626110cb747fd.tar.gz
bcm5719-llvm-3e956974b3cf704dc1dca125e5e626110cb747fd.zip
Adding disassembler interface and external hook to udis86 library.
llvm-svn: 33358
Diffstat (limited to 'llvm/autoconf/configure.ac')
-rw-r--r--llvm/autoconf/configure.ac23
1 files changed, 21 insertions, 2 deletions
diff --git a/llvm/autoconf/configure.ac b/llvm/autoconf/configure.ac
index 207daef006d..522001c59a7 100644
--- a/llvm/autoconf/configure.ac
+++ b/llvm/autoconf/configure.ac
@@ -35,8 +35,8 @@ AC_INIT([[llvm]],[[2.0cvs]],[llvmbugs@cs.uiuc.edu])
dnl Provide a copyright substitution and ensure the copyright notice is included
dnl in the output of --version option of the generated configure script.
-AC_SUBST(LLVM_COPYRIGHT,["Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."])
-AC_COPYRIGHT([Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.])
+AC_SUBST(LLVM_COPYRIGHT,["Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."])
+AC_COPYRIGHT([Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.])
dnl Indicate that we require autoconf 2.59 or later. Ths is needed because we
dnl use some autoconf macros only available in 2.59.
@@ -629,6 +629,25 @@ if test "$ENABLE_THREADS" -eq 1 ; then
[Have pthread_mutex_lock]))
fi
+dnl Allow extra x86-disassembler library
+AC_ARG_WITH(udis86,
+ AS_HELP_STRING([--with-udis86=<path>],
+ [Use udis86 external x86 disassembler library]),
+ [
+ AC_SUBST(USE_UDIS86, [1])
+ case "$withval" in
+ /usr/lib) ;;
+ *) LDFLAGS="$LDFLAGS -L${withval}" ;;
+ esac
+ AC_CHECK_LIB(udis86, ud_init, [], [
+ echo "Error! You need to have libudis86 around."
+ exit -1
+ ])
+ ],
+ AC_SUBST(USE_UDIS86, [0]))
+AC_DEFINE_UNQUOTED([USE_UDIS86],$USE_UDIS86,
+ [Define if use udis86 library])
+
dnl===-----------------------------------------------------------------------===
dnl===
dnl=== SECTION 6: Check for header files
OpenPOWER on IntegriCloud