1 # SPDX-License-Identifier: 0BSD
3 #############################################################################
11 # Put argv[0] into a global variable progname. On DOS-like systems,
12 # modify it so that it looks nice (no full path or .exe suffix).
14 # This .m4 file is needed allow this module to use glibc's
15 # program_invocation_name.
17 #############################################################################
19 # Author: Lasse Collin
21 #############################################################################
23 AC_DEFUN_ONCE([TUKLIB_PROGNAME], [
24 AC_REQUIRE([TUKLIB_COMMON])
25 AC_CHECK_DECL([program_invocation_name], [AC_DEFINE(
26 [HAVE_PROGRAM_INVOCATION_NAME], [1],
27 [Define to 1 if 'program_invocation_name' is declared in <errno.h>.])],
28 [], [#include <errno.h>])