configure.ac: add enigma2-devel@lists.elitedvb.net
[openblackhole/openblackhole-enigma2.git] / configure.ac
1 AC_INIT([enigma2],[2.4],[enigma2-devel@lists.elitedvb.net])
2 AM_INIT_AUTOMAKE(enigma2,2.4)
3
4 TUXBOX_APPS
5 TUXBOX_APPS_DIRECTORY
6
7 AC_PROG_CC
8 AC_PROG_CXX
9 LT_INIT
10 AC_CONFIG_MACRO_DIR([m4])
11
12 AC_ARG_WITH(libsdl,
13         AS_HELP_STRING([--with-libsdl],[use sdl, yes or no]),
14         [[withsdl=$withval]],
15         [[withsdl=yes]]
16 )
17
18 AC_CHECK_HEADER(dreamdvd/ddvdlib.h,have_ddvdlib="yes",have_ddvdlib="no")
19 if test x"${have_ddvdlib}" = xyes ; then
20         AC_DEFINE(HAVE_DDVDLIB, 1,[Define if ddvdlib is available])
21 else
22         AC_MSG_NOTICE([ddvdlib not found... dont build dvd plugin])
23 fi
24 AM_CONDITIONAL(HAVE_DDVDLIB, test "$have_ddvdlib" = "yes")
25
26 AM_PATH_PYTHON
27 AX_PYTHON_DEVEL
28 #AM_PATH_XINE(1.1.0,, AC_MSG_ERROR([*** Please install xine-lib (devel) first ***]))
29
30 TUXBOX_APPS_DVB
31
32 _TUXBOX_APPS_LIB_PKGCONFIG_OPTIONAL(FREETYPE, freetype2, HAVE_FREETYPE2)
33 if test "$HAVE_FREETYPE2" = "no" ; then
34         TUXBOX_APPS_LIB_CONFIG(FREETYPE, freetype-config)
35 fi
36 TUXBOX_APPS_LIB_PKGCONFIG(FRIBIDI,fribidi)
37 TUXBOX_APPS_LIB_PKGCONFIG(ID3TAG,id3tag)
38 TUXBOX_APPS_LIB_PKGCONFIG(MAD,mad)
39 #TUXBOX_APPS_LIB_PKGCONFIG(PLUGINS,tuxbox-plugins)
40 TUXBOX_APPS_LIB_PKGCONFIG(PNG,libpng)
41 TUXBOX_APPS_LIB_PKGCONFIG(SIGC,sigc++-1.2)
42 TUXBOX_APPS_LIB_PKGCONFIG(DVBSI,libdvbsi++)
43 _TUXBOX_APPS_LIB_PKGCONFIG_OPTIONAL(GSTREAMER,gstreamer,HAVE_GSTREAMER)
44 _TUXBOX_APPS_LIB_PKGCONFIG_OPTIONAL(GSTREAMERPBUTILS,gstreamer-pbutils,HAVE_GSTSTREAMERPBUTILS)
45 _TUXBOX_APPS_LIB_PKGCONFIG_OPTIONAL(LIBXINE,libxine,HAVE_LIBXINE)
46 AC_CHECK_LIB(jpeg, jpeg_set_defaults, HAVE_JPEG="yes", HAVE_JPEG="no")
47 JPEG_LIBS="-ljpeg"
48 AC_SUBST(JPEG_LIBS)
49
50 AC_SUBST(LIBUNGIF_LIBS,"")
51 AC_CHECK_HEADERS(gif_lib.h,
52         AC_CHECK_LIB(ungif,DGifOpen,
53         [AC_DEFINE(HAVE_LIBUNGIF,1,[Define if you have libgif/libungif including devel headers])
54                 LIBUNGIF_LIBS="-lungif"],
55                 [AC_CHECK_LIB(gif,DGifOpen,
56                         [AC_DEFINE(HAVE_LIUNBGIF,1)
57                         LIBUNGIF_LIBS="-lgif"])]))
58
59 TUXBOX_APPS_LIB_PKGCONFIG(XML2,libxml-2.0)
60
61 # ok, we are in trouble: XMLCCWRAP only defines C++ symbols. So let's just check if linking works,
62 # and assume everything will be ok. Then just check for the "exit" symbol, which should be always there.
63 AC_LANG_SAVE
64 AC_LANG_CPLUSPLUS
65 TUXBOX_APPS_LIB_SYMBOL(XMLCCWRAP, xmlccwrap, exit)
66 AC_LANG_RESTORE
67
68 if test "$withsdl" = "yes" ; then
69         _TUXBOX_APPS_LIB_PKGCONFIG_OPTIONAL(SDL,sdl,WITH_SDL)
70         if test "$WITH_SDL" = "no" ; then
71                 TUXBOX_APPS_LIB_CONFIG(SDL,sdl-config)
72                 AC_DEFINE_UNQUOTED([WITH_SDL],[$withsdl],[With SDL])
73         fi
74 fi
75 # allow 'if WITH_SDL' conditionals in Makefile.am
76 AM_CONDITIONAL(WITH_SDL, test "$WITH_SDL" = "yes")
77
78 CPPFLAGS="$CPPFLAGS "'-I$(top_srcdir)'
79 CPPFLAGS="$CPPFLAGS -D_REENTRANT $PYTHON_CPPFLAGS $MD5SUM_CFLAGS $FREETYPE_CFLAGS $FRIBIDI_CFLAGS $ID3TAG_CFLAGS $MAD_CFLAGS $PLUGINS_CFLAGS $PNG_CFLAGS $SDL_CFLAGS $SIGC_CFLAGS $XMLTREE_CFLAGS $DVBSI_CFLAGS $GSTREAMER_CFLAGS $GSTREAMERPBUTILS_CFLAGS $LIBXINE_CFLAGS $LIBUNGIF_CFLAGS"
80 #CPPFLAGS="$CPPFLAGS -DMEMLEAK_CHECK"
81 CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions -Wall"
82 LDFLAGS="$LDFLAGS -pthread $PYTHON_LDFLAGS $SDL_LDFLAGS $GSTREAMER_LDFLAGS $GSTREAMERPBUTILS_LDFLAGS $LIBXINE_LDFLAGS $LIBUNGIF_LDFLAGS"
83 #LDFLAGS="-rdynamic $LDFLAGS"
84
85 TUXBOX_APPS_GETTEXT
86
87 AC_CONFIG_FILES([
88 Makefile
89 data/Makefile
90 data/fonts/Makefile
91 data/countries/Makefile
92 data/defaults/Makefile
93 data/defaults/Dream/Makefile
94 data/defaults/Dream/hdbouquets/Makefile
95 data/defaults/Dream/sdbouquets/Makefile
96 data/extensions/Makefile
97 data/skin_default/Makefile
98 data/skin_default/menu/Makefile
99 data/skin_default/icons/Makefile
100 data/skin_default/buttons/Makefile
101 data/skin_default/spinner/Makefile
102 include/Makefile
103 lib/Makefile
104 lib/actions/Makefile
105 lib/base/Makefile
106 lib/driver/Makefile
107 lib/dvb/Makefile
108 lib/dvb/lowlevel/Makefile
109 lib/dvb_ci/Makefile
110 lib/gdi/Makefile
111 lib/gui/Makefile
112 lib/mmi/Makefile
113 lib/nav/Makefile
114 lib/python/Makefile
115 lib/python/Components/Makefile
116 lib/python/Components/Converter/Makefile
117 lib/python/Components/Renderer/Makefile
118 lib/python/Components/Sources/Makefile
119 lib/python/Screens/Makefile
120 lib/python/Plugins/Makefile
121 lib/python/Plugins/DemoPlugins/Makefile
122 lib/python/Plugins/DemoPlugins/TPMDemo/Makefile
123 lib/python/Plugins/DemoPlugins/TestPlugin/Makefile
124 lib/python/Plugins/Extensions/CutListEditor/Makefile
125 lib/python/Plugins/Extensions/CutListEditor/meta/Makefile
126 lib/python/Plugins/Extensions/DVDBurn/Makefile
127 lib/python/Plugins/Extensions/DVDBurn/meta/Makefile
128 lib/python/Plugins/Extensions/DVDPlayer/Makefile
129 lib/python/Plugins/Extensions/DVDPlayer/meta/Makefile
130 lib/python/Plugins/Extensions/DVDPlayer/src/Makefile
131 lib/python/Plugins/Extensions/GraphMultiEPG/Makefile
132 lib/python/Plugins/Extensions/GraphMultiEPG/meta/Makefile
133 lib/python/Plugins/Extensions/Makefile
134 lib/python/Plugins/Extensions/MediaPlayer/Makefile
135 lib/python/Plugins/Extensions/MediaPlayer/meta/Makefile
136 lib/python/Plugins/Extensions/MediaScanner/Makefile
137 lib/python/Plugins/Extensions/MediaScanner/meta/Makefile
138 lib/python/Plugins/Extensions/Modem/Makefile
139 lib/python/Plugins/Extensions/PicturePlayer/Makefile
140 lib/python/Plugins/Extensions/PicturePlayer/meta/Makefile
141 lib/python/Plugins/Extensions/PicturePlayer/data/Makefile
142 lib/python/Plugins/Extensions/SocketMMI/Makefile
143 lib/python/Plugins/Extensions/SocketMMI/meta/Makefile
144 lib/python/Plugins/Extensions/SocketMMI/src/Makefile
145 lib/python/Plugins/Extensions/TuxboxPlugins/Makefile
146 lib/python/Plugins/Extensions/TuxboxPlugins/meta/Makefile
147 lib/python/Plugins/SystemPlugins/CleanupWizard/Makefile
148 lib/python/Plugins/SystemPlugins/CleanupWizard/meta/Makefile
149 lib/python/Plugins/SystemPlugins/CommonInterfaceAssignment/Makefile
150 lib/python/Plugins/SystemPlugins/CommonInterfaceAssignment/meta/Makefile
151 lib/python/Plugins/SystemPlugins/CrashlogAutoSubmit/Makefile
152 lib/python/Plugins/SystemPlugins/CrashlogAutoSubmit/meta/Makefile
153 lib/python/Plugins/SystemPlugins/DefaultServicesScanner/Makefile
154 lib/python/Plugins/SystemPlugins/DefaultServicesScanner/meta/Makefile
155 lib/python/Plugins/SystemPlugins/DiseqcTester/Makefile
156 lib/python/Plugins/SystemPlugins/DiseqcTester/meta/Makefile
157 lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade/Makefile
158 lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade/meta/Makefile
159 lib/python/Plugins/SystemPlugins/Hotplug/Makefile
160 lib/python/Plugins/SystemPlugins/Hotplug/meta/Makefile
161 lib/python/Plugins/SystemPlugins/Makefile
162 lib/python/Plugins/SystemPlugins/TempFanControl/Makefile
163 lib/python/Plugins/SystemPlugins/TempFanControl/meta/Makefile
164 lib/python/Plugins/SystemPlugins/NetworkWizard/Makefile
165 lib/python/Plugins/SystemPlugins/NetworkWizard/meta/Makefile
166 lib/python/Plugins/SystemPlugins/NFIFlash/Makefile
167 lib/python/Plugins/SystemPlugins/NFIFlash/meta/Makefile
168 lib/python/Plugins/SystemPlugins/PositionerSetup/Makefile
169 lib/python/Plugins/SystemPlugins/PositionerSetup/meta/Makefile
170 lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/Makefile
171 lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/meta/Makefile
172 lib/python/Plugins/SystemPlugins/Satfinder/Makefile
173 lib/python/Plugins/SystemPlugins/Satfinder/meta/Makefile
174 lib/python/Plugins/SystemPlugins/SkinSelector/Makefile
175 lib/python/Plugins/SystemPlugins/SkinSelector/meta/Makefile
176 lib/python/Plugins/SystemPlugins/SoftwareManager/Makefile
177 lib/python/Plugins/SystemPlugins/SoftwareManager/meta/Makefile
178 lib/python/Plugins/SystemPlugins/VideoEnhancement/Makefile
179 lib/python/Plugins/SystemPlugins/VideoEnhancement/meta/Makefile
180 lib/python/Plugins/SystemPlugins/VideoTune/Makefile
181 lib/python/Plugins/SystemPlugins/VideoTune/meta/Makefile
182 lib/python/Plugins/SystemPlugins/Videomode/Makefile
183 lib/python/Plugins/SystemPlugins/Videomode/meta/Makefile
184 lib/python/Plugins/SystemPlugins/WirelessLan/Makefile
185 lib/python/Plugins/SystemPlugins/WirelessLan/meta/Makefile
186 lib/python/Tools/Makefile
187 lib/service/Makefile
188 lib/components/Makefile
189 po/Makefile
190 main/Makefile
191 tools/Makefile
192 enigma2.pc
193 ])
194 AC_OUTPUT
195
196 #lib/python/Plugins/Extensions/SimpleRSS/Makefile
197 #lib/python/Plugins/Extensions/FileManager/Makefile