"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "m4/wcwidth.m4" between
le-1.16.5.tar.gz and le-1.16.6.tar.gz

About: le is a terminal text editor (many block operations with stream and rectangular blocks, tunable syntax highlighting, etc.).

wcwidth.m4  (le-1.16.5):wcwidth.m4  (le-1.16.6)
# wcwidth.m4 serial 23 # wcwidth.m4 serial 27
dnl Copyright (C) 2006-2017 Free Software Foundation, Inc. dnl Copyright (C) 2006-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it, dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved. dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_FUNC_WCWIDTH], AC_DEFUN([gl_FUNC_WCWIDTH],
[ [
AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
dnl Persuade glibc <wchar.h> to declare wcwidth(). dnl Persuade glibc <wchar.h> to declare wcwidth().
skipping to change at line 37 skipping to change at line 37
before <wchar.h>. */ before <wchar.h>. */
#include <stddef.h> #include <stddef.h>
#include <stdio.h> #include <stdio.h>
#include <time.h> #include <time.h>
#include <wchar.h> #include <wchar.h>
]]) ]])
if test $ac_cv_have_decl_wcwidth != yes; then if test $ac_cv_have_decl_wcwidth != yes; then
HAVE_DECL_WCWIDTH=0 HAVE_DECL_WCWIDTH=0
fi fi
if test $ac_cv_func_wcwidth = yes; then if test $ac_cv_func_wcwidth != yes; then
AC_CACHE_CHECK([whether wcwidth is a macro],
[gl_cv_func_wcwidth_macro],
[AC_EGREP_CPP([wchar_header_defines_wcwidth], [
#include <wchar.h>
#ifdef wcwidth
wchar_header_defines_wcwidth
#endif],
[gl_cv_func_wcwidth_macro=yes],
[gl_cv_func_wcwidth_macro=no])
])
fi
if test $ac_cv_func_wcwidth = yes || test $gl_cv_func_wcwidth_macro = yes; the
n
HAVE_WCWIDTH=1 HAVE_WCWIDTH=1
dnl On Mac OS X 10.3, wcwidth(0x0301) (COMBINING ACUTE ACCENT) returns 1. dnl On Mac OS X 10.3, wcwidth(0x0301) (COMBINING ACUTE ACCENT) returns 1.
dnl On OpenBSD 5.0, wcwidth(0x05B0) (HEBREW POINT SHEVA) returns 1. dnl On OpenBSD 5.0, wcwidth(0x05B0) (HEBREW POINT SHEVA) returns 1.
dnl On OSF/1 5.1, wcwidth(0x200B) (ZERO WIDTH SPACE) returns 1. dnl On OSF/1 5.1, wcwidth(0x200B) (ZERO WIDTH SPACE) returns 1.
dnl On OpenBSD 5.8, wcwidth(0xFF1A) (FULLWIDTH COLON) returns 0. dnl On OpenBSD 5.8, wcwidth(0xFF1A) (FULLWIDTH COLON) returns 0.
dnl On Solaris 8, wcwidth(0x2022) (BULLET) returns 2. dnl On Solaris 8, wcwidth(0x2022) (BULLET) returns 2.
dnl This leads to bugs in 'ls' (coreutils). dnl This leads to bugs in 'ls' (coreutils).
AC_CACHE_CHECK([whether wcwidth works reasonably in UTF-8 locales], AC_CACHE_CHECK([whether wcwidth works reasonably in UTF-8 locales],
[gl_cv_func_wcwidth_works], [gl_cv_func_wcwidth_works],
[ [
skipping to change at line 92 skipping to change at line 105
if (wcwidth (0x2022) != 1) if (wcwidth (0x2022) != 1)
result |= 16; result |= 16;
} }
return result; return result;
}]])], }]])],
[gl_cv_func_wcwidth_works=yes], [gl_cv_func_wcwidth_works=yes],
[gl_cv_func_wcwidth_works=no], [gl_cv_func_wcwidth_works=no],
[ [
changequote(,)dnl changequote(,)dnl
case "$host_os" in case "$host_os" in
# Guess yes on glibc and AIX 7 systems. # Guess yes on glibc and AIX 7 systems.
*-gnu* | aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";; *-gnu* | gnu* | aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";
*) gl_cv_func_wcwidth_works="guessing no";; ;
*) gl_cv_func_wcwidth_works="guessing no";;
esac esac
changequote([,])dnl changequote([,])dnl
]) ])
]) ])
case "$gl_cv_func_wcwidth_works" in case "$gl_cv_func_wcwidth_works" in
*yes) ;; *yes) ;;
*no) REPLACE_WCWIDTH=1 ;; *no) REPLACE_WCWIDTH=1 ;;
esac esac
else else
HAVE_WCWIDTH=0 HAVE_WCWIDTH=0
fi fi
dnl We don't substitute HAVE_WCWIDTH. We assume that if the system does not dnl We don't substitute HAVE_WCWIDTH. We assume that if the system does not
dnl have the wcwidth function, then it does not declare it. dnl have the wcwidth function, then it does not declare it.
]) ])
# Prerequisites of lib/wcwidth.c.
AC_DEFUN([gl_PREREQ_WCWIDTH], [
AC_REQUIRE([AC_C_INLINE])
:
])
 End of changes. 4 change blocks. 
6 lines changed or deleted 21 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)