winlin

fix script build bug

@@ -242,7 +242,7 @@ if [ ! -f ${SRS_OBJS}/st/libst.so ]; then echo "build st-1.9 failed."; exit -1; @@ -242,7 +242,7 @@ if [ ! -f ${SRS_OBJS}/st/libst.so ]; then echo "build st-1.9 failed."; exit -1;
242 ##################################################################################### 242 #####################################################################################
243 # http-parser-2.1 243 # http-parser-2.1
244 ##################################################################################### 244 #####################################################################################
245 -if [ $SRS_HTTP_CALLBACK = YES ]; then 245 +if [ $SRS_HTTP_PARSER = YES ]; then
246 if [[ -f ${SRS_OBJS}/hp/http_parser.h && -f ${SRS_OBJS}/hp/libhttp_parser.a ]]; then 246 if [[ -f ${SRS_OBJS}/hp/http_parser.h && -f ${SRS_OBJS}/hp/libhttp_parser.a ]]; then
247 echo "http-parser-2.1 is ok."; 247 echo "http-parser-2.1 is ok.";
248 else 248 else
@@ -262,6 +262,18 @@ if [ $SRS_HTTP_CALLBACK = YES ]; then @@ -262,6 +262,18 @@ if [ $SRS_HTTP_CALLBACK = YES ]; then
262 if [[ ! -f ${SRS_OBJS}/hp/libhttp_parser.a ]]; then echo "build http-parser-2.1 failed"; exit -1; fi 262 if [[ ! -f ${SRS_OBJS}/hp/libhttp_parser.a ]]; then echo "build http-parser-2.1 failed"; exit -1; fi
263 fi 263 fi
264 264
  265 +if [ $SRS_HTTP_PARSER = YES ]; then
  266 + echo "#define SRS_HTTP_PARSER" >> $SRS_AUTO_HEADERS_H
  267 +else
  268 + echo "#undef SRS_HTTP_PARSER" >> $SRS_AUTO_HEADERS_H
  269 +fi
  270 +
  271 +if [ $SRS_HTTP_SERVER = YES ]; then
  272 + echo "#define SRS_HTTP_SERVER" >> $SRS_AUTO_HEADERS_H
  273 +else
  274 + echo "#undef SRS_HTTP_SERVER" >> $SRS_AUTO_HEADERS_H
  275 +fi
  276 +
265 ##################################################################################### 277 #####################################################################################
266 # nginx for HLS, nginx-1.5.0 278 # nginx for HLS, nginx-1.5.0
267 ##################################################################################### 279 #####################################################################################
@@ -17,7 +17,9 @@ SRS_HLS=RESERVED @@ -17,7 +17,9 @@ SRS_HLS=RESERVED
17 SRS_NGINX=RESERVED 17 SRS_NGINX=RESERVED
18 SRS_SSL=RESERVED 18 SRS_SSL=RESERVED
19 SRS_FFMPEG=RESERVED 19 SRS_FFMPEG=RESERVED
  20 +SRS_HTTP_PARSER=RESERVED
20 SRS_HTTP_CALLBACK=RESERVED 21 SRS_HTTP_CALLBACK=RESERVED
  22 +SRS_HTTP_SERVER=RESERVED
21 SRS_LIBRTMP=RESERVED # srs-librtmp 23 SRS_LIBRTMP=RESERVED # srs-librtmp
22 SRS_BWTC=RESERVED # srs-bandwidth-test client 24 SRS_BWTC=RESERVED # srs-bandwidth-test client
23 SRS_RESEARCH=RESERVED 25 SRS_RESEARCH=RESERVED
@@ -63,6 +65,7 @@ do @@ -63,6 +65,7 @@ do
63 --with-nginx) SRS_NGINX=YES ;; 65 --with-nginx) SRS_NGINX=YES ;;
64 --with-ffmpeg) SRS_FFMPEG=YES ;; 66 --with-ffmpeg) SRS_FFMPEG=YES ;;
65 --with-http-callback) SRS_HTTP_CALLBACK=YES ;; 67 --with-http-callback) SRS_HTTP_CALLBACK=YES ;;
  68 + --with-http-server) SRS_HTTP_SERVER=YES ;;
66 --with-librtmp) SRS_LIBRTMP=YES ;; 69 --with-librtmp) SRS_LIBRTMP=YES ;;
67 --with-bwtc) SRS_BWTC=YES ;; 70 --with-bwtc) SRS_BWTC=YES ;;
68 --with-research) SRS_RESEARCH=YES ;; 71 --with-research) SRS_RESEARCH=YES ;;
@@ -79,6 +82,7 @@ do @@ -79,6 +82,7 @@ do
79 --without-nginx) SRS_NGINX=NO ;; 82 --without-nginx) SRS_NGINX=NO ;;
80 --without-ffmpeg) SRS_FFMPEG=NO ;; 83 --without-ffmpeg) SRS_FFMPEG=NO ;;
81 --without-http-callback) SRS_HTTP_CALLBACK=NO ;; 84 --without-http-callback) SRS_HTTP_CALLBACK=NO ;;
  85 + --without-http-server) SRS_HTTP_SERVER=NO ;;
82 --without-librtmp) SRS_LIBRTMP=NO ;; 86 --without-librtmp) SRS_LIBRTMP=NO ;;
83 --without-bwtc) SRS_BWTC=NO ;; 87 --without-bwtc) SRS_BWTC=NO ;;
84 --without-research) SRS_RESEARCH=NO ;; 88 --without-research) SRS_RESEARCH=NO ;;
@@ -113,6 +117,7 @@ if [ $SRS_ARM_UBUNTU12 = YES ]; then @@ -113,6 +117,7 @@ if [ $SRS_ARM_UBUNTU12 = YES ]; then
113 if [ $SRS_SSL = RESERVED ]; then SRS_SSL=NO; fi 117 if [ $SRS_SSL = RESERVED ]; then SRS_SSL=NO; fi
114 if [ $SRS_FFMPEG = RESERVED ]; then SRS_FFMPEG=NO; fi 118 if [ $SRS_FFMPEG = RESERVED ]; then SRS_FFMPEG=NO; fi
115 if [ $SRS_HTTP_CALLBACK = RESERVED ]; then SRS_HTTP_CALLBACK=NO; fi 119 if [ $SRS_HTTP_CALLBACK = RESERVED ]; then SRS_HTTP_CALLBACK=NO; fi
  120 + if [ $SRS_HTTP_SERVER = RESERVED ]; then SRS_HTTP_SERVER=NO; fi
116 if [ $SRS_LIBRTMP = RESERVED ]; then SRS_LIBRTMP=NO; fi 121 if [ $SRS_LIBRTMP = RESERVED ]; then SRS_LIBRTMP=NO; fi
117 if [ $SRS_BWTC = RESERVED ]; then SRS_BWTC=NO; fi 122 if [ $SRS_BWTC = RESERVED ]; then SRS_BWTC=NO; fi
118 if [ $SRS_RESEARCH = RESERVED ]; then SRS_RESEARCH=NO; fi 123 if [ $SRS_RESEARCH = RESERVED ]; then SRS_RESEARCH=NO; fi
@@ -133,6 +138,7 @@ else @@ -133,6 +138,7 @@ else
133 if [ $SRS_SSL = RESERVED ]; then SRS_SSL=YES; fi 138 if [ $SRS_SSL = RESERVED ]; then SRS_SSL=YES; fi
134 if [ $SRS_FFMPEG = RESERVED ]; then SRS_FFMPEG=NO; fi 139 if [ $SRS_FFMPEG = RESERVED ]; then SRS_FFMPEG=NO; fi
135 if [ $SRS_HTTP_CALLBACK = RESERVED ]; then SRS_HTTP_CALLBACK=NO; fi 140 if [ $SRS_HTTP_CALLBACK = RESERVED ]; then SRS_HTTP_CALLBACK=NO; fi
  141 + if [ $SRS_HTTP_SERVER = RESERVED ]; then SRS_HTTP_SERVER=NO; fi
136 if [ $SRS_LIBRTMP = RESERVED ]; then SRS_LIBRTMP=NO; fi 142 if [ $SRS_LIBRTMP = RESERVED ]; then SRS_LIBRTMP=NO; fi
137 if [ $SRS_BWTC = RESERVED ]; then SRS_BWTC=NO; fi 143 if [ $SRS_BWTC = RESERVED ]; then SRS_BWTC=NO; fi
138 if [ $SRS_RESEARCH = RESERVED ]; then SRS_RESEARCH=NO; fi 144 if [ $SRS_RESEARCH = RESERVED ]; then SRS_RESEARCH=NO; fi
@@ -155,6 +161,7 @@ if [ $SRS_DEV = YES ]; then @@ -155,6 +161,7 @@ if [ $SRS_DEV = YES ]; then
155 SRS_SSL=YES 161 SRS_SSL=YES
156 SRS_FFMPEG=YES 162 SRS_FFMPEG=YES
157 SRS_HTTP_CALLBACK=YES 163 SRS_HTTP_CALLBACK=YES
  164 + SRS_HTTP_SERVER=YES
158 SRS_LIBRTMP=YES 165 SRS_LIBRTMP=YES
159 SRS_BWTC=YES 166 SRS_BWTC=YES
160 SRS_RESEARCH=YES 167 SRS_RESEARCH=YES
@@ -176,6 +183,7 @@ if [ $SRS_PI = YES ]; then @@ -176,6 +183,7 @@ if [ $SRS_PI = YES ]; then
176 SRS_SSL=YES 183 SRS_SSL=YES
177 SRS_FFMPEG=NO 184 SRS_FFMPEG=NO
178 SRS_HTTP_CALLBACK=NO 185 SRS_HTTP_CALLBACK=NO
  186 + SRS_HTTP_SERVER=YES
179 SRS_LIBRTMP=NO 187 SRS_LIBRTMP=NO
180 SRS_BWTC=NO 188 SRS_BWTC=NO
181 SRS_RESEARCH=NO 189 SRS_RESEARCH=NO
@@ -190,6 +198,10 @@ if [ $SRS_PI = YES ]; then @@ -190,6 +198,10 @@ if [ $SRS_PI = YES ]; then
190 SRS_STATIC=YES 198 SRS_STATIC=YES
191 fi 199 fi
192 200
  201 +# if http-xxxx specified, open the SRS_HTTP_PARSER
  202 +if [ $SRS_HTTP_CALLBACK = YES ]; then SRS_HTTP_PARSER=YES; fi
  203 +if [ $SRS_HTTP_SERVER = YES ]; then SRS_HTTP_PARSER=YES; fi
  204 +
193 # parse the jobs for make 205 # parse the jobs for make
194 if [[ "" -eq SRS_JOBS ]]; then 206 if [[ "" -eq SRS_JOBS ]]; then
195 export SRS_JOBS="--jobs" 207 export SRS_JOBS="--jobs"
@@ -212,7 +224,7 @@ if [ $help = yes ]; then @@ -212,7 +224,7 @@ if [ $help = yes ]; then
212 to delivery h264 video and aac audio to flash player. 224 to delivery h264 video and aac audio to flash player.
213 --with-hls enable hls streaming, build nginx as http server for hls. 225 --with-hls enable hls streaming, build nginx as http server for hls.
214 --with-http-callback enable http hooks, build cherrypy as demo api server. 226 --with-http-callback enable http hooks, build cherrypy as demo api server.
215 - srs will call the http hooks, such as: on_connect. 227 + --with-http-server enable http server to delivery http stream.
216 --with-ffmpeg enable transcoding with ffmpeg. 228 --with-ffmpeg enable transcoding with ffmpeg.
217 --with-librtmp enable srs-librtmp, library for client. 229 --with-librtmp enable srs-librtmp, library for client.
218 --with-bwtc enable srs bandwidth test client tool. 230 --with-bwtc enable srs bandwidth test client tool.
@@ -228,6 +240,7 @@ if [ $help = yes ]; then @@ -228,6 +240,7 @@ if [ $help = yes ]; then
228 --without-ssl disable rtmp complex handshake. 240 --without-ssl disable rtmp complex handshake.
229 --without-hls disable hls, rtmp streaming only. 241 --without-hls disable hls, rtmp streaming only.
230 --without-http-callback disable http, http hooks callback. 242 --without-http-callback disable http, http hooks callback.
  243 + --without-http-server disable http server, use external server to delivery http stream.
231 --without-ffmpeg disable the ffmpeg transcoding feature. 244 --without-ffmpeg disable the ffmpeg transcoding feature.
232 --without-librtmp disable srs-librtmp, library for client. 245 --without-librtmp disable srs-librtmp, library for client.
233 --without-bwtc disable srs bandwidth test client tool. 246 --without-bwtc disable srs bandwidth test client tool.
@@ -297,7 +310,8 @@ if [ $SRS_HLS = RESERVED ]; then echo "you must specifies the hls, see: ./config @@ -297,7 +310,8 @@ if [ $SRS_HLS = RESERVED ]; then echo "you must specifies the hls, see: ./config
297 if [ $SRS_NGINX = RESERVED ]; then echo "you must specifies the nginx, see: ./configure --help"; __check_ok=NO; fi 310 if [ $SRS_NGINX = RESERVED ]; then echo "you must specifies the nginx, see: ./configure --help"; __check_ok=NO; fi
298 if [ $SRS_SSL = RESERVED ]; then echo "you must specifies the ssl, see: ./configure --help"; __check_ok=NO; fi 311 if [ $SRS_SSL = RESERVED ]; then echo "you must specifies the ssl, see: ./configure --help"; __check_ok=NO; fi
299 if [ $SRS_FFMPEG = RESERVED ]; then echo "you must specifies the ffmpeg, see: ./configure --help"; __check_ok=NO; fi 312 if [ $SRS_FFMPEG = RESERVED ]; then echo "you must specifies the ffmpeg, see: ./configure --help"; __check_ok=NO; fi
300 -if [ $SRS_HTTP_CALLBACK = RESERVED ]; then echo "you must specifies the http, see: ./configure --help"; __check_ok=NO; fi 313 +if [ $SRS_HTTP_CALLBACK = RESERVED ]; then echo "you must specifies the http-callback, see: ./configure --help"; __check_ok=NO; fi
  314 +if [ $SRS_HTTP_SERVER = RESERVED ]; then echo "you must specifies the http-server, see: ./configure --help"; __check_ok=NO; fi
301 if [ $SRS_LIBRTMP = RESERVED ]; then echo "you must specifies the librtmp, see: ./configure --help"; __check_ok=NO; fi 315 if [ $SRS_LIBRTMP = RESERVED ]; then echo "you must specifies the librtmp, see: ./configure --help"; __check_ok=NO; fi
302 if [ $SRS_BWTC = RESERVED ]; then echo "you must specifies the bwtc, see: ./configure --help"; __check_ok=NO; fi 316 if [ $SRS_BWTC = RESERVED ]; then echo "you must specifies the bwtc, see: ./configure --help"; __check_ok=NO; fi
303 if [ $SRS_RESEARCH = RESERVED ]; then echo "you must specifies the research, see: ./configure --help"; __check_ok=NO; fi 317 if [ $SRS_RESEARCH = RESERVED ]; then echo "you must specifies the research, see: ./configure --help"; __check_ok=NO; fi
@@ -322,6 +336,7 @@ if [ $SRS_NGINX = YES ]; then SRS_CONFIGURE="${SRS_CONFIGURE} --with-nginx"; els @@ -322,6 +336,7 @@ if [ $SRS_NGINX = YES ]; then SRS_CONFIGURE="${SRS_CONFIGURE} --with-nginx"; els
322 if [ $SRS_SSL = YES ]; then SRS_CONFIGURE="${SRS_CONFIGURE} --with-ssl"; else SRS_CONFIGURE="${SRS_CONFIGURE} --without-ssl"; fi 336 if [ $SRS_SSL = YES ]; then SRS_CONFIGURE="${SRS_CONFIGURE} --with-ssl"; else SRS_CONFIGURE="${SRS_CONFIGURE} --without-ssl"; fi
323 if [ $SRS_FFMPEG = YES ]; then SRS_CONFIGURE="${SRS_CONFIGURE} --with-ffmpeg"; else SRS_CONFIGURE="${SRS_CONFIGURE} --without-ffmpeg"; fi 337 if [ $SRS_FFMPEG = YES ]; then SRS_CONFIGURE="${SRS_CONFIGURE} --with-ffmpeg"; else SRS_CONFIGURE="${SRS_CONFIGURE} --without-ffmpeg"; fi
324 if [ $SRS_HTTP_CALLBACK = YES ]; then SRS_CONFIGURE="${SRS_CONFIGURE} --with-http-callback"; else SRS_CONFIGURE="${SRS_CONFIGURE} --without-http-callback"; fi 338 if [ $SRS_HTTP_CALLBACK = YES ]; then SRS_CONFIGURE="${SRS_CONFIGURE} --with-http-callback"; else SRS_CONFIGURE="${SRS_CONFIGURE} --without-http-callback"; fi
  339 +if [ $SRS_HTTP_SERVER = YES ]; then SRS_CONFIGURE="${SRS_CONFIGURE} --with-http-server"; else SRS_CONFIGURE="${SRS_CONFIGURE} --without-http-server"; fi
325 if [ $SRS_LIBRTMP = YES ]; then SRS_CONFIGURE="${SRS_CONFIGURE} --with-librtmp"; else SRS_CONFIGURE="${SRS_CONFIGURE} --without-librtmp"; fi 340 if [ $SRS_LIBRTMP = YES ]; then SRS_CONFIGURE="${SRS_CONFIGURE} --with-librtmp"; else SRS_CONFIGURE="${SRS_CONFIGURE} --without-librtmp"; fi
326 if [ $SRS_BWTC = YES ]; then SRS_CONFIGURE="${SRS_CONFIGURE} --with-bwtc"; else SRS_CONFIGURE="${SRS_CONFIGURE} --without-bwtc"; fi 341 if [ $SRS_BWTC = YES ]; then SRS_CONFIGURE="${SRS_CONFIGURE} --with-bwtc"; else SRS_CONFIGURE="${SRS_CONFIGURE} --without-bwtc"; fi
327 if [ $SRS_RESEARCH = YES ]; then SRS_CONFIGURE="${SRS_CONFIGURE} --with-research"; else SRS_CONFIGURE="${SRS_CONFIGURE} --without-research"; fi 342 if [ $SRS_RESEARCH = YES ]; then SRS_CONFIGURE="${SRS_CONFIGURE} --with-research"; else SRS_CONFIGURE="${SRS_CONFIGURE} --without-research"; fi
@@ -16,7 +16,7 @@ BLACK="\\e[0m" @@ -16,7 +16,7 @@ BLACK="\\e[0m"
16 16
17 ##################################################################################### 17 #####################################################################################
18 # parse user options, set the variables like: 18 # parse user options, set the variables like:
19 -# srs features: SRS_SSL/SRS_HLS/SRS_NGINX/SRS_FFMPEG/SRS_HTTP_CALLBACK/SRS_RESEARCH/SRS_UTEST 19 +# srs features: SRS_SSL/SRS_HLS/SRS_NGINX/SRS_FFMPEG/SRS_HTTP_CALLBACK/......
20 # build options: SRS_JOBS 20 # build options: SRS_JOBS
21 ##################################################################################### 21 #####################################################################################
22 SRS_AUTO_HEADERS_H="${SRS_OBJS}/srs_auto_headers.hpp" 22 SRS_AUTO_HEADERS_H="${SRS_OBJS}/srs_auto_headers.hpp"
@@ -86,6 +86,7 @@ SrsNginxSummaryColor="\${YELLOW}{disabled} "; if [ $SRS_NGINX = YES ]; then SrsN @@ -86,6 +86,7 @@ SrsNginxSummaryColor="\${YELLOW}{disabled} "; if [ $SRS_NGINX = YES ]; then SrsN
86 SrsSslSummaryColor="\${YELLOW}{disabled} "; if [ $SRS_SSL = YES ]; then SrsSslSummaryColor="\${GREEN}"; fi 86 SrsSslSummaryColor="\${YELLOW}{disabled} "; if [ $SRS_SSL = YES ]; then SrsSslSummaryColor="\${GREEN}"; fi
87 SrsFfmpegSummaryColor="\${YELLOW}{disabled} "; if [ $SRS_FFMPEG = YES ]; then SrsFfmpegSummaryColor="\${GREEN}"; fi 87 SrsFfmpegSummaryColor="\${YELLOW}{disabled} "; if [ $SRS_FFMPEG = YES ]; then SrsFfmpegSummaryColor="\${GREEN}"; fi
88 SrsHttpCallbackSummaryColor="\${YELLOW}{disabled} "; if [ $SRS_HTTP_CALLBACK = YES ]; then SrsHttpCallbackSummaryColor="\${GREEN}"; fi 88 SrsHttpCallbackSummaryColor="\${YELLOW}{disabled} "; if [ $SRS_HTTP_CALLBACK = YES ]; then SrsHttpCallbackSummaryColor="\${GREEN}"; fi
  89 +SrsHttpServerSummaryColor="\${YELLOW}{disabled} "; if [ $SRS_HTTP_SERVER = YES ]; then SrsHttpServerSummaryColor="\${GREEN}"; fi
89 SrsLibrtmpSummaryColor="\${YELLOW}{disabled} "; if [ $SRS_LIBRTMP = YES ]; then SrsLibrtmpSummaryColor="\${GREEN}"; fi 90 SrsLibrtmpSummaryColor="\${YELLOW}{disabled} "; if [ $SRS_LIBRTMP = YES ]; then SrsLibrtmpSummaryColor="\${GREEN}"; fi
90 SrsLibrtmpSSLSummaryColor="\${YELLOW}{disabled} "; if [ $SRS_LIBRTMP = YES ]; then if [ $SRS_SSL = YES ]; then SrsLibrtmpSSLSummaryColor="\${GREEN}"; fi fi 91 SrsLibrtmpSSLSummaryColor="\${YELLOW}{disabled} "; if [ $SRS_LIBRTMP = YES ]; then if [ $SRS_SSL = YES ]; then SrsLibrtmpSSLSummaryColor="\${GREEN}"; fi fi
91 SrsBWTCSummaryColor="\${GREEN}{disabled} "; if [ $SRS_BWTC = YES ]; then SrsBWTCSummaryColor="\${GREEN}"; fi 92 SrsBWTCSummaryColor="\${GREEN}{disabled} "; if [ $SRS_BWTC = YES ]; then SrsBWTCSummaryColor="\${GREEN}"; fi
@@ -151,8 +152,10 @@ echo -e " | ${SrsSslSummaryColor}ssl @see: https://github.com/winlinvip/ @@ -151,8 +152,10 @@ echo -e " | ${SrsSslSummaryColor}ssl @see: https://github.com/winlinvip/
151 echo -e " | ${SrsSslSummaryColor}ssl: support RTMP complex handshake for client required, for instance, flash\${BLACK}" 152 echo -e " | ${SrsSslSummaryColor}ssl: support RTMP complex handshake for client required, for instance, flash\${BLACK}"
152 echo -e " | ${SrsFfmpegSummaryColor}ffmpeg @see: https://github.com/winlinvip/simple-rtmp-server/wiki/FFMPEG\${BLACK}" 153 echo -e " | ${SrsFfmpegSummaryColor}ffmpeg @see: https://github.com/winlinvip/simple-rtmp-server/wiki/FFMPEG\${BLACK}"
153 echo -e " | ${SrsFfmpegSummaryColor}ffmpeg: support transcoding RTMP stream with FFMPEG\${BLACK}" 154 echo -e " | ${SrsFfmpegSummaryColor}ffmpeg: support transcoding RTMP stream with FFMPEG\${BLACK}"
154 -echo -e " | ${SrsHttpCallbackSummaryColor}http @see: https://github.com/winlinvip/simple-rtmp-server/wiki/HTTPCallback\${BLACK}"  
155 -echo -e " | ${SrsHttpCallbackSummaryColor}http: support http callback for authentication and event injection\${BLACK}" 155 +echo -e " | ${SrsHttpCallbackSummaryColor}http-callback @see: https://github.com/winlinvip/simple-rtmp-server/wiki/HTTPCallback\${BLACK}"
  156 +echo -e " | ${SrsHttpCallbackSummaryColor}http-callback: support http callback for authentication and event injection\${BLACK}"
  157 +echo -e " | ${SrsHttpServerSummaryColor}http-server @see: https://github.com/winlinvip/simple-rtmp-server/wiki/HTTPServer\${BLACK}"
  158 +echo -e " | ${SrsHttpServerSummaryColor}http-server: support http server to delivery http stream\${BLACK}"
156 echo -e " \${BLACK}+------------------------------------------------------------------------------------\${BLACK}" 159 echo -e " \${BLACK}+------------------------------------------------------------------------------------\${BLACK}"
157 echo -e "\${GREEN}binaries @see: https://github.com/winlinvip/simple-rtmp-server/wiki/Build\${BLACK}" 160 echo -e "\${GREEN}binaries @see: https://github.com/winlinvip/simple-rtmp-server/wiki/Build\${BLACK}"
158 END 161 END
@@ -375,7 +378,7 @@ END @@ -375,7 +378,7 @@ END
375 LibSTRoot="${SRS_OBJS}/st"; LibSTfile="${LibSTRoot}/libst.a" 378 LibSTRoot="${SRS_OBJS}/st"; LibSTfile="${LibSTRoot}/libst.a"
376 # hp(http-parser) the http request/url parser, for SRS to support HTTP callback. 379 # hp(http-parser) the http request/url parser, for SRS to support HTTP callback.
377 LibHttpParserRoot=""; LibHttpParserfile="" 380 LibHttpParserRoot=""; LibHttpParserfile=""
378 -if [ $SRS_HTTP_CALLBACK = YES ]; then LibHttpParserRoot="${SRS_OBJS}/hp"; LibHttpParserfile="${LibHttpParserRoot}/libhttp_parser.a"; fi 381 +if [ $SRS_HTTP_PARSER = YES ]; then LibHttpParserRoot="${SRS_OBJS}/hp"; LibHttpParserfile="${LibHttpParserRoot}/libhttp_parser.a"; fi
379 # openssl-1.0.1f, for the RTMP complex handshake. 382 # openssl-1.0.1f, for the RTMP complex handshake.
380 LibSSLRoot="";LibSSLfile="" 383 LibSSLRoot="";LibSSLfile=""
381 if [ $SRS_SSL = YES ]; then LibSSLRoot="${SRS_OBJS}/openssl/include"; LibSSLfile="${SRS_OBJS}/openssl/lib/libssl.a ${SRS_OBJS}/openssl/lib/libcrypto.a"; fi 384 if [ $SRS_SSL = YES ]; then LibSSLRoot="${SRS_OBJS}/openssl/include"; LibSSLfile="${SRS_OBJS}/openssl/lib/libssl.a ${SRS_OBJS}/openssl/lib/libcrypto.a"; fi
@@ -519,6 +522,11 @@ if [ $SRS_HTTP_CALLBACK = YES ]; then @@ -519,6 +522,11 @@ if [ $SRS_HTTP_CALLBACK = YES ]; then
519 else 522 else
520 echo -e "${YELLOW}warning: without http hooks callback over CherryPy support${BLACK}" 523 echo -e "${YELLOW}warning: without http hooks callback over CherryPy support${BLACK}"
521 fi 524 fi
  525 +if [ $SRS_HTTP_SERVER = YES ]; then
  526 + echo -e "${GREEN}http server to delivery http stream is enabled${BLACK}"
  527 +else
  528 + echo -e "${YELLOW}warning: without http server to delivery http stream support${BLACK}"
  529 +fi
522 if [ $SRS_LIBRTMP = YES ]; then 530 if [ $SRS_LIBRTMP = YES ]; then
523 echo -e "${GREEN}srs-librtmp for client is enabled${BLACK}" 531 echo -e "${GREEN}srs-librtmp for client is enabled${BLACK}"
524 else 532 else