X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=configure.ac;h=c235888eec38fe5c44dfa494e52be289462688b7;hp=5eadfb51f94408a5a79aed70391e0b3bcd83dfc2;hb=543c10ec14536f004a8c37935effaa13c0c661de;hpb=4e8cc699a9a33db131ab29ea55b1993558eda1e0 diff --git a/configure.ac b/configure.ac index 5eadfb5..c235888 100644 --- a/configure.ac +++ b/configure.ac @@ -16,14 +16,7 @@ AC_CONFIG_MACRO_DIR([m4]) AC_CHECK_HEADERS([dbox/fp.h dbox/lcd-ks0713.h]) -AC_PATH_PROG(MSGFMT,[msgfmt]) -AC_PATH_PROG(MSGINIT,[msginit]) -AC_PATH_PROG(MSGMERGE,[msgmerge]) -AC_PATH_PROG(MSGUNIQ,[msguniq]) -AC_PATH_PROG(XGETTEXT,[xgettext]) -if test -z "$MSGFMT" -o -z "$MSGINIT" -o -z "$MSGMERGE" -o -z "$MSGUNIQ" -o -z "$XGETTEXT"; then - AC_MSG_ERROR([Could not find required gettext tools]) -fi +AC_PATH_PROG(MSGFMT, msgfmt, AC_MSG_ERROR(Could not find msgfmt)) AM_PATH_PYTHON AX_PYTHON_DEVEL @@ -88,10 +81,23 @@ fi AC_ARG_WITH(po, AS_HELP_STRING([--with-po],[enable updating of po files]), [with_po="$withval"],[with_po="no"]) +if test "$with_po" = "yes"; then + AC_PATH_PROG(MSGINIT, msginit) + AC_PATH_PROG(MSGMERGE, msgmerge) + AC_PATH_PROG(MSGUNIQ, msguniq) + AC_PATH_PROG(XGETTEXT, xgettext) + if test -z "$MSGINIT" -o -z "$MSGMERGE" -o -z "$MSGUNIQ" -o -z "$XGETTEXT"; then + AC_MSG_ERROR([Could not find required gettext tools]) + fi +fi AM_CONDITIONAL(UPDATE_PO, test "$with_po" = "yes") +ENIGMA2_CFLAGS="-fno-rtti -fno-exceptions" +AC_SUBST(ENIGMA2_CFLAGS) + CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" -CXXFLAGS="$CXXFLAGS $BASE_CFLAGS $PTHREAD_CFLAGS $DEBUG_CFLAGS -fno-rtti -fno-exceptions -Wall" +CFLAGS="$CFLAGS $DEBUG_CFLAGS -Wall" +CXXFLAGS="$CXXFLAGS $DEBUG_CFLAGS -Wall $BASE_CFLAGS $ENIGMA2_CFLAGS $PTHREAD_CFLAGS" AC_CONFIG_FILES([ Makefile @@ -194,6 +200,9 @@ lib/python/Plugins/SystemPlugins/Videomode/Makefile lib/python/Plugins/SystemPlugins/Videomode/meta/Makefile lib/python/Plugins/SystemPlugins/WirelessLan/Makefile lib/python/Plugins/SystemPlugins/WirelessLan/meta/Makefile +lib/python/Plugins/SystemPlugins/FactoryTest/Makefile +lib/python/Plugins/SystemPlugins/Fancontrol/Makefile +lib/python/Plugins/SystemPlugins/Fancontrol/meta/Makefile lib/python/Tools/Makefile lib/service/Makefile lib/components/Makefile @@ -203,4 +212,5 @@ tools/Makefile tools/enigma2.sh enigma2.pc ]) +AC_DEFINE(BUILD_VUPLUS,1,[Define to 1 for vuplus]) AC_OUTPUT