diff options
author | Tom Willemsen | 2010-10-25 22:57:25 +0200 |
---|---|---|
committer | Tom Willemsen | 2010-10-25 22:57:25 +0200 |
commit | ad9ed8ffafdc44c6acbdbfadb1cd70ba38416d46 (patch) | |
tree | ca70c449983a2f999489a83acad3bf72190da3fd /configure.ac | |
parent | 0c774c7faccb294a418c3b71ecb63d8914a66761 (diff) | |
download | eye-on-manga-ad9ed8ffafdc44c6acbdbfadb1cd70ba38416d46.tar.gz eye-on-manga-ad9ed8ffafdc44c6acbdbfadb1cd70ba38416d46.zip |
Compiles with automake
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 57 |
1 files changed, 10 insertions, 47 deletions
diff --git a/configure.ac b/configure.ac index 0475ec1..d057996 100644 --- a/configure.ac +++ b/configure.ac @@ -1,53 +1,16 @@ AC_INIT(Makefile.am) -AM_INIT_AUTOMAKE(eye-on-manga, 0.1) -AM_CONFIG_HEADER(config.h) +AM_INIT_AUTOMAKE(eye-on-manga, 0.0.1) AC_PROG_CC AC_PROG_INSTALL -AC_HEADER_STDC -# Option to enable debugging -AC_ARG_ENABLE(debug, - [AC_HELP_STRING([ --enable-debug], [Debugging (default=no)])], - [with_debug=yes], [with_debug=no]) - -if test "x$with_debug" == "xyes" ; then - CFLAGS="$CFLAGS -ggdb -O0 -DDEBUG -Wall " -else - CFLAGS="$CFLAGS -O2 -Wall " -fi - -# Hildon library dependencies -PKG_CHECK_MODULES(HILDON, hildon-1) -AC_SUBST(HILDON_LIBS) -AC_SUBST(HILDON_CFLAGS) - -# To make the application visible in maemo Task Navigator it needs a Desktop -# file for the application. -desktopentrydir=`$PKG_CONFIG osso-af-settings --variable=desktopentrydir` - -# Application pixmaps install directory -pixmapdir=`$PKG_CONFIG osso-af-settings --variable=hildonpixmapdir` - -# Application icon install directories -icon_26x26dir=$datadir/icons/hicolor/26x26/hildon -icon_34x34dir=$datadir/icons/hicolor/34x34/hildon -icon_40x40dir=$datadir/icons/hicolor/40x40/hildon -icon_50x50dir=$datadir/icons/hicolor/50x50/hildon -icon_scalabledir=$datadir/icons/hicolor/scalable/hildon - -# Define as variables in Makefile -AC_SUBST(desktopentrydir) -AC_SUBST(pixmapdir) -AC_SUBST(icon_26x26dir) -AC_SUBST(icon_34x34dir) -AC_SUBST(icon_40x40dir) -AC_SUBST(icon_50x50dir) -AC_SUBST(icon_scalabledir) - -AC_DEFINE_UNQUOTED([PIXMAPDIR], "${pixmapdir}", [Runtime pixmap files path]) -AC_OUTPUT( - Makefile \ - src\Makefile \ - data\Makefile +# Check for necessary packages +PKG_CHECK_MODULES(EOM, hildon-1 sqlite3) +# Add packages to flags and libs +CFLAGS="$EOM_CFLAGS $CFLAGS" +LIBS="$EOM_LIBS $LIBS" +# Generate the Makefile from Makefile.in +AC_OUTPUT( \ + Makefile \ + src/Makefile ) |