~ubuntu-branches/ubuntu/vivid/gnome-themes/vivid

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Pedro Fragoso
  • Date: 2009-01-20 03:59:50 UTC
  • mfrom: (1.1.41 upstream)
  • Revision ID: james.westby@ubuntu.com-20090120035950-jdj6nzhbnszz3w1j
Tags: 2.25.5-0ubuntu1
* New upstream release (LP: #319089)
  - New high contrast icons for status/weather.
  Close bugs #564117, #564119, #564193, #564228, #564230, #564231,
  #564234, #564323, #564326, #564420.
* Bump icon-naming-utils to 0.8.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
AC_PREREQ(2.53)
2
2
 
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])
6
6
 
7
7
AM_INIT_AUTOMAKE([1.9 tar-ustar])
8
 
AM_CONFIG_HEADER([config.h])
9
 
AM_MAINTAINER_MODE
10
 
 
11
 
dnl Honor aclocal flags
12
 
ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
13
 
AC_SUBST(ACLOCAL_AMFLAGS)
14
8
 
15
9
IT_PROG_INTLTOOL([0.35.0])
16
 
 
17
 
AC_PROG_CC
18
 
# Checks for header files.
19
 
AC_HEADER_STDC
20
 
# Checks for typedefs, structures, and compiler characteristics.
21
 
AC_C_CONST
22
 
# Checks for library functions.
23
 
AC_TYPE_SIGNAL
24
 
AC_FUNC_ALLOCA
25
 
AC_CHECK_FUNCS(setenv putenv)
26
 
 
27
 
AM_PROG_LIBTOOL
28
 
 
29
 
# theme engines
 
10
PKG_PROG_PKG_CONFIG([0.19])
 
11
 
 
12
GETTEXT_PACKAGE="${PACKAGE}"
 
13
AC_SUBST(GETTEXT_PACKAGE)
 
14
 
 
15
AM_GLIB_GNU_GETTEXT
 
16
 
 
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'
 
20
AC_SUBST(localedir)
 
21
 
 
22
# Workaround to make aclocal get the right flags
 
23
AC_SUBST(ACLOCAL_AMFLAGS, "\${ACLOCAL_FLAGS}")
 
24
 
 
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)
37
33
 
38
 
# icon-naming-utils
39
 
UTILS_REQUIRED=0.8.0
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)
43
 
 
44
 
if test "x$have_utils" = "xyes"; then
45
 
   UTILS_PATH="`$PKG_CONFIG --variable=program_path icon-naming-utils`"
46
 
   case "$host" in
47
 
      *-*-solaris*) ICONMAP="icon-name-mapping" ;;
48
 
      *) ICONMAP="$UTILS_PATH/icon-name-mapping" ;;
49
 
   esac
50
 
   AC_SUBST(ICONMAP)
 
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])
52
44
else
53
 
   AC_MSG_RESULT([no])
54
 
   AC_MSG_ERROR([icon-naming-utils >= $UTILS_REQUIRED is required to build
55
 
                 and install gnome-themes])
56
 
fi
57
 
 
58
 
# gettext stuff
59
 
GETTEXT_PACKAGE=gnome-themes
60
 
AC_SUBST(GETTEXT_PACKAGE)
61
 
 
62
 
AM_GLIB_GNU_GETTEXT
63
 
 
 
45
  # Stable version, enable mapping
 
46
  # and disable placeholders by default
 
47
  icon_mapping_policy=yes
 
48
  placeholders_policy=no
 
49
  AC_MSG_RESULT([no])
 
50
fi
 
51
 
 
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)
 
58
              
 
59
AM_CONDITIONAL(PLACEHOLDERS, test "x$enable_placeholders" != "xno")
 
60
 
 
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)
 
67
 
 
68
# Check for icon-naming-utils
 
69
ICONMAP="true"
 
70
if test "x$enable_mapping" != "xno"; then
 
71
   UTILS_REQUIRED=0.8.7
 
72
 
 
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"
 
78
      AC_MSG_RESULT([yes])
 
79
   else
 
80
        AC_MSG_RESULT([no])
 
81
        AC_MSG_ERROR([icon-naming-utils >= $UTILS_REQUIRED is required to build and install gnome-themes])
 
82
   fi
 
83
fi
 
84
AC_SUBST(ICONMAP)
 
85
AM_CONDITIONAL(LEGACY_ICON_MAPPING, test "x$enable_mapping" != "xno")
 
86
 
 
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)
69
93
 
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])
 
99
 
 
100
if test "x$enable_test_themes" = "xyes"; then
 
101
        TEST_THEMES="ClearlooksTest"
 
102
else
 
103
        TEST_THEMES=""
 
104
fi
 
105
AC_SUBST(TEST_THEMES)
75
106
 
76
107
### Icon sizes for all large print themes
77
108
 
119
150
desktop-themes/Makefile
120
151
desktop-themes/Crux/Makefile
121
152
desktop-themes/Clearlooks/Makefile
 
153
desktop-themes/ClearlooksTest/Makefile
122
154
desktop-themes/Glider/Makefile
123
155
desktop-themes/Glossy/Makefile
124
156
desktop-themes/HighContrast/Makefile
138
170
gtk-themes/Glider/Makefile
139
171
gtk-themes/Glossy/Makefile
140
172
gtk-themes/ClearlooksClassic/Makefile
 
173
gtk-themes/ClearlooksTest/Makefile
141
174
gtk-themes/HighContrast/Makefile
142
175
gtk-themes/HighContrast/gtkrc
143
176
gtk-themes/HighContrastInverse/Makefile
253
286
])
254
287
 
255
288
AC_OUTPUT
 
289
 
 
290
dnl ==========================================================================
 
291
echo "
 
292
gnome-themes-$VERSION:
 
293
 
 
294
        Installation prefix:    ${prefix}
 
295
 
 
296
        Enable placeholders: ${enable_placeholders}
 
297
        Enable legacy icons: ${enable_mapping}
 
298
        Enable all themes:   ${enable_all_themes}
 
299
        Enable test themes:  ${enable_test_themes}
 
300
"