mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
autogen.sh: allow calling from out-of-tree
https://bugzilla.gnome.org/show_bug.cgi?id=667664
This commit is contained in:
parent
3af9544f95
commit
1f1f6e0ed5
1 changed files with 10 additions and 2 deletions
12
autogen.sh
12
autogen.sh
|
@ -1,6 +1,12 @@
|
|||
#!/bin/sh
|
||||
# Run this to generate all the initial makefiles, etc.
|
||||
|
||||
test -n "$srcdir" || srcdir=`dirname "$0"`
|
||||
test -n "$srcdir" || srcdir=.
|
||||
|
||||
olddir=`pwd`
|
||||
cd "$srcdir"
|
||||
|
||||
DIE=0
|
||||
package=gstreamer
|
||||
srcfile=gst/gst.c
|
||||
|
@ -97,13 +103,15 @@ test -n "$NOCONFIGURE" && {
|
|||
exit 0
|
||||
}
|
||||
|
||||
cd "$olddir"
|
||||
|
||||
echo "+ running configure ... "
|
||||
test ! -z "$CONFIGURE_DEF_OPT" && echo " ./configure default flags: $CONFIGURE_DEF_OPT"
|
||||
test ! -z "$CONFIGURE_EXT_OPT" && echo " ./configure external flags: $CONFIGURE_EXT_OPT"
|
||||
echo
|
||||
|
||||
echo ./configure $CONFIGURE_DEF_OPT $CONFIGURE_EXT_OPT
|
||||
./configure $CONFIGURE_DEF_OPT $CONFIGURE_EXT_OPT || {
|
||||
echo "$srcdir/configure" $CONFIGURE_DEF_OPT $CONFIGURE_EXT_OPT
|
||||
"$srcdir/configure" $CONFIGURE_DEF_OPT $CONFIGURE_EXT_OPT || {
|
||||
echo " configure failed"
|
||||
exit 1
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue