diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2006-01-20 16:26:03 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2006-01-20 16:26:03 +0000 |
commit | af489348ce6156107be1012f582a9b01ad370aa1 (patch) | |
tree | f7e960638dcd2fa82ef196c43ae19e5d77fef7cd /configure.ac | |
parent | 9ffaea716ed9cc5d7745eb149f0b704e6f7e9405 (diff) | |
download | mailutils-af489348ce6156107be1012f582a9b01ad370aa1.tar.gz mailutils-af489348ce6156107be1012f582a9b01ad370aa1.tar.bz2 |
Remove HAVE_DECL_PROGRAM_INVOCATION_NAME hack, newer argp does that itself
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/configure.ac b/configure.ac index abae2eb2e..608d1f41b 100644 --- a/configure.ac +++ b/configure.ac @@ -352,13 +352,6 @@ AC_CHECK_MEMBERS([struct tm.tm_zone, struct tm.tm_gmtoff, struct tm.tm_isdst], dnl Check for working functions -# Dirty hack: make sure HAVE_DECL_PROGRAM_INVOCATION_NAME is defined -# This must be done before gl_ARGP, which attempts -# an AC_CHECK_DECLS([program_invocation_name), because autoconf machinery -# gives preference to the first definition, in spite of what the comment -# at autoconf/status.m4:574 sais -AC_DEFINE([HAVE_DECL_PROGRAM_INVOCATION_NAME], 1) - dnl Escape defuns that force automake to add their arguments dnl to LIBOBJS. dnl All dependencies has been handled by gnulib-sync. @@ -442,40 +435,9 @@ dnl Check for libraries # The gnulib version fixes a number of bugs and provides new features, # so currently we force to use it. This may change when gnulib and glibc # are synchronized. -MU_LIBOBJ(pin) MU_HEADER(getopt.h,getopt_.h) MU_HEADER(argp.h) -AC_MSG_CHECKING(whether extern program_invocation_name is present) -AC_TRY_COMPILE([#include <argp.h> -#include <errno.h>], -[ program_invocation_name = "test"; ], -[AC_DEFINE(PROGRAM_INVOCATION_NAME_DECLARED,1, - [Define if program_invocation_name is declared in argp.h]) - AC_MSG_RESULT(yes)], -[AC_MSG_RESULT(no)]) - -AH_BOTTOM([ -#ifndef PROGRAM_INVOCATION_NAME_DECLARED -extern char *program_invocation_short_name; -extern char *program_invocation_name; -#endif]) - - -AC_MSG_CHECKING(whether program_invocation_name is declared) -AC_TRY_COMPILE([#include <argp.h> -#include <errno.h>], -[ -#ifndef PROGRAM_INVOCATION_NAME_DECLARED - extern char *program_invocation_name; -#endif - program_invocation_name = "test"; -], -[AC_DEFINE(HAVE_PROGRAM_INVOCATION_NAME,1, - [Define if the variable program_invocation_name exists]) - AC_MSG_RESULT(yes)], -[AC_MSG_RESULT(no)]) - AH_BOTTOM([ /* program_name is used by lib/error.c */ #define program_name program_invocation_name |