"Dr. David Kirkby" <[email protected]> writes:
> It STILL does not work for me, though at least it is not a syntax error.
>
> checking for perl... /usr/local/bin/perl
> checking for Perl version 5.6.0 or later... no
> configure: error: Sorry, your version of perl is too old
> drkir...@smudge:[~/zzz-1.2.3] $ perl -v
>
> This is perl, v5.8.4 built for sun4-solaris-64int
> (with 31 registered patches, see perl -V for more detail)
>
> This is what I have in configure.ac
>
> minimum_perl_version="5.6.0"
> AC_PATH_PROG([PERL],[perl])
> AX_PROG_PERL_VERSION([$minimum_perl_version],[],[AC_MSG_ERROR([Sorry, your
> version of perl is too old]) ])
If you want to use a shell variable here, you need to modify the code to
use double quotes rather than single quotes.
[AS_IF(["$PERL" -e 'require $1;' >/dev/null 2>&1],
That would need to be "require $1;" instead. Also, the shell variable
would need to be exported.
It would be easier to not use shell variables.
--
Russ Allbery ([email protected]) <http://www.eyrie.org/~eagle/>
_______________________________________________
Autoconf mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/autoconf