forked from marc-lorber/oregano
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
99 lines (80 loc) · 2.2 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
AC_INIT(AUTHORS)
AM_INIT_AUTOMAKE(oregano, 0.81)
AC_CONFIG_HEADERS(config.h)
AM_MAINTAINER_MODE
AC_CONFIG_MACRO_DIR([m4])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])œ
GETTEXT_PACKAGE=oregano
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",
[GetText version number])
dnl Management of gsettings
GLIB_GSETTINGS
AC_ISC_POSIX
AC_PROG_CC
AC_HEADER_STDC
AC_PROG_INTLTOOL([0.40.1])
AM_PROG_LIBTOOL
# Just run true if these don't exist
AC_PATH_PROG(UPDATE_MIME_DATABASE, update-mime-database, true)
AC_PATH_PROG(UPDATE_DESKTOP_DATABASE, update-desktop-database, true)
ALL_LINGUAS="ca de es fr it ja pt_BR ro ru sv"
AM_GLIB_GNU_GETTEXT
dnl ###########################################################################
dnl Check for documentation requirements
dnl ###########################################################################
AC_SUBST(SCROLLKEEPER_REQUIRED)
AC_PATH_PROG(SCROLLKEEPER_CONFIG, scrollkeeper-config,no)
if test x$SCROLLKEEPER_CONFIG = xno; then
AC_MSG_ERROR("Couldn't find scrollkeeper-config, please install the scrollkeeper package")
fi
#
PKG_CHECK_MODULES(OREGANO,
gtk+-3.0 >= 3.0 \
libxml-2.0 >= 2.6.0 \
goocanvas-2.0 >= 2.0 \
gtksourceview-3.0 >= 3.0)
#cairo >= 1.8.0)
#gconf-2.0 >= 2.28.0 \
# Taken from Screem HTML editor configure.in
AC_ARG_ENABLE(update-mimedb,
AC_HELP_STRING([--disable-update-mimedb],
[disable the update-mime-database after install [default=no]]),,
enable_update_mimedb=yes)
AM_CONDITIONAL(ENABLE_UPDATE_MIMEDB, test x$enable_update_mimedb = xyes)
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)
AC_SUBST(OREGANO_LIBS)
AC_SUBST(OREGANO_CFLAGS)
AC_OUTPUT([
Makefile
data/oregano.desktop.in
src/Makefile
src/gplot/Makefile
src/sheet/Makefile
src/model/Makefile
src/engines/Makefile
src/stock/Makefile
src/pixmaps/Makefile
po/Makefile.in
help/Makefile
help/C/Makefile
help/es/Makefile
help/fr/Makefile
data/Makefile
data/models/Makefile
data/libraries/Makefile
data/examples/Makefile
data/mime/Makefile
data/xml/Makefile
docs/Makefile
stamp.h
])
echo "Configuration:"
echo " Source code location: ${srcdir}"
echo " Compiler: ${CC}"
echo ""
echo " Install location: ${prefix}"
echo ""
echo "Type make to build Oregano."