Debian Codegraph @

m4/musl.m4

raw
1 # musl.m4
2 # serial 4
3 dnl Copyright (C) 2019-2024 Free Software Foundation, Inc.
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
7 dnl This file is offered as-is, without any warranty.
8
9 # Test for musl libc, despite the musl libc authors don't like it
10 # <https://wiki.musl-libc.org/faq.html>
11 # <https://lists.gnu.org/archive/html/bug-gnulib/2018-02/msg00079.html>.
12 # From Bruno Haible.
13
14 AC_DEFUN_ONCE([gl_MUSL_LIBC],
15 [
16 AC_REQUIRE([AC_CANONICAL_HOST])
17 case "$host_os" in
18 *-musl* | midipix*)
19 AC_DEFINE([MUSL_LIBC], [1], [Define to 1 on musl libc.])
20 ;;
21 esac
22 ])