# HG changeset patch # User diego # Date 1157050809 0 # Node ID 18a538908577beb5bf61dd8166d822ded4312081 # Parent f83205ac7cfb6fc3f99fb1a03c164f4ec5109988 Check for requirements at configure-time, not at run-time. patch by Vladimir Voroshilov, voroshil gmail com diff -r f83205ac7cfb -r 18a538908577 configure --- a/configure Thu Aug 31 18:43:53 2006 +0000 +++ b/configure Thu Aug 31 19:00:09 2006 +0000 @@ -6720,6 +6720,9 @@ fi echores "$_radio_v4l" +if test "$_radio_v4l" = no && test "$_radio_v4l2" = no && test "$_radio" = yes ; then + die "Radio driver requires V4L or V4L2!" +fi echocheck "Video 4 Linux 2/IVTV PVR interface" if test "$_pvr" = auto ; then diff -r f83205ac7cfb -r 18a538908577 stream/stream_radio.c --- a/stream/stream_radio.c Thu Aug 31 18:43:53 2006 +0000 +++ b/stream/stream_radio.c Thu Aug 31 19:00:09 2006 +0000 @@ -1,5 +1,3 @@ - -#include "config.h" /* * Radio support * @@ -32,9 +30,7 @@ #undef USE_RADIO_CAPTURE #endif -#if !defined(HAVE_RADIO_V4L) && !defined(HAVE_RADIO_V4L2) -#error "This driver requires V4L1 or V4L2!" -#endif +#include "config.h" #include #include