Skip to content

Commit

Permalink
build: Fix cnfigure to accept meson.py as a binary
Browse files Browse the repository at this point in the history
  • Loading branch information
tsaunier committed Mar 30, 2016
1 parent bea7556 commit 84654bd
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

which meson > /dev/null 2>&1
MESON=meson
which $MESON > /dev/null 2>&1
if [ $? != 0 ]
then
echo "You should install mesonbuild to build gst-transcoder: http://mesonbuild.com/"
echo "You can simply install it with:"
echo " $ sudo pip3 install meson"
MESON=meson.py
which $MESON > /dev/null 2>&1
if [ $? != 0 ]
then
echo "You should install mesonbuild to build gst-transcoder: http://mesonbuild.com/"
echo "You can simply install it with:"
echo " $ sudo pip3 install meson"

exit 1
exit 1
fi
fi

NINJA=ninja
Expand All @@ -26,7 +32,7 @@ then
fi

rm -Rf build > /dev/null 2>&1
mkdir build/ && cd build && meson ../ $@
mkdir build/ && cd build && $MESON ../ $@

cat <<EOF > $DIR/Makefile
all:
Expand Down

0 comments on commit 84654bd

Please sign in to comment.