-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
45 lines (31 loc) · 912 Bytes
/
configure.ac
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
AC_INIT(aurora, 1.5)
AC_CONFIG_SRCDIR([README])
AM_INIT_AUTOMAKE
dnl Initialize maintainer mode
AM_MAINTAINER_MODE
AC_PROG_CC
AM_PROG_CC_STDC
AC_PROG_INSTALL
AC_PROG_MAKE_SET
dnl Initialize libtool
AM_DISABLE_STATIC
AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL
AC_ARG_ENABLE(animation, [ --enable-animation compile aurora with animation support], [animation=$enableval], [animation="no"], )
PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.10.0,,AC_MSG_ERROR([GTK+-2.10 is required to compile aurora]))
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_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
AM_CONFIG_HEADER([src/config.h])
AC_CONFIG_FILES([
Makefile
aurora.pc
])
AC_OUTPUT
echo "Now run make."