Provide glthread/lock.h implementation in terms of Guile threads.
authorLudovic Courtès <ludo@gnu.org>
Tue, 11 Mar 2014 23:02:01 +0000 (00:02 +0100)
committerLudovic Courtès <ludo@gnu.org>
Tue, 11 Mar 2014 23:02:01 +0000 (00:02 +0100)
commit8f7887d61604073528544ccb09849ca0e2f4df78
treefc79fca216e19e0873f8a377e543719b9a7570d5
parentde7aa61ac48811610b1b99005ada2464cf1a96f1
Provide glthread/lock.h implementation in terms of Guile threads.

Fixes <http://bugs.gnu.org/14404>.
Thanks to Paul Eggert <eggert@cs.ucla.edu> for the suggestion.

* m4/gnulib-cache.m4: Avoid 'lock' module.
* m4/lock.m4, m4/threadlib.m4, lib/glthread/threadlib.c,
  lib/glthread/lock.c: Remove.
* lib/glthread/lock.h: Rewrite in terms of libguile/threads.h.
* m4/gnulib-common.m4, m4/gnulib-comp.m4, lib/Makefile.am,
  lib/unistd.in.h, maint.mk : Update, from Gnulib v0.1-92-g546ff82.

* configure.ac (GNULIB_LOCK): Define 'GNULIB_LOCK'.  Define
  'USE_POSIX_THREADS' when building with pthread support.
* Makefile.am (noinst_HEADERS): New variable.
  (BUILT_SOURCES): Add libguile/scmconfig.h.
  (libguile/scmconfig.h): New target.
13 files changed:
Makefile.am
configure.ac
lib/Makefile.am
lib/glthread/lock.c [deleted file]
lib/glthread/lock.h
lib/glthread/threadlib.c [deleted file]
lib/unistd.in.h
m4/gnulib-cache.m4
m4/gnulib-common.m4
m4/gnulib-comp.m4
m4/lock.m4 [deleted file]
m4/threadlib.m4 [deleted file]
maint.mk