Skip to content

Commit b124b8d

Browse files
committed
patch 9.1.1589: Cannot disable cscope interface using configure
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 <[email protected]>
1 parent a566a78 commit b124b8d

5 files changed

Lines changed: 8 additions & 6 deletions

File tree

src/auto/configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8653,14 +8653,14 @@ if test ${enable_cscope+y}
86538653
then :
86548654
enableval=$enable_cscope;
86558655
else case e in #(
8656-
e) enable_cscope="no" ;;
8656+
e) enable_cscope="yes" ;;
86578657
esac
86588658
fi
86598659

86608660
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5
86618661
printf "%s\n" "$enable_cscope" >&6; }
86628662
if test "$enable_cscope" = "yes"; then
8663-
printf "%s\n" "#define FEAT_CSCOPE 1" >>confdefs.h
8663+
printf "%s\n" "#define ENABLE_CSCOPE 1" >>confdefs.h
86648664

86658665
fi
86668666

src/config.h.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@
395395
#undef HAVE_SYSMOUSE
396396

397397
/* Define if you want to include the Cscope interface. */
398-
#undef FEAT_CSCOPE
398+
#undef ENABLE_CSCOPE
399399

400400
/* Define if you don't want to include right-left support. */
401401
#undef DISABLE_RIGHTLEFT

src/configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2168,10 +2168,10 @@ AC_SUBST(RUBY_LIBS)
21682168
AC_MSG_CHECKING(--enable-cscope argument)
21692169
AC_ARG_ENABLE(cscope,
21702170
[ --enable-cscope Include cscope interface.], ,
2171-
[enable_cscope="no"])
2171+
[enable_cscope="yes"])
21722172
AC_MSG_RESULT($enable_cscope)
21732173
if test "$enable_cscope" = "yes"; then
2174-
AC_DEFINE(FEAT_CSCOPE)
2174+
AC_DEFINE(ENABLE_CSCOPE)
21752175
fi
21762176

21772177
AC_MSG_CHECKING(--disable-netbeans argument)

src/feature.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@
236236
/*
237237
* +cscope Unix only: Cscope support.
238238
*/
239-
#if defined(UNIX) && defined(FEAT_HUGE) && !defined(FEAT_CSCOPE) && !defined(MACOS_X)
239+
#if defined(UNIX) && defined(FEAT_HUGE) && defined(ENABLE_CSCOPE) && !defined(MACOS_X)
240240
# define FEAT_CSCOPE
241241
#endif
242242

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,8 @@ static char *(features[]) =
719719

720720
static int included_patches[] =
721721
{ /* Add new patch number below this line */
722+
/**/
723+
1589,
722724
/**/
723725
1588,
724726
/**/

0 commit comments

Comments
 (0)