Commit a49c546d authored by mru's avatar mru

test for OSS audio


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7911 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4c21155a
...@@ -519,6 +519,8 @@ HAVE_LIST=' ...@@ -519,6 +519,8 @@ HAVE_LIST='
pthreads pthreads
sdl sdl
sdl_video_size sdl_video_size
soundcard_h
sys_soundcard_h
threads threads
w32threads w32threads
' '
...@@ -792,7 +794,6 @@ case $targetos in ...@@ -792,7 +794,6 @@ case $targetos in
LDCONFIG="echo ignoring ldconfig" LDCONFIG="echo ignoring ldconfig"
SHFLAGS=-nostart SHFLAGS=-nostart
# disable Linux things # disable Linux things
audio_oss="no"
dv1394="no" dv1394="no"
# enable BeOS things # enable BeOS things
audio_beos="yes" audio_beos="yes"
...@@ -806,7 +807,6 @@ case $targetos in ...@@ -806,7 +807,6 @@ case $targetos in
extralibs="-lnet" extralibs="-lnet"
fi ;; fi ;;
SunOS) SunOS)
audio_oss="no"
dv1394="no" dv1394="no"
make="gmake" make="gmake"
FFLDFLAGS="" FFLDFLAGS=""
...@@ -816,14 +816,12 @@ case $targetos in ...@@ -816,14 +816,12 @@ case $targetos in
;; ;;
NetBSD) NetBSD)
bktr="yes" bktr="yes"
audio_oss="yes"
dv1394="no" dv1394="no"
make="gmake" make="gmake"
add_extralibs "-lossaudio" add_extralibs "-lossaudio"
;; ;;
OpenBSD) OpenBSD)
bktr="yes" bktr="yes"
audio_oss="yes"
dv1394="no" dv1394="no"
need_memalign="no" need_memalign="no"
make="gmake" make="gmake"
...@@ -837,7 +835,6 @@ case $targetos in ...@@ -837,7 +835,6 @@ case $targetos in
;; ;;
FreeBSD) FreeBSD)
bktr="yes" bktr="yes"
audio_oss="yes"
dv1394="no" dv1394="no"
make="gmake" make="gmake"
need_memalign="no" need_memalign="no"
...@@ -845,13 +842,11 @@ case $targetos in ...@@ -845,13 +842,11 @@ case $targetos in
;; ;;
GNU/kFreeBSD) GNU/kFreeBSD)
bktr="yes" bktr="yes"
audio_oss="yes"
dv1394="no" dv1394="no"
add_cflags "-pthread" add_cflags "-pthread"
;; ;;
BSD/OS) BSD/OS)
bktr="yes" bktr="yes"
audio_oss="yes"
dv1394="no" dv1394="no"
extralibs="-lpoll -lgnugetopt -lm" extralibs="-lpoll -lgnugetopt -lm"
make="gmake" make="gmake"
...@@ -859,7 +854,6 @@ case $targetos in ...@@ -859,7 +854,6 @@ case $targetos in
;; ;;
Darwin) Darwin)
cc="cc" cc="cc"
audio_oss="no"
dv1394="no" dv1394="no"
need_memalign="no" need_memalign="no"
SHFLAGS="-dynamiclib -Wl,-single_module -Wl,-install_name,\$(shlibdir)/\$(SLIBNAME),-current_version,\$(SPPVERSION),-compatibility_version,\$(SPPVERSION) -Wl,-read_only_relocs,suppress" SHFLAGS="-dynamiclib -Wl,-single_module -Wl,-install_name,\$(shlibdir)/\$(SLIBNAME),-current_version,\$(SPPVERSION),-compatibility_version,\$(SPPVERSION) -Wl,-read_only_relocs,suppress"
...@@ -880,7 +874,6 @@ case $targetos in ...@@ -880,7 +874,6 @@ case $targetos in
CYGWIN*) CYGWIN*)
targetos=CYGWIN targetos=CYGWIN
shlibdir="$bindir" shlibdir="$bindir"
audio_oss="yes"
dv1394="no" dv1394="no"
VHOOKSHFLAGS='-shared -L$(BUILD_ROOT)/libavformat -L$(BUILD_ROOT)/libavcodec -L$(BUILD_ROOT)/libavutil' VHOOKSHFLAGS='-shared -L$(BUILD_ROOT)/libavformat -L$(BUILD_ROOT)/libavcodec -L$(BUILD_ROOT)/libavutil'
VHOOKLIBS='-lavformat$(BUILDSUF) -lavcodec$(BUILDSUF) -lavutil$(BUILDSUF) $(EXTRALIBS)' VHOOKLIBS='-lavformat$(BUILDSUF) -lavcodec$(BUILDSUF) -lavutil$(BUILDSUF) $(EXTRALIBS)'
...@@ -898,7 +891,6 @@ case $targetos in ...@@ -898,7 +891,6 @@ case $targetos in
IRIX*) IRIX*)
targetos=IRIX targetos=IRIX
ranlib="echo ignoring ranlib" ranlib="echo ignoring ranlib"
audio_oss="no"
make="gmake" make="gmake"
;; ;;
OS/2) OS/2)
...@@ -917,7 +909,6 @@ case $targetos in ...@@ -917,7 +909,6 @@ case $targetos in
EXESUF=".exe" EXESUF=".exe"
extralibs="" extralibs=""
pkg_requires="" pkg_requires=""
audio_oss="no"
dv1394="no" dv1394="no"
ffserver="no" ffserver="no"
vhook="no" vhook="no"
...@@ -1181,7 +1172,6 @@ you do not need to pass additional options. ...@@ -1181,7 +1172,6 @@ you do not need to pass additional options.
EOF EOF
exit 1 exit 1
fi fi
audio_oss="no"
dv1394="no" dv1394="no"
dc1394="no" dc1394="no"
ffserver="no" ffserver="no"
...@@ -1768,6 +1758,11 @@ if enabled bktr; then ...@@ -1768,6 +1758,11 @@ if enabled bktr; then
check_header dev/ic/bt8xx.h check_header dev/ic/bt8xx.h
fi fi
enabled audio_oss &&
check_header sys/soundcard.h ||
check_header soundcard.h ||
disable audio_oss
# Deal with the x11 frame grabber # Deal with the x11 frame grabber
enabled x11grab && enabled x11grab &&
enabled gpl && enabled gpl &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment