test..
[vuplus_dvbapp] / configure.ac
1 AC_INIT([enigma2],[3.0.0],[enigma2-devel@lists.elitedvb.net])
2 AM_INIT_AUTOMAKE([dist-bzip2 no-define tar-pax -Wno-portability])
3 AC_CONFIG_HEADERS([enigma2_config.h])
4
5 # Silent rules are available since 1.11, but older versions
6 # are still in use. So don't use them unconditionally.
7 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
8
9 AC_USE_SYSTEM_EXTENSIONS
10 AC_SYS_LARGEFILE
11
12 AC_PROG_CC
13 AC_PROG_CXX
14 m4_ifdef([LT_INIT], [LT_INIT], [AC_PROG_LIBTOOL])
15 AC_CONFIG_MACRO_DIR([m4])
16
17 AC_CHECK_HEADERS([dbox/fp.h dbox/lcd-ks0713.h])
18
19 AC_PATH_PROG(MSGFMT, msgfmt, AC_MSG_ERROR(Could not find msgfmt))
20
21 AM_PATH_PYTHON
22 AX_PYTHON_DEVEL
23 AX_PKG_SWIG
24 AX_SWIG_ENABLE_CXX
25 AX_SWIG_PYTHON
26 AX_PTHREAD
27
28 TUXBOX_APPS_DVB
29
30 AM_CONDITIONAL(HAVE_GIT_DIR, test -d "$srcdir/.git")
31 AM_CONDITIONAL(HAVE_FAKE_GIT_DIR, test -f "$srcdir/.git/last_commit_info")
32
33 dnl versions of gstreamer and plugins-base
34 AC_ARG_WITH(gstversion,
35         AS_HELP_STRING([--with-gstversion],[use gstreamer version (major.minor)]),
36         [GST_MAJORMINOR=$withval],[GST_MAJORMINOR=0.10])
37
38 PKG_CHECK_MODULES(BASE, [freetype2 fribidi gstreamer-$GST_MAJORMINOR gstreamer-pbutils-$GST_MAJORMINOR libdvbsi++ libpng libxml-2.0 sigc++-1.2 libssl libcrypto])
39 PKG_CHECK_MODULES(LIBDDVD, libdreamdvd, HAVE_LIBDDVD="yes", HAVE_LIBDDVD="no")
40 AM_CONDITIONAL(HAVE_LIBDDVD, test "$HAVE_LIBDDVD" = "yes")
41
42 AC_CHECK_LIB([dl], [dlopen], [LIBDL_LIBS="-ldl"], [AC_MSG_ERROR([Could not find libdl])])
43 AC_SUBST(LIBDL_LIBS)
44 AC_CHECK_LIB([jpeg], [jpeg_set_defaults], [LIBJPEG_LIBS="-ljpeg"], [AC_MSG_ERROR([Could not find libjpeg])])
45 AC_SUBST(LIBJPEG_LIBS)
46 AC_CHECK_LIB([ungif], [DGifOpen], [LIBGIF_LIBS="-lungif"], [AC_CHECK_LIB([gif], [DGifOpen], [LIBGIF_LIBS="-lgif"], [AC_MSG_ERROR([Could not find libgif or libungif])])])
47 AC_SUBST(LIBGIF_LIBS)
48
49 AC_LANG_PUSH([C++])
50 AC_CHECK_LIB([xmlccwrap], [exit], [LIBXMLCCWRAP_LIBS="-lxmlccwrap"], [AC_MSG_ERROR([Could not find libxmlccwrap])])
51 AC_SUBST(LIBXMLCCWRAP_LIBS)
52 AC_LANG_POP
53
54 AC_ARG_WITH(remote-keyboard,
55         AC_HELP_STRING([--with-remote-keyboard], [use remote keyboard on dvbapp, yes or no]),
56         [[withrckbd=$withval]],
57         [[withrckbd=no]]
58 )
59 if test x"$withrckbd" != xno ; then
60         AC_DEFINE(VUPLUS_USE_RCKBD, 1,[Define when using a rc-keyboard on dvbapp])
61 fi
62
63 AC_ARG_WITH(set-right-half-vfd-skin,
64         AC_HELP_STRING([--with-set-right-half-vfd-skin], [display right_half_vfd_icons from skin(for ultimo), yes or no]),
65         [[setrighthalfvfdskin=$withval]],
66         [[setrighthalfvfdskin=no]]
67 )
68 if test x"$setrighthalfvfdskin" != xno ; then
69         AC_DEFINE(SET_RIGHT_HALF_VFD_SKIN, 1,[Define when display right_half_vfd_icons from skin, for ultimo])
70 fi
71 AM_CONDITIONAL(SET_RIGHT_HALF_VFD_SKIN, test x"$setrighthalfvfdskin" != xno)
72
73 AC_ARG_WITH(libvugles2,
74         AS_HELP_STRING([--with-libvugles2],[use libvugles2, yes or no]),
75         [with_libvugles2=$withval],[with_libvugles2=no])
76 if test "$with_libvugles2" = "yes"; then
77         PKG_CHECK_MODULES(LIBVUGLES2, [libvugles2])
78         GLES_CFLAGS="-DUSE_LIBVUGLES2"
79 fi
80 AM_CONDITIONAL(HAVE_LIBVUGLES2, test "$with_libvugles2" = "yes")
81
82 AC_ARG_WITH(libsdl,
83         AS_HELP_STRING([--with-libsdl],[use libsdl, yes or no]),
84         [with_libsdl=$withval],[with_libsdl=no])
85 if test "$with_libsdl" = "yes"; then
86         PKG_CHECK_MODULES(LIBSDL, sdl)
87 fi
88 AM_CONDITIONAL(HAVE_LIBSDL, test "$with_libsdl" = "yes")
89
90 AC_ARG_WITH(libxine,
91         AS_HELP_STRING([--with-libxine],[use libxine, yes or no]),
92         [with_libxine=$withval],[with_libxine=no])
93 if test "$with_libxine" = "yes"; then
94         PKG_CHECK_MODULES(LIBXINE, libxine)
95         AC_DEFINE([WITH_XINE],[1],[Define to 1 if you have libxine])
96 fi
97 AM_CONDITIONAL(HAVE_LIBXINE, test "$with_libxine" = "yes")
98
99 AC_ARG_WITH(debug,
100         AS_HELP_STRING([--without-debug],[disable debugging code]),
101         [with_debug="$withval"],[with_debug="yes"])
102 if test "$with_debug" = "yes"; then
103         DEBUG_CFLAGS="-ggdb3"
104         AC_DEFINE([DEBUG],[1],[Define to 1 to enable debugging code])
105 fi
106
107 AC_ARG_WITH(memcheck,
108         AS_HELP_STRING([--with-memcheck],[enable memory leak checks]),
109         [with_memcheck="$withval"],[with_memcheck="no"])
110 if test "$with_memcheck" = "yes"; then
111         AC_DEFINE([MEMLEAK_CHECK],[1],[Define to 1 to enable memory leak checks])
112 fi
113
114 AC_ARG_WITH(po,
115         AS_HELP_STRING([--with-po],[enable updating of po files]),
116         [with_po="$withval"],[with_po="no"])
117 if test "$with_po" = "yes"; then
118         AC_PATH_PROG(MSGINIT, msginit)
119         AC_PATH_PROG(MSGMERGE, msgmerge)
120         AC_PATH_PROG(MSGUNIQ, msguniq)
121         AC_PATH_PROG(XGETTEXT, xgettext)
122         if test -z "$MSGINIT" -o -z "$MSGMERGE" -o -z "$MSGUNIQ" -o -z "$XGETTEXT"; then
123                 AC_MSG_ERROR([Could not find required gettext tools])
124         fi
125 fi
126 AM_CONDITIONAL(UPDATE_PO, test "$with_po" = "yes")
127
128 ENIGMA2_CFLAGS="-fno-rtti -fno-exceptions"
129 AC_SUBST(ENIGMA2_CFLAGS)
130
131 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
132 CFLAGS="$CFLAGS $DEBUG_CFLAGS -Wall"
133 CXXFLAGS="$CXXFLAGS $DEBUG_CFLAGS -Wall $BASE_CFLAGS $ENIGMA2_CFLAGS $PTHREAD_CFLAGS $GLES_CFLAGS"
134
135 AC_CONFIG_FILES([
136 Makefile
137 data/Makefile
138 data/fonts/Makefile
139 data/countries/Makefile
140 data/defaults/Makefile
141 data/defaults/Dream/Makefile
142 data/defaults/Dream/hdbouquets/Makefile
143 data/defaults/Dream/sdbouquets/Makefile
144 data/extensions/Makefile
145 data/keymaps/Makefile
146 data/skin_default/Makefile
147 data/skin_default/menu/Makefile
148 data/skin_default/icons/Makefile
149 data/skin_default/buttons/Makefile
150 data/skin_default/spinner/Makefile
151 data/rc/Makefile
152 include/Makefile
153 lib/Makefile
154 lib/actions/Makefile
155 lib/base/Makefile
156 lib/base/eenv.cpp
157 lib/driver/Makefile
158 lib/dvb/Makefile
159 lib/dvb/lowlevel/Makefile
160 lib/dvb_ci/Makefile
161 lib/gdi/Makefile
162 lib/gui/Makefile
163 lib/mmi/Makefile
164 lib/nav/Makefile
165 lib/python/Makefile
166 lib/python/Components/Makefile
167 lib/python/Components/Converter/Makefile
168 lib/python/Components/Renderer/Makefile
169 lib/python/Components/Sources/Makefile
170 lib/python/Screens/Makefile
171 lib/python/Plugins/Makefile
172 lib/python/Plugins/DemoPlugins/Makefile
173 lib/python/Plugins/DemoPlugins/TPMDemo/Makefile
174 lib/python/Plugins/DemoPlugins/TestPlugin/Makefile
175 lib/python/Plugins/Extensions/CutListEditor/Makefile
176 lib/python/Plugins/Extensions/CutListEditor/meta/Makefile
177 lib/python/Plugins/Extensions/DVDBurn/Makefile
178 lib/python/Plugins/Extensions/DVDBurn/meta/Makefile
179 lib/python/Plugins/Extensions/DVDPlayer/Makefile
180 lib/python/Plugins/Extensions/DVDPlayer/meta/Makefile
181 lib/python/Plugins/Extensions/DVDPlayer/src/Makefile
182 lib/python/Plugins/Extensions/GraphMultiEPG/Makefile
183 lib/python/Plugins/Extensions/GraphMultiEPG/meta/Makefile
184 lib/python/Plugins/Extensions/Makefile
185 lib/python/Plugins/Extensions/MediaPlayer/Makefile
186 lib/python/Plugins/Extensions/MediaPlayer/meta/Makefile
187 lib/python/Plugins/Extensions/MediaScanner/Makefile
188 lib/python/Plugins/Extensions/MediaScanner/meta/Makefile
189 lib/python/Plugins/Extensions/Modem/Makefile
190 lib/python/Plugins/Extensions/PicturePlayer/Makefile
191 lib/python/Plugins/Extensions/PicturePlayer/meta/Makefile
192 lib/python/Plugins/Extensions/PicturePlayer/data/Makefile
193 lib/python/Plugins/Extensions/SocketMMI/Makefile
194 lib/python/Plugins/Extensions/SocketMMI/meta/Makefile
195 lib/python/Plugins/Extensions/SocketMMI/src/Makefile
196 lib/python/Plugins/Extensions/TuxboxPlugins/Makefile
197 lib/python/Plugins/Extensions/TuxboxPlugins/meta/Makefile
198 lib/python/Plugins/Extensions/WebBrowser/Makefile
199 lib/python/Plugins/Extensions/WebBrowser/meta/Makefile
200 lib/python/Plugins/Extensions/WebBrowser/keymap/Makefile
201 lib/python/Plugins/Extensions/WebBrowser/desc/Makefile
202 lib/python/Plugins/Extensions/StreamTV/Makefile
203 lib/python/Plugins/Extensions/StreamTV/meta/Makefile
204 lib/python/Plugins/Extensions/StreamTV/icons/Makefile
205 lib/python/Plugins/Extensions/DLNAServer/Makefile
206 lib/python/Plugins/Extensions/DLNAServer/meta/Makefile
207 lib/python/Plugins/Extensions/DLNABrowser/Makefile
208 lib/python/Plugins/Extensions/DLNABrowser/meta/Makefile
209 lib/python/Plugins/Extensions/HbbTV/Makefile
210 lib/python/Plugins/Extensions/HbbTV/meta/Makefile
211 lib/python/Plugins/Extensions/HbbTV/locale/Makefile
212 lib/python/Plugins/Extensions/BackupSuiteHDD/Makefile
213 lib/python/Plugins/Extensions/BackupSuiteHDD/meta/Makefile
214 lib/python/Plugins/Extensions/BackupSuiteHDD/locale/Makefile
215 lib/python/Plugins/Extensions/BackupSuiteUSB/Makefile
216 lib/python/Plugins/Extensions/BackupSuiteUSB/meta/Makefile
217 lib/python/Plugins/Extensions/SatipClient/Makefile
218 lib/python/Plugins/Extensions/SatipClient/meta/Makefile
219 lib/python/Plugins/Extensions/MiniTV/Makefile
220 lib/python/Plugins/Extensions/MiniTV/meta/Makefile
221 lib/python/Plugins/SystemPlugins/CleanupWizard/Makefile
222 lib/python/Plugins/SystemPlugins/CleanupWizard/meta/Makefile
223 lib/python/Plugins/SystemPlugins/CommonInterfaceAssignment/Makefile
224 lib/python/Plugins/SystemPlugins/CommonInterfaceAssignment/meta/Makefile
225 lib/python/Plugins/SystemPlugins/CrashlogAutoSubmit/Makefile
226 lib/python/Plugins/SystemPlugins/CrashlogAutoSubmit/meta/Makefile
227 lib/python/Plugins/SystemPlugins/DefaultServicesScanner/Makefile
228 lib/python/Plugins/SystemPlugins/DefaultServicesScanner/meta/Makefile
229 lib/python/Plugins/SystemPlugins/DiseqcTester/Makefile
230 lib/python/Plugins/SystemPlugins/DiseqcTester/meta/Makefile
231 lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade/Makefile
232 lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade/meta/Makefile
233 lib/python/Plugins/SystemPlugins/Hotplug/Makefile
234 lib/python/Plugins/SystemPlugins/Hotplug/meta/Makefile
235 lib/python/Plugins/SystemPlugins/Makefile
236 lib/python/Plugins/SystemPlugins/TempFanControl/Makefile
237 lib/python/Plugins/SystemPlugins/TempFanControl/meta/Makefile
238 lib/python/Plugins/SystemPlugins/NetworkWizard/Makefile
239 lib/python/Plugins/SystemPlugins/NetworkWizard/meta/Makefile
240 lib/python/Plugins/SystemPlugins/NFIFlash/Makefile
241 lib/python/Plugins/SystemPlugins/NFIFlash/meta/Makefile
242 lib/python/Plugins/SystemPlugins/PositionerSetup/Makefile
243 lib/python/Plugins/SystemPlugins/PositionerSetup/meta/Makefile
244 lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/Makefile
245 lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/meta/Makefile
246 lib/python/Plugins/SystemPlugins/Satfinder/Makefile
247 lib/python/Plugins/SystemPlugins/Satfinder/meta/Makefile
248 lib/python/Plugins/SystemPlugins/SkinSelector/Makefile
249 lib/python/Plugins/SystemPlugins/SkinSelector/meta/Makefile
250 lib/python/Plugins/SystemPlugins/SoftwareManager/Makefile
251 lib/python/Plugins/SystemPlugins/SoftwareManager/meta/Makefile
252 lib/python/Plugins/SystemPlugins/VideoEnhancement/Makefile
253 lib/python/Plugins/SystemPlugins/VideoEnhancement/meta/Makefile
254 lib/python/Plugins/SystemPlugins/VideoTune/Makefile
255 lib/python/Plugins/SystemPlugins/VideoTune/meta/Makefile
256 lib/python/Plugins/SystemPlugins/Videomode/Makefile
257 lib/python/Plugins/SystemPlugins/Videomode/meta/Makefile
258 lib/python/Plugins/SystemPlugins/WirelessLan/Makefile
259 lib/python/Plugins/SystemPlugins/WirelessLan/meta/Makefile
260 lib/python/Plugins/SystemPlugins/Fancontrol/Makefile
261 lib/python/Plugins/SystemPlugins/Fancontrol/meta/Makefile
262 lib/python/Plugins/SystemPlugins/FPGAUpgrade/Makefile
263 lib/python/Plugins/SystemPlugins/FPGAUpgrade/meta/Makefile
264 lib/python/Plugins/SystemPlugins/WirelessLanSetup/Makefile
265 lib/python/Plugins/SystemPlugins/WirelessLanSetup/meta/Makefile
266 lib/python/Plugins/SystemPlugins/ManualFancontrol/Makefile
267 lib/python/Plugins/SystemPlugins/ManualFancontrol/meta/Makefile
268 lib/python/Plugins/SystemPlugins/Blindscan/Makefile
269 lib/python/Plugins/SystemPlugins/Blindscan/meta/Makefile
270 lib/python/Plugins/SystemPlugins/RemoteControlCode/Makefile
271 lib/python/Plugins/SystemPlugins/RemoteControlCode/meta/Makefile
272 lib/python/Plugins/SystemPlugins/UI3DSetup/Makefile
273 lib/python/Plugins/SystemPlugins/UI3DSetup/meta/Makefile
274 lib/python/Plugins/SystemPlugins/UIPositionSetup/Makefile
275 lib/python/Plugins/SystemPlugins/UIPositionSetup/meta/Makefile
276 lib/python/Plugins/SystemPlugins/HDMICEC/Makefile
277 lib/python/Plugins/SystemPlugins/HDMICEC/components/Makefile
278 lib/python/Plugins/SystemPlugins/HDMICEC/meta/Makefile
279 lib/python/Plugins/SystemPlugins/LEDBrightnessSetup/Makefile
280 lib/python/Plugins/SystemPlugins/LEDBrightnessSetup/meta/Makefile
281 lib/python/Plugins/SystemPlugins/FirmwareUpgrade/Makefile
282 lib/python/Plugins/SystemPlugins/FirmwareUpgrade/meta/Makefile
283 lib/python/Plugins/SystemPlugins/CrashReport/Makefile
284 lib/python/Plugins/SystemPlugins/CrashReport/meta/Makefile
285 lib/python/Plugins/SystemPlugins/3GModemManager/Makefile
286 lib/python/Plugins/SystemPlugins/3GModemManager/meta/Makefile
287 lib/python/Plugins/SystemPlugins/3GModemManager/script/Makefile
288 lib/python/Plugins/SystemPlugins/WirelessAccessPoint/Makefile
289 lib/python/Plugins/SystemPlugins/WirelessAccessPoint/meta/Makefile
290 lib/python/Plugins/SystemPlugins/ZappingModeSelection/Makefile
291 lib/python/Plugins/SystemPlugins/ZappingModeSelection/meta/Makefile
292 lib/python/Plugins/SystemPlugins/DeviceManager/Makefile
293 lib/python/Plugins/SystemPlugins/DeviceManager/meta/Makefile
294 lib/python/Plugins/SystemPlugins/DeviceManager/locale/Makefile
295 lib/python/Plugins/SystemPlugins/TransCodingSetup/Makefile
296 lib/python/Plugins/SystemPlugins/TransCodingSetup/meta/Makefile
297 lib/python/Plugins/SystemPlugins/TransCodingSetup/locale/Makefile
298 lib/python/Plugins/SystemPlugins/WOLSetup/Makefile
299 lib/python/Plugins/SystemPlugins/WOLSetup/meta/Makefile
300 lib/python/Plugins/SystemPlugins/NetDrive/Makefile
301 lib/python/Plugins/SystemPlugins/NetDrive/meta/Makefile
302 lib/python/Plugins/SystemPlugins/AudioEffect/Makefile
303 lib/python/Plugins/SystemPlugins/AudioEffect/meta/Makefile
304 lib/python/Plugins/SystemPlugins/AnimationSetup/Makefile
305 lib/python/Plugins/SystemPlugins/AnimationSetup/meta/Makefile
306 lib/python/Plugins/SystemPlugins/BoxModeConfig/Makefile
307 lib/python/Plugins/SystemPlugins/BoxModeConfig/meta/Makefile
308 lib/python/Plugins/SystemPlugins/FastChannelChange/Makefile
309 lib/python/Plugins/SystemPlugins/FastChannelChange/meta/Makefile
310 lib/python/Plugins/SystemPlugins/PvrDescrambleConvert/Makefile
311 lib/python/Plugins/SystemPlugins/PvrDescrambleConvert/meta/Makefile
312 lib/python/Plugins/Extensions/QuadPiP/Makefile
313 lib/python/Plugins/Extensions/QuadPiP/meta/Makefile
314 lib/python/Tools/Makefile
315 lib/service/Makefile
316 lib/components/Makefile
317 po/Makefile
318 main/Makefile
319 tools/Makefile
320 tools/enigma2.sh
321 enigma2.pc
322 ])
323 AC_DEFINE(BUILD_VUPLUS,1,[Define to 1 for vuplus])
324 AC_OUTPUT