aboutsummaryrefslogtreecommitdiff
path: root/m4/tuklib_progname.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/tuklib_progname.m4')
-rw-r--r--m4/tuklib_progname.m45
1 files changed, 4 insertions, 1 deletions
diff --git a/m4/tuklib_progname.m4 b/m4/tuklib_progname.m4
index f3e158bd..2133e327 100644
--- a/m4/tuklib_progname.m4
+++ b/m4/tuklib_progname.m4
@@ -21,5 +21,8 @@
AC_DEFUN_ONCE([TUKLIB_PROGNAME], [
AC_REQUIRE([TUKLIB_COMMON])
-AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
+AC_CHECK_DECL([program_invocation_name], [AC_DEFINE(
+ [HAVE_PROGRAM_INVOCATION_NAME], [1],
+ [Define to 1 if PROGRAM_INVOCATION_NAME is declared in <errno.h>])],
+ [], [#include <errno.h>])
])dnl