Yoann Vandoorselaere wrote on 2008-09-15:
> > - Correct pthread_atfork() detection.
Yup. Applied, with a more conventional variable name:
2008-09-30 Yoann Vandoorselaere <[EMAIL PROTECTED]>
Bruno Haible <[EMAIL PROTECTED]>
* m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
*** m4/thread.m4.orig 2008-10-01 03:00:08.000000000 +0200
--- m4/thread.m4 2008-10-01 02:57:12.000000000 +0200
***************
*** 1,4 ****
! # thread.m4 serial 1
dnl Copyright (C) 2008 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
--- 1,4 ----
! # thread.m4 serial 2
dnl Copyright (C) 2008 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
***************
*** 10,15 ****
--- 10,18 ----
AC_REQUIRE([AC_C_INLINE])
if test $gl_threads_api = posix; then
+ gl_save_LIBS="$LIBS"
+ LIBS="$LIBS $LIBMULTITHREAD"
AC_CHECK_FUNCS([pthread_atfork])
+ LIBS="$gl_save_LIBS"
fi
])