bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] AC_PROG_MKDIR_P: don't workaround if not buggy


From: Eric Blake
Subject: Re: [PATCH] AC_PROG_MKDIR_P: don't workaround if not buggy
Date: Fri, 21 Dec 2012 09:02:02 -0500 (EST)

> > * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
> > Define only for Autoconf versions before 2.62.
> > (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
> > undocumented m4_PACKAGE_VERSION, for consistency with the
> > abovementioned change to AC_PROG_MKDIR_P.  This should suffice
> > since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
> > was introduced in 2.62.
> > ---
> 
> > +m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],[
> 
> I still need to test to make sure, but I'm thinking this WON'T work
> with 2.59.  m4_defn([undefined]) is fatal.

But that gives me an idea for a simpler solution that DOES work with 2.59:

dnl no need to replace in 2.62 or later, and AC_AUTOCONF_VERSION
dnl was introduced in 2.62; so use that as the witness
m4_ifndef([AC_AUTOCONF_VERSION],[...

-- 
Eric Blake   address@hidden    +1-919-301-3266
Libvirt virtualization library http://libvirt.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]