summaryrefslogtreecommitdiff
path: root/textproc/cmigemo/patches/patch-configure
blob: 95942eaa3a1d1ba1244177a7c37f666c7abc5871 (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-configure,v 1.2 2020/04/28 04:17:29 rillig Exp $

* prefer user select tool via envrinment variable to auto detect one. 

--- configure.orig	2011-02-27 10:45:40.000000000 +0000
+++ configure
@@ -29,6 +29,7 @@ do
 done
 
 # Check HTTP access tool
+if test -z "$PROGRAM_HTTP"; then
 if CHECK_COMMAND curl ; then
   PROGRAM_HTTP="curl -O"
 elif CHECK_COMMAND wget ; then
@@ -39,8 +40,10 @@ else
   echo "ERROR: Require one of HTTP access tools (curl, wget or fetch)."
   exit 1
 fi
+fi
 
 # Check encoding filter
+if test -z "$PROGRAM_ENCODEFILTER"; then
 if CHECK_COMMAND qkc ; then
   PROGRAM_ENCODEFILTER="qkc -q -u"
 elif CHECK_COMMAND nkf ; then
@@ -49,8 +52,10 @@ else
   echo "ERROR: Require qkc or nkf installed for encode filter."
   exit 1
 fi
+fi
 
 # Check install program
+if test -z "$PROGRAM_INSTALL"; then
 if test -x /usr/ucb/install ; then
   PROGRAM_INSTALL="/usr/ucb/install"
 elif test -x /usr/bin/install ; then
@@ -60,6 +65,7 @@ else
   echo "WARNING: Can't find install program."
   echo "         But set it \"/usr/bin/install\".  So need to make sure."
 fi
+fi
 
 # for Debug
 if test 0 != 0 ; then