File: configure.ac

package info (click to toggle)
gtk2-engines-murrine 0.98.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, trixie
  • size: 2,276 kB
  • sloc: ansic: 11,470; sh: 11,022; makefile: 52
file content (84 lines) | stat: -rw-r--r-- 2,122 bytes parent folder | download | duplicates (3)
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
AC_INIT([murrine], [0.98.2])
AC_CONFIG_SRCDIR([README])

AM_INIT_AUTOMAKE

# Use AM_SILENT_RULES if present
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])

dnl Initialize maintainer mode
AM_MAINTAINER_MODE

AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_MAKE_SET

dnl Initialize libtool
AM_DISABLE_STATIC
AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL

dnl Initialize intltool
AC_PROG_INTLTOOL([0.37.1])
GETTEXT_PACKAGE=murrine
AC_SUBST([GETTEXT_PACKAGE])
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package])
AM_GLIB_GNU_GETTEXT


AC_ARG_ENABLE(animation,
              [  --enable-animation      compile murrine with animation support],
              [animation=$enableval],
              [animation="no"], )
AC_ARG_ENABLE(animationrtl,
              [  --enable-animationrtl   compile murrine with progressbar animation from right to left],
              [animationrtl=$enableval],
              [animationrtl="no"], )
AC_ARG_ENABLE(rgba,
              [  --disable-rgba          compile murrine without rgba support],
              [rgba=$enableval],
              [rgba="yes"], )

PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.18.0,,
                  AC_MSG_ERROR([GTK+-2.18 is required to compile murrine]))

PKG_CHECK_MODULES(pixman,[pixman-1],,AC_MSG_ERROR([Pixman is required to compile murrine]))

AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)

AC_SUBST(pixman_CFLAGS)
AC_SUBST(pixman_LIBS)

GTK_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0`
AC_SUBST(GTK_VERSION)

AC_SUBST(BUILD_ENGINES)
AC_SUBST(BUILD_THEMES)

if test $animation = "yes"; then
	AC_DEFINE_UNQUOTED(HAVE_ANIMATION, 1, [Defines whether to compile with animation support])
fi

if test $animationrtl = "yes"; then
	AC_DEFINE_UNQUOTED(HAVE_ANIMATIONRTL, 1, [Defines whether to compile with progressbar animation from right to left])
fi

if test $rgba = "yes"; then
	AC_DEFINE_UNQUOTED(HAVE_RGBA, 1, [Defines whether to compile with rgba support])
fi

AM_CONFIG_HEADER([src/config.h])

AC_CONFIG_FILES([
Makefile
po/Makefile.in
schema/Makefile
schema/murrine.xml.in
murrine.pc
]) 

AC_OUTPUT

echo
echo "Now type 'make' to compile murrine."