diff --git a/configure.in b/configure.in
index 571964aeb8e7a6591bc7a9133422a63b0743174f..5e7ae34c238c3b8e801f18a798867698a5dc0d34 100644
--- a/configure.in
+++ b/configure.in
@@ -191,7 +191,7 @@ AC_CACHE_CHECK([whether we need extra options to link libevent],
         break
       fi
     done
-    if test le_runs = no ; then
+    if test $le_runs = no ; then
       AC_MSG_ERROR([Found linkable libevent in $ac_cv_libevent_dir, but it doesn't run, even with -R.  Maybe specify another using --with-libevent-dir?])
     fi
     LDFLAGS="$saved_LDFLAGS"