summaryrefslogtreecommitdiff
path: root/m4/wcwidth.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/wcwidth.m4')
-rw-r--r--m4/wcwidth.m47
1 files changed, 5 insertions, 2 deletions
diff --git a/m4/wcwidth.m4 b/m4/wcwidth.m4
index ad5c6cc8e9..ac357f372e 100644
--- a/m4/wcwidth.m4
+++ b/m4/wcwidth.m4
@@ -41,7 +41,8 @@ AC_DEFUN([gl_FUNC_WCWIDTH],
AC_CACHE_CHECK([whether wcwidth works reasonably in UTF-8 locales],
[gl_cv_func_wcwidth_works],
[
- AC_TRY_RUN([
+ AC_RUN_IFELSE(
+ [AC_LANG_SOURCE([[
#include <locale.h>
/* AIX 3.2.5 declares wcwidth in <string.h>. */
#include <string.h>
@@ -66,7 +67,9 @@ int main ()
if (wcwidth (0x0301) > 0 || wcwidth (0x200B) > 0)
return 1;
return 0;
-}], [gl_cv_func_wcwidth_works=yes], [gl_cv_func_wcwidth_works=no],
+}]])],
+ [gl_cv_func_wcwidth_works=yes],
+ [gl_cv_func_wcwidth_works=no],
[
changequote(,)dnl
case "$host_os" in