@@ -195,7 +193,6 @@ function parse_user_option() {
--with-http-server)SRS_HTTP_SERVER=YES ;;
--with-http-api)SRS_HTTP_API=YES ;;
--with-librtmp)SRS_LIBRTMP=YES ;;
--with-bwtc)SRS_BWTC=YES ;;
--with-research)SRS_RESEARCH=YES ;;
--with-utest)SRS_UTEST=YES ;;
--with-gperf)SRS_GPERF=YES ;;
...
...
@@ -217,7 +214,6 @@ function parse_user_option() {
--without-http-server)SRS_HTTP_SERVER=NO ;;
--without-http-api)SRS_HTTP_API=NO ;;
--without-librtmp)SRS_LIBRTMP=NO ;;
--without-bwtc)SRS_BWTC=NO ;;
--without-research)SRS_RESEARCH=NO ;;
--without-utest)SRS_UTEST=NO ;;
--without-gperf)SRS_GPERF=NO ;;
...
...
@@ -334,7 +330,6 @@ function apply_user_presets() {
SRS_HTTP_SERVER=NO
SRS_HTTP_API=NO
SRS_LIBRTMP=NO
SRS_BWTC=NO
SRS_RESEARCH=NO
SRS_UTEST=NO
SRS_GPERF=NO
...
...
@@ -359,7 +354,6 @@ function apply_user_presets() {
SRS_HTTP_SERVER=YES
SRS_HTTP_API=YES
SRS_LIBRTMP=YES
SRS_BWTC=YES
SRS_RESEARCH=YES
SRS_UTEST=YES
SRS_GPERF=NO
...
...
@@ -384,7 +378,6 @@ function apply_user_presets() {
SRS_HTTP_SERVER=NO
SRS_HTTP_API=NO
SRS_LIBRTMP=NO
SRS_BWTC=NO
SRS_RESEARCH=NO
SRS_UTEST=NO
SRS_GPERF=NO
...
...
@@ -409,7 +402,6 @@ function apply_user_presets() {
SRS_HTTP_SERVER=NO
SRS_HTTP_API=NO
SRS_LIBRTMP=NO
SRS_BWTC=NO
SRS_RESEARCH=NO
SRS_UTEST=NO
SRS_GPERF=NO
...
...
@@ -434,7 +426,6 @@ function apply_user_presets() {
SRS_HTTP_SERVER=NO
SRS_HTTP_API=NO
SRS_LIBRTMP=NO
SRS_BWTC=NO
SRS_RESEARCH=NO
SRS_UTEST=NO
SRS_GPERF=NO
...
...
@@ -459,7 +450,6 @@ function apply_user_presets() {
SRS_HTTP_SERVER=YES
SRS_HTTP_API=YES
SRS_LIBRTMP=YES
SRS_BWTC=NO
SRS_RESEARCH=NO
SRS_UTEST=NO
SRS_GPERF=NO
...
...
@@ -485,7 +475,6 @@ function apply_user_presets() {
SRS_HTTP_SERVER=YES
SRS_HTTP_API=YES
SRS_LIBRTMP=YES
SRS_BWTC=NO
SRS_RESEARCH=NO
SRS_UTEST=NO
SRS_GPERF=NO
...
...
@@ -510,7 +499,6 @@ function apply_user_presets() {
SRS_HTTP_SERVER=YES
SRS_HTTP_API=YES
SRS_LIBRTMP=YES
SRS_BWTC=YES
SRS_RESEARCH=NO
SRS_UTEST=YES
SRS_GPERF=NO
...
...
@@ -535,7 +523,6 @@ function apply_user_presets() {
SRS_HTTP_SERVER=YES
SRS_HTTP_API=YES
SRS_LIBRTMP=YES
SRS_BWTC=YES
SRS_RESEARCH=YES
SRS_UTEST=YES
SRS_GPERF=NO
...
...
@@ -560,7 +547,6 @@ function apply_user_presets() {
SRS_HTTP_SERVER=YES
SRS_HTTP_API=YES
SRS_LIBRTMP=NO
SRS_BWTC=NO
SRS_RESEARCH=NO
SRS_UTEST=NO
SRS_GPERF=NO
...
...
@@ -585,7 +571,6 @@ function apply_user_presets() {
SRS_HTTP_SERVER=YES
SRS_HTTP_API=YES
SRS_LIBRTMP=YES
SRS_BWTC=YES
SRS_RESEARCH=NO
SRS_UTEST=YES
SRS_GPERF=NO
...
...
@@ -610,7 +595,6 @@ function apply_user_presets() {
SRS_HTTP_SERVER=YES
SRS_HTTP_API=YES
SRS_LIBRTMP=YES
SRS_BWTC=NO
SRS_RESEARCH=NO
SRS_UTEST=NO
SRS_GPERF=NO
...
...
@@ -635,7 +619,6 @@ function apply_user_presets() {
SRS_HTTP_SERVER=YES
SRS_HTTP_API=YES
SRS_LIBRTMP=YES
SRS_BWTC=NO
SRS_RESEARCH=NO
SRS_UTEST=NO
SRS_GPERF=NO
...
...
@@ -694,7 +677,6 @@ function regenerate_options() {
if[$SRS_HTTP_SERVER= YES ]; then SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --with-http-server"; else SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --without-http-server"; fi
if[$SRS_HTTP_API= YES ]; then SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --with-http-api"; else SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --without-http-api"; fi
if[$SRS_LIBRTMP= YES ]; then SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --with-librtmp"; else SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --without-librtmp"; fi
if[$SRS_BWTC= YES ]; then SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --with-bwtc"; else SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --without-bwtc"; fi
if[$SRS_RESEARCH= YES ]; then SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --with-research"; else SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --without-research"; fi
if[$SRS_UTEST= YES ]; then SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --with-utest"; else SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --without-utest"; fi
if[$SRS_GPERF= YES ]; then SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --with-gperf"; else SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --without-gperf"; fi
...
...
@@ -741,7 +723,6 @@ function check_option_conflicts() {
# user should disable all other features
if[$SRS_EMBEDED_CPU= YES ]; then
if[$SRS_FFMPEG_TOOL= YES ]; then echo"ffmpeg for arm is not available, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_BWTC= YES ]; then echo"bwtc for arm is not available, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_RESEARCH= YES ]; then echo"research for arm is not available, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_GPERF= YES ]; then echo"gperf for arm is not available, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_GPERF_MC= YES ]; then echo"gmc for arm is not available, see: ./configure --help"; __check_ok=NO; fi
...
...
@@ -767,7 +748,6 @@ function check_option_conflicts() {
if[$SRS_HTTP_SERVER= RESERVED ]; then echo"you must specifies the http-server, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_HTTP_API= RESERVED ]; then echo"you must specifies the http-api, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_LIBRTMP= RESERVED ]; then echo"you must specifies the librtmp, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_BWTC= RESERVED ]; then echo"you must specifies the bwtc, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_RESEARCH= RESERVED ]; then echo"you must specifies the research, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_UTEST= RESERVED ]; then echo"you must specifies the utest, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_GPERF= RESERVED ]; then echo"you must specifies the gperf, see: ./configure --help"; __check_ok=NO; fi