X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=acinclude.m4;h=307ce149a4344f3f5e373146cac3fefea7b5a08c;hb=5f4930cf00f1e88353b4e06baed71fb8c668cd16;hp=a3275a32afd4be6c3427deee8ef07b29b17258af;hpb=b8ba7ff221ccbdbb766463001180e28ca0d90ecb;p=pspp-builds.git diff --git a/acinclude.m4 b/acinclude.m4 index a3275a32..307ce149 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -34,6 +34,13 @@ AC_DEFUN([PSPP_PERL], if test "$PERL" != no && $PERL -e 'require 5.005_03;'; then :; else PSPP_REQUIRED_PREREQ([Perl 5.005_03 (or later)]) fi + + # The PSPP autobuilder appends a build number to the PSPP version number, + # e.g. "0.7.2-build40". But Perl won't parse version numbers that contain + # anything other than digits and periods, so "-build" causes an error. So we + # define $(VERSION_FOR_PERL) that drops everything from the hyphen onward. + VERSION_FOR_PERL=`echo "$VERSION" | sed 's/-.*//'` + AC_SUBST([VERSION_FOR_PERL]) ]) dnl Check that libplot is available.