aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2011-07-09 01:56:25 -0700
committerPaul Eggert2011-07-09 01:56:25 -0700
commitd9706d9f1195dfa4b10224c26b7ee43777b32477 (patch)
treefbde487c43decb66c04c9296f0d13e5009abbd33
parentf25661f0c34e2152e56491ca00e46c2ed35360f0 (diff)
downloademacs-d9706d9f1195dfa4b10224c26b7ee43777b32477.tar.gz
emacs-d9706d9f1195dfa4b10224c26b7ee43777b32477.zip
* m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Omit gl_THREADLIB
test, which runs afoul of Automake installations where, for example, /usr/share/aclocal contains a copy of gl_THREADLIB. Problem reported by Sven Joachim in <http://lists.gnu.org/archive/html/emacs-devel/2011-07/msg00529.html>. This is just a quick temporary fix, specific to Emacs; I'll work with the other gnulib maintainers to get a more-permanent fix.
-rw-r--r--ChangeLog8
-rw-r--r--m4/pthread_sigmask.m452
2 files changed, 9 insertions, 51 deletions
diff --git a/ChangeLog b/ChangeLog
index f7504583c25..9f681810d94 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
12011-07-09 Paul Eggert <eggert@cs.ucla.edu> 12011-07-09 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Omit gl_THREADLIB
4 test, which runs afoul of Automake installations where, for example,
5 /usr/share/aclocal contains a copy of gl_THREADLIB.
6 Problem reported by Sven Joachim in
7 <http://lists.gnu.org/archive/html/emacs-devel/2011-07/msg00529.html>.
8 This is just a quick temporary fix, specific to Emacs; I'll work
9 with the other gnulib maintainers to get a more-permanent fix.
10
3 Add gnulib's strtoimax module, needed on Solaris 8. 11 Add gnulib's strtoimax module, needed on Solaris 8.
4 * Makefile.in (GNULIB_MODULES): Add strtoimax. 12 * Makefile.in (GNULIB_MODULES): Add strtoimax.
5 * lib/strtoll.c, m4/strtoimax.m4, m4/strtoll.m4: New files, 13 * lib/strtoll.c, m4/strtoimax.m4, m4/strtoll.m4: New files,
diff --git a/m4/pthread_sigmask.m4 b/m4/pthread_sigmask.m4
index dfa0f660a75..e98d8e0f4ea 100644
--- a/m4/pthread_sigmask.m4
+++ b/m4/pthread_sigmask.m4
@@ -1,4 +1,4 @@
1# pthread_sigmask.m4 serial 7 1# pthread_sigmask.m4 serial 7-emacs1
2dnl Copyright (C) 2011 Free Software Foundation, Inc. 2dnl Copyright (C) 2011 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
@@ -8,55 +8,6 @@ AC_DEFUN([gl_FUNC_PTHREAD_SIGMASK],
8[ 8[
9 AC_CHECK_FUNCS_ONCE([pthread_sigmask]) 9 AC_CHECK_FUNCS_ONCE([pthread_sigmask])
10 LIB_PTHREAD_SIGMASK= 10 LIB_PTHREAD_SIGMASK=
11 m4_ifdef([gl_THREADLIB], [
12 AC_REQUIRE([gl_THREADLIB])
13 if test "$gl_threads_api" = posix; then
14 if test $ac_cv_func_pthread_sigmask = yes; then
15 dnl pthread_sigmask is available without -lpthread.
16 :
17 else
18 if test -n "$LIBMULTITHREAD"; then
19 AC_CACHE_CHECK([for pthread_sigmask in $LIBMULTITHREAD],
20 [gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD],
21 [gl_save_LIBS="$LIBS"
22 LIBS="$LIBS $LIBMULTITHREAD"
23 AC_LINK_IFELSE(
24 [AC_LANG_PROGRAM(
25 [[#include <pthread.h>
26 #include <signal.h>
27 ]],
28 [[return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);]])
29 ],
30 [gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes],
31 [gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no])
32 LIBS="$gl_save_LIBS"
33 ])
34 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
35 dnl pthread_sigmask is available with -lpthread.
36 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
37 else
38 dnl pthread_sigmask is not available at all.
39 HAVE_PTHREAD_SIGMASK=0
40 fi
41 else
42 dnl pthread_sigmask is not available at all.
43 HAVE_PTHREAD_SIGMASK=0
44 fi
45 fi
46 else
47 dnl pthread_sigmask may exist but does not interoperate with the chosen
48 dnl multithreading facility.
49 dnl If "$gl_threads_api" = pth, we could use the function pth_sigmask,
50 dnl but it is equivalent to sigprocmask, so we choose to emulate
51 dnl pthread_sigmask with sigprocmask also in this case. This yields fewer
52 dnl link dependencies.
53 if test $ac_cv_func_pthread_sigmask = yes; then
54 REPLACE_PTHREAD_SIGMASK=1
55 else
56 HAVE_PTHREAD_SIGMASK=0
57 fi
58 fi
59 ] ,[
60 dnl gl_THREADLIB is not in use. Assume the application wants 11 dnl gl_THREADLIB is not in use. Assume the application wants
61 dnl POSIX semantics. 12 dnl POSIX semantics.
62 if test $ac_cv_func_pthread_sigmask != yes; then 13 if test $ac_cv_func_pthread_sigmask != yes; then
@@ -69,7 +20,6 @@ AC_DEFUN([gl_FUNC_PTHREAD_SIGMASK],
69 LIB_PTHREAD_SIGMASK=$ac_cv_search_pthread_sigmask 20 LIB_PTHREAD_SIGMASK=$ac_cv_search_pthread_sigmask
70 fi 21 fi
71 fi 22 fi
72 ])
73 AC_SUBST([LIB_PTHREAD_SIGMASK]) 23 AC_SUBST([LIB_PTHREAD_SIGMASK])
74 dnl We don't need a variable LTLIB_PTHREAD_SIGMASK, because when 24 dnl We don't need a variable LTLIB_PTHREAD_SIGMASK, because when
75 dnl "$gl_threads_api" = posix, $LTLIBMULTITHREAD and $LIBMULTITHREAD are the 25 dnl "$gl_threads_api" = posix, $LTLIBMULTITHREAD and $LIBMULTITHREAD are the