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/error.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/error.m4')
-rw-r--r-- | gl/m4/error.m4 | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/gl/m4/error.m4 b/gl/m4/error.m4 index 8cc75df..273b636 100644 --- a/gl/m4/error.m4 +++ b/gl/m4/error.m4 | |||
@@ -1,22 +1,12 @@ | |||
1 | #serial 15 | 1 | # error.m4 |
2 | 2 | # serial 16 | |
3 | # Copyright (C) 1996-1998, 2001-2004, 2009-2023 Free Software Foundation, Inc. | 3 | dnl Copyright (C) 1996-1998, 2001-2004, 2009-2024 Free Software Foundation, Inc. |
4 | # | 4 | dnl This file is free software; the Free Software Foundation |
5 | # This file is free software; the Free Software Foundation | 5 | dnl gives unlimited permission to copy and/or distribute it, |
6 | # gives unlimited permission to copy and/or distribute it, | 6 | dnl with or without modifications, as long as this notice is preserved. |
7 | # with or without modifications, as long as this notice is preserved. | ||
8 | 7 | ||
9 | AC_DEFUN([gl_ERROR], | 8 | AC_DEFUN([gl_ERROR], |
10 | [ | 9 | [ |
11 | dnl We don't use AC_FUNC_ERROR_AT_LINE any more, because it is no longer | ||
12 | dnl maintained in Autoconf and because it invokes AC_LIBOBJ. | ||
13 | AC_CACHE_CHECK([for error_at_line], [ac_cv_lib_error_at_line], | ||
14 | [AC_LINK_IFELSE( | ||
15 | [AC_LANG_PROGRAM( | ||
16 | [[#include <error.h>]], | ||
17 | [[error_at_line (0, 0, "", 0, "an error occurred");]])], | ||
18 | [ac_cv_lib_error_at_line=yes], | ||
19 | [ac_cv_lib_error_at_line=no])]) | ||
20 | ]) | 10 | ]) |
21 | 11 | ||
22 | # Prerequisites of lib/error.c. | 12 | # Prerequisites of lib/error.c. |