Commit 2e772ba7 2e772ba745e0338189c7972ecb4c749c6db17ec3 by Sergey Poznyakoff

Declare HAVE_DECL_PROGRAM_INVOCATION_NAME, otherwise argp-help.c can bail out at line 1693

1 parent f86cee31
...@@ -352,6 +352,13 @@ AC_CHECK_MEMBERS([struct tm.tm_zone, struct tm.tm_gmtoff, struct tm.tm_isdst], ...@@ -352,6 +352,13 @@ AC_CHECK_MEMBERS([struct tm.tm_zone, struct tm.tm_gmtoff, struct tm.tm_isdst],
352 352
353 dnl Check for working functions 353 dnl Check for working functions
354 354
355 # Dirty hack: make sure HAVE_DECL_PROGRAM_INVOCATION_NAME is defined
356 # This must be done before gl_ARGP, which attempts
357 # an AC_CHECK_DECLS([program_invocation_name), because autoconf machinery
358 # gives preference to the first definition, in spite of what the comment
359 # at autoconf/status.m4:574 sais
360 AC_DEFINE([HAVE_DECL_PROGRAM_INVOCATION_NAME], 1)
361
355 dnl Escape defuns that force automake to add their arguments 362 dnl Escape defuns that force automake to add their arguments
356 dnl to LIBOBJS. 363 dnl to LIBOBJS.
357 dnl All dependencies has been handled by gnulib-sync. 364 dnl All dependencies has been handled by gnulib-sync.
......