Index: configure.ac
===================================================================
--- configure.ac	(revision 111204)
+++ configure.ac	(working copy)
@@ -139,12 +139,11 @@
 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(
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 111204)
+++ ChangeLog	(working copy)
@@ -1,3 +1,11 @@
+2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
+
+	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.
+
 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
 
 	PR libgomp/25938
