summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2013-08-05 11:24:26 -0700
committerJim Meyering <meyering@fb.com>2013-08-06 22:13:28 -0700
commitade95dda0df7e42c80c5e6d7cb51fe44d0663719 (patch)
tree2477509a130afcf0e27a8a98ac5c8c1f0a70a55e /modules
parent0f0de03774e76123900873513602ff70be6d9be5 (diff)
downloadgnulib-ade95dda0df7e42c80c5e6d7cb51fe44d0663719.tar.gz
regex: port to non-glibc/lock-using systems
Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc system with GNULIB_LOCK would fail due to absence of the included "glthread/lock.h". This would affect any package for which the "lock" module is used only by the regex module, and not explicitly used. * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21. * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]: Add a dependency on the "lock" module.
Diffstat (limited to 'modules')
-rw-r--r--modules/regex1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/regex b/modules/regex
index 8f5eda0612..9d2e4d235d 100644
--- a/modules/regex
+++ b/modules/regex
@@ -18,6 +18,7 @@ ssize_t
alloca-opt [test $ac_use_included_regex = yes]
btowc [test $ac_use_included_regex = yes]
gettext-h [test $ac_use_included_regex = yes]
+lock [test "$ac_cv_gnu_library_2_1:$ac_use_included_regex" = no:yes]
malloc-gnu [test $ac_use_included_regex = yes]
memcmp [test $ac_use_included_regex = yes]
memmove [test $ac_use_included_regex = yes]