From 1b86532a9910fbb70b673e9e733a9afd3bcdeb31 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Sat, 5 May 2012 16:37:22 -0400 Subject: [PATCH] =?UTF-8?q?Only=20use=20AM=5FPROG=5FAR=20if=20it=E2=80=99s?= =?UTF-8?q?=20defined?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes aclocal:configure.ac:22: warning: macro `AM_PROG_AR' not found in library and ./configure: line 4024: AM_PROG_AR: command not found with old automake. Signed-off-by: Anders Kaseorg --- configure.ac | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index aed8604..f2670a7 100644 --- a/configure.ac +++ b/configure.ac @@ -18,8 +18,7 @@ AS_IF([test x"$PROTOC" = x], [AC_MSG_ERROR([cannot find protoc, the Protocol Buffers compiler])]) # automake 1.12 seems to require this, but automake 1.11 doesn't recognize it -m4_pattern_allow([AM_PROG_AR]) -AM_PROG_AR +m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) WARNING_CXXFLAGS="" PICKY_CXXFLAGS=""