blob: cea80713c323f0a327cba58378569ff00b8a0572 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- 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.
|