]> Savannah Git Hosting - gnulib.git/commitdiff
Add cross-compilation guesses for MidnightBSD.
authorBruno Haible <bruno@clisp.org>
Sun, 7 Feb 2021 20:33:13 +0000 (21:33 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 7 Feb 2021 20:33:13 +0000 (21:33 +0100)
* m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, use the
result from native compilation.
* m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
* m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Likewise.
* m4/mprotect.m4 (gl_FUNC_MPROTECT_WORKS): Likewise.
* m4/posix_spawn.m4 (gl_POSIX_SPAWN_SECURE): Likewise.
* m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F,
gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
* m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Likewise.
* m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Use predetermined
result on MidnightBSD.

ChangeLog
m4/malloc.m4
m4/mbrtoc32.m4
m4/mprotect.m4
m4/posix_spawn.m4
m4/printf.m4
m4/realloc.m4
m4/setlocale_null.m4
m4/strfmon_l.m4

index 78a88887db9e6577ffdf6191effda231f97bcf3e..1a9c80d7c1c16c2bfd6abe80e6c72ecd08497657 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+2021-02-07  Bruno Haible  <bruno@clisp.org>
+
+       Add cross-compilation guesses for MidnightBSD.
+       * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, use the
+       result from native compilation.
+       * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
+       * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Likewise.
+       * m4/mprotect.m4 (gl_FUNC_MPROTECT_WORKS): Likewise.
+       * m4/posix_spawn.m4 (gl_POSIX_SPAWN_SECURE): Likewise.
+       * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
+       gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F,
+       gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
+       gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
+       * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Likewise.
+       * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Use predetermined
+       result on MidnightBSD.
+
 2021-02-07  Bruno Haible  <bruno@clisp.org>
 
        threadlib: Add support for MidnightBSD.
index 514d19a90fa6f4e8d91316ae90ddd1038b1c80f7..32ab42ec096c26893d9705cd0144a0f5271c4476 100644 (file)
@@ -1,4 +1,4 @@
-# malloc.m4 serial 21
+# malloc.m4 serial 22
 dnl Copyright (C) 2007, 2009-2021 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -24,7 +24,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* | *-musl* | freebsd* | netbsd* | openbsd* \
+          *-gnu* | gnu* | *-musl* | freebsd* | midnightbsd* | netbsd* | openbsd* \
           | hpux* | solaris* | cygwin* | mingw*)
             ac_cv_func_malloc_0_nonnull="guessing yes" ;;
           # If we don't know, obey --enable-cross-guesses.
index 56f09c6d269df126e80ddbae0c2fac2677878270..ba0397b522f24f9338f3a756a0b5926981d8a896 100644 (file)
@@ -1,4 +1,4 @@
-# mbrtoc32.m4 serial 6
+# mbrtoc32.m4 serial 7
 dnl Copyright (C) 2014-2021 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -158,7 +158,7 @@ AC_DEFUN([gl_MBRTOC32_SANITYCHECK],
 changequote(,)dnl
         case "$host_os" in
           # Guess no on FreeBSD, Solaris, native Windows.
-          freebsd* | solaris* | mingw*)
+          freebsd* | midnightbsd* | solaris* | mingw*)
             gl_cv_func_mbrtoc32_sanitycheck="guessing no"
             ;;
           # Guess yes otherwise.
index 13e27e2fd24c794be237568b6e42eaa987826786..9a0bdf98916b8425947e7f348b041612d6d105c0 100644 (file)
@@ -1,4 +1,4 @@
-# mprotect.m4 serial 1
+# mprotect.m4 serial 2
 dnl Copyright (C) 1993-2021 Free Software Foundation, Inc.
 dnl This file is free software, distributed under the terms of the GNU
 dnl General Public License as published by the Free Software Foundation;
@@ -141,7 +141,7 @@ AC_DEFUN([gl_FUNC_MPROTECT_WORKS],
            dnl Guess yes on Linux systems, glibc systems,
            dnl macOS, BSD systems, AIX, HP-UX, IRIX, Solaris, Cygwin.
            linux-* | linux | *-gnu* | gnu* | \
-           darwin* | freebsd* | dragonfly* | netbsd* | openbsd* | \
+           darwin* | freebsd* | dragonfly* | midnightbsd* | netbsd* | openbsd* | \
            aix* | hpux* | irix* | solaris* | cygwin*)
              gl_cv_func_mprotect_works="guessing yes" ;;
            mingw*)
index da8713038c046287b6313d3c83c6ab017fe8d75b..84b7a13f2aabf595e9a99584180eedc855da4b7e 100644 (file)
@@ -1,4 +1,4 @@
-# posix_spawn.m4 serial 20
+# posix_spawn.m4 serial 21
 dnl Copyright (C) 2008-2021 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -525,7 +525,8 @@ AC_DEFUN([gl_POSIX_SPAWN_SECURE],
           *-gnu* | *-musl* | netbsd*)
             gl_cv_func_posix_spawnp_secure_exec="guessing yes" ;;
           # Guess no on GNU/Hurd, macOS, FreeBSD, OpenBSD, AIX, Solaris, Cygwin.
-          gnu* | darwin* | freebsd* | dragonfly* | openbsd* | aix* | solaris* | cygwin*)
+          gnu* | darwin* | freebsd* | dragonfly* | midnightbsd* | openbsd* | \
+          aix* | solaris* | cygwin*)
             gl_cv_func_posix_spawnp_secure_exec="guessing no" ;;
           # If we don't know, obey --enable-cross-guesses.
           *)
index c8e74e22cc722eabd298dd6ef935d4883cd5a6e8..d8b352104633b0a1ae230ac1cc53bea1f396023e 100644 (file)
@@ -1,4 +1,4 @@
-# printf.m4 serial 71
+# printf.m4 serial 72
 dnl Copyright (C) 2003, 2007-2021 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -67,6 +67,7 @@ changequote(,)dnl
                                  # 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";;
+           midnightbsd*)         gl_cv_func_printf_sizes_c99="guessing yes";;
                                  # Guess yes on Mac OS X >= 10.3.
            darwin[1-6].*)        gl_cv_func_printf_sizes_c99="guessing no";;
            darwin*)              gl_cv_func_printf_sizes_c99="guessing yes";;
@@ -247,6 +248,7 @@ changequote(,)dnl
                                  # Guess yes on FreeBSD >= 6.
            freebsd[1-5].*)       gl_cv_func_printf_infinite="guessing no";;
            freebsd* | kfreebsd*) gl_cv_func_printf_infinite="guessing yes";;
+           midnightbsd*)         gl_cv_func_printf_infinite="guessing yes";;
                                  # Guess yes on Mac OS X >= 10.3.
            darwin[1-6].*)        gl_cv_func_printf_infinite="guessing no";;
            darwin*)              gl_cv_func_printf_infinite="guessing yes";;
@@ -469,6 +471,7 @@ changequote(,)dnl
                                          # 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";;
+                   midnightbsd*)         gl_cv_func_printf_infinite_long_double="guessing yes";;
                                          # Guess yes on HP-UX >= 11.
                    hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite_long_double="guessing no";;
                    hpux*)                gl_cv_func_printf_infinite_long_double="guessing yes";;
@@ -644,6 +647,7 @@ changequote(,)dnl
                                  # 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";;
+           midnightbsd*)         gl_cv_func_printf_directive_f="guessing yes";;
                                  # Guess yes on Mac OS X >= 10.3.
            darwin[1-6].*)        gl_cv_func_printf_directive_f="guessing no";;
            darwin*)              gl_cv_func_printf_directive_f="guessing yes";;
@@ -1239,6 +1243,7 @@ changequote(,)dnl
                                  # 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";;
+           midnightbsd*)         gl_cv_func_snprintf_truncation_c99="guessing yes";;
                                  # Guess yes on Mac OS X >= 10.3.
            darwin[1-6].*)        gl_cv_func_snprintf_truncation_c99="guessing no";;
            darwin*)              gl_cv_func_snprintf_truncation_c99="guessing yes";;
@@ -1343,6 +1348,7 @@ changequote(,)dnl
                                  # 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";;
+           midnightbsd*)         gl_cv_func_snprintf_retval_c99="guessing yes";;
                                  # Guess yes on Mac OS X >= 10.3.
            darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
            darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
@@ -1445,6 +1451,7 @@ changequote(,)dnl
                                  # 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";;
+           midnightbsd*)         gl_cv_func_snprintf_directive_n="guessing yes";;
                                  # Guess yes on Mac OS X >= 10.3.
            darwin[1-6].*)        gl_cv_func_snprintf_directive_n="guessing no";;
            darwin*)              gl_cv_func_snprintf_directive_n="guessing yes";;
@@ -1601,6 +1608,7 @@ changequote(,)dnl
                                  # 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";;
+           midnightbsd*)         gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
                                  # Guess yes on Mac OS X >= 10.3.
            darwin[1-6].*)        gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
            darwin*)              gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
index 6f4461d017caffb47f0498e839e3b5e56dba9ece..a80a02a6bc7d1e6b247dd74d9b8aaf847cb12fe4 100644 (file)
@@ -1,4 +1,4 @@
-# realloc.m4 serial 19
+# realloc.m4 serial 20
 dnl Copyright (C) 2007, 2009-2021 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -24,7 +24,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* | *-musl* | freebsd* | netbsd* | openbsd* \
+          *-gnu* | gnu* | *-musl* | freebsd* | midnightbsd* | netbsd* | openbsd* \
           | hpux* | solaris* | cygwin* | mingw*)
             ac_cv_func_realloc_0_nonnull="guessing yes" ;;
           # If we don't know, obey --enable-cross-guesses.
index c486ca8405513bad3647fd7e77e1f9f71e976ad5..2c958ed7720cba93c330e42d997e2de3301d3f8d 100644 (file)
@@ -1,4 +1,4 @@
-# setlocale_null.m4 serial 4
+# setlocale_null.m4 serial 5
 dnl Copyright (C) 2019-2021 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -14,7 +14,7 @@ AC_DEFUN([gl_FUNC_SETLOCALE_NULL],
     [gl_cv_func_setlocale_null_all_mtsafe],
     [case "$host_os" in
        # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin.
-       *-musl* | darwin* | freebsd* | netbsd* | openbsd* | aix* | haiku* | cygwin*)
+       *-musl* | darwin* | freebsd* | midnightbsd* | netbsd* | openbsd* | aix* | haiku* | cygwin*)
          gl_cv_func_setlocale_null_all_mtsafe=no ;;
        # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
        *-gnu* | gnu* | hpux* | irix* | solaris* | mingw*)
@@ -48,7 +48,7 @@ AC_DEFUN([gl_FUNC_SETLOCALE_NULL],
        openbsd* | aix*)
          gl_cv_func_setlocale_null_one_mtsafe=no ;;
        # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
-       *-gnu* | gnu* | *-musl* | darwin* | freebsd* | netbsd* | hpux* | irix* | solaris* | haiku* | cygwin* | mingw*)
+       *-gnu* | gnu* | *-musl* | darwin* | freebsd* | midnightbsd* | netbsd* | hpux* | irix* | solaris* | haiku* | cygwin* | mingw*)
          gl_cv_func_setlocale_null_one_mtsafe=yes ;;
        # If we don't know, obey --enable-cross-guesses.
        *)
index 32a78f0b1f1ecf7a06552a71e06b48849a757dfe..e79ff9776d44ced3b2bb03d6aaddde306279958d 100644 (file)
@@ -1,4 +1,4 @@
-# strfmon_l.m4 serial 2
+# strfmon_l.m4 serial 3
 dnl Copyright (C) 2017-2021 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -40,7 +40,7 @@ AC_DEFUN([gl_FUNC_STRFMON_L],
              [gl_cv_strfmon_l_works="guessing yes"])
            ;;
          # Guess no on FreeBSD and Cygwin.
-         freebsd* | cygwin*) gl_cv_strfmon_l_works="guessing no" ;;
+         freebsd* | midnightbsd* | cygwin*) gl_cv_strfmon_l_works="guessing no" ;;
          # Guess yes otherwise.
          *) gl_cv_strfmon_l_works="guessing yes" ;;
        esac