GraphWriter: detect graph viewer programs at runtime
authorAlp Toker <alp@nuanti.com>
Mon, 2 Jun 2014 01:40:04 +0000 (01:40 +0000)
committerAlp Toker <alp@nuanti.com>
Mon, 2 Jun 2014 01:40:04 +0000 (01:40 +0000)
commit04de60e28f29613ea762fc7221197f7a2c4ade80
treee081176c7664085c662678a3c48912cd7ba739a2
parentdf1913982b1d09b6cf01bc10f8ca97f50bb22a1b
GraphWriter: detect graph viewer programs at runtime

Replace the crufty build-time configure checks for program paths with
equivalent runtime logic.

This lets users install graphing tools as needed without having to reconfigure
and rebuild LLVM, while eliminating a long chain of inappropriate compile
dependencies that included GUI programs and the windowing system.

Additional features:

 * Support the OS X 'open' command to view graphs generated by any of the
   Graphviz utilities. This is an alternative to the Graphviz OS X UI which is
   no longer available on Mountain Lion.

 * Produce informative log output upon failure to indicate which programs can
   be installed to view graphs.

Ping me if this doesn't work for your particular environment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210001 91177308-0d34-0410-b5e6-96231b3b80d8
autoconf/configure.ac
cmake/config-ix.cmake
docs/ProgrammersManual.rst
include/llvm/Config/config.h.cmake
include/llvm/Config/config.h.in
include/llvm/Config/llvm-config.h.cmake
include/llvm/Config/llvm-config.h.in
include/llvm/Support/GraphWriter.h
lib/Support/GraphWriter.cpp