0002-add-musl.m4.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. From a9b07220b986500cfee7777a543494d360964306 Mon Sep 17 00:00:00 2001
  2. From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  3. Date: Tue, 2 Jan 2024 21:39:24 +0100
  4. Subject: [PATCH] add musl.m4
  5. Add musl.m4 (retrieved from
  6. https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob;f=m4/musl.m4;h=34d2c1ff22a148eeb76936410ac497d68b228f59;hb=HEAD)
  7. musl.m4 is needed for gl_MUSL_LIBC since
  8. https://git.savannah.gnu.org/gitweb/?p=libsigsegv.git;a=commit;h=a6ff69873110c0a8ba6f7fd90532dbc11224828c
  9. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  10. Upstream: sent to Bruno Haible <bruno@clisp.org>
  11. ---
  12. m4/musl.m4 | 20 ++++++++++++++++++++
  13. 1 file changed, 20 insertions(+)
  14. create mode 100644 m4/musl.m4
  15. diff --git a/m4/musl.m4 b/m4/musl.m4
  16. new file mode 100644
  17. index 0000000..34d2c1f
  18. --- /dev/null
  19. +++ b/m4/musl.m4
  20. @@ -0,0 +1,20 @@
  21. +# musl.m4 serial 4
  22. +dnl Copyright (C) 2019-2024 Free Software Foundation, Inc.
  23. +dnl This file is free software; the Free Software Foundation
  24. +dnl gives unlimited permission to copy and/or distribute it,
  25. +dnl with or without modifications, as long as this notice is preserved.
  26. +
  27. +# Test for musl libc, despite the musl libc authors don't like it
  28. +# <https://wiki.musl-libc.org/faq.html>
  29. +# <https://lists.gnu.org/archive/html/bug-gnulib/2018-02/msg00079.html>.
  30. +# From Bruno Haible.
  31. +
  32. +AC_DEFUN_ONCE([gl_MUSL_LIBC],
  33. +[
  34. + AC_REQUIRE([AC_CANONICAL_HOST])
  35. + case "$host_os" in
  36. + *-musl* | midipix*)
  37. + AC_DEFINE([MUSL_LIBC], [1], [Define to 1 on musl libc.])
  38. + ;;
  39. + esac
  40. +])
  41. --
  42. 2.43.0