source: trunk/third/libgnomeprintui/configure.in @ 21504

Revision 21504, 3.8 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r21503, which included commits to RCS files with non-trunk default branches.
Line 
1-*- mode: m4 -*-
2AC_PREREQ(2.52)
3AC_INIT(libgnomeprintui, 2.8.2,
4        http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-print)
5
6AM_CONFIG_HEADER(config.h)
7AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
8
9dnl make sure we keep ACLOCAL_FLAGS around for maintainer builds to work
10AC_SUBST(ACLOCAL_AMFLAGS, "$ACLOCAL_FLAGS")
11
12AM_MAINTAINER_MODE
13
14AC_ISC_POSIX
15AC_PROG_CC
16AC_PROG_CPP
17AC_PROG_CXX
18AC_STDC_HEADERS
19AC_LIBTOOL_WIN32_DLL
20AM_PROG_LIBTOOL
21
22# If the source code has changed at all, increment GNOMEPRINT_REVISION
23# If any interfaces have been added, removed, or changed, increment GNOMEPRINT_CURRENT, and set GNOMEPRINT_REVISION to 0.
24# If any interfaces have been added since the last public release, then increment GNOMEPRINT_AGE.
25# If any interfaces have been removed since the last public release, then set GNOMEPRINT_AGE to 0.
26GNOMEPRINT_REVISION=0
27GNOMEPRINT_CURRENT=1
28GNOMEPRINT_AGE=1
29AC_SUBST(GNOMEPRINT_REVISION)
30AC_SUBST(GNOMEPRINT_CURRENT)
31AC_SUBST(GNOMEPRINT_AGE)
32
33AC_DEFINE(WE_ARE_LIBGNOMEPRINT_INTERNALS, 1, [Define it so that we can read libgnomprint's private headers])
34
35dnl =============
36dnl Warning flags
37dnl =============
38GNOME_COMPILE_WARNINGS(maximum)
39CFLAGS="$CFLAGS $warning_flags"
40
41dnl =======
42dnl gettext
43dnl =======
44GETTEXT_PACKAGE=libgnomeprintui-2.2
45AC_SUBST(GETTEXT_PACKAGE)
46AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext package])
47
48ALL_LINGUAS="af am ar az be bg bn bs ca cs cy da de el en_CA en_GB es et eu fa fi fr ga gl gu he hi hr hu id is it ja kn ko li lt lv ml mn ms nb ne nl nn no pa pl pt pt_BR ro ru sk sl sq sr sr@Latn sv ta th tr uk vi wa zh_CN zh_TW"
49AM_GLIB_GNU_GETTEXT
50
51dnl ==========================================
52dnl Checks for gtk-doc and docbook-tools
53dnl ==========================================
54GTK_DOC_CHECK([1.0])
55
56dnl =================
57dnl pkg-config checks
58dnl =================
59dnl It is ugly to put a build time check in for a run time dependency on gnome-icon-theme
60dnl but this will hopefully keep the packagers on their toes
61PKG_CHECK_MODULES(LIBGNOMEPRINTUI, [
62        gtk+-2.0           >= 2.4.0
63        libgnomeprint-2.2  >= 2.8.2
64        libgnomecanvas-2.0 >= 1.117.0
65        gnome-icon-theme   >= 1.1.92
66])
67AC_SUBST(LIBGNOMEPRINTUI_CFLAGS)
68AC_SUBST(LIBGNOMEPRINTUI_LIBS)
69
70AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
71
72dnl ================================================
73dnl Used for the examples that need libglade support
74dnl ================================================
75PKG_CHECK_MODULES(LIBGLADE, [libglade-2.0], [libglade_msg=yes], [libglade_msg=no], [foo=yes])
76AM_CONDITIONAL(WITH_LIBGLADE, test x"$libglade_msg" = "xyes")
77AC_SUBST(LIBGLADE_CFLAGS)
78AC_SUBST(LIBGLADE_LIBS)
79
80dnl ============================================================================
81dnl We might want to link the examples with
82dnl ../libgnomeprint/libgnomeprint/libgnomeprint-2-2.la to not have to make
83dnl install after modifying libgnomeprint
84dnl ============================================================================
85AC_CHECK_FILE(../libgnomeprint/libgnomeprint/libgnomeprint-2-2.la, use_local_libgnomeprint_la="yes", use_local_libgnomeprint_la="no")
86AM_CONDITIONAL(EXAMPLES_USE_LOCAL_LIBGNOMEPRINT, test "x$use_local_libgnomeprint_la" = "xyes")
87
88AC_OUTPUT([
89Makefile
90po/Makefile.in
91libgnomeprintui/Makefile
92libgnomeprintui/gpaui/Makefile
93libgnomeprintui/libgnomeprintui-2.2.pc
94libgnomeprintui/libgnomeprintui-uninstalled-2.2.pc
95tests/Makefile
96examples/Makefile
97doc/Makefile
98])
99
100echo "
101        Compiler:               ${CC}
102        Compiler flags:         ${CFLAGS}"
103if test "x$use_local_libgnomeprint_la" = "xyes" ; then
104   echo "       Use local libgnomeprint-2-2.la for examples : Yes"
105else
106   echo "       Use local libgnomeprint-2-2.la for examples : No"
107fi
108if test "x$set_more_warnings" = "xno" ; then
109   echo "       Disable more warnings:  Yes"
110else
111   echo "       Disable more warnings:  No"
112fi
113if test x$enable_gtk_doc = xyes ; then
114   echo "       Enable gtk-doc:         Yes"
115else
116   echo "       Enable gtk-doc:         No"
117fi
118echo
Note: See TracBrowser for help on using the repository browser.