mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
auto install depends software for ubuntu or centos.
This commit is contained in:
parent
5d50bdc3fc
commit
bb90881489
4 changed files with 178 additions and 8 deletions
11
trunk/configure
vendored
11
trunk/configure
vendored
|
@ -15,14 +15,15 @@ BLACK="\\e[0m"
|
|||
# parse user options.
|
||||
. auto/options.sh
|
||||
|
||||
# if specifies http, requires sudo to install the CherryPy.
|
||||
if [ $SRS_HTTP = YES ]; then
|
||||
function require_sudoer()
|
||||
{
|
||||
sudo echo "" >/dev/null 2>&1
|
||||
ret=$?; if [[ 0 -ne $ret ]]; then echo
|
||||
"--with-http requires sudoer, ret=$ret";
|
||||
|
||||
ret=$?; if [[ 0 -ne $ret ]]; then
|
||||
echo "\"$1\" require sudoer failed. ret=$ret";
|
||||
exit $ret;
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# clean the exists
|
||||
if [[ -f Makefile ]]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue