l10n: Updated Russian (ru) translation to 100%
[maepad.git] / configure.in
blob37a2ee76c948e087bd29a16d65f4453ebd5719ae
1 AC_INIT(Makefile.am)
2 AM_INIT_AUTOMAKE(maepad, 1.9)
3 AM_CONFIG_HEADER(config.h)
5 AC_CANONICAL_HOST
7 AC_PROG_CC
8 AC_PROG_CPP
9 AC_PROG_INSTALL
10 AC_PROG_RANLIB
11 AC_PROG_LIBTOOL
12 AC_PROG_INTLTOOL([0.23])
13 AC_HEADER_STDC
15 # Option to enable debugging
16 AC_ARG_ENABLE(debug, 
17               [AC_HELP_STRING([  --enable-debug],[Debugging (default=no)])], 
18               [with_debug=yes], [with_debug=no])
20 if test "x$with_debug" == "xyes" ; then
21         CFLAGS="$CFLAGS -ggdb -O0 -DDEBUG -Wall -ansi -pedantic"
22 else
23 #       CFLAGS="$CFLAGS -O2 -Wall -ansi -pedantic"
24         CFLAGS="$CFLAGS -O2 -Wall -ansi"
27 # Hildon library dependencies
28 PKG_CHECK_MODULES(HILDON, hildon-1 >= 0.9.9 hildon-fm-2 wpeditor)
29 AC_SUBST(HILDON_CFLAGS)
30 AC_SUBST(HILDON_LIBS)
32 # Only used for the .service file path
33 PKG_CHECK_MODULES(DBUS, dbus-glib-1 >= 0.23.4)
35 # OSSO application framework dependencies
36 PKG_CHECK_MODULES(OSSO, libosso >= 0.9.17 gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11)
37 AC_SUBST(OSSO_LIBS)
38 AC_SUBST(OSSO_CFLAGS)
40 # libxml2
41 #PKG_CHECK_MODULES(XML2, libxml-2.0 >= 2.6.0)
42 #AC_SUBST(XML2_LIBS)
43 #AC_SUBST(XML2_CFLAGS)
45 # sqlite3
46 PKG_CHECK_MODULES(SQL3, sqlite3 >= 3.0)
47 AC_SUBST(SQL3_LIBS)
48 AC_SUBST(SQL3_CFLAGS)
50 # sharing-dialog
51 PKG_CHECK_MODULES(SHARINGDIALOG, sharingdialog >= 1.1)
52 AC_SUBST(SHARINGDIALOG_LIBS)
53 AC_SUBST(SHARINGDIALOG_CFLAGS)
55 # Localisation
56 GETTEXT_PACKAGE=$PACKAGE
57 AC_SUBST(GETTEXT_PACKAGE)
58 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "${GETTEXT_PACKAGE}", [Name of gettext package])
59 ALL_LINGUAS="de_DE en_GB fi_FI hu ru sv_SE"
60 AM_GLIB_GNU_GETTEXT
62 # To make application visible in maemo Task Navigator it needs a Desktop
63 # file for the application.
64 # D-BUS service file is needed to be able to launch the maemo application
65 # and connect it to D-BUS services.
66 # The following line defines install directories for these files.
67 desktopentrydir=/usr/share/applications/hildon
68 serviceentrydir=/usr/share/dbus-1/services
70 # Application locale install directory
71 localedir=/usr/share/locale
73 # Application pixmaps install directory
74 pixmapdir=/usr/share/pixmaps/$PACKAGE
76 # Application icon install directories
77 icon_26x26dir=$datadir/icons/hicolor/26x26/hildon
78 icon_34x34dir=$datadir/icons/hicolor/34x34/hildon
79 icon_40x40dir=$datadir/icons/hicolor/40x40/hildon
80 icon_50x50dir=$datadir/icons/hicolor/50x50/hildon
81 icon_scalabledir=$datadir/icons/hicolor/scalable/hildon
83 # Hildon control panel plugin install directories
84 pluginlibdir=`$PKG_CONFIG hildon-control-panel --variable=plugindir`
85 plugindesktopentrydir=`$PKG_CONFIG hildon-control-panel --variable=plugindesktopentrydir`
87 # Define as variables in Makefiles
88 AC_SUBST(desktopentrydir)
89 AC_SUBST(serviceentrydir)
90 AC_SUBST(localedir)
91 AC_SUBST(pixmapdir)
92 AC_SUBST(icon_26x26dir)
93 AC_SUBST(icon_34x34dir)
94 AC_SUBST(icon_40x40dir)
95 AC_SUBST(icon_50x50dir)
96 AC_SUBST(icon_scalabledir)
97 AC_SUBST(pluginlibdir)
98 AC_SUBST(plugindesktopentrydir)
100 # Application Installer uses alternative root prefix /var/lib/install
101 # where packages are installed. Build time and run time are different.
102 # Define runtime paths to applications in config.h.
103 #runtime_root=/var/lib/install
104 #runtime_localedir=$runtime_root$localedir
105 #runtime_pixmapdir=$runtime_root$pixmapdir
107 AC_DEFINE_UNQUOTED([LOCALEDIR], "${localedir}", [Locale catalog files path])
108 AC_DEFINE_UNQUOTED([PIXMAPDIR], "${pixmapdir}", [Pixmap files path])
110 # Produce output files
111 AC_OUTPUT(
112           Makefile \
113           src/Makefile \
114           data/Makefile \
115           po/Makefile.in \
116           po/Makefile