19
if [ "`uname`" = "Darwin" ]; then
21
LIBTOOLIZE=glibtoolize
24
# Check automake version
25
AM_VERSION=`automake --version | sed -n -e 's#^.* \([0-9]*\)\.\([0-9]*\)[^0-9]*\([0-9]*\).*$#\1 \2 \3#p'`
26
AM_V1=`echo $AM_VERSION | awk '{print $1}'`
27
AM_V2=`echo $AM_VERSION | awk '{print $2}'`
28
AM_V3=`echo $AM_VERSION | awk '{if ($NF > 2) print $3; else print "0";}'`
30
if [ $AM_1 -gt $AM_V1 ]; then
33
if [ $AM_1 -eq $AM_V1 ]; then
34
if [ $AM_2 -gt $AM_V2 ]; then
37
if [ $AM_2 -eq $AM_V2 ]; then
38
if [ $AM_3 -gt $AM_V3 ]; then
46
if [ "$AM_ERROR" = "1" ]; then
48
echo -n "Your automake version `automake --version | sed -n -e 's#[^0-9]* \([0-9]*\.[0-9]*\.*[0-9]*\).*#\1#p'`"
49
echo " is older than the suggested one, $AM_1.$AM_2.$AM_3"
50
echo "Go on at your own risk. :-)"
55
# Check autoconf version
56
AC_VERSION=`autoconf --version | sed -n -e 's#[^0-9]* \([0-9]*\)\.\([0-9]*\).*$#\1 \2#p'`
57
AC_V1=`echo $AC_VERSION | awk '{print $1}'`
58
AC_V2=`echo $AC_VERSION | awk '{print $2}'`
60
if [ $AC_1 -gt $AC_V1 ]; then
63
if [ $AC_1 -eq $AC_V1 ]; then
64
if [ $AC_2 -gt $AC_V2 ]; then
70
if [ "$AC_ERROR" = "1" ]; then
72
echo -n "Your autoconf version `autoconf --version | sed -n -e 's#[^0-9]* \([0-9]*\.[0-9]*\).*#\1#p'`"
73
echo " is older than the suggested one, $AC_1.$AC_2"
74
echo "Go on at your own risk. :-)"
79
# Check libtool version
80
LT_VERSION=`$LIBTOOL --version | sed -n -e 's#[^0-9]* \([0-9]*\)\.\([0-9]*\).*$#\1 \2#p'`
81
LT_V1=`echo $LT_VERSION | awk '{print $1}'`
82
LT_V2=`echo $LT_VERSION | awk '{print $2}'`
84
if [ $LT_1 -gt $LT_V1 ]; then
87
if [ $LT_1 -eq $LT_V1 ]; then
88
if [ $LT_2 -gt $LT_V2 ]; then
94
if [ "$LT_ERROR" = "1" ]; then
96
echo -n "Your libtool version `$LIBTOOL --version | sed -n -e 's#[^0-9]* \([0-9]*\.[0-9]*\).*#\1#p'`"
97
echo " is older than the suggested one, $LT_1.$LT_2"
98
echo "Go on at your own risk. :-)"
103
echo Configuring build environment for QGIS
105
&& $LIBTOOLIZE --force --copy \
106
&& autoheader --force -W all \
107
&& automake --add-missing --foreign --copy \
108
&& autoconf --force \
109
&& echo Now running configure to configure QGIS \