Skip to content

Commit 73b66fd

Browse files
committed
Configure: check dylibbundler only on Mac
1 parent 6eff3e8 commit 73b66fd

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

configure.ac

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -259,16 +259,18 @@ $TARGET: "$2" $4
259259
# ---------------------------------------------------------------------
260260
# Dylib bundler
261261
# ---------------------------------------------------------------------
262-
AC_PATH_PROGS(DYLIBBUNDLER, dylibbundler, [true])
263-
if test "$DYLIBBUNDLER" = true -a $system = MacOSX; then
264-
AC_MSG_WARN([*** echo "WARNING: Cannot find dylibbundler. We cannot put libraries into a bundle so it probably won't be portable."])
265-
else
266-
AC_MSG_CHECKING([dylibbundler version])
267-
dyl_ver=$($DYLIBBUNDLER -V >/dev/null 2>&1 && dylibbundler -V | cut -d\ -f2 || echo unknown)
268-
AC_MSG_RESULT($dyl_ver);
262+
if test $system = MacOSX; then
263+
AC_PATH_PROGS(DYLIBBUNDLER, dylibbundler, [true])
264+
if test "$DYLIBBUNDLER" = true; then
265+
AC_MSG_WARN([*** echo "WARNING: Cannot find dylibbundler. We cannot put libraries into a bundle so it probably won't be portable."])
266+
else
267+
AC_MSG_CHECKING([dylibbundler version])
268+
dyl_ver=$($DYLIBBUNDLER -V >/dev/null 2>&1 && dylibbundler -V | cut -d\ -f2 || echo unknown)
269+
AC_MSG_RESULT($dyl_ver);
269270

270-
if test $dyl_ver = unknown || expr "$dyl_ver" \<= 2 >/dev/null; then
271-
AC_MSG_WARN([*** Original dylib bundler detected, recommending v2 instead (https://github.com/SCG82/macdylibbundler)])
271+
if test $dyl_ver = unknown || expr "$dyl_ver" \<= 2 >/dev/null; then
272+
AC_MSG_WARN([*** Original dylib bundler detected, recommending v2 instead (https://github.com/SCG82/macdylibbundler)])
273+
fi
272274
fi
273275
fi
274276

0 commit comments

Comments
 (0)