1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 10:32:48 +02:00

CMake: Detect gv, circo, twopi, neato, fdo, dot and dotty.

Patch by Arnaud Allard de Grandmaison!

llvm-svn: 86547
This commit is contained in:
Oscar Fuentes 2009-11-09 15:26:40 +00:00
parent 57e81f28c1
commit b05535f7c5
2 changed files with 48 additions and 11 deletions

View File

@ -127,13 +127,26 @@ check_type_exists(uint64_t "${headers}" HAVE_UINT64_T)
check_type_exists(u_int64_t "${headers}" HAVE_U_INT64_T)
# available programs checks
find_program(DOTTY_EXECUTABLE dotty)
if(DOTTY_EXECUTABLE)
set(HAVE_DOTTY 1)
set(LLVM_PATH_DOTTY ${DOTTY_EXECUTABLE})
mark_as_advanced(HAVE_DOTTY)
mark_as_advanced(LLVM_PATH_DOTTY)
endif()
function(llvm_find_program name)
string(TOUPPER ${name} NAME)
find_program(LLVM_PATH_${NAME} ${name})
mark_as_advanced(LLVM_PATH_${NAME})
if(LLVM_PATH_${NAME})
set(HAVE_${NAME} 1 CACHE INTERNAL "Is ${name} available ?")
mark_as_advanced(HAVE_${NAME})
else(LLVM_PATH_${NAME})
set(HAVE_${NAME} "" CACHE INTERNAL "Is ${name} available ?")
unset(LLVM_PATH_${NAME} CACHE)
endif(LLVM_PATH_${NAME})
endfunction()
llvm_find_program(gv)
llvm_find_program(circo)
llvm_find_program(twopi)
llvm_find_program(neato)
llvm_find_program(fdp)
llvm_find_program(dot)
llvm_find_program(dotty)
# Define LLVM_MULTITHREADED if gcc atomic builtins exists.
include(CheckAtomic)

View File

@ -48,6 +48,9 @@
/* Define to 1 if you have the `ceilf' function. */
#cmakedefine HAVE_CEILF ${HAVE_CEILF}
/* Define if the neat program is available */
#cmakedefine HAVE_CIRCO ${HAVE_CIRCO}
/* Define to 1 if you have the `closedir' function. */
#undef HAVE_CLOSEDIR
@ -77,7 +80,7 @@
#cmakedefine HAVE_DL_H ${HAVE_DL_H}
/* Define if the dot program is available */
#undef HAVE_DOT
#cmakedefine HAVE_DOT ${HAVE_DOT}
/* Define if the dotty program is available */
#cmakedefine HAVE_DOTTY ${HAVE_DOTTY}
@ -97,6 +100,9 @@
/* Define to 1 if you have the <fcntl.h> header file. */
#cmakedefine HAVE_FCNTL_H ${HAVE_FCNTL_H}
/* Define if the neat program is available */
#cmakedefine HAVE_FDP ${HAVE_FDP}
/* Set to 1 if the finite function is found in <ieeefp.h> */
#cmakedefine HAVE_FINITE_IN_IEEEFP_H ${HAVE_FINITE_IN_IEEEFP_H}
@ -137,7 +143,7 @@
#undef HAVE_GRAPHVIZ
/* Define if the gv program is available */
#undef HAVE_GV
#cmakedefine HAVE_GV ${HAVE_GV}
/* Define to 1 if you have the `index' function. */
#undef HAVE_INDEX
@ -249,6 +255,9 @@
/* Define to 1 if you have the `nearbyintf' function. */
#undef HAVE_NEARBYINTF
/* Define if the neat program is available */
#cmakedefine HAVE_NEATO ${HAVE_NEATO}
/* Define to 1 if you have the `opendir' function. */
#undef HAVE_OPENDIR
@ -410,6 +419,9 @@
/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
#cmakedefine HAVE_SYS_WAIT_H ${HAVE_SYS_WAIT_H}
/* Define if the neat program is available */
#cmakedefine HAVE_TWOPI ${HAVE_TWOPI}
/* Define to 1 if the system has the type `uint64_t'. */
#undef HAVE_UINT64_T
@ -467,17 +479,29 @@
/* Added by Kevin -- Maximum path length */
#cmakedefine MAXPATHLEN ${MAXPATHLEN}
/* Define to path to circo program if found or 'echo circo' otherwise */
#cmakedefine LLVM_PATH_CIRCO "${LLVM_PATH_CIRCO}"
/* Define to path to dot program if found or 'echo dot' otherwise */
#undef LLVM_PATH_DOT
#cmakedefine LLVM_PATH_DOT "${LLVM_PATH_DOT}"
/* Define to path to dotty program if found or 'echo dotty' otherwise */
#cmakedefine LLVM_PATH_DOTTY "${LLVM_PATH_DOTTY}"
/* Define to path to fdp program if found or 'echo fdp' otherwise */
#cmakedefine LLVM_PATH_FDP "${LLVM_PATH_FDP}"
/* Define to path to Graphviz program if found or 'echo Graphviz' otherwise */
#undef LLVM_PATH_GRAPHVIZ
/* Define to path to gv program if found or 'echo gv' otherwise */
#undef LLVM_PATH_GV
#cmakedefine LLVM_PATH_GV "${LLVM_PATH_GV}"
/* Define to path to neato program if found or 'echo neato' otherwise */
#cmakedefine LLVM_PATH_NEATO "${LLVM_PATH_NEATO}"
/* Define to path to twopi program if found or 'echo twopi' otherwise */
#cmakedefine LLVM_PATH_TWOPI "${LLVM_PATH_TWOPI}"
/* Installation prefix directory */
#undef LLVM_PREFIX