File zimg-5.0.0.patch of Package zimg

--- configure.in
+++ configure.in
@@ -41,7 +41,7 @@ AC_PREREQ(1.12)
 AC_REVISION($Revision: 1.106 $)
 AC_CONFIG_AUX_DIR(.)
 
-VERSION=`head -1 VERSION`
+VERSION=`head -n 1 VERSION`
 AC_SUBST(VERSION)
 
 AM_INIT_AUTOMAKE(zimg, $VERSION)
@@ -69,6 +69,7 @@ AC_LIBTOOL_DLOPEN
 AM_PROG_LIBTOOL
 AC_SUBST(LIBTOOL_DEPS)
 
+m4_ifdef([LT_OUTPUT], [LT_OUTPUT])
 if ${CONFIG_SHELL} ./libtool --features | grep "enable static" >/dev/null; then
   STATIC=-static
 else