1 | AC_INIT(libgnome-desktop) |
---|
2 | AM_CONFIG_HEADER(config.h) |
---|
3 | AM_INIT_AUTOMAKE(gnome-desktop, 2.2.0.1) |
---|
4 | |
---|
5 | # Before making a release, the LT_VERSION string should be modified. |
---|
6 | # The string is of the form C:R:A. |
---|
7 | # - If interfaces have been changed or added, but binary compatibility has |
---|
8 | # been preserved, change to C+1:0:A+1 |
---|
9 | # - If binary compatibility has been broken (eg removed or changed interfaces) |
---|
10 | # change to C+1:0:0 |
---|
11 | # - If the interface is the same as the previous version, change to C:R+1:A |
---|
12 | |
---|
13 | LT_VERSION=3:4:1 |
---|
14 | AC_SUBST(LT_VERSION) |
---|
15 | |
---|
16 | AM_MAINTAINER_MODE |
---|
17 | |
---|
18 | AC_PROG_INTLTOOL |
---|
19 | |
---|
20 | AC_ISC_POSIX |
---|
21 | AC_PROG_CC |
---|
22 | AC_STDC_HEADERS |
---|
23 | AC_ARG_PROGRAM |
---|
24 | AM_PROG_LIBTOOL |
---|
25 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
---|
26 | |
---|
27 | GNOME_COMPILE_WARNINGS(yes) |
---|
28 | |
---|
29 | GNOME_PLATFORM=2 |
---|
30 | GNOME_MINOR=2 |
---|
31 | GNOME_MICRO=0 |
---|
32 | GNOME_VENDOR="Gnome.Org" |
---|
33 | GNOME_DATE="Tuesday, February 4th 2003" |
---|
34 | |
---|
35 | AC_SUBST(GNOME_PLATFORM) |
---|
36 | AC_SUBST(GNOME_MINOR) |
---|
37 | AC_SUBST(GNOME_MICRO) |
---|
38 | AC_SUBST(GNOME_VENDOR) |
---|
39 | AC_SUBST(GNOME_DATE) |
---|
40 | |
---|
41 | dnl If you add a version number here, you *must* add an AC_SUBST line for |
---|
42 | dnl it too, or it will never make it into the spec file! |
---|
43 | |
---|
44 | GDK_PIXBUF_REQUIRED=2.0.3 |
---|
45 | GTK_REQUIRED=2.1.2 |
---|
46 | LIBGNOMECANVAS_REQUIRED=2.0.0 |
---|
47 | LIBGNOMEUI_REQUIRED=2.1.0 |
---|
48 | GNOME_VFS_REQUIRED=2.0.0 |
---|
49 | STARTUP_NOTIFICATION_REQUIRED=0.5 |
---|
50 | |
---|
51 | AC_SUBST(GTK_REQUIRED) |
---|
52 | AC_SUBST(GDK_PIXBUF_REQUIRED) |
---|
53 | AC_SUBST(LIBGNOMEUI_REQUIRED) |
---|
54 | AC_SUBST(LIBGNOMECANVAS_REQUIRED) |
---|
55 | AC_SUBST(GNOME_VFS_REQUIRED) |
---|
56 | AC_SUBST(STARTUP_NOTIFICATION_REQUIRED) |
---|
57 | |
---|
58 | if $PKG_CONFIG --atleast-version $STARTUP_NOTIFICATION_REQUIRED libstartup-notification-1.0; then |
---|
59 | echo "Building with libstartup-notification" |
---|
60 | AC_DEFINE(HAVE_STARTUP_NOTIFICATION) |
---|
61 | with_startup_notification=yes |
---|
62 | STARTUP_NOTIFICATION_PACKAGE=libstartup-notification-1.0 |
---|
63 | else |
---|
64 | echo "***** WARNING: Building without libstartup-notification" |
---|
65 | with_startup_notification=no |
---|
66 | STARTUP_NOTIFICATION_PACKAGE= |
---|
67 | fi |
---|
68 | |
---|
69 | AC_SUBST(STARTUP_NOTIFICATION_PACKAGE) |
---|
70 | |
---|
71 | dnl pkg-config dependency checks |
---|
72 | |
---|
73 | PKG_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) |
---|
74 | AC_SUBST(GNOME_DESKTOP_CFLAGS) |
---|
75 | AC_SUBST(GNOME_DESKTOP_LIBS) |
---|
76 | |
---|
77 | PKG_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) |
---|
78 | AC_SUBST(GNOME_ABOUT_CFLAGS) |
---|
79 | AC_SUBST(GNOME_ABOUT_LIBS) |
---|
80 | |
---|
81 | |
---|
82 | dnl Language Support |
---|
83 | |
---|
84 | GETTEXT_PACKAGE=gnome-desktop-2.0 |
---|
85 | AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE") |
---|
86 | AC_SUBST(GETTEXT_PACKAGE) |
---|
87 | |
---|
88 | ALL_LINGUAS="ar az be bg bs ca cs da de el en_GB es et eu fi fr ga gl he hi hu it ja ko lt lv mk mn ms nl nn no pl pt pt_BR ro ru sk sl sp sq sr sv ta th tr uk vi wa zh_CN zh_TW" |
---|
89 | AM_GLIB_GNU_GETTEXT |
---|
90 | |
---|
91 | |
---|
92 | dnl Place to look for KDE menus |
---|
93 | |
---|
94 | AC_ARG_WITH(kde-datadir, [ --with-kde-datadir=DIR Location of KDE data]) |
---|
95 | |
---|
96 | if test "x$with_kde_datadir" = x ; then |
---|
97 | kde_datadir=/usr/share |
---|
98 | else |
---|
99 | kde_datadir=$with_kde_datadir |
---|
100 | fi |
---|
101 | |
---|
102 | AC_DEFINE_UNQUOTED(KDE_MENUDIR, "$kde_datadir/applnk") |
---|
103 | AC_DEFINE_UNQUOTED(KDE_ICONDIR, "$kde_datadir/icons") |
---|
104 | AC_DEFINE_UNQUOTED(KDE_MINI_ICONDIR, "$kde_datadir/icons/mini") |
---|
105 | |
---|
106 | |
---|
107 | ICONDIR=`eval echo "${datadir}/pixmaps"` |
---|
108 | AC_DEFINE_UNQUOTED(GNOME_ICONDIR,"${ICONDIR}") |
---|
109 | |
---|
110 | dnl Build Flags |
---|
111 | |
---|
112 | AC_SUBST(CFLAGS) |
---|
113 | AC_SUBST(CPPFLAGS) |
---|
114 | AC_SUBST(LDFLAGS) |
---|
115 | |
---|
116 | dnl Don't use AC_PROG_AWK since we need the full pathname. |
---|
117 | AC_PATH_PROGS(AWK, mawk gawk nawk awk, ) |
---|
118 | AC_PATH_PROGS(PERL, perl5 perl) |
---|
119 | |
---|
120 | dnl define a MAINT-like variable REBUILD which is set if Perl |
---|
121 | dnl and awk are found, so autogenerated sources can be rebuilt |
---|
122 | AC_ARG_ENABLE(rebuilds, [ --disable-rebuilds disable all source autogeneration rules],,enable_rebuilds=yes) |
---|
123 | REBUILD=\# |
---|
124 | if test "x$enable_rebuilds" = "xyes" && \ |
---|
125 | test -n "$PERL" && \ |
---|
126 | $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \ |
---|
127 | test -n "$AWK" ; then |
---|
128 | REBUILD= |
---|
129 | fi |
---|
130 | AC_SUBST(REBUILD) |
---|
131 | |
---|
132 | AC_OUTPUT([ |
---|
133 | Makefile |
---|
134 | gnome-desktop.spec |
---|
135 | desktop-links/Makefile |
---|
136 | gnome-about/Makefile |
---|
137 | libgnome-desktop/Makefile |
---|
138 | libgnome-desktop/gnome-desktop-2.0.pc |
---|
139 | gnome-version.xml |
---|
140 | po/Makefile.in |
---|
141 | pixmaps/Makefile |
---|
142 | desktop-docs/Makefile |
---|
143 | desktop-docs/fdl/Makefile |
---|
144 | desktop-docs/fdl/C/Makefile |
---|
145 | desktop-docs/gpl/Makefile |
---|
146 | desktop-docs/gpl/C/Makefile |
---|
147 | desktop-docs/lgpl/Makefile |
---|
148 | desktop-docs/lgpl/C/Makefile |
---|
149 | desktop-docs/gnome-feedback/Makefile |
---|
150 | desktop-docs/gnome-feedback/C/Makefile |
---|
151 | man/Makefile |
---|
152 | ]) |
---|