Here are two patches for Cygwin32 builds against current snapshots. The first patch
changes the test scripts to use diff versus cmp (which seems to work much better in a
CR/LF environment). The second patch allows the config script to correctly identify
and pass the required arguments to the Configure perl script.
All diffs were made with "diff -Naur" format against the 05 December 0.9.6-stable
snapshot, and have been tested on WinNT 4.0 x86 (with Cygwin), RedHat 6.2 & 7.1 x86
and SPARC Solaris 2.6 & 7 with success.
Michael Kobar [EMAIL PROTECTED]
Software Engineer 860.434.4018 voice
Lymeware Corporation 801.383.9021 fax
www.lymeware.com
diff -Naur openssl-0.9.6-stable-SNAP-20011126/test/tcrl
openssl-0.9.6-stable-SNAP-20011126_lwc/test/tcrl
--- openssl-0.9.6-stable-SNAP-20011126/test/tcrl Sat Jan 2 14:01:40 1999
+++ openssl-0.9.6-stable-SNAP-20011126_lwc/test/tcrl Tue Nov 27 11:23:09 2001
@@ -54,27 +54,27 @@
$cmd -in f.p -inform p -outform p >ff.p3
if [ $? != 0 ]; then exit 1; fi
-cmp fff.p f.p
+diff fff.p f.p
if [ $? != 0 ]; then exit 1; fi
-cmp fff.p ff.p1
+diff fff.p ff.p1
if [ $? != 0 ]; then exit 1; fi
-#cmp fff.p ff.p2
+#diff fff.p ff.p2
#if [ $? != 0 ]; then exit 1; fi
-cmp fff.p ff.p3
+diff fff.p ff.p3
if [ $? != 0 ]; then exit 1; fi
-#cmp f.t ff.t1
+#diff f.t ff.t1
#if [ $? != 0 ]; then exit 1; fi
-#cmp f.t ff.t2
+#diff f.t ff.t2
#if [ $? != 0 ]; then exit 1; fi
-#cmp f.t ff.t3
+#diff f.t ff.t3
#if [ $? != 0 ]; then exit 1; fi
-cmp f.p ff.p1
+diff f.p ff.p1
if [ $? != 0 ]; then exit 1; fi
-#cmp f.p ff.p2
+#diff f.p ff.p2
#if [ $? != 0 ]; then exit 1; fi
-cmp f.p ff.p3
+diff f.p ff.p3
if [ $? != 0 ]; then exit 1; fi
/bin/rm -f f.* ff.* fff.*
diff -Naur openssl-0.9.6-stable-SNAP-20011126/test/testenc
openssl-0.9.6-stable-SNAP-20011126_lwc/test/testenc
--- openssl-0.9.6-stable-SNAP-20011126/test/testenc Sat Apr 10 22:49:35 1999
+++ openssl-0.9.6-stable-SNAP-20011126_lwc/test/testenc Tue Nov 27 11:08:52 2001
@@ -9,7 +9,7 @@
echo cat
$cmd enc < $test > $test.cipher
$cmd enc < $test.cipher >$test.clear
-cmp $test $test.clear
+diff $test $test.clear
if [ $? != 0 ]
then
exit 1
@@ -19,7 +19,7 @@
echo base64
$cmd enc -a -e < $test > $test.cipher
$cmd enc -a -d < $test.cipher >$test.clear
-cmp $test $test.clear
+diff $test $test.clear
if [ $? != 0 ]
then
exit 1
@@ -32,7 +32,7 @@
echo $i
$cmd $i -bufsize 113 -e -k test < $test > $test.$i.cipher
$cmd $i -bufsize 157 -d -k test < $test.$i.cipher >$test.$i.clear
- cmp $test $test.$i.clear
+ diff $test $test.$i.clear
if [ $? != 0 ]
then
exit 1
@@ -43,7 +43,7 @@
echo $i base64
$cmd $i -bufsize 113 -a -e -k test < $test > $test.$i.cipher
$cmd $i -bufsize 157 -a -d -k test < $test.$i.cipher >$test.$i.clear
- cmp $test $test.$i.clear
+ diff $test $test.$i.clear
if [ $? != 0 ]
then
exit 1
diff -Naur openssl-0.9.6-stable-SNAP-20011126/test/tpkcs7
openssl-0.9.6-stable-SNAP-20011126_lwc/test/tpkcs7
--- openssl-0.9.6-stable-SNAP-20011126/test/tpkcs7 Sat Jan 2 14:01:40 1999
+++ openssl-0.9.6-stable-SNAP-20011126_lwc/test/tpkcs7 Tue Nov 27 11:27:49 2001
@@ -35,16 +35,16 @@
$cmd -in f.p -inform p -outform p >ff.p3
if [ $? != 0 ]; then exit 1; fi
-cmp fff.p f.p
+diff fff.p f.p
if [ $? != 0 ]; then exit 1; fi
-cmp fff.p ff.p1
+diff fff.p ff.p1
if [ $? != 0 ]; then exit 1; fi
-cmp fff.p ff.p3
+diff fff.p ff.p3
if [ $? != 0 ]; then exit 1; fi
-cmp f.p ff.p1
+diff f.p ff.p1
if [ $? != 0 ]; then exit 1; fi
-cmp f.p ff.p3
+diff f.p ff.p3
if [ $? != 0 ]; then exit 1; fi
/bin/rm -f f.* ff.* fff.*
diff -Naur openssl-0.9.6-stable-SNAP-20011126/test/treq
openssl-0.9.6-stable-SNAP-20011126_lwc/test/treq
--- openssl-0.9.6-stable-SNAP-20011126/test/treq Mon Mar 13 14:24:39 2000
+++ openssl-0.9.6-stable-SNAP-20011126_lwc/test/treq Tue Nov 27 11:26:19 2001
@@ -59,27 +59,27 @@
$cmd -in f.p -inform p -outform p >ff.p3
if [ $? != 0 ]; then exit 1; fi
-cmp fff.p f.p
+diff fff.p f.p
if [ $? != 0 ]; then exit 1; fi
-cmp fff.p ff.p1
+diff fff.p ff.p1
if [ $? != 0 ]; then exit 1; fi
-#cmp fff.p ff.p2
+#diff fff.p ff.p2
#if [ $? != 0 ]; then exit 1; fi
-cmp fff.p ff.p3
+diff fff.p ff.p3
if [ $? != 0 ]; then exit 1; fi
-#cmp f.t ff.t1
+#diff f.t ff.t1
#if [ $? != 0 ]; then exit 1; fi
-#cmp f.t ff.t2
+#diff f.t ff.t2
#if [ $? != 0 ]; then exit 1; fi
-#cmp f.t ff.t3
+#diff f.t ff.t3
#if [ $? != 0 ]; then exit 1; fi
-cmp f.p ff.p1
+diff f.p ff.p1
if [ $? != 0 ]; then exit 1; fi
-#cmp f.p ff.p2
+#diff f.p ff.p2
#if [ $? != 0 ]; then exit 1; fi
-cmp f.p ff.p3
+diff f.p ff.p3
if [ $? != 0 ]; then exit 1; fi
/bin/rm -f f.* ff.* fff.*
diff -Naur openssl-0.9.6-stable-SNAP-20011126/test/trsa
openssl-0.9.6-stable-SNAP-20011126_lwc/test/trsa
--- openssl-0.9.6-stable-SNAP-20011126/test/trsa Mon Mar 13 15:31:46 2000
+++ openssl-0.9.6-stable-SNAP-20011126_lwc/test/trsa Tue Nov 27 11:21:04 2001
@@ -59,27 +59,27 @@
$cmd -in f.p -inform p -outform p >ff.p3
if [ $? != 0 ]; then exit 1; fi
-cmp fff.p f.p
+diff fff.p f.p
if [ $? != 0 ]; then exit 1; fi
-cmp fff.p ff.p1
+diff fff.p ff.p1
if [ $? != 0 ]; then exit 1; fi
-#cmp fff.p ff.p2
+#diff fff.p ff.p2
#if [ $? != 0 ]; then exit 1; fi
-cmp fff.p ff.p3
+diff fff.p ff.p3
if [ $? != 0 ]; then exit 1; fi
-#cmp f.t ff.t1
+#diff f.t ff.t1
#if [ $? != 0 ]; then exit 1; fi
-#cmp f.t ff.t2
+#diff f.t ff.t2
#if [ $? != 0 ]; then exit 1; fi
-#cmp f.t ff.t3
+#diff f.t ff.t3
#if [ $? != 0 ]; then exit 1; fi
-cmp f.p ff.p1
+diff f.p ff.p1
if [ $? != 0 ]; then exit 1; fi
-#cmp f.p ff.p2
+#diff f.p ff.p2
#if [ $? != 0 ]; then exit 1; fi
-cmp f.p ff.p3
+diff f.p ff.p3
if [ $? != 0 ]; then exit 1; fi
/bin/rm -f f.* ff.* fff.*
diff -Naur openssl-0.9.6-stable-SNAP-20011126/test/tsid
openssl-0.9.6-stable-SNAP-20011126_lwc/test/tsid
--- openssl-0.9.6-stable-SNAP-20011126/test/tsid Sat Jan 2 14:01:41 1999
+++ openssl-0.9.6-stable-SNAP-20011126_lwc/test/tsid Tue Nov 27 11:24:52 2001
@@ -54,27 +54,27 @@
$cmd -in f.p -inform p -outform p >ff.p3
if [ $? != 0 ]; then exit 1; fi
-cmp fff.p f.p
+diff fff.p f.p
if [ $? != 0 ]; then exit 1; fi
-cmp fff.p ff.p1
+diff fff.p ff.p1
if [ $? != 0 ]; then exit 1; fi
-#cmp fff.p ff.p2
+#diff fff.p ff.p2
#if [ $? != 0 ]; then exit 1; fi
-cmp fff.p ff.p3
+diff fff.p ff.p3
if [ $? != 0 ]; then exit 1; fi
-#cmp f.t ff.t1
+#diff f.t ff.t1
#if [ $? != 0 ]; then exit 1; fi
-#cmp f.t ff.t2
+#diff f.t ff.t2
#if [ $? != 0 ]; then exit 1; fi
-#cmp f.t ff.t3
+#diff f.t ff.t3
#if [ $? != 0 ]; then exit 1; fi
-cmp f.p ff.p1
+diff f.p ff.p1
if [ $? != 0 ]; then exit 1; fi
-#cmp f.p ff.p2
+#diff f.p ff.p2
#if [ $? != 0 ]; then exit 1; fi
-cmp f.p ff.p3
+diff f.p ff.p3
if [ $? != 0 ]; then exit 1; fi
/bin/rm -f f.* ff.* fff.*
diff -Naur openssl-0.9.6-stable-SNAP-20011126/test/tx509
openssl-0.9.6-stable-SNAP-20011126_lwc/test/tx509
--- openssl-0.9.6-stable-SNAP-20011126/test/tx509 Sat Jan 2 14:01:41 1999
+++ openssl-0.9.6-stable-SNAP-20011126_lwc/test/tx509 Tue Nov 27 11:17:49 2001
@@ -54,27 +54,27 @@
$cmd -in f.p -inform p -outform p >ff.p3
if [ $? != 0 ]; then exit 1; fi
-cmp fff.p f.p
+diff fff.p f.p
if [ $? != 0 ]; then exit 1; fi
-cmp fff.p ff.p1
+diff fff.p ff.p1
if [ $? != 0 ]; then exit 1; fi
-cmp fff.p ff.p2
+diff fff.p ff.p2
if [ $? != 0 ]; then exit 1; fi
-cmp fff.p ff.p3
+diff fff.p ff.p3
if [ $? != 0 ]; then exit 1; fi
-cmp f.n ff.n1
+diff f.n ff.n1
if [ $? != 0 ]; then exit 1; fi
-cmp f.n ff.n2
+diff f.n ff.n2
if [ $? != 0 ]; then exit 1; fi
-cmp f.n ff.n3
+diff f.n ff.n3
if [ $? != 0 ]; then exit 1; fi
-cmp f.p ff.p1
+diff f.p ff.p1
if [ $? != 0 ]; then exit 1; fi
-cmp f.p ff.p2
+diff f.p ff.p2
if [ $? != 0 ]; then exit 1; fi
-cmp f.p ff.p3
+diff f.p ff.p3
if [ $? != 0 ]; then exit 1; fi
/bin/rm -f f.* ff.* fff.*
diff -Naur openssl-0.9.6-stable-SNAP-20011205/config
openssl-0.9.6-stable-SNAP-20011205_lwc/config
--- openssl-0.9.6-stable-SNAP-20011205/config Fri Nov 30 05:01:12 2001
+++ openssl-0.9.6-stable-SNAP-20011205_lwc/config Thu Dec 6 12:58:17 2001
@@ -298,6 +298,10 @@
echo "mips-sony-newsos4"; exit 0;
;;
+ CYGWIN*)
+ echo "${MACHINE}-whatever-cygwin32"; exit 0
+ ;;
+
esac
#
@@ -556,6 +560,8 @@
# *-aix) OUT="aix-$CC" ;;
# *-dgux) OUT="dgux" ;;
mips-sony-newsos4) OUT="newsos4-gcc" ;;
+ *-*-cygwin32) OUT="CygWin32"
+ options="$options no-threads no-asm" ;;
*) OUT=`echo $GUESSOS | awk -F- '{print $3}'`;;
esac