forked from gnomehispano/books
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
74 lines (53 loc) · 1.51 KB
/
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
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
73
74
dnl -*- mode: m4 -*-
AC_PREREQ(2.63)
AC_INIT([gnome-books],[3.11.0],[],[gnome-books])
AC_CONFIG_SRCDIR([src/main.js])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([config])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
AC_CANONICAL_TARGET
# require automake 1.11
AM_INIT_AUTOMAKE([1.11 dist-xz no-dist-gzip tar-ustar foreign])
AM_MAINTAINER_MODE([enable])
GETTEXT_PACKAGE=AC_PACKAGE_NAME
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[The name of the gettext domain])
IT_PROG_INTLTOOL(0.50.1)
PKG_PROG_PKG_CONFIG([0.22])
## don't rerun to this point if we abort
AC_CACHE_SAVE
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_CXX
AC_ISC_POSIX
AC_HEADER_STDC
# no stupid static libraries
AM_DISABLE_STATIC
# enable libtool
AC_PROG_LIBTOOL
# avoid libtool for LTCOMPILE, use it only to link
## don't rerun to this point if we abort
AC_CACHE_SAVE
GLIB_GSETTINGS
PKG_CHECK_MODULES(BOOKS, gjs-1.0)
AC_PATH_PROG([GJS_CONSOLE],[gjs-console],[no])
if test "$GJS_CONSOLE" = "no"; then
AC_MSG_ERROR([gjs is required to build books])
fi
GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable glib_compile_resources gio-2.0`
AC_SUBST(GLIB_COMPILE_RESOURCES)
AC_PATH_PROG(DESKTOP_FILE_VALIDATE, desktop-file-validate)
AC_CONFIG_FILES([
Makefile
data/Makefile
src/Makefile
po/Makefile.in
])
AC_OUTPUT
dnl ==========================================================================
echo "
gnome-books $VERSION
====================
prefix: ${prefix}
Now type 'make' to build $PACKAGE
"