Allow disabling maintainer-mode (for MSYS compiles)
[moonshot-ui.git] / configure.ac
1 AC_PREREQ([2.66])
2 AC_INIT([Moonshot],
3         [0.0.1],
4         [BUG-REPORT-ADDRESS],
5         [moonshot])
6
7 AC_CONFIG_HEADERS([config.h])
8 AC_CONFIG_SRCDIR([configure.ac])
9 AC_CONFIG_MACRO_DIR([m4])
10 AC_CONFIG_AUX_DIR([build-aux])
11
12 AM_INIT_AUTOMAKE([1.11 -Wall foreign subdir-objects tar-pax no-dist-gzip dist-xz])
13 AM_SILENT_RULES([yes])
14 AM_MAINTAINER_MODE([enable])
15
16 # Checks for programs.
17 AC_PROG_CC
18 AM_PROG_CC_C_O
19 AM_PROG_VALAC([0.9])
20
21 # Platform-specific checks
22 AC_CANONICAL_HOST
23
24 case "$host" in
25   *-*-mingw*)
26     AC_PATH_MSRPC_MINGW([0.1.0], :,
27       AC_MSG_ERROR([
28 *** msrpc-mingw 0.1.0 or better is required.]))
29
30     AC_PATH_PROG([MIDL], [midl], no)
31     if test "$MIDL" = "no"; then
32        AC_MSG_ERROR([
33 *** Could not find the Microsoft interface compiler MIDL.EXE.
34 *** This program is available as part of the MS Windows SDK, in
35 *** the Win32 Development Tools package. If it is not in the PATH
36 *** you may set the 'MIDL' environment variable to point to its
37 *** location and rerun configure.])
38     fi
39
40     IPC="msrpc-glib2-1.0"
41     ;;
42   *)
43     IPC="dbus-glib"
44     ;;
45 esac
46
47 AC_SUBST(MIDL)
48
49 AM_CONDITIONAL([IPC_MSRPC], [test "$IPC" = "msrpc-glib2-1.0"])
50 AM_CONDITIONAL([IPC_DBUS], [test "$IPC" = "dbus-glib"])
51
52 # Dependencies
53 PKG_CHECK_MODULES(moonshot,[
54         atk >= 1.20
55         glib-2.0 >= 2.24
56         gobject-2.0 >= 2.24
57         gtk+-2.0 >= 2.20
58         $IPC
59 ])
60
61 # i18n stuff
62 AM_GNU_GETTEXT([external])
63 AM_GNU_GETTEXT_VERSION([0.17])
64
65 AC_SUBST([GETTEXT_PACKAGE],[PACKAGE_TARNAME])
66 AC_DEFINE([GETTEXT_PACKAGE],[PACKAGE_TARNAME],[Define to the gettext package name.])
67
68 AC_CONFIG_FILES([
69         Makefile
70         po/Makefile.in
71 ])
72
73 AC_OUTPUT