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
51
52
53
54
55
56
57
|
$NetBSD: patch-ab,v 1.1 2016/03/03 13:23:22 wiz Exp $
--- Configure.orig 2008-01-16 15:57:54.000000000 +0000
+++ Configure
@@ -36,7 +36,7 @@ cd $config_dir
. ./get_PATH
# We might need the following :
echo Looking for some tools first ...
-list='ld zcat gzip ranlib perl emacs'
+list='ld zcat ranlib emacs'
pathspace=`echo $PATH | sed -e "s/$dir_sep/ /g" | sed -e 's,\\\\,/,g'`
for file in $list; do
@@ -49,6 +49,7 @@ for file in $list; do
esac
done
if test -z "$zcat" -a -n "$gzip"; then zcat="$gzip -dc"; fi
+perl=${PERL5}
####################### CONFIGURE - ARCHITECTURE ############################
. ./get_archos # arch, osname
@@ -101,14 +102,14 @@ fi
. ./get_static # static
# For dynamic linking, before and after installing
runpath="$libdir"
-LDDYN="-L$libdir -lpari"
+LDDYN="-Wl,-R$libdir -L$libdir -lpari"
# get_modld needs $includedir from get_install, static, and LDDYN
. ./get_modld # $_modld_list
# Which copy, SHELL ?
case "$osname" in
os2) ln_s=cp; make_sh=sh;;
- *) ln_s="ln -s"; make_sh="/bin/sh";;
+ *) ln_s="ln -sf"; make_sh="/bin/sh";;
esac
####################### CONFIGURE - CLEANUP #################################
rm -f gmon.out # created by Configure -pg
@@ -172,14 +173,14 @@ if test "$objdir" != "$mkobjdir"; then
fi
case $ans in
-y) if (cd $objdir; make gp); then
+y) if (cd $objdir; ${MAKE} gp); then
echo $n "Shall we install the files where they belong (y/n)? $c"
dflt=n; rep='y n'; . $config_dir/myread
case $ans in
- y) make install;;
- n) echo "Ok. Type \"${cdobjdir}make install\" when you are ready";;
+ y) ${MAKE} install;;
+ n) echo "Ok. Type \"${cdobjdir}${MAKE} install\" when you are ready";;
esac
fi;;
-n) echo "Ok. Type \"${cdobjdir}make install\" when you are ready";;
+n) echo "Ok. Type \"${cdobjdir}${MAKE} install\" when you are ready";;
esac
echo 'Bye !'
|