add --disable-ipv6 option to configure

Originally committed as revision 6017 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Luca Barbato 2006-08-17 16:54:50 +00:00
parent 7981555d89
commit 0c7bb0e5b6
1 changed files with 5 additions and 1 deletions

6
configure vendored
View File

@ -86,6 +86,7 @@ show_help(){
echo " --disable-bktr disable bktr video grabbing [default=no]" echo " --disable-bktr disable bktr video grabbing [default=no]"
echo " --disable-dv1394 disable DV1394 grabbing [default=no]" echo " --disable-dv1394 disable DV1394 grabbing [default=no]"
echo " --disable-network disable network support [default=no]" echo " --disable-network disable network support [default=no]"
echo " --disable-ipv6 disable ipv6 support [default=no]"
echo " --disable-zlib disable zlib [default=no]" echo " --disable-zlib disable zlib [default=no]"
echo " --disable-simple_idct disable simple IDCT routines [default=no]" echo " --disable-simple_idct disable simple IDCT routines [default=no]"
echo " --disable-vhook disable video hooking support" echo " --disable-vhook disable video hooking support"
@ -406,6 +407,7 @@ audio_beos="no"
dv1394="yes" dv1394="yes"
dc1394="no" dc1394="no"
network="yes" network="yes"
ipv6="yes"
zlib="yes" zlib="yes"
libgsm="no" libgsm="no"
mp3lame="no" mp3lame="no"
@ -732,6 +734,8 @@ for opt do
;; ;;
--disable-network) network="no"; ffserver="no" --disable-network) network="no"; ffserver="no"
;; ;;
--disable-ipv6) ipv6="no";
;;
--disable-zlib) zlib="no" --disable-zlib) zlib="no"
;; ;;
--enable-a52) a52="yes" --enable-a52) a52="yes"
@ -1413,7 +1417,7 @@ fi
########################################## ##########################################
# IPv6 check # IPv6 check
enabled network && check_ld <<EOF && ipv6=yes || ipv6=no enabled network && enabled ipv6 && check_ld <<EOF && ipv6=yes || ipv6=no
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <netinet/in.h> #include <netinet/in.h>