8 # Put argv[0] into a global variable progname. On DOS-like systems,
9 # modify it so that it looks nice (no full path or .exe suffix).
11 # This .m4 file is needed allow this module to use glibc's
12 # program_invocation_name.
16 # Author: Lasse Collin
18 # This file has been put into the public domain.
19 # You can do whatever you want with this file.
22 AC_DEFUN_ONCE([TUKLIB_PROGNAME], [
23 AC_REQUIRE([TUKLIB_COMMON])
24 AC_CHECK_DECL([program_invocation_name], [AC_DEFINE(
25 [HAVE_PROGRAM_INVOCATION_NAME], [1],
26 [Define to 1 if `program_invocation_name' is declared in <errno.h>.])],
27 [], [#include <errno.h>])