forked from EricssonResearch/openwebrtc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathautogen.sh
executable file
·48 lines (40 loc) · 1007 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
44
45
46
47
48
#!/bin/bash
# you can either set the environment variables AUTOCONF, AUTOHEADER, AUTOMAKE,
# ACLOCAL, AUTOPOINT and/or LIBTOOLIZE to the right versions, or leave them
# unset and get the defaults
srcdir=`dirname $0`
(test -d $srcdir/m4) || mkdir $srcdir/m4
pushd $srcdir > /dev/null
gtkdocize && \
autoreconf --verbose --force --install --make || {
echo 'autogen.sh failed';
exit 1;
}
popd > /dev/null
while test "x$@" != "x" ; do
optarg=`expr "x$@" : 'x[^=]*=\(.*\)'`
case "$@" in
--noconfigure)
NOCONFIGURE=defined
AUTOGEN_EXT_OPT="$AUTOGEN_EXT_OPT --noconfigure"
echo "+ configure run disabled"
shift
;;
esac
done
for arg do CONFIGURE_EXT_OPT="$CONFIGURE_EXT_OPT $arg"; done
if test ! -z "$CONFIGURE_EXT_OPT"
then
echo "+ options passed to configure: $CONFIGURE_EXT_OPT"
fi
test -n "$NOCONFIGURE" && {
echo 'Skipping configure stage';
exit 0
}
$srcdir/configure $* || {
echo 'configure failed';
exit 1;
}
echo
echo "Now type 'make' to compile this module."
echo