--- libtool-1.9f/config/ltmain.m4sh.orig	2004-10-22 19:19:33.000000000 +0200
+++ libtool-1.9f/config/ltmain.m4sh	2004-10-29 09:25:04.690091200 +0200
@@ -1955,11 +1955,11 @@
 	  */* | *\\*) . ${wrapperdot} ;;
 	  *) . ./${wrapperdot} ;;
 	  esac
 
 	  # Check the variables that should have been set.
-	  test -z "$notinst_deplibs" && \
+	  test -z "$generated_by_libtool_version" && \
 	    func_fatal_error "invalid libtool wrapper script \`$wrapper'"
 
 	  finalize=yes
 	  for lib in $notinst_deplibs; do
 	    # Check to see that each library is installed.
@@ -5991,11 +5991,12 @@
 
 relink_command=\"$relink_command\"
 
 # This environment variable determines our operation mode.
 if test \"\$libtool_install_magic\" = \"$magic\"; then
-  # install mode needs the following variable:
+  # install mode needs the following variables:
+  generated_by_libtool_version='$macro_version'
   notinst_deplibs='$notinst_deplibs'
 else
   # When we are sourced in execute mode, \$file and \$ECHO are already set.
   if test \"\$libtool_execute_magic\" != \"$magic\"; then
     ECHO=\"$qecho\"
