diff options
author | David Shaw <[email protected]> | 2002-03-05 04:48:29 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2002-03-05 04:48:29 +0000 |
commit | bbf4faae1a0b20a13ef34de3c77c0050c42aee40 (patch) | |
tree | 03438b01f27520ae7c052e11a4b4ee5bb26ec54d | |
parent | variable type tweak for RISC OS (from Stefan) (diff) | |
download | gnupg-bbf4faae1a0b20a13ef34de3c77c0050c42aee40.tar.gz gnupg-bbf4faae1a0b20a13ef34de3c77c0050c42aee40.zip |
Alwayus define _GNU_SOURCE. Since this is always defined in config.h, the
various autoconf tests should be tested with it enabled. This also works
around a compiler warning caused by a minor header bug in glibc 2.1 that
causes fseeko to be defined when building gpg, but not when tested for in
configure
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | configure.ac | 10 |
2 files changed, 9 insertions, 9 deletions
@@ -1,3 +1,11 @@ +2002-03-04 David Shaw <[email protected]> + + * Add a AC_DEFINE(_GNU_SOURCE). Since this is always defined in + config.h, the various autoconf tests should be tested with it + enabled. This also works around a compiler warning caused by a + minor header bug in glibc 2.1 that causes fseeko to be defined + when building gpg, but not when tested for in configure. + 2002-03-03 Werner Koch <[email protected]> Release 1.0.6d snapshot. diff --git a/configure.ac b/configure.ac index 3f31fee82..1d7a7b752 100644 --- a/configure.ac +++ b/configure.ac @@ -42,6 +42,7 @@ AC_SUBST(PACKAGE) AC_SUBST(VERSION) AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of this package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version of this package]) +AC_DEFINE(_GNU_SOURCE,1,[Some tests rely on this (stpcpy) and it should be used for new programs anyway]) AC_PROG_AWK @@ -145,13 +146,6 @@ AC_ARG_WITH(capabilities, AC_MSG_RESULT($use_capabilities) - -AH_TOP([ -/* need this, because some autoconf tests rely on this (e.g. stpcpy) - * and it should be used for new programs */ -#define _GNU_SOURCE 1 -]) - AH_BOTTOM([ #if !(defined(HAVE_FORK) && defined(HAVE_PIPE) && defined(HAVE_WAITPID)) #define EXEC_TEMPFILE_ONLY @@ -161,8 +155,6 @@ AH_BOTTOM([ ]) - - AM_MAINTAINER_MODE dnl Checks for programs. |