source: trunk/third/gnome-desktop/configure.in @ 21376

Revision 21376, 5.7 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r21375, which included commits to RCS files with non-trunk default branches.
Line 
1AC_INIT([gnome-desktop], [2.8.3],
2        [http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-desktop])
3AC_CONFIG_SRCDIR([libgnome-desktop])
4
5AM_INIT_AUTOMAKE
6AM_CONFIG_HEADER(config.h)
7
8dnl make sure we keep ACLOCAL_FLAGS around for maintainer builds to work
9AC_SUBST(ACLOCAL_AMFLAGS, "\${ACLOCAL_FLAGS}")
10
11# Before making a release, the LT_VERSION string should be modified.
12# The string is of the form C:R:A.
13# - If interfaces have been changed or added, but binary compatibility has
14#   been preserved, change to C+1:0:A+1
15# - If binary compatibility has been broken (eg removed or changed interfaces)
16#   change to C+1:0:0
17# - If the interface is the same as the previous version, change to C:R+1:A
18
19LT_VERSION=3:13:1
20AC_SUBST(LT_VERSION)
21
22AM_MAINTAINER_MODE
23
24AC_PROG_INTLTOOL
25
26AC_ISC_POSIX
27AC_PROG_CC
28AC_STDC_HEADERS
29AC_LIBTOOL_WIN32_DLL
30AM_PROG_LIBTOOL
31AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
32
33GNOME_PLATFORM=2
34GNOME_MINOR=8
35GNOME_MICRO=3
36GNOME_DISTRIBUTOR="GNOME.Org"
37GNOME_DATE=`date +"%Y-%m-%d"`
38
39AC_ARG_WITH(gnome_distributor, [  --with-gnome-distributor=DISTRIBUTOR  Specify name of GNOME distributor])
40
41if test "x$with_gnome_distributor" != x ; then
42  GNOME_DISTRIBUTOR=$with_gnome_distributor
43fi
44
45AC_SUBST(GNOME_PLATFORM)
46AC_SUBST(GNOME_MINOR)
47AC_SUBST(GNOME_MICRO)
48AC_SUBST(GNOME_DISTRIBUTOR)
49AC_SUBST(GNOME_DATE)
50
51GNOME_COMPILE_WARNINGS(yes)
52
53AC_ARG_ENABLE(deprecations,
54              [AC_HELP_STRING([--enable-deprecations],
55                              [warn about deprecated usages [default=no]])],,
56              [enable_deprecations=no])
57
58if test "x$enable_deprecations" = "xyes"; then
59   DISABLE_DEPRECATED_CFLAGS="\
60-DG_DISABLE_DEPRECATED \
61-DGDK_DISABLE_DEPRECATED \
62-DGTK_DISABLE_DEPRECATED \
63-DGDK_PIXBUF_DISABLE_DEPRECATED \
64-DGNOME_DISABLE_DEPRECATED"
65   AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
66fi
67
68dnl If you add a version number here, you *must* add an AC_SUBST line for
69dnl it too, or it will never make it into the spec file!
70
71GDK_PIXBUF_REQUIRED=2.0.3
72GTK_REQUIRED=2.1.2
73LIBGNOMECANVAS_REQUIRED=2.0.0
74LIBGNOMEUI_REQUIRED=2.1.0
75GNOME_VFS_REQUIRED=2.0.0
76STARTUP_NOTIFICATION_REQUIRED=0.5
77
78AC_SUBST(GTK_REQUIRED)
79AC_SUBST(GDK_PIXBUF_REQUIRED)
80AC_SUBST(LIBGNOMEUI_REQUIRED)
81AC_SUBST(LIBGNOMECANVAS_REQUIRED)
82AC_SUBST(GNOME_VFS_REQUIRED)
83AC_SUBST(STARTUP_NOTIFICATION_REQUIRED)
84
85if $PKG_CONFIG --atleast-version $STARTUP_NOTIFICATION_REQUIRED libstartup-notification-1.0; then
86  echo "Building with libstartup-notification"
87  AC_DEFINE(HAVE_STARTUP_NOTIFICATION, 1,
88            [Define if the startup-notification package is present])
89  with_startup_notification=yes
90  STARTUP_NOTIFICATION_PACKAGE=libstartup-notification-1.0
91else
92  echo "***** WARNING: Building without libstartup-notification"
93  with_startup_notification=no
94  STARTUP_NOTIFICATION_PACKAGE=
95fi
96
97AC_SUBST(STARTUP_NOTIFICATION_PACKAGE)
98
99dnl pkg-config dependency checks
100
101PKG_CHECK_MODULES(GNOME_DESKTOP, gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED gnome-vfs-2.0 >= $GNOME_VFS_REQUIRED $STARTUP_NOTIFICATION_PACKAGE)
102
103PKG_CHECK_MODULES(GNOME_ABOUT, gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED libgnomecanvas-2.0 >= $LIBGNOMECANVAS_REQUIRED)
104
105dnl scrollkeeper checks
106
107AC_PATH_PROG(SCROLLKEEPER_CONFIG, scrollkeeper-config,no)
108if test x$SCROLLKEEPER_CONFIG = xno; then
109  AC_MSG_ERROR(Couldn't find scrollkeeper-config. Please install the scrollkeeper package)
110fi
111
112dnl Language Support
113
114GETTEXT_PACKAGE=gnome-desktop-2.0
115AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
116                   [The gettext translation domain])
117AC_SUBST(GETTEXT_PACKAGE)
118
119ALL_LINGUAS="af am ar az be bg bn br bs ca cs cy da de el en_CA en_GB eo es et eu fa fi fr ga gl gu he hi hr hu id is it ja kn ko li lt lv mi mk ml mn mr ms nb ne nl nn no nso pa pl pt pt_BR ro ru sk sl sq sr sr@Latn sv ta th tk tr uk vi wa yi yo zh_CN zh_TW zu"
120AM_GLIB_GNU_GETTEXT
121
122
123dnl Place to look for KDE menus
124
125AC_ARG_WITH(kde-datadir, [  --with-kde-datadir=DIR  Location of KDE data])
126
127if test "x$with_kde_datadir" = x ; then
128  kde_datadir=/usr/share
129else
130  kde_datadir=$with_kde_datadir
131fi
132
133AC_DEFINE_UNQUOTED(KDE_MENUDIR, "$kde_datadir/applnk",
134                   [The KDE menu directory])
135AC_DEFINE_UNQUOTED(KDE_ICONDIR, "$kde_datadir/icons",
136                   [The KDE icon directory])
137AC_DEFINE_UNQUOTED(KDE_MINI_ICONDIR, "$kde_datadir/icons/mini",
138                   [The KDE mini icon directory])
139
140dnl Don't use AC_PROG_AWK since we need the full pathname.
141AC_PATH_PROGS(AWK, mawk gawk nawk awk, )
142AC_PATH_PROGS(PERL, perl5 perl)
143
144dnl define a MAINT-like variable REBUILD which is set if Perl
145dnl and awk are found, so autogenerated sources can be rebuilt
146AC_ARG_ENABLE(rebuilds, [  --disable-rebuilds      disable all source autogeneration rules],,enable_rebuilds=yes)
147REBUILD=\#
148if test "x$enable_rebuilds" = "xyes" && \
149     test -n "$PERL" && \
150     $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \
151     test -n "$AWK" ; then
152  REBUILD=
153fi
154AC_SUBST(REBUILD)
155
156AC_CONFIG_FILES([
157Makefile
158gnome-desktop.spec
159desktop-links/Makefile
160gnome-about/Makefile
161gnome-about/headers/Makefile
162libgnome-desktop/Makefile
163libgnome-desktop/libgnome/Makefile
164libgnome-desktop/libgnomeui/Makefile
165libgnome-desktop/gnome-desktop-2.0.pc
166libgnome-desktop/gnome-desktop-2.0-uninstalled.pc
167gnome-version.xml.in
168po/Makefile.in
169pixmaps/Makefile
170desktop-docs/Makefile
171desktop-docs/fdl/Makefile
172desktop-docs/fdl/C/Makefile
173desktop-docs/fdl/eu/Makefile
174desktop-docs/gpl/Makefile
175desktop-docs/gpl/C/Makefile
176desktop-docs/gpl/eu/Makefile
177desktop-docs/lgpl/Makefile
178desktop-docs/lgpl/C/Makefile
179desktop-docs/lgpl/eu/Makefile
180desktop-docs/gnome-feedback/Makefile
181desktop-docs/gnome-feedback/C/Makefile
182desktop-docs/gnome-feedback/eu/Makefile
183man/Makefile
184])
185
186AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.