diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-06 08:24:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-06 08:24:23 (GMT) |
commit | 9b4df9e50837cc837e113053ba12ee6967d5e6c2 (patch) | |
tree | bf989e771579f835bcb49c074637a8e224bcecbc /gl/m4/getprogname.m4 | |
parent | 94150ae347beb25ac369d5773834ceef7f3736d3 (diff) | |
parent | 5be04ec2ceb1df77afbca4fcbf9e92a712612d6f (diff) | |
download | monitoring-plugins-9b4df9e50837cc837e113053ba12ee6967d5e6c2.tar.gz |
Merge pull request #2037 from RincewindsHat/update/gnulib-1.0
Sync with the latest Gnulib code (d4ec02b3cc) (gnulib v1.0)
Diffstat (limited to 'gl/m4/getprogname.m4')
-rw-r--r-- | gl/m4/getprogname.m4 | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/gl/m4/getprogname.m4 b/gl/m4/getprogname.m4 index b67c527..b24f448 100644 --- a/gl/m4/getprogname.m4 +++ b/gl/m4/getprogname.m4 | |||
@@ -1,16 +1,33 @@ | |||
1 | # getprogname.m4 - check for getprogname or replacements for it | 1 | # getprogname.m4 |
2 | # serial 8 | ||
3 | dnl Copyright (C) 2016-2024 Free Software Foundation, Inc. | ||
4 | dnl This file is free software; the Free Software Foundation | ||
5 | dnl gives unlimited permission to copy and/or distribute it, | ||
6 | dnl with or without modifications, as long as this notice is preserved. | ||
2 | 7 | ||
3 | # Copyright (C) 2016-2023 Free Software Foundation, Inc. | 8 | # Check for getprogname or replacements for it |
4 | # This file is free software; the Free Software Foundation | ||
5 | # gives unlimited permission to copy and/or distribute it, | ||
6 | # with or without modifications, as long as this notice is preserved. | ||
7 | |||
8 | # serial 4 | ||
9 | 9 | ||
10 | AC_DEFUN([gl_FUNC_GETPROGNAME], | 10 | AC_DEFUN([gl_FUNC_GETPROGNAME], |
11 | [ | 11 | [ |
12 | AC_CHECK_FUNCS_ONCE([getprogname getexecname]) | 12 | AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) |
13 | AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) | ||
14 | gl_CHECK_FUNCS_ANDROID([getprogname], [[#include <stdlib.h>]]) | ||
15 | if test $ac_cv_func_getprogname = no; then | ||
16 | HAVE_GETPROGNAME=0 | ||
17 | case "$gl_cv_onwards_func_getprogname" in | ||
18 | future*) REPLACE_GETPROGNAME=1 ;; | ||
19 | esac | ||
20 | fi | ||
21 | AC_CHECK_DECLS([program_invocation_name], | ||
22 | [], | ||
23 | [HAVE_DECL_PROGRAM_INVOCATION_NAME=0], | ||
24 | [[#include <errno.h>]]) | ||
25 | ]) | ||
26 | |||
27 | AC_DEFUN([gl_PREREQ_GETPROGNAME], | ||
28 | [ | ||
13 | AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) | 29 | AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) |
30 | AC_CHECK_FUNCS_ONCE([getexecname]) | ||
14 | ac_found=0 | 31 | ac_found=0 |
15 | AC_CHECK_DECLS([program_invocation_name], [ac_found=1], [], | 32 | AC_CHECK_DECLS([program_invocation_name], [ac_found=1], [], |
16 | [#include <errno.h>]) | 33 | [#include <errno.h>]) |