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
]
)
-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])])