Mercurial > mplayer.hg
comparison configure @ 3248:808d1ac88074
linux() bsd() ... etc is no longer case sensitive
(workaround for gabucino's not wanting to type --target=i386-Linux :))
unified a few echores messages
author | pl |
---|---|
date | Sat, 01 Dec 2001 17:17:32 +0000 |
parents | a5f693377e23 |
children | 534bb7907464 |
comparison
equal
deleted
inserted
replaced
3247:7cec2396bde3 | 3248:808d1ac88074 |
---|---|
49 echo "Check "$TMPLOG" if you do not understand why it failed." | 49 echo "Check "$TMPLOG" if you do not understand why it failed." |
50 exit 1 | 50 exit 1 |
51 } | 51 } |
52 | 52 |
53 # OS test booleans functions | 53 # OS test booleans functions |
54 linux() { test "$system_name" = "Linux" ; return "$?" ; } | 54 issystem() { |
55 sunos() { test "$system_name" = "SunOS" ; return "$?" ; } | 55 test "`echo $system_name | tr A-Z a-z`" = "`echo $1 | tr A-Z a-z`" |
56 irix() { test "$system_name" = "IRIX" ; return "$?" ; } | 56 } |
57 cygwin() { test "$system_name" = "CYGWIN" ; return "$?" ; } | 57 linux() { issystem "Linux" ; return "$?" ; } |
58 freebsd() { test "$system_name" = "FreeBSD" ; return "$?" ; } | 58 sunos() { issystem "SunOS" ; return "$?" ; } |
59 netbsd() { test "$system_name" = "NetBSD" ; return "$?" ; } | 59 irix() { issystem "IRIX" ; return "$?" ; } |
60 bsdos() { test "$system_name" = "BSD/OS" ; return "$?" ; } | 60 cygwin() { issystem "CYGWIN" ; return "$?" ; } |
61 openbsd() { test "$system_name" = "OpenBSD" ; return "$?" ; } | 61 freebsd() { issystem "FreeBSD" ; return "$?" ; } |
62 netbsd() { issystem "NetBSD" ; return "$?" ; } | |
63 bsdos() { issystem "BSD/OS" ; return "$?" ; } | |
64 openbsd() { issystem "OpenBSD" ; return "$?" ; } | |
62 bsd() { freebsd || netbsd || bsdos || openbsd ; return "$?" ; } | 65 bsd() { freebsd || netbsd || bsdos || openbsd ; return "$?" ; } |
63 qnx() { test "$system_name" = "QNX" ; return "$?" ; } | 66 qnx() { issystem "QNX" ; return "$?" ; } |
64 | 67 |
65 # arch test boolean functions | 68 # arch test boolean functions |
66 x86() { | 69 x86() { |
67 case "$host_arch" in | 70 case "$host_arch" in |
68 i[3-9]86|x86*) return 0 ;; | 71 i[3-9]86|x86*) return 0 ;; |
1041 int main(void) { (void) gethostbyname(0); return 0; } | 1044 int main(void) { (void) gethostbyname(0); return 0; } |
1042 EOF | 1045 EOF |
1043 cc_check $_ld_sock -lsocket && _ld_sock="$_ld_sock -lsocket" | 1046 cc_check $_ld_sock -lsocket && _ld_sock="$_ld_sock -lsocket" |
1044 cc_check $_ld_sock -lnsl && _ld_sock="$_ld_sock -lnsl" | 1047 cc_check $_ld_sock -lnsl && _ld_sock="$_ld_sock -lnsl" |
1045 if test "$_ld_sock" ; then | 1048 if test "$_ld_sock" ; then |
1046 echores "using $_ld_sock" | 1049 echores "yes (using $_ld_sock)" |
1047 else | 1050 else |
1048 echores "not needed" | 1051 echores "no" |
1049 fi | 1052 fi |
1050 | 1053 |
1051 | 1054 |
1052 echocheck "malloc.h" | 1055 echocheck "malloc.h" |
1053 cat > $TMPC << EOF | 1056 cat > $TMPC << EOF |
1161 elif cc_check -pthread ; then | 1164 elif cc_check -pthread ; then |
1162 _ld_pthread='-pthread' | 1165 _ld_pthread='-pthread' |
1163 else | 1166 else |
1164 die "Lib pthread not found. (needed by windows and networking stuff)" | 1167 die "Lib pthread not found. (needed by windows and networking stuff)" |
1165 fi | 1168 fi |
1166 echores "using $_ld_pthread" | 1169 echores "yes (using $_ld_pthread)" |
1167 | 1170 |
1168 | 1171 |
1169 echocheck "sys/soundcard.h" | 1172 echocheck "sys/soundcard.h" |
1170 cat > $TMPC << EOF | 1173 cat > $TMPC << EOF |
1171 #include <sys/soundcard.h> | 1174 #include <sys/soundcard.h> |
1371 cc_check $_inc_x11 $_ld_x11 && _xdpms4=yes | 1374 cc_check $_inc_x11 $_ld_x11 && _xdpms4=yes |
1372 fi | 1375 fi |
1373 | 1376 |
1374 if test "$_xdpms4" = yes ; then | 1377 if test "$_xdpms4" = yes ; then |
1375 _def_xdpms='#define HAVE_XDPMS 1' | 1378 _def_xdpms='#define HAVE_XDPMS 1' |
1376 echores "using xdpms4" | 1379 echores "yes (using Xdpms 4)" |
1377 elif test "$_xdpms3" = yes ; then | 1380 elif test "$_xdpms3" = yes ; then |
1378 _def_xdpms='#define HAVE_XDPMS 1' | 1381 _def_xdpms='#define HAVE_XDPMS 1' |
1379 _ld_x11="$_ld_x11 -lXdpms" | 1382 _ld_x11="$_ld_x11 -lXdpms" |
1380 echores "using xdpms3" | 1383 echores "yes (using Xdpms 3)" |
1381 else | 1384 else |
1382 _def_xdpms='#undef HAVE_XDPMS' | 1385 _def_xdpms='#undef HAVE_XDPMS' |
1383 echores "no" | 1386 echores "no" |
1384 fi | 1387 fi |
1385 | 1388 |
1478 if test "$_dga" = 1 ; then | 1481 if test "$_dga" = 1 ; then |
1479 _def_dga='#define HAVE_DGA 1' | 1482 _def_dga='#define HAVE_DGA 1' |
1480 _ld_dga='-lXxf86dga' | 1483 _ld_dga='-lXxf86dga' |
1481 _vosrc="$_vosrc vo_dga.c" | 1484 _vosrc="$_vosrc vo_dga.c" |
1482 _vomodules="dga $_vomodules" | 1485 _vomodules="dga $_vomodules" |
1483 echores "using DGA 1.0" | 1486 echores "yes (using DGA 1.0)" |
1484 elif test "$_dga" = 2 ; then | 1487 elif test "$_dga" = 2 ; then |
1485 _def_dga='#define HAVE_DGA 1' | 1488 _def_dga='#define HAVE_DGA 1' |
1486 _def_dga2='#define HAVE_DGA2 1' | 1489 _def_dga2='#define HAVE_DGA2 1' |
1487 _ld_dga='-lXxf86dga' | 1490 _ld_dga='-lXxf86dga' |
1488 _vosrc="$_vosrc vo_dga.c" | 1491 _vosrc="$_vosrc vo_dga.c" |
1489 _vomodules="dga $_vomodules" | 1492 _vomodules="dga $_vomodules" |
1490 echores "using DGA 2.0" | 1493 echores "yes (using DGA 2.0)" |
1491 elif test "$_dga" = no ; then | 1494 elif test "$_dga" = no ; then |
1492 echores "no" | 1495 echores "no" |
1493 else | 1496 else |
1494 die "DGA version must be 1 or 2" | 1497 die "DGA version must be 1 or 2" |
1495 fi | 1498 fi |
1684 | 1687 |
1685 echocheck "VESA support" | 1688 echocheck "VESA support" |
1686 if x86 && linux ; then | 1689 if x86 && linux ; then |
1687 _vosrc="$_vosrc vo_vesa.c vesa_lvo.c" | 1690 _vosrc="$_vosrc vo_vesa.c vesa_lvo.c" |
1688 _vomodules="vesa $_vomodules" | 1691 _vomodules="vesa $_vomodules" |
1689 echores "ok" | 1692 echores "yes" |
1690 else | 1693 else |
1691 echores "not supported on this OS/architecture" | 1694 echores "no (not supported on this OS/architecture" |
1692 fi | 1695 fi |
1693 | 1696 |
1694 | 1697 |
1695 ################# | 1698 ################# |
1696 # VIDEO + AUDIO # | 1699 # VIDEO + AUDIO # |