> Be careful here: Bourne-Shell is brain-dead in expansion semantics and tr and
> test -s are unportable things.
ranlib.sh has been using -s all the time.
Anyway, next try:
Index: config
===================================================================
RCS file: /e/openssl/cvs/openssl/config,v
retrieving revision 1.4
diff -u -r1.4 config
--- config 1999/03/27 13:03:37 1.4
+++ config 1999/03/30 12:28:35
@@ -332,10 +332,29 @@
OUT="$CC"
fi
+if [ ".$PERL" = . ] ; then
+ for i in . `echo $PATH | sed 's/:/ /g'`; do
+ if [ -f "$i/perl5" ] ; then
+ PERL="$i/perl5"
+ break;
+ fi;
+ done
+fi
+
+if [ ".$PERL" = . ] ; then
+ for i in . `echo $PATH | sed 's/:/ /g'`; do
+ if [ -f "$i/perl" ] ; then
+ PERL="$i/perl"
+ break;
+ fi;
+ done
+fi
+
# run Configure to check to see if we need to specify the
# compiler for the platform ... in which case we add it on
# the end ... otherwise we leave it off
-perl ./Configure 2>&1 | grep "$OUT-$CC" > /dev/null
+
+$PERL ./Configure 2>&1 | grep "$OUT-$CC" > /dev/null
if [ $? = "0" ]; then
OUT="$OUT-$CC"
fi
@@ -348,9 +367,9 @@
echo Configuring for $OUT
if [ "$TEST" = "true" ]; then
- echo ./Configure $OUT $options
+ echo $PERL ./Configure $OUT $options
else
- perl ./Configure $OUT $options
+ $PERL ./Configure $OUT $options
fi
)
Index: util/ranlib.sh
===================================================================
RCS file: /e/openssl/cvs/openssl/util/ranlib.sh,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 ranlib.sh
--- util/ranlib.sh 1998/12/21 10:52:46 1.1.1.1
+++ util/ranlib.sh 1999/03/30 12:32:40
@@ -3,12 +3,12 @@
cwd=`pwd`
cd /tmp
-if [ -s /bin/ranlib ] ; then
- RL=/bin/ranlib
-else if [ -s /usr/bin/ranlib ] ; then
- RL=/usr/bin/ranlib
-fi
-fi
+for i in . `echo $PATH | sed 's/:/ /g'` ; do
+ if [ -f "$i/ranlib" ] ; then
+ RL="$i/ranlib"
+ break;
+ fi
+done
if [ "x$RL" != "x" ]
then
@@ -21,3 +21,4 @@
;;
esac
fi
+
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]