autoconf
[Top][All Lists]
Advanced

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

Re: [CFT] Shell functionization patch (if you don't know what that means


From: Tom Browder
Subject: Re: [CFT] Shell functionization patch (if you don't know what that means, it's faster Autoconf and leaner configure scripts)
Date: Mon, 3 Nov 2008 04:57:12 -0600

On Thu, Oct 30, 2008 at 3:47 AM, Paolo Bonzini <address@hidden> wrote:
>
>>> Nothing prevents a configure script (written in sh) from using scraps of
>>> Perl.  Hopefully the script would check that Perl exists before actually
>>> using it.
>>
>> But is there a clean way without having to watch the m4 special
>> characters, etc., i.e., some kind of escape so we can change to Perl,
>> or ruby, or...?
>
> No.  But you can just use appropriate M4 quotes, and it won't be a
> problem as long as [] and () are balanced.
>
>> Do you know anything about the $PERL thing Paolo mentioned?
>
> It's nothing special!  Just do
>
> AC_PATH_PROG(PERL, perl)
>
> and $PERL will point to the absolute path of the Perl interpreter.
> That's what Bob meant by "hopefully the script would check that Perl
> exists before actually using it".

Thanks, Paolo, I think I can work it out now.

-Tom




reply via email to

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