Problem: Cannot disable cscope interface using configure, because in
feature.h FEAT_CSCOPE will always be enabled for huge builds
(chdiza)
Solution: Don't define FEAT_CSCOPE from configure script but set the
ENABLE_CSCOPE flag and check for the presence of that flag in
feature.h
fixes: #17825
closes: #17842
Signed-off-by: Christian Brabandt <cb@256bit.org>
then :
enableval=$enable_cscope;
else case e in #(
- e) enable_cscope="no" ;;
+ e) enable_cscope="yes" ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5
printf "%s\n" "$enable_cscope" >&6; }
if test "$enable_cscope" = "yes"; then
- printf "%s\n" "#define FEAT_CSCOPE 1" >>confdefs.h
+ printf "%s\n" "#define ENABLE_CSCOPE 1" >>confdefs.h
fi
#undef HAVE_SYSMOUSE
/* Define if you want to include the Cscope interface. */
-#undef FEAT_CSCOPE
+#undef ENABLE_CSCOPE
/* Define if you don't want to include right-left support. */
#undef DISABLE_RIGHTLEFT
AC_MSG_CHECKING(--enable-cscope argument)
AC_ARG_ENABLE(cscope,
[ --enable-cscope Include cscope interface.], ,
- [enable_cscope="no"])
+ [enable_cscope="yes"])
AC_MSG_RESULT($enable_cscope)
if test "$enable_cscope" = "yes"; then
- AC_DEFINE(FEAT_CSCOPE)
+ AC_DEFINE(ENABLE_CSCOPE)
fi
AC_MSG_CHECKING(--disable-netbeans argument)
/*
* +cscope Unix only: Cscope support.
*/
-#if defined(UNIX) && defined(FEAT_HUGE) && !defined(FEAT_CSCOPE) && !defined(MACOS_X)
+#if defined(UNIX) && defined(FEAT_HUGE) && defined(ENABLE_CSCOPE) && !defined(MACOS_X)
# define FEAT_CSCOPE
#endif
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1589,
/**/
1588,
/**/