X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fgnu-source.m4;h=d2f490b0d61bba52a82b23307e5ad0fa636c976d;hb=b2227080c74868dffbca68f4e88dec0906a03d96;hp=ad410d1f935e894ac5e565dad1cca2c2e78c8227;hpb=b7833083e25d0bcee850a0b56dac69e76d9fa659;p=gnulib.git diff --git a/m4/gnu-source.m4 b/m4/gnu-source.m4 index ad410d1f9..d2f490b0d 100644 --- a/m4/gnu-source.m4 +++ b/m4/gnu-source.m4 @@ -1,21 +1,21 @@ -#serial 1 +#serial 3 # Make sure _GNU_SOURCE is defined where necessary: as early as possible # for configure-time tests, as well as for every source file that includes # config.h. # From Jim Meyering. -AC_DEFUN(AC__GNU_SOURCE, +AC_DEFUN([AC__GNU_SOURCE], [ # Make sure that _GNU_SOURCE is defined for all subsequent # configure-time compile tests. # This definition must be emitted (into confdefs.h) before any # test that involves compilation. - AC_DEFINE(_GNU_SOURCE_KLUDGE, [1 + cat >>confdefs.h <<\EOF #ifndef _GNU_SOURCE # define _GNU_SOURCE -#endif], [This definition has a four-line value, the last three of which -ensure that _GNU_SOURCE is defined in confdefs.h.]) +#endif +EOF # Emit this code into config.h.in. # The ifndef is to avoid redefinition warnings.