autoconf
[Top][All Lists]
Advanced

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

Re: Why is this perl checking code not working for me?


From: Russ Allbery
Subject: Re: Why is this perl checking code not working for me?
Date: Sat, 08 Aug 2009 00:40:43 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)

"Dr. David Kirkby" <address@hidden> writes:
> Russ Allbery wrote:
>> "Dr. David Kirkby" <address@hidden> writes:
>>> Russ Allbery wrote:

>>>> That macro is using a questionable technique to accomplish this (parsing
>>>> the output of perl -v and then relying on AX_COMPARE_VERSION).  Here's a
>>>> much simpler macro that accomplishes the same thing:
>>>>
>>>> AC_DEFUN([AX_PROG_PERL_VERSION],
>>>> [AC_CACHE_CHECK([for Perl version $1 or later], [ax_cv_prog_perl_version],
>>>>     [AS_IF(["$PERL" -e 'require $1;' >/dev/null 2>&1], [$1], [$2])])])

Oh, doh, I'm sorry.  This should be:

AC_DEFUN([AX_PROG_PERL_VERSION],
[AC_CACHE_CHECK([for Perl version $1 or later], [ax_cv_prog_perl_version],
    [AS_IF(["$PERL" -e 'require $1;' >/dev/null 2>&1], [$2], [$3])])])

Stupid typo indeed.

Thanks for the configure script.  That made it obvious.

-- 
Russ Allbery (address@hidden)             <http://www.eyrie.org/~eagle/>




reply via email to

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