aboutsummaryrefslogtreecommitdiff
path: root/libgomp/configure.ac
diff options
context:
space:
mode:
authorFrancois-Xavier Coudert <coudert@clipper.ens.fr>2006-02-17 20:01:04 +0100
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>2006-02-17 19:01:04 +0000
commit124452c9fc7feb4ebabb40b5ccae4d1fe015224f (patch)
treeb68ab0d2208666a26d178781492037c55ce47846 /libgomp/configure.ac
parent360057959ab327eda7e5608a634b3f394a429de2 (diff)
downloadgcc-124452c9fc7feb4ebabb40b5ccae4d1fe015224f.zip
gcc-124452c9fc7feb4ebabb40b5ccae4d1fe015224f.tar.gz
gcc-124452c9fc7feb4ebabb40b5ccae4d1fe015224f.tar.bz2
re PR bootstrap/26161 (Configure tests for pthread.h sometimes need to use -pthread)
PR bootstrap/26161 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment for the other pthread check. * configure: Regenerate. * config.h.in: Regenerate. From-SVN: r111205
Diffstat (limited to 'libgomp/configure.ac')
-rw-r--r--libgomp/configure.ac3
1 files changed, 1 insertions, 2 deletions
diff --git a/libgomp/configure.ac b/libgomp/configure.ac
index 2ae6def..dd4faf8 100644
--- a/libgomp/configure.ac
+++ b/libgomp/configure.ac
@@ -139,12 +139,11 @@ AC_SUBST(libtool_VERSION)
AC_STDC_HEADERS
AC_HEADER_TIME
AC_CHECK_HEADERS(unistd.h semaphore.h sys/loadavg.h sys/time.h)
-AC_CHECK_HEADER([pthread.h],[],
- [AC_MSG_ERROR([Pthreads are required to build libgomp])])
GCC_HEADER_STDINT(gstdint.h)
# Check to see if -pthread or -lpthread is needed. Prefer the former.
+# In case the pthread.h system header is not found, this test will fail.
XPCFLAGS=""
CFLAGS="$CFLAGS -pthread"
AC_LINK_IFELSE(