2 # Copyright (C) 2010 Red Hat Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 dnl NOTE: 1.x where x is odd = development
19 dnl 1.x where x is even = stable
20 AC_INIT([techtalk-pse],[1.1.0])
21 AM_INIT_AUTOMAKE([foreign])
23 dnl Check for pod2man and pod2text.
24 AC_CHECK_PROG([POD2MAN],[pod2man],[pod2man],[no])
25 test "x$POD2MAN" = "xno" &&
26 AC_MSG_ERROR([pod2man must be installed])
27 AC_CHECK_PROG([POD2TEXT],[pod2text],[pod2text],[no])
28 test "x$POD2TEXT" = "xno" &&
29 AC_MSG_ERROR([pod2text must be installed])
31 dnl Check for required Perl modules.
32 missing_perl_modules=no
33 for pm in Pod::Usage Getopt::Long Glib Gtk3 Glib::Object::Introspection Gtk3::WebKit; do
34 AC_MSG_CHECKING([for $pm])
35 if ! perl -M$pm -e1 >/dev/null 2>&1; then
37 missing_perl_modules=yes
42 if test "x$missing_perl_modules" = "xyes"; then
43 AC_MSG_FAILURE([some Perl modules required to run the program are missing])
46 AC_MSG_CHECKING([for Vte 2.91])
47 perl -e 'use Glib::Object::Introspection; Glib::Object::Introspection->setup(basename => "Vte", version => "2.91", package => "Vte");'
52 AC_MSG_FAILURE(["Vte 2.91 required"])
55 AC_CONFIG_FILES([techtalk-pse:techtalk-pse.pl],
56 [chmod 0555 techtalk-pse])
57 AC_CONFIG_FILES([Makefile])