Mercurial > mplayer.hg
comparison configure @ 15662:b72a6617d022
pthreads support for mingw, patch by Gianluigi Tiesi <mplayer at netfarm.it>
author | faust3 |
---|---|
date | Mon, 06 Jun 2005 16:56:29 +0000 |
parents | c515b4dcec6b |
children | a398c21242bf |
comparison
equal
deleted
inserted
replaced
15661:eeec75ce9f99 | 15662:b72a6617d022 |
---|---|
193 --disable-inet6 Disable IPv6 support [autodetect] | 193 --disable-inet6 Disable IPv6 support [autodetect] |
194 --disable-gethostbyname2 gethostbyname() function is not provided by the C | 194 --disable-gethostbyname2 gethostbyname() function is not provided by the C |
195 library [autodetect] | 195 library [autodetect] |
196 --disable-ftp Disable ftp support [enabled] | 196 --disable-ftp Disable ftp support [enabled] |
197 --disable-vstream Disable tivo vstream client support [autodetect] | 197 --disable-vstream Disable tivo vstream client support [autodetect] |
198 --disable-pthreads Disable Posix threads support [autodetect] | |
198 | 199 |
199 Codecs: | 200 Codecs: |
200 --enable-gif enable gif support [autodetect] | 201 --enable-gif enable gif support [autodetect] |
201 --enable-png enable png input/output support [autodetect] | 202 --enable-png enable png input/output support [autodetect] |
202 --enable-jpeg enable jpeg input/output support [autodetect] | 203 --enable-jpeg enable jpeg input/output support [autodetect] |
1475 _enca=auto | 1476 _enca=auto |
1476 _inet6=auto | 1477 _inet6=auto |
1477 _gethostbyname2=auto | 1478 _gethostbyname2=auto |
1478 _ftp=yes | 1479 _ftp=yes |
1479 _vstream=auto | 1480 _vstream=auto |
1481 _pthreads=yes | |
1480 for ac_option do | 1482 for ac_option do |
1481 case "$ac_option" in | 1483 case "$ac_option" in |
1482 # Skip 1st pass | 1484 # Skip 1st pass |
1483 --target=*) ;; | 1485 --target=*) ;; |
1484 --cc=*) ;; | 1486 --cc=*) ;; |
1727 --disable-unrarlib) _unrarlib=no ;; | 1729 --disable-unrarlib) _unrarlib=no ;; |
1728 --enable-ftp) _ftp=yes ;; | 1730 --enable-ftp) _ftp=yes ;; |
1729 --disable-ftp) _ftp=no ;; | 1731 --disable-ftp) _ftp=no ;; |
1730 --enable-vstream) _vstream=yes ;; | 1732 --enable-vstream) _vstream=yes ;; |
1731 --disable-vstream) _vstream=no ;; | 1733 --disable-vstream) _vstream=no ;; |
1734 --enable-pthreads) _pthreads=yes ;; | |
1735 --disable-pthreads) _pthreads=no ;; | |
1732 | 1736 |
1733 --enable-fribidi) _fribidi=yes ;; | 1737 --enable-fribidi) _fribidi=yes ;; |
1734 --disable-fribidi) _fribidi=no ;; | 1738 --disable-fribidi) _fribidi=no ;; |
1735 | 1739 |
1736 --enable-enca) _enca=yes ;; | 1740 --enable-enca) _enca=yes ;; |
2791 #echores "using $_ld_dl_dynamic" | 2795 #echores "using $_ld_dl_dynamic" |
2792 | 2796 |
2793 _def_threads='#undef HAVE_THREADS' | 2797 _def_threads='#undef HAVE_THREADS' |
2794 | 2798 |
2795 echocheck "pthread" | 2799 echocheck "pthread" |
2800 _ld_pthread='' | |
2801 if test "$_pthreads" != no ; then | |
2796 cat > $TMPC << EOF | 2802 cat > $TMPC << EOF |
2797 #include <pthread.h> | 2803 #include <pthread.h> |
2798 void* func(void *arg) { return arg; } | 2804 void* func(void *arg) { return arg; } |
2799 int main(void) { pthread_t tid; return pthread_create (&tid, 0, func, 0) == 0 ? 0 : 1; } | 2805 int main(void) { pthread_t tid; return pthread_create (&tid, 0, func, 0) == 0 ? 0 : 1; } |
2800 EOF | 2806 EOF |
2801 if mingw32 ; then | 2807 if hpux ; then |
2802 _ld_pthread='' | 2808 _ld_pthread='' |
2803 elif hpux ; then | 2809 elif ( cc_check -lpthreadGC2 && $TMPO ) ; then # mingw pthreads-win32 |
2804 _ld_pthread='' | 2810 _ld_pthread='-lpthreadGC2' |
2805 elif ( cc_check && $TMPO ) ; then # QNX | 2811 elif ( cc_check && $TMPO ) ; then # QNX |
2806 _ld_pthread=' ' # _ld_pthread='' would disable pthreads, but the test worked | 2812 _ld_pthread=' ' # _ld_pthread='' would disable pthreads, but the test worked |
2807 elif ( cc_check -lpthread && $TMPO ) ; then | 2813 elif ( cc_check -lpthread && $TMPO ) ; then |
2808 _ld_pthread='-lpthread' | 2814 _ld_pthread='-lpthread' |
2809 elif ( cc_check -pthread && $TMPO ) ; then | 2815 elif ( cc_check -pthread && $TMPO ) ; then |
2821 fi | 2827 fi |
2822 else | 2828 else |
2823 echores "no (v4l, vo_gl, ao_alsa, ao_nas, ao_macosx, win32 loader disabled)" | 2829 echores "no (v4l, vo_gl, ao_alsa, ao_nas, ao_macosx, win32 loader disabled)" |
2824 _ld_pthread='' ; _nas=no ; _tv_v4l=no ; _macosx=no ; _win32=no | 2830 _ld_pthread='' ; _nas=no ; _tv_v4l=no ; _macosx=no ; _win32=no |
2825 fi | 2831 fi |
2832 fi | |
2826 fi | 2833 fi |
2827 if test "$_ld_pthread" != '' ; then | 2834 if test "$_ld_pthread" != '' ; then |
2828 echores "yes (using $_ld_pthread)" | 2835 echores "yes (using $_ld_pthread)" |
2829 _pthreads='yes' | 2836 _pthreads='yes' |
2830 _def_pthreads='#define HAVE_PTHREADS 1' | 2837 _def_pthreads='#define HAVE_PTHREADS 1' |