From 6c02ba0540afdf97616a677698bbe5b9a665c483 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 22 Aug 2008 08:32:58 +0000 Subject: [PATCH] configure.in: link with -lpthread when necessary * configure.in: Explicitly add -lpthread to $LIBS. With an empty "ACTION_IF_FOUND", AC_CHECK_LIB would have done that for us automatically, but when there is an explicit third argument, those commands are run instead of the default. Reported by Jun Koi . --- ChangeLog | 9 +++++++++ configure.in | 1 + 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 765c6d2bfe..54644cd7de 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +Fri Aug 22 10:30:42 CEST 2008 Jim Meyering + + configure.in: link with -lpthread when necessary + * configure.in: Explicitly add -lpthread to $LIBS. + With an empty "ACTION_IF_FOUND", AC_CHECK_LIB would have done + that for us automatically, but when there is an explicit third + argument, those commands are run instead of the default. + Reported by Jun Koi . + Thu Aug 21 21:29:28 CEST 2008 Jim Meyering autobuild.sh: Fix minor shell-quoting bugs. diff --git a/configure.in b/configure.in index 3789abd8ec..9479f1c912 100644 --- a/configure.in +++ b/configure.in @@ -90,6 +90,7 @@ AC_CHECK_HEADER([pthread.h], [AC_CHECK_LIB([pthread],[pthread_join],[ AC_DEFINE([HAVE_LIBPTHREAD],[],[Define if pthread (-lpthread)]) AC_DEFINE([HAVE_PTHREAD_H],[],[Define if ]) + LIBS="-lpthread $LIBS" ])]) dnl Miscellaneous external programs. -- GitLab