2 AC_INIT([celltowerinfo], [0.0.2], [https://garage.maemo.org/tracker/?group_id=1314])
4 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 -DUSE_HILDON"
23 CFLAGS="$CFLAGS -O2 -Wall -DUSE_HILDON"
26 # Hildon library dependencies
27 PKG_CHECK_MODULES(HILDON, hildon-1)
29 AC_SUBST(HILDON_CFLAGS)
31 # OSSO application framework dependencies
32 PKG_CHECK_MODULES(OSSO, osso-af-settings >= 0.8.5 libosso >= 0.9.17)
37 PKG_CHECK_MODULES(LOCATION, liblocation)
38 AC_SUBST(LOCATION_LIBS)
39 AC_SUBST(LOCATION_CFLAGS)
42 GETTEXT_PACKAGE=$PACKAGE
43 AC_SUBST(GETTEXT_PACKAGE)
44 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "${GETTEXT_PACKAGE}", [Name of gettext package])
48 # To make application visible in maemo Task Navigator it needs a Desktop
49 # file for the application.
50 # D-BUS service file is needed to be able to launch the maemo application
51 # and connect it to D-BUS services.
52 # The following line defines install directories for these files.
53 desktopentrydir=`$PKG_CONFIG osso-af-settings --variable=desktopentrydir`
54 serviceentrydir=`$PKG_CONFIG osso-af-settings --variable=dbusservicedir`
56 # Application locale install directory
57 localedir=`$PKG_CONFIG osso-af-settings --variable=localedir`
59 # Application pixmaps install directory
60 #pixmapdir=`$PKG_CONFIG osso-af-settings --variable=hildonpixmapdir`
62 # Application icon install directories
63 icon_32x32dir=$datadir/icons/hicolor/32x32/apps
64 icon_48x48dir=$datadir/icons/hicolor/48x48/apps
65 #icon_scalabledir=$datadir/icons/hicolor/scalable/apps
67 # Help file install directory
68 helpfile_engbdir=$datadir/hildon-help/en_GB
70 # Hildon control panel plugin install directories
71 pluginlibdir=`$PKG_CONFIG hildon-control-panel --variable=plugindir`
72 plugindesktopentrydir=`$PKG_CONFIG hildon-control-panel --variable=plugindesktopentrydir`
74 # Define as variables in Makefiles
75 AC_SUBST(desktopentrydir)
76 AC_SUBST(serviceentrydir)
79 AC_SUBST(icon_32x32dir)
80 AC_SUBST(icon_48x48dir)
81 #AC_SUBST(icon_scalabledir)
82 AC_SUBST(pluginlibdir)
83 AC_SUBST(plugindesktopentrydir)
84 AC_SUBST(helpfile_engbdir)
86 AC_DEFINE_UNQUOTED([LOCALEDIR], "${localedir}", [Runtime locale catalog files path])
87 #AC_DEFINE_UNQUOTED([PIXMAPDIR], "${pixmapdir}", [Runtime pixmap files path]
88 # Produce output files