summaryrefslogtreecommitdiff
path: root/configure.ac
blob: c37b496ef077fdd5ecfd5fee8e7da4220211c704 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.53)

AC_INIT([adwaita-icon-theme], [3.18.0],
        [http://bugzilla.gnome.org/enter_bug.cgi?product=adwaita-icon-theme])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([index.theme.in.in])

AM_INIT_AUTOMAKE([1.9 dist-xz no-dist-gzip tar-ustar foreign])

PKG_PROG_PKG_CONFIG([0.19])
IT_PROG_INTLTOOL([0.40.0])

GETTEXT_PACKAGE="${PACKAGE}"
AC_SUBST(GETTEXT_PACKAGE)

# Workaround to make aclocal get the right flags
AC_SUBST(ACLOCAL_AMFLAGS, "\${ACLOCAL_FLAGS}")

# Define the toplevel path here
AC_SUBST(themedir, "\${datadir}/icons/Adwaita")

# Input and Output dirs for the rendering
AC_SUBST(SVGOUTDIR, "Adwaita")
AC_SUBST(SVGSRCDIR, "src/symbolic")

# Icon sizes we want to install
AC_SUBST([render_sizes], ["8x8 16x16 22x22 24x24 32x32 48x48 256x256"])
AC_SUBST([symbolic_render_sizes], [""])
AC_SUBST([install_sizes], ["8x8 16x16 22x22 24x24 32x32 48x48 64x64 96x96 256x256"])

AC_PROG_LN_S
AC_PATH_PROG(GTK_UPDATE_ICON_CACHE, gtk-update-icon-cache)

# need git, icontool, and inkscape for rendering
allow_rendering=yes
AC_PATH_PROG([GIT], [git], [false])
if test "x$GIT" = "xfalse"; then
   allow_rendering=no
fi
AC_PATH_PROG([ICONTOOL_RENDER], [icontool-render], [false])
if test "x$ICONTOOL_RENDER" = "xfalse"; then
   allow_rendering=no
fi
AC_PATH_PROG([INKSCAPE], [inkscape], [false])
if test "x$INKSCAPE" = "xfalse"; then
   allow_rendering=no
fi
AM_CONDITIONAL(ALLOW_RENDERING, test "x$allow_rendering" = "xyes")

symbolic_encode_sizes="16x16 24x24 32x32 48x48 64x64 96x96"
AC_PATH_PROG([GTK_ENCODE_SYMBOLIC_SVG], [gtk-encode-symbolic-svg], [false])
if test "x$GTK_ENCODE_SYMBOLIC_SVG" = "xfalse"; then
   symbolic_encode_sizes=""
fi
AC_SUBST(symbolic_encode_sizes)

AC_ARG_ENABLE([w32-cursors],
  [AS_HELP_STRING([--enable-w32-cursors],
    [Make and install Windows cursors (.cur and .ani) instead of X cursors])],
  [case "${enableval}" in
    yes) enable_w32_cursors=yes ;;
    no)  enable_w32_cursors=no ;;
    *) AC_MSG_ERROR([bad value ${enableval} for --enable-w32-cursors]) ;;
   esac],
  [enable_w32_cursors=no])
AC_SUBST(enable_w32_cursors)

AC_ARG_ENABLE([l-xl-variants],
  [AS_HELP_STRING([--enable-l-xl-variants],
    [Also make and install Large and Extra Large Windows cursor versions])],
  [case "${enableval}" in
    yes) enable_l_xl_variants=yes ;;
    no)  enable_l_xl_variants=no ;;
    *) AC_MSG_ERROR([bad value ${enableval} for --enable-l-xl-variants]) ;;
   esac],
  [enable_l_xl_variants=no])
AC_SUBST(enable_l_xl_variants)
AM_CONDITIONAL([ENABLE_L_XL_VARIANTS], [test x$enable_l_xl_variants = xyes])

AC_CONFIG_FILES([
Makefile
adwaita-icon-theme.pc
po/Makefile.in
src/Makefile
src/fullcolor/Makefile
src/symbolic/Makefile
src/spinner/Makefile
])

AC_OUTPUT