summaryrefslogtreecommitdiff
path: root/m4/socklen.m4
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2018-10-14 22:10:48 -0500
committerPaul Eggert <eggert@cs.ucla.edu>2018-10-14 22:12:46 -0500
commit6b8fd34c4ab1aa23b180440cdc8210900896bbf4 (patch)
tree21787b9f7ba030e501ff12c9c4259beab01b00e8 /m4/socklen.m4
parentaba7910e368f98790fdbaf5256c75da558d7b195 (diff)
downloademacs-6b8fd34c4ab1aa23b180440cdc8210900896bbf4.tar.gz
emacs-6b8fd34c4ab1aa23b180440cdc8210900896bbf4.tar.bz2
emacs-6b8fd34c4ab1aa23b180440cdc8210900896bbf4.zip
Update from Gnulib
This is minor refactoring that should not affect Emacs builds. It incorporates: 2018-10-12 Make better use of Autoconf * m4/environ.m4, m4/fsusage.m4, m4/manywarnings.m4, m4/socklen.m4: Copy from Gnulib.
Diffstat (limited to 'm4/socklen.m4')
-rw-r--r--m4/socklen.m415
1 files changed, 7 insertions, 8 deletions
diff --git a/m4/socklen.m4 b/m4/socklen.m4
index f2d996d0eb8..fa79b07b6e4 100644
--- a/m4/socklen.m4
+++ b/m4/socklen.m4
@@ -1,4 +1,4 @@
-# socklen.m4 serial 10
+# socklen.m4 serial 11
dnl Copyright (C) 2005-2007, 2009-2018 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -15,8 +15,8 @@ dnl So we have to test to find something that will work.
AC_DEFUN([gl_TYPE_SOCKLEN_T],
[AC_REQUIRE([gl_CHECK_SOCKET_HEADERS])dnl
AC_CHECK_TYPE([socklen_t], ,
- [AC_MSG_CHECKING([for socklen_t equivalent])
- AC_CACHE_VAL([gl_cv_socklen_t_equiv],
+ [AC_CACHE_CHECK([for socklen_t equivalent],
+ [gl_cv_socklen_t_equiv],
[# Systems have either "struct sockaddr *" or
# "void *" as the second argument to getpeername
gl_cv_socklen_t_equiv=
@@ -34,11 +34,10 @@ AC_DEFUN([gl_TYPE_SOCKLEN_T],
done
test "$gl_cv_socklen_t_equiv" != "" && break
done
- ])
- if test "$gl_cv_socklen_t_equiv" = ""; then
- AC_MSG_ERROR([Cannot find a type to use in place of socklen_t])
- fi
- AC_MSG_RESULT([$gl_cv_socklen_t_equiv])
+ if test "$gl_cv_socklen_t_equiv" = ""; then
+ AC_MSG_ERROR([Cannot find a type to use in place of socklen_t])
+ fi
+ ])
AC_DEFINE_UNQUOTED([socklen_t], [$gl_cv_socklen_t_equiv],
[type to use in place of socklen_t if not defined])],
[gl_SOCKET_HEADERS])])