Moved all the style data to a theme directory ala gnome-shell. Added close-window.svg image. Added gcal-marshalers.list and rules to Makefile.am to generate the correct source and header. Note: The absence of this changes about the marshallers generation was making imposible to compile the changes about GcalView API. This will complete that commit.
109 lines
3.0 KiB
Plaintext
109 lines
3.0 KiB
Plaintext
dnl -*- mode: m4 -*-
|
|
AC_PREREQ([2.68])
|
|
AC_INIT([gnome-calendar],[0.0.2],[],[gnome-calendar])
|
|
|
|
AC_CONFIG_HEADERS([config/config.h])
|
|
AC_CONFIG_SRCDIR([src/main.c])
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
AC_CONFIG_AUX_DIR([config])
|
|
|
|
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
|
|
|
|
# require automake 1.11
|
|
AM_INIT_AUTOMAKE([1.11 dist-xz no-dist-gzip tar-ustar])
|
|
AM_MAINTAINER_MODE
|
|
|
|
dnl ***************************************************************************
|
|
dnl Internationalization
|
|
dnl ***************************************************************************
|
|
IT_PROG_INTLTOOL([0.35.0])
|
|
PKG_PROG_PKG_CONFIG([0.22])
|
|
|
|
GETTEXT_PACKAGE=gnome_calendar
|
|
AC_SUBST(GETTEXT_PACKAGE)
|
|
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
|
|
|
|
AM_GLIB_GNU_GETTEXT
|
|
|
|
## don't rerun to this point if we abort
|
|
AC_CACHE_SAVE
|
|
|
|
AC_PROG_CC
|
|
AM_PROG_CC_C_O
|
|
AC_PROG_CXX
|
|
AC_SEARCH_LIBS([strerror],[cposix])
|
|
AC_HEADER_STDC
|
|
|
|
# no stupid static libraries
|
|
AC_DISABLE_STATIC([])
|
|
# enable libtool
|
|
LT_INIT
|
|
|
|
## don't rerun to this point if we abort
|
|
AC_CACHE_SAVE
|
|
|
|
GLIB_GSETTINGS
|
|
|
|
dnl ================================================================
|
|
dnl Misc
|
|
dnl ================================================================
|
|
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
|
|
AC_PATH_PROG(GLIB_MKENUMS, glib-mkenums)
|
|
|
|
GNOME_COMMON_INIT
|
|
GNOME_COMPILE_WARNINGS(maximum)
|
|
GNOME_MAINTAINER_MODE_DEFINES
|
|
|
|
MAINTAINER_COMPILER_FLAGS="$MAINTAINER_COMPILER_FLAGS \
|
|
-Wall -Wcast-align -Wuninitialized \
|
|
-Wno-strict-aliasing -Wempty-body -Wformat \
|
|
-Wformat-security -Wformat-nonliteral -Winit-self \
|
|
-Wdeclaration-after-statement -Wvla \
|
|
-Wpointer-arith -Wmissing-declarations \
|
|
-Wcast-align \
|
|
-Wredundant-decls"
|
|
|
|
# strip leading spaces
|
|
MAINTAINER_COMPILER_FLAGS=${MAINTAINER_COMPILER_FLAGS#* }
|
|
AC_SUBST(MAINTAINER_COMPILER_FLAGS)
|
|
|
|
GLIB_MIN_VERSION=2.30.0
|
|
GTK_MIN_VERSION=3.4.0
|
|
CLUTTER_MIN_VERSION=1.10
|
|
CLUTTER_GTK_MIN_VERSION=1.2
|
|
ECAL_REQUIRED=3.5.3
|
|
EDATASERVER_REQUIRED=3.5.3
|
|
EDATASERVERUI_REQUIRED=3.5.3
|
|
|
|
PKG_CHECK_MODULES(CALENDAR,
|
|
glib-2.0 >= $GLIB_MIN_VERSION
|
|
gtk+-3.0 >= $GTK_MIN_VERSION
|
|
clutter-1.0 >= CLUTTER_MIN_VERSION
|
|
clutter-gtk-1.0 >= CLUTTER_GTK_MIN_VERSION
|
|
libecal-1.2 >= $ECAL_REQUIRED
|
|
libedataserver-1.2 >= EDATASERVER_REQUIRED
|
|
libedataserverui-3.0 >= EDATASERVERUI_REQUIRED)
|
|
|
|
AC_CONFIG_FILES([
|
|
Makefile
|
|
src/Makefile
|
|
data/Makefile
|
|
data/gnome-calendar.desktop.in
|
|
po/Makefile.in
|
|
doc/Makefile
|
|
])
|
|
|
|
AC_OUTPUT
|
|
|
|
dnl ==========================================================================
|
|
echo "
|
|
|
|
gnome-calendar $VERSION
|
|
==================
|
|
|
|
prefix: ${prefix}
|
|
compiler: ${CC}
|
|
|
|
Now type 'make' to build $PACKAGE
|
|
"
|