diff options
author | Douglas Gregor <doug.gregor@gmail.com> | 2009-06-26 14:35:43 +0000 |
---|---|---|
committer | Douglas Gregor <doug.gregor@gmail.com> | 2009-06-26 14:35:43 +0000 |
commit | 864a7764f7986fb8b2f4cdb50c8213adb73a0495 (patch) | |
tree | 705b8153e311cc3a599b3eb57f663daceb6121c5 | |
parent | 941a29597d947a33dc7107d6e35a6030d14c2e37 (diff) | |
download | external_llvm-864a7764f7986fb8b2f4cdb50c8213adb73a0495.zip external_llvm-864a7764f7986fb8b2f4cdb50c8213adb73a0495.tar.gz external_llvm-864a7764f7986fb8b2f4cdb50c8213adb73a0495.tar.bz2 |
CMake: add configure checks for pthread_rwlock_init and pthread_getspecific
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74284 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-x | cmake/config-ix.cmake | 2 | ||||
-rw-r--r-- | include/llvm/Config/config.h.cmake | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index c460fa2..61161ed 100755 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -64,6 +64,8 @@ check_symbol_exists(mallinfo malloc.h HAVE_MALLINFO) check_symbol_exists(malloc_zone_statistics malloc/malloc.h HAVE_MALLOC_ZONE_STATISTICS) check_symbol_exists(pthread_mutex_lock pthread.h HAVE_PTHREAD_MUTEX_LOCK) +check_symbol_exists(pthread_rwlock_init pthread.h HAVE_PTHREAD_RWLOCK_INIT) +check_symbol_exists(pthread_getspecific pthread.h HAVE_PTHREAD_GETSPECIFIC) check_symbol_exists(strtoll stdlib.h HAVE_STRTOLL) check_symbol_exists(__GLIBC__ stdio.h LLVM_USING_GLIBC) diff --git a/include/llvm/Config/config.h.cmake b/include/llvm/Config/config.h.cmake index 4356e7d..27ef440 100644 --- a/include/llvm/Config/config.h.cmake +++ b/include/llvm/Config/config.h.cmake @@ -282,6 +282,12 @@ /* Have pthread_mutex_lock */ #cmakedefine HAVE_PTHREAD_MUTEX_LOCK ${HAVE_PTHREAD_MUTEX_LOCK} +/* Have pthread_rwlock_init */ +#cmakedefine HAVE_PTHREAD_RWLOCK_INIT ${HAVE_PTHREAD_RWLOCK_INIT} + +/* Have pthread_getspecific */ +#cmakedefine HAVE_PTHREAD_GETSPECIFIC ${HAVE_PTHREAD_GETSPECIFIC} + /* Define to 1 if srand48/lrand48/drand48 exist in <stdlib.h> */ #undef HAVE_RAND48 |