use proper python autofoo stuff
[enigma2.git] / configure.ac
1 AC_INIT(tuxbox-enigma,0.0.1)
2 AM_INIT_AUTOMAKE(tuxbox-enigma,0.0.1)
3
4 TUXBOX_APPS
5 TUXBOX_APPS_DIRECTORY
6
7 AC_PROG_CC
8 AC_PROG_CXX
9 AC_PROG_RANLIB
10
11 AC_ARG_WITH(libsdl,
12         AC_HELP_STRING([--with-libsdl], [use sdl, yes or no]),
13         [[withsdl=$withval]],
14         [[withsdl=yes]]
15 )
16
17 AM_PATH_PYTHON(2.3)
18 AC_PYTHON_DEVEL
19
20 TUXBOX_APPS_DVB
21
22 TUXBOX_APPS_LIB_CONFIG(FREETYPE,freetype-config)
23 #TUXBOX_APPS_LIB_PKGCONFIG(FRIBIDI,fribidi)
24 TUXBOX_APPS_LIB_PKGCONFIG(ID3TAG,id3tag)
25 TUXBOX_APPS_LIB_PKGCONFIG(MAD,mad)
26 #TUXBOX_APPS_LIB_PKGCONFIG(PLUGINS,tuxbox-plugins)
27 TUXBOX_APPS_LIB_PKGCONFIG(PNG,libpng)
28 TUXBOX_APPS_LIB_PKGCONFIG(SIGC,sigc++-1.2)
29 TUXBOX_APPS_LIB_PKGCONFIG(DVBSI,libdvbsi++)
30
31 if test "$withsdl" = "yes" ; then
32         TUXBOX_APPS_LIB_CONFIG(SDL,sdl-config)
33         AC_DEFINE_UNQUOTED([WITH_SDL],[$withsdl],[With SDL])
34 fi
35
36 # fixme: decent python stuff
37 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS $MD5SUM_CFLAGS $FREETYPE_CFLAGS $FRIBIDI_CFLAGS $ID3TAG_CFLAGS $MAD_CFLAGS $PLUGINS_CFLAGS $PNG_CFLAGS $SIGC_CFLAGS $XMLTREE_CFLAGS $DVBSI_CFLAGS -DHAVE_CPP_FILT -DMEMLEAK_CHECK"
38 CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions -Wall"
39 LDFLAGS="$LDFLAGS -rdynamic $PYTHON_LDFLAGS"
40
41 TUXBOX_APPS_GETTEXT
42
43 AC_OUTPUT([
44 Makefile
45 data/Makefile
46 lib/Makefile
47 lib/actions/Makefile
48 lib/base/Makefile
49 lib/driver/Makefile
50 lib/dvb/Makefile
51 lib/dvb_ci/Makefile
52 lib/gdi/Makefile
53 lib/gui/Makefile
54 lib/nav/Makefile
55 lib/network/Makefile
56 lib/python/Makefile
57 lib/python/Components/Makefile
58 lib/python/Screens/Makefile
59 lib/python/Tools/Makefile
60 lib/service/Makefile
61 lib/components/Makefile
62 main/Makefile
63 ])