Merge commit 'c97e30c087c5435db3861d53f89fd59576be03f6' into mm
[openblackhole/openblackhole-enigma2.git] / configure.ac
index d6a9a9f..244a2f1 100755 (executable)
@@ -3,18 +3,62 @@ AM_INIT_AUTOMAKE(enigma2,2.4)
 
 TUXBOX_APPS
 TUXBOX_APPS_DIRECTORY
+TUXBOX_APPS_PKGCONFIG
 
 AC_PROG_CC
 AC_PROG_CXX
 AC_PROG_RANLIB
 AC_CONFIG_MACRO_DIR([m4])
 
+AC_ARG_WITH(boxtype,
+       [  --with-boxtype=NAME box type [[none,dm7025,dm800...]]],
+       [BOXTYPE="$withval"],[BOXTYPE="dm800"])
+
+AC_SUBST(BOXTYPE)
+AC_DEFINE_UNQUOTED(BOXTYPE,"$BOXTYPE",[box type])
+
+if test x"$BOXTYPE" == "xdm8000" ; then
+       AC_DEFINE(KEY_PLAY_ACTUALLY_IS_KEY_PLAYPAUSE, 1,[define when rc sends a KEY_PLAY event for its KEY_PLAYPAUSE key])
+fi
+
 AC_ARG_WITH(libsdl,
        AC_HELP_STRING([--with-libsdl], [use sdl, yes or no]),
        [[withsdl=$withval]],
        [[withsdl=yes]]
 )
 
+AC_ARG_WITH(alsa,
+       AC_HELP_STRING([--with-alsa=mixername], [use alsa 'mixername' for volume control, e.g. Master]),
+       [[withalsa=$withval]],
+       [[withalsa=no]]
+)
+
+if test x"$withalsa" != xno ; then
+       _TUXBOX_APPS_LIB_PKGCONFIG_OPTIONAL(ALSA, alsa, HAVE_ALSA)
+       LDFLAGS="$LDFLAGS $ALSA_LIBS"
+       AC_DEFINE_UNQUOTED(ALSA_VOLUME_MIXER, "$withval",[Defines which alsa mixer to use for volume control])
+fi
+
+AC_ARG_WITH(textlcd,
+       AC_HELP_STRING([--with-textlcd], [use ascii based lcd, yes or no]),
+       [[withtextlcd=$withval]],
+       [[withtextlcd=no]]
+)
+if test x"$withtextlcd" != xno ; then
+       AC_DEFINE(HAVE_TEXTLCD, 1,[Define when using an ascii based lcd device])
+fi
+AM_CONDITIONAL(HAVE_TEXTLCD, test x"$withtextlcd" != xno)
+
+AC_ARG_WITH(colorlcd,
+       AC_HELP_STRING([--with-colorlcd], [use 96x64 16bpp color display, yes or no]),
+       [[withcolorlcd=$withval]],
+       [[withcolorlcd=no]]
+)
+if test x"$withcolorlcd" != xno ; then
+       AC_DEFINE(HAVE_COLORLCD, 1,[Define when using a 96x64 color display device])
+fi
+AM_CONDITIONAL(HAVE_COLORLCD, test x"$withcolorlcd" != xno)
+
 AC_CHECK_HEADER(dreamdvd/ddvdlib.h,have_ddvdlib="yes",have_ddvdlib="no")
 if test x"${have_ddvdlib}" = xyes ; then
        AC_DEFINE(HAVE_DDVDLIB, 1,[Define if ddvdlib is available])
@@ -79,6 +123,16 @@ CPPFLAGS="$CPPFLAGS "'-I$(top_srcdir)'
 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"
 #CPPFLAGS="$CPPFLAGS -DMEMLEAK_CHECK"
 CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions -Wall"
+
+#if test "$GCC" = "yes"
+#then
+#        gccmajor=`$CC -dumpversion | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
+#        if test "$gccmajor" -gt "3"
+#        then
+#                CXXFLAGS="$CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden -fno-threadsafe-statics"
+#        fi
+#fi
+
 LDFLAGS="$LDFLAGS -pthread $PYTHON_LDFLAGS $SDL_LDFLAGS $GSTREAMER_LDFLAGS $GSTREAMERPBUTILS_LDFLAGS $LIBXINE_LDFLAGS $LIBUNGIF_LDFLAGS"
 #LDFLAGS="-rdynamic $LDFLAGS"
 
@@ -111,6 +165,7 @@ lib/gdi/Makefile
 lib/gui/Makefile
 lib/mmi/Makefile
 lib/nav/Makefile
+lib/network/Makefile
 lib/python/Makefile
 lib/python/Components/Makefile
 lib/python/Components/Converter/Makefile
@@ -118,6 +173,10 @@ lib/python/Components/Renderer/Makefile
 lib/python/Components/Sources/Makefile
 lib/python/Screens/Makefile
 lib/python/Plugins/Makefile
+lib/python/Plugins/SystemPlugins/SoftwareUpdate/Makefile
+lib/python/Plugins/SystemPlugins/ConfigurationBackup/Makefile
+lib/python/Plugins/SystemPlugins/CableScan/Makefile
+lib/python/Plugins/SystemPlugins/FastScan/Makefile
 lib/python/Plugins/DemoPlugins/Makefile
 lib/python/Plugins/DemoPlugins/TPMDemo/Makefile
 lib/python/Plugins/DemoPlugins/TestPlugin/Makefile