dnl Check for required Perl modules.
missing_perl_modules=no
-for pm in Pod::Usage Getopt::Long Glib Gtk2 Gtk2::Gdk::Keysyms Gtk2::WebKit Gnome2::Vte; do
+for pm in Pod::Usage Getopt::Long Glib Gtk3 Glib::Object::Introspection; do
AC_MSG_CHECKING([for $pm])
if ! perl -M$pm -e1 >/dev/null 2>&1; then
AC_MSG_RESULT([no])
AC_MSG_FAILURE([some Perl modules required to run the program are missing])
fi
+AC_MSG_CHECKING([for Vte 2.91])
+perl -e 'use Glib::Object::Introspection; Glib::Object::Introspection->setup(basename => "Vte", version => "2.91", package => "Vte");'
+if test $? == 0; then
+ AC_MSG_RESULT([yes])
+else
+ AC_MSG_RESULT([no])
+ AC_MSG_FAILURE(["Vte 2.91 required"])
+fi
+
AC_CONFIG_FILES([techtalk-pse:techtalk-pse.pl],
[chmod 0555 techtalk-pse])
AC_CONFIG_FILES([Makefile])