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])
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])
19 PKG_PROG_PKG_CONFIG([0.24])
27 SERVER_IPC_MODULE="msrpc-glib2-1.0"
28 CLIENT_IPC_MODULE="msrpc-mingw-1.0"
32 SERVER_IPC_MODULE="dbus-glib-1"
33 CLIENT_IPC_MODULE="dbus-glib-1"
37 AM_CONDITIONAL([OS_WIN32], [test "$win32" = "yes"])
38 AM_CONDITIONAL([IPC_MSRPC], [test "$SERVER_IPC_MODULE" = "msrpc-glib2-1.0"])
39 AM_CONDITIONAL([IPC_DBUS], [test "$SERVER_IPC_MODULE" = "dbus-glib-1"])
41 # Checks for programs.
46 if test "$SERVER_IPC_MODULE" = "msrpc-glib2-1.0"; then
48 AC_PATH_MSRPC_MINGW([0.1.0], :,
50 *** msrpc-mingw 0.1.0 or better is required.]))
52 AC_PATH_PROG([MIDL], [midl], no,
53 [/c/Program\ Files/Microsoft\ SDKs/Windows/v7.0/Bin$PATH_SEPARATOR$PATH])
54 if test "$MIDL" = "no"; then
56 *** Could not find the Microsoft interface compiler MIDL.EXE.
57 *** This program is available as part of the MS Windows SDK, in
58 *** the Win32 Development Tools package. If it is not in the PATH
59 *** or its default location you may set the 'MIDL' environment
60 *** variable to point to its location and rerun configure.])
64 if test "$win32" = "yes"; then
65 # Other Windows-specific tools
67 # LIB.EXE from MSVC to build an MSVC-compatible import library.
68 AC_PATH_PROG([MSVC_LIB], [lib], no)
70 if test "$MSVC_LIB" = "no"; then
72 *** Could not find the Microsoft 'LIB.EXE' program. This is required
73 *** to build the Visual C import library for libmoonshot. Use the
74 *** MSVC_LIB environment variable to pass its location if this is
75 *** outside the PATH.])
79 # ImageMagick for the 'make icons' target. Watch that it doesn't pick up
80 # c:/windows/system32/convert.exe, which is nothing to do with ImageMagick
81 AC_PATH_PROG([IMAGEMAGICK_CONVERT], [convert], no,
82 [/c/Program\ Files/ImageMagick$PATH_SEPARATOR$PATH])
84 if test "$IMAGEMAGICK_CONVERT" = "no"; then
86 *** Could not find ImageMagick convert.exe. This is required for the
87 *** 'make icons' target. Use the IMAGEMAGICK_CONVERT environment
88 *** variable to pass its location if this is outside the PATH.])
92 # Windows Installer XML tools
93 AC_PATH_PROG([WIX_CANDLE], [candle], no,
94 [/c/Program\ Files/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR$PATH])
95 AC_PATH_PROG([WIX_LIGHT], [light], no,
96 [/c/Program\ Files/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR$PATH])
98 if test "$WIX_CANDLE" = "no" || test "$WIX_LIGHT" = "no"; then
100 *** Could not find the Windows Installer XML tools. These are required
101 *** for the 'make installer' target. Use the WIX_CANDLE and WIX_LIGHT
102 *** environment variables to pass their locations if they are outside
109 AC_SUBST(IMAGEMAGICK_CONVERT)
114 PKG_CHECK_MODULES(moonshot,[
122 PKG_CHECK_MODULES(libmoonshot,[
127 AM_GNU_GETTEXT([external])
128 AM_GNU_GETTEXT_VERSION([0.17])
130 AC_SUBST([GETTEXT_PACKAGE],[PACKAGE_TARNAME])
131 AC_DEFINE([GETTEXT_PACKAGE],[PACKAGE_TARNAME],[Define to the gettext package name.])