summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac18
1 files changed, 6 insertions, 12 deletions
diff --git a/configure.ac b/configure.ac
index 6dacd4f4..a90a9d45 100644
--- a/configure.ac
+++ b/configure.ac
@@ -156,6 +156,12 @@ AC_CHECK_LIB(socket,socket,SOCKETLIBS="$SOCKETLIBS -lsocket")
156AC_CHECK_LIB(resolv,main,SOCKETLIBS="$SOCKETLIBS -lresolv") 156AC_CHECK_LIB(resolv,main,SOCKETLIBS="$SOCKETLIBS -lresolv")
157AC_SUBST(SOCKETLIBS) 157AC_SUBST(SOCKETLIBS)
158 158
159dnl Check for POSIX thread libraries
160AC_CHECK_HEADERS(pthread.h)
161AC_CHECK_LIB(pthread,pthread_create,THRLIBS="-lpthread",
162 AC_CHECK_LIB(pthread,pthread_create,THRLIBS="-lpthread -lrt",-lrt))
163AC_SUBST(THRLIBS)
164
159dnl 165dnl
160dnl check for math-related functions needing -lm 166dnl check for math-related functions needing -lm
161AC_CHECK_HEADERS(math.h) 167AC_CHECK_HEADERS(math.h)
@@ -544,18 +550,6 @@ else
544 with_gnutls="no" 550 with_gnutls="no"
545fi 551fi
546 552
547dnl Check for POSIX thread libraries
548AC_CHECK_HEADERS(pthread.h)
549case $host in
550 *sun* | *solaris*)
551 AC_CHECK_LIB(pthread,pthread_create,THRLIBS="-lpthread -lrt")
552 ;;
553 *)
554 AC_CHECK_LIB(pthread,pthread_create,THRLIBS="-lpthread")
555 ;;
556esac
557AC_SUBST(THRLIBS)
558
559dnl 553dnl
560dnl Checks for header files. 554dnl Checks for header files.
561dnl 555dnl