Re[4]: [Gc] Compilation fails on Mac OS X (#4)
Ivan Maidanski
ivmai at mail.ru
Mon Sep 19 23:25:12 PDT 2011
Hi Petter,
I have autoconf-2.68 (automake 1.11.1) on cygwin:
/usr/share/autoconf/m4sugar/m4sh.m4:
# _AS_BOURNE_COMPATIBLE
# ---------------------
# This is the part of AS_BOURNE_COMPATIBLE which has to be repeated inside
# each instance.
m4_define([_AS_BOURNE_COMPATIBLE],
[AS_IF([test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1],
[emulate sh
NULLCMD=:
[#] Pre-4.2 versions of Zsh do word splitting on ${1+"$[@]"}, which
# is contrary to our usage. Disable this feature.
alias -g '${1+"$[@]"}'='"$[@]"'
setopt NO_GLOB_SUBST],
[AS_CASE([`(set -o) 2>/dev/null`], [*posix*], [set -o posix])])
])
PS. If you think this is caused by a malfunctioning autotools then we don't need to workaround it (as we still distribute auto-generated files in the tarball).
Regards.
19 09 2011, 20:58 Petter Urkedal <urkedal at nbi.dk>:
> On 2011-09-19, Ivan Maidanski wrote:
> > Hi Jurrien,
> >
> > This is a known problem (see end of TODO file). For now, you can run autoreconf successfully on Linux.
> >
> > Petter -
> > Could you look at this problem (not really urgent as works at least on Linux)? (could this be a bug in the script?)
>
> The AS_IF macro should be defined in
> ${datadir}/autoconf/m4suger/m4sh.m4
> It is part of the Autoconf package, so it should not depend on OS. It's
> a portability thing, so it would be ironic except for the fact that
> the portability is optimised for distributions, where autogenerated
> files are included. If we can't fix it, I can replace the macros with
> plain "if" statements, since we're already using plenty of them.
> However, it would be good to understand why aclocal does not find the
> macro.
>
> > 19 09 2011, 11:37 Jurriën Stutterheim <reply+i-1630875-6ee0c7d42195d52bc113cc90a1c3f84ed9682072 at reply.github.com>:
> > > I've been trying to compile the latest version, but I've been getting errors in the configuring process:
> > >
> > > configure.ac:507: the top level
> > > configure.ac:99: error: possibly undefined macro: AC_MSG_ERROR
> > > If this token and others are legitimate, please use m4_pattern_allow.
> > > See the Autoconf documentation.
> > > configure.ac:738: error: possibly undefined macro: AS_IF
> > > autoreconf: /usr/local/bin/autoconf failed with exit status: 1
> > >
> > > λ bdwgc → λ git master → autoreconf --version
> > > autoreconf (GNU Autoconf) 2.68
>
> Is your autoconf/aclocal also 2.68? This version is the same as mine,
> so I think something else must be wrong. Can you locate m4sh.m4 and
> verify that it defines AS_IF? Is is located in a path seen by aclocal?
> In my case it's located at /usr/share/autoconf/m4sugar/m4sh.m4. On OS
> X, it's probably elsewhere, but I guess it should be under the same
> prefix as the aclocal command.
>
More information about the Gc
mailing list