llvm.org GIT mirror llvm / 6a660d4
CMake: Detect gv, circo, twopi, neato, fdo, dot and dotty. Patch by Arnaud Allard de Grandmaison! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86547 91177308-0d34-0410-b5e6-96231b3b80d8 Oscar Fuentes 10 years ago
2 changed file(s) with 48 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
126126 check_type_exists(u_int64_t "${headers}" HAVE_U_INT64_T)
127127
128128 # available programs checks
129 find_program(DOTTY_EXECUTABLE dotty)
130 if(DOTTY_EXECUTABLE)
131 set(HAVE_DOTTY 1)
132 set(LLVM_PATH_DOTTY ${DOTTY_EXECUTABLE})
133 mark_as_advanced(HAVE_DOTTY)
134 mark_as_advanced(LLVM_PATH_DOTTY)
135 endif()
129 function(llvm_find_program name)
130 string(TOUPPER ${name} NAME)
131 find_program(LLVM_PATH_${NAME} ${name})
132 mark_as_advanced(LLVM_PATH_${NAME})
133 if(LLVM_PATH_${NAME})
134 set(HAVE_${NAME} 1 CACHE INTERNAL "Is ${name} available ?")
135 mark_as_advanced(HAVE_${NAME})
136 else(LLVM_PATH_${NAME})
137 set(HAVE_${NAME} "" CACHE INTERNAL "Is ${name} available ?")
138 unset(LLVM_PATH_${NAME} CACHE)
139 endif(LLVM_PATH_${NAME})
140 endfunction()
141
142 llvm_find_program(gv)
143 llvm_find_program(circo)
144 llvm_find_program(twopi)
145 llvm_find_program(neato)
146 llvm_find_program(fdp)
147 llvm_find_program(dot)
148 llvm_find_program(dotty)
136149
137150 # Define LLVM_MULTITHREADED if gcc atomic builtins exists.
138151 include(CheckAtomic)
4747 /* Define to 1 if you have the `ceilf' function. */
4848 #cmakedefine HAVE_CEILF ${HAVE_CEILF}
4949
50 /* Define if the neat program is available */
51 #cmakedefine HAVE_CIRCO ${HAVE_CIRCO}
52
5053 /* Define to 1 if you have the `closedir' function. */
5154 #undef HAVE_CLOSEDIR
5255
7679 #cmakedefine HAVE_DL_H ${HAVE_DL_H}
7780
7881 /* Define if the dot program is available */
79 #undef HAVE_DOT
82 #cmakedefine HAVE_DOT ${HAVE_DOT}
8083
8184 /* Define if the dotty program is available */
8285 #cmakedefine HAVE_DOTTY ${HAVE_DOTTY}
9699 /* Define to 1 if you have the header file. */
97100 #cmakedefine HAVE_FCNTL_H ${HAVE_FCNTL_H}
98101
102 /* Define if the neat program is available */
103 #cmakedefine HAVE_FDP ${HAVE_FDP}
104
99105 /* Set to 1 if the finite function is found in */
100106 #cmakedefine HAVE_FINITE_IN_IEEEFP_H ${HAVE_FINITE_IN_IEEEFP_H}
101107
136142 #undef HAVE_GRAPHVIZ
137143
138144 /* Define if the gv program is available */
139 #undef HAVE_GV
145 #cmakedefine HAVE_GV ${HAVE_GV}
140146
141147 /* Define to 1 if you have the `index' function. */
142148 #undef HAVE_INDEX
248254 /* Define to 1 if you have the `nearbyintf' function. */
249255 #undef HAVE_NEARBYINTF
250256
257 /* Define if the neat program is available */
258 #cmakedefine HAVE_NEATO ${HAVE_NEATO}
259
251260 /* Define to 1 if you have the `opendir' function. */
252261 #undef HAVE_OPENDIR
253262
409418 /* Define to 1 if you have that is POSIX.1 compatible. */
410419 #cmakedefine HAVE_SYS_WAIT_H ${HAVE_SYS_WAIT_H}
411420
421 /* Define if the neat program is available */
422 #cmakedefine HAVE_TWOPI ${HAVE_TWOPI}
423
412424 /* Define to 1 if the system has the type `uint64_t'. */
413425 #undef HAVE_UINT64_T
414426
466478 /* Added by Kevin -- Maximum path length */
467479 #cmakedefine MAXPATHLEN ${MAXPATHLEN}
468480
481 /* Define to path to circo program if found or 'echo circo' otherwise */
482 #cmakedefine LLVM_PATH_CIRCO "${LLVM_PATH_CIRCO}"
483
469484 /* Define to path to dot program if found or 'echo dot' otherwise */
470 #undef LLVM_PATH_DOT
485 #cmakedefine LLVM_PATH_DOT "${LLVM_PATH_DOT}"
471486
472487 /* Define to path to dotty program if found or 'echo dotty' otherwise */
473488 #cmakedefine LLVM_PATH_DOTTY "${LLVM_PATH_DOTTY}"
474489
490 /* Define to path to fdp program if found or 'echo fdp' otherwise */
491 #cmakedefine LLVM_PATH_FDP "${LLVM_PATH_FDP}"
492
475493 /* Define to path to Graphviz program if found or 'echo Graphviz' otherwise */
476494 #undef LLVM_PATH_GRAPHVIZ
477495
478496 /* Define to path to gv program if found or 'echo gv' otherwise */
479 #undef LLVM_PATH_GV
497 #cmakedefine LLVM_PATH_GV "${LLVM_PATH_GV}"
498
499 /* Define to path to neato program if found or 'echo neato' otherwise */
500 #cmakedefine LLVM_PATH_NEATO "${LLVM_PATH_NEATO}"
501
502 /* Define to path to twopi program if found or 'echo twopi' otherwise */
503 #cmakedefine LLVM_PATH_TWOPI "${LLVM_PATH_TWOPI}"
480504
481505 /* Installation prefix directory */
482506 #undef LLVM_PREFIX