comparison configure @ 34148:61e3181426d8

Always define HAVE_PTHREADS and HAVE_W32THREADS. This fixes a warning when compiling FFmpeg's pthreads.c: libavcodec/pthread.c:914:5: warning: "HAVE_W32THREADS" is not defined Possibly fixes compilation on some win32 systems.
author cehoyos
date Sat, 22 Oct 2011 00:17:28 +0000
parents 6e798fce4fc1
children eff0c15389be
comparison
equal deleted inserted replaced
34147:6e798fce4fc1 34148:61e3181426d8
3552 fi 3552 fi
3553 echores "$_dynamic_plugins" 3553 echores "$_dynamic_plugins"
3554 3554
3555 3555
3556 def_threads='#define HAVE_THREADS 0' 3556 def_threads='#define HAVE_THREADS 0'
3557 def_pthreads='#define HAVE_PTHREADS 0'
3558 def_w32threads='#define HAVE_W32THREADS 0'
3557 3559
3558 echocheck "pthread" 3560 echocheck "pthread"
3559 if linux ; then 3561 if linux ; then
3560 THREAD_CFLAGS=-D_REENTRANT 3562 THREAD_CFLAGS=-D_REENTRANT
3561 elif freebsd || netbsd || openbsd || bsdos ; then 3563 elif freebsd || netbsd || openbsd || bsdos ; then
3604 fi 3606 fi
3605 if test "$_w32threads" = auto ; then 3607 if test "$_w32threads" = auto ; then
3606 _w32threads=no 3608 _w32threads=no
3607 mingw32 && _w32threads=yes 3609 mingw32 && _w32threads=yes
3608 fi 3610 fi
3609 test "$_w32threads" = yes && def_threads='#define HAVE_THREADS 1' 3611 test "$_w32threads" = yes && def_threads='#define HAVE_THREADS 1' && def_w32threads='#define HAVE_W32THREADS 1'
3610 echores "$_w32threads" 3612 echores "$_w32threads"
3611 3613
3612 echocheck "rpath" 3614 echocheck "rpath"
3613 if test "$_rpath" = yes ; then 3615 if test "$_rpath" = yes ; then
3614 for I in $(echo $extra_ldflags | sed 's/-L//g') ; do 3616 for I in $(echo $extra_ldflags | sed 's/-L//g') ; do
8527 $def_roundf 8529 $def_roundf
8528 $def_threads 8530 $def_threads
8529 $def_trunc 8531 $def_trunc
8530 $def_truncf 8532 $def_truncf
8531 $def_vf_lavfi 8533 $def_vf_lavfi
8534 $def_w32threads
8532 $def_xform_asm 8535 $def_xform_asm
8533 $def_xmm_clobbers 8536 $def_xmm_clobbers
8534 $def_yasm 8537 $def_yasm
8535 8538
8536 #define CONFIG_AUDIO_FLOAT 0 8539 #define CONFIG_AUDIO_FLOAT 0