handle multiple configuration files correctly. Patch by Pieter Grimmerink
[enigma2.git] / configure.ac
index f3239d214657df48db787df0fc5ef9308d7e9b8b..8cb18fd34000b50c7896c26e78d30229e96840fb 100644 (file)
@@ -1,5 +1,5 @@
-AC_INIT(tuxbox-enigma,0.0.1)
-AM_INIT_AUTOMAKE(tuxbox-enigma,0.0.1)
+AC_INIT(enigma2,2.4)
+AM_INIT_AUTOMAKE(enigma2,2.4)
 
 TUXBOX_APPS
 TUXBOX_APPS_DIRECTORY
@@ -14,13 +14,24 @@ AC_ARG_WITH(libsdl,
        [[withsdl=yes]]
 )
 
+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])
+else
+       AC_MSG_NOTICE([ddvdlib not found... dont build dvd plugin])
+fi
+AM_CONDITIONAL(HAVE_DDVDLIB, test "$have_ddvdlib" = "yes")
+
 AM_PATH_PYTHON()
 AC_PYTHON_DEVEL
 #AM_PATH_XINE(1.1.0,, AC_MSG_ERROR([*** Please install xine-lib (devel) first ***]))
 
 TUXBOX_APPS_DVB
 
-TUXBOX_APPS_LIB_CONFIG(FREETYPE,freetype-config)
+_TUXBOX_APPS_LIB_PKGCONFIG_OPTIONAL(FREETYPE, freetype2, HAVE_FREETYPE2)
+if test "$HAVE_FREETYPE2" = "no" ; then
+       TUXBOX_APPS_LIB_CONFIG(FREETYPE, freetype-config)
+fi
 TUXBOX_APPS_LIB_PKGCONFIG(FRIBIDI,fribidi)
 TUXBOX_APPS_LIB_PKGCONFIG(ID3TAG,id3tag)
 TUXBOX_APPS_LIB_PKGCONFIG(MAD,mad)
@@ -44,9 +55,14 @@ TUXBOX_APPS_LIB_PKGCONFIG(XML2,libxml-2.0)
 TUXBOX_APPS_LIB_SYMBOL(XMLCCWRAP, xmlccwrap, exit)
 
 if test "$withsdl" = "yes" ; then
-       TUXBOX_APPS_LIB_CONFIG(SDL,sdl-config)
-       AC_DEFINE_UNQUOTED([WITH_SDL],[$withsdl],[With SDL])
+       _TUXBOX_APPS_LIB_PKGCONFIG_OPTIONAL(SDL,sdl,WITH_SDL)
+       if test "$WITH_SDL" = "no" ; then
+               TUXBOX_APPS_LIB_CONFIG(SDL,sdl-config)
+               AC_DEFINE_UNQUOTED([WITH_SDL],[$withsdl],[With SDL])
+       fi
 fi
+# allow 'if WITH_SDL' conditionals in Makefile.am
+AM_CONDITIONAL(WITH_SDL, test "$WITH_SDL" = "yes")
 
 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 $LIBUNGIF_CLFAGS"
@@ -63,9 +79,13 @@ data/Makefile
 data/fonts/Makefile
 data/countries/Makefile
 data/defaults/Makefile
+data/defaults/Dream/Makefile
 data/extensions/Makefile
 data/skin_default/Makefile
 data/skin_default/menu/Makefile
+data/skin_default/icons/Makefile
+data/skin_default/buttons/Makefile
+data/skin_default/spinner/Makefile
 lib/Makefile
 lib/actions/Makefile
 lib/base/Makefile
@@ -89,6 +109,7 @@ lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade/Makefile
 lib/python/Plugins/SystemPlugins/PositionerSetup/Makefile
 lib/python/Plugins/SystemPlugins/Hotplug/Makefile
 lib/python/Plugins/SystemPlugins/ConfigurationBackup/Makefile
+lib/python/Plugins/SystemPlugins/DefaultServicesScanner/Makefile
 lib/python/Plugins/SystemPlugins/Satfinder/Makefile
 lib/python/Plugins/SystemPlugins/SkinSelector/Makefile
 lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/Makefile
@@ -103,16 +124,20 @@ lib/python/Plugins/Extensions/FileManager/Makefile
 lib/python/Plugins/Extensions/CutListEditor/Makefile
 lib/python/Plugins/Extensions/MediaScanner/Makefile
 lib/python/Plugins/Extensions/MediaPlayer/Makefile
+lib/python/Plugins/Extensions/DVDPlayer/Makefile
+lib/python/Plugins/Extensions/DVDPlayer/src/Makefile
 lib/python/Plugins/Extensions/PicturePlayer/Makefile
 lib/python/Plugins/Extensions/PicturePlayer/data/Makefile
 lib/python/Plugins/Extensions/GraphMultiEPG/Makefile
 lib/python/Plugins/Extensions/SocketMMI/Makefile
+lib/python/Plugins/Extensions/SocketMMI/src/Makefile
 lib/python/Tools/Makefile
 lib/service/Makefile
 lib/components/Makefile
 po/Makefile
 main/Makefile
 tools/Makefile
+enigma2.pc
 ])
 
 #lib/python/Plugins/Extensions/SimpleRSS/Makefile