summaryrefslogtreecommitdiff
path: root/configure.ac
blob: 74f8c3239fd3ab6a74ab425c2649da8a52ff4be4 (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
AC_PREREQ(2.53)
AC_INIT(rest, 0.1)
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
AM_CONFIG_HEADER(config.h)

AC_CANONICAL_HOST

AC_PROG_CC
AC_PROG_CC_STDC
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_ISC_POSIX
AC_HEADER_STDC
AM_PROG_CC_C_O

PKG_CHECK_MODULES(GLIB, glib-2.0)
PKG_CHECK_MODULES(SOUP, libsoup-2.4)
PKG_CHECK_MODULES(JSON, json-glib-1.0)

AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)

AC_SUBST(SOUP_CFLAGS)
AC_SUBST(SOUP_LIBS)

AC_SUBST(JSON_CFLAGS)
AC_SUBST(JSON_LIBS)

GTK_DOC_CHECK(1.4)

localedir=${datadir}/locale
AC_SUBST(localedir)

AC_OUTPUT([
        Makefile
        rest/Makefile
        examples/Makefile
        rest.pc
])