Commit 86a94527 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

in configure.ac, add minor tweaks to some of the test blocks to avoid

XSI:isms


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2538 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 12 additions and 8 deletions
+12 -8
...@@ -100,6 +100,10 @@ CVS code - ...@@ -100,6 +100,10 @@ CVS code -
total_update() total_update()
- Simplify to call clearok(TRUE) and wrefresh() on edit, which - Simplify to call clearok(TRUE) and wrefresh() on edit, which
updates the entire screen in fewer function calls. (DLR) updates the entire screen in fewer function calls. (DLR)
- configure.ac:
- Minor tweaks to some of the test blocks to avoid XSI:isms.
(DLR, adapted from a Debian patch for GNU ed by David
Weinehall)
- THANKS: - THANKS:
- Add new translators to the credits. - Add new translators to the credits.
......
...@@ -402,7 +402,7 @@ if test x$enable_utf8 != xno; then ...@@ -402,7 +402,7 @@ if test x$enable_utf8 != xno; then
AC_CHECK_FUNCS(iswalnum mblen mbtowc wctomb wcwidth iswspace iswblank) AC_CHECK_FUNCS(iswalnum mblen mbtowc wctomb wcwidth iswspace iswblank)
fi fi
if test x$ac_cv_func_snprintf = xno -o x$ac_cv_func_vsnprintf = xno; then if test x$ac_cv_func_snprintf = xno || test x$ac_cv_func_vsnprintf = xno; then
AM_PATH_GLIB_2_0(2.0.0,, AM_PATH_GLIB_2_0(2.0.0,,
AC_MSG_ERROR([ AC_MSG_ERROR([
*** snprintf() and/or vsnprintf() not found. GLIB 2.x not found either. *** snprintf() and/or vsnprintf() not found. GLIB 2.x not found either.
...@@ -470,13 +470,13 @@ if test "x$GLIB_LIBS" != "x"; then ...@@ -470,13 +470,13 @@ if test "x$GLIB_LIBS" != "x"; then
fi fi
if test x$enable_utf8 != xno && \ if test x$enable_utf8 != xno && \
test x$CURSES_LIB_WIDE = xyes -a \ test x$CURSES_LIB_WIDE = xyes && \
x$ac_cv_func_iswalnum = xyes -a \ test x$ac_cv_func_iswalnum = xyes && \
x$ac_cv_func_mblen = xyes -a \ test x$ac_cv_func_mblen = xyes && \
x$ac_cv_func_mbtowc = xyes -a \ test x$ac_cv_func_mbtowc = xyes && \
x$ac_cv_func_wctomb = xyes -a \ test x$ac_cv_func_wctomb = xyes && \
x$ac_cv_func_wcwidth = xyes && \ test x$ac_cv_func_wcwidth = xyes && \
test x$ac_cv_func_iswspace = xyes -o x$ac_cv_func_iswblank = xyes; then (test x$ac_cv_func_iswspace = xyes || test x$ac_cv_func_iswblank = xyes); then
AC_DEFINE(NANO_WIDE, 1, [Define this if your system has sufficient wide character support (a wide curses library, iswalnum(), iswspace() or iswblank(), mblen(), mbtowc(), wctomb(), and wcwidth()).]) AC_DEFINE(NANO_WIDE, 1, [Define this if your system has sufficient wide character support (a wide curses library, iswalnum(), iswspace() or iswblank(), mblen(), mbtowc(), wctomb(), and wcwidth()).])
else else
if test x$enable_utf8 = xyes; then if test x$enable_utf8 = xyes; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment