This hack was removed during the libtool 2.2 upgrade.
The issue shows up as bundle builds failing to link libltdl/libltdlc.la
when they should in fact be linking ../libltdl/libltdlc.la in src/Makefile
It is caused by the macros of libtool 2.2 assuming the presence of
top_build_prefix but since autoconf 2.62 that was replaced with
ac_top_build_prefix and is no longer automatically defined in Makefile's.
Some distros also seem to have back-ported the removal of top_build_prefix
into their old autoconf causing macro version tests to fail.
fi
LT_INIT([dlopen])
+if ! test "${ac_top_build_prefix}" = "";
+then
+ # LTDL v3-v7 macros assume the autoconf 2.62 variable top_build_prefix is defined
+ # But from autoconf 2.64 its called ac_top_build_prefix and not automatically added to the Makefile
+ # This fixes Linux LTDLv3-v7, and BSD LTDL v2.2
+ top_build_prefix=${ac_top_build_prefix}
+ AC_SUBST(top_build_prefix)
+fi
LTDL_INIT
dnl LibTool environment is now prepared for setup. Check that it is usable and initialize.