0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 9.0.1900: Configure script uses non-portable == comparison

Problem:  Configure script uses non-portable == comparison
Solution: Use the standard and portable "=" instead

closes: #13095
closes: #13099

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yee Cheng Chin <ychin.git@gmail.com>
This commit is contained in:
Yee Cheng Chin
2023-09-16 13:38:26 +02:00
committed by Christian Brabandt
parent ffb13674d1
commit e7d79eb98a
3 changed files with 4 additions and 2 deletions

2
src/auto/configure vendored
View File

@@ -7045,7 +7045,7 @@ else $as_nop
"major_minor='${vi_cv_var_python3_stable_abi}'.split('.'); print('0x{0:X}'.format( (int(major_minor.__getitem__(0))<<24) + (int(major_minor.__getitem__(1))<<16) ))"` "major_minor='${vi_cv_var_python3_stable_abi}'.split('.'); print('0x{0:X}'.format( (int(major_minor.__getitem__(0))<<24) + (int(major_minor.__getitem__(1))<<16) ))"`
fi fi
if test "X$vi_cv_var_python3_stable_abi_hex" == "X"; then if test "X$vi_cv_var_python3_stable_abi_hex" = "X"; then
as_fn_error $? "can't parse Python 3 stable ABI version. It should be \"<major>.<minor>\"" "$LINENO" 5 as_fn_error $? "can't parse Python 3 stable ABI version. It should be \"<major>.<minor>\"" "$LINENO" 5
fi fi
fi fi

View File

@@ -1511,7 +1511,7 @@ if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic";
vi_cv_var_python3_stable_abi_hex=` vi_cv_var_python3_stable_abi_hex=`
${vi_cv_path_python3} -c \ ${vi_cv_path_python3} -c \
"major_minor='${vi_cv_var_python3_stable_abi}'.split('.'); print('0x{0:X}'.format( (int(major_minor.__getitem__(0))<<24) + (int(major_minor.__getitem__(1))<<16) ))"` ]) "major_minor='${vi_cv_var_python3_stable_abi}'.split('.'); print('0x{0:X}'.format( (int(major_minor.__getitem__(0))<<24) + (int(major_minor.__getitem__(1))<<16) ))"` ])
if test "X$vi_cv_var_python3_stable_abi_hex" == "X"; then if test "X$vi_cv_var_python3_stable_abi_hex" = "X"; then
AC_MSG_ERROR([can't parse Python 3 stable ABI version. It should be "<major>.<minor>"]) AC_MSG_ERROR([can't parse Python 3 stable ABI version. It should be "<major>.<minor>"])
fi fi
fi fi

View File

@@ -699,6 +699,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1900,
/**/ /**/
1899, 1899,
/**/ /**/