configure.ac 1.41 KB
Newer Older
1
m4_define([api_major], [0])
Debarshi Ray's avatar
Debarshi Ray committed
2
m4_define([api_minor], [2])
3
m4_define([api_micro], [2])
4

Debarshi Ray's avatar
Debarshi Ray committed
5
m4_define([gfbgraph_version], [api_major.api_minor.api_micro])
6 7 8

AC_PREREQ([2.63])
AC_INIT([gfbgraph], [gfbgraph_version],
9
        [https://bugzilla.gnome.org/enter_bug.cgi?product=gfbgraph],
10 11 12
        [gfbgraph],
        [https://github.com/alvaropg/libgfbgraph.git])

13
AC_CONFIG_SRCDIR([gfbgraph/gfbgraph.h])
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
AC_CONFIG_HEADERS([config.h])

AC_CONFIG_MACRO_DIR([m4])

AM_INIT_AUTOMAKE([1.11 -Wno-portability])

AM_SILENT_RULES([yes])

API_MAJOR=api_major
API_MINOR=api_minor
AC_SUBST([API_MAJOR],[$API_MAJOR])
AC_SUBST([API_MINOR],[$API_MINOR])
AC_SUBST([API_VERSION],[$API_MAJOR.$API_MINOR])
AC_SUBST([API_VERSION_AM],[$API_MAJOR\_$API_MINOR])
AC_DEFINE_UNQUOTED(API_VERSION, [$API_VERSION], [API version])

AC_PROG_CC

LT_INIT

34 35 36 37 38 39 40
# check for gtk-doc
m4_ifdef([GTK_DOC_CHECK], [
GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
],[
AM_CONDITIONAL([ENABLE_GTK_DOC], false)
])

41 42
GOBJECT_INTROSPECTION_CHECK([1.30.0])

43 44 45 46 47 48 49 50 51
PKG_CHECK_MODULES(LIBGFBGRAPH, [glib-2.0 gio-2.0 gobject-2.0 rest-0.7 json-glib-1.0])

PKG_CHECK_MODULES(SOUP, [libsoup-2.4])
SOUP_UNSTABLE_CPPFLAGS=-DLIBSOUP_USE_UNSTABLE_REQUEST_API
AC_SUBST(SOUP_UNSTABLE_CPPFLAGS)

PKG_CHECK_MODULES(GOA, [goa-1.0])
GOA_API_CHANGE_CPPFLAGS=-DGOA_API_IS_SUBJECT_TO_CHANGE
AC_SUBST(GOA_API_CHANGE_CPPFLAGS)
52 53 54 55

AC_OUTPUT([
Makefile
libgfbgraph.pc
56 57
docs/Makefile
docs/reference/Makefile
58 59
gfbgraph/Makefile
tests/Makefile])