Skip to content
Newer
Older
100644 81 lines (65 sloc) 1.91 KB
3d90a24 @ivmos Evosugar 1.0 import
authored Dec 3, 2011
1 AC_INIT([evosugar], [0.0.0])
2 AC_CONFIG_SRCDIR(src)
3
4 AM_INIT_AUTOMAKE
5 AM_CONFIG_HEADER(config.h)
6
7 AM_MAINTAINER_MODE
8
9 dnl make sure we keep ACLOCAL_FLAGS around for maintainer builds to work
10 AC_SUBST(ACLOCAL_AMFLAGS, "\${ACLOCAL_FLAGS}")
11
12 AC_PROG_INTLTOOL([0.21])
13
14 AC_PROG_CC
15 AC_ISC_POSIX
16 AC_HEADER_STDC
17 AM_DISABLE_STATIC
18 AM_PROG_LIBTOOL
19
20 GNOME_COMPILE_WARNINGS
21
22 dnl base packages and versions
23 LIBGTK_REQUIRED=2.4.0
24 LIBGNOME_REQUIRED=2.7.0
25 LIBGNOMEUI_REQUIRED=2.7.0
26 EVOLUTION_REQUIRED=2.3.1
27 GSOAP_REQUIRED=2.7
28 LIBSSL_REQUIRED=0.9.8
29
30 PKG_CHECK_MODULES(TEST_EPLUGIN,
31 [libgnome-2.0 >= $LIBGNOME_REQUIRED dnl
32 libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED dnl
33 gtk+-2.0 >= $LIBGTK_REQUIRED dnl
34 evolution-plugin >= $EVOLUTION_REQUIRED dnl
35 gsoap >= $GSOAP_REQUIRED dnl
36 libssl >= $LIBSSL_REQUIRED dnl
37 ])
38
39 dnl Evolution plugin install directory
40 AC_ARG_WITH(plugin-install-dir, [ --with-plugin-install-dir=PATH path to evolution plugin directory])
41 if test "x$with_plugin_install_dir" = "x" ; then
42 PLUGIN_INSTALL_DIR=`pkg-config --variable=plugindir evolution-plugin`
43 if test "x$PLUGIN_INSTALL_DIR" = "x"; then
44 AC_MSG_ERROR(Unable to find plugin directory)
45 fi
46 fi
47 AC_SUBST(PLUGIN_INSTALL_DIR)
48
49 dnl Evolution e-error install directory
50 ERROR_DIR=`pkg-config --variable=errordir evolution-plugin`
51 if test "x$ERROR_DIR" = "x"; then
52 AC_MSG_ERROR(Unable to find error file directory)
53 fi
54 AC_SUBST(ERROR_DIR)
55
56 dnl Internationalisation stuff
57 ALL_LINGUAS="en_AU es_ES eu_ES"
58
59 GETTEXT_PACKAGE=evosugar-eplugin-0.0
60 AC_SUBST(GETTEXT_PACKAGE)
61 AM_GLIB_GNU_GETTEXT
62 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [definition of GETTEXT_PACKAGE])
63 AM_GLIB_DEFINE_LOCALEDIR(GNOMELOCALEDIR)
64 LOCALEDIR=$localedir
65 AC_SUBST(LOCALEDIR)
66
67 # Generated files from automake
68 AC_CONFIG_FILES([
69 Makefile
70 src/Makefile
71 po/Makefile.in
72 ])
73
74 AC_OUTPUT
75
76 echo ""
77 echo "Evosugar plugin successfully configured"
78 echo ""
79 echo " Installation path: $PLUGIN_INSTALL_DIR"
80 echo ""
Something went wrong with that request. Please try again.