Hello,
On Sun, Aug 07, 2005 at 01:21:04PM -0400, Sam Steingold wrote:
> > Maybe this trick is not working reliably; aclocal was not designed for
> > this... Could you post the ad hoc created configure.in?
so it seems the problem is in regex.m4, which comes from gnulib.
Thus I cc this post to bug-gnulib.
The macro gl_INCLUDED_REGEX contains this:
m4_syscmd([test -f '$1'])
ifelse(m4_sysval, 0,
[ ...
gl_PREREQ_REGEX
])
Macro gl_PREREQ_REGEX, which calls AC_CHECK_HEADERS_ONCE, is
expanded only if the current directory contains the file "regex.c"
(the argument to gl_INCLUDED_REGEX).
For Sam: so the magic workaround should be to touch the file "regex.c"
in the same directory where you have your artificial configure.in.
For gnulib people:
Why is the above trick necessary? Why should the macro expansion
depend on the presence of the file?
Second: just above the quoted code:
test -n "$1" || AC_MSG_ERROR([missing argument])
yes, the macro gl_INCLUDED_REGEX requires a parameter, but why it should
be reported in runtime? (Yes, the parameter might be a shell variable,
but is this done often?)
Third, the name regex.m4 conflicts with a file in Automake. This can
cause problems with "aclocal --include". Could we perhaps rename it?
Fourth, I noticed a typo; could you please apply the attached patch?
Fifth: when my "minmax" patch is resolved (Bruno ;-), shouldn't
something similar go to onceonly*.m4, too?
Have a nice day,
Stepan Kasal
2005-08-10 Stepan Kasal <[EMAIL PROTECTED]>
* onceonly_2_57.m4: Really require Autoconf 2.57.
Index: m4/onceonly_2_57.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/onceonly_2_57.m4,v
retrieving revision 1.5
diff -u -r1.5 onceonly_2_57.m4
--- m4/onceonly_2_57.m4 18 Mar 2003 10:08:34 -0000 1.5
+++ m4/onceonly_2_57.m4 10 Aug 2005 09:02:40 -0000
@@ -1,5 +1,5 @@
-# onceonly_2_57.m4 serial 3
-dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
+# onceonly_2_57.m4 serial 4
+dnl Copyright (C) 2002-2003, 2005 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -27,7 +27,7 @@
dnl size reduction is ca. 9%.
dnl Autoconf version 2.57 or newer is recommended.
-AC_PREREQ(2.54)
+AC_PREREQ(2.57)
# AC_CHECK_HEADERS_ONCE(HEADER1 HEADER2 ...) is a once-only variant of
# AC_CHECK_HEADERS(HEADER1 HEADER2 ...).
_______________________________________________
bug-gnulib mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnulib