03a0dc36b8
- Use BlocksRuntime and clang from base if present.
22 lines
464 B
Text
22 lines
464 B
Text
--- configure.ac.orig 2011-09-08 23:48:16.000000000 -0700
|
|
+++ configure.ac 2011-09-08 23:48:28.000000000 -0700
|
|
@@ -137,7 +137,18 @@
|
|
# Find libraries we will need
|
|
#
|
|
AC_SEARCH_LIBS(clock_gettime, rt)
|
|
-AC_SEARCH_LIBS(pthread_create, pthread)
|
|
+
|
|
+#
|
|
+# Find how to enable threads
|
|
+#
|
|
+case $host in
|
|
+*freebsd*)
|
|
+ LIBS="${LIBS} -pthread"
|
|
+ ;;
|
|
+*)
|
|
+ AC_SEARCH_LIBS(pthread_create, pthread)
|
|
+ ;;
|
|
+esac
|
|
|
|
#
|
|
# Prefer native kqueue(2); otherwise use libkqueue if present.
|