diff --git a/configure b/configure
index 5df749c..c7e72f3 100755
--- a/configure
+++ b/configure
@@ -30,6 +30,9 @@ C3_VERSION="$(cat c3.version)"
echo "C3_VERSION = $C3_VERSION" >> ${CONFIG_MK}
echo "c3-${C3_VERSION}.tar.gz: $(tr '\n' ' ' < c3.index)" >> ${CONFIG_MK}
+config_asan
+echo "HAVE_ASAN = ${HAVE_ASAN}" >> ${CONFIG_MK}
+
update_config_mk
( cd libffi && sh autogen.sh && MAKE=gmake ./configure --disable-multi-os-directory; )