Neil Jerram <[EMAIL PROTECTED]> writes:

> [EMAIL PROTECTED] (Ludovic Courtès) writes:
>
>> Hi,
>>
>> Neil Jerram <[EMAIL PROTECTED]> writes:
>>
>>> The patch below cures this, but is it correct?
>>
>> No, because M4 macro `gl_EARLY' requires `AC_GNU_SOURCE', which in turn
>> defines `_GNU_SOURCE' when available.
>>
>> My `config.h' here contains this:
>>
>>   /* Enable GNU extensions on systems that have them.  */
>>   #ifndef _GNU_SOURCE
>>   # define _GNU_SOURCE 1
>>   #endif
>>
>> If yours doesn't, I suspect you have to run "autoheader && ./configure"
>> again (or similar).
>
> I tried that, but still have no mention of _GNU_SOURCE in my config.h.
>
> I also did a `find-grep-dired' for gl_EARLY in /usr/share/autoconf and
> /usr/share/automake-1.10: no occurrences found at all.
>
> Where is gl_EARLY supposed to be defined?  Once I know that, I can
> dig deeper about what's not working in my system.

Inevitably, immediately after sending, I think of something
else... :-)

I've found gl_EARLY now in the Guile source, in m4/gnulib-comp.m4.
But my definition doesn't require AC_GNU_SOURCE:

AC_DEFUN([gl_EARLY],
[
  m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
  m4_pattern_allow([^gl_ES$])dnl a valid locale name
  m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
  m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
  AC_REQUIRE([AC_PROG_RANLIB])
])

gnulib-comp.m4 says it's generated by gnulib-tool, so is the problem
that I don't have a sufficiently up to date version of gnulib-tool?
Mine is:

[EMAIL PROTECTED]:~$ gnulib-tool --version
/usr/bin/gnulib-tool (GNU gnulib) 2006-11-29
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Bruno Haible and Simon Josefsson

Regards,
        Neil



_______________________________________________
Bug-guile mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-guile

Reply via email to