I don't know if the check is god enough, but it worked for me.
seb
--- macros.old Mon Dec 11 06:22:06 2000
+++ macros Mon Dec 11 06:25:57 2000
@@ -535,8 +535,11 @@
test -r ${dr}/aclocal.m4 && %{__chmod} u+w ${dr}/aclocal.m4; \
fi \
fi \
+ if grep "^AC_LIBLTDL_CONVENIENCE" configure.in >/dev/null; then \
+ ltdl_flag="--ltdl"; \
+ fi \
if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then \
- %{__libtoolize} --force --copy; \
+ %{__libtoolize} --force --copy ${ltdl_flag} ; \
fi \
aclocal ${aclocalinclude}; \
if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then \