GNU bug report logs - #14685
aclocal and AC_CONFIG_MACRO_DIR

Previous Next

Package: automake;

Reported by: Werner LEMBERG <wl <at> gnu.org>

Date: Fri, 21 Jun 2013 20:21:02 UTC

Severity: minor

Full log


Message #16 received at 14685 <at> debbugs.gnu.org (full text, mbox):

From: Stefano Lattarini <stefano.lattarini <at> gmail.com>
To: Werner LEMBERG <wl <at> gnu.org>
Cc: 14685 <at> debbugs.gnu.org
Subject: Re: bug#14685: aclocal and AC_CONFIG_MACRO_DIR
Date: Sat, 22 Jun 2013 10:05:06 +0200
On 06/22/2013 09:44 AM, Werner LEMBERG wrote:
> 
>> That's because AC_CONFIG_MACRO_DIR (provided by Autoconf) is only
>> meant to accept one directory as its argument.  For two or more
>> dirs, you should use AC_CONFIG_MACRO_DIRS instead (which BTW also
>> works if only one dir is given, so I'd suggest you to
>> unconditionally prefer it over AC_CONFIG_MACRO_DIR).
> 
> Well, AC_CONFIG_MACRO_DIRS is not in autoconf 2.69, and 2.70 is not
> released yet...  Ideally, automake provides this until 2.70 is out :-)
>
It does ;-)  Since Automake 1.13 in fact (barring unseen bugs).

>>>   aclocal: error: couldn't open directory 'gnulib/m4 m4':
>>>                   No such file or directory
>>>
>> ... I see this error message is definitely unclear;
> 
> I don't think so, the error message is just fine if the background is
> known.  However, I think it's a bad idea to make it a fatal error.  A
> warning is fully sufficient IMHO.
>
I disagree.  We definitely want to catch a potential user typo with
a hard error, rather than an easy to miss warning.

>> it could be improved to suggest you to use AC_CONFIG_MACRO_DIRS
>> whenever you have to or more m4 directories.
> 
> Yes.  If opening a directory fails, and the directory name contains a
> space, tell the user that AC_CONFIG_MACRO_DIR accepts one directory
> only.
>
Sine we never really supported directories with spaces in them (not in
AC_CONFIG_MACRO_DIR, nor in AC_CONFIG_AUX_DIR, nor in SUBDIRS, nor in
AC_CONFIG_FILES -- nowhere, basically), I'd rather raise the error
message whenever a whitespace is present in the AC_CONFIG_MACRO_DIR
argument, without checking for its existence.

> And if AC_CONFIG_MACRO_DIRS is available, suggest to use this
> macro instead.
>
Once you use Automake 1.13, that macro should be made automatically
available.  If you've find out a situation where that's not the case,
you've just found another Automake bug (in which case, please report
it separately).

Thanks,
  Stefano




This bug report was last modified 11 years and 361 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.