2 AM_INIT_AUTOMAKE(wai, 0.1)
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 "
23 CFLAGS="$CFLAGS -O2 -Wall "
26 # Hildon library dependencies
27 PKG_CHECK_MODULES(HILDON, hildon-1 glib-2.0)
29 AC_SUBST(HILDON_CFLAGS)
32 PKG_CHECK_MODULES(LIBLOCATION, liblocation )
33 AC_SUBST(LIBLOCATION_LIBS)
34 AC_SUBST(LIBLOCATION_CFLAGS)
37 #GETTEXT_PACKAGE=$PACKAGE
38 #AC_SUBST(GETTEXT_PACKAGE)
39 #AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "${GETTEXT_PACKAGE}", [Name of gettext package])
40 #ALL_LINGUAS="en_GB fi_FI"
43 # To make application visible in maemo Task Navigator it needs a Desktop
44 # file for the application.
45 # The following line defines install directories for these files.
46 desktopentrydir=`$PKG_CONFIG osso-af-settings --variable=desktopentrydir`
48 # Application locale install directory
49 #localedir=`$PKG_CONFIG osso-af-settings --variable=localedir`
51 # Application pixmaps install directory
52 #pixmapdir=`$PKG_CONFIG osso-af-settings --variable=hildonpixmapdir`
54 # Application icon install directories
55 #icon_26x26dir=$datadir/icons/hicolor/26x26/hildon
56 #icon_34x34dir=$datadir/icons/hicolor/34x34/hildon
57 #icon_40x40dir=$datadir/icons/hicolor/40x40/hildon
58 #icon_50x50dir=$datadir/icons/hicolor/50x50/hildon
59 #icon_scalabledir=$datadir/icons/hicolor/scalable/hildon
61 # Define as variables in Makefiles
62 AC_SUBST(desktopentrydir)
65 #AC_SUBST(icon_26x26dir)
66 #AC_SUBST(icon_34x34dir)
67 #AC_SUBST(icon_40x40dir)
68 #AC_SUBST(icon_50x50dir)
69 #AC_SUBST(icon_scalabledir)
71 #AC_DEFINE_UNQUOTED([LOCALEDIR], "${localedir}", [Runtime locale catalog files path])
72 AC_DEFINE_UNQUOTED([PIXMAPDIR], "${pixmapdir}", [Runtime pixmap files path])
74 # Produce output files