summaryrefslogtreecommitdiff
path: root/lang/eperl/files/patch-ab
blob: cda2fca32bcf162cd1a5102d02b9609d247cddf1 (plain) (blame)
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
45
46
47
48
49
50
$FreeBSD$

--- configure.orig	Sun Aug  2 16:48:40 1998
+++ configure	Wed Jan  2 14:14:55 2002
@@ -571,7 +571,7 @@
 if test "${with_perl+set}" = set; then
   withval="$with_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.*//'`
 
 else
   TMPFILE=/tmp/x.$$
@@ -600,7 +600,7 @@
 PATH_PERL=$perlprog
 echo "$ac_t""$perlprog v$perlvers" 1>&6
 case $perlvers in
-    5.003* | 5.004* | 5.005* | 5.006* )
+    5.003* | 5.004* | 5.005* | 5.006* | 5.6.* | 5.8.* )
         ;;
     * ) echo ""
         echo "Latest Perl found on your system is $perlvers,"
@@ -617,6 +617,8 @@
 	    perlvnum=`echo $perlvers | sed -e 's/\.//' -e 's/_//'` ;; 
     5.00[3-6] ) 
 	    perlvnum=`echo $perlvers | sed -e 's/\.//' -e 's/$/00/'` ;; 
+    5.[68].* ) 
+	    perlvnum=`echo $perlvers | sed -e 's/\.//' -e 's/\./0/' -e 's/$/00/'` ;; 
 	* ) 
 	    perlvnum=`echo $perlvers | sed -e 's/\.//' -e 's/_//'` ;; 
 esac
@@ -1028,7 +1030,7 @@
     CFLAGS="-Wall -g -ggdb3"
     LDFLAGS="-g -ggdb3"
 else
-    CFLAGS="-g"
+#    CFLAGS="-g"
     LDFLAGS="-g"
 fi
 x="enabled"
@@ -1039,7 +1041,7 @@
 
 
 else
-  CFLAGS=""
+#  CFLAGS=""
 LDFLAGS=""
 x=disabled
 debug=off