2 dnl Copyright (C) 2010 Red Hat Inc.
4 dnl This program is free software; you can redistribute it and/or modify
5 dnl it under the terms of the GNU General Public License as published by
6 dnl the Free Software Foundation; either version 2 of the License, or
7 dnl (at your option) any later version.
9 dnl This program is distributed in the hope that it will be useful,
10 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 dnl GNU General Public License for more details.
14 dnl You should have received a copy of the GNU General Public License along
15 dnl with this program; if not, write to the Free Software Foundation, Inc.,
16 dnl 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 AC_INIT([guestfs-browser],[0.0.1])
19 AM_INIT_AUTOMAKE([foreign])
20 AC_CONFIG_MACRO_DIR([m4])
22 dnl Check for C compiler.
27 test "x$U" != "x" && AC_MSG_ERROR([Compiler not ANSI compliant])
31 dnl Check for OCaml compiler.
33 if test "$OCAMLOPT" = "no"; then
34 AC_MSG_ERROR([You must install the OCaml native compiler (ocamlopt)])
37 dnl Check for OCaml findlib.
39 if test "$OCAMLFIND" = "no"; then
40 AC_MSG_ERROR([You must install OCaml findlib (ocamlfind)])
43 dnl Check for all OCaml packages.
44 AC_CHECK_OCAML_PKG([lablgtk2])
45 if test "$OCAML_PKG_lablgtk2" = "no"; then
46 AC_MSG_ERROR([Please install OCaml module 'lablgtk2'.])
49 AC_CONFIG_HEADERS([config.h])
50 AC_CONFIG_FILES([Makefile])