summaryrefslogtreecommitdiff
path: root/lang/cim/patches/patch-aa
blob: 4f1fd8abe1931dee30d1723dbef6dc52e17e128a (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
$NetBSD: patch-aa,v 1.3 2006/04/04 16:53:59 jlam Exp $

--- configure.orig	1999-11-05 16:07:44.000000000 -0500
+++ configure
@@ -3279,14 +3279,16 @@ EOF
 
 
 
+test -z "$libtool_path" || libtool_path="./libtool"
+
 echo $ac_n "checking grepping libtool to find wl_flag""... $ac_c" 1>&6
 echo "configure:3284: checking grepping libtool to find wl_flag" >&5
 if eval "test \"`echo '$''{'cim_cv_wl_flag'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   
-eval `grep wl= libtool`
-cim_cv_wl_flag=$pic_flag
+eval `grep ^wl= $libtool_path`
+cim_cv_wl_flag=$wl
 
 fi
 
@@ -3303,7 +3305,7 @@ if eval "test \"`echo '$''{'cim_cv_link_
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   
-eval `grep link_static_flag libtool`
+eval `grep ^link_static_flag= $libtool_path`
 cim_cv_link_static_flag=$link_static_flag
 
 fi
@@ -3321,7 +3323,7 @@ if eval "test \"`echo '$''{'cim_cv_pic_f
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   
-eval `grep pic_flag libtool`
+eval `grep ^pic_flag= $libtool_path`
 cim_cv_pic_flag=$pic_flag
 
 fi