2 AM_INIT_AUTOMAKE(maepad, 1.8)
3 AM_CONFIG_HEADER(config.h)
12 AC_PROG_INTLTOOL([0.23])
15 # Option to enable debugging
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"
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)
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)
41 #PKG_CHECK_MODULES(XML2, libxml-2.0 >= 2.6.0)
43 #AC_SUBST(XML2_CFLAGS)
46 PKG_CHECK_MODULES(SQL3, sqlite3 >= 3.0)
51 PKG_CHECK_MODULES(SHARINGDIALOG, sharingdialog >= 1.1)
52 AC_SUBST(SHARINGDIALOG_LIBS)
53 AC_SUBST(SHARINGDIALOG_CFLAGS)
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"
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)
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