Commit 3eac5c63 authored by Måns Rullgård's avatar Måns Rullgård

disable bktr if required headers not found, enable by default

Originally committed as revision 7913 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 74476a3a
...@@ -692,7 +692,7 @@ wince="no" ...@@ -692,7 +692,7 @@ wince="no"
# non-library system interfaces # non-library system interfaces
audio_beos="no" audio_beos="no"
audio_oss="yes" audio_oss="yes"
bktr="no" bktr="yes"
dv1394="yes" dv1394="yes"
video4linux2="yes" video4linux2="yes"
video4linux="yes" video4linux="yes"
...@@ -815,13 +815,11 @@ case $targetos in ...@@ -815,13 +815,11 @@ case $targetos in
add_extralibs "-lsocket -lnsl" add_extralibs "-lsocket -lnsl"
;; ;;
NetBSD) NetBSD)
bktr="yes"
dv1394="no" dv1394="no"
make="gmake" make="gmake"
add_extralibs "-lossaudio" add_extralibs "-lossaudio"
;; ;;
OpenBSD) OpenBSD)
bktr="yes"
dv1394="no" dv1394="no"
need_memalign="no" need_memalign="no"
make="gmake" make="gmake"
...@@ -834,19 +832,16 @@ case $targetos in ...@@ -834,19 +832,16 @@ case $targetos in
add_extralibs "-lossaudio" add_extralibs "-lossaudio"
;; ;;
FreeBSD) FreeBSD)
bktr="yes"
dv1394="no" dv1394="no"
make="gmake" make="gmake"
need_memalign="no" need_memalign="no"
add_cflags "-pthread" add_cflags "-pthread"
;; ;;
GNU/kFreeBSD) GNU/kFreeBSD)
bktr="yes"
dv1394="no" dv1394="no"
add_cflags "-pthread" add_cflags "-pthread"
;; ;;
BSD/OS) BSD/OS)
bktr="yes"
dv1394="no" dv1394="no"
extralibs="-lpoll -lgnugetopt -lm" extralibs="-lpoll -lgnugetopt -lm"
make="gmake" make="gmake"
...@@ -1746,16 +1741,14 @@ enabled video4linux2 && check_header linux/videodev2.h || disable video4linux2 ...@@ -1746,16 +1741,14 @@ enabled video4linux2 && check_header linux/videodev2.h || disable video4linux2
# check for ioctl_meteor.h, ioctl_bt848.h and alternatives # check for ioctl_meteor.h, ioctl_bt848.h and alternatives
if enabled bktr; then if enabled bktr; then
check_header dev/bktr/ioctl_meteor.h { check_header dev/bktr/ioctl_meteor.h &&
check_header dev/bktr/ioctl_bt848.h check_header dev/bktr/ioctl_bt848.h; } ||
{ check_header machine/ioctl_meteor.h &&
check_header machine/ioctl_meteor.h check_header machine/ioctl_bt848.h; } ||
check_header machine/ioctl_bt848.h { check_header dev/video/meteor/ioctl_meteor.h &&
check_header dev/video/bktr/ioctl_bt848.h; } ||
check_header dev/video/meteor/ioctl_meteor.h check_header dev/ic/bt8xx.h ||
check_header dev/video/bktr/ioctl_bt848.h disable bktr
check_header dev/ic/bt8xx.h
fi fi
enabled audio_oss && enabled audio_oss &&
......
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