Sun May 13 12:16:30 CEST 2007 Jochen Eisinger <coffee@silcnet.org>
[silc.git] / lib / silccrypt / configure.ad
index d392563f8acab0ce26d89e35d3885b158240758c..283a5ee92ec21c37d91e97ceb36fec3ebff7c3a3 100644 (file)
@@ -22,6 +22,8 @@ AC_MSG_NOTICE([configuring crypto library])
 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.
@@ -40,6 +42,7 @@ case "$host_cpu" in
     aes_asm=false
     ;;
 esac
+fi
 
 SILC_ADD_CC_FLAGS(SILC_CRYPTO, -fno-regmove)
 if test x$summary_debug = xno; then