summaryrefslogtreecommitdiff
path: root/configure.in
blob: c18a7a98efe8a80387e0395fd00008c8cb5fa374 (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
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
AC_INIT(AUTHORS)
AM_INIT_AUTOMAKE(oregano, 0.70)

AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE

GETTEXT_PACKAGE=oregano
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",
	[GetText version number])

AC_ISC_POSIX
AC_PROG_CC
AC_HEADER_STDC

dnl AC_PROG_INTLTOOL([0.35.0])
AC_PROG_INTLTOOL([0.35.0], [no-xml])

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)

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)

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


# Change to support gnomeprint2.0 and 2.2
PKG_CHECK_MODULES(OREGANO,
	gtk+-2.0 >= 2.10.0 \
	libglade-2.0 >= 2.5.0 \
	libgnomeui-2.0 >= 2.12.0 \
	libxml-2.0 >= 2.6.0 \
	libgnomecanvas-2.0 >= 2.12.0 \
	gtksourceview-2.0 >= 2.0 \
	cairo >= 1.2.0)

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/glade/Makefile
data/models/Makefile
data/libraries/Makefile
data/examples/Makefile
data/mime/Makefile
docs/Makefile
stamp.h
])

echo "

Configuration:
	Source code location:			 ${srcdir}
	Compiler:				 ${CC}

	Install location:			 ${prefix}

Type make to build Oregano."