From 7e606ee3d10a98e65e42acb5b37cc70e00ac6472 Mon Sep 17 00:00:00 2001
From: Marek Goldmann <goldmann@fedoraproject.org>
Date: Tue, 24 Jul 2012 11:39:56 +0200
Subject: [PATCH] Fixing "archiver requires 'AM_PROG_AR' in 'configure.ac'"
error
---
src/main/native-package/m4/custom.m4 | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/src/main/native-package/m4/custom.m4 b/src/main/native-package/m4/custom.m4
index 3b5e92e..55fdbec 100644
--- a/src/main/native-package/m4/custom.m4
+++ b/src/main/native-package/m4/custom.m4
@@ -15,7 +15,15 @@ dnl See the License for the specific language governing permissions and
dnl limitations under the License.
dnl ---------------------------------------------------------------------------
+AC_DEFUN([AM_PROG_AR],
+[AC_BEFORE([$0], [LT_INIT])dnl
+AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl
+: ${AR=ar}
+AC_SUBST([AR])dnl
+])
+
AC_DEFUN([CUSTOM_M4_SETUP],
[
AC_CHECK_LIB([c], [isatty],[AC_DEFINE([HAVE_ISATTY], [1], [Define to 1 if you have the isatty function.])])
-])
\ No newline at end of file
+ AM_PROG_AR
+])
--
1.8.4.2