--- configure
+++ configure
@@ -4323,7 +4323,7 @@
 
 fi
 
- if test "x" = xyes; then
+ if test "x$found_static" = xyes; then
   IS_STATIC_TRUE=
   IS_STATIC_FALSE='#'
 else
