diff -Nupr libgdiplus-5.6.1~/configure libgdiplus-5.6.1/configure
--- libgdiplus-5.6.1~/configure	2019-06-07 21:26:37.207823285 +0200
+++ libgdiplus-5.6.1/configure	2019-06-07 21:27:44.045156234 +0200
@@ -14133,7 +14133,7 @@ fi
 
 
 # Add xrender here so that we don't fail to find glib if we won't have xrender.pc
-if test "x$no_x" != "xyes" && "x$x11_available" = "xyes"; then
+if test "x$no_x" != "xyes" && test "x$x11_available" = "xyes"; then
    GDIPLUS_LIBS="$GDIPLUS_LIBS `$PKG_CONFIG --libs xrender `"
    GDIPLUS_CFLAGS="$GDIPLUS_CFLAGS `$PKG_CONFIG --cflags xrender `"
 fi
