1AC_PREREQ(2.53) 2 3AC_INIT([gnome-themes], [2.32.1], 4 [http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-themes]) 5AC_CONFIG_SRCDIR([icon-themes]) 6 7AM_INIT_AUTOMAKE([1.9 tar-ustar]) 8 9# Enable silent build rules by default, requires at least 10# Automake-1.11. Disable by either passing --disable-silent-rules to 11# configure or passing V=1 to make 12m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) 13 14IT_PROG_INTLTOOL([0.35.0]) 15PKG_PROG_PKG_CONFIG([0.19]) 16 17GETTEXT_PACKAGE="${PACKAGE}" 18AC_SUBST(GETTEXT_PACKAGE) 19 20AM_GLIB_GNU_GETTEXT 21 22# AM_GLIB_GNU_GETTEXT above subst. $DATADIRNAME 23# this is the directory where the *.{mo,gmo} files are installed 24localedir='${prefix}/${DATADIRNAME}/locale' 25AC_SUBST(localedir) 26 27# Workaround to make aclocal get the right flags 28AC_SUBST(ACLOCAL_AMFLAGS, "\${ACLOCAL_FLAGS}") 29 30# Check GTK+ theme engines 31PKG_CHECK_MODULES(THEME_ENGINE, 32 [gtk+-2.0 >= 2.0.0 dnl 33 gdk-pixbuf-2.0 >= 2.0.0 dnl 34 gtk-engines-2 >= 2.15.3 ]) 35 36GTK_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0` 37AC_SUBST(GTK_VERSION) 38 39# Check if it's a development (odd minor) version 40AC_MSG_CHECKING([development series build]) 41MINOR_VERSION="`echo $PACKAGE_VERSION|cut -d. -f2`" 42if expr $MINOR_VERSION % 2 > /dev/null != "0"; then 43 # Development version, disable mapping 44 # and enable placeholder by default 45 icon_mapping_policy=no 46 placeholders_policy=yes 47 enable_test_themes=yes 48 AC_MSG_RESULT([yes]) 49else 50 # Stable version, enable mapping 51 # and disable placeholders by default 52 icon_mapping_policy=yes 53 placeholders_policy=no 54 AC_MSG_RESULT([no]) 55fi 56 57# Configure option to force placeholders 58AC_ARG_ENABLE([placeholders], 59 AC_HELP_STRING([--enable-placeholders], 60 [Enable placeholder icons [default=auto]]), 61 enable_placeholders=$enableval, 62 enable_placeholders=$placeholders_policy) 63 64AM_CONDITIONAL(PLACEHOLDERS, test "x$enable_placeholders" != "xno") 65 66# Configure option to force icon mapping 67AC_ARG_ENABLE([icon-mapping], 68 AC_HELP_STRING([--enable-icon-mapping], 69 [Enable compatibility symlinks [default=auto]]), 70 enable_mapping=$enableval, 71 enable_mapping=$icon_mapping_policy) 72 73# Check for icon-naming-utils 74ICONMAP="true" 75if test "x$enable_mapping" != "xno"; then 76 UTILS_REQUIRED=0.8.7 77 78 AC_MSG_CHECKING([icon-naming-utils >= $UTILS_REQUIRED]) 79 PKG_CHECK_EXISTS(icon-naming-utils >= $UTILS_REQUIRED, have_utils=yes, have_utils=no) 80 if test "x$have_utils" = "xyes"; then 81 UTILS_PATH="`$PKG_CONFIG --variable=program_path icon-naming-utils`" 82 ICONMAP="$UTILS_PATH/icon-name-mapping" 83 AC_MSG_RESULT([yes]) 84 else 85 AC_MSG_RESULT([no]) 86 AC_MSG_ERROR([icon-naming-utils >= $UTILS_REQUIRED is required to build and install gnome-themes]) 87 fi 88fi 89AC_SUBST(ICONMAP) 90AM_CONDITIONAL(LEGACY_ICON_MAPPING, test "x$enable_mapping" != "xno") 91 92# Configure options for extra a11y themes 93AC_ARG_ENABLE(all-themes, 94 AC_HELP_STRING([--enable-all-themes], 95 [Install all a11y theme sets, default is core a11y themes only]),, 96 [enable_all_themes=no]) 97AM_CONDITIONAL(CORE_THEMES_ONLY, test "$enable_all_themes" = no) 98 99# Configure option for testing themes 100AC_ARG_ENABLE(test-themes, 101 AC_HELP_STRING([--enable-test-themes], 102 [Install themes to test applications.]),, 103 [enable_test_themes=no]) 104 105if test "x$enable_test_themes" = "xyes"; then 106 TEST_THEMES="ClearlooksTest" 107else 108 TEST_THEMES="" 109fi 110AC_SUBST(TEST_THEMES) 111 112### Cursor theme to use for large print desktop themes. 113### TODO: Should probably check whether specified/default themes are 114### installed too, and do something appropriate if not. 115AC_ARG_WITH(lp-cursor-theme, 116[AS_HELP_STRING([--with-lp-cursor-theme=THEME], 117 [cursor theme for Large Print desktop theme [default=whiteglass]])], 118[LARGEPRINT_CURSOR_THEME="$withval"], 119[LARGEPRINT_CURSOR_THEME="whiteglass"], 120) 121AC_SUBST(LARGEPRINT_CURSOR_THEME) 122 123AC_ARG_WITH(hclp-cursor-theme, 124[AS_HELP_STRING([--with-hclp-cursor-theme=THEME], 125 [cursor theme for High Contrast Large Print desktop theme [default=redglass]])], 126[LARGEPRINT_HC_CURSOR_THEME="$withval"], 127[LARGEPRINT_HC_CURSOR_THEME="redglass"], 128) 129AC_SUBST(LARGEPRINT_HC_CURSOR_THEME) 130 131AC_ARG_WITH(hclpi-cursor-theme, 132[AS_HELP_STRING([--with-hclpi-cursor-theme=THEME], 133 [cursor theme for High Contrast Large Print Inverse desktop theme [default=whiteglass]])], 134[LARGEPRINT_HCI_CURSOR_THEME="$withval"], 135[LARGEPRINT_HCI_CURSOR_THEME="whiteglass"], 136) 137AC_SUBST(LARGEPRINT_HCI_CURSOR_THEME) 138 139### Icon sizes for all large print themes 140 141LARGEPRINT_DND="48,48" 142LARGEPRINT_MENU="32,32" 143LARGEPRINT_PANEL_MENU="48,48" 144LARGEPRINT_LARGE_TOOLBAR="48,48" 145LARGEPRINT_SMALL_TOOLBAR="32,32" 146LARGEPRINT_BUTTON="32,32" 147LARGEPRINT_DIALOG="64,64" 148LARGEPRINT_MINI_COMMANDER="24,24" 149 150LARGEPRINT_ICON_SIZES="mini-commander-icon=$LARGEPRINT_MINI_COMMANDER:print-manager=$LARGEPRINT_DIALOG:panel-button=$LARGEPRINT_BUTTON:gtk-dnd=$LARGEPRINT_DND:gtk-menu=$LARGEPRINT_MENU:panel-menu=$LARGEPRINT_PANEL_MENU:gtk-large-toolbar=$LARGEPRINT_LARGE_TOOLBAR:gtk-small-toolbar=$LARGEPRINT_SMALL_TOOLBAR:gtk-button=$LARGEPRINT_BUTTON:gtk-dialog=$LARGEPRINT_DIALOG" 151 152LARGEPRINT_FONT="sans 18" 153LARGEPRINT_DOCUMENTS_FONT="sans 18" 154LARGEPRINT_DESKTOP_FONT="sans 18" 155LARGEPRINT_WINDOW_FONT="sans 18" 156LARGEPRINT_MONOSPACE_FONT="monospace 18" 157LARGEPRINT_CURSOR_SIZE="48" 158 159AC_SUBST(LARGEPRINT_ICON_SIZES) 160AC_SUBST(LARGEPRINT_FONT) 161AC_SUBST(LARGEPRINT_DOCUMENTS_FONT) 162AC_SUBST(LARGEPRINT_DESKTOP_FONT) 163AC_SUBST(LARGEPRINT_WINDOW_FONT) 164AC_SUBST(LARGEPRINT_MONOSPACE_FONT) 165AC_SUBST(LARGEPRINT_CURSOR_SIZE) 166 167dnl used to substitute in common sections of theme gtkrc files 168gtk_stock_icons_rc=${srcdir}/common/gtk-stock-icons.rc 169panel_stock_icons_rc=${srcdir}/common/panel-stock-icons.rc 170media_stock_icons_rc=${srcdir}/common/media-stock-icons.rc 171capplet_stock_icons_rc=${srcdir}/common/capplet-stock-icons.rc 172metacity_stock_icons_rc=${srcdir}/common/metacity-stock-icons.rc 173AC_SUBST_FILE(gtk_stock_icons_rc) 174AC_SUBST_FILE(panel_stock_icons_rc) 175AC_SUBST_FILE(media_stock_icons_rc) 176AC_SUBST_FILE(capplet_stock_icons_rc) 177AC_SUBST_FILE(metacity_stock_icons_rc) 178 179AC_CONFIG_FILES([ 180Makefile 181gnome-themes.spec 182common/Makefile 183desktop-themes/Makefile 184desktop-themes/Crux/Makefile 185desktop-themes/Clearlooks/Makefile 186desktop-themes/ClearlooksTest/Makefile 187desktop-themes/Glider/Makefile 188desktop-themes/Glossy/Makefile 189desktop-themes/HighContrast/Makefile 190desktop-themes/HighContrastInverse/Makefile 191desktop-themes/HighContrastLargePrint/Makefile 192desktop-themes/HighContrastLargePrint/index.theme.in 193desktop-themes/HighContrastLargePrintInverse/Makefile 194desktop-themes/HighContrastLargePrintInverse/index.theme.in 195desktop-themes/LargePrint/Makefile 196desktop-themes/LargePrint/index.theme.in 197desktop-themes/LowContrast/Makefile 198desktop-themes/LowContrastLargePrint/Makefile 199desktop-themes/LowContrastLargePrint/index.theme.in 200desktop-themes/Mist/Makefile 201metacity-themes/Makefile 202gtk-themes/Makefile 203gtk-themes/Glider/Makefile 204gtk-themes/Glossy/Makefile 205gtk-themes/ClearlooksClassic/Makefile 206gtk-themes/ClearlooksTest/Makefile 207gtk-themes/HighContrast/Makefile 208gtk-themes/HighContrast/gtkrc 209gtk-themes/HighContrastInverse/Makefile 210gtk-themes/HighContrastInverse/gtkrc 211gtk-themes/HighContrastLargePrint/Makefile 212gtk-themes/HighContrastLargePrint/gtkrc 213gtk-themes/HighContrastLargePrint/pixmaps/Makefile 214gtk-themes/HighContrastLargePrintInverse/Makefile 215gtk-themes/HighContrastLargePrintInverse/gtkrc 216gtk-themes/HighContrastLargePrintInverse/pixmaps/Makefile 217gtk-themes/Inverted/Makefile 218gtk-themes/LargePrint/Makefile 219gtk-themes/LargePrint/gtkrc 220gtk-themes/LowContrast/Makefile 221gtk-themes/LowContrast/gtkrc 222gtk-themes/LowContrastLargePrint/Makefile 223gtk-themes/LowContrastLargePrint/gtkrc 224gtk-themes/LowContrastLargePrint/pixmaps/Makefile 225gtk-themes/Simple/Makefile 226icon-themes/Makefile 227icon-themes/Crux/Makefile 228icon-themes/Crux/16x16/Makefile 229icon-themes/Crux/16x16/actions/Makefile 230icon-themes/Crux/16x16/status/Makefile 231icon-themes/Crux/16x16/places/Makefile 232icon-themes/Crux/22x22/Makefile 233icon-themes/Crux/22x22/actions/Makefile 234icon-themes/Crux/22x22/status/Makefile 235icon-themes/Crux/22x22/places/Makefile 236icon-themes/Crux/24x24/Makefile 237icon-themes/Crux/24x24/actions/Makefile 238icon-themes/Crux/24x24/status/Makefile 239icon-themes/Crux/24x24/places/Makefile 240icon-themes/Crux/32x32/Makefile 241icon-themes/Crux/32x32/actions/Makefile 242icon-themes/Crux/32x32/status/Makefile 243icon-themes/Crux/32x32/places/Makefile 244icon-themes/Crux/scalable/Makefile 245icon-themes/Crux/scalable/actions/Makefile 246icon-themes/Crux/scalable/status/Makefile 247icon-themes/Crux/scalable/places/Makefile 248icon-themes/HighContrast/Makefile 249icon-themes/HighContrastInverse/Makefile 250icon-themes/HighContrastLargePrint/Makefile 251icon-themes/HighContrastLargePrint/36x36/Makefile 252icon-themes/HighContrastLargePrint/36x36/animations/Makefile 253icon-themes/HighContrastLargePrint/48x48/Makefile 254icon-themes/HighContrastLargePrint/48x48/actions/Makefile 255icon-themes/HighContrastLargePrint/48x48/apps/Makefile 256icon-themes/HighContrastLargePrint/48x48/categories/Makefile 257icon-themes/HighContrastLargePrint/48x48/devices/Makefile 258icon-themes/HighContrastLargePrint/48x48/emblems/Makefile 259icon-themes/HighContrastLargePrint/48x48/mimetypes/Makefile 260icon-themes/HighContrastLargePrint/48x48/places/Makefile 261icon-themes/HighContrastLargePrint/48x48/status/Makefile 262icon-themes/HighContrastLargePrintInverse/Makefile 263icon-themes/HighContrastLargePrintInverse/36x36/Makefile 264icon-themes/HighContrastLargePrintInverse/36x36/animations/Makefile 265icon-themes/HighContrastLargePrintInverse/48x48/Makefile 266icon-themes/HighContrastLargePrintInverse/48x48/actions/Makefile 267icon-themes/HighContrastLargePrintInverse/48x48/apps/Makefile 268icon-themes/HighContrastLargePrintInverse/48x48/categories/Makefile 269icon-themes/HighContrastLargePrintInverse/48x48/devices/Makefile 270icon-themes/HighContrastLargePrintInverse/48x48/emblems/Makefile 271icon-themes/HighContrastLargePrintInverse/48x48/mimetypes/Makefile 272icon-themes/HighContrastLargePrintInverse/48x48/places/Makefile 273icon-themes/HighContrastLargePrintInverse/48x48/status/Makefile 274icon-themes/HighContrast-SVG/Makefile 275icon-themes/HighContrast-SVG/48x48/Makefile 276icon-themes/HighContrast-SVG/48x48/animations/Makefile 277icon-themes/HighContrast-SVG/scalable/Makefile 278icon-themes/HighContrast-SVG/scalable/actions/Makefile 279icon-themes/HighContrast-SVG/scalable/apps/Makefile 280icon-themes/HighContrast-SVG/scalable/categories/Makefile 281icon-themes/HighContrast-SVG/scalable/devices/Makefile 282icon-themes/HighContrast-SVG/scalable/emblems/Makefile 283icon-themes/HighContrast-SVG/scalable/emotes/Makefile 284icon-themes/HighContrast-SVG/scalable/mimetypes/Makefile 285icon-themes/HighContrast-SVG/scalable/places/Makefile 286icon-themes/HighContrast-SVG/scalable/status/Makefile 287icon-themes/HighContrast-SVG/scalable/actions-extra/Makefile 288icon-themes/HighContrast-SVG/scalable/apps-extra/Makefile 289icon-themes/HighContrast-SVG/scalable/categories-extra/Makefile 290icon-themes/HighContrast-SVG/scalable/devices-extra/Makefile 291icon-themes/HighContrast-SVG/scalable/emblems-extra/Makefile 292icon-themes/HighContrast-SVG/scalable/emotes-extra/Makefile 293icon-themes/HighContrast-SVG/scalable/mimetypes-extra/Makefile 294icon-themes/HighContrast-SVG/scalable/places-extra/Makefile 295icon-themes/HighContrast-SVG/scalable/status-extra/Makefile 296icon-themes/LargePrint/Makefile 297icon-themes/Mist/22x22/status/Makefile 298icon-themes/Mist/22x22/devices/Makefile 299icon-themes/Mist/22x22/actions/Makefile 300icon-themes/Mist/22x22/places/Makefile 301icon-themes/Mist/22x22/apps/Makefile 302icon-themes/Mist/22x22/Makefile 303icon-themes/Mist/16x16/status/Makefile 304icon-themes/Mist/16x16/devices/Makefile 305icon-themes/Mist/16x16/actions/Makefile 306icon-themes/Mist/16x16/places/Makefile 307icon-themes/Mist/16x16/apps/Makefile 308icon-themes/Mist/16x16/Makefile 309icon-themes/Mist/32x32/status/Makefile 310icon-themes/Mist/32x32/devices/Makefile 311icon-themes/Mist/32x32/actions/Makefile 312icon-themes/Mist/32x32/places/Makefile 313icon-themes/Mist/32x32/apps/Makefile 314icon-themes/Mist/32x32/Makefile 315icon-themes/Mist/Makefile 316icon-themes/Mist/48x48/status/Makefile 317icon-themes/Mist/48x48/devices/Makefile 318icon-themes/Mist/48x48/actions/Makefile 319icon-themes/Mist/48x48/places/Makefile 320icon-themes/Mist/48x48/apps/Makefile 321icon-themes/Mist/48x48/Makefile 322icon-themes/Mist/24x24/status/Makefile 323icon-themes/Mist/24x24/devices/Makefile 324icon-themes/Mist/24x24/actions/Makefile 325icon-themes/Mist/24x24/places/Makefile 326icon-themes/Mist/24x24/apps/Makefile 327icon-themes/Mist/24x24/Makefile 328icon-themes/Mist/256x256/status/Makefile 329icon-themes/Mist/256x256/devices/Makefile 330icon-themes/Mist/256x256/actions/Makefile 331icon-themes/Mist/256x256/places/Makefile 332icon-themes/Mist/256x256/apps/Makefile 333icon-themes/Mist/256x256/Makefile 334po/Makefile.in 335]) 336 337AC_OUTPUT 338 339dnl ========================================================================== 340echo " 341gnome-themes-$VERSION: 342 343 Installation prefix: ${prefix} 344 345 Enable placeholders: ${enable_placeholders} 346 Enable legacy icons: ${enable_mapping} 347 Enable all themes: ${enable_all_themes} 348 Enable test themes: ${enable_test_themes} 349 LargePrint cursor theme: ${LARGEPRINT_CURSOR_THEME} 350 HC LargePrint cursor theme: ${LARGEPRINT_HC_CURSOR_THEME} 351 HCI LargePrint cursor theme: ${LARGEPRINT_HCI_CURSOR_THEME} 352 353" 354