--- origsrc/gettext-runtime/m4/intl.m4	2016-03-20 02:37:53.000000000 -0500
+++ src/gettext-runtime/m4/intl.m4	2016-10-20 11:07:16.828746100 -0500
@@ -94,7 +94,7 @@
     HAVE_NEWLOCALE=0
   fi
   AC_SUBST([HAVE_NEWLOCALE])
-  if test "$ac_cv_func_wprintf" = yes; then
+  if test "$ac_cv_func_fwprintf" = yes; then
     HAVE_WPRINTF=1
   else
     HAVE_WPRINTF=0
