diff options
| author | Alexey Samsonov <samsonov@google.com> | 2013-08-26 18:11:25 +0000 |
|---|---|---|
| committer | Alexey Samsonov <samsonov@google.com> | 2013-08-26 18:11:25 +0000 |
| commit | 30c0ecc5cf3aa9fe590fed82e034ed0c1edf6188 (patch) | |
| tree | 5e6ae4042e803d2758fbabd589e7e519b45b753f | |
| parent | b3d8b483531bd76253b1ce97bb6910e283f456a3 (diff) | |
| download | bcm5719-llvm-30c0ecc5cf3aa9fe590fed82e034ed0c1edf6188.tar.gz bcm5719-llvm-30c0ecc5cf3aa9fe590fed82e034ed0c1edf6188.zip | |
[cmake] Check for realpath availability in CMake
llvm-svn: 189249
| -rwxr-xr-x | llvm/cmake/config-ix.cmake | 1 | ||||
| -rw-r--r-- | llvm/include/llvm/Config/config.h.cmake | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/llvm/cmake/config-ix.cmake b/llvm/cmake/config-ix.cmake index 681a4d629fe..3bf75836f1c 100755 --- a/llvm/cmake/config-ix.cmake +++ b/llvm/cmake/config-ix.cmake @@ -160,6 +160,7 @@ check_symbol_exists(gettimeofday sys/time.h HAVE_GETTIMEOFDAY) check_symbol_exists(getrlimit "sys/types.h;sys/time.h;sys/resource.h" HAVE_GETRLIMIT) check_symbol_exists(posix_spawn spawn.h HAVE_POSIX_SPAWN) check_symbol_exists(pread unistd.h HAVE_PREAD) +check_symbol_exists(realpath stdlib.h HAVE_REALPATH) check_symbol_exists(sbrk unistd.h HAVE_SBRK) check_symbol_exists(srand48 stdlib.h HAVE_RAND48_SRAND48) if( HAVE_RAND48_SRAND48 ) diff --git a/llvm/include/llvm/Config/config.h.cmake b/llvm/include/llvm/Config/config.h.cmake index 572fb6f58aa..825349cf262 100644 --- a/llvm/include/llvm/Config/config.h.cmake +++ b/llvm/include/llvm/Config/config.h.cmake @@ -302,7 +302,7 @@ #cmakedefine HAVE_READDIR ${HAVE_READDIR} /* Define to 1 if you have the `realpath' function. */ -#undef HAVE_REALPATH +#cmakedefine HAVE_REALPATH ${HAVE_REALPATH} /* Define to 1 if you have the `rintf' function. */ #undef HAVE_RINTF |

