add USE_NEUTRINO_HAL define for libneutrino-hal

This commit is contained in:
Stefan Seyfried
2012-02-05 19:32:20 +01:00
parent dbc40c4a80
commit 27315a43cc
4 changed files with 11 additions and 3 deletions

View File

@@ -122,6 +122,9 @@ AC_ARG_WITH(neutrino-hal-build,
[NEUTRINO_HAL_LIB="$withval"],[NEUTRINO_HAL_LIB=""]) [NEUTRINO_HAL_LIB="$withval"],[NEUTRINO_HAL_LIB=""])
AM_CONDITIONAL(USE_NEUTRINO_HAL, test "$NEUTRINO_HAL_INC") AM_CONDITIONAL(USE_NEUTRINO_HAL, test "$NEUTRINO_HAL_INC")
if test "$NEUTRINO_HAL_INC"; then
AC_DEFINE(USE_NEUTRINO_HAL, 1,[use libneutrino-hal])
fi
AC_CHECK_HEADERS(coolstream/nevis_ir.h) AC_CHECK_HEADERS(coolstream/nevis_ir.h)

View File

@@ -1,9 +1,11 @@
#if HAVE_COOL_HARDWARE #if HAVE_COOL_HARDWARE
#include <dmx_cs.h> #include <dmx_cs.h>
#elif USE_NEUTRINO_HAL
#include <dmx_td.h>
#elif HAVE_TRIPLEDRAGON #elif HAVE_TRIPLEDRAGON
#include <dmx_td.h> #include <dmx_td.h>
#else #else
#error neither HAVE_COOL_HARDWARE nor HAVE_TRIPLEDRAGON defined. #error neither HAVE_COOL_HARDWARE nor HAVE_TRIPLEDRAGON nor USE_NEUTRINO_HAL defined.
#error do you need to include config.h? #error do you need to include config.h?
#endif #endif

View File

@@ -2,7 +2,10 @@
#include <cs_api.h> #include <cs_api.h>
#include <video_cs.h> #include <video_cs.h>
#endif #endif
#if HAVE_TRIPLEDRAGON #if USE_NEUTRINO_HAL
#include <init_td.h>
#include <video_td.h>
#elif HAVE_TRIPLEDRAGON
#include <init_td.h> #include <init_td.h>
#include <video_td.h> #include <video_td.h>
#endif #endif

View File

@@ -60,7 +60,7 @@
#include <audio_cs.h> #include <audio_cs.h>
#include <video_cs.h> #include <video_cs.h>
#endif #endif
#if HAVE_TRIPLEDRAGON #if USE_NEUTRINO_HAL || HAVE_TRIPLEDRAGON
#include <video_td.h> #include <video_td.h>
#include <audio_td.h> #include <audio_td.h>
#endif #endif