openssl: add missing configuration pieces for MIPS
authorAndrei Sedoi <bsnote@gmail.com>
Wed, 12 Jun 2013 15:47:10 +0000 (18:47 +0300)
committerBen Noordhuis <info@bnoordhuis.nl>
Thu, 13 Jun 2013 11:27:58 +0000 (13:27 +0200)
configure
deps/openssl/config/opensslconf.h

index 4747dd2..77add2b 100755 (executable)
--- a/configure
+++ b/configure
@@ -381,6 +381,7 @@ def host_arch_cc():
     '__x86_64__'  : 'x64',
     '__i386__'    : 'ia32',
     '__arm__'     : 'arm',
+    '__mips__'    : 'mips',
   }
 
   rtn = 'ia32' # default
@@ -402,6 +403,7 @@ def host_arch_win():
     'AMD64'  : 'x64',
     'x86'    : 'ia32',
     'arm'    : 'arm',
+    'mips'   : 'mips',
   }
 
   return matchup.get(arch, 'ia32')
index 9bf2369..5dd3d41 100644 (file)
   * - elder Alpha because it lacks byte load/store instructions;
   */
 # undef RC4_INT
-# if defined(__arm__)
+# if defined(__arm__) || defined(__mips__)
 #  define RC4_INT unsigned char
 # else
 #  define RC4_INT unsigned int
 #  define RC4_CHUNK unsigned long long
 # elif (defined(_M_X64) || defined(__x86_64__)) && !defined(_WIN32)
 #  define RC4_CHUNK unsigned long
-# elif defined(__arm__)
+# elif defined(__arm__) || defined(__mips__)
 #  define RC4_CHUNK unsigned long
 # else
    /* On x86 RC4_CHUNK is not defined */
 #if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
 # define CONFIG_HEADER_BF_LOCL_H
 # undef BF_PTR
-# if defined(__arm__)
+# if defined(__arm__) || defined(__mips__)
 #  define BF_PTR
 # endif
 #endif /* HEADER_BF_LOCL_H */