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: Dr. David Kirkby
Subject: Re: Why is this perl checking code not working for me?
Date: Sat, 08 Aug 2009 12:01:53 +0100
User-agent: Thunderbird 2.0.0.19 (X11/20090218)

Russ Allbery wrote:
"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.



It's still not working for me, though the error message is different this time.



checking how to run the C preprocessor... gcc -E
checking for perl... /usr/local/bin/perl
checking for Perl version 5.8.0 or later... ./configure: line 4686: syntax error near unexpected token `fi'
./configure: line 4686: `fi'


Here's the relevant bit of the configure script, with line 4688 marked by a string of x's

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
"configure" 6622 lines, 190079 characters
fi   xxxxxxxxxxxxxx Line 4686


{ $as_echo "$as_me:$LINENO: checking for Perl version 5.8.0 or later" >&5
$as_echo_n "checking for Perl version 5.8.0 or later... " >&6; }
if test "${ax_cv_prog_perl_version+set}" = set; then
  $as_echo_n "(cached) " >&6
else

fi
{ $as_echo "$as_me:$LINENO: result: $ax_cv_prog_perl_version" >&5
$as_echo "$ax_cv_prog_perl_version" >&6; }


{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if test "${ac_cv_path_SED+set}" = set; then
  $as_echo_n "(cached) " >&6
else





reply via email to

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