From: Ruben Kerkhof Date: Sun, 6 Mar 2016 17:06:38 +0000 (+0100) Subject: Fix building with older versions of libtool X-Git-Tag: collectd-5.6.0~395 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5a911ceb65165a4293830503afd257a9bd474bc7;p=collectd.git Fix building with older versions of libtool The libtool on RHEL5 doesn't set LTDEPS, therefore we failed to compile the builtin ltdl lib. It does however set LIBLTDL to the path of the if it is going to build an internal one. Use that. Fixes building from git on RHEL5 --- diff --git a/configure.ac b/configure.ac index e3ade4a8..c0c4be3d 100644 --- a/configure.ac +++ b/configure.ac @@ -29,7 +29,7 @@ m4_ifdef([LT_PACKAGE_VERSION], ] ) -AM_CONDITIONAL([BUILD_INCLUDED_LTDL], [test "x$LTDLDEPS" != "x"]) +AM_CONDITIONAL([BUILD_INCLUDED_LTDL], [test "x${LIBLTDL}" = 'x${top_builddir}/libltdl/libltdlc.la']) AM_INIT_AUTOMAKE([tar-pax dist-bzip2 foreign]) m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])