aboutsummaryrefslogtreecommitdiffstats
path: root/erts/configure.in
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2013-05-08 15:31:26 +0200
committerFredrik Gustafsson <[email protected]>2013-05-08 15:31:26 +0200
commit89939207898fc68a2ee0c080e603aa65fb866b25 (patch)
tree36c782cd85ab4ac34fc7da521362e95fc87bc104 /erts/configure.in
parent705e3b1137ebb2cfa1e729c9a4cf44638270f7e5 (diff)
parentb9345b4f9c44ea7dea994cb3b06d639f9bf66a8d (diff)
downloadotp-89939207898fc68a2ee0c080e603aa65fb866b25.tar.gz
otp-89939207898fc68a2ee0c080e603aa65fb866b25.tar.bz2
otp-89939207898fc68a2ee0c080e603aa65fb866b25.zip
Merge branch 'nox/wide-chars/OTP-11088' into maint
* nox/wide-chars/OTP-11088: Support wide characters in the shell through wcwidth() Fix bogus DEBUGLOG() incantations in ttsl_drv
Diffstat (limited to 'erts/configure.in')
-rw-r--r--erts/configure.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/erts/configure.in b/erts/configure.in
index 7995c95aee..b9c9a76ef6 100644
--- a/erts/configure.in
+++ b/erts/configure.in
@@ -1342,6 +1342,17 @@ if test "x$TERMCAP_LIB" != "x"; then
AC_DEFINE(HAVE_TERMCAP, 1, [Define if termcap functions exists])
fi
+if test "X$host" != "Xwin32"; then
+ AC_MSG_CHECKING(for wcwidth)
+ AC_TRY_LINK([#include <wchar.h>], [wcwidth(0);],
+ have_wcwidth=yes, have_wcwidth=no)
+ if test $have_wcwidth = yes; then
+ AC_MSG_RESULT([yes])
+ AC_DEFINE(HAVE_WCWIDTH, [1],
+ [Define to 1 if you have a `wcwidth' function.])
+ fi
+fi
+
dnl -------------
dnl zlib
dnl -------------