From d2f67b92c6ed46fb6dc9f9a65580b6ae63f72472 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 2 Jul 2013 12:39:26 +0200 Subject: [PATCH] build: use AM_PROG_AR conditionally AM_PROG_AR does not exist in automake v0.11 but without it, you can't build libuv with automake v0.12+ on Darwin. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index cf0a966d..2cd91e4f 100644 --- a/configure.ac +++ b/configure.ac @@ -21,7 +21,8 @@ AC_CANONICAL_HOST AC_ENABLE_SHARED AC_ENABLE_STATIC AC_PROG_CC -AM_PROG_AR +# AM_PROG_AR is not available in automake v0.11 but it's essential in v0.12. +m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) LT_INIT # TODO(bnoordhuis) Check for -pthread vs. -pthreads AC_CHECK_LIB([dl], [dlopen])