]> Savannah Git Hosting - gnulib.git/commitdiff
Support cross-compilation to musl libc.
authorBruno Haible <bruno@clisp.org>
Sat, 23 Mar 2019 22:00:52 +0000 (23:00 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 23 Mar 2019 22:00:52 +0000 (23:00 +0100)
Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.

* m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
musl libc.
* m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
* m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
* m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
* m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
* m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
* m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
* m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
* m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
* m4/expl.m4 (gl_FUNC_EXPL): Likewise.
* m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
* m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
* m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
* m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
* m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
* m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
* m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
* m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
* m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
* m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
* m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
* m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
* m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
* m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
* m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
* m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
* m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
* m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
* m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
* m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
* m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
* m4/log.m4 (gl_FUNC_LOG): Likewise.
* m4/logf.m4 (gl_FUNC_LOGF): Likewise.
* m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
* m4/log10.m4 (gl_FUNC_LOG10): Likewise.
* m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
* m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
* m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
* m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
* m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
* m4/log2.m4 (gl_FUNC_LOG2): Likewise.
* m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
* m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
* m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
* m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
* m4/modf.m4 (gl_FUNC_MODF): Likewise.
* m4/modff.m4 (gl_FUNC_MODFF): Likewise.
* m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
* m4/perror.m4 (gl_FUNC_PERROR): Likewise.
* m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
* m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
* m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
* m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
* m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
* m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
* m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
* m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
* m4/round.m4 (gl_FUNC_ROUND): Likewise.
* m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
* m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
* m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
* m4/signbit.m4 (gl_SIGNBIT): Likewise.
* m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
* m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
* m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
* m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
* m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
* m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
* m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
* m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
* m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
* m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
* m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
* m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
* m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.

76 files changed:
ChangeLog
m4/calloc.m4
m4/canonicalize.m4
m4/cbrtl.m4
m4/ceil.m4
m4/ceilf.m4
m4/ceill.m4
m4/chown.m4
m4/d-ino.m4
m4/exp2l.m4
m4/expl.m4
m4/expm1.m4
m4/expm1l.m4
m4/fdopendir.m4
m4/floor.m4
m4/floorf.m4
m4/fmod.m4
m4/fmodf.m4
m4/fmodl.m4
m4/fnmatch.m4
m4/fpurge.m4
m4/getcwd-abort-bug.m4
m4/getcwd.m4
m4/getdelim.m4
m4/getgroups.m4
m4/getline.m4
m4/gettimeofday.m4
m4/hypot.m4
m4/hypotf.m4
m4/hypotl.m4
m4/iconv_open-utf.m4
m4/link-follow.m4
m4/log.m4
m4/log10.m4
m4/log10f.m4
m4/log10l.m4
m4/log1p.m4
m4/log1pf.m4
m4/log1pl.m4
m4/log2.m4
m4/log2f.m4
m4/logf.m4
m4/logl.m4
m4/malloc.m4
m4/mkdir.m4
m4/mkstemp.m4
m4/modf.m4
m4/modff.m4
m4/modfl.m4
m4/perror.m4
m4/printf.m4
m4/ptsname.m4
m4/putenv.m4
m4/realloc.m4
m4/remainder.m4
m4/remainderf.m4
m4/remainderl.m4
m4/rintl.m4
m4/round.m4
m4/roundf.m4
m4/roundl.m4
m4/setenv.m4
m4/signbit.m4
m4/sleep.m4
m4/stpncpy.m4
m4/strerror.m4
m4/strtod.m4
m4/strtold.m4
m4/trunc.m4
m4/truncf.m4
m4/truncl.m4
m4/tzset.m4
m4/ungetc.m4
m4/usleep.m4
m4/utimes.m4
m4/wcwidth.m4

index 5a9243bde016aafb74c3301628ad86da4737c9d1..58b47dcd1ef87a18e9f60e31086534926a2b35d4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,88 @@
+2019-03-23  Bruno Haible  <bruno@clisp.org>
+
+       Support cross-compilation to musl libc.
+       Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
+       * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
+       musl libc.
+       * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
+       * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
+       * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
+       * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
+       * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
+       * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
+       * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
+       * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
+       * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
+       * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
+       * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
+       * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
+       * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
+       * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
+       * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
+       * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
+       * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
+       * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
+       * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
+       * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
+       * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
+       * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
+       * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
+       * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
+       * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
+       * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
+       * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
+       * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
+       * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
+       * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
+       * m4/log.m4 (gl_FUNC_LOG): Likewise.
+       * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
+       * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
+       * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
+       * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
+       * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
+       * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
+       * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
+       * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
+       * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
+       * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
+       * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
+       * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
+       * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
+       * m4/modf.m4 (gl_FUNC_MODF): Likewise.
+       * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
+       * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
+       * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
+       * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
+       gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
+       gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
+       gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
+       gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
+       * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
+       * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
+       * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
+       * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
+       * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
+       * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
+       * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
+       * m4/round.m4 (gl_FUNC_ROUND): Likewise.
+       * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
+       * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
+       * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
+       * m4/signbit.m4 (gl_SIGNBIT): Likewise.
+       * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
+       * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
+       * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
+       * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
+       * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
+       * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
+       * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
+       * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
+       * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
+       * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
+       * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
+       * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
+       * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
+
 2019-03-23  Bruno Haible  <bruno@clisp.org>
 
        posix_spawn_file_actions_*: Document musl libc bugs.
index 012a5bf50b1b4a31f2067c0857088a687554fb8f..d76535d8044bc0a00dc8a67c3d9876a4765ae400 100644 (file)
@@ -1,4 +1,4 @@
-# calloc.m4 serial 18
+# calloc.m4 serial 19
 
 # Copyright (C) 2004-2019 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
@@ -40,6 +40,8 @@ AC_DEFUN([_AC_FUNC_CALLOC_IF],
        [case "$host_os" in
                          # Guess yes on glibc systems.
           *-gnu* | gnu*) ac_cv_func_calloc_0_nonnull="guessing yes" ;;
+                         # Guess yes on musl systems.
+          *-musl*)       ac_cv_func_calloc_0_nonnull="guessing yes" ;;
                          # Guess yes on native Windows.
           mingw*)        ac_cv_func_calloc_0_nonnull="guessing yes" ;;
                          # If we don't know, assume the worst.
index 5b6e25dfcd6fb6dff55aaaca6ab4372b775b73af..b61747bd1a5282eead62fb94f2ec66a7acc17087 100644 (file)
@@ -1,4 +1,4 @@
-# canonicalize.m4 serial 29
+# canonicalize.m4 serial 30
 
 dnl Copyright (C) 2003-2007, 2009-2019 Free Software Foundation, Inc.
 
@@ -113,6 +113,8 @@ AC_DEFUN([gl_FUNC_REALPATH_WORKS],
      [case "$host_os" in
                        # Guess yes on glibc systems.
         *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
+                       # Guess yes on musl systems.
+        *-musl*)       gl_cv_func_realpath_works="guessing yes" ;;
                        # Guess no on native Windows.
         mingw*)        gl_cv_func_realpath_works="guessing no" ;;
                        # If we don't know, assume the worst.
index dc867dbc28e5cc50f72fec10120dd24f474ba4a1..091c7995fe98dc62e0dcbec1889a9447d75d222b 100644 (file)
@@ -1,4 +1,4 @@
-# cbrtl.m4 serial 8
+# cbrtl.m4 serial 9
 dnl Copyright (C) 2012-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -74,6 +74,8 @@ int main (int argc, char *argv[])
               [case "$host_os" in
                                 # Guess yes on glibc systems.
                  *-gnu* | gnu*) gl_cv_func_cbrtl_ieee="guessing yes" ;;
+                                # Guess yes on musl systems.
+                 *-musl*)       gl_cv_func_cbrtl_ieee="guessing yes" ;;
                                 # Guess yes on native Windows.
                  mingw*)        gl_cv_func_cbrtl_ieee="guessing yes" ;;
                                 # If we don't know, assume the worst.
index 55222846672d8861fed1ae1e0bf330ce4e71f812..396b3cfde031492b4bc6e3ab304024e2c4f7f87f 100644 (file)
@@ -1,4 +1,4 @@
-# ceil.m4 serial 13
+# ceil.m4 serial 14
 dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -48,6 +48,8 @@ int main (int argc, char *argv[])
             [case "$host_os" in
                               # Guess yes on glibc systems.
                *-gnu* | gnu*) gl_cv_func_ceil_ieee="guessing yes" ;;
+                              # Guess yes on musl systems.
+               *-musl*)       gl_cv_func_ceil_ieee="guessing yes" ;;
                               # Guess yes on native Windows.
                mingw*)        gl_cv_func_ceil_ieee="guessing yes" ;;
                               # If we don't know, assume the worst.
index 65b4cffa73994a8646f4bcd912e5192f26eda8e2..9c898b48bc21b18ec1cb8f0dfb28b250f20f52ca 100644 (file)
@@ -1,4 +1,4 @@
-# ceilf.m4 serial 17
+# ceilf.m4 serial 18
 dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -55,6 +55,8 @@ int main (int argc, char *argv[])
               [case "$host_os" in
                                 # Guess yes on glibc systems.
                  *-gnu* | gnu*) gl_cv_func_ceilf_ieee="guessing yes" ;;
+                                # Guess yes on musl systems.
+                 *-musl*)       gl_cv_func_ceilf_ieee="guessing yes" ;;
                                 # Guess yes on native Windows.
                  mingw*)        gl_cv_func_ceilf_ieee="guessing yes" ;;
                                 # If we don't know, assume the worst.
index 863c34450b31d731ae6bc47075e323583974f2d3..a65defc30e1c7c423d27fbeaa63d288d319b7660 100644 (file)
@@ -1,4 +1,4 @@
-# ceill.m4 serial 18
+# ceill.m4 serial 19
 dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -54,6 +54,8 @@ int main (int argc, char *argv[])
               [case "$host_os" in
                                 # Guess yes on glibc systems.
                  *-gnu* | gnu*) gl_cv_func_ceill_ieee="guessing yes" ;;
+                                # Guess yes on musl systems.
+                 *-musl*)       gl_cv_func_ceill_ieee="guessing yes" ;;
                                 # Guess yes on native Windows.
                  mingw*)        gl_cv_func_ceill_ieee="guessing yes" ;;
                                 # If we don't know, assume the worst.
index ecfc0c0d7a98cec5e8e02f511aab3cd45ce614be..b7983250e0f818e4f847bf9e77d6a2d2835edf49 100644 (file)
@@ -1,4 +1,4 @@
-# serial 31
+# serial 32
 # Determine whether we need the chown wrapper.
 
 dnl Copyright (C) 1997-2001, 2003-2005, 2007, 2009-2019 Free Software
@@ -109,10 +109,12 @@ AC_DEFUN_ONCE([gl_FUNC_CHOWN],
         [gl_cv_func_chown_slash_works=yes],
         [gl_cv_func_chown_slash_works=no],
         [case "$host_os" in
-                   # Guess yes on glibc systems.
-           *-gnu*) gl_cv_func_chown_slash_works="guessing yes" ;;
-                   # If we don't know, assume the worst.
-           *)      gl_cv_func_chown_slash_works="guessing no" ;;
+                    # Guess yes on glibc systems.
+           *-gnu*)  gl_cv_func_chown_slash_works="guessing yes" ;;
+                    # Guess yes on musl systems.
+           *-musl*) gl_cv_func_chown_slash_works="guessing yes" ;;
+                    # If we don't know, assume the worst.
+           *)       gl_cv_func_chown_slash_works="guessing no" ;;
          esac
         ])
       rm -f conftest.link conftest.file])
@@ -145,10 +147,12 @@ AC_DEFUN_ONCE([gl_FUNC_CHOWN],
         [gl_cv_func_chown_ctime_works=yes],
         [gl_cv_func_chown_ctime_works=no],
         [case "$host_os" in
-                   # Guess yes on glibc systems.
-           *-gnu*) gl_cv_func_chown_ctime_works="guessing yes" ;;
-                   # If we don't know, assume the worst.
-           *)      gl_cv_func_chown_ctime_works="guessing no" ;;
+                    # Guess yes on glibc systems.
+           *-gnu*)  gl_cv_func_chown_ctime_works="guessing yes" ;;
+                    # Guess yes on musl systems.
+           *-musl*) gl_cv_func_chown_ctime_works="guessing yes" ;;
+                    # If we don't know, assume the worst.
+           *)       gl_cv_func_chown_ctime_works="guessing no" ;;
          esac
         ])
       rm -f conftest.file])
index f1420ccff2accbdf278bfb407843d4886f3d86a0..87dcacc8360e2eb7731fc03c8a47bade66bfda0e 100644 (file)
@@ -1,4 +1,4 @@
-# serial 18
+# serial 19
 
 dnl From Jim Meyering.
 dnl
@@ -40,12 +40,14 @@ AC_DEFUN([gl_CHECK_TYPE_STRUCT_DIRENT_D_INO],
            [gl_cv_struct_dirent_d_ino=yes],
            [gl_cv_struct_dirent_d_ino=no],
            [case "$host_os" in
-                           # Guess yes on glibc systems with Linux kernel.
-              linux*-gnu*) gl_cv_struct_dirent_d_ino="guessing yes" ;;
-                           # Guess no on native Windows.
-              mingw*)      gl_cv_struct_dirent_d_ino="guessing no" ;;
-                           # If we don't know, assume the worst.
-              *)           gl_cv_struct_dirent_d_ino="guessing no" ;;
+                            # Guess yes on glibc systems with Linux kernel.
+              linux*-gnu*)  gl_cv_struct_dirent_d_ino="guessing yes" ;;
+                            # Guess yes on musl systems with Linux kernel.
+              linux*-musl*) gl_cv_struct_dirent_d_ino="guessing yes" ;;
+                            # Guess no on native Windows.
+              mingw*)       gl_cv_struct_dirent_d_ino="guessing no" ;;
+                            # If we don't know, assume the worst.
+              *)            gl_cv_struct_dirent_d_ino="guessing no" ;;
             esac
            ])])
    case "$gl_cv_struct_dirent_d_ino" in
index 8a065d9048d4ef0bd93546cb0c09c60710333822..8bfb2d9e4444e9d0594b58937a99447ae5a9d5f8 100644 (file)
@@ -1,4 +1,4 @@
-# exp2l.m4 serial 7
+# exp2l.m4 serial 8
 dnl Copyright (C) 2010-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -101,6 +101,8 @@ int main (int argc, char *argv[])
             [case "$host_os" in
                               # Guess yes on glibc systems.
                *-gnu* | gnu*) gl_cv_func_exp2l_works="guessing yes" ;;
+                              # Guess yes on musl systems.
+               *-musl*)       gl_cv_func_exp2l_works="guessing yes" ;;
                               # Guess yes on native Windows.
                mingw*)        gl_cv_func_exp2l_works="guessing yes" ;;
                               # If we don't know, assume the worst.
@@ -154,6 +156,8 @@ int main (int argc, char *argv[])
               [case "$host_os" in
                                 # Guess yes on glibc systems.
                  *-gnu* | gnu*) gl_cv_func_exp2l_ieee="guessing yes" ;;
+                                # Guess yes on musl systems.
+                 *-musl*)       gl_cv_func_exp2l_ieee="guessing yes" ;;
                                 # Guess yes on native Windows.
                  mingw*)        gl_cv_func_exp2l_ieee="guessing yes" ;;
                                 # If we don't know, assume the worst.
index c04c1cb17b9c5e79e2f191f30617ea2b8351df76..b233046438dd0f6e16e3476c4181c796f79a2066 100644 (file)
@@ -1,4 +1,4 @@
-# expl.m4 serial 12
+# expl.m4 serial 13
 dnl Copyright (C) 2010-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -171,6 +171,8 @@ int main (int argc, char *argv[])
             [case "$host_os" in
                               # Guess yes on glibc systems.
                *-gnu* | gnu*) gl_cv_func_expl_works="guessing yes" ;;
+                              # Guess yes on musl systems.
+               *-musl*)       gl_cv_func_expl_works="guessing yes" ;;
                               # Guess yes on native Windows.
                mingw*)        gl_cv_func_expl_works="guessing yes" ;;
                               # If we don't know, assume the worst.
index fcea1df6811638a2ad2375631bbb4b8de9d76aa6..088018adb98917900bb3dcad549f18d1fae1649b 100644 (file)
@@ -1,4 +1,4 @@
-# expm1.m4 serial 6
+# expm1.m4 serial 7
 dnl Copyright (C) 2010-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -87,6 +87,8 @@ int main (int argc, char *argv[])
               [case "$host_os" in
                                 # Guess yes on glibc systems.
                  *-gnu* | gnu*) gl_cv_func_expm1_ieee="guessing yes" ;;
+                                # Guess yes on musl systems.
+                 *-musl*)       gl_cv_func_expm1_ieee="guessing yes" ;;
                                 # Guess yes on native Windows.
                  mingw*)        gl_cv_func_expm1_ieee="guessing yes" ;;
                                 # If we don't know, assume the worst.
index d2307f295aa79d1d8ab5b8d4f86e60264f848a1a..324b702cf1ae855da9db22cd110204adabbcf700 100644 (file)
@@ -1,4 +1,4 @@
-# expm1l.m4 serial 3
+# expm1l.m4 serial 4
 dnl Copyright (C) 2010-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -146,6 +146,8 @@ int main (int argc, char *argv[])
             [case "$host_os" in
                               # Guess yes on glibc systems.
                *-gnu* | gnu*) gl_cv_func_expm1l_works="guessing yes" ;;
+                              # Guess yes on musl systems.
+               *-musl*)       gl_cv_func_expm1l_works="guessing yes" ;;
                               # Guess yes on native Windows.
                mingw*)        gl_cv_func_expm1l_works="guessing yes" ;;
                               # If we don't know, assume the worst.
index 04905519d0b66741fa9cee7027ad3bd852c1bea2..b2b3b03731697efeae8e9770b1d7a9c81d4f24ca 100644 (file)
@@ -1,4 +1,4 @@
-# serial 10
+# serial 11
 # See if we need to provide fdopendir.
 
 dnl Copyright (C) 2009-2019 Free Software Foundation, Inc.
@@ -45,10 +45,12 @@ DIR *fdopendir (int);
          [gl_cv_func_fdopendir_works=yes],
          [gl_cv_func_fdopendir_works=no],
          [case "$host_os" in
-                    # Guess yes on glibc systems.
-            *-gnu*) gl_cv_func_fdopendir_works="guessing yes" ;;
-                    # If we don't know, assume the worst.
-            *)      gl_cv_func_fdopendir_works="guessing no" ;;
+                     # Guess yes on glibc systems.
+            *-gnu*)  gl_cv_func_fdopendir_works="guessing yes" ;;
+                     # Guess yes on musl systems.
+            *-musl*) gl_cv_func_fdopendir_works="guessing yes" ;;
+                     # If we don't know, assume the worst.
+            *)       gl_cv_func_fdopendir_works="guessing no" ;;
           esac
          ])])
     case "$gl_cv_func_fdopendir_works" in
index 7b3d96594ebbfdcf248394b751c367cb3bda3a48..4bfd699622036ee0efd3f1a056346089b07effe2 100644 (file)
@@ -1,4 +1,4 @@
-# floor.m4 serial 12
+# floor.m4 serial 13
 dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -44,6 +44,8 @@ int main (int argc, char *argv[])
             [case "$host_os" in
                               # Guess yes on glibc systems.
                *-gnu* | gnu*) gl_cv_func_floor_ieee="guessing yes" ;;
+                              # Guess yes on musl systems.
+               *-musl*)       gl_cv_func_floor_ieee="guessing yes" ;;
                               # Guess yes on native Windows.
                mingw*)        gl_cv_func_floor_ieee="guessing yes" ;;
                               # If we don't know, assume the worst.
index 5fad8a504f93d7e6e8ba0bb95e74d2d9eca6f344..d1bd9879f8291c526cfb0a66539263a6c165815a 100644 (file)
@@ -1,4 +1,4 @@
-# floorf.m4 serial 16
+# floorf.m4 serial 17
 dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -51,6 +51,8 @@ int main (int argc, char *argv[])
               [case "$host_os" in
                                 # Guess yes on glibc systems.
                  *-gnu* | gnu*) gl_cv_func_floorf_ieee="guessing yes" ;;
+                                # Guess yes on musl systems.
+                 *-musl*)       gl_cv_func_floorf_ieee="guessing yes" ;;
                                 # Guess yes on native Windows.
                  mingw*)        gl_cv_func_floorf_ieee="guessing yes" ;;
                                 # If we don't know, assume the worst.
index 898e9e8b16ff9f08a8c2a5dccb331d66aa6c623e..cb9e568378f90686a20ec73082913f7d79e211e9 100644 (file)
@@ -1,4 +1,4 @@
-# fmod.m4 serial 7
+# fmod.m4 serial 8
 dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -60,6 +60,8 @@ int main (int argc, char *argv[])
             [case "$host_os" in
                               # Guess yes on glibc systems.
                *-gnu* | gnu*) gl_cv_func_fmod_ieee="guessing yes" ;;
+                              # Guess yes on musl systems.
+               *-musl*)       gl_cv_func_fmod_ieee="guessing yes" ;;
                               # Guess yes on native Windows.
                mingw*)        gl_cv_func_fmod_ieee="guessing yes" ;;
                               # If we don't know, assume the worst.
index 42c64ab2b77bb23ed6cb78c833f8cd0143093fe4..7cc82f9dcd8d71ff193c89111af7d5cb7a1039da 100644 (file)
@@ -1,4 +1,4 @@
-# fmodf.m4 serial 9
+# fmodf.m4 serial 10
 dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -61,6 +61,8 @@ int main (int argc, char *argv[])
               [case "$host_os" in
                                 # Guess yes on glibc systems.
                  *-gnu* | gnu*) gl_cv_func_fmodf_ieee="guessing yes" ;;
+                                # Guess yes on musl systems.
+                 *-musl*)       gl_cv_func_fmodf_ieee="guessing yes" ;;
                                 # Guess yes on native Windows.
                  mingw*)        gl_cv_func_fmodf_ieee="guessing yes" ;;
                                 # If we don't know, assume the worst.
index 1e3e9aa95768ac0527c92dd31e0fdf149fa54733..74c01ceff9a2497db850c868845c26cff5772165 100644 (file)
@@ -1,4 +1,4 @@
-# fmodl.m4 serial 9
+# fmodl.m4 serial 10
 dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -72,6 +72,8 @@ int main (int argc, char *argv[])
               [case "$host_os" in
                                 # Guess yes on glibc systems.
                  *-gnu* | gnu*) gl_cv_func_fmodl_ieee="guessing yes" ;;
+                                # Guess yes on musl systems.
+                 *-musl*)       gl_cv_func_fmodl_ieee="guessing yes" ;;
                                 # Guess yes on native Windows.
                  mingw*)        gl_cv_func_fmodl_ieee="guessing yes" ;;
                                 # If we don't know, assume the worst.
index c264ca71f971c20821fcbc65af75d60fe6a9dcf8..75ba55b4e0a06f66857c296aac56f48f433f1281 100644 (file)
@@ -1,4 +1,4 @@
-# Check for fnmatch - serial 13.  -*- coding: utf-8 -*-
+# Check for fnmatch - serial 14.  -*- coding: utf-8 -*-
 
 # Copyright (C) 2000-2007, 2009-2019 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
@@ -14,6 +14,7 @@ AC_DEFUN([gl_FUNC_FNMATCH_POSIX],
   m4_divert_text([DEFAULTS], [gl_fnmatch_required=POSIX])
 
   AC_REQUIRE([gl_FNMATCH_H])
+  AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
   gl_fnmatch_required_lowercase=`
     echo $gl_fnmatch_required | LC_ALL=C tr '[[A-Z]]' '[[a-z]]'
   `
@@ -117,12 +118,19 @@ AC_DEFUN([gl_FUNC_FNMATCH_POSIX],
             ]])],
          [eval "$gl_fnmatch_cache_var=yes"],
          [eval "$gl_fnmatch_cache_var=no"],
-         [eval "$gl_fnmatch_cache_var=\"guessing no\""])
+         [case "$host_os" in
+                     # Guess yes on musl systems.
+            *-musl*) eval "$gl_fnmatch_cache_var=\"guessing yes\"" ;;
+                     # Guess no otherwise, even on glibc systems.
+            *)       eval "$gl_fnmatch_cache_var=\"guessing no\"" ;;
+          esac
+         ])
       ])
     eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
-    if test "$gl_fnmatch_result" != yes; then
-      REPLACE_FNMATCH=1
-    fi
+    case "$gl_fnmatch_result" in
+      *yes) ;;
+      *) REPLACE_FNMATCH=1 ;;
+    esac
   fi
   if test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1; then
     gl_REPLACE_FNMATCH_H
index cb21f56310ea390018d932da8175cc4f729d01f9..6c5b3e97cf5394baed433207bac808e7ee329d9e 100644 (file)
@@ -1,4 +1,4 @@
-# fpurge.m4 serial 8
+# fpurge.m4 serial 9
 dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -7,12 +7,13 @@ dnl with or without modifications, as long as this notice is preserved.
 AC_DEFUN([gl_FUNC_FPURGE],
 [
   AC_REQUIRE([gl_STDIO_H_DEFAULTS])
+  AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
   AC_CHECK_FUNCS_ONCE([fpurge])
   AC_CHECK_FUNCS_ONCE([__fpurge])
   AC_CHECK_DECLS([fpurge], , , [[#include <stdio.h>]])
   if test "x$ac_cv_func_fpurge" = xyes; then
     HAVE_FPURGE=1
-    # Detect BSD bug.  Only cygwin 1.7 is known to be immune.
+    # Detect BSD bug.  Only cygwin 1.7 and musl are known to be immune.
     AC_CACHE_CHECK([whether fpurge works], [gl_cv_func_fpurge_works],
       [AC_RUN_IFELSE(
          [AC_LANG_PROGRAM(
@@ -48,11 +49,20 @@ AC_DEFUN([gl_FUNC_FPURGE],
                return 13;
              return 0;
             ])],
-      [gl_cv_func_fpurge_works=yes], [gl_cv_func_fpurge_works=no],
-      [gl_cv_func_fpurge_works='guessing no'])])
-    if test "x$gl_cv_func_fpurge_works" != xyes; then
-      REPLACE_FPURGE=1
-    fi
+         [gl_cv_func_fpurge_works=yes],
+         [gl_cv_func_fpurge_works=no],
+         [case "$host_os" in
+                     # Guess yes on musl systems.
+            *-musl*) gl_cv_func_fpurge_works="guessing yes" ;;
+                     # Guess no otherwise.
+            *)       gl_cv_func_fpurge_works="guessing no" ;;
+          esac
+         ])
+      ])
+    case "$gl_cv_func_fpurge_works" in
+      *yes) ;;
+      *) REPLACE_FPURGE=1 ;;
+    esac
   else
     HAVE_FPURGE=0
   fi
index f0f24a5b9e9be18dc149e1d4599f6b071427ca1d..7227f08c354f5548ab7e1f1b7862c9716f7a4d5b 100644 (file)
@@ -1,4 +1,4 @@
-# serial 10
+# serial 11
 # Determine whether getcwd aborts when the length of the working directory
 # name is unusually large.  Any length between 4k and 16k trigger the bug
 # when using glibc-2.4.90-9 or older.
@@ -13,6 +13,7 @@
 # gl_FUNC_GETCWD_ABORT_BUG([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
 AC_DEFUN([gl_FUNC_GETCWD_ABORT_BUG],
 [
+  AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
   AC_CHECK_DECLS_ONCE([getcwd])
   AC_CHECK_HEADERS_ONCE([unistd.h])
   AC_REQUIRE([gl_PATHMAX_SNIPPET_PREREQ])
@@ -141,7 +142,13 @@ main ()
           gl_cv_func_getcwd_abort_bug=no
         fi
        ],
-       [gl_cv_func_getcwd_abort_bug="guessing yes"])
+       [case "$host_os" in
+                   # Guess no on musl systems.
+          *-musl*) gl_cv_func_getcwd_abort_bug="guessing no" ;;
+                   # Guess yes otherwise, even on glibc systems.
+          *)       gl_cv_func_getcwd_abort_bug="guessing yes"
+        esac
+       ])
     ])
   case "$gl_cv_func_getcwd_abort_bug" in
     *yes)
index 4929b5114329fe7887af54e432859c6725ea14db..625171a2fa93b1c3ca6e8cecdc042520dfec14f0 100644 (file)
@@ -6,7 +6,7 @@
 # with or without modifications, as long as this notice is preserved.
 
 # Written by Paul Eggert.
-# serial 16
+# serial 17
 
 AC_DEFUN([gl_FUNC_GETCWD_NULL],
   [
@@ -50,6 +50,8 @@ AC_DEFUN([gl_FUNC_GETCWD_NULL],
         [[case "$host_os" in
                            # Guess yes on glibc systems.
             *-gnu* | gnu*) gl_cv_func_getcwd_null="guessing yes";;
+                           # Guess yes on musl systems.
+            *-musl*)       gl_cv_func_getcwd_null="guessing yes";;
                            # Guess yes on Cygwin.
             cygwin*)       gl_cv_func_getcwd_null="guessing yes";;
                            # If we don't know, assume the worst.
index bf17c57274561651e4730c05c69e024ffedc111d..e77c37966c0ced8512b80d67588b7796de44ffd7 100644 (file)
@@ -1,4 +1,4 @@
-# getdelim.m4 serial 12
+# getdelim.m4 serial 13
 
 dnl Copyright (C) 2005-2007, 2009-2019 Free Software Foundation, Inc.
 dnl
@@ -11,6 +11,7 @@ AC_PREREQ([2.59])
 AC_DEFUN([gl_FUNC_GETDELIM],
 [
   AC_REQUIRE([gl_STDIO_H_DEFAULTS])
+  AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
 
   dnl Persuade glibc <stdio.h> to declare getdelim().
   AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
@@ -21,9 +22,10 @@ AC_DEFUN([gl_FUNC_GETDELIM],
   if test $ac_cv_func_getdelim = yes; then
     HAVE_GETDELIM=1
     dnl Found it in some library.  Verify that it works.
-    AC_CACHE_CHECK([for working getdelim function], [gl_cv_func_working_getdelim],
-    [echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
-    AC_RUN_IFELSE([AC_LANG_SOURCE([[
+    AC_CACHE_CHECK([for working getdelim function],
+      [gl_cv_func_working_getdelim],
+      [echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
+       AC_RUN_IFELSE([AC_LANG_SOURCE([[
 #    include <stdio.h>
 #    include <stdlib.h>
 #    include <string.h>
@@ -53,25 +55,31 @@ AC_DEFUN([gl_FUNC_GETDELIM],
       fclose (in);
       return 0;
     }
-    ]])], [gl_cv_func_working_getdelim=yes] dnl The library version works.
-    , [gl_cv_func_working_getdelim=no] dnl The library version does NOT work.
-    , dnl We're cross compiling. Assume it works on glibc2 systems.
-      [AC_EGREP_CPP([Lucky GNU user],
-         [
+    ]])],
+         [gl_cv_func_working_getdelim=yes],
+         [gl_cv_func_working_getdelim=no],
+         [dnl We're cross compiling.
+          dnl Guess it works on glibc2 systems and musl systems.
+          AC_EGREP_CPP([Lucky GNU user],
+            [
 #include <features.h>
 #ifdef __GNU_LIBRARY__
  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
   Lucky GNU user
  #endif
 #endif
-         ],
-         [gl_cv_func_working_getdelim="guessing yes"],
-         [gl_cv_func_working_getdelim="guessing no"])]
-    )])
+            ],
+            [gl_cv_func_working_getdelim="guessing yes"],
+            [case "$host_os" in
+               *-musl*) gl_cv_func_working_getdelim="guessing yes" ;;
+               *)       gl_cv_func_working_getdelim="guessing no" ;;
+             esac
+            ])
+         ])
+      ])
     case "$gl_cv_func_working_getdelim" in
-      *no)
-        REPLACE_GETDELIM=1
-        ;;
+      *yes) ;;
+      *) REPLACE_GETDELIM=1 ;;
     esac
   else
     HAVE_GETDELIM=0
index 2ce986ea79b1ea6592e10deeeea2cceebf7b93cd..c93447bb11c38d1c3f5fe1e91ea1b6afd5003956 100644 (file)
@@ -1,4 +1,4 @@
-# serial 21
+# serial 22
 
 dnl From Jim Meyering.
 dnl A wrapper around AC_FUNC_GETGROUPS.
@@ -42,6 +42,8 @@ AC_DEFUN([AC_FUNC_GETGROUPS],
          [case "$host_os" in # ((
                            # Guess yes on glibc systems.
             *-gnu* | gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
+                           # Guess yes on musl systems.
+            *-musl*)       ac_cv_func_getgroups_works="guessing yes" ;;
                            # If we don't know, assume the worst.
             *)             ac_cv_func_getgroups_works="guessing no" ;;
           esac
@@ -95,6 +97,8 @@ AC_DEFUN([gl_FUNC_GETGROUPS],
           [case "$host_os" in
                             # Guess yes on glibc systems.
              *-gnu* | gnu*) gl_cv_func_getgroups_works="guessing yes" ;;
+                            # Guess yes on musl systems.
+             *-musl*)       gl_cv_func_getgroups_works="guessing yes" ;;
                             # If we don't know, assume the worst.
              *)             gl_cv_func_getgroups_works="guessing no" ;;
            esac
index 5b2ead2876b404091229adfd6eea072c768dd7c7..32f771c10f14a2c60f2fe8c7c3d0b04713b89981 100644 (file)
@@ -1,4 +1,4 @@
-# getline.m4 serial 28
+# getline.m4 serial 29
 
 dnl Copyright (C) 1998-2003, 2005-2007, 2009-2019 Free Software Foundation,
 dnl Inc.
@@ -16,6 +16,7 @@ dnl to do with the function we need.
 AC_DEFUN([gl_FUNC_GETLINE],
 [
   AC_REQUIRE([gl_STDIO_H_DEFAULTS])
+  AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
 
   dnl Persuade glibc <stdio.h> to declare getline().
   AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
@@ -28,9 +29,10 @@ AC_DEFUN([gl_FUNC_GETLINE],
                  gl_getline_needs_run_time_check=yes],
                 [am_cv_func_working_getline=no])
   if test $gl_getline_needs_run_time_check = yes; then
-    AC_CACHE_CHECK([for working getline function], [am_cv_func_working_getline],
-    [echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
-    AC_RUN_IFELSE([AC_LANG_SOURCE([[
+    AC_CACHE_CHECK([for working getline function],
+      [am_cv_func_working_getline],
+      [echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
+       AC_RUN_IFELSE([AC_LANG_SOURCE([[
 #    include <stdio.h>
 #    include <stdlib.h>
 #    include <string.h>
@@ -61,21 +63,28 @@ AC_DEFUN([gl_FUNC_GETLINE],
       fclose (in);
       return 0;
     }
-    ]])], [am_cv_func_working_getline=yes] dnl The library version works.
-    , [am_cv_func_working_getline=no] dnl The library version does NOT work.
-    , dnl We're cross compiling. Assume it works on glibc2 systems.
-      [AC_EGREP_CPP([Lucky GNU user],
-         [
+    ]])],
+         [am_cv_func_working_getline=yes],
+         [am_cv_func_working_getline=no],
+         [dnl We're cross compiling.
+          dnl Guess it works on glibc2 systems and musl systems.
+          AC_EGREP_CPP([Lucky GNU user],
+            [
 #include <features.h>
 #ifdef __GNU_LIBRARY__
  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
   Lucky GNU user
  #endif
 #endif
-         ],
-         [am_cv_func_working_getline="guessing yes"],
-         [am_cv_func_working_getline="guessing no"])]
-    )])
+            ],
+            [am_cv_func_working_getline="guessing yes"],
+            [case "$host_os" in
+               *-musl*) am_cv_func_working_getline="guessing yes" ;;
+               *)       am_cv_func_working_getline="guessing no" ;;
+             esac
+            ])
+         ])
+      ])
   fi
 
   if test $ac_cv_have_decl_getline = no; then
@@ -83,7 +92,8 @@ AC_DEFUN([gl_FUNC_GETLINE],
   fi
 
   case "$am_cv_func_working_getline" in
-    *no)
+    *yes) ;;
+    *)
       dnl Set REPLACE_GETLINE always: Even if we have not found the broken
       dnl getline function among $LIBS, it may exist in libinet and the
       dnl executable may be linked with -linet.
index d29b4bff2ff9feda54bac857d3166e3cb283d2a6..5e2ef6f47e2f3cbd56e9dbdbb3e151cfed1b80d3 100644 (file)
@@ -1,4 +1,4 @@
-# serial 25
+# serial 26
 
 # Copyright (C) 2001-2003, 2005, 2007, 2009-2019 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
@@ -105,6 +105,8 @@ AC_DEFUN([gl_FUNC_GETTIMEOFDAY_CLOBBER],
       case "$host_os" in
                        # Guess all is fine on glibc systems.
         *-gnu* | gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
+                       # Guess all is fine on musl systems.
+        *-musl*)       gl_cv_func_gettimeofday_clobber="guessing no" ;;
                        # Guess no on native Windows.
         mingw*)        gl_cv_func_gettimeofday_clobber="guessing no" ;;
                        # If we don't know, assume the worst.
index a7242a2a524b0d00ce488025b62b572cff2a877f..74448c5327b01d4938fc80a502d036554dda4386 100644 (file)
@@ -1,4 +1,4 @@
-# hypot.m4 serial 7
+# hypot.m4 serial 8
 dnl Copyright (C) 2012-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -57,6 +57,8 @@ int main (int argc, char *argv[])
             [case "$host_os" in
                               # Guess yes on glibc systems.
                *-gnu* | gnu*) gl_cv_func_hypot_ieee="guessing yes" ;;
+                              # Guess yes on musl systems.
+               *-musl*)       gl_cv_func_hypot_ieee="guessing yes" ;;
                               # Guess yes on native Windows.
                mingw*)        gl_cv_func_hypot_ieee="guessing yes" ;;
                               # If we don't know, assume the worst.
index 80da9aeae6b5abc05af9f477c749e668433ed833..dcdb07ac1f9006afdc6aa249e85ed13543f8131d 100644 (file)
@@ -1,4 +1,4 @@
-# hypotf.m4 serial 8
+# hypotf.m4 serial 9
 dnl Copyright (C) 2012-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -73,6 +73,8 @@ int main (int argc, char *argv[])
               [case "$host_os" in
                                 # Guess yes on glibc systems.
                  *-gnu* | gnu*) gl_cv_func_hypotf_ieee="guessing yes" ;;
+                                # Guess yes on musl systems.
+                 *-musl*)       gl_cv_func_hypotf_ieee="guessing yes" ;;
                                 # Guess yes on native Windows.
                  mingw*)        gl_cv_func_hypotf_ieee="guessing yes" ;;
                                 # If we don't know, assume the worst.
index dcced7eef84804b9dea7d66d27ce6be66fbffdd9..3d7f47ded1ce00fb09a3db949977a69cecf3238a 100644 (file)
@@ -1,4 +1,4 @@
-# hypotl.m4 serial 9
+# hypotl.m4 serial 10
 dnl Copyright (C) 2012-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -73,6 +73,8 @@ int main (int argc, char *argv[])
               [case "$host_os" in
                                 # Guess yes on glibc systems.
                  *-gnu* | gnu*) gl_cv_func_hypotl_ieee="guessing yes" ;;
+                                # Guess yes on musl systems.
+                 *-musl*)       gl_cv_func_hypotl_ieee="guessing yes" ;;
                                 # Guess yes on native Windows.
                  mingw*)        gl_cv_func_hypotl_ieee="guessing yes" ;;
                                 # If we don't know, assume the worst.
index df171324a226a1a65da5290a625bdb305bfd07c4..fa60a2d0841f59142958db053aa1ab98a29e9a5b 100644 (file)
@@ -1,4 +1,4 @@
-# iconv_open-utf.m4 serial 2
+# iconv_open-utf.m4 serial 3
 dnl Copyright (C) 2007-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -211,7 +211,7 @@ int main ()
           [gl_cv_func_iconv_supports_utf=yes],
           [gl_cv_func_iconv_supports_utf=no],
           [
-           dnl We know that GNU libiconv, GNU libc, and Solaris >= 9 do.
+           dnl We know that GNU libiconv, GNU libc, musl libc, and Solaris >= 9 do.
            dnl OSF/1 5.1 has these encodings, but inserts a BOM in the "to"
            dnl direction.
            gl_cv_func_iconv_supports_utf="guessing no"
@@ -220,6 +220,7 @@ int main ()
            else
 changequote(,)dnl
              case "$host_os" in
+               *-musl*) gl_cv_func_iconv_supports_utf="guessing yes" ;;
                solaris2.9 | solaris2.1[0-9])
                         gl_cv_func_iconv_supports_utf="guessing yes" ;;
              esac
index cbd2dcadf9a0834eca534922fadf1ddd54e6bec5..8ac7301bb5b0d4ff51a802c538953275f1b3e441 100644 (file)
@@ -1,4 +1,4 @@
-# serial 20
+# serial 21
 dnl Run a program to determine whether link(2) follows symlinks.
 dnl Set LINK_FOLLOWS_SYMLINKS accordingly.
 
@@ -88,6 +88,8 @@ AC_DEFUN([gl_FUNC_LINK_FOLLOWS_SYMLINK],
             case "$host_os" in
                                   # On glibc/Linux we know the result.
               linux*-gnu* | gnu*) gl_cv_func_link_follows_symlink="guessing no" ;;
+                                  # On musl/Linux we know the result.
+              linux*-musl*)       gl_cv_func_link_follows_symlink="guessing no" ;;
                                   # Otherwise, we don't know.
               *)                  gl_cv_func_link_follows_symlink=unknown ;;
             esac
index a4e2a5c5b1b54be1ad6e276ce619dc4316ee4064..233ebe3ee21d920ff781cc83f3f8e25da239c18f 100644 (file)
--- a/m4/log.m4
+++ b/m4/log.m4
@@ -1,4 +1,4 @@
-# log.m4 serial 9
+# log.m4 serial 10
 dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -60,6 +60,8 @@ int main (int argc, char *argv[])
             [case "$host_os" in
                               # Guess yes on glibc systems.
                *-gnu* | gnu*) gl_cv_func_log_ieee="guessing yes" ;;
+                              # Guess yes on musl systems.
+               *-musl*)       gl_cv_func_log_ieee="guessing yes" ;;
                               # Guess yes on native Windows.
                mingw*)        gl_cv_func_log_ieee="guessing yes" ;;
                               # If we don't know, assume the worst.
index 6af662414d174eb749dd20da026b67d1e93c8a46..e8cf74f655c75a1e60265eb90db6b4305f176f22 100644 (file)
@@ -1,4 +1,4 @@
-# log10.m4 serial 9
+# log10.m4 serial 10
 dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -60,6 +60,8 @@ int main (int argc, char *argv[])
             [case "$host_os" in
                               # Guess yes on glibc systems.
                *-gnu* | gnu*) gl_cv_func_log10_ieee="guessing yes" ;;
+                              # Guess yes on musl systems.
+               *-musl*)       gl_cv_func_log10_ieee="guessing yes" ;;
                               # Guess yes on native Windows.
                mingw*)        gl_cv_func_log10_ieee="guessing yes" ;;
                               # If we don't know, assume the worst.
index 47501dd784e3bb34018f3ebdc4c119260dfed6ce..d2beeffeb8cfb519077247c7fe348cdb4d09acb0 100644 (file)
@@ -1,4 +1,4 @@
-# log10f.m4 serial 10
+# log10f.m4 serial 11
 dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -70,6 +70,8 @@ int main (int argc, char *argv[])
               [case "$host_os" in
                                 # Guess yes on glibc systems.
                  *-gnu* | gnu*) gl_cv_func_log10f_ieee="guessing yes" ;;
+                                # Guess yes on musl systems.
+                 *-musl*)       gl_cv_func_log10f_ieee="guessing yes" ;;
                                 # Guess yes on native Windows.
                  mingw*)        gl_cv_func_log10f_ieee="guessing yes" ;;
                                 # If we don't know, assume the worst.
index 80835f69583bd9159704bdcfa7a9474ffc769a1f..ac17e76d5d5d211a713c29c421e24d2f5641c548 100644 (file)
@@ -1,4 +1,4 @@
-# log10l.m4 serial 6
+# log10l.m4 serial 7
 dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -147,6 +147,8 @@ int main (int argc, char *argv[])
         [case "$host_os" in
                           # Guess yes on glibc systems.
            *-gnu* | gnu*) gl_cv_func_log10l_works="guessing yes" ;;
+                          # Guess yes on musl systems.
+           *-musl*)       gl_cv_func_log10l_works="guessing yes" ;;
                           # Guess yes on native Windows.
            mingw*)        gl_cv_func_log10l_works="guessing yes" ;;
                           # If we don't know, assume the worst.
index b5dd430b0d40a0e1ccaaeba53f762eecdf078351..834f5c3b789e48ec672a152e58e99a2b0e6c5d2e 100644 (file)
@@ -1,4 +1,4 @@
-# log1p.m4 serial 6
+# log1p.m4 serial 7
 dnl Copyright (C) 2012-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -54,6 +54,8 @@ int main (int argc, char *argv[])
               [case "$host_os" in
                                 # Guess yes on glibc systems.
                  *-gnu* | gnu*) gl_cv_func_log1p_ieee="guessing yes" ;;
+                                # Guess yes on musl systems.
+                 *-musl*)       gl_cv_func_log1p_ieee="guessing yes" ;;
                                 # Guess yes on native Windows.
                  mingw*)        gl_cv_func_log1p_ieee="guessing yes" ;;
                                 # If we don't know, assume the worst.
index 4a2c35a61dfb6c73c14a3ea34d29e41701dc8fb9..6cbf3fb2c4c07d63e3c2259bb83c7487c4684c67 100644 (file)
@@ -1,4 +1,4 @@
-# log1pf.m4 serial 6
+# log1pf.m4 serial 7
 dnl Copyright (C) 2012-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -63,6 +63,8 @@ int main (int argc, char *argv[])
               [case "$host_os" in
                                 # Guess yes on glibc systems.
                  *-gnu* | gnu*) gl_cv_func_log1pf_ieee="guessing yes" ;;
+                                # Guess yes on musl systems.
+                 *-musl*)       gl_cv_func_log1pf_ieee="guessing yes" ;;
                                 # Guess yes on native Windows.
                  mingw*)        gl_cv_func_log1pf_ieee="guessing yes" ;;
                                 # If we don't know, assume the worst.
index 7def39136c791b75d910684405683f8816aab5fb..baee5fca853f92138cfaa72d2c482fca321daa64 100644 (file)
@@ -1,4 +1,4 @@
-# log1pl.m4 serial 6
+# log1pl.m4 serial 7
 dnl Copyright (C) 2012-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -54,6 +54,8 @@ int main (int argc, char *argv[])
               [case "$host_os" in
                                 # Guess yes on glibc systems.
                  *-gnu* | gnu*) gl_cv_func_log1pl_ieee="guessing yes" ;;
+                                # Guess yes on musl systems.
+                 *-musl*)       gl_cv_func_log1pl_ieee="guessing yes" ;;
                                 # Guess yes on native Windows.
                  mingw*)        gl_cv_func_log1pl_ieee="guessing yes" ;;
                                 # If we don't know, assume the worst.
index bd8b3cff0c97431470117c0e53f2ac79803e94b5..12abad2b1fa668bd202851fb98a4f1f84bec62d1 100644 (file)
@@ -1,4 +1,4 @@
-# log2.m4 serial 8
+# log2.m4 serial 9
 dnl Copyright (C) 2010-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -81,6 +81,8 @@ int main (int argc, char *argv[])
               [case "$host_os" in
                                 # Guess yes on glibc systems.
                  *-gnu* | gnu*) gl_cv_func_log2_ieee="guessing yes" ;;
+                                # Guess yes on musl systems.
+                 *-musl*)       gl_cv_func_log2_ieee="guessing yes" ;;
                                 # Guess yes on native Windows.
                  mingw*)        gl_cv_func_log2_ieee="guessing yes" ;;
                                 # If we don't know, assume the worst.
index 63b8458ca94483c2066864f1f7d8f180b6108e38..22a7a67890e2ba9553e2c998c3d9ba9a4cca5016 100644 (file)
@@ -1,4 +1,4 @@
-# log2f.m4 serial 8
+# log2f.m4 serial 9
 dnl Copyright (C) 2010-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -82,6 +82,8 @@ int main (int argc, char *argv[])
               [case "$host_os" in
                                 # Guess yes on glibc systems.
                  *-gnu* | gnu*) gl_cv_func_log2f_ieee="guessing yes" ;;
+                                # Guess yes on musl systems.
+                 *-musl*)       gl_cv_func_log2f_ieee="guessing yes" ;;
                                 # Guess yes on native Windows.
                  mingw*)        gl_cv_func_log2f_ieee="guessing yes" ;;
                                 # If we don't know, assume the worst.
index 6b9e5bbf1f472e47b1567805f81171109daf2619..178a2a72513e6b8a2bfc10ae971e4a3bb93bed78 100644 (file)
@@ -1,4 +1,4 @@
-# logf.m4 serial 10
+# logf.m4 serial 11
 dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -70,6 +70,8 @@ int main (int argc, char *argv[])
               [case "$host_os" in
                                 # Guess yes on glibc systems.
                  *-gnu* | gnu*) gl_cv_func_logf_ieee="guessing yes" ;;
+                                # Guess yes on musl systems.
+                 *-musl*)       gl_cv_func_logf_ieee="guessing yes" ;;
                                 # Guess yes on native Windows.
                  mingw*)        gl_cv_func_logf_ieee="guessing yes" ;;
                                 # If we don't know, assume the worst.
index a3576cbf578061f563f8e1ce33ee494a311a2d0d..41106940e9396ad7fe70e9f00a34d3282304a713 100644 (file)
@@ -1,4 +1,4 @@
-# logl.m4 serial 11
+# logl.m4 serial 12
 dnl Copyright (C) 2010-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -188,6 +188,8 @@ int main (int argc, char *argv[])
         [case "$host_os" in
                           # Guess yes on glibc systems.
            *-gnu* | gnu*) gl_cv_func_logl_works="guessing yes" ;;
+                          # Guess yes on musl systems.
+           *-musl*)       gl_cv_func_logl_works="guessing yes" ;;
                           # Guess yes on native Windows.
            mingw*)        gl_cv_func_logl_works="guessing yes" ;;
                           # If we don't know, assume the worst.
index b9b8d4b46e28f61cb9b5caaea33f27e1acd7d9d2..c469c4508deb9423de07d864d241229287a65790 100644 (file)
@@ -1,4 +1,4 @@
-# malloc.m4 serial 18
+# malloc.m4 serial 19
 dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -32,7 +32,7 @@ AC_DEFUN([_AC_FUNC_MALLOC_IF],
        [ac_cv_func_malloc_0_nonnull=no],
        [case "$host_os" in
           # Guess yes on platforms where we know the result.
-          *-gnu* | gnu* | freebsd* | netbsd* | openbsd* \
+          *-gnu* | gnu* | *-musl* | freebsd* | netbsd* | openbsd* \
           | hpux* | solaris* | cygwin* | mingw*)
             ac_cv_func_malloc_0_nonnull="guessing yes" ;;
           # If we don't know, assume the worst.
index 4cd95903b7b98571133f81da6a8218317c6f4059..366a3cd744bc31d00f8f8b2da5f486dacc1141ab 100644 (file)
@@ -1,4 +1,4 @@
-# serial 14
+# serial 15
 
 # Copyright (C) 2001, 2003-2004, 2006, 2008-2019 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
@@ -62,6 +62,8 @@ AC_DEFUN([gl_FUNC_MKDIR],
       [case "$host_os" in
                         # Guess yes on glibc systems.
          *-gnu* | gnu*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;;
+                        # Guess yes on musl systems.
+         *-musl*)       gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;;
                         # Guess no on native Windows.
          mingw*)        gl_cv_func_mkdir_trailing_dot_works="guessing no" ;;
                         # If we don't know, assume the worst.
index ae24c3bd981a30b0f934594d2ad7df12d9e8fd4d..1b15c2eb3abb5b29ef255b3bb5c39f967105cb89 100644 (file)
@@ -1,4 +1,4 @@
-#serial 25
+#serial 26
 
 # Copyright (C) 2001, 2003-2007, 2009-2019 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
@@ -59,6 +59,8 @@ AC_DEFUN([gl_FUNC_MKSTEMP],
           [case "$host_os" in
                             # Guess yes on glibc systems.
              *-gnu* | gnu*) gl_cv_func_working_mkstemp="guessing yes" ;;
+                            # Guess yes on musl systems.
+             *-musl*)       gl_cv_func_working_mkstemp="guessing yes" ;;
                             # Guess no on native Windows.
              mingw*)        gl_cv_func_working_mkstemp="guessing no" ;;
                             # If we don't know, assume the worst.
index b5038441a3aaba59cd7c702973a1f5c0184e950c..3b4b7f1d693c0a72e25c5e304e82960119e5581b 100644 (file)
@@ -1,4 +1,4 @@
-# modf.m4 serial 6
+# modf.m4 serial 7
 dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -63,6 +63,8 @@ int main (int argc, char *argv[])
             [case "$host_os" in
                               # Guess yes on glibc systems.
                *-gnu* | gnu*) gl_cv_func_modf_ieee="guessing yes" ;;
+                              # Guess yes on musl systems.
+               *-musl*)       gl_cv_func_modf_ieee="guessing yes" ;;
                               # Guess yes on MSVC, no on mingw.
                mingw*)        AC_EGREP_CPP([Known], [
 #ifdef _MSC_VER
index e1fbf1db8f0e64f8d73dd2cd2544265132d82161..44ce838ee78bf1b7e0d62ab221400a22fff5b3fd 100644 (file)
@@ -1,4 +1,4 @@
-# modff.m4 serial 8
+# modff.m4 serial 9
 dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -71,6 +71,8 @@ int main (int argc, char *argv[])
               [case "$host_os" in
                                 # Guess yes on glibc systems.
                  *-gnu* | gnu*) gl_cv_func_modff_ieee="guessing yes" ;;
+                                # Guess yes on musl systems.
+                 *-musl*)       gl_cv_func_modff_ieee="guessing yes" ;;
                                 # Guess yes on MSVC, no on mingw.
                  mingw*)        AC_EGREP_CPP([Known], [
 #ifdef _MSC_VER
index fc32cd648fc34b72a1f29cbe83b59b0066a1f8c8..2859c4d2e7c7837adaafcfa05bdff9ed57eb0c81 100644 (file)
@@ -1,4 +1,4 @@
-# modfl.m4 serial 6
+# modfl.m4 serial 7
 dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -65,6 +65,8 @@ int main (int argc, char *argv[])
               [case "$host_os" in
                                 # Guess yes on glibc systems.
                  *-gnu* | gnu*) gl_cv_func_modfl_ieee="guessing yes" ;;
+                                # Guess yes on musl systems.
+                 *-musl*)       gl_cv_func_modfl_ieee="guessing yes" ;;
                                 # Guess yes on MSVC, no on mingw.
                  mingw*)        AC_EGREP_CPP([Known], [
 #ifdef _MSC_VER
index 335be729d4b8b4d9a64497083500afdaabd4d2dc..08e2db187b5353b7dbface67a585d096c559de69 100644 (file)
@@ -1,4 +1,4 @@
-# perror.m4 serial 7
+# perror.m4 serial 8
 dnl Copyright (C) 2008-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -48,10 +48,12 @@ AC_DEFUN([gl_FUNC_PERROR],
             rm -rf conftest.txt1 conftest.txt2],
            [gl_cv_func_perror_works=no],
            [case "$host_os" in
-                      # Guess yes on native Windows.
-              mingw*) gl_cv_func_perror_works="guessing yes" ;;
-                      # Otherwise guess no.
-              *)      gl_cv_func_perror_works="guessing no" ;;
+                       # Guess yes on musl systems.
+              *-musl*) gl_cv_func_perror_works="guessing yes" ;;
+                       # Guess yes on native Windows.
+              mingw*)  gl_cv_func_perror_works="guessing yes" ;;
+                       # Otherwise guess no.
+              *)       gl_cv_func_perror_works="guessing no" ;;
             esac
            ])
         ])
index cbf6ae488c1e2e7f5d34f25e7d60bb4d967611d0..6d2280ef5c70ac62e86ef58948789a8e28e00567 100644 (file)
@@ -1,4 +1,4 @@
-# printf.m4 serial 60
+# printf.m4 serial 61
 dnl Copyright (C) 2003, 2007-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -62,6 +62,8 @@ int main ()
 changequote(,)dnl
                                  # Guess yes on glibc systems.
            *-gnu* | gnu*)        gl_cv_func_printf_sizes_c99="guessing yes";;
+                                 # Guess yes on musl systems.
+           *-musl*)              gl_cv_func_printf_sizes_c99="guessing yes";;
                                  # Guess yes on FreeBSD >= 5.
            freebsd[1-4].*)       gl_cv_func_printf_sizes_c99="guessing no";;
            freebsd* | kfreebsd*) gl_cv_func_printf_sizes_c99="guessing yes";;
@@ -240,6 +242,8 @@ int main ()
 changequote(,)dnl
                                  # Guess yes on glibc systems.
            *-gnu* | gnu*)        gl_cv_func_printf_infinite="guessing yes";;
+                                 # Guess yes on musl systems.
+           *-musl*)              gl_cv_func_printf_infinite="guessing yes";;
                                  # Guess yes on FreeBSD >= 6.
            freebsd[1-5].*)       gl_cv_func_printf_infinite="guessing no";;
            freebsd* | kfreebsd*) gl_cv_func_printf_infinite="guessing yes";;
@@ -457,6 +461,8 @@ int main ()
 changequote(,)dnl
                                          # Guess yes on glibc systems.
                    *-gnu* | gnu*)        gl_cv_func_printf_infinite_long_double="guessing yes";;
+                                         # Guess yes on musl systems.
+                   *-musl*)              gl_cv_func_printf_infinite_long_double="guessing yes";;
                                          # Guess yes on FreeBSD >= 6.
                    freebsd[1-5].*)       gl_cv_func_printf_infinite_long_double="guessing no";;
                    freebsd* | kfreebsd*) gl_cv_func_printf_infinite_long_double="guessing yes";;
@@ -575,6 +581,8 @@ int main ()
                [gl_cv_func_printf_directive_a="guessing yes"],
                [gl_cv_func_printf_directive_a="guessing no"])
              ;;
+                                 # Guess yes on musl systems.
+           *-musl*)              gl_cv_func_printf_directive_a="guessing yes";;
                                  # Guess no on Android.
            linux*-android*)      gl_cv_func_printf_directive_a="guessing no";;
                                  # Guess no on native Windows.
@@ -625,6 +633,8 @@ int main ()
 changequote(,)dnl
                                  # Guess yes on glibc systems.
            *-gnu* | gnu*)        gl_cv_func_printf_directive_f="guessing yes";;
+                                 # Guess yes on musl systems.
+           *-musl*)              gl_cv_func_printf_directive_f="guessing yes";;
                                  # Guess yes on FreeBSD >= 6.
            freebsd[1-5].*)       gl_cv_func_printf_directive_f="guessing no";;
            freebsd* | kfreebsd*) gl_cv_func_printf_directive_f="guessing yes";;
@@ -960,6 +970,8 @@ changequote(,)dnl
          case "$host_os" in
                             # Guess yes on glibc systems.
            *-gnu* | gnu*)   gl_cv_func_printf_flag_zero="guessing yes";;
+                            # Guess yes on musl systems.
+           *-musl*)         gl_cv_func_printf_flag_zero="guessing yes";;
                             # Guess yes on BeOS.
            beos*)           gl_cv_func_printf_flag_zero="guessing yes";;
                             # Guess no on Android.
@@ -1206,6 +1218,8 @@ changequote(,)dnl
          case "$host_os" in
                                  # Guess yes on glibc systems.
            *-gnu* | gnu*)        gl_cv_func_snprintf_truncation_c99="guessing yes";;
+                                 # Guess yes on musl systems.
+           *-musl*)              gl_cv_func_snprintf_truncation_c99="guessing yes";;
                                  # Guess yes on FreeBSD >= 5.
            freebsd[1-4].*)       gl_cv_func_snprintf_truncation_c99="guessing no";;
            freebsd* | kfreebsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
@@ -1308,6 +1322,8 @@ int main ()
 changequote(,)dnl
                                  # Guess yes on glibc systems.
            *-gnu* | gnu*)        gl_cv_func_snprintf_retval_c99="guessing yes";;
+                                 # Guess yes on musl systems.
+           *-musl*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
                                  # Guess yes on FreeBSD >= 5.
            freebsd[1-4].*)       gl_cv_func_snprintf_retval_c99="guessing no";;
            freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
@@ -1400,6 +1416,8 @@ changequote(,)dnl
          case "$host_os" in
                                  # Guess yes on glibc systems.
            *-gnu* | gnu*)        gl_cv_func_snprintf_directive_n="guessing yes";;
+                                 # Guess yes on musl systems.
+           *-musl*)              gl_cv_func_snprintf_directive_n="guessing yes";;
                                  # Guess yes on FreeBSD >= 5.
            freebsd[1-4].*)       gl_cv_func_snprintf_directive_n="guessing no";;
            freebsd* | kfreebsd*) gl_cv_func_snprintf_directive_n="guessing yes";;
@@ -1554,6 +1572,8 @@ changequote(,)dnl
          case "$host_os" in
                                  # Guess yes on glibc systems.
            *-gnu* | gnu*)        gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
+                                 # Guess yes on musl systems.
+           *-musl*)              gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
                                  # Guess yes on FreeBSD >= 5.
            freebsd[1-4].*)       gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
            freebsd* | kfreebsd*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
index 65a3513f6b27decf58ec618770c517c6401dfd5a..be027b8c0a38670387487897c73f1244501dad26 100644 (file)
@@ -1,4 +1,4 @@
-# ptsname.m4 serial 5
+# ptsname.m4 serial 6
 dnl Copyright (C) 2010-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -28,6 +28,8 @@ AC_DEFUN([gl_FUNC_PTSNAME],
          [case "$host_os" in
                            # Guess yes on glibc systems.
             *-gnu* | gnu*) gl_cv_func_ptsname_sets_errno="guessing yes" ;;
+                           # Guess yes on musl systems.
+            *-musl*)       gl_cv_func_ptsname_sets_errno="guessing yes" ;;
                            # If we don't know, assume the worst.
             *)             gl_cv_func_ptsname_sets_errno="guessing no" ;;
           esac
index f8960f66be5541e90e247720a53df29433319a56..342ba2636ab1ca242ce7eb444e543846c239b22e 100644 (file)
@@ -1,4 +1,4 @@
-# putenv.m4 serial 22
+# putenv.m4 serial 23
 dnl Copyright (C) 2002-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -36,6 +36,8 @@ AC_DEFUN([gl_FUNC_PUTENV],
              [case "$host_os" in
                                # Guess yes on glibc systems.
                 *-gnu* | gnu*) gl_cv_func_svid_putenv="guessing yes" ;;
+                               # Guess yes on musl systems.
+                *-musl*)       gl_cv_func_svid_putenv="guessing yes" ;;
                                # Guess no on native Windows.
                 mingw*)        gl_cv_func_svid_putenv="guessing no" ;;
                                # If we don't know, assume the worst.
index f9f15adedbea8c18c4b9a19b49755de78b237675..93066e80cea2d79509f83e99eb52fe02d5d46ce5 100644 (file)
@@ -1,4 +1,4 @@
-# realloc.m4 serial 16
+# realloc.m4 serial 17
 dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -32,7 +32,7 @@ AC_DEFUN([_AC_FUNC_REALLOC_IF],
        [ac_cv_func_realloc_0_nonnull=no],
        [case "$host_os" in
           # Guess yes on platforms where we know the result.
-          *-gnu* | gnu* | freebsd* | netbsd* | openbsd* \
+          *-gnu* | gnu* | *-musl* | freebsd* | netbsd* | openbsd* \
           | hpux* | solaris* | cygwin* | mingw*)
             ac_cv_func_realloc_0_nonnull="guessing yes" ;;
           # If we don't know, assume the worst.
index 58548bad0c1ff396794b8c75a431b2b87a318562..e9253a18df6203166adf4a663e1aa894e4e2cbc8 100644 (file)
@@ -1,4 +1,4 @@
-# remainder.m4 serial 7
+# remainder.m4 serial 8
 dnl Copyright (C) 2012-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -94,6 +94,8 @@ int main (int argc, char *argv[])
               [case "$host_os" in
                                 # Guess yes on glibc systems.
                  *-gnu* | gnu*) gl_cv_func_remainder_ieee="guessing yes" ;;
+                                # Guess yes on musl systems.
+                 *-musl*)       gl_cv_func_remainder_ieee="guessing yes" ;;
                                 # Guess yes on native Windows.
                  mingw*)        gl_cv_func_remainder_ieee="guessing yes" ;;
                                 # If we don't know, assume the worst.
index 5ab511a150016a1cd6ba8e2bfb75d269c42e45f2..4c7319a1d8a0fe757e3a2de25ef9b719d1e9af50 100644 (file)
@@ -1,4 +1,4 @@
-# remainderf.m4 serial 11
+# remainderf.m4 serial 12
 dnl Copyright (C) 2012-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -97,6 +97,8 @@ int main (int argc, char *argv[])
               [case "$host_os" in
                                 # Guess yes on glibc systems.
                  *-gnu* | gnu*) gl_cv_func_remainderf_ieee="guessing yes" ;;
+                                # Guess yes on musl systems.
+                 *-musl*)       gl_cv_func_remainderf_ieee="guessing yes" ;;
                                 # Guess yes on native Windows.
                  mingw*)        gl_cv_func_remainderf_ieee="guessing yes" ;;
                                 # If we don't know, assume the worst.
index 85ed6befa8e506300a8b5c5d316b98bf909462ea..dde2f4fca251ff0c485847cc0efc7f96e4715884 100644 (file)
@@ -1,4 +1,4 @@
-# remainderl.m4 serial 10
+# remainderl.m4 serial 11
 dnl Copyright (C) 2012-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -102,6 +102,8 @@ int main (int argc, char *argv[])
               [case "$host_os" in
                                 # Guess yes on glibc systems.
                  *-gnu* | gnu*) gl_cv_func_remainderl_ieee="guessing yes" ;;
+                                # Guess yes on musl systems.
+                 *-musl*)       gl_cv_func_remainderl_ieee="guessing yes" ;;
                                 # Guess yes on native Windows.
                  mingw*)        gl_cv_func_remainderl_ieee="guessing yes" ;;
                                 # If we don't know, assume the worst.
index 66831191e47eeb179ad774e8bf7ac89194546bb9..d7e2e90bbb90f9b7936dfc8f73ee9cf8aedf251e 100644 (file)
@@ -1,4 +1,4 @@
-# rintl.m4 serial 5
+# rintl.m4 serial 6
 dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -52,6 +52,8 @@ int main (int argc, char *argv[])
             [case "$host_os" in
                               # Guess yes on glibc systems.
                *-gnu* | gnu*) gl_cv_func_rintl_works="guessing yes" ;;
+                              # Guess yes on musl systems.
+               *-musl*)       gl_cv_func_rintl_works="guessing yes" ;;
                               # Guess yes on native Windows.
                mingw*)        gl_cv_func_rintl_works="guessing yes" ;;
                               # If we don't know, assume the worst.
index 49ae315ffebe392767711500be08e4ddc59d8af8..e4df61572439cf7401a5127f2a9d7ad929813e0e 100644 (file)
@@ -1,4 +1,4 @@
-# round.m4 serial 20
+# round.m4 serial 21
 dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -115,6 +115,8 @@ int main (int argc, char *argv[])
               [case "$host_os" in
                                 # Guess yes on glibc systems.
                  *-gnu* | gnu*) gl_cv_func_round_ieee="guessing yes" ;;
+                                # Guess yes on musl systems.
+                 *-musl*)       gl_cv_func_round_ieee="guessing yes" ;;
                                 # Guess yes on MSVC, no on mingw.
                  mingw*)        AC_EGREP_CPP([Known], [
 #ifdef _MSC_VER
index 07f816e2c078a33e426b2e8ebbc8a6a41059f953..17cc9da0964e744b45abdac6bc359754b4bd8f0d 100644 (file)
@@ -1,4 +1,4 @@
-# roundf.m4 serial 21
+# roundf.m4 serial 22
 dnl Copyright (C) 2007-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -115,6 +115,8 @@ int main (int argc, char *argv[])
               [case "$host_os" in
                                 # Guess yes on glibc systems.
                  *-gnu* | gnu*) gl_cv_func_roundf_ieee="guessing yes" ;;
+                                # Guess yes on musl systems.
+                 *-musl*)       gl_cv_func_roundf_ieee="guessing yes" ;;
                                 # Guess yes on MSVC, no on mingw.
                  mingw*)        AC_EGREP_CPP([Known], [
 #ifdef _MSC_VER
index 95eed1bd05ebb806ffdb5b914b26ee557fc3c3e0..934e8095270eeb37baf4b8bb3b352964ba5efd0a 100644 (file)
@@ -1,4 +1,4 @@
-# roundl.m4 serial 18
+# roundl.m4 serial 19
 dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -66,6 +66,8 @@ int main (int argc, char *argv[])
               [case "$host_os" in
                                 # Guess yes on glibc systems.
                  *-gnu* | gnu*) gl_cv_func_roundl_ieee="guessing yes" ;;
+                                # Guess yes on musl systems.
+                 *-musl*)       gl_cv_func_roundl_ieee="guessing yes" ;;
                                 # Guess yes on native Windows.
                  mingw*)        gl_cv_func_roundl_ieee="guessing yes" ;;
                                 # If we don't know, assume the worst.
index 6101274e6918908bd21e707ba1210747bbff5244..a8f83d60ffa6e30eee09f6d6ad2f799d45db2a4f 100644 (file)
@@ -1,4 +1,4 @@
-# setenv.m4 serial 27
+# setenv.m4 serial 28
 dnl Copyright (C) 2001-2004, 2006-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -37,6 +37,8 @@ AC_DEFUN([gl_FUNC_SETENV],
       [case "$host_os" in
                         # Guess yes on glibc systems.
          *-gnu* | gnu*) gl_cv_func_setenv_works="guessing yes" ;;
+                        # Guess yes on musl systems.
+         *-musl*)       gl_cv_func_setenv_works="guessing yes" ;;
                         # If we don't know, assume the worst.
          *)             gl_cv_func_setenv_works="guessing no" ;;
        esac
index bf5bce594336595aefb9e81db307dc9c4babbf8b..f7f2f3d7afd6c036dc7faa9a5bd0980dbd8825a9 100644 (file)
@@ -1,4 +1,4 @@
-# signbit.m4 serial 16
+# signbit.m4 serial 17
 dnl Copyright (C) 2007-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -31,6 +31,8 @@ AC_DEFUN([gl_SIGNBIT],
         [case "$host_os" in
                           # Guess yes on glibc systems.
            *-gnu* | gnu*) gl_cv_func_signbit="guessing yes" ;;
+                          # Guess yes on musl systems.
+           *-musl*)       gl_cv_func_signbit="guessing yes" ;;
                           # Guess yes on native Windows.
            mingw*)        gl_cv_func_signbit="guessing yes" ;;
                           # If we don't know, assume the worst.
@@ -62,6 +64,8 @@ AC_DEFUN([gl_SIGNBIT],
         [case "$host_os" in
                           # Guess yes on glibc systems.
            *-gnu* | gnu*) gl_cv_func_signbit_gcc="guessing yes" ;;
+                          # Guess yes on musl systems.
+           *-musl*)       gl_cv_func_signbit_gcc="guessing yes" ;;
                           # Guess yes on mingw, no on MSVC.
            mingw*)        if test -n "$GCC"; then
                             gl_cv_func_signbit_gcc="guessing yes"
index 5f71cc7889de3af35d2770d1d8a6265fdbbd0fc7..7bab4670a4960e9ce796d2314ca3ad50951a5f1c 100644 (file)
@@ -1,4 +1,4 @@
-# sleep.m4 serial 9
+# sleep.m4 serial 10
 dnl Copyright (C) 2007-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -48,6 +48,8 @@ handle_alarm (int sig)
       [case "$host_os" in
                         # Guess yes on glibc systems.
          *-gnu* | gnu*) gl_cv_func_sleep_works="guessing yes" ;;
+                        # Guess yes on musl systems.
+         *-musl*)       gl_cv_func_sleep_works="guessing yes" ;;
                         # Guess no on native Windows.
          mingw*)        gl_cv_func_sleep_works="guessing no" ;;
                         # If we don't know, assume the worst.
index 83425dd563cba02e41ed2e3aec84b60a3dde14e4..f8e1a7c9457a2f3c5372fd63962e5d613eb69c95 100644 (file)
@@ -1,4 +1,4 @@
-# stpncpy.m4 serial 16
+# stpncpy.m4 serial 17
 dnl Copyright (C) 2002-2003, 2005-2007, 2009-2019 Free Software Foundation,
 dnl Inc.
 dnl This file is free software; the Free Software Foundation
@@ -7,6 +7,8 @@ dnl with or without modifications, as long as this notice is preserved.
 
 AC_DEFUN([gl_FUNC_STPNCPY],
 [
+  AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
+
   dnl Persuade glibc <string.h> to declare stpncpy().
   AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
 
@@ -69,12 +71,18 @@ int main ()
 ]])],
         [gl_cv_func_stpncpy=yes],
         [gl_cv_func_stpncpy=no],
-        [AC_EGREP_CPP([Thanks for using GNU], [
+        [dnl Guess yes on glibc systems and musl systems.
+         AC_EGREP_CPP([Thanks for using GNU], [
 #include <features.h>
 #ifdef __GNU_LIBRARY__
   Thanks for using GNU
 #endif
-], [gl_cv_func_stpncpy="guessing yes"], [gl_cv_func_stpncpy="guessing no"])
+],         [gl_cv_func_stpncpy="guessing yes"],
+           [case "$host_os" in
+              *-musl*) gl_cv_func_stpncpy="guessing yes" ;;
+              *)       gl_cv_func_stpncpy="guessing no" ;;
+            esac
+           ])
         ])
     ])
     case "$gl_cv_func_stpncpy" in
index b452f7f8949b17b661679395f6417609e80d75e6..2c90f3163ca94a09251cf6f6ec46399143200dae 100644 (file)
@@ -1,4 +1,4 @@
-# strerror.m4 serial 19
+# strerror.m4 serial 20
 dnl Copyright (C) 2002, 2007-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -26,6 +26,8 @@ AC_DEFUN([gl_FUNC_STRERROR],
         [case "$host_os" in
                           # Guess yes on glibc systems.
            *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;;
+                          # Guess yes on musl systems.
+           *-musl*)       gl_cv_func_working_strerror="guessing yes" ;;
                           # If we don't know, assume the worst.
            *)             gl_cv_func_working_strerror="guessing no" ;;
          esac
@@ -80,6 +82,8 @@ AC_DEFUN([gl_FUNC_STRERROR_0],
       [case "$host_os" in
                         # Guess yes on glibc systems.
          *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
+                        # Guess yes on musl systems.
+         *-musl*)       gl_cv_func_strerror_0_works="guessing yes" ;;
                         # Guess yes on native Windows.
          mingw*)        gl_cv_func_strerror_0_works="guessing yes" ;;
                         # If we don't know, assume the worst.
index 99122178a0e73732d0f9daa3a0bccded03af51fb..d68ab7556e0c74415a4f22e5d64f9fc89082dae8 100644 (file)
@@ -1,4 +1,4 @@
-# strtod.m4 serial 24
+# strtod.m4 serial 25
 dnl Copyright (C) 2002-2003, 2006-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -115,9 +115,11 @@ numeric_equal (double x, double y)
            ],
            [gl_cv_func_strtod_works="guessing yes"],
            [case "$host_os" in
-                      # Guess yes on native Windows.
-              mingw*) gl_cv_func_strtod_works="guessing yes" ;;
-              *)      gl_cv_func_strtod_works="guessing no" ;;
+                       # Guess yes on musl systems.
+              *-musl*) gl_cv_func_strtod_works="guessing yes" ;;
+                       # Guess yes on native Windows.
+              mingw*)  gl_cv_func_strtod_works="guessing yes" ;;
+              *)       gl_cv_func_strtod_works="guessing no" ;;
             esac
            ])
         ])
index 16b4edaca18015c898077d744990b85a8c5c6708..17125fe7b8c1372a50efcaef47ad44fe1ff51ec2 100644 (file)
@@ -1,4 +1,4 @@
-# strtold.m4 serial 3
+# strtold.m4 serial 4
 dnl Copyright (C) 2002-2003, 2006-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -98,7 +98,12 @@ numeric_equal (long double x, long double y)
 #endif
            ],
            [gl_cv_func_strtold_works="guessing yes"],
-           [gl_cv_func_strtold_works="guessing no"])
+           [case "$host_os" in
+                       # Guess yes on musl systems.
+              *-musl*) gl_cv_func_strtold_works="guessing yes" ;;
+              *)       gl_cv_func_strtold_works="guessing no" ;;
+            esac
+           ])
         ])
       ])
     case "$gl_cv_func_strtold_works" in
index 056d56de80a9954719c5e8817f50721a3fe3ef35..9c3694e308785c3ba455e5b156d51a7dd7b95d15 100644 (file)
@@ -1,4 +1,4 @@
-# trunc.m4 serial 13
+# trunc.m4 serial 14
 dnl Copyright (C) 2007, 2010-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -74,6 +74,8 @@ int main (int argc, char *argv[])
               [case "$host_os" in
                                 # Guess yes on glibc systems.
                  *-gnu* | gnu*) gl_cv_func_trunc_ieee="guessing yes" ;;
+                                # Guess yes on musl systems.
+                 *-musl*)       gl_cv_func_trunc_ieee="guessing yes" ;;
                                 # Guess yes on native Windows.
                  mingw*)        gl_cv_func_trunc_ieee="guessing yes" ;;
                                 # If we don't know, assume the worst.
index 1ee987b711092d8edd91ae62f162d1cf6f20e6bf..3ef5b730eda64a65443c305184c2bac8cb7d4dc5 100644 (file)
@@ -1,4 +1,4 @@
-# truncf.m4 serial 13
+# truncf.m4 serial 14
 dnl Copyright (C) 2007, 2010-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -74,6 +74,8 @@ int main (int argc, char *argv[])
               [case "$host_os" in
                                 # Guess yes on glibc systems.
                  *-gnu* | gnu*) gl_cv_func_truncf_ieee="guessing yes" ;;
+                                # Guess yes on musl systems.
+                 *-musl*)       gl_cv_func_truncf_ieee="guessing yes" ;;
                                 # Guess yes on native Windows.
                  mingw*)        gl_cv_func_truncf_ieee="guessing yes" ;;
                                 # If we don't know, assume the worst.
index b03d04cc1167936a2fb8b50f2d4f281d1a87bfd0..2970f83437b62e67de90332ca0d6796e3b441fe1 100644 (file)
@@ -1,4 +1,4 @@
-# truncl.m4 serial 15
+# truncl.m4 serial 16
 dnl Copyright (C) 2007-2008, 2010-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -107,6 +107,8 @@ int main (int argc, char *argv[])
               [case "$host_os" in
                                 # Guess yes on glibc systems.
                  *-gnu* | gnu*) gl_cv_func_truncl_ieee="guessing yes" ;;
+                                # Guess yes on musl systems.
+                 *-musl*)       gl_cv_func_truncl_ieee="guessing yes" ;;
                                 # Guess yes on native Windows.
                  mingw*)        gl_cv_func_truncl_ieee="guessing yes" ;;
                                 # If we don't know, assume the worst.
index 1278801593e9bb8d55cd953b9bbbf2478b801824..afdfa8e67509e04c7f46274fabe0d1dead9070f9 100644 (file)
@@ -1,4 +1,4 @@
-# serial 11
+# serial 12
 
 # Copyright (C) 2003, 2007, 2009-2019 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
@@ -70,6 +70,8 @@ main ()
        [case "$host_os" in
                          # Guess all is fine on glibc systems.
           *-gnu* | gnu*) gl_cv_func_tzset_clobber="guessing no" ;;
+                         # Guess all is fine on musl systems.
+          *-musl*)       gl_cv_func_tzset_clobber="guessing no" ;;
                          # Guess no on native Windows.
           mingw*)        gl_cv_func_tzset_clobber="guessing no" ;;
                          # If we don't know, assume the worst.
index ab8757bab448d6560dfae65b3ea220f128d35293..08baf332597c70e2473145ddaa27a5ca7b1fefd1 100644 (file)
@@ -1,4 +1,4 @@
-# ungetc.m4 serial 6
+# ungetc.m4 serial 7
 dnl Copyright (C) 2009-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -41,12 +41,16 @@ AC_DEFUN_ONCE([gl_FUNC_UNGETC_WORKS],
            remove ("conftest.tmp");])],
         [gl_cv_func_ungetc_works=yes], [gl_cv_func_ungetc_works=no],
         [case "$host_os" in
-                                       # Guess yes on glibc and bionic systems.
-           *-gnu* | gnu* | *-android*) gl_cv_func_ungetc_works="guessing yes" ;;
-                                       # Guess yes on native Windows.
-           mingw*)                     gl_cv_func_ungetc_works="guessing yes" ;;
-                                       # If we don't know, assume the worst.
-           *)                          gl_cv_func_ungetc_works="guessing no" ;;
+                          # Guess yes on glibc systems.
+           *-gnu* | gnu*) gl_cv_func_ungetc_works="guessing yes" ;;
+                          # Guess yes on musl systems.
+           *-musl*)       gl_cv_func_ungetc_works="guessing yes" ;;
+                          # Guess yes on bionic systems.
+           *-android*)    gl_cv_func_ungetc_works="guessing yes" ;;
+                          # Guess yes on native Windows.
+           mingw*)        gl_cv_func_ungetc_works="guessing yes" ;;
+                          # If we don't know, assume the worst.
+           *)             gl_cv_func_ungetc_works="guessing no" ;;
          esac
         ])
     ])
index 59605a85dd9582a0813df64b57a5df2ec6174b1c..4a6bff0bada0354a788e3c00480ac72b712ec404 100644 (file)
@@ -1,4 +1,4 @@
-# usleep.m4 serial 5
+# usleep.m4 serial 6
 dnl Copyright (C) 2009-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -31,6 +31,8 @@ AC_DEFUN([gl_FUNC_USLEEP],
         [case "$host_os" in
                           # Guess yes on glibc systems.
            *-gnu* | gnu*) gl_cv_func_usleep_works="guessing yes" ;;
+                          # Guess yes on musl systems.
+           *-musl*)       gl_cv_func_usleep_works="guessing yes" ;;
                           # Guess no on native Windows.
            mingw*)        gl_cv_func_usleep_works="guessing no" ;;
                           # If we don't know, assume the worst.
index 7209b6dd59923c8661aa837fa859f2d0e9c59130..5806d8fbbb644da20c2c1a6f017105477c757a44 100644 (file)
@@ -1,5 +1,5 @@
 # Detect some bugs in glibc's implementation of utimes.
-# serial 5
+# serial 6
 
 dnl Copyright (C) 2003-2005, 2009-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
@@ -143,9 +143,11 @@ main ()
        [gl_cv_func_working_utimes=yes],
        [gl_cv_func_working_utimes=no],
        [case "$host_os" in
-                  # Guess no on native Windows.
-          mingw*) gl_cv_func_working_utimes="guessing no" ;;
-          *)      gl_cv_func_working_utimes="guessing no" ;;
+                   # Guess yes on musl systems.
+          *-musl*) gl_cv_func_working_utimes="guessing yes" ;;
+                   # Guess no on native Windows.
+          mingw*)  gl_cv_func_working_utimes="guessing no" ;;
+          *)       gl_cv_func_working_utimes="guessing no" ;;
         esac
        ])
     ])
index baa20029492951df5f4059db360017719d0c3e7d..3952fd27b929cbae7843a54064621005883c4965 100644 (file)
@@ -1,4 +1,4 @@
-# wcwidth.m4 serial 27
+# wcwidth.m4 serial 28
 dnl Copyright (C) 2006-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -98,9 +98,13 @@ int main ()
           [
 changequote(,)dnl
            case "$host_os" in
-                                        # Guess yes on glibc and AIX 7 systems.
-             *-gnu* | gnu* | aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";;
-             *)                         gl_cv_func_wcwidth_works="guessing no";;
+                            # Guess yes on glibc systems.
+             *-gnu* | gnu*) gl_cv_func_wcwidth_works="guessing yes";;
+                            # Guess yes on musl systems.
+             *-musl*)       gl_cv_func_wcwidth_works="guessing yes";;
+                            # Guess yes on AIX 7 systems.
+             aix[7-9]*)     gl_cv_func_wcwidth_works="guessing yes";;
+             *)             gl_cv_func_wcwidth_works="guessing no";;
            esac
 changequote([,])dnl
           ])