source: trunk/third/libgnome/configure.in @ 21494

Revision 21494, 5.3 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r21493, which included commits to RCS files with non-trunk default branches.
Line 
1AC_PREREQ(2.54)
2
3# Making releases:
4#   libgnome_micro_version += 1;
5#   libgnome_interface_age += 1;
6# if any functions have been added, set libgnome_interface_age to 0.
7# if backwards compatibility has been broken,
8# set LIBGNOME_BINARY_AGE and LIBGNOME_INTERFACE_AGE to 0.
9#
10m4_define([libgnome_major_version], [2])
11m4_define([libgnome_minor_version], [8])
12m4_define([libgnome_micro_version], [1])
13m4_define([libgnome_interface_age], [1])
14# If you need a modifier for the version number.
15# Normally empty, but can be used to make "fixup" releases.
16m4_define([libgnome_extraversion], [])
17
18dnl required versions of other tools.
19m4_define([audiofile_required_version], [0.2.3])
20m4_define([esound_required_version],    [0.2.26])
21m4_define([gconf_required_version],     [1.1.11])
22m4_define([glib_required_version],      [2.0.3])
23m4_define([gnome_vfs_required_version], [2.5.3])
24m4_define([libbonobo_required_version], [2.0.0])
25
26
27dnl libtool versioning from libgnome
28m4_define([libgnome_current], [m4_eval(100 * libgnome_minor_version + libgnome_micro_version - libgnome_interface_age)])
29m4_define([libgnome_binary_age], [m4_eval(100 * libgnome_minor_version + libgnome_micro_version)])
30m4_define([libgnome_revision], [libgnome_interface_age])
31m4_define([libgnome_age], [m4_eval(libgnome_binary_age - libgnome_interface_age)])
32m4_define([libgnome_version], [libgnome_major_version().libgnome_minor_version().libgnome_micro_version()libgnome_extraversion()])
33
34AC_INIT([libgnome], [libgnome_version],
35        [http://bugzilla.gnome.org/enter_bug.cgi?product=libgnome])
36AC_CONFIG_SRCDIR([libgnome/libgnome.h])
37
38LIBGNOME_MAJOR_VERSION=libgnome_major_version
39LIBGNOME_MINOR_VERSION=libgnome_minor_version
40LIBGNOME_MICRO_VERSION=libgnome_micro_version
41LIBGNOME_INTERFACE_AGE=libgnome_interface_age
42
43LIBGNOME_CURRENT=libgnome_current
44LIBGNOME_REVISION=libgnome_revision
45LIBGNOME_AGE=libgnome_age
46
47AC_SUBST(LIBGNOME_CURRENT)
48AC_SUBST(LIBGNOME_REVISION)
49AC_SUBST(LIBGNOME_AGE)
50
51AM_INIT_AUTOMAKE
52AM_CONFIG_HEADER(config.h)
53
54AM_MAINTAINER_MODE
55
56dnl make aclocal calls respect $ACLOCAL_FLAGS
57ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
58AC_SUBST(ACLOCAL_AMFLAGS)
59
60dnl
61dnl Due to the sed scripts being split on 90 line
62dnl blocks, this macro needs to be right at the beginning.
63dnl
64AC_PROG_INTLTOOL([0.21])
65
66AC_ISC_POSIX
67AC_PROG_CC
68AC_STDC_HEADERS
69AC_LIBTOOL_WIN32_DLL
70AM_PROG_LIBTOOL
71
72AC_CHECK_FUNCS([setenv unsetenv clearenv setfsgid])
73AC_CHECK_HEADERS(sys/fsuid.h)
74AC_CHECK_FUNCS(bind_textdomain_codeset)
75
76GETTEXT_PACKAGE=libgnome-2.0
77AC_SUBST(GETTEXT_PACKAGE)
78AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [The gettext package])
79
80ALL_LINGUAS="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 ko lt lv mk ml mn ms nb ne nl nn no pa pl pt pt_BR ro ru sk sl sq sr sr@ije sr@Latn sv ta th tr uk vi wa yi zh_CN zh_TW"
81AM_GLIB_GNU_GETTEXT
82AM_GLIB_DEFINE_LOCALEDIR([LIBGNOME_LOCALEDIR])
83
84GNOME_COMPILE_WARNINGS
85
86dnl Define GNOME_ENABLE_DEBUG if the --enable-debug switch was given.
87GNOME_DEBUG_CHECK
88
89dnl Don't use AC_PROG_AWK since we need the full pathname.
90AC_PATH_PROGS(AWK, mawk gawk nawk awk, )
91AC_PATH_PROGS(PERL, perl5 perl)
92
93# define a MAINT-like variable REBUILD which is set if Perl
94# and awk are found, so autogenerated sources can be rebuilt
95AC_ARG_ENABLE(rebuilds,
96              AC_HELP_STRING([--disable-rebuilds],
97                             [disable all source autogeneration rules]),,
98              [enable_rebuilds=yes])
99REBUILD=\#
100if test "x$enable_rebuilds" = "xyes" && \
101     test -n "$PERL" && \
102     $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \
103     test -n "$AWK" ; then
104  REBUILD=
105fi
106AC_SUBST(REBUILD)
107
108dnl
109dnl Start of pkg-config checks
110dnl
111dnl We first check for esound and audiofile (which has conditional
112dnl support built in)
113dnl
114
115SOUND_MODULES="esound >= esound_required_version dnl
116 audiofile >= audiofile_required_version"
117PKG_CHECK_MODULES(SOUND_TEST, [$SOUND_MODULES],
118[
119  AC_DEFINE(HAVE_LIBAUDIOFILE,, [Compile with audiofile support])
120  AC_DEFINE(HAVE_ESD,, [Compile with esd support])
121],[
122  SOUND_MODULES=""
123])
124
125PKG_CHECK_MODULES(LIBGNOME, dnl
126 [glib-2.0 >= glib_required_version dnl
127  gmodule-2.0 >= glib_required_version dnl
128  gobject-2.0 >= glib_required_version dnl
129  gnome-vfs-2.0 >= gnome_vfs_required_version dnl
130  libbonobo-2.0 >= libbonobo_required_version dnl
131  gconf-2.0 >= gconf_required_version dnl
132  $SOUND_MODULES])
133
134dnl
135dnl Check for gtk-doc
136dnl
137GTK_DOC_CHECK([1.0])
138
139dnl Specify the gconf configuration source,
140dnl default to xml::$(sysconfdir)/gconf/gconf.xml.defaults
141
142dnl ==============================================
143dnl Special GConf section
144dnl ==============================================
145
146AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
147
148if test x"$GCONFTOOL" = xno; then
149  AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf])
150fi
151
152AM_GCONF_SOURCE_2
153
154dnl
155dnl Substitute these
156dnl
157GNOME_VFS_VERSION=`$PKG_CONFIG --modversion gnome-vfs-2.0`
158AC_SUBST(GNOME_VFS_VERSION)
159
160AC_CHECK_LIB(popt, poptStrippedArgv,, AC_MSG_ERROR([popt 1.5 or newer is required to build
161libgnome. You can download the latest version from ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/]))
162
163AC_CONFIG_FILES([
164Makefile
165po/Makefile.in
166libgnome/Makefile
167monikers/Makefile
168schemas/Makefile
169gnome-data/Makefile
170libgnome/libgnome-2.0.pc
171libgnome/libgnome-2.0-uninstalled.pc
172doc/Makefile
173doc/reference/Makefile
174doc/reference/version.xml
175])
176
177AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.