OSDN Git Service

設定変更。
[wordring-tm/wordring-tm.git] / third_party / gnome-icon-theme-3.12.0 / configure.ac
1 dnl Process this file with autoconf to produce a configure script.
2 AC_PREREQ(2.53)
3
4 AC_INIT([gnome-icon-theme], [3.12.0],
5         [http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-icon-theme])
6 AC_CONFIG_MACRO_DIR([m4])
7 AC_CONFIG_SRCDIR([index.theme.in.in])
8
9 AM_INIT_AUTOMAKE([1.9 dist-xz no-dist-gzip tar-ustar foreign])
10
11 PKG_PROG_PKG_CONFIG([0.19])
12 IT_PROG_INTLTOOL([0.40.0])
13
14 GETTEXT_PACKAGE="${PACKAGE}"
15 AC_SUBST(GETTEXT_PACKAGE)
16 localedir='$(prefix)/$(DATADIRNAME)/locale'
17 AC_SUBST(localedir)
18
19 # Workaround to make aclocal get the right flags
20 AC_SUBST(ACLOCAL_AMFLAGS, "\${ACLOCAL_FLAGS}")
21
22 # Define the toplevel path here
23 AC_SUBST(themedir, "\${datadir}/icons/gnome")
24
25 # Input and Output dirs for the rendering
26 AC_SUBST(SVGSRCDIR, "src")
27 AC_SUBST(SVGOUTDIR, "gnome")
28
29 # Icon sizes we want to install
30 AC_SUBST([render_sizes], ["8x8 16x16 22x22 24x24 32x32 48x48 256x256"])
31
32 # Allow icon mapping to be disabled
33 AC_ARG_ENABLE([icon-mapping],
34         AC_HELP_STRING([--enable-icon-mapping],
35                         [Enable compatibility symlinks [default=auto]]),
36         [enable_mapping=$enableval],
37         [enable_mapping=yes])
38
39 ICONMAP="true"
40 if test "x$enable_mapping" != "xno"; then
41    UTILS_REQUIRED=0.8.7
42
43    AC_MSG_CHECKING([icon-naming-utils >= $UTILS_REQUIRED])
44    PKG_CHECK_EXISTS(icon-naming-utils >= $UTILS_REQUIRED,
45                     have_utils=yes, have_utils=no)
46    if test "x$have_utils" = "xyes"; then
47       UTILS_PATH="`$PKG_CONFIG --variable=program_path icon-naming-utils`"
48       ICONMAP="$UTILS_PATH/icon-name-mapping"
49       AC_MSG_RESULT([yes])
50    else
51       AC_MSG_RESULT([no])
52       AC_MSG_ERROR([icon-naming-utils >= $UTILS_REQUIRED is required to build
53                     and install gnome-icon-theme])
54    fi
55 else
56    ICONMAP="false"
57 fi
58
59 AC_SUBST(ICONMAP)
60
61 AC_PATH_PROG(GTK_UPDATE_ICON_CACHE, gtk-update-icon-cache)
62 if test -z "$GTK_UPDATE_ICON_CACHE"; then
63     AC_MSG_ERROR([Could not find gtk-update-icon-cache])
64 fi
65
66 AC_CONFIG_FILES([
67 Makefile
68 gnome-icon-theme.pc
69 po/Makefile.in
70 src/Makefile
71 ])
72
73 AC_OUTPUT