-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathautogen.sh
43 lines (34 loc) · 835 Bytes
/
autogen.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh
PROJECT="ffvademo"
test -n "$srcdir" || srcdir="`dirname \"$0\"`"
test -n "$srcdir" || srcdir=.
if ! test -f "$srcdir/configure.ac"; then
echo "Failed to find the top-level $PROJECT directory"
exit 1
fi
olddir="`pwd`"
cd "$srcdir"
mkdir -p m4
GIT=`which git`
if test -z "$GIT"; then
echo "*** No git found ***"
exit 1
else
submodule_init="no"
[ -f ext/ffmpeg/upstream/configure ] || submodule_init="yes"
if test "$submodule_init" = "yes"; then
$GIT submodule init
fi
$GIT submodule update
fi
AUTORECONF=`which autoreconf`
if test -z "$AUTORECONF"; then
echo "*** No autoreconf found ***"
exit 1
else
autoreconf -v --install || exit $?
fi
cd "$olddir"
if test -z "$NOCONFIGURE"; then
$srcdir/configure "$@" && echo "Now type 'make' to compile $PROJECT."
fi