]> Savannah Git Hosting - gnulib.git/commitdiff
regex: port to non-glibc/lock-using systems
authorJim Meyering <meyering@fb.com>
Mon, 5 Aug 2013 18:24:26 +0000 (11:24 -0700)
committerJim Meyering <meyering@fb.com>
Wed, 7 Aug 2013 05:13:28 +0000 (22:13 -0700)
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.

ChangeLog
m4/regex.m4
modules/regex

index 9abfb4cb1afa024366e49cc996a94263b8282f34..b0f798d08b3f2b2e46b04995e2582909ca06184b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2013-08-05  Jim Meyering  <meyering@fb.com>
+
+       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.
+
 2013-07-20  Daiki Ueno  <ueno@gnu.org>
 
        localecharset: make locale_charset thread-safe on Mac OS X
index 6d29dcfb1da0081fc437c7843e57eac543118abc..0945c11a08f3e9c4da8a6d22be05de4834075cf5 100644 (file)
@@ -266,6 +266,7 @@ AC_DEFUN([gl_PREREQ_REGEX],
   AC_REQUIRE([AC_C_RESTRICT])
   AC_REQUIRE([AC_TYPE_MBSTATE_T])
   AC_REQUIRE([gl_EEMALLOC])
+  AC_REQUIRE([gl_GLIBC21])
   AC_CHECK_HEADERS([libintl.h])
   AC_CHECK_FUNCS_ONCE([isblank iswctype wcscoll])
   AC_CHECK_DECLS([isblank], [], [], [[#include <ctype.h>]])
index 8f5eda0612b0c303f054782f5a9ecd04c0445c2e..9d2e4d235defcdea060918cf48f2dcd898a26659 100644 (file)
@@ -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]