diff options
author | Edward O'Callaghan <eocallaghan@auroraux.org> | 2009-10-12 04:57:20 +0000 |
---|---|---|
committer | Edward O'Callaghan <eocallaghan@auroraux.org> | 2009-10-12 04:57:20 +0000 |
commit | df40664a63a91a1ab4b40c7f2d356cf255071d56 (patch) | |
tree | f7451e40d2fd2896f2f742d8a3f5dc6e375da6d3 /autoconf/configure.ac | |
parent | f5e16139f28d650536024280a16dcf73513baf46 (diff) | |
download | external_llvm-df40664a63a91a1ab4b40c7f2d356cf255071d56.zip external_llvm-df40664a63a91a1ab4b40c7f2d356cf255071d56.tar.gz external_llvm-df40664a63a91a1ab4b40c7f2d356cf255071d56.tar.bz2 |
Haiku porting patches, Credit to Paul Davey.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83823 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf/configure.ac')
-rw-r--r-- | autoconf/configure.ac | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index e24edf5..c4aad36 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -175,6 +175,11 @@ AC_CACHE_CHECK([type of operating system we're going to host on], llvm_cv_no_link_all_option="-Wl,--no-whole-archive" llvm_cv_os_type="MingW" llvm_cv_platform_type="Win32" ;; + *-*-haiku*) + llvm_cv_link_all_option="-Wl,--whole-archive" + llvm_cv_no_link_all_option="-Wl,--no-whole-archive" + llvm_cv_os_type="Haiku" + llvm_cv_platform_type="Unix" ;; *-unknown-eabi*) llvm_cv_link_all_option="-Wl,--whole-archive" llvm_cv_no_link_all_option="-Wl,--no-whole-archive" @@ -223,6 +228,8 @@ AC_CACHE_CHECK([type of operating system we're going to target], llvm_cv_target_os_type="Win32" ;; *-*-mingw*) llvm_cv_target_os_type="MingW" ;; + *-*-haiku*) + llvm_cv_target_os_type="Haiku" ;; *-unknown-eabi*) llvm_cv_target_os_type="Freestanding" ;; *) @@ -960,7 +967,9 @@ AC_SEARCH_LIBS(mallinfo,malloc,AC_DEFINE([HAVE_MALLINFO],[1], dnl pthread locking functions are optional - but llvm will not be thread-safe dnl without locks. if test "$ENABLE_THREADS" -eq 1 ; then - AC_CHECK_LIB(pthread,pthread_mutex_init) + AC_SEARCH_LIBS(pthread_mutex_init,pthread, + AC_DEFINE([HAVE_PTHREAD],[1], + [Have pthread])) AC_SEARCH_LIBS(pthread_mutex_lock,pthread, AC_DEFINE([HAVE_PTHREAD_MUTEX_LOCK],[1], [Have pthread_mutex_lock])) |