- [ AC_CHECK_HEADERS(libvdeplug_dyn.h, [], [AC_MSG_ERROR([VDE plug header files not found.]); break])
+ [ AC_CHECK_HEADERS(libvdeplug.h,
+ [AC_CHECK_LIB(vdeplug, vde_close,
+ [LIBS="$LIBS -lvdeplug"],
+ [AC_MSG_ERROR("VDE plug library files not found.")]
+ )],
+ [AC_MSG_ERROR([VDE plug header files not found.]); break])