> Cool ... but how does the flag get in there in the first place?
> Presumably Configure needs modifying?

Yup.

Index: CHANGES
===================================================================
RCS file: /e/openssl/cvs/openssl/CHANGES,v
retrieving revision 1.154
diff -u -r1.154 CHANGES
--- CHANGES     1999/03/29 17:50:11     1.154
+++ CHANGES     1999/03/30 17:56:18
@@ -5,6 +5,10 @@
 
  Changes between 0.9.2b and 0.9.3
 
+  *) New config option to avoid instructions that are illegal on the 80386.
+     The default code is faster, but requires at least a 486.
+        [Ulf M�ller]
+  
   *) Still more PKCS#12 integration. Add pkcs12 application to openssl
      application. Various cleanups and fixes.
      [Steve Henson]
Index: Configure
===================================================================
RCS file: /e/openssl/cvs/openssl/Configure,v
retrieving revision 1.31
diff -u -r1.31 Configure
--- Configure   1999/03/27 13:03:37     1.31
+++ Configure   1999/03/30 16:19:25
@@ -272,6 +272,7 @@
 my $md5_obj="";
 my $sha1_obj="";
 my $rmd160_obj="";
+my $processor="";
 
 if ($#ARGV < 0)
        {
@@ -286,6 +287,8 @@
        {
        if ($_ =~ /^no-asm$/)
                { $no_asm=1; }
+       elsif ($_ =~ /^386$/)
+               { $processor=386; }
        elsif ($_ =~ /^-/)
                {
                if ($_ =~ /^-[lL](.*)$/)
@@ -389,6 +392,7 @@
        s/^MD5_ASM_OBJ=.*$/MD5_ASM_OBJ= $md5_obj/;
        s/^SHA1_ASM_OBJ=.*$/SHA1_ASM_OBJ= $sha1_obj/;
        s/^RMD160_ASM_OBJ=.*$/RMD160_ASM_OBJ= $rmd160_obj/;
+       s/^PROCESSOR=.*/PROCESSOR= $processor/;
        print OUT $_."\n";
        }
 close(IN);
@@ -406,6 +410,7 @@
 print "MD5_OBJ_ASM   =$md5_obj\n";
 print "SHA1_OBJ_ASM  =$sha1_obj\n";
 print "RMD160_OBJ_ASM=$rmd160_obj\n";
+print "PROCESSOR     =$processor\n";
 
 my $des_ptr=0;
 my $des_risc1=0;
Index: INSTALL
===================================================================
RCS file: /e/openssl/cvs/openssl/INSTALL,v
retrieving revision 1.8
diff -u -r1.8 INSTALL
--- INSTALL     1999/03/22 15:36:37     1.8
+++ INSTALL     1999/03/30 17:55:09
@@ -23,9 +23,16 @@
 
  This will build and install OpenSSL in the default location, which is (for
  historical reasons) /usr/local/ssl. If you want to install it anywhere else,
- do this after running `sh config':
+ do this after running `./config':
 
   $ perl util/ssldir.pl /new/install/path
+
+ There are several options to ./config to customize the build:
+
+  -DRSAref  Build with RSADSI's RSAREF toolkit.
+  no-asm    Build with no assembler code.
+  386       Use the 80386 instruction set only (the default x86 code is
+            more efficient, but requires at least a 486).
 
  If anything goes wrong, follow the detailed instructions below. If your
  operating system is not (yet) supported by OpenSSL, see the section on
Index: Makefile.org
===================================================================
RCS file: /e/openssl/cvs/openssl/Makefile.org,v
retrieving revision 1.24
diff -u -r1.24 Makefile.org
--- Makefile.org        1999/03/28 23:17:13     1.24
+++ Makefile.org        1999/03/30 18:00:47
@@ -60,6 +60,10 @@
 #BN_ASM= asm/x86w16.o   # 16 bit code for Windows 3.1/DOS
 #BN_ASM= asm/x86w32.o   # 32 bit code for Windows 3.1
 
+# For x86 assembler: Set PROCESSOR to 386 if you want to support
+# the 80386.
+PROCESSOR=
+
 # Set DES_ENC to des_enc.o if you want to use the C version
 #There are 4 x86 assember options.
 DES_ENC= asm/dx86-out.o asm/yx86-out.o
@@ -163,14 +167,14 @@
        @for i in $(DIRS) ;\
        do \
        (cd $$i && echo "making all in $$i..." && \
-       $(MAKE) CC='${CC}' PLATFORM='${PLATFORM}' CFLAG='${CFLAG}' 
INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' 
BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' 
RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' 
MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' SDIRS='${SDIRS}' 
AR='${AR}' all ) || exit 1; \
+       $(MAKE) CC='${CC}' PLATFORM='${PLATFORM}' CFLAG='${CFLAG}' 
+INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' 
+BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' 
+RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' 
+MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' SDIRS='${SDIRS}' 
+AR='${AR}' PROCESSOR='$(PROCESSOR)' all ) || exit 1; \
        done;
 
 sub_all:
        @for i in $(DIRS) ;\
        do \
        (cd $$i && echo "making all in $$i..." && \
-       $(MAKE) CC='${CC}' PLATFORM='${PLATFORM}' CFLAG='${CFLAG}' SDIRS='$(SDIRS)' 
INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' 
BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' 
RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' 
MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' AR='${AR}' all ) || 
exit 1; \
+       $(MAKE) CC='${CC}' PLATFORM='${PLATFORM}' CFLAG='${CFLAG}' SDIRS='$(SDIRS)' 
+INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' 
+BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' 
+RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' 
+MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' AR='${AR}' 
+PROCESSOR='$(PROCESSOR)' all ) || exit 1; \
        done;
 
 Makefile.ssl: Makefile.org
Index: crypto/bf/Makefile.ssl
===================================================================
RCS file: /e/openssl/cvs/openssl/crypto/bf/Makefile.ssl,v
retrieving revision 1.6
diff -u -r1.6 Makefile.ssl
--- crypto/bf/Makefile.ssl      1999/03/22 12:21:21     1.6
+++ crypto/bf/Makefile.ssl      1999/03/30 17:59:39
@@ -64,7 +64,7 @@
        $(CPP) -DBSDI asm/bx86unix.cpp | sed 's/ :/:/' | as -o asm/bx86bsdi.o
 
 asm/bx86unix.cpp:
-       (cd asm; perl bf-586.pl cpp >bx86unix.cpp)
+       (cd asm; perl bf-586.pl cpp $(PROCESSOR) >bx86unix.cpp)
 
 files:
        perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
Index: crypto/cast/Makefile.ssl
===================================================================
RCS file: /e/openssl/cvs/openssl/crypto/cast/Makefile.ssl,v
retrieving revision 1.7
diff -u -r1.7 Makefile.ssl
--- crypto/cast/Makefile.ssl    1999/03/22 12:21:26     1.7
+++ crypto/cast/Makefile.ssl    1999/03/30 17:59:52
@@ -67,7 +67,7 @@
        $(CPP) -DBSDI asm/cx86unix.cpp | sed 's/ :/:/' | as -o asm/cx86bsdi.o
 
 asm/cx86unix.cpp: asm/cast-586.pl
-       (cd asm; perl cast-586.pl cpp >cx86unix.cpp)
+       (cd asm; perl cast-586.pl cpp $(PROCESSOR) >cx86unix.cpp)
 
 files:
        perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
Index: crypto/sha/Makefile.ssl
===================================================================
RCS file: /e/openssl/cvs/openssl/crypto/sha/Makefile.ssl,v
retrieving revision 1.6
diff -u -r1.6 Makefile.ssl
--- crypto/sha/Makefile.ssl     1999/03/22 12:21:54     1.6
+++ crypto/sha/Makefile.ssl     1999/03/30 18:00:10
@@ -61,7 +61,7 @@
        $(CPP) -DBSDI asm/sx86unix.cpp | sed 's/ :/:/' | as -o asm/sx86bsdi.o
 
 asm/sx86unix.cpp:
-       (cd asm; perl sha1-586.pl cpp >sx86unix.cpp)
+       (cd asm; perl sha1-586.pl cpp $(PROCESSOR) >sx86unix.cpp)
 
 files:
        perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to