From 3e7779ad320842e085cfae8a6bfaccdd9a03c53e Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Wed, 6 May 2020 09:55:38 +0200 Subject: [PATCH] Configure: check dylibbundler only on Mac --- configure.ac | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/configure.ac b/configure.ac index 829d551f3..5368bd3c7 100644 --- a/configure.ac +++ b/configure.ac @@ -296,16 +296,18 @@ $TARGET: "$2" $4 # --------------------------------------------------------------------- # Dylib bundler # --------------------------------------------------------------------- -AC_PATH_PROGS(DYLIBBUNDLER, dylibbundler, [true]) -if test "$DYLIBBUNDLER" = true -a $system = MacOSX; then - AC_MSG_WARN([*** echo "WARNING: Cannot find dylibbundler. We cannot put libraries into a bundle so it probably won't be portable."]) -else - AC_MSG_CHECKING([dylibbundler version]) - dyl_ver=$($DYLIBBUNDLER -V >/dev/null 2>&1 && dylibbundler -V | cut -d\ -f2 || echo unknown) - AC_MSG_RESULT($dyl_ver); +if test $system = MacOSX; then + AC_PATH_PROGS(DYLIBBUNDLER, dylibbundler, [true]) + if test "$DYLIBBUNDLER" = true; then + AC_MSG_WARN([*** echo "WARNING: Cannot find dylibbundler. We cannot put libraries into a bundle so it probably won't be portable."]) + else + AC_MSG_CHECKING([dylibbundler version]) + dyl_ver=$($DYLIBBUNDLER -V >/dev/null 2>&1 && dylibbundler -V | cut -d\ -f2 || echo unknown) + AC_MSG_RESULT($dyl_ver); - if test $dyl_ver = unknown || expr "$dyl_ver" \<= 2 >/dev/null; then - AC_MSG_WARN([*** Original dylib bundler detected, recommending v2 instead (https://github.com/SCG82/macdylibbundler)]) + if test $dyl_ver = unknown || expr "$dyl_ver" \<= 2 >/dev/null; then + AC_MSG_WARN([*** Original dylib bundler detected, recommending v2 instead (https://github.com/SCG82/macdylibbundler)]) + fi fi fi