diff options
author | Dan Gohman <gohman@apple.com> | 2010-09-27 16:28:34 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-09-27 16:28:34 +0000 |
commit | 48fd5a79e023bf6a647dfabb2bbb4c2f98617b81 (patch) | |
tree | b0ca2b5657873c23b7cf0e9eb762b45122918e0a /autoconf | |
parent | 520163c98bbfcaa3a82fccd3ca27446ffc2c53cd (diff) | |
download | external_llvm-48fd5a79e023bf6a647dfabb2bbb4c2f98617b81.zip external_llvm-48fd5a79e023bf6a647dfabb2bbb4c2f98617b81.tar.gz external_llvm-48fd5a79e023bf6a647dfabb2bbb4c2f98617b81.tar.bz2 |
Add support for viewing graphviz graphs with xdot.py.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114832 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r-- | autoconf/configure.ac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 949a74f..d4d0722 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -979,6 +979,16 @@ if test "$DOTTY" != "echo dotty" ; then AC_DEFINE_UNQUOTED([LLVM_PATH_DOTTY],"$DOTTY${EXEEXT}", [Define to path to dotty program if found or 'echo dotty' otherwise]) fi +AC_PATH_PROG(XDOT_PY, [xdot.py], [echo xdot.py]) +if test "$XDOT_PY" != "echo xdot.py" ; then + AC_DEFINE([HAVE_XDOT_PY],[1],[Define if the xdot.py program is available]) + dnl If we're targeting for mingw we should emit windows paths, not msys + if test "$llvm_cv_os_type" = "MingW" ; then + XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([[A-Za-z]]\)\//\1:\//' ` + fi + AC_DEFINE_UNQUOTED([LLVM_PATH_XDOT_PY],"$XDOT_PY${EXEEXT}", + [Define to path to xdot.py program if found or 'echo xdot.py' otherwise]) +fi dnl Look for a sufficiently recent version of Perl. LLVM_PROG_PERL([5.006]) |