summaryrefslogtreecommitdiffstats
path: root/autoconf
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2013-07-08 20:24:54 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2013-07-08 20:24:54 +0000
commite1e7310749008a515ddd5bf6398df17644f53b33 (patch)
treed4185f204a11e2b88687daf486bc362580931d40 /autoconf
parentcffecb4f2b8177c6264ef65b15f0a182058b39a2 (diff)
downloadexternal_llvm-e1e7310749008a515ddd5bf6398df17644f53b33.zip
external_llvm-e1e7310749008a515ddd5bf6398df17644f53b33.tar.gz
external_llvm-e1e7310749008a515ddd5bf6398df17644f53b33.tar.bz2
Find xdot or xdot.py.
Ubuntu installs this as xdot, so finding xdot.py would fail. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185860 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac12
1 files changed, 6 insertions, 6 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 7137e29..b54535e 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -1200,15 +1200,15 @@ 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])
+AC_PATH_PROGS(XDOT, [xdot, xdot.py], [echo xdot])
+if test "$XDOT" != "echo xdot" ; then
+ AC_DEFINE([HAVE_XDOT],[1],[Define if the xdot 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:\//' `
+ XDOT=`echo $XDOT | 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])
+ AC_DEFINE_UNQUOTED([LLVM_PATH_XDOT],"$XDOT${EXEEXT}",
+ [Define to path to xdot program if found or 'echo xdot' otherwise])
fi
dnl Find the install program