X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=lib%2Fsilccrypt%2Fconfigure.ad;h=01434b039b8a890702cbd3a37b1763bf165e13e4;hp=283a5ee92ec21c37d91e97ceb36fec3ebff7c3a3;hb=e7b6c157b80152bf9fb9266e6bdd93f9fb0db776;hpb=baed484c86f44c93b973dd42d905d1fe867e9108 diff --git a/lib/silccrypt/configure.ad b/lib/silccrypt/configure.ad index 283a5ee9..01434b03 100644 --- a/lib/silccrypt/configure.ad +++ b/lib/silccrypt/configure.ad @@ -23,29 +23,34 @@ SILC_CRYPTO_CFLAGS= aes_asm=false -if test "${pic_mode:-default}" != "yes" ; then case "$host_cpu" in i?86) - # Don't enable ASM AES with shared libs as the code doesn't support PIC. - if test x$have_assembler = xtrue -a "$enable_shared" != "yes"; then - aes_asm=true - AC_DEFINE([SILC_AES_ASM], [], [SILC_AES_ASM]) + AC_DEFINE([SILC_SHA256_X86], [], [SILC_SHA256_X86]) + + if test "${pic_mode:-default}" != "yes" ; then + # Don't enable ASM AES with shared libs as the code doesn't support PIC. + if test x$have_assembler = xtrue -a "$enable_shared" != "yes"; then + aes_asm=true + AC_DEFINE([SILC_AES_ASM], [], [SILC_AES_ASM]) + fi fi ;; x86_64) - if test x$have_assembler = xtrue -a "$enable_shared" != "yes"; then - aes_asm=true - AC_DEFINE([SILC_AES_ASM], [], [SILC_AES_ASM]) + + if test "${pic_mode:-default}" != "yes" ; then + if test x$have_assembler = xtrue -a "$enable_shared" != "yes"; then + aes_asm=true + AC_DEFINE([SILC_AES_ASM], [], [SILC_AES_ASM]) + fi fi ;; default) aes_asm=false ;; esac -fi SILC_ADD_CC_FLAGS(SILC_CRYPTO, -fno-regmove) -if test x$summary_debug = xno; then +if test x$summary_debug = xno -a x$want_cc_optimizations = xtrue; then SILC_ADD_CC_FLAGS(SILC_CRYPTO, -fomit-frame-pointer -O3) fi