targetname=
fi
- perl_ldflags='`perl -MExtUtils::Embed -e ldopts`'
+ old_LIBS="$LIBS"
+ LIBS="$old_LIBS `perl -MExtUtils::Embed -e ldopts`"
+ AC_TRY_LINK([extern char boot_DynaLoader();],
+ [ boot_DynaLoader()],
+ BROKEN=,
+ BROKEN="yes")
+
+ if test "x$BROKEN" = "x"; then
+ perl_ldflags='`perl -MExtUtils::Embed -e ldopts`'
+ else
+ fail="$fail libperl.so"
+ targetname=
+ fi
+
+ AC_TRY_LINK([extern char Perl_hv_store();],
+ [ Perl_hv_store()],
+ BROKEN=,
+ BROKEN="yes")
+
+ if test "x$BROKEN" != "x"; then
+ fail="$fail libperl.so"
+ targetname=
+ fi
CFLAGS=$old_CFLAGS
fi
AC_SUBST(targetname)
AC_OUTPUT(Makefile)
+AC_OUTPUT(all.mk)