acinclude: only set default model to hd1 if boxtype=coolstream

This commit is contained in:
Stefan Seyfried
2017-02-13 00:03:58 +01:00
committed by M. Liebmann
parent 690ac7c428
commit 62ee5185b5

View File

@@ -511,7 +511,7 @@ AC_ARG_WITH(boxmodel,
*)
AC_MSG_ERROR([unsupported value $withval for --with-boxmodel])
;;
esac], [BOXMODEL="hd1"]
esac], [test "$BOXTYPE" = "coolstream" && BOXMODEL="hd1" || true]
[if test "$BOXTYPE" = "dreambox" -o "$BOXTYPE" = "ipbox" && test -z "$BOXMODEL"; then
AC_MSG_ERROR([Dreambox/IPBox needs --with-boxmodel])
fi])