firebird2.5 (2.5.0.26054~ReleaseCandidate3.ds2-1) allow-older-libtool.patch

Summary

 autogen.sh |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

    
download this patch

Patch contents

# From: Damyan Ivanov <dmn@debian.org>
# Description: add workarounds for libtool before 2.2.6a
#  This makes it possible to build Firebird 2.5 on Debian Lenny and other
#  distributions that dont have libtool 2.2.6a available
# Forwarded: no
--- a/autogen.sh
+++ b/autogen.sh
@@ -62,12 +62,19 @@ if [ "x$autopath" != "x" ]; then
 	export PATH
 fi
 
+# libtool before 2.2.6a needs some help
+CONFIG_AUX_DIR=builds/make.new/config
+mkdir -p $CONFIG_AUX_DIR
 echo "Running autoreconf ..."
 $AUTORECONF --install --force --verbose || exit 1
 
+# automake 1.10 may show '1.10.x' as version while the directory is still named
+# automake-1.10
+am_ver=`automake --version|sed 's/.\+ //; s/\.[^.]\+$//; q'`
+cp /usr/share/automake-$am_ver*/install-sh $CONFIG_AUX_DIR || exit 1
+
 # Hack to bypass bug in autoreconf - --install switch not passed to libtoolize,
 # therefore missing config.sub and confg.guess files
-CONFIG_AUX_DIR=builds/make.new/config
 if [ ! -f $CONFIG_AUX_DIR/config.sub -o ! -f $CONFIG_AUX_DIR/config.guess ]; then
 	# re-run libtoolize with --install switch, if it does not understand that switch
 	# and there are no config.sub/guess files in CONFIG_AUX_DIR, we will anyway fail