Skip to content
Snippets Groups Projects
Commit 30c0ecc5 authored by Alexey Samsonov's avatar Alexey Samsonov
Browse files

[cmake] Check for realpath availability in CMake

llvm-svn: 189249
parent b3d8b483
No related branches found
No related tags found
No related merge requests found
...@@ -160,6 +160,7 @@ check_symbol_exists(gettimeofday sys/time.h HAVE_GETTIMEOFDAY) ...@@ -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(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(posix_spawn spawn.h HAVE_POSIX_SPAWN)
check_symbol_exists(pread unistd.h HAVE_PREAD) 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(sbrk unistd.h HAVE_SBRK)
check_symbol_exists(srand48 stdlib.h HAVE_RAND48_SRAND48) check_symbol_exists(srand48 stdlib.h HAVE_RAND48_SRAND48)
if( HAVE_RAND48_SRAND48 ) if( HAVE_RAND48_SRAND48 )
......
...@@ -302,7 +302,7 @@ ...@@ -302,7 +302,7 @@
#cmakedefine HAVE_READDIR ${HAVE_READDIR} #cmakedefine HAVE_READDIR ${HAVE_READDIR}
/* Define to 1 if you have the `realpath' function. */ /* 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. */ /* Define to 1 if you have the `rintf' function. */
#undef HAVE_RINTF #undef HAVE_RINTF
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment