summaryrefslogtreecommitdiff
path: root/configure.ac
blob: 237b2a0893439238ebbda88a92b237f1d2d6762b (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
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.58])
AC_INIT( swfdec-gnome, [0.5.5.1], [https://bugs.freedesktop.org/enter_bug.cgi?product=swfdec] )

AM_INIT_AUTOMAKE(1.6)
AC_CONFIG_SRCDIR([config.h.in])
AC_CONFIG_HEADER([config.h])
AM_MAINTAINER_MODE

# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_MAKE_SET
IT_PROG_INTLTOOL([0.35.0])

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h string.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST

# Checks for library functions.
AC_CHECK_FUNCS([strstr])

GNOME_COMMON_INIT
dnl GNOME_DOC_INIT
GNOME_MAINTAINER_MODE_DEFINES
GNOME_COMPILE_WARNINGS
GNOME_CXX_WARNINGS
GNOME_DEBUG_CHECK

dnl GTK_DOC_CHECK(1.0)

dnl Setup gettext
GETTEXT_PACKAGE=swfdec-gnome
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package])
AM_GLIB_GNU_GETTEXT

dnl Required versions

SWFDEC_MAJORMINOR=0.5
AC_SUBST(SWFDEC_MAJORMINOR)
SWFDEC_REQUIRED=0.5.5.1

GTK_REQUIRED=2.12.0

dnl Check dependencies

PKG_CHECK_MODULES(THUMBNAILER, swfdec-$SWFDEC_MAJORMINOR = $SWFDEC_REQUIRED)
PKG_CHECK_MODULES(PLAYER, gmodule-export-2.0 swfdec-$SWFDEC_MAJORMINOR = $SWFDEC_REQUIRED swfdec-gtk-$SWFDEC_MAJORMINOR = $SWFDEC_REQUIRED gtk+-2.0 >= $GTK_REQUIRED)

AM_GCONF_SOURCE_2
AC_PATH_PROG([GCONFTOOL], [gconftool-2], [no])
if test "x$GCONFTOOL" = "xno"; then
	AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf])
fi


dnl Finish up

AC_SUBST(GLOBAL_CFLAGS)

AC_CONFIG_FILES([Makefile
                 data/Makefile
                 player/Makefile
                 po/Makefile.in
                 thumbnailer/Makefile])
AC_OUTPUT