QGIS/autogen.sh
gsherman 1fdbc93f89 Modified autogen.sh so it reports:
"This source tree uses CMake rather than autoconf/automake
Please see http://wiki.qgis.org/qgiswiki/Building_with_CMake
for information on building QGIS with CMake."

then exits. Remainder of autogen.sh is intact.


git-svn-id: http://svn.osgeo.org/qgis/trunk@6460 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-01-27 00:43:12 +00:00

115 lines
2.7 KiB
Bash
Executable File

#!/bin/sh
echo "This source tree uses CMake rather than autoconf/automake"
echo "Please see http://wiki.qgis.org/qgiswiki/Building_with_CMake"
echo "for information on building QGIS with CMake."
exit
# Automakeversion
AM_1=1
AM_2=7
AM_3=2
# Autoconfversion
AC_1=2
AC_2=57
# Libtoolversion
LT_1=1
LT_2=4
# Libtoolname
LIBTOOL=libtool
LIBTOOLIZE=libtoolize
if [ "`uname`" = "Darwin" ]; then
LIBTOOL=glibtool
LIBTOOLIZE=glibtoolize
fi
# Check automake version
AM_VERSION=`automake --version | sed -n -e 's#^.* \([0-9]*\)\.\([0-9]*\)[^0-9]*\([0-9]*\).*$#\1 \2 \3#p'`
AM_V1=`echo $AM_VERSION | awk '{print $1}'`
AM_V2=`echo $AM_VERSION | awk '{print $2}'`
AM_V3=`echo $AM_VERSION | awk '{if ($NF > 2) print $3; else print "0";}'`
if [ $AM_1 -gt $AM_V1 ]; then
AM_ERROR=1
else
if [ $AM_1 -eq $AM_V1 ]; then
if [ $AM_2 -gt $AM_V2 ]; then
AM_ERROR=1
else
if [ $AM_2 -eq $AM_V2 ]; then
if [ $AM_3 -gt $AM_V3 ]; then
AM_ERROR=1
fi
fi
fi
fi
fi
if [ "$AM_ERROR" = "1" ]; then
echo -e '\E[31;m'
echo -n "Your automake version `automake --version | sed -n -e 's#[^0-9]* \([0-9]*\.[0-9]*\.*[0-9]*\).*#\1#p'`"
echo " is older than the suggested one, $AM_1.$AM_2.$AM_3"
echo "Go on at your own risk. :-)"
echo
tput sgr0
fi
# Check autoconf version
AC_VERSION=`autoconf --version | sed -n -e 's#[^0-9]* \([0-9]*\)\.\([0-9]*\).*$#\1 \2#p'`
AC_V1=`echo $AC_VERSION | awk '{print $1}'`
AC_V2=`echo $AC_VERSION | awk '{print $2}'`
if [ $AC_1 -gt $AC_V1 ]; then
AC_ERROR=1
else
if [ $AC_1 -eq $AC_V1 ]; then
if [ $AC_2 -gt $AC_V2 ]; then
AC_ERROR=1
fi
fi
fi
if [ "$AC_ERROR" = "1" ]; then
echo -e '\E[31;m'
echo -n "Your autoconf version `autoconf --version | sed -n -e 's#[^0-9]* \([0-9]*\.[0-9]*\).*#\1#p'`"
echo " is older than the suggested one, $AC_1.$AC_2"
echo "Go on at your own risk. :-)"
echo
tput sgr0
fi
# Check libtool version
LT_VERSION=`$LIBTOOL --version | sed -n -e 's#[^0-9]* \([0-9]*\)\.\([0-9]*\).*$#\1 \2#p'`
LT_V1=`echo $LT_VERSION | awk '{print $1}'`
LT_V2=`echo $LT_VERSION | awk '{print $2}'`
if [ $LT_1 -gt $LT_V1 ]; then
LT_ERROR=1
else
if [ $LT_1 -eq $LT_V1 ]; then
if [ $LT_2 -gt $LT_V2 ]; then
LT_ERROR=1
fi
fi
fi
if [ "$LT_ERROR" = "1" ]; then
echo -e '\E[31;m'
echo -n "Your libtool version `$LIBTOOL --version | sed -n -e 's#[^0-9]* \([0-9]*\.[0-9]*\).*#\1#p'`"
echo " is older than the suggested one, $LT_1.$LT_2"
echo "Go on at your own risk. :-)"
echo
tput sgr0
fi
echo Configuring build environment for QGIS
aclocal \
&& $LIBTOOLIZE --force --copy \
&& autoheader --force -W all \
&& automake --add-missing --foreign --copy \
&& autoconf --force \
&& echo Now running configure to configure QGIS \
&& ./configure $@