[llvm-commits] [llvm] r71084 - in /llvm/trunk: cmake/config-ix.cmake include/llvm/Config/config.h.cmake

Oscar Fuentes ofv at wanadoo.es
Wed May 6 07:41:05 PDT 2009


Author: ofv
Date: Wed May  6 09:40:37 2009
New Revision: 71084

URL: http://llvm.org/viewvc/llvm-project?rev=71084&view=rev
Log:
CMake: Detects libpthread and sets HAVE_LIBPTHREAD.

Modified:
    llvm/trunk/cmake/config-ix.cmake
    llvm/trunk/include/llvm/Config/config.h.cmake

Modified: llvm/trunk/cmake/config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/config-ix.cmake?rev=71084&r1=71083&r2=71084&view=diff

==============================================================================
--- llvm/trunk/cmake/config-ix.cmake (original)
+++ llvm/trunk/cmake/config-ix.cmake Wed May  6 09:40:37 2009
@@ -37,6 +37,10 @@
 check_include_file(utime.h HAVE_UTIME_H)
 check_include_file(windows.h HAVE_WINDOWS_H)
 
+# library checks
+include(CheckLibraryExists)
+check_library_exists(pthread pthread_create "" HAVE_LIBPTHREAD)
+
 # function checks
 include(CheckSymbolExists)
 check_symbol_exists(getpagesize unistd.h HAVE_GETPAGESIZE)

Modified: llvm/trunk/include/llvm/Config/config.h.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Config/config.h.cmake?rev=71084&r1=71083&r2=71084&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Config/config.h.cmake (original)
+++ llvm/trunk/include/llvm/Config/config.h.cmake Wed May  6 09:40:37 2009
@@ -194,7 +194,7 @@
 #cmakedefine HAVE_LIBPSAPI ${HAVE_LIBPSAPI}
 
 /* Define to 1 if you have the `pthread' library (-lpthread). */
-#undef HAVE_LIBPTHREAD
+#cmakedefine HAVE_LIBPTHREAD ${HAVE_LIBPTHREAD}
 
 /* Define to 1 if you have the `udis86' library (-ludis86). */
 #undef HAVE_LIBUDIS86





More information about the llvm-commits mailing list