|
Karsten Hopp |
0ccd26 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
0ccd26 |
Subject: Patch 7.4.475
|
|
Karsten Hopp |
0ccd26 |
Fcc: outbox
|
|
Karsten Hopp |
0ccd26 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
0ccd26 |
Mime-Version: 1.0
|
|
Karsten Hopp |
0ccd26 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
0ccd26 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
0ccd26 |
------------
|
|
Karsten Hopp |
0ccd26 |
|
|
Karsten Hopp |
0ccd26 |
Patch 7.4.475
|
|
Karsten Hopp |
0ccd26 |
Problem: Can't compile on a system where Xutf8SetWMProperties() is not in
|
|
Karsten Hopp |
0ccd26 |
the X11 library. Issue 265.
|
|
Karsten Hopp |
0ccd26 |
Solution: Add a configure check.
|
|
Karsten Hopp |
0ccd26 |
Files: src/configure.in, src/auto/configure, src/config.h.in,
|
|
Karsten Hopp |
0ccd26 |
src/os_unix.c
|
|
Karsten Hopp |
0ccd26 |
|
|
Karsten Hopp |
0ccd26 |
|
|
Karsten Hopp |
0ccd26 |
*** ../vim-7.4.474/src/configure.in 2014-08-17 17:05:39.159057796 +0200
|
|
Karsten Hopp |
0ccd26 |
--- src/configure.in 2014-10-11 14:40:18.557274620 +0200
|
|
Karsten Hopp |
0ccd26 |
***************
|
|
Karsten Hopp |
0ccd26 |
*** 3730,3750 ****
|
|
Karsten Hopp |
0ccd26 |
dnl Check for multibyte locale functions
|
|
Karsten Hopp |
0ccd26 |
dnl Find out if _Xsetlocale() is supported by libX11.
|
|
Karsten Hopp |
0ccd26 |
dnl Check if X_LOCALE should be defined.
|
|
Karsten Hopp |
0ccd26 |
!
|
|
Karsten Hopp |
0ccd26 |
! if test "$enable_multibyte" = "yes"; then
|
|
Karsten Hopp |
0ccd26 |
cflags_save=$CFLAGS
|
|
Karsten Hopp |
0ccd26 |
! ldflags_save=$LDFLAGS
|
|
Karsten Hopp |
0ccd26 |
! if test "x$x_includes" != "xNONE" ; then
|
|
Karsten Hopp |
0ccd26 |
! CFLAGS="$CFLAGS -I$x_includes"
|
|
Karsten Hopp |
0ccd26 |
! LDFLAGS="$X_LIBS $LDFLAGS -lX11"
|
|
Karsten Hopp |
0ccd26 |
! AC_MSG_CHECKING(whether X_LOCALE needed)
|
|
Karsten Hopp |
0ccd26 |
! AC_TRY_COMPILE([#include <X11/Xlocale.h>],,
|
|
Karsten Hopp |
0ccd26 |
! AC_TRY_LINK_FUNC([_Xsetlocale], [AC_MSG_RESULT(yes)
|
|
Karsten Hopp |
0ccd26 |
! AC_DEFINE(X_LOCALE)], AC_MSG_RESULT(no)),
|
|
Karsten Hopp |
0ccd26 |
! AC_MSG_RESULT(no))
|
|
Karsten Hopp |
0ccd26 |
! fi
|
|
Karsten Hopp |
0ccd26 |
CFLAGS=$cflags_save
|
|
Karsten Hopp |
0ccd26 |
! LDFLAGS=$ldflags_save
|
|
Karsten Hopp |
0ccd26 |
fi
|
|
Karsten Hopp |
0ccd26 |
|
|
Karsten Hopp |
0ccd26 |
dnl Link with xpg4, it is said to make Korean locale working
|
|
Karsten Hopp |
0ccd26 |
--- 3730,3753 ----
|
|
Karsten Hopp |
0ccd26 |
dnl Check for multibyte locale functions
|
|
Karsten Hopp |
0ccd26 |
dnl Find out if _Xsetlocale() is supported by libX11.
|
|
Karsten Hopp |
0ccd26 |
dnl Check if X_LOCALE should be defined.
|
|
Karsten Hopp |
0ccd26 |
! if test "x$with_x" = "xyes"; then
|
|
Karsten Hopp |
0ccd26 |
cflags_save=$CFLAGS
|
|
Karsten Hopp |
0ccd26 |
! libs_save=$LIBS
|
|
Karsten Hopp |
0ccd26 |
! LIBS="$LIBS $X_LIBS $GUI_LIB_LOC $GUI_X_LIBS $X_PRE_LIBS $X_LIB $X_EXTRA_LIBS"
|
|
Karsten Hopp |
0ccd26 |
! CFLAGS="$CFLAGS $X_CFLAGS"
|
|
Karsten Hopp |
0ccd26 |
!
|
|
Karsten Hopp |
0ccd26 |
! AC_MSG_CHECKING(whether X_LOCALE needed)
|
|
Karsten Hopp |
0ccd26 |
! AC_TRY_COMPILE([#include <X11/Xlocale.h>],,
|
|
Karsten Hopp |
0ccd26 |
! AC_TRY_LINK_FUNC([_Xsetlocale], [AC_MSG_RESULT(yes)
|
|
Karsten Hopp |
0ccd26 |
! AC_DEFINE(X_LOCALE)], AC_MSG_RESULT(no)),
|
|
Karsten Hopp |
0ccd26 |
! AC_MSG_RESULT(no))
|
|
Karsten Hopp |
0ccd26 |
!
|
|
Karsten Hopp |
0ccd26 |
! AC_MSG_CHECKING(whether Xutf8SetWMProperties() can be used)
|
|
Karsten Hopp |
0ccd26 |
! AC_TRY_LINK_FUNC([Xutf8SetWMProperties], [AC_MSG_RESULT(yes)
|
|
Karsten Hopp |
0ccd26 |
! AC_DEFINE(HAVE_XUTF8SETWMPROPERTIES)], AC_MSG_RESULT(no))
|
|
Karsten Hopp |
0ccd26 |
!
|
|
Karsten Hopp |
0ccd26 |
CFLAGS=$cflags_save
|
|
Karsten Hopp |
0ccd26 |
! LIBS=$libs_save
|
|
Karsten Hopp |
0ccd26 |
fi
|
|
Karsten Hopp |
0ccd26 |
|
|
Karsten Hopp |
0ccd26 |
dnl Link with xpg4, it is said to make Korean locale working
|
|
Karsten Hopp |
0ccd26 |
*** ../vim-7.4.474/src/auto/configure 2014-08-17 17:05:39.163057796 +0200
|
|
Karsten Hopp |
0ccd26 |
--- src/auto/configure 2014-10-11 14:40:51.421274692 +0200
|
|
Karsten Hopp |
0ccd26 |
***************
|
|
Karsten Hopp |
0ccd26 |
*** 12732,12747 ****
|
|
Karsten Hopp |
0ccd26 |
fi
|
|
Karsten Hopp |
0ccd26 |
|
|
Karsten Hopp |
0ccd26 |
|
|
Karsten Hopp |
0ccd26 |
!
|
|
Karsten Hopp |
0ccd26 |
! if test "$enable_multibyte" = "yes"; then
|
|
Karsten Hopp |
0ccd26 |
cflags_save=$CFLAGS
|
|
Karsten Hopp |
0ccd26 |
! ldflags_save=$LDFLAGS
|
|
Karsten Hopp |
0ccd26 |
! if test "x$x_includes" != "xNONE" ; then
|
|
Karsten Hopp |
0ccd26 |
! CFLAGS="$CFLAGS -I$x_includes"
|
|
Karsten Hopp |
0ccd26 |
! LDFLAGS="$X_LIBS $LDFLAGS -lX11"
|
|
Karsten Hopp |
0ccd26 |
! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5
|
|
Karsten Hopp |
0ccd26 |
$as_echo_n "checking whether X_LOCALE needed... " >&6; }
|
|
Karsten Hopp |
0ccd26 |
! cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
Karsten Hopp |
0ccd26 |
/* end confdefs.h. */
|
|
Karsten Hopp |
0ccd26 |
#include <X11/Xlocale.h>
|
|
Karsten Hopp |
0ccd26 |
int
|
|
Karsten Hopp |
0ccd26 |
--- 12732,12746 ----
|
|
Karsten Hopp |
0ccd26 |
fi
|
|
Karsten Hopp |
0ccd26 |
|
|
Karsten Hopp |
0ccd26 |
|
|
Karsten Hopp |
0ccd26 |
! if test "x$with_x" = "xyes"; then
|
|
Karsten Hopp |
0ccd26 |
cflags_save=$CFLAGS
|
|
Karsten Hopp |
0ccd26 |
! libs_save=$LIBS
|
|
Karsten Hopp |
0ccd26 |
! LIBS="$LIBS $X_LIBS $GUI_LIB_LOC $GUI_X_LIBS $X_PRE_LIBS $X_LIB $X_EXTRA_LIBS"
|
|
Karsten Hopp |
0ccd26 |
! CFLAGS="$CFLAGS $X_CFLAGS"
|
|
Karsten Hopp |
0ccd26 |
!
|
|
Karsten Hopp |
0ccd26 |
! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5
|
|
Karsten Hopp |
0ccd26 |
$as_echo_n "checking whether X_LOCALE needed... " >&6; }
|
|
Karsten Hopp |
0ccd26 |
! cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
Karsten Hopp |
0ccd26 |
/* end confdefs.h. */
|
|
Karsten Hopp |
0ccd26 |
#include <X11/Xlocale.h>
|
|
Karsten Hopp |
0ccd26 |
int
|
|
Karsten Hopp |
0ccd26 |
***************
|
|
Karsten Hopp |
0ccd26 |
*** 12774,12780 ****
|
|
Karsten Hopp |
0ccd26 |
if ac_fn_c_try_link "$LINENO"; then :
|
|
Karsten Hopp |
0ccd26 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
Karsten Hopp |
0ccd26 |
$as_echo "yes" >&6; }
|
|
Karsten Hopp |
0ccd26 |
! $as_echo "#define X_LOCALE 1" >>confdefs.h
|
|
Karsten Hopp |
0ccd26 |
|
|
Karsten Hopp |
0ccd26 |
else
|
|
Karsten Hopp |
0ccd26 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
Karsten Hopp |
0ccd26 |
--- 12773,12779 ----
|
|
Karsten Hopp |
0ccd26 |
if ac_fn_c_try_link "$LINENO"; then :
|
|
Karsten Hopp |
0ccd26 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
Karsten Hopp |
0ccd26 |
$as_echo "yes" >&6; }
|
|
Karsten Hopp |
0ccd26 |
! $as_echo "#define X_LOCALE 1" >>confdefs.h
|
|
Karsten Hopp |
0ccd26 |
|
|
Karsten Hopp |
0ccd26 |
else
|
|
Karsten Hopp |
0ccd26 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
Karsten Hopp |
0ccd26 |
***************
|
|
Karsten Hopp |
0ccd26 |
*** 12787,12795 ****
|
|
Karsten Hopp |
0ccd26 |
$as_echo "no" >&6; }
|
|
Karsten Hopp |
0ccd26 |
fi
|
|
Karsten Hopp |
0ccd26 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
Karsten Hopp |
0ccd26 |
! fi
|
|
Karsten Hopp |
0ccd26 |
CFLAGS=$cflags_save
|
|
Karsten Hopp |
0ccd26 |
! LDFLAGS=$ldflags_save
|
|
Karsten Hopp |
0ccd26 |
fi
|
|
Karsten Hopp |
0ccd26 |
|
|
Karsten Hopp |
0ccd26 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5
|
|
Karsten Hopp |
0ccd26 |
--- 12786,12826 ----
|
|
Karsten Hopp |
0ccd26 |
$as_echo "no" >&6; }
|
|
Karsten Hopp |
0ccd26 |
fi
|
|
Karsten Hopp |
0ccd26 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
Karsten Hopp |
0ccd26 |
!
|
|
Karsten Hopp |
0ccd26 |
! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xutf8SetWMProperties() can be used" >&5
|
|
Karsten Hopp |
0ccd26 |
! $as_echo_n "checking whether Xutf8SetWMProperties() can be used... " >&6; }
|
|
Karsten Hopp |
0ccd26 |
! cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
Karsten Hopp |
0ccd26 |
! /* end confdefs.h. */
|
|
Karsten Hopp |
0ccd26 |
!
|
|
Karsten Hopp |
0ccd26 |
! /* Override any GCC internal prototype to avoid an error.
|
|
Karsten Hopp |
0ccd26 |
! Use char because int might match the return type of a GCC
|
|
Karsten Hopp |
0ccd26 |
! builtin and then its argument prototype would still apply. */
|
|
Karsten Hopp |
0ccd26 |
! #ifdef __cplusplus
|
|
Karsten Hopp |
0ccd26 |
! extern "C"
|
|
Karsten Hopp |
0ccd26 |
! #endif
|
|
Karsten Hopp |
0ccd26 |
! char Xutf8SetWMProperties ();
|
|
Karsten Hopp |
0ccd26 |
! int
|
|
Karsten Hopp |
0ccd26 |
! main ()
|
|
Karsten Hopp |
0ccd26 |
! {
|
|
Karsten Hopp |
0ccd26 |
! return Xutf8SetWMProperties ();
|
|
Karsten Hopp |
0ccd26 |
! ;
|
|
Karsten Hopp |
0ccd26 |
! return 0;
|
|
Karsten Hopp |
0ccd26 |
! }
|
|
Karsten Hopp |
0ccd26 |
! _ACEOF
|
|
Karsten Hopp |
0ccd26 |
! if ac_fn_c_try_link "$LINENO"; then :
|
|
Karsten Hopp |
0ccd26 |
! { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
Karsten Hopp |
0ccd26 |
! $as_echo "yes" >&6; }
|
|
Karsten Hopp |
0ccd26 |
! $as_echo "#define HAVE_XUTF8SETWMPROPERTIES 1" >>confdefs.h
|
|
Karsten Hopp |
0ccd26 |
!
|
|
Karsten Hopp |
0ccd26 |
! else
|
|
Karsten Hopp |
0ccd26 |
! { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
Karsten Hopp |
0ccd26 |
! $as_echo "no" >&6; }
|
|
Karsten Hopp |
0ccd26 |
! fi
|
|
Karsten Hopp |
0ccd26 |
! rm -f core conftest.err conftest.$ac_objext \
|
|
Karsten Hopp |
0ccd26 |
! conftest$ac_exeext conftest.$ac_ext
|
|
Karsten Hopp |
0ccd26 |
!
|
|
Karsten Hopp |
0ccd26 |
CFLAGS=$cflags_save
|
|
Karsten Hopp |
0ccd26 |
! LIBS=$libs_save
|
|
Karsten Hopp |
0ccd26 |
fi
|
|
Karsten Hopp |
0ccd26 |
|
|
Karsten Hopp |
0ccd26 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5
|
|
Karsten Hopp |
0ccd26 |
*** ../vim-7.4.474/src/config.h.in 2014-04-02 14:05:33.995887839 +0200
|
|
Karsten Hopp |
0ccd26 |
--- src/config.h.in 2014-10-11 14:40:03.841274588 +0200
|
|
Karsten Hopp |
0ccd26 |
***************
|
|
Karsten Hopp |
0ccd26 |
*** 446,448 ****
|
|
Karsten Hopp |
0ccd26 |
--- 446,451 ----
|
|
Karsten Hopp |
0ccd26 |
|
|
Karsten Hopp |
0ccd26 |
/* Define if we have AvailabilityMacros.h on Mac OS X */
|
|
Karsten Hopp |
0ccd26 |
#undef HAVE_AVAILABILITYMACROS_H
|
|
Karsten Hopp |
0ccd26 |
+
|
|
Karsten Hopp |
0ccd26 |
+ /* Define if Xutf8SetWMProperties() is in an X library. */
|
|
Karsten Hopp |
0ccd26 |
+ #undef HAVE_XUTF8SETWMPROPERTIES
|
|
Karsten Hopp |
0ccd26 |
*** ../vim-7.4.474/src/os_unix.c 2014-08-29 12:58:38.242430208 +0200
|
|
Karsten Hopp |
0ccd26 |
--- src/os_unix.c 2014-10-11 14:47:04.601275507 +0200
|
|
Karsten Hopp |
0ccd26 |
***************
|
|
Karsten Hopp |
0ccd26 |
*** 1960,1968 ****
|
|
Karsten Hopp |
0ccd26 |
return retval;
|
|
Karsten Hopp |
0ccd26 |
}
|
|
Karsten Hopp |
0ccd26 |
|
|
Karsten Hopp |
0ccd26 |
! /* Are Xutf8 functions available? Avoid error from old compilers. */
|
|
Karsten Hopp |
0ccd26 |
#if defined(X_HAVE_UTF8_STRING) && defined(FEAT_MBYTE)
|
|
Karsten Hopp |
0ccd26 |
! # if X_HAVE_UTF8_STRING
|
|
Karsten Hopp |
0ccd26 |
# define USE_UTF8_STRING
|
|
Karsten Hopp |
0ccd26 |
# endif
|
|
Karsten Hopp |
0ccd26 |
#endif
|
|
Karsten Hopp |
0ccd26 |
--- 1960,1971 ----
|
|
Karsten Hopp |
0ccd26 |
return retval;
|
|
Karsten Hopp |
0ccd26 |
}
|
|
Karsten Hopp |
0ccd26 |
|
|
Karsten Hopp |
0ccd26 |
! /* Xutf8 functions are not avaialble on older systems. Note that on some
|
|
Karsten Hopp |
0ccd26 |
! * systems X_HAVE_UTF8_STRING may be defined in a header file but
|
|
Karsten Hopp |
0ccd26 |
! * Xutf8SetWMProperties() is not in the X11 library. Configure checks for
|
|
Karsten Hopp |
0ccd26 |
! * that and defines HAVE_XUTF8SETWMPROPERTIES. */
|
|
Karsten Hopp |
0ccd26 |
#if defined(X_HAVE_UTF8_STRING) && defined(FEAT_MBYTE)
|
|
Karsten Hopp |
0ccd26 |
! # if X_HAVE_UTF8_STRING && HAVE_XUTF8SETWMPROPERTIES
|
|
Karsten Hopp |
0ccd26 |
# define USE_UTF8_STRING
|
|
Karsten Hopp |
0ccd26 |
# endif
|
|
Karsten Hopp |
0ccd26 |
#endif
|
|
Karsten Hopp |
0ccd26 |
*** ../vim-7.4.474/src/version.c 2014-10-11 12:48:22.541259950 +0200
|
|
Karsten Hopp |
0ccd26 |
--- src/version.c 2014-10-11 14:42:47.821274946 +0200
|
|
Karsten Hopp |
0ccd26 |
***************
|
|
Karsten Hopp |
0ccd26 |
*** 743,744 ****
|
|
Karsten Hopp |
0ccd26 |
--- 743,746 ----
|
|
Karsten Hopp |
0ccd26 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
0ccd26 |
+ /**/
|
|
Karsten Hopp |
0ccd26 |
+ 475,
|
|
Karsten Hopp |
0ccd26 |
/**/
|
|
Karsten Hopp |
0ccd26 |
|
|
Karsten Hopp |
0ccd26 |
--
|
|
Karsten Hopp |
0ccd26 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
0ccd26 |
253. You wait for a slow loading web page before going to the toilet.
|
|
Karsten Hopp |
0ccd26 |
|
|
Karsten Hopp |
0ccd26 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
0ccd26 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
0ccd26 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
0ccd26 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|