1dnl
2dnl Process this file with autoconf to create configure.
3
4# Initialize Autoconf
5AC_PREREQ([2.60])
6AC_INIT([xcursor-themes], [1.0.6],
7        [https://gitlab.freedesktop.org/xorg/data/cursors/issues],
8        [xcursor-themes])
9AC_CONFIG_SRCDIR([Makefile.am])
10
11# Initialize Automake
12AM_INIT_AUTOMAKE([foreign dist-bzip2])
13
14# Require xorg-macros: XORG_DEFAULT_OPTIONS
15m4_ifndef([XORG_MACROS_VERSION],
16          [m4_fatal([must install xorg-macros 1.3 or later before running autoconf/autogen])])
17XORG_MACROS_VERSION(1.3)
18XORG_DEFAULT_OPTIONS
19
20AC_PROG_INSTALL
21AC_PROG_LN_S
22
23AC_PATH_PROG(XCURSORGEN, xcursorgen, no)
24if test "x$XCURSORGEN" = xno; then
25	AC_MSG_ERROR([xcursorgen is required to build these cursors.])
26fi
27AC_SUBST([XCURSORGEN])
28
29PKG_CHECK_MODULES(ICONDEFS, xcursor)
30pkg_cursordir=`$PKG_CONFIG --variable=icondir xcursor`
31AC_ARG_WITH(cursordir,
32        AC_HELP_STRING([--with-cursordir=<pathname>],
33          [specify directory for cursor files (default is autodetected)]),
34        [cursordir="$withval"], [cursordir="${pkg_cursordir}"])
35AC_SUBST([cursordir])
36
37AM_CONDITIONAL(WHITEGLASS, true)
38AM_CONDITIONAL(REDGLASS, true)
39AM_CONDITIONAL(HANDHELDS, true)
40
41
42AC_CONFIG_FILES([Makefile
43                handhelds/Makefile
44                redglass/Makefile
45                whiteglass/Makefile
46])
47AC_OUTPUT
48