@@ -1127,6 +1127,8 @@ for opt do
;;
--enable-crypto-afalg) crypto_afalg="yes"
;;
+ --disable-crypto-afalg) crypto_afalg="no"
+ ;;
--disable-docs) docs="no"
;;
--enable-docs) docs="yes"
@@ -1446,8 +1448,6 @@ Advanced options (experts only):
xen pv domain builder
--enable-debug-stack-usage
track the maximum stack usage of stacks created by qemu_alloc_stack
- --enable-crypto-afalg
- enable afalg-backend crypto and try to use it first.
Optional features, enabled with --enable-FEATURE and
disabled with --disable-FEATURE, default is enabled if available:
@@ -1523,6 +1523,7 @@ disabled with --disable-FEATURE, default is enabled if available:
qom-cast-debug cast debugging support
tools build qemu-io, qemu-nbd and qemu-image tools
vxhs Veritas HyperScale vDisk backend support
+ crypto-afalg Linux AF_ALG crypto backend driver
NOTE: The object files are built at the place where configure is launched
EOF
@@ -4841,7 +4842,7 @@ fi
##########################################
# check for usable AF_ALG environment
-hava_af_alg=no
+hava_afalg=no
cat > $TMPC << EOF
#include <errno.h>
#include <sys/types.h>
@@ -4856,6 +4857,14 @@ EOF
if compile_prog "" "" ; then
have_afalg=yes
fi
+if test "$crypto_afalg" = "yes"
+then
+ if test "$have_afalg" != "yes"
+ then
+ error_exit "AF_ALG requested but could not be detected"
+ fi
+fi
+
#################################################
# Sparc implicitly links with --relax, which is
@@ -5836,9 +5845,7 @@ if test "$debug_stack_usage" = "yes" ; then
fi
if test "$crypto_afalg" = "yes" ; then
- if test "$have_afalg" = "yes" ; then
- echo "CONFIG_AF_ALG=y" >> $config_host_mak
- fi
+ echo "CONFIG_AF_ALG=y" >> $config_host_mak
fi
if test "$open_by_handle_at" = "yes" ; then