Commit 02a75c4e authored by mru's avatar mru

clean up setting of HAVE_*THREADS


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7037 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 75482fae
...@@ -402,6 +402,7 @@ CONFIG_LIST=' ...@@ -402,6 +402,7 @@ CONFIG_LIST='
HAVE_LIST=' HAVE_LIST='
altivec_h altivec_h
beosthreads
byteswap_h byteswap_h
dcbzl dcbzl
dlfcn dlfcn
...@@ -414,8 +415,12 @@ HAVE_LIST=' ...@@ -414,8 +415,12 @@ HAVE_LIST='
malloc_h malloc_h
memalign memalign
mlib mlib
os2threads
pthreads
sdl sdl
sdl_video_size sdl_video_size
threads
w32threads
' '
# set temporary file name # set temporary file name
...@@ -618,6 +623,7 @@ video4linux2="no" ...@@ -618,6 +623,7 @@ video4linux2="no"
dv1394="no" dv1394="no"
# enable BeOS things # enable BeOS things
audio_beos="yes" audio_beos="yes"
beosthreads="yes"
# no need for libm, but the inet stuff # no need for libm, but the inet stuff
# Check for BONE # Check for BONE
if (echo $BEINCLUDES|grep 'headers/be/bone' >/dev/null); then if (echo $BEINCLUDES|grep 'headers/be/bone' >/dev/null); then
...@@ -761,7 +767,7 @@ dv1394="no" ...@@ -761,7 +767,7 @@ dv1394="no"
ffserver="no" ffserver="no"
vhook="no" vhook="no"
os2="yes" os2="yes"
os2threads="yes"
;; ;;
*) *)
targetos="${targetos}-UNKNOWN" targetos="${targetos}-UNKNOWN"
...@@ -1019,6 +1025,9 @@ EOF ...@@ -1019,6 +1025,9 @@ EOF
dc1394="no" dc1394="no"
ffserver="no" ffserver="no"
network="no" network="no"
if enabled mingw32; then
w32threads="yes"
fi
if test "$mingwce" = "yes"; then if test "$mingwce" = "yes"; then
protocols="no" protocols="no"
fi fi
...@@ -1931,11 +1940,6 @@ if test "$altivec" = "yes" ; then ...@@ -1931,11 +1940,6 @@ if test "$altivec" = "yes" ; then
echo "#define HAVE_ALTIVEC 1" >> $TMPH echo "#define HAVE_ALTIVEC 1" >> $TMPH
fi fi
if test "$pthreads" = "yes" ; then
echo "HAVE_PTHREADS=yes" >> config.mak
echo "#define HAVE_PTHREADS 1" >> $TMPH
echo "#define HAVE_THREADS 1" >> $TMPH
fi
if test "$sdl" = "yes" ; then if test "$sdl" = "yes" ; then
echo "SDL_LIBS=`"${SDL_CONFIG}" --libs`" >> config.mak echo "SDL_LIBS=`"${SDL_CONFIG}" --libs`" >> config.mak
echo "SDL_CFLAGS=`"${SDL_CONFIG}" --cflags`" >> config.mak echo "SDL_CFLAGS=`"${SDL_CONFIG}" --cflags`" >> config.mak
...@@ -1979,13 +1983,12 @@ enabled_any $DECODER_LIST && enable decoders ...@@ -1979,13 +1983,12 @@ enabled_any $DECODER_LIST && enable decoders
enabled_any $MUXER_LIST && enable muxers enabled_any $MUXER_LIST && enable muxers
enabled_any $DEMUXER_LIST && enable demuxers enabled_any $DEMUXER_LIST && enable demuxers
enabled_any pthreads beosthreads os2threads w32threads && enable threads
print_config HAVE_ $TMPH config.mak $HAVE_LIST print_config HAVE_ $TMPH config.mak $HAVE_LIST
print_config CONFIG_ $TMPH config.mak $CONFIG_LIST print_config CONFIG_ $TMPH config.mak $CONFIG_LIST
if test "$mingw32" = "yes" ; then if test "$mingw32" = "yes" ; then
echo "HAVE_W32THREADS=yes" >> config.mak
echo "#define HAVE_W32THREADS 1" >> $TMPH
echo "#define HAVE_THREADS 1" >> $TMPH
echo "#ifndef __MINGW32__" >> $TMPH echo "#ifndef __MINGW32__" >> $TMPH
echo "#define __MINGW32__ 1" >> $TMPH echo "#define __MINGW32__ 1" >> $TMPH
echo "#endif" >> $TMPH echo "#endif" >> $TMPH
...@@ -2000,15 +2003,6 @@ fi ...@@ -2000,15 +2003,6 @@ fi
if test "$os2" = "yes" ; then if test "$os2" = "yes" ; then
echo "#define CONFIG_OS2 1" >> $TMPH echo "#define CONFIG_OS2 1" >> $TMPH
echo "HAVE_OS2THREADS=yes" >> config.mak
echo "#define HAVE_OS2THREADS 1" >> $TMPH
echo "#define HAVE_THREADS 1" >> $TMPH
fi
if test "$targetos" = "BeOS" ; then
echo "HAVE_BEOSTHREADS=yes" >> config.mak
echo "#define HAVE_BEOSTHREADS 1" >> $TMPH
echo "#define HAVE_THREADS 1" >> $TMPH
fi fi
if test "$targetos" = "Darwin"; then if test "$targetos" = "Darwin"; then
......
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