summaryrefslogtreecommitdiff
blob: f110acd806da7c76049d1f8c63ffff090cdce00f (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
--- configure.orig	2008-12-26 23:59:40.779042906 -0600
+++ configure	2008-12-27 00:13:15.265256215 -0600
@@ -1012,20 +1012,25 @@
   if test "$ans" = "true"
   then
     DO_COMPRESSION=true
-    compress=
-    for i in lzma bzip2 gzip bzip tzip pack compress freeze yabba
-    do
-      eval F$i=missing
-      for j in $DEFPATH
-      do
-        if test -f $j/$i
-        then
-	  eval F$i=$j/$i
-	  if [ x$compress = x ]; then compress=$j/$i; fi
-	  break
-        fi
-      done
-    done
+	if [ x$COMPRESS != x ]; then
+		compress=$COMPRESS
+		echo $compress
+	else
+	    compress=
+	    for i in lzma bzip2 gzip bzip tzip pack compress freeze yabba
+	    do
+	      eval F$i=missing
+	      for j in $DEFPATH
+	      do
+	        if test -f $j/$i
+	        then
+		  eval F$i=$j/$i
+		  if [ x$compress = x ]; then compress=$j/$i; fi
+		  break
+	        fi
+	      done
+	    done
+	fi
 
     if [ x$default = x ]; then
       echo ""