diff options
| -rw-r--r-- | configure.ac | 6 | ||||
| -rw-r--r-- | crypto/Makefile.am | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 16ed825..72a49b3 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -80,12 +80,12 @@ CFLAGS="$old_cflags" | |||
| 80 | 80 | ||
| 81 | AS_CASE([$host_cpu], | 81 | AS_CASE([$host_cpu], |
| 82 | [*sparc*], [CPPFLAGS="$CPPFLAGS -D__STRICT_ALIGNMENT"], | 82 | [*sparc*], [CPPFLAGS="$CPPFLAGS -D__STRICT_ALIGNMENT"], |
| 83 | [*arm*], AS_IF([test "x$BSWAP4" = "xyes"],, | 83 | [*arm*], [host_cpu=arm], |
| 84 | CPPFLAGS="$CPPFLAGS -D__STRICT_ALIGNMENT"), | ||
| 85 | [*amd64*], [host_cpu=x86_64 HOSTARCH=intel], | 84 | [*amd64*], [host_cpu=x86_64 HOSTARCH=intel], |
| 86 | [i?86], [HOSTARCH=intel], | 85 | [i?86], [HOSTARCH=intel], |
| 87 | [x86_64], [HOSTARCH=intel] | 86 | [x86_64], [HOSTARCH=intel] |
| 88 | ) | 87 | ) |
| 88 | AS_IF([test "x$BSWAP4" = "xyes" -a "$host_cpu" = "arm" ],,CPPFLAGS="$CPPFLAGS -D__STRICT_ALIGNMENT") | ||
| 89 | AM_CONDITIONAL([HOST_CPU_IS_INTEL], [test "x$HOSTARCH" = "xintel"]) | 89 | AM_CONDITIONAL([HOST_CPU_IS_INTEL], [test "x$HOSTARCH" = "xintel"]) |
| 90 | 90 | ||
| 91 | AC_MSG_CHECKING([if .gnu.warning accepts long strings]) | 91 | AC_MSG_CHECKING([if .gnu.warning accepts long strings]) |
| @@ -105,6 +105,8 @@ AC_ARG_ENABLE([asm], | |||
| 105 | AM_CONDITIONAL([OPENSSL_NO_ASM], [test "x$enable_asm" = "xno"]) | 105 | AM_CONDITIONAL([OPENSSL_NO_ASM], [test "x$enable_asm" = "xno"]) |
| 106 | 106 | ||
| 107 | # Conditionally enable assembly by default | 107 | # Conditionally enable assembly by default |
| 108 | AM_CONDITIONAL([HOST_ASM_ELF_ARM], | ||
| 109 | [test "x$HOST_ABI" = "xelf" -a "$host_cpu" = "arm" -a "x$enable_asm" != "xno"]) | ||
| 108 | AM_CONDITIONAL([HOST_ASM_ELF_X86_64], | 110 | AM_CONDITIONAL([HOST_ASM_ELF_X86_64], |
| 109 | [test "x$HOST_ABI" = "xelf" -a "$host_cpu" = "x86_64" -a "x$enable_asm" != "xno"]) | 111 | [test "x$HOST_ABI" = "xelf" -a "$host_cpu" = "x86_64" -a "x$enable_asm" != "xno"]) |
| 110 | AM_CONDITIONAL([HOST_ASM_MACOSX_X86_64], | 112 | AM_CONDITIONAL([HOST_ASM_MACOSX_X86_64], |
diff --git a/crypto/Makefile.am b/crypto/Makefile.am index 864b2d3..ba96c51 100644 --- a/crypto/Makefile.am +++ b/crypto/Makefile.am | |||
| @@ -192,9 +192,11 @@ include Makefile.am.arc4random | |||
| 192 | libcrypto_la_SOURCES = | 192 | libcrypto_la_SOURCES = |
| 193 | EXTRA_libcrypto_la_SOURCES = | 193 | EXTRA_libcrypto_la_SOURCES = |
| 194 | 194 | ||
| 195 | include Makefile.am.elf-arm | ||
| 195 | include Makefile.am.elf-x86_64 | 196 | include Makefile.am.elf-x86_64 |
| 196 | include Makefile.am.macosx-x86_64 | 197 | include Makefile.am.macosx-x86_64 |
| 197 | 198 | ||
| 199 | if !HOST_ASM_ELF_ARM | ||
| 198 | if !HOST_ASM_ELF_X86_64 | 200 | if !HOST_ASM_ELF_X86_64 |
| 199 | if !HOST_ASM_MACOSX_X86_64 | 201 | if !HOST_ASM_MACOSX_X86_64 |
| 200 | libcrypto_la_SOURCES += aes/aes_cbc.c | 202 | libcrypto_la_SOURCES += aes/aes_cbc.c |
| @@ -206,6 +208,7 @@ libcrypto_la_SOURCES += rc4/rc4_skey.c | |||
| 206 | libcrypto_la_SOURCES += whrlpool/wp_block.c | 208 | libcrypto_la_SOURCES += whrlpool/wp_block.c |
| 207 | endif | 209 | endif |
| 208 | endif | 210 | endif |
| 211 | endif | ||
| 209 | 212 | ||
| 210 | libcrypto_la_SOURCES += cpt_err.c | 213 | libcrypto_la_SOURCES += cpt_err.c |
| 211 | libcrypto_la_SOURCES += cryptlib.c | 214 | libcrypto_la_SOURCES += cryptlib.c |
