diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 15:27:12 (GMT) |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 15:27:12 (GMT) |
commit | 5be04ec2ceb1df77afbca4fcbf9e92a712612d6f (patch) | |
tree | 2b2e1c71dffae827c8e45cd4cccc375093d03486 /gl/m4/getaddrinfo.m4 | |
parent | 6d1d1dac32841d5ca6ee51bb09b30a6c604b17e2 (diff) | |
download | monitoring-plugins-5be04ec2ceb1df77afbca4fcbf9e92a712612d6f.tar.gz |
Sync with the latest Gnulib code (d4ec02b3cc)refs/pull/2037/head
Diffstat (limited to 'gl/m4/getaddrinfo.m4')
-rw-r--r-- | gl/m4/getaddrinfo.m4 | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gl/m4/getaddrinfo.m4 b/gl/m4/getaddrinfo.m4 index 15f09ff..8e20917 100644 --- a/gl/m4/getaddrinfo.m4 +++ b/gl/m4/getaddrinfo.m4 | |||
@@ -1,5 +1,6 @@ | |||
1 | # getaddrinfo.m4 serial 34 | 1 | # getaddrinfo.m4 |
2 | dnl Copyright (C) 2004-2023 Free Software Foundation, Inc. | 2 | # serial 35 |
3 | dnl Copyright (C) 2004-2024 Free Software Foundation, Inc. | ||
3 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
4 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
5 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
@@ -41,7 +42,7 @@ AC_DEFUN([gl_GETADDRINFO], | |||
41 | AC_CACHE_CHECK([for getaddrinfo in ws2tcpip.h and -lws2_32], | 42 | AC_CACHE_CHECK([for getaddrinfo in ws2tcpip.h and -lws2_32], |
42 | gl_cv_w32_getaddrinfo, [ | 43 | gl_cv_w32_getaddrinfo, [ |
43 | gl_cv_w32_getaddrinfo=no | 44 | gl_cv_w32_getaddrinfo=no |
44 | am_save_LIBS="$LIBS" | 45 | gl_saved_LIBS="$LIBS" |
45 | LIBS="$LIBS -lws2_32" | 46 | LIBS="$LIBS -lws2_32" |
46 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[ | 47 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[ |
47 | #ifdef HAVE_WS2TCPIP_H | 48 | #ifdef HAVE_WS2TCPIP_H |
@@ -49,7 +50,7 @@ AC_DEFUN([gl_GETADDRINFO], | |||
49 | #endif | 50 | #endif |
50 | #include <stddef.h> | 51 | #include <stddef.h> |
51 | ]], [[getaddrinfo(NULL, NULL, NULL, NULL);]])], [gl_cv_w32_getaddrinfo=yes]) | 52 | ]], [[getaddrinfo(NULL, NULL, NULL, NULL);]])], [gl_cv_w32_getaddrinfo=yes]) |
52 | LIBS="$am_save_LIBS" | 53 | LIBS="$gl_saved_LIBS" |
53 | ]) | 54 | ]) |
54 | if test "$gl_cv_w32_getaddrinfo" = "yes"; then | 55 | if test "$gl_cv_w32_getaddrinfo" = "yes"; then |
55 | GETADDRINFO_LIB="-lws2_32" | 56 | GETADDRINFO_LIB="-lws2_32" |