3
echo "buildconf: checking installation..."
6
python=`build/PrintPath python`
7
if test -z "$python"; then
8
echo "buildconf: python not found."
9
echo " You need python installed"
10
echo " to build APR from SVN."
13
py_version=`python -c 'import sys; print sys.version' 2>&1|sed 's/ .*//;q'`
14
echo "buildconf: python version $py_version (ok)"
17
# autoconf 2.50 or newer
18
ac_version=`${AUTOCONF:-autoconf} --version 2>/dev/null|sed -e 's/^[^0-9]*//;s/[a-z]* *$//;q'`
19
if test -z "$ac_version"; then
20
echo "buildconf: autoconf not found."
21
echo " You need autoconf version 2.50 or newer installed"
22
echo " to build APR from SVN."
25
IFS=.; set $ac_version; IFS=' '
26
if test "$1" = "2" -a "$2" -lt "50" || test "$1" -lt "2"; then
27
echo "buildconf: autoconf version $ac_version found."
28
echo " You need autoconf version 2.50 or newer installed"
29
echo " to build APR from SVN."
32
echo "buildconf: autoconf version $ac_version (ok)"
35
# Sample libtool --version outputs:
36
# ltmain.sh (GNU libtool) 1.3.3 (1.385.2.181 1999/07/02 15:49:11)
37
# ltmain.sh (GNU libtool 1.1361 2004/01/02 23:10:52) 1.5a
38
# output is multiline from 1.5 onwards
40
# Require libtool 1.4 or newer
41
libtool=`build/PrintPath glibtool libtool libtool15 libtool14`
42
lt_pversion=`$libtool --version 2>/dev/null|sed -e 's/([^)]*)//g;s/^[^0-9]*//;s/[- ].*//g;q'`
43
if test -z "$lt_pversion"; then
44
echo "buildconf: libtool not found."
45
echo " You need libtool version 1.4 or newer installed"
46
echo " to build APR from SVN."
49
lt_version=`echo $lt_pversion|sed -e 's/\([a-z]*\)$/.\1/'`
50
IFS=.; set $lt_version; IFS=' '
52
if test "$1" = "1"; then
53
if test "$2" -lt "4"; then
57
if test $lt_status = "good"; then
58
echo "buildconf: libtool version $lt_pversion (ok)"
62
echo "buildconf: libtool version $lt_pversion found."
63
echo " You need libtool version 1.4 or newer installed"
64
echo " to build APR from SVN."