-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfigure.ac
115 lines (89 loc) · 2.79 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
dnl -*- mode: m4 -*-
AC_PREREQ([2.69])
AC_INIT([gnome-todo],[3.17.2],[https://github.com/GeorgesStavracas/gnome-todo/issues],[gnome-todo])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_SRCDIR([src/main.c])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([build-aux])
AM_SILENT_RULES([yes])
AM_INIT_AUTOMAKE([1.11.1 dist-xz no-dist-gzip tar-ustar])
AM_MAINTAINER_MODE([enable])
dnl ***************************************************************************
dnl Internationalization
dnl ***************************************************************************
IT_PROG_INTLTOOL([0.40.6])
PKG_PROG_PKG_CONFIG([0.22])
GETTEXT_PACKAGE=AC_PACKAGE_TARNAME
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
AM_GLIB_GNU_GETTEXT
## don't rerun to this point if we abort
AC_CACHE_SAVE
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_INSTALL
AC_SEARCH_LIBS([strerror],[cposix])
AC_HEADER_STDC
# no stupid static libraries
AC_DISABLE_STATIC([])
# enable libtool
LT_PREREQ([2.2.6])
LT_INIT
## don't rerun to this point if we abort
AC_CACHE_SAVE
## checks
AC_CHECK_HEADERS([string.h])
AC_CHECK_FUNCS([floor])
AC_CHECK_FUNCS([memset])
AC_CHECK_FUNCS([pow])
AC_CHECK_FUNCS([strstr])
GLIB_GSETTINGS
dnl ================================================================
dnl Misc
dnl ================================================================
AC_PATH_PROG(GLIB_MKENUMS, glib-mkenums)
GNOME_COMPILE_WARNINGS(maximum)
MAINTAINER_COMPILER_FLAGS="\
$MAINTAINER_COMPILER_FLAGS\
-Wall -Wcast-align -Wuninitialized\
-Wno-strict-aliasing -Wempty-body -Wformat\
-Wformat-security -Wformat-nonliteral -Winit-self\
-Wdeclaration-after-statement -Wvla\
-Wpointer-arith -Wmissing-declarations\
-Wcast-align -Wmissing-prototypes\
-Wredundant-decls"
# strip leading spaces
MAINTAINER_COMPILER_FLAGS=${MAINTAINER_COMPILER_FLAGS#* }
AC_SUBST(MAINTAINER_COMPILER_FLAGS)
PKG_CHECK_MODULES(GNOME_TODO,
gmodule-export-2.0
gio-2.0 >= 2.43.4
glib-2.0 >= 2.43.4
gtk+-3.0 >= 3.16.0
libecal-1.2 >= 3.13.90
libedataserver-1.2 >= 3.17.1
libedataserverui-1.2 >= 3.17.1
libical >= 0.43)
APPSTREAM_XML
AC_CONFIG_FILES([
Makefile
src/Makefile
data/Makefile
data/org.gnome.Todo.desktop.in
po/Makefile.in
])
AC_OUTPUT
dnl ==========================================================================
echo "
gnome-todo $VERSION
==================
source at: ${srcdir}
prefix: ${prefix}
compiler: ${CC}
flags: ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}
flags: ${MAINTAINER_COMPILER_FLAGS}
flags: ${GNOME_TODO_CFLAGS} ${GNOME_TODO_LIBS} ${LIBS}
Now type 'make' to build $PACKAGE
"