1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
|
AC_INIT(screen-message, 0.19, mail@joachim-breitner.de)
AC_CONFIG_SRCDIR([sm.c])
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_FILES([setup.iss README.Win32])
AS_CASE($host,
[*mingw32msvc*],[win32=true],
[win32=false])
AM_CONDITIONAL(WIN32, test "x$win32" = xtrue)
AS_IF([test "x$win32" = xtrue],[
AC_CHECK_TOOL(WINE,[wine],[],[])
AC_CHECK_TOOL(WINEPATH,[winepath],[],[])
AC_CHECK_TOOL(WINDRES,[windres],[],[])
])
AC_ARG_WITH([iscc],
[AS_HELP_STRING([--with-issc=PATH],
[path to the Inno Setup compiler for win32 cross builds])],
[ ],
[with_iscc=no])
AS_IF([test "x$with_iscc" = xyes],[
AC_MSG_ERROR("You need to pass a parameter to --with-iscc")
])
AS_IF([test "x$with_iscc" != xno],
[
AC_SUBST(ISCC,[$with_iscc])
],
[
AS_IF([test "x$win32" = xtrue],
[AC_MSG_ERROR("You need to specify --with-iscc when building for Win32")]
)
])
PKG_PROG_PKG_CONFIG
AC_ARG_WITH([win32-gtk],
[AS_HELP_STRING([--with-win32-gtk=PATH],
[path to the gtk+ source bundle for win32 cross builds])],
[],
[with_win32_gtk=no])
AS_IF([test "x$with_win32_gtk" = xyes],[
AC_MSG_ERROR("You need to pass a parameter to --with-win32_-gtk")
])
AS_IF([test "x$with_win32_gtk" != xno],
[AC_SUBST(WIN32_GTK, [`$WINEPATH -w $with_win32_gtk`])
AS_VAR_APPEND(PKG_CONFIG," --define-variable prefix=$with_win32_gtk")
export PKG_CONFIG_PATH="$with_win32_gtk/lib/pkgconfig:$PKG_CONFIG_PATH"
],
[
AS_IF([test "x$win32" = xtrue],
[AC_MSG_ERROR("You need to specify --with-win32-gtk when building for Win32")]
)
])
AC_CONFIG_HEADERS(config.h)
AC_PROG_CC
AC_PROG_INSTALL
AC_STDC_HEADERS
PKG_CHECK_MODULES(DEPS, gtk+-2.0 >= 2.10 gdk-2.0 >= 2.10 pango >= 1.16)
AC_SUBST(DEPS_CFLAGS)
AC_SUBST(DEPS_LIBS)
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
|