Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Only use AM_PROG_AR if it’s defined

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 <andersk@mit.edu>
commit 1b86532a9910fbb70b673e9e733a9afd3bcdeb31 1 parent 22375a2
Anders Kaseorg andersk authored committed
Showing with 1 addition and 2 deletions.
  1. +1 −2  configure.ac
3  configure.ac
View
@@ -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=""
Please sign in to comment.
Something went wrong with that request. Please try again.