configure.ac: replace numeric expr with test

the operator <= actually did just lexicographic compare for number eg
2.1 - compare just major version now
This commit is contained in:
Martin Pulec
2025-05-30 15:16:51 +02:00
parent 2634e6379c
commit b899dbeec7

View File

@@ -263,7 +263,8 @@ if test $system = MacOSX; then
dyl_ver=$($DYLIBBUNDLER -V >/dev/null 2>&1 && dylibbundler -V | cut -d\ -f2 || echo unknown)
AC_MSG_RESULT($dyl_ver);
if test "x$dyl_ver" = xunknown || expr "$dyl_ver" \<= 2 >/dev/null; then
if test "x$dyl_ver" = xunknown || test "${dyl_ver%%.*}" -eq 1
then
UG_MSG_WARN([Original dylib bundler detected, recommending v2 instead (https://github.com/SCG82/macdylibbundler)])
else
DYLIBBUNDLER="$DYLIBBUNDLER -f" # bundle also frameworks