From 2396ecb91ac521b11ec679aea17269332afb6cb5 Mon Sep 17 00:00:00 2001 From: Michael Schumacher Date: Tue, 11 Aug 2009 00:00:22 +0200 Subject: [PATCH] Require libtool >= 2.2 on Microsoft Windows This is needed for the -shrext command line option, which will be used for e.g. pygimp. --- autogen.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/autogen.sh b/autogen.sh index 813bed5242..82f02d27e2 100755 --- a/autogen.sh +++ b/autogen.sh @@ -19,6 +19,7 @@ AUTOCONF_REQUIRED_VERSION=2.54 AUTOMAKE_REQUIRED_VERSION=1.9.6 INTLTOOL_REQUIRED_VERSION=0.40.1 LIBTOOL_REQUIRED_VERSION=1.5 +LIBTOOL_WIN32_REQUIRED_VERSION=2.2 PROJECT="GNU Image Manipulation Program" @@ -79,6 +80,14 @@ echo DIE=0 +OS=`uname -s` +case $OS in + *YGWIN* | *INGW*) + echo "Looks like Win32, you will need libtool $LIBTOOL_WIN32_REQUIRED_VERSION or newer." + echo + LIBTOOL_REQUIRED_VERSION=$LIBTOOL_WIN32_REQUIRED_VERSION + ;; +esac echo -n "checking for libtool >= $LIBTOOL_REQUIRED_VERSION ... " if ($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1; then