Maemopad+ 0.34 released (+ debian package 0.34-1)
[maemopadplus.git] / configure.in
blobe9b6adc0ccacd7e2b248172f10459213773c53e5
1 AC_INIT(Makefile.am)
2 AM_INIT_AUTOMAKE(maemopadplus, 0.34)
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 # Localisation
51 GETTEXT_PACKAGE=$PACKAGE
52 AC_SUBST(GETTEXT_PACKAGE)
53 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "${GETTEXT_PACKAGE}", [Name of gettext package])
54 ALL_LINGUAS="en_GB fi_FI de_DE"
55 AM_GLIB_GNU_GETTEXT
57 # To make application visible in maemo Task Navigator it needs a Desktop
58 # file for the application.
59 # D-BUS service file is needed to be able to launch the maemo application
60 # and connect it to D-BUS services.
61 # The following line defines install directories for these files.
62 desktopentrydir=/usr/share/applications/hildon
63 serviceentrydir=/usr/share/dbus-1/services
65 # Application locale install directory
66 localedir=/usr/share/locale
68 # Application pixmaps install directory
69 pixmapdir=/usr/share/pixmaps/$PACKAGE
71 # Application icon install directories
72 icon_26x26dir=$datadir/icons/hicolor/26x26/hildon
73 icon_34x34dir=$datadir/icons/hicolor/34x34/hildon
74 icon_40x40dir=$datadir/icons/hicolor/40x40/hildon
75 icon_50x50dir=$datadir/icons/hicolor/50x50/hildon
76 icon_scalabledir=$datadir/icons/hicolor/scalable/hildon
78 # Hildon control panel plugin install directories
79 pluginlibdir=`$PKG_CONFIG hildon-control-panel --variable=plugindir`
80 plugindesktopentrydir=`$PKG_CONFIG hildon-control-panel --variable=plugindesktopentrydir`
82 # Define as variables in Makefiles
83 AC_SUBST(desktopentrydir)
84 AC_SUBST(serviceentrydir)
85 AC_SUBST(localedir)
86 AC_SUBST(pixmapdir)
87 AC_SUBST(icon_26x26dir)
88 AC_SUBST(icon_34x34dir)
89 AC_SUBST(icon_40x40dir)
90 AC_SUBST(icon_50x50dir)
91 AC_SUBST(icon_scalabledir)
92 AC_SUBST(pluginlibdir)
93 AC_SUBST(plugindesktopentrydir)
95 # Application Installer uses alternative root prefix /var/lib/install
96 # where packages are installed. Build time and run time are different.
97 # Define runtime paths to applications in config.h.
98 #runtime_root=/var/lib/install
99 #runtime_localedir=$runtime_root$localedir
100 #runtime_pixmapdir=$runtime_root$pixmapdir
102 AC_DEFINE_UNQUOTED([LOCALEDIR], "${localedir}", [Locale catalog files path])
103 AC_DEFINE_UNQUOTED([PIXMAPDIR], "${pixmapdir}", [Pixmap files path])
105 # Produce output files
106 AC_OUTPUT(
107           Makefile \
108           src/Makefile \
109           data/Makefile \
110           po/Makefile.in \
111           po/Makefile