summaryrefslogtreecommitdiff
path: root/textproc/eperl/patches/patch-ab
blob: d42be0fdac986307191edcb8d69d064533f584a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
$NetBSD: patch-ab,v 1.1 2000/08/15 01:12:16 jlam Exp $

--- configure.in.orig	Wed Dec 31 03:22:16 1997
+++ configure.in	Sat Aug 12 04:26:23 2000
@@ -42,7 +42,7 @@
 AC_ARG_WITH(perl,dnl
 [  --with-perl=PATH        force the usage of a specific installed Perl],
 perlprog=$with_perl
-perlvers=`$perlprog -v | grep version | sed -e 's/.* version //' -e 's/ built.*//' -e 's/ with.*//'`
+perlvers=`$perlprog -v | grep "This is perl" | sed -e 's/.* version //' -e 's/.* v//' -e 's/ built.*//' -e 's/ with.*//'`
 ,
 TMPFILE=/tmp/x.$$
 rm -f $TMPFILE
@@ -53,7 +53,7 @@
          if test -f "$dir/$perl"; then
              if test -x "$dir/$perl"; then
                  perl="$dir/$perl"
-                 version=`$perl -v | grep version | sed -e 's/.* version //' -e 's/ built.*//' -e 's/ with.*//'`
+                 version=`$perl -v | grep "This is perl" | sed -e 's/.* version //' -e 's/.* v//' -e 's/ built.*//' -e 's/ with.*//'`
                  versionnum="`echo $version | sed -e 's/\.//g' -e 's/_//g'`"
                  versionnum=`expr $versionnum - $c`
                  echo "$versionnum $version $perl" >>$TMPFILE
@@ -69,7 +69,7 @@
 PATH_PERL=$perlprog
 AC_MSG_RESULT([$perlprog v$perlvers])
 case $perlvers in
-    5.003* | 5.004* | 5.005* | 5.006* )
+    5.003* | 5.004* | 5.005* | 5.006* | 5.[[1-9]]* )
         ;;
     * ) echo ""
         echo "Latest Perl found on your system is $perlvers,"
@@ -86,6 +86,12 @@
 	    perlvnum=`echo $perlvers | sed -e 's/\.//' -e 's/_//'` ;; 
     5.00[[3-6]] ) 
 	    perlvnum=`echo $perlvers | sed -e 's/\.//' -e 's/$/00/'` ;; 
+    5.[[1-9]].[[0-9]][[0-9]] )
+	    perlvnum=`echo $perlvers | sed -e 's/\./10/' -e 's/\.//'` ;;
+    5.[[1-9]].[[0-9]] )
+	    perlvnum=`echo $perlvers | sed -e 's/\./10/' -e 's/\./0/'` ;;
+    5.[[1-9]] )
+	    perlvnum=`echo $perlvers | sed -e 's/\./10/' -e 's/$/00/'` ;;
 	* ) 
 	    perlvnum=`echo $perlvers | sed -e 's/\.//' -e 's/_//'` ;; 
 esac