Mega-Merge remote branch 'dream/master' into mm
[openblackhole/openblackhole-enigma2.git] / configure.ac
1 AC_INIT([enigma2],[2.8.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])
20 AC_PATH_PROG(MSGINIT,[msginit])
21 AC_PATH_PROG(MSGMERGE,[msgmerge])
22 AC_PATH_PROG(MSGUNIQ,[msguniq])
23 AC_PATH_PROG(XGETTEXT,[xgettext])
24 if test -z "$MSGFMT" -o -z "$MSGINIT" -o -z "$MSGMERGE" -o -z "$MSGUNIQ" -o -z "$XGETTEXT"; then
25         AC_MSG_ERROR([Could not find required gettext tools])
26 fi
27
28 AM_PATH_PYTHON
29 AX_PYTHON_DEVEL
30 AX_PKG_SWIG
31 AX_SWIG_ENABLE_CXX
32 AX_SWIG_PYTHON
33 AX_PTHREAD
34
35 TUXBOX_APPS_DVB
36
37 AM_CONDITIONAL(HAVE_GIT_DIR, test -d "$srcdir/.git")
38 AM_CONDITIONAL(HAVE_FAKE_GIT_DIR, test -f "$srcdir/.git/last_commit_info")
39
40 PKG_CHECK_MODULES(BASE, [freetype2 fribidi gstreamer-0.10 gstreamer-pbutils-0.10 libdvbsi++ libpng libxml-2.0 sigc++-1.2])
41 PKG_CHECK_MODULES(LIBDDVD, libdreamdvd, HAVE_LIBDDVD="yes", HAVE_LIBDDVD="no")
42 AM_CONDITIONAL(HAVE_LIBDDVD, test "$HAVE_LIBDDVD" = "yes")
43
44 AC_CHECK_LIB([dl], [dlopen], [LIBDL_LIBS="-ldl"], [AC_MSG_ERROR([Could not find libdl])])
45 AC_SUBST(LIBDL_LIBS)
46 AC_CHECK_LIB([jpeg], [jpeg_set_defaults], [LIBJPEG_LIBS="-ljpeg"], [AC_MSG_ERROR([Could not find libjpeg])])
47 AC_SUBST(LIBJPEG_LIBS)
48 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])])])
49 AC_SUBST(LIBGIF_LIBS)
50
51 AC_LANG_PUSH([C++])
52 AC_CHECK_LIB([xmlccwrap], [exit], [LIBXMLCCWRAP_LIBS="-lxmlccwrap"], [AC_MSG_ERROR([Could not find libxmlccwrap])])
53 AC_SUBST(LIBXMLCCWRAP_LIBS)
54 AC_LANG_POP
55
56 AC_ARG_WITH(boxtype,
57         [  --with-boxtype=NAME box type [[none,dm7025,dm800...]]],
58         [BOXTYPE="$withval"],[BOXTYPE="dm800"])
59 AC_SUBST(BOXTYPE)
60 AC_DEFINE_UNQUOTED(BOXTYPE,"$BOXTYPE",[box type])
61
62 AC_ARG_WITH(textlcd,
63         AC_HELP_STRING([--with-textlcd], [use ascii based lcd, yes or no]),
64         [[withtextlcd=$withval]],
65         [[withtextlcd=no]]
66 )
67 if test x"$withtextlcd" != xno ; then
68         AC_DEFINE(HAVE_TEXTLCD, 1,[Define when using an ascii based lcd device])
69 fi
70 AM_CONDITIONAL(HAVE_TEXTLCD, test x"$withtextlcd" != xno)
71
72 AC_ARG_WITH(colorlcd,
73         AC_HELP_STRING([--with-colorlcd], [use 96x64 16bpp color display, yes or no]),
74         [[withcolorlcd=$withval]],
75         [[withcolorlcd=no]]
76 )
77 if test x"$withcolorlcd" != xno ; then
78         AC_DEFINE(HAVE_COLORLCD, 1,[Define when using a 96x64 color display device])
79 fi
80 AM_CONDITIONAL(HAVE_COLORLCD, test x"$withcolorlcd" != xno)
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([--without-po],[disable updating of po files]),
116         [with_po="$withval"],[with_po="yes"])
117 AM_CONDITIONAL(UPDATE_PO, test "$with_po" = "yes")
118
119 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
120 CXXFLAGS="$CXXFLAGS $BASE_CFLAGS $PTHREAD_CFLAGS $DEBUG_CFLAGS -fno-rtti -fno-exceptions -Wall"
121
122 AC_CONFIG_FILES([
123 Makefile
124 data/Makefile
125 data/fonts/Makefile
126 data/countries/Makefile
127 data/defaults/Makefile
128 data/defaults/Dream/Makefile
129 data/defaults/Dream/hdbouquets/Makefile
130 data/defaults/Dream/sdbouquets/Makefile
131 data/extensions/Makefile
132 data/keymaps/Makefile
133 data/skin_default/Makefile
134 data/skin_default/menu/Makefile
135 data/skin_default/icons/Makefile
136 data/skin_default/buttons/Makefile
137 data/skin_default/spinner/Makefile
138 include/Makefile
139 lib/Makefile
140 lib/actions/Makefile
141 lib/base/Makefile
142 lib/base/eenv.cpp
143 lib/driver/Makefile
144 lib/dvb/Makefile
145 lib/dvb/lowlevel/Makefile
146 lib/dvb_ci/Makefile
147 lib/gdi/Makefile
148 lib/gui/Makefile
149 lib/mmi/Makefile
150 lib/nav/Makefile
151 lib/python/Makefile
152 lib/python/Components/Makefile
153 lib/python/Components/Converter/Makefile
154 lib/python/Components/Renderer/Makefile
155 lib/python/Components/Sources/Makefile
156 lib/python/Screens/Makefile
157 lib/python/Plugins/Makefile
158 lib/python/Plugins/SystemPlugins/SoftwareUpdate/Makefile
159 lib/python/Plugins/SystemPlugins/ConfigurationBackup/Makefile
160 lib/python/Plugins/SystemPlugins/CableScan/Makefile
161 lib/python/Plugins/SystemPlugins/FastScan/Makefile
162 lib/python/Plugins/SystemPlugins/OSDPositionSetup/Makefile
163 lib/python/Plugins/SystemPlugins/OSD3DSetup/Makefile
164 lib/python/Plugins/DemoPlugins/Makefile
165 lib/python/Plugins/DemoPlugins/TPMDemo/Makefile
166 lib/python/Plugins/DemoPlugins/TestPlugin/Makefile
167 lib/python/Plugins/Extensions/CutListEditor/Makefile
168 lib/python/Plugins/Extensions/CutListEditor/meta/Makefile
169 lib/python/Plugins/Extensions/DVDBurn/Makefile
170 lib/python/Plugins/Extensions/DVDBurn/meta/Makefile
171 lib/python/Plugins/Extensions/DVDPlayer/Makefile
172 lib/python/Plugins/Extensions/DVDPlayer/meta/Makefile
173 lib/python/Plugins/Extensions/DVDPlayer/src/Makefile
174 lib/python/Plugins/Extensions/GraphMultiEPG/Makefile
175 lib/python/Plugins/Extensions/GraphMultiEPG/meta/Makefile
176 lib/python/Plugins/Extensions/Makefile
177 lib/python/Plugins/Extensions/MediaPlayer/Makefile
178 lib/python/Plugins/Extensions/MediaPlayer/meta/Makefile
179 lib/python/Plugins/Extensions/MediaScanner/Makefile
180 lib/python/Plugins/Extensions/MediaScanner/meta/Makefile
181 lib/python/Plugins/Extensions/Modem/Makefile
182 lib/python/Plugins/Extensions/PicturePlayer/Makefile
183 lib/python/Plugins/Extensions/PicturePlayer/meta/Makefile
184 lib/python/Plugins/Extensions/PicturePlayer/data/Makefile
185 lib/python/Plugins/Extensions/SocketMMI/Makefile
186 lib/python/Plugins/Extensions/SocketMMI/meta/Makefile
187 lib/python/Plugins/Extensions/SocketMMI/src/Makefile
188 lib/python/Plugins/Extensions/TuxboxPlugins/Makefile
189 lib/python/Plugins/Extensions/TuxboxPlugins/meta/Makefile
190 lib/python/Plugins/SystemPlugins/CleanupWizard/Makefile
191 lib/python/Plugins/SystemPlugins/CleanupWizard/meta/Makefile
192 lib/python/Plugins/SystemPlugins/CommonInterfaceAssignment/Makefile
193 lib/python/Plugins/SystemPlugins/CommonInterfaceAssignment/meta/Makefile
194 lib/python/Plugins/SystemPlugins/CrashlogAutoSubmit/Makefile
195 lib/python/Plugins/SystemPlugins/CrashlogAutoSubmit/meta/Makefile
196 lib/python/Plugins/SystemPlugins/DefaultServicesScanner/Makefile
197 lib/python/Plugins/SystemPlugins/DefaultServicesScanner/meta/Makefile
198 lib/python/Plugins/SystemPlugins/DiseqcTester/Makefile
199 lib/python/Plugins/SystemPlugins/DiseqcTester/meta/Makefile
200 lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade/Makefile
201 lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade/meta/Makefile
202 lib/python/Plugins/SystemPlugins/Hotplug/Makefile
203 lib/python/Plugins/SystemPlugins/Hotplug/meta/Makefile
204 lib/python/Plugins/SystemPlugins/Makefile
205 lib/python/Plugins/SystemPlugins/TempFanControl/Makefile
206 lib/python/Plugins/SystemPlugins/TempFanControl/meta/Makefile
207 lib/python/Plugins/SystemPlugins/NetworkWizard/Makefile
208 lib/python/Plugins/SystemPlugins/NetworkWizard/meta/Makefile
209 lib/python/Plugins/SystemPlugins/NFIFlash/Makefile
210 lib/python/Plugins/SystemPlugins/NFIFlash/meta/Makefile
211 lib/python/Plugins/SystemPlugins/PositionerSetup/Makefile
212 lib/python/Plugins/SystemPlugins/PositionerSetup/meta/Makefile
213 lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/Makefile
214 lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/meta/Makefile
215 lib/python/Plugins/SystemPlugins/Satfinder/Makefile
216 lib/python/Plugins/SystemPlugins/Satfinder/meta/Makefile
217 lib/python/Plugins/SystemPlugins/SkinSelector/Makefile
218 lib/python/Plugins/SystemPlugins/SkinSelector/meta/Makefile
219 lib/python/Plugins/SystemPlugins/SoftwareManager/Makefile
220 lib/python/Plugins/SystemPlugins/SoftwareManager/meta/Makefile
221 lib/python/Plugins/SystemPlugins/VideoEnhancement/Makefile
222 lib/python/Plugins/SystemPlugins/VideoEnhancement/meta/Makefile
223 lib/python/Plugins/SystemPlugins/VideoTune/Makefile
224 lib/python/Plugins/SystemPlugins/VideoTune/meta/Makefile
225 lib/python/Plugins/SystemPlugins/Videomode/Makefile
226 lib/python/Plugins/SystemPlugins/Videomode/meta/Makefile
227 lib/python/Plugins/SystemPlugins/WirelessLan/Makefile
228 lib/python/Plugins/SystemPlugins/WirelessLan/meta/Makefile
229 lib/python/Tools/Makefile
230 lib/service/Makefile
231 lib/components/Makefile
232 po/Makefile
233 main/Makefile
234 tools/Makefile
235 tools/enigma2.sh
236 enigma2.pc
237 ])
238 AC_OUTPUT