Mirror of the Vim source from https://github.com/vim/vim
リビジョン | 7d66380a6b861363b7c8385ff06554021717bf79 (tree) |
---|---|
日時 | 2022-01-18 20:45:03 |
作者 | Bram Moolenaar <Bram@vim....> |
コミッター | Bram Moolenaar |
patch 8.2.4129: building with +sound but without +eval fails
Commit: https://github.com/vim/vim/commit/1247126956c2ba666048b2bf99630eef7495e98e
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 18 11:11:25 2022 +0000
@@ -5256,6 +5256,12 @@ | ||
5256 | 5256 | |
5257 | 5257 | |
5258 | 5258 | |
5259 | +if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then | |
5260 | + has_eval=no | |
5261 | +else | |
5262 | + has_eval=yes | |
5263 | +fi | |
5264 | + | |
5259 | 5265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5 |
5260 | 5266 | $as_echo_n "checking --with-compiledby argument... " >&6; } |
5261 | 5267 |
@@ -5333,7 +5339,7 @@ | ||
5333 | 5339 | $as_echo "$enable_luainterp" >&6; } |
5334 | 5340 | |
5335 | 5341 | if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then |
5336 | - if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then | |
5342 | + if test "$has_eval" = "no"; then | |
5337 | 5343 | as_fn_error $? "cannot use Lua with tiny or small features" "$LINENO" 5 |
5338 | 5344 | fi |
5339 | 5345 |
@@ -6103,7 +6109,7 @@ | ||
6103 | 6109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5 |
6104 | 6110 | $as_echo "$enable_perlinterp" >&6; } |
6105 | 6111 | if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then |
6106 | - if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then | |
6112 | + if test "$has_eval" = "no"; then | |
6107 | 6113 | as_fn_error $? "cannot use Perl with tiny or small features" "$LINENO" 5 |
6108 | 6114 | fi |
6109 | 6115 |
@@ -6308,7 +6314,7 @@ | ||
6308 | 6314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5 |
6309 | 6315 | $as_echo "$enable_pythoninterp" >&6; } |
6310 | 6316 | if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then |
6311 | - if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then | |
6317 | + if test "$has_eval" = "no"; then | |
6312 | 6318 | as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5 |
6313 | 6319 | fi |
6314 | 6320 |
@@ -6659,7 +6665,7 @@ | ||
6659 | 6665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5 |
6660 | 6666 | $as_echo "$enable_python3interp" >&6; } |
6661 | 6667 | if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then |
6662 | - if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then | |
6668 | + if test "$has_eval" = "no"; then | |
6663 | 6669 | as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5 |
6664 | 6670 | fi |
6665 | 6671 |
@@ -7587,7 +7593,7 @@ | ||
7587 | 7593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5 |
7588 | 7594 | $as_echo "$enable_rubyinterp" >&6; } |
7589 | 7595 | if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then |
7590 | - if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then | |
7596 | + if test "$has_eval" = "no"; then | |
7591 | 7597 | as_fn_error $? "cannot use Ruby with tiny or small features" "$LINENO" 5 |
7592 | 7598 | fi |
7593 | 7599 |
@@ -7765,7 +7771,7 @@ | ||
7765 | 7771 | fi |
7766 | 7772 | |
7767 | 7773 | if test "$enable_netbeans" = "yes"; then |
7768 | - if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then | |
7774 | + if test "$has_eval" = "no"; then | |
7769 | 7775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use NetBeans with tiny or small features" >&5 |
7770 | 7776 | $as_echo "cannot use NetBeans with tiny or small features" >&6; } |
7771 | 7777 | enable_netbeans="no" |
@@ -7788,7 +7794,7 @@ | ||
7788 | 7794 | fi |
7789 | 7795 | |
7790 | 7796 | if test "$enable_channel" = "yes"; then |
7791 | - if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then | |
7797 | + if test "$has_eval" = "no"; then | |
7792 | 7798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use channels with tiny or small features" >&5 |
7793 | 7799 | $as_echo "cannot use channels with tiny or small features" >&6; } |
7794 | 7800 | enable_channel="no" |
@@ -8092,7 +8098,7 @@ | ||
8092 | 8098 | fi |
8093 | 8099 | |
8094 | 8100 | if test "$enable_terminal" = "yes" || test "$enable_terminal" = "auto" -a "x$features" = "xhuge" ; then |
8095 | - if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then | |
8101 | + if test "$has_eval" = "no"; then | |
8096 | 8102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use terminal emulator with tiny or small features" >&5 |
8097 | 8103 | $as_echo "cannot use terminal emulator with tiny or small features" >&6; } |
8098 | 8104 | enable_terminal="no" |
@@ -13051,8 +13057,14 @@ | ||
13051 | 13057 | enable_canberra="no" |
13052 | 13058 | fi |
13053 | 13059 | else |
13054 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_canberra" >&5 | |
13060 | + if test "$enable_canberra" = "yes" -a "$has_eval" = "no"; then | |
13061 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use sound with tiny or small features" >&5 | |
13062 | +$as_echo "cannot use sound with tiny or small features" >&6; } | |
13063 | + enable_canberra="no" | |
13064 | + else | |
13065 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_canberra" >&5 | |
13055 | 13066 | $as_echo "$enable_canberra" >&6; } |
13067 | + fi | |
13056 | 13068 | fi |
13057 | 13069 | if test "$enable_canberra" = "yes"; then |
13058 | 13070 | if test "x$PKG_CONFIG" != "xno"; then |
@@ -13067,7 +13079,7 @@ | ||
13067 | 13079 | $as_echo_n "checking for libcanberra... " >&6; } |
13068 | 13080 | ac_save_CFLAGS="$CFLAGS" |
13069 | 13081 | ac_save_LIBS="$LIBS" |
13070 | - if `echo "$CFLAGS" | grep -v "$canberra_cflags" >/dev/null`; then | |
13082 | + if `echo "$CFLAGS" | grep -v "$canberra_cflags" 2>/dev/null`; then | |
13071 | 13083 | CFLAGS="$CFLAGS $canberra_cflags" |
13072 | 13084 | fi |
13073 | 13085 | LIBS="$LIBS $canberra_lib" |
@@ -540,6 +540,12 @@ | ||
540 | 540 | AC_SUBST(dovimdiff) |
541 | 541 | AC_SUBST(dogvimdiff) |
542 | 542 | |
543 | +if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then | |
544 | + has_eval=no | |
545 | +else | |
546 | + has_eval=yes | |
547 | +fi | |
548 | + | |
543 | 549 | AC_MSG_CHECKING(--with-compiledby argument) |
544 | 550 | AC_ARG_WITH(compiledby, [ --with-compiledby=NAME name to show in :version message], |
545 | 551 | compiledby="$withval"; AC_MSG_RESULT($withval), |
@@ -585,7 +591,7 @@ | ||
585 | 591 | AC_MSG_RESULT($enable_luainterp) |
586 | 592 | |
587 | 593 | if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then |
588 | - if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then | |
594 | + if test "$has_eval" = "no"; then | |
589 | 595 | AC_MSG_ERROR([cannot use Lua with tiny or small features]) |
590 | 596 | fi |
591 | 597 |
@@ -1072,7 +1078,7 @@ | ||
1072 | 1078 | [enable_perlinterp="no"]) |
1073 | 1079 | AC_MSG_RESULT($enable_perlinterp) |
1074 | 1080 | if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then |
1075 | - if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then | |
1081 | + if test "$has_eval" = "no"; then | |
1076 | 1082 | AC_MSG_ERROR([cannot use Perl with tiny or small features]) |
1077 | 1083 | fi |
1078 | 1084 | AC_SUBST(vi_cv_path_perl) |
@@ -1221,7 +1227,7 @@ | ||
1221 | 1227 | [enable_pythoninterp="no"]) |
1222 | 1228 | AC_MSG_RESULT($enable_pythoninterp) |
1223 | 1229 | if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then |
1224 | - if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then | |
1230 | + if test "$has_eval" = "no"; then | |
1225 | 1231 | AC_MSG_ERROR([cannot use Python with tiny or small features]) |
1226 | 1232 | fi |
1227 | 1233 |
@@ -1456,7 +1462,7 @@ | ||
1456 | 1462 | [enable_python3interp="no"]) |
1457 | 1463 | AC_MSG_RESULT($enable_python3interp) |
1458 | 1464 | if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then |
1459 | - if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then | |
1465 | + if test "$has_eval" = "no"; then | |
1460 | 1466 | AC_MSG_ERROR([cannot use Python with tiny or small features]) |
1461 | 1467 | fi |
1462 | 1468 |
@@ -1969,7 +1975,7 @@ | ||
1969 | 1975 | [enable_rubyinterp="no"]) |
1970 | 1976 | AC_MSG_RESULT($enable_rubyinterp) |
1971 | 1977 | if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then |
1972 | - if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then | |
1978 | + if test "$has_eval" = "no"; then | |
1973 | 1979 | AC_MSG_ERROR([cannot use Ruby with tiny or small features]) |
1974 | 1980 | fi |
1975 | 1981 |
@@ -2082,7 +2088,7 @@ | ||
2082 | 2088 | [ --disable-netbeans Disable NetBeans integration support.], |
2083 | 2089 | , [enable_netbeans="yes"]) |
2084 | 2090 | if test "$enable_netbeans" = "yes"; then |
2085 | - if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then | |
2091 | + if test "$has_eval" = "no"; then | |
2086 | 2092 | AC_MSG_RESULT([cannot use NetBeans with tiny or small features]) |
2087 | 2093 | enable_netbeans="no" |
2088 | 2094 | else |
@@ -2097,7 +2103,7 @@ | ||
2097 | 2103 | [ --disable-channel Disable process communication support.], |
2098 | 2104 | , [enable_channel="yes"]) |
2099 | 2105 | if test "$enable_channel" = "yes"; then |
2100 | - if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then | |
2106 | + if test "$has_eval" = "no"; then | |
2101 | 2107 | AC_MSG_RESULT([cannot use channels with tiny or small features]) |
2102 | 2108 | enable_channel="no" |
2103 | 2109 | else |
@@ -2205,7 +2211,7 @@ | ||
2205 | 2211 | [ --enable-terminal Enable terminal emulation support.], |
2206 | 2212 | , [enable_terminal="auto"]) |
2207 | 2213 | if test "$enable_terminal" = "yes" || test "$enable_terminal" = "auto" -a "x$features" = "xhuge" ; then |
2208 | - if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then | |
2214 | + if test "$has_eval" = "no"; then | |
2209 | 2215 | AC_MSG_RESULT([cannot use terminal emulator with tiny or small features]) |
2210 | 2216 | enable_terminal="no" |
2211 | 2217 | else |
@@ -3794,7 +3800,12 @@ | ||
3794 | 3800 | enable_canberra="no" |
3795 | 3801 | fi |
3796 | 3802 | else |
3797 | - AC_MSG_RESULT($enable_canberra) | |
3803 | + if test "$enable_canberra" = "yes" -a "$has_eval" = "no"; then | |
3804 | + AC_MSG_RESULT([cannot use sound with tiny or small features]) | |
3805 | + enable_canberra="no" | |
3806 | + else | |
3807 | + AC_MSG_RESULT($enable_canberra) | |
3808 | + fi | |
3798 | 3809 | fi |
3799 | 3810 | if test "$enable_canberra" = "yes"; then |
3800 | 3811 | if test "x$PKG_CONFIG" != "xno"; then |
@@ -3808,7 +3819,7 @@ | ||
3808 | 3819 | AC_MSG_CHECKING(for libcanberra) |
3809 | 3820 | ac_save_CFLAGS="$CFLAGS" |
3810 | 3821 | ac_save_LIBS="$LIBS" |
3811 | - if `echo "$CFLAGS" | grep -v "$canberra_cflags" >/dev/null`; then | |
3822 | + if `echo "$CFLAGS" | grep -v "$canberra_cflags" 2>/dev/null`; then | |
3812 | 3823 | CFLAGS="$CFLAGS $canberra_cflags" |
3813 | 3824 | fi |
3814 | 3825 | LIBS="$LIBS $canberra_lib" |
@@ -751,6 +751,8 @@ | ||
751 | 751 | static int included_patches[] = |
752 | 752 | { /* Add new patch number below this line */ |
753 | 753 | /**/ |
754 | + 4129, | |
755 | +/**/ | |
754 | 756 | 4128, |
755 | 757 | /**/ |
756 | 758 | 4127, |