Mercurial > mplayer.hg
comparison configure @ 5486:5c71c1f7fa1f
improved DVB detection
author | jaf |
---|---|
date | Thu, 04 Apr 2002 13:21:13 +0000 |
parents | e7034890adc5 |
children | 0869f86ac983 |
comparison
equal
deleted
inserted
replaced
5485:01961295ca10 | 5486:5c71c1f7fa1f |
---|---|
2043 | 2043 |
2044 echocheck "DVB" | 2044 echocheck "DVB" |
2045 if test "$_dvb" != no ; then | 2045 if test "$_dvb" != no ; then |
2046 _dvb=no | 2046 _dvb=no |
2047 test -c /dev/ost/video && _dvb=yes | 2047 test -c /dev/ost/video && _dvb=yes |
2048 cat >$TMPC << EOF | |
2049 #include <sys/poll.h> | |
2050 #include <sys/ioctl.h> | |
2051 #include <stdio.h> | |
2052 #include <time.h> | |
2053 #include <unistd.h> | |
2054 | |
2055 #include <ost/dmx.h> | |
2056 #include <ost/frontend.h> | |
2057 #include <ost/sec.h> | |
2058 #include <ost/video.h> | |
2059 #include <ost/audio.h> | |
2060 int main(void) {return 0;} | |
2061 EOF | |
2062 if cc_check ; then | |
2063 _dvb=yes | |
2064 echores "yes" | |
2065 else | |
2066 if cc_check -I/usr/src/DVB/ost/include ; then | |
2067 _dvb=yes | |
2068 echores "yes (using source from /usr/src/DVB/ost/include)" | |
2069 _inc_dvb="-I/usr/src/DVB/ost/include" | |
2070 else | |
2071 if cc_check $_inc_extra/ost/include ; then | |
2072 _dvb=yes | |
2073 echores "yes (using source from $_inc_extra/ost/include)" | |
2074 _inc_dvb="$_inc_extra/ost/include" | |
2075 else | |
2076 _dvb=no | |
2077 echores "no (driver source not in /usr/src/DVB/ost/include, please add path with --with-extraincdir=DIR)" | |
2078 fi | |
2079 fi | |
2080 fi | |
2081 else | |
2082 echores "no" | |
2048 fi | 2083 fi |
2049 if test "$_dvb" = yes ; then | 2084 if test "$_dvb" = yes ; then |
2050 _def_dvb='#define HAVE_DVB 1' | 2085 _def_dvb='#define HAVE_DVB 1' |
2051 _vomodules="mpegpes(dvb) $_vomodules" | 2086 _vomodules="mpegpes(dvb) $_vomodules" |
2052 else | 2087 else |
2053 _def_dvb='#undef HAVE_DVB' | 2088 _def_dvb='#undef HAVE_DVB' |
2054 _vomodules="mpegpes(file) $_vomodules" | 2089 _vomodules="mpegpes(file) $_vomodules" |
2055 fi | 2090 fi |
2056 echores "$_dvb" | |
2057 | 2091 |
2058 | 2092 |
2059 echocheck "PNG support" | 2093 echocheck "PNG support" |
2060 if test "$_png" = auto ; then | 2094 if test "$_png" = auto ; then |
2061 _png=no | 2095 _png=no |
3314 # video output | 3348 # video output |
3315 X_LIB = $_ld_x11 $_ld_gl $_ld_dga $_ld_xv $_ld_vm $_ld_xinerama $_ld_mad $_ld_sock | 3349 X_LIB = $_ld_x11 $_ld_gl $_ld_dga $_ld_xv $_ld_vm $_ld_xinerama $_ld_mad $_ld_sock |
3316 GGI_LIB = $_ld_ggi | 3350 GGI_LIB = $_ld_ggi |
3317 MLIB_LIB = $_ld_mlib | 3351 MLIB_LIB = $_ld_mlib |
3318 MLIB_INC = $_inc_mlib | 3352 MLIB_INC = $_inc_mlib |
3353 DVB_INC = $_inc_dvb | |
3319 PNG_LIB = $_ld_png | 3354 PNG_LIB = $_ld_png |
3320 JPEG_LIB = $_ld_jpg | 3355 JPEG_LIB = $_ld_jpg |
3321 SDL_LIB = $_ld_sdl | 3356 SDL_LIB = $_ld_sdl |
3322 SVGA_LIB = $_ld_svga | 3357 SVGA_LIB = $_ld_svga |
3323 AA_LIB = $_ld_aa | 3358 AA_LIB = $_ld_aa |