diff --git a/configure b/configure
index cc23e998fcea8994426b020d630bee3471e8ebf8..1b899a9d3ed2abe4df5cf2a1e3271c6b83c83a23 100755
--- a/configure
+++ b/configure
@@ -465,7 +465,7 @@ check_library() {
                             fi
                         fi
                     else
-                        logmsg "  $j not found in $j"
+                        logmsg "  $j not found in $l"
                     fi
                 done
             done