# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-AC_INIT([techtalk-pse],[0.1.0])
+dnl NOTE: 1.x where x is odd = development
+dnl 1.x where x is even = stable
+AC_INIT([techtalk-pse],[1.1.0])
AM_INIT_AUTOMAKE([foreign])
dnl Check for pod2man and pod2text.
test "x$POD2TEXT" = "xno" &&
AC_MSG_ERROR([pod2text must be installed])
+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
+ AC_MSG_CHECKING([for $pm])
+ if ! perl -M$pm -e1 >/dev/null 2>&1; then
+ AC_MSG_RESULT([no])
+ missing_perl_modules=yes
+ else
+ AC_MSG_RESULT([yes])
+ fi
+done
+if test "x$missing_perl_modules" = "xyes"; then
+ AC_MSG_FAILURE([some Perl modules required to run the program are missing])
+fi
+
+AC_CONFIG_FILES([techtalk-pse:techtalk-pse.pl],
+ [chmod 0555 techtalk-pse])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT