--- configure
+++ configure
@@ -8796,7 +8796,7 @@
 LIBTOOL_DEPS="$ltmain"
 
 # Always use our own libtool.
-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+LIBTOOL='$(SHELL) $(top_builddir)/libtool.sh'
 
 
 
@@ -8889,7 +8889,7 @@
 esac
 
 # Global variables:
-ofile=libtool
+ofile=libtool.sh
 can_build_shared=yes
 
 # All known linkers require a `.a' archive for static linking (except MSVC,
