+2019-03-23 Bruno Haible <bruno@clisp.org>
+
+ Clarify that cross-compilation guesses are guesses.
+ * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
+ prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
+ * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
+ prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
+ * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
+ cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
+ * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
+ gl_cv_glob_lists_symlinks.
+ * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
+ 'guessing ' to ac_cv_func_malloc_0_nonnull.
+ * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
+ 'guessing ' to ac_cv_func_realloc_0_nonnull.
+ * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
+ 'guessing ' to gl_cv_func_poll.
+ * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
+ compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
+ * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
+
2019-03-23 Bruno Haible <bruno@clisp.org>
strtold: Fix typo.
-# serial 30
+# serial 31
# Determine whether we need the chown wrapper.
dnl Copyright (C) 1997-2001, 2003-2005, 2007, 2009-2019 Free Software
]])],
[gl_cv_func_chown_follows_symlink=yes],
[gl_cv_func_chown_follows_symlink=no],
- [gl_cv_func_chown_follows_symlink=yes]
+ [gl_cv_func_chown_follows_symlink="guessing yes"]
)
]
)
- if test $gl_cv_func_chown_follows_symlink = no; then
- AC_DEFINE([CHOWN_MODIFIES_SYMLINK], [1],
- [Define if chown modifies symlinks.])
- fi
+ case "$gl_cv_func_chown_follows_symlink" in
+ *yes) ;;
+ *)
+ AC_DEFINE([CHOWN_MODIFIES_SYMLINK], [1],
+ [Define if chown modifies symlinks.])
+ ;;
+ esac
])
-# fchownat.m4 serial 3
+# fchownat.m4 serial 4
dnl Copyright (C) 2004-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,
]])],
[gl_cv_func_fchownat_nofollow_works=yes],
[gl_cv_func_fchownat_nofollow_works=no],
- [gl_cv_func_fchownat_nofollow_works=no])
+ [gl_cv_func_fchownat_nofollow_works="guessing no"])
])
- AS_IF([test $gl_cv_func_fchownat_nofollow_works = no], [$1], [$2])
+ AS_IF([test "$gl_cv_func_fchownat_nofollow_works" != yes], [$1], [$2])
])
# gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG([ACTION-IF-BUGGY[, ACTION-IF-NOT_BUGGY]])
-# serial 9
+# serial 10
# 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.
gl_cv_func_getcwd_abort_bug=yes
else
gl_cv_func_getcwd_abort_bug=no
- fi],
- [gl_cv_func_getcwd_abort_bug=yes])
+ fi
+ ],
+ [gl_cv_func_getcwd_abort_bug="guessing yes"])
])
- AS_IF([test $gl_cv_func_getcwd_abort_bug = yes], [$1], [$2])
+ case "$gl_cv_func_getcwd_abort_bug" in
+ *yes)
+ $1
+ ;;
+ *)
+ $2
+ ;;
+ esac
])
-# glob.m4 serial 21
+# glob.m4 serial 22
dnl Copyright (C) 2005-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,
]])],
[gl_cv_glob_lists_symlinks=yes],
[gl_cv_glob_lists_symlinks=no],
- [gl_cv_glob_lists_symlinks=no])
+ [gl_cv_glob_lists_symlinks="guessing no"])
fi
rm -f conf$$-globtest
])
- if test $gl_cv_glob_lists_symlinks = no; then
- REPLACE_GLOB=1
- fi
+ case "$gl_cv_glob_lists_symlinks" in
+ *yes) ;;
+ *) REPLACE_GLOB=1 ;;
+ esac
fi
fi
-# iconv_open-utf.m4 serial 1
+# iconv_open-utf.m4 serial 2
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,
dnl We know that GNU libiconv, GNU 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=no
+ gl_cv_func_iconv_supports_utf="guessing no"
if test $gl_func_iconv_gnu = yes; then
- gl_cv_func_iconv_supports_utf=yes
+ gl_cv_func_iconv_supports_utf="guessing yes"
else
changequote(,)dnl
case "$host_os" in
- solaris2.9 | solaris2.1[0-9]) gl_cv_func_iconv_supports_utf=yes ;;
+ solaris2.9 | solaris2.1[0-9])
+ gl_cv_func_iconv_supports_utf="guessing yes" ;;
esac
changequote([,])dnl
fi
-# iconv_open.m4 serial 14
+# iconv_open.m4 serial 15
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,
fi
m4_ifdef([gl_FUNC_ICONV_OPEN_UTF_SUPPORT], [
gl_FUNC_ICONV_OPEN_UTF_SUPPORT
- if test $gl_cv_func_iconv_supports_utf = no; then
- REPLACE_ICONV_UTF=1
- AC_DEFINE([REPLACE_ICONV_UTF], [1],
- [Define if the iconv() functions are enhanced to handle the UTF-{16,32}{BE,LE} encodings.])
- REPLACE_ICONV=1
- gl_REPLACE_ICONV_OPEN
- fi
+ case "$gl_cv_func_iconv_supports_utf" in
+ *yes) ;;
+ *)
+ REPLACE_ICONV_UTF=1
+ AC_DEFINE([REPLACE_ICONV_UTF], [1],
+ [Define if the iconv() functions are enhanced to handle the UTF-{16,32}{BE,LE} encodings.])
+ REPLACE_ICONV=1
+ gl_REPLACE_ICONV_OPEN
+ ;;
+ esac
])
fi
])
-# malloc.m4 serial 17
+# malloc.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,
# Guess yes on platforms where we know the result.
*-gnu* | gnu* | freebsd* | netbsd* | openbsd* \
| hpux* | solaris* | cygwin* | mingw*)
- ac_cv_func_malloc_0_nonnull=yes ;;
+ ac_cv_func_malloc_0_nonnull="guessing yes" ;;
# If we don't know, assume the worst.
- *) ac_cv_func_malloc_0_nonnull=no ;;
+ *) ac_cv_func_malloc_0_nonnull="guessing no" ;;
esac
])
])
- AS_IF([test $ac_cv_func_malloc_0_nonnull = yes], [$1], [$2])
+ case "$ac_cv_func_malloc_0_nonnull" in
+ *yes)
+ $1
+ ;;
+ *)
+ $2
+ ;;
+ esac
])# _AC_FUNC_MALLOC_IF
])
-# poll.m4 serial 18
+# poll.m4 serial 19
dnl Copyright (c) 2003, 2005-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,
#if (defined(__APPLE__) && defined(__MACH__)) || defined(_AIX)
This is MacOSX or AIX
#endif
-], [gl_cv_func_poll=no], [gl_cv_func_poll=yes])])])
- fi
- if test $gl_cv_func_poll != yes; then
- AC_CHECK_FUNC([poll], [ac_cv_func_poll=yes], [ac_cv_func_poll=no])
- if test $ac_cv_func_poll = no; then
- HAVE_POLL=0
- else
- REPLACE_POLL=1
- fi
+], [gl_cv_func_poll="guessing no"], [gl_cv_func_poll="guessing yes"])])])
fi
+ case "$gl_cv_func_poll" in
+ *yes) ;;
+ *)
+ AC_CHECK_FUNC([poll], [ac_cv_func_poll=yes], [ac_cv_func_poll=no])
+ if test $ac_cv_func_poll = no; then
+ HAVE_POLL=0
+ else
+ REPLACE_POLL=1
+ fi
+ ;;
+ esac
if test $HAVE_POLL = 0 || test $REPLACE_POLL = 1; then
:
else
-# realloc.m4 serial 15
+# realloc.m4 serial 16
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,
# Guess yes on platforms where we know the result.
*-gnu* | gnu* | freebsd* | netbsd* | openbsd* \
| hpux* | solaris* | cygwin* | mingw*)
- ac_cv_func_realloc_0_nonnull=yes ;;
+ ac_cv_func_realloc_0_nonnull="guessing yes" ;;
# If we don't know, assume the worst.
- *) ac_cv_func_realloc_0_nonnull=no ;;
+ *) ac_cv_func_realloc_0_nonnull="guessing no" ;;
esac
])
])
- AS_IF([test $ac_cv_func_realloc_0_nonnull = yes], [$1], [$2])
+ case "$ac_cv_func_realloc_0_nonnull" in
+ *yes)
+ $1
+ ;;
+ *)
+ $2
+ ;;
+ esac
])# AC_FUNC_REALLOC
])