aboutsummaryrefslogtreecommitdiff
path: root/freetype/autogen.sh
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-04-02 14:12:40 +0000
committermarha <marha@users.sourceforge.net>2010-04-02 14:12:40 +0000
commit83fa9a9811e2c18cffd83a020757f7fb51ffddaa (patch)
treed71b6212a53834b53334c3bd14c63eeafd88ad20 /freetype/autogen.sh
parent1d59691fe77c20ecb010ea8589a940c4ea6ac356 (diff)
downloadvcxsrv-83fa9a9811e2c18cffd83a020757f7fb51ffddaa.tar.gz
vcxsrv-83fa9a9811e2c18cffd83a020757f7fb51ffddaa.tar.bz2
vcxsrv-83fa9a9811e2c18cffd83a020757f7fb51ffddaa.zip
Updated to following packages:
freetype-2.3.12
Diffstat (limited to 'freetype/autogen.sh')
-rw-r--r--freetype/autogen.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/freetype/autogen.sh b/freetype/autogen.sh
index 16c335fd5..c28a51c13 100644
--- a/freetype/autogen.sh
+++ b/freetype/autogen.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright 2005, 2006, 2007, 2008, 2009 by
+# Copyright 2005, 2006, 2007, 2008, 2009, 2010 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -95,10 +95,11 @@ compare_to_minimum_version ()
check_tool_version ()
{
field=$5
+ # assume the output of "[TOOL] --version" is "toolname (GNU toolname foo bar) version"
if test "$field"x = x; then
- field=4 # default to 4 for all GNU autotools
+ field=3 # default to 3 for all GNU autotools, after filtering enclosed string
fi
- version=`$1 --version | head -1 | cut -d ' ' -f $field`
+ version=`$1 --version | head -1 | sed 's/([^)]*)/()/g' | cut -d ' ' -f $field`
version_check=`compare_to_minimum_version $version $4`
if test "$version_check"x = 0x; then
echo "ERROR: Your version of the \`$2' tool is too old."