1 dnl Process this file with autoconf to produce a configure script.
5 AC_INIT(glabels, 2.3.pre0svn, http://sourceforge.net/tracker/?func=add&group_id=46122&atid=445116)
6 AC_CONFIG_SRCDIR(src/glabels.c)
7 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
11 AM_CONFIG_HEADER(config.h)
13 AC_PROG_INTLTOOL([0.21])
23 GNOME_COMPILE_WARNINGS
25 AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
26 AC_PATH_PROG(GTK_BUILDER_CONVERT, gtk-builder-convert)
30 dnl ---------------------------------------------------------------------------
31 dnl - LIBGLABELS API versioning
32 dnl ---------------------------------------------------------------------------
33 dnl From the libtool manual:
34 dnl 1. Start with version information of `0:0:0' for each libtool library.
35 dnl 2. Update the version information only immediately before a public release.
36 dnl More frequent updates are unnecessary, and only guarantee that the current
37 dnl interface number gets larger faster.
38 dnl 3. If the library source code has changed at all since the last update, then increment
39 dnl revision (`c:r:a' becomes `c:r+1:a').
40 dnl 4. If any interfaces have been added, removed, or changed since the last update,
41 dnl increment current, and set revision to 0.
42 dnl 5. If any interfaces have been added since the last public release, then increment age.
43 dnl 6. If any interfaces have been removed since the last public release, then set age
49 LIBGLABELS_VERSION_INFO=${LIBGLABELS_C}:${LIBGLABELS_R}:${LIBGLABELS_A}
50 AC_SUBST(LIBGLABELS_VERSION_INFO)
53 dnl ---------------------------------------------------------------------------
54 dnl - Library dependencies
55 dnl ---------------------------------------------------------------------------
59 LIBEBOOK_REQUIRED=2.24.0
61 dnl Make above strings available for packaging files (e.g. rpm spec files)
62 AC_SUBST(GLIB_REQUIRED)
63 AC_SUBST(GTK_REQUIRED)
64 AC_SUBST(LIBXML_REQUIRED)
65 AC_SUBST(LIBEBOOK_REQUIRED)
68 dnl ---------------------------------------------------------------------------
69 dnl - Check for evolution data server
70 dnl ---------------------------------------------------------------------------
72 [AC_HELP_STRING([--without-libebook],
73 [build without Evolution Data Server support])])
75 if test "x$with_libebook" != xno; then
76 PKG_CHECK_MODULES(LIBEBOOK, libebook-1.2 >= $LIBEBOOK_REQUIRED,
77 [have_libebook=yes], [have_libebook=no])
80 if test "x$have_libebook" = "xyes"; then
81 AC_DEFINE(HAVE_LIBEBOOK,1,[Define to 1 for EDS support])
82 OPTIONAL_MODULES="$OPTIONAL_MODULES libebook-1.2 >= $LIBEBOOK_REQUIRED"
86 dnl ---------------------------------------------------------------------------
87 dnl - GLABELS prerequisites
88 dnl ---------------------------------------------------------------------------
89 PKG_CHECK_MODULES(GLABELS, \
90 glib-2.0 >= $GLIB_REQUIRED \
91 gtk+-2.0 >= $GTK_REQUIRED \
92 libxml-2.0 >= $LIBXML_REQUIRED \
96 AC_SUBST(GLABELS_CFLAGS)
97 AC_SUBST(GLABELS_LIBS)
100 dnl ---------------------------------------------------------------------------
101 dnl - LIBGLABELS more modest prerequisites
102 dnl ---------------------------------------------------------------------------
103 PKG_CHECK_MODULES(LIBGLABELS, \
104 glib-2.0 >= $GLIB_REQUIRED \
105 libxml-2.0 >= $LIBXML_REQUIRED \
108 AC_SUBST(LIBGLABELS_CFLAGS)
109 AC_SUBST(LIBGLABELS_LIBS)
112 dnl ---------------------------------------------------------------------------
113 dnl - Enable deprecation testing
114 dnl ---------------------------------------------------------------------------
115 AC_ARG_ENABLE(deprecations,
116 [AC_HELP_STRING([--enable-deprecations],
117 [warn about deprecated usages [default=no]])],,
118 [enable_deprecations=no])
120 if test "x$enable_deprecations" = "xyes"; then
121 DISABLE_DEPRECATED_CFLAGS="\
122 -DG_DISABLE_DEPRECATED \
123 -DGDK_DISABLE_DEPRECATED \
124 -DGTK_DISABLE_DEPRECATED \
125 -DGDK_PIXBUF_DISABLE_DEPRECATED \
127 AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
131 dnl ---------------------------------------------------------------------------
132 dnl - Is freedesktop mime dbase available?
133 dnl ---------------------------------------------------------------------------
134 AC_PATH_PROG(UPDATE_MIME_DATABASE, update-mime-database, no)
135 AM_CONDITIONAL(HAVE_NEW_MIME, test x$UPDATE_MIME_DATABASE != xno)
137 AC_PATH_PROG(UPDATE_DESKTOP_DATABASE, update-desktop-database, no)
138 AM_CONDITIONAL(HAVE_NEWER_MIME, test x$UPDATE_DESKTOP_DATABASE != xno)
140 AC_ARG_ENABLE(update-mimedb, AC_HELP_STRING([--disable-update-mimedb],
141 [disable the update-mime-database after install [default=no]]),,
142 enable_update_mimedb=yes)
143 AM_CONDITIONAL(ENABLE_UPDATE_MIMEDB, test x$enable_update_mimedb = xyes)
145 AC_ARG_ENABLE(update-desktopdb, AC_HELP_STRING([--disable-update-desktopdb],
146 [disable the update-desktop-database after install [default=no]]),,
147 enable_update_desktopdb=yes)
148 AM_CONDITIONAL(ENABLE_UPDATE_DESKTOPDB, test x$enable_update_desktopdb = xyes)
151 dnl ---------------------------------------------------------------------------
152 dnl - Supported languages
153 dnl ---------------------------------------------------------------------------
154 GETTEXT_PACKAGE=glabels
155 AC_SUBST(GETTEXT_PACKAGE)
156 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext package])
161 dnl ---------------------------------------------------------------------------
163 dnl ---------------------------------------------------------------------------
165 dnl Setup for libqrencode compilation
166 AC_DEFINE(__STATIC, static, [Static attribute, needed to compile libqrencode])
169 dnl ---------------------------------------------------------------------------
170 dnl - Makefiles, etc.
171 dnl ---------------------------------------------------------------------------
174 barcode-0.98/Makefile
175 iec16022-0.2.1/Makefile
176 qrencode-3.1.0/Makefile
178 libglabels/libglabels.pc
181 src/stock-pixmaps/Makefile
183 data/templates/Makefile
184 data/pixmaps/Makefile
186 data/builder/Makefile
187 data/desktop/Makefile
194 docs/libglabels/Makefile
199 dnl ---------------------------------------------------------------------------
200 dnl - Print configuration information
201 dnl ---------------------------------------------------------------------------
205 Package: ${PACKAGE}-${VERSION}:
206 Installation prefix ${prefix}
207 Source code location: ${srcdir}
209 Evolution Data Server support: ${have_libebook}
213 cat ${srcdir}/MESSAGE-OF-DOOM