]> sjero.net Git - linphone/blob - autogen.sh
Fix upnp forgotten retain
[linphone] / autogen.sh
1 #!/bin/sh
2
3 #AM_VERSION="1.10"
4 if ! type aclocal-$AM_VERSION 1>/dev/null 2>&1; then
5         # automake-1.10 (recommended) is not available on Fedora 8
6         AUTOMAKE=automake
7         ACLOCAL=aclocal
8 else
9         ACLOCAL=aclocal-${AM_VERSION}
10         AUTOMAKE=automake-${AM_VERSION}
11 fi
12
13 if test -f /opt/local/bin/glibtoolize ; then
14         # darwin
15         LIBTOOLIZE=/opt/local/bin/glibtoolize
16 else
17         LIBTOOLIZE=libtoolize
18 fi
19 if test -d /opt/local/share/aclocal ; then
20         ACLOCAL_ARGS="-I /opt/local/share/aclocal"
21 fi
22
23 if test -d /share/aclocal ; then
24         ACLOCAL_ARGS="$ACLOCAL_ARGS -I /share/aclocal"
25 fi
26
27 if test -f /opt/local/bin/intltoolize ; then
28         #darwin
29         INTLTOOLIZE=/opt/local/bin/intltoolize
30 else
31         #on mingw, it is important to invoke intltoolize with an absolute path to avoid a bug
32         INTLTOOLIZE=/usr/bin/intltoolize
33 fi
34
35 echo "Generating build scripts in linphone..."
36 set -x
37 $LIBTOOLIZE --copy --force
38
39 $INTLTOOLIZE -c --force --automake
40 $ACLOCAL -I m4 $ACLOCAL_ARGS
41 autoheader
42 $AUTOMAKE --force-missing --add-missing --copy
43 autoconf
44
45 if [ -x oRTP/autogen.sh ]; then
46         echo "Generating build scripts in oRTP..."
47         ( cd oRTP && ./autogen.sh )
48 fi
49
50 if [ -x mediastreamer2/autogen.sh ]; then
51         echo "Generating build scripts in mediastreamer2..."
52         ( cd mediastreamer2 && ./autogen.sh )
53 fi