Mercurial > mplayer.hg
comparison configure @ 1344:bb1f389a002c
Remove "sdl-config: not found" error message during configure, when the system
has no SDL installed.
Grab nanosleep from libposix4 on solaris (instead of librt), works on old
solaris versions, too.
Autodetect XDPMS: provide a "#define HAVE_XDPMS", so that C code can leave out
DPMS stuff when DPMS is not available on the target platform.
author | jkeil |
---|---|
date | Thu, 19 Jul 2001 18:46:29 +0000 |
parents | 71c0f15c4712 |
children | 3db173705860 |
comparison
equal
deleted
inserted
replaced
1343:ecaa8d0f1649 | 1344:bb1f389a002c |
---|---|
684 { echo "Lib pthread not found."; rm -f $TMPC $TMPO $TMPS ; exit 1; } | 684 { echo "Lib pthread not found."; rm -f $TMPC $TMPO $TMPS ; exit 1; } |
685 fi | 685 fi |
686 | 686 |
687 # Atmosfear: added SDL versioncheck and autodetect; removed warnings. | 687 # Atmosfear: added SDL versioncheck and autodetect; removed warnings. |
688 _sdl=no | 688 _sdl=no |
689 if test ! -z "`$_sdlconfig --version 2>/dev/null`" ; then | 689 if test ! -z "`($_sdlconfig --version) 2>/dev/null`" ; then |
690 if $_cc `$_sdlconfig --cflags` $TMPC -o $TMPO `$_sdlconfig --libs` > /dev/null 2>&1 ; then | 690 if $_cc `$_sdlconfig --cflags` $TMPC -o $TMPO `$_sdlconfig --libs` > /dev/null 2>&1 ; then |
691 _sdlversion=`$_sdlconfig --version | sed 's/[^0-9]//g'` | 691 _sdlversion=`$_sdlconfig --version | sed 's/[^0-9]//g'` |
692 if test "$_sdlversion" -gt 116 ; then | 692 if test "$_sdlversion" -gt 116 ; then |
693 if test "$_sdlversion" -lt 121 ; then | 693 if test "$_sdlversion" -lt 121 ; then |
694 | 694 |
730 _ggi=no | 730 _ggi=no |
731 $_cc $TMPC -o $TMPO -lggi > /dev/null 2>&1 && _ggi=yes | 731 $_cc $TMPC -o $TMPO -lggi > /dev/null 2>&1 && _ggi=yes |
732 | 732 |
733 _kstat=no | 733 _kstat=no |
734 $_cc $TMPC -o $TMPO -lkstat >/dev/null 2>&1 && _kstat=yes _archlibs="-lkstat $_archlibs" | 734 $_cc $TMPC -o $TMPO -lkstat >/dev/null 2>&1 && _kstat=yes _archlibs="-lkstat $_archlibs" |
735 $_cc $TMPC -o $TMPO -lrt >/dev/null 2>&1 && _archlibs="-lrt $_archlibs" | 735 $_cc $TMPC -o $TMPO -lposix4 >/dev/null 2>&1 && _archlibs="-lposix4 $_archlibs" |
736 | 736 |
737 _binutils=no | 737 _binutils=no |
738 $_as libac3/downmix/downmix_i386.S -o $TMPO > /dev/null 2>&1 && _binutils=yes | 738 $_as libac3/downmix/downmix_i386.S -o $TMPO > /dev/null 2>&1 && _binutils=yes |
739 | 739 |
740 # echo binutils: $_binutils | 740 # echo binutils: $_binutils |
1354 fi | 1354 fi |
1355 | 1355 |
1356 if [ $_x11 = yes ]; then | 1356 if [ $_x11 = yes ]; then |
1357 if [ $_xdpms = yes ]; then | 1357 if [ $_xdpms = yes ]; then |
1358 _x11lib='-lX11 -lXext -lXdpms' | 1358 _x11lib='-lX11 -lXext -lXdpms' |
1359 _have_xdpms='#define HAVE_XDPMS 1' | |
1359 else | 1360 else |
1360 _x11lib='-lX11 -lXext' | 1361 _x11lib='-lX11 -lXext' |
1362 _have_xdpms='#undef HAVE_XDPMS' | |
1361 fi | 1363 fi |
1362 fi | 1364 fi |
1363 | 1365 |
1364 if [ $_xv = yes ]; then | 1366 if [ $_xv = yes ]; then |
1365 _xvlib='-lXv' | 1367 _xvlib='-lXv' |
1858 $_mga | 1860 $_mga |
1859 $_xmga | 1861 $_xmga |
1860 $_syncfb | 1862 $_syncfb |
1861 $_fbdev | 1863 $_fbdev |
1862 $_svga | 1864 $_svga |
1865 $_have_xdpms | |
1863 | 1866 |
1864 #if defined(HAVE_GL)||defined(HAVE_X11)||defined(HAVE_XV) | 1867 #if defined(HAVE_GL)||defined(HAVE_X11)||defined(HAVE_XV) |
1865 #define X11_FULLSCREEN | 1868 #define X11_FULLSCREEN |
1866 #endif | 1869 #endif |
1867 | 1870 |