Added first logo proposal for frogr
[frogr:mainline.git] / configure.ac
1 AC_INIT([frogr], [0.0.1], [msanchez@igalia.com])
2 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
3 AC_PROG_CC
4 AC_CONFIG_HEADERS([config.h])
5
6 # Default flags and libs
7
8 CFLAGS="-g3 -O0"
9 LIBS=""
10
11 # Dependencies for frogr
12
13 AC_CHECK_LIB(gthread-2.0, g_thread_init)
14
15 PKG_CHECK_MODULES(Gtk2, gtk+-2.0 >= 2.12)
16 FROGR_CFLAGS="$FROGR_CFLAGS $Gtk2_CFLAGS"
17 FROGR_LIBS="$FROGR_LIBS $Gtk2_LIBS"
18
19 PKG_CHECK_MODULES(Glib, glib-2.0 >= 2.16)
20 FROGR_CFLAGS="$FROGR_CFLAGS $Glib_CFLAGS"
21 FROGR_LIBS="$FROGR_LIBS $Glib_LIBS"
22
23 PKG_CHECK_MODULES(Libgnome, libgnome-2.0 >= 2.22)
24 FROGR_CFLAGS="$FROGR_CFLAGS $Libgnome_CFLAGS"
25 FROGR_LIBS="$FROGR_LIBS $Libgnome_LIBS"
26
27 PKG_CHECK_MODULES(Flickcurl, flickcurl >= 1.0)
28 FROGR_CFLAGS="$FROGR_CFLAGS $Flickcurl_CFLAGS"
29 FROGR_LIBS="$FROGR_LIBS $Flickcurl_LIBS"
30
31 PKG_CHECK_MODULES(Libxml2, libxml-2.0 >= 2.6.8)
32 FROGR_CFLAGS="$FROGR_CFLAGS $Libxml2_CFLAGS"
33 FROGR_LIBS="$FROGR_LIBS $Libxml2_LIBS"
34
35 PKG_CHECK_MODULES(Libcurl, libcurl >= 7.10)
36 FROGR_CFLAGS="$FROGR_CFLAGS $Libcurl_CFLAGS"
37 FROGR_LIBS="$FROGR_LIBS $Libcurl_LIBS"
38
39 AC_SUBST(pixmapdir, "\${datadir}/icons")
40 AC_SUBST(icon48dir, "\${datadir}/icons/hicolor/48x48/apps")
41 AC_SUBST(FROGR_CFLAGS)
42 AC_SUBST(FROGR_LIBS)
43
44 # Produce output files
45
46 AC_CONFIG_FILES([
47         Makefile
48         src/Makefile
49 ])
50 AC_OUTPUT
51
52 # Status summary
53 echo ""
54 echo "*************************************"
55 echo "*** frogr is ready to be compiled ***"
56 echo "*************************************"
57 echo ""
58 echo "Configure successful. Type 'make' to compile"
59 echo ""