-
Notifications
You must be signed in to change notification settings - Fork 2
/
configure.in
63 lines (42 loc) · 1.1 KB
/
configure.in
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
# Initialization
AC_INIT
PACKAGE=gvfs-dav-mount
VERSION=0.10
AC_SUBST(PACKAGE)
AC_SUBST(VERSION)
AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
AM_CONFIG_HEADER(config.h)
# Used programs
AC_PROG_CC
AM_PROG_LIBTOOL
# Check for pkg-config
AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no)
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test "x$HAVE_PKGCONFIG" = "xno"; then
AC_MSG_ERROR(you need to have pkgconfig installed !)
fi
# Dependency checks
GTK_REQUIRED=2.13.1
GIO_REQUIRED=2.15.7
LIBXML_REQUIRED=2.6.0
SOUP_REQUIRED=2.3.0
PKG_CHECK_MODULES(GTK, gio-2.0 >= $GIO_REQUIRED gtk+-2.0 >= $GTK_REQUIRED)
PKG_CHECK_MODULES(XML, libxml-2.0 >= $LIBXML_REQUIRED)
PKG_CHECK_MODULES(SOUP, libsoup-2.4 >= $SOUP_REQUIRED)
# Make dependency CFLAGS and LIBS available
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
AC_SUBST(XML_CFLAGS)
AC_SUBST(XML_LIBS)
AC_SUBST(SOUP_CFLAGS)
AC_SUBST(SOUP_LIBS)
# i18n
GETTEXT_PACKAGE=gvfs-dav-mount
AC_SUBST([GETTEXT_PACKAGE])
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "$GETTEXT_PACKAGE", [Gettext package])
AM_GLIB_GNU_GETTEXT
IT_PROG_INTLTOOL([0.35.0])
# output
AC_OUTPUT([
Makefile
])