3
AC_INIT([gnome-themes], [2.24.1],
3
AC_INIT([gnome-themes], [2.25.5],
4
4
[http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-themes])
5
5
AC_CONFIG_SRCDIR([icon-themes])
7
7
AM_INIT_AUTOMAKE([1.9 tar-ustar])
8
AM_CONFIG_HEADER([config.h])
11
dnl Honor aclocal flags
12
ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
13
AC_SUBST(ACLOCAL_AMFLAGS)
15
9
IT_PROG_INTLTOOL([0.35.0])
18
# Checks for header files.
20
# Checks for typedefs, structures, and compiler characteristics.
22
# Checks for library functions.
25
AC_CHECK_FUNCS(setenv putenv)
10
PKG_PROG_PKG_CONFIG([0.19])
12
GETTEXT_PACKAGE="${PACKAGE}"
13
AC_SUBST(GETTEXT_PACKAGE)
17
# AM_GLIB_GNU_GETTEXT above subst. $DATADIRNAME
18
# this is the directory where the *.{mo,gmo} files are installed
19
localedir='${prefix}/${DATADIRNAME}/locale'
22
# Workaround to make aclocal get the right flags
23
AC_SUBST(ACLOCAL_AMFLAGS, "\${ACLOCAL_FLAGS}")
25
# Check GTK+ theme engines
30
26
PKG_CHECK_MODULES(THEME_ENGINE,
31
27
[gtk+-2.0 >= 2.0.0 dnl
32
28
gdk-pixbuf-2.0 >= 2.0.0 dnl
35
31
GTK_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0`
36
32
AC_SUBST(GTK_VERSION)
40
AC_MSG_CHECKING([icon-naming-utils >= $UTILS_REQUIRED])
41
PKG_CHECK_EXISTS(icon-naming-utils >= $UTILS_REQUIRED,
42
have_utils=yes, have_utils=no)
44
if test "x$have_utils" = "xyes"; then
45
UTILS_PATH="`$PKG_CONFIG --variable=program_path icon-naming-utils`"
47
*-*-solaris*) ICONMAP="icon-name-mapping" ;;
48
*) ICONMAP="$UTILS_PATH/icon-name-mapping" ;;
34
# Check if it's a development (odd minor) version
35
AC_MSG_CHECKING([development series build])
36
MINOR_VERSION="`echo $PACKAGE_VERSION|cut -d. -f2`"
37
if expr $MINOR_VERSION % 2 > /dev/null != "0"; then
38
# Development version, disable mapping
39
# and enable placeholder by default
40
icon_mapping_policy=no
41
placeholders_policy=yes
42
enable_test_themes=yes
51
43
AC_MSG_RESULT([yes])
54
AC_MSG_ERROR([icon-naming-utils >= $UTILS_REQUIRED is required to build
55
and install gnome-themes])
59
GETTEXT_PACKAGE=gnome-themes
60
AC_SUBST(GETTEXT_PACKAGE)
45
# Stable version, enable mapping
46
# and disable placeholders by default
47
icon_mapping_policy=yes
48
placeholders_policy=no
52
# Configure option to force placeholders
53
AC_ARG_ENABLE([placeholders],
54
AC_HELP_STRING([--enable-placeholders],
55
[Enable placeholder icons [default=auto]]),
56
enable_placeholders=$enableval,
57
enable_placeholders=$placeholders_policy)
59
AM_CONDITIONAL(PLACEHOLDERS, test "x$enable_placeholders" != "xno")
61
# Configure option to force icon mapping
62
AC_ARG_ENABLE([icon-mapping],
63
AC_HELP_STRING([--enable-icon-mapping],
64
[Enable compatibility symlinks [default=auto]]),
65
enable_mapping=$enableval,
66
enable_mapping=$icon_mapping_policy)
68
# Check for icon-naming-utils
70
if test "x$enable_mapping" != "xno"; then
73
AC_MSG_CHECKING([icon-naming-utils >= $UTILS_REQUIRED])
74
PKG_CHECK_EXISTS(icon-naming-utils >= $UTILS_REQUIRED, have_utils=yes, have_utils=no)
75
if test "x$have_utils" = "xyes"; then
76
UTILS_PATH="`$PKG_CONFIG --variable=program_path icon-naming-utils`"
77
ICONMAP="$UTILS_PATH/icon-name-mapping"
81
AC_MSG_ERROR([icon-naming-utils >= $UTILS_REQUIRED is required to build and install gnome-themes])
85
AM_CONDITIONAL(LEGACY_ICON_MAPPING, test "x$enable_mapping" != "xno")
87
# Configure options for extra a11y themes
64
88
AC_ARG_ENABLE(all-themes,
65
89
AC_HELP_STRING([--enable-all-themes],
66
90
[Install all a11y theme sets, default is core a11y themes only]),,
67
91
[enable_all_themes=no])
68
92
AM_CONDITIONAL(CORE_THEMES_ONLY, test "$enable_all_themes" = no)
70
AC_ARG_ENABLE(legacy-icon-mapping,
71
AC_HELP_STRING([--disable-legacy-icon-mapping],
72
[Disable symlinking of legacy icon filenames to icon naming spec-compliant filenames (not supported by all themes)]),,
73
[legacy_icon_mapping=yes])
74
AM_CONDITIONAL(LEGACY_ICON_MAPPING, test "$legacy_icon_mapping" = yes)
94
# Configure option for testing themes
95
AC_ARG_ENABLE(test-themes,
96
AC_HELP_STRING([--enable-test-themes],
97
[Install themes to test applications.]),,
98
[enable_test_themes=no])
100
if test "x$enable_test_themes" = "xyes"; then
101
TEST_THEMES="ClearlooksTest"
105
AC_SUBST(TEST_THEMES)
76
107
### Icon sizes for all large print themes