--- libwpd-0.10.3/configure.ac.orig	2019-06-03 13:43:11.927185800 +0300
+++ libwpd-0.10.3/configure.ac	2019-06-03 13:43:36.907220800 +0300
@@ -96,10 +96,10 @@
         AC_MSG_RESULT([$have_visibility])
         CXXFLAGS="$saved_CXXFLAGS"
         AX_GCC_FUNC_ATTRIBUTE([visibility])
-        AM_CONDITIONAL([HAVE_VISIBILITY], [
-            test "$have_visibility" = "yes" && test "$ax_cv_have_func_attribute_visibility" = "yes"])
     ]
 )
+AM_CONDITIONAL([HAVE_VISIBILITY], [
+    test "$have_visibility" = "yes" && test "$ax_cv_have_func_attribute_visibility" = "yes"])
 
 # =========================
 # Platform check for darwin
