diff --git a/trunk/auto/depends.sh b/trunk/auto/depends.sh index 58db96402..6f246f8ff 100755 --- a/trunk/auto/depends.sh +++ b/trunk/auto/depends.sh @@ -368,6 +368,19 @@ if [ $SRS_EXPORT_LIBRTMP_PROJECT = NO ]; then OSX_prepare; ret=$?; if [[ 0 -ne $ret ]]; then echo "OSX prepare failed, ret=$ret"; exit $ret; fi fi +##################################################################################### +# check the os. +##################################################################################### +# user must specifies something what a fuck, we suppport following os: +# centos/ubuntu/osx, +# embeded system, for example, mips or arm, +# export srs-librtmp +# others is invalid. +if [[ $OS_IS_UBUNTU = NO && $OS_IS_CENTOS = NO && $OS_IS_OSX = NO && $SRS_EMBEDED_CPU = NO && $SRS_EXPORT_LIBRTMP_PROJECT = NO ]]; then + echo "what a fuck, os not supported." + exit 1 +fi + ##################################################################################### # st-1.9 #####################################################################################