diff options
author | Jim Meyering <jim@meyering.net> | 2000-04-13 08:15:01 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-04-13 08:15:01 +0000 |
commit | 12ec89c0e3a57c88e9f6b2b0c4aa06531a470699 (patch) | |
tree | a241ae89195879c995d5a254202b258f481a5ab1 /m4/jm-macros.m4 | |
parent | 6157486144d65f0b769b5f92ebd5bfc10f045ace (diff) | |
download | coreutils-12ec89c0e3a57c88e9f6b2b0c4aa06531a470699.tar.xz |
(jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new AH_VERBATIM
to insert required #ifndef into config.h.in.
Suggestion from Akim Demaille.
Diffstat (limited to 'm4/jm-macros.m4')
-rw-r--r-- | m4/jm-macros.m4 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/m4/jm-macros.m4 b/m4/jm-macros.m4 index 317ea28c8..63319cd84 100644 --- a/m4/jm-macros.m4 +++ b/m4/jm-macros.m4 @@ -1,4 +1,4 @@ -#serial 14 +#serial 15 dnl Misc type-related macros for fileutils, sh-utils, textutils. @@ -195,9 +195,13 @@ AC_DEFUN(jm_MACROS, # This macro must be invoked before any tests that run the compiler. AC_DEFUN(jm_CHECK_ALL_TYPES, [ + # Emit this code into config.h.in. + # The ifndef is to avoid redefinition warnings. + AH_VERBATIM([_GNU_SOURCE], [#ifndef _GNU_SOURCE +# undef _GNU_SOURCE +#endif]) + # Enable GNU extensions. - # Define this here, not in acconfig's @TOP@ section, since definitions - # in the latter don't make it into the configure-time tests. AC_DEFINE([_GNU_SOURCE], 1, [Enable GNU extensions on systems that have them.]) |