* gettext-runtime/m4/intdiv0.m4 (gt_INTDIV0): Improve m4 quoting.
* gettext-runtime/m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Improve indentation.
* gettext-tools/m4/hostname.m4 (gt_PREREQ_HOSTNAME): Improve m4 quoting. Use
AC_CACHE_CHECK and AC_COMPILE_IFELSE.
* gettext-tools/m4/siginfo.m4 (gt_SIGINFO): Improve m4 quoting. Use
AC_COMPILE_IFELSE.
-# intdiv0.m4 serial 7 (gettext-0.20.2)
+# intdiv0.m4 serial 8 (gettext-0.21.1)
dnl Copyright (C) 2002, 2007-2008, 2010-2020 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_REQUIRE([AC_CANONICAL_HOST])dnl
AC_CACHE_CHECK([whether integer division by zero raises SIGFPE],
- gt_cv_int_divbyzero_sigfpe,
+ [gt_cv_int_divbyzero_sigfpe],
[
gt_cv_int_divbyzero_sigfpe=
changequote(,)dnl
fi
])
case "$gt_cv_int_divbyzero_sigfpe" in
- *yes) value=1;;
- *) value=0;;
+ *yes) value=1 ;;
+ *) value=0 ;;
esac
AC_DEFINE_UNQUOTED([INTDIV0_RAISES_SIGFPE], [$value],
[Define if integer division by zero raises signal SIGFPE.])
-# intl.m4 serial 44 (gettext-0.21)
+# intl.m4 serial 45 (gettext-0.21.1)
dnl Copyright (C) 1995-2014, 2016-2020 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
case $gt_cv_func_printf_posix in
*yes) HAVE_POSIX_PRINTF=1 ;;
- *) HAVE_POSIX_PRINTF=0 ;;
+ *) HAVE_POSIX_PRINTF=0 ;;
esac
AC_SUBST([HAVE_POSIX_PRINTF])
if test "$ac_cv_func_asprintf" = yes; then
-# printf-posix.m4 serial 6 (gettext-0.18.2)
-dnl Copyright (C) 2003, 2007, 2009-2019 Free Software Foundation, Inc.
+# printf-posix.m4 serial 7 (gettext-0.21.1)
+dnl Copyright (C) 2003, 2007, 2009-2020 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 with or without modifications, as long as this notice is preserved.
[
AC_REQUIRE([AC_PROG_CC])
AC_CACHE_CHECK([whether printf() supports POSIX/XSI format strings],
- gt_cv_func_printf_posix,
+ [gt_cv_func_printf_posix],
[
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
-# hostname.m4 serial 1 (gettext-0.11)
-dnl Copyright (C) 2001-2002 Free Software Foundation, Inc.
+# hostname.m4 serial 2 (gettext-0.21.1)
+dnl Copyright (C) 2001-2002, 2020 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 with or without modifications, as long as this notice is preserved.
# Prerequisites of the hostname.c program.
AC_DEFUN([gt_PREREQ_HOSTNAME],
[
- AC_CHECK_HEADERS(arpa/inet.h)
- AC_CHECK_FUNCS(gethostname gethostbyname inet_ntop)
+ AC_CHECK_HEADERS([arpa/inet.h])
+ AC_CHECK_FUNCS([gethostname gethostbyname inet_ntop])
- AC_MSG_CHECKING([for IPv6 sockets])
- AC_CACHE_VAL(gt_cv_socket_ipv6,[
- AC_TRY_COMPILE([
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>],
-[int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;],
- gt_cv_socket_ipv6=yes, gt_cv_socket_ipv6=no)
- ])
- AC_MSG_RESULT($gt_cv_socket_ipv6)
+ AC_CACHE_CHECK([for IPv6 sockets],
+ [gt_cv_socket_ipv6],
+ [AC_COMPILE_IFELSE(
+ [AC_LANG_PROGRAM([[
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+ ]],
+ [[int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;]])],
+ [gt_cv_socket_ipv6=yes],
+ [gt_cv_socket_ipv6=no])
+ ])
if test $gt_cv_socket_ipv6 = yes; then
- AC_DEFINE(HAVE_IPV6, 1, [Define if <sys/socket.h> defines AF_INET6.])
+ AC_DEFINE([HAVE_IPV6], [1], [Define if <sys/socket.h> defines AF_INET6.])
fi
])
-# siginfo.m4 serial 1 (gettext-0.11)
-dnl Copyright (C) 2001-2002 Free Software Foundation, Inc.
+# siginfo.m4 serial 2 (gettext-0.21.1)
+dnl Copyright (C) 2001-2002, 2020 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 with or without modifications, as long as this notice is preserved.
AC_DEFUN([gt_SIGINFO],
[
AC_CACHE_CHECK([for signal handlers with siginfo_t], gt_cv_siginfo_t,
- [AC_TRY_COMPILE([
-#include <signal.h>], [
-struct sigaction action;
-siginfo_t info;
-action.sa_flags = SA_SIGINFO;
-action.sa_sigaction = (void *) 0;
-], gt_cv_siginfo_t=yes, gt_cv_siginfo_t=no)])
+ [AC_COMPILE_IFELSE(
+ [AC_LANG_PROGRAM(
+ [[#include <signal.h>]],
+ [[struct sigaction action;
+ siginfo_t info;
+ action.sa_flags = SA_SIGINFO;
+ action.sa_sigaction = (void *) 0;
+ ]])],
+ [gt_cv_siginfo_t=yes],
+ [gt_cv_siginfo_t=no])])
if test $gt_cv_siginfo_t = yes; then
- AC_DEFINE(HAVE_SIGINFO, 1,
- [Define to 1 if <signal.h> defines the siginfo_t type,
- and struct sigaction has the sa_sigaction member and the SA_SIGINFO flag.])
+ AC_DEFINE([HAVE_SIGINFO], [1],
+ [Define to 1 if <signal.h> defines the siginfo_t type and
+ struct sigaction has the sa_sigaction member and the SA_SIGINFO flag.])
fi
])