[MPlayer-cvslog] r29182 - trunk/configure

diego subversion at mplayerhq.hu
Wed Apr 15 19:08:41 CEST 2009


Author: diego
Date: Wed Apr 15 19:08:41 2009
New Revision: 29182

Log:
Simplify OS detection functions.
The return statement in the functions appears unnecessary; remove it.

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Wed Apr 15 10:38:39 2009	(r29181)
+++ trunk/configure	Wed Apr 15 19:08:41 2009	(r29182)
@@ -110,26 +110,26 @@ die () {
 issystem() {
   test "`echo $system_name | tr A-Z a-z`" = "`echo $1 | tr A-Z a-z`"
 }
-linux()     { issystem "Linux" || issystem "uClinux" ; return "$?" ; }
-sunos()     { issystem "SunOS"   ; return "$?" ; }
-hpux()      { issystem "HP-UX"   ; return "$?" ; }
-irix()      { issystem "IRIX"    ; return "$?" ; }
-aix()       { issystem "AIX"     ; return "$?" ; }
-cygwin()    { issystem "CYGWIN"  ; return "$?" ; }
-freebsd()   { issystem "FreeBSD" || issystem "GNU/kFreeBSD"; return "$?" ; }
-netbsd()    { issystem "NetBSD"  ; return "$?" ; }
-bsdos()     { issystem "BSD/OS"  ; return "$?" ; }
-openbsd()   { issystem "OpenBSD" ; return "$?" ; }
-dragonfly() { issystem "DragonFly" ; return "$?" ; }
-qnx()       { issystem "QNX"     ; return "$?" ; }
-darwin()    { issystem "Darwin"  ; return "$?" ; }
-gnu()       { issystem "GNU"     ; return "$?" ; }
-mingw32()   { issystem "MINGW32" ; return "$?" ; }
-morphos()   { issystem "MorphOS" ; return "$?" ; }
-amigaos()   { issystem "AmigaOS" ; return "$?" ; }
-win32()     { cygwin || mingw32  ; return "$?" ; }
-beos()      { issystem "BEOS"    ; return "$?" ; }
-os2()       { issystem "OS/2"    ; return "$?" ; }
+aix()       { issystem "AIX"; }
+amigaos()   { issystem "AmigaOS"; }
+beos()      { issystem "BEOS"; }
+bsdos()     { issystem "BSD/OS"; }
+cygwin()    { issystem "CYGWIN"; }
+darwin()    { issystem "Darwin"; }
+dragonfly() { issystem "DragonFly"; }
+freebsd()   { issystem "FreeBSD" || issystem "GNU/kFreeBSD"; }
+gnu()       { issystem "GNU"; }
+hpux()      { issystem "HP-UX"; }
+irix()      { issystem "IRIX"; }
+linux()     { issystem "Linux"; }
+mingw32()   { issystem "MINGW32"; }
+morphos()   { issystem "MorphOS"; }
+netbsd()    { issystem "NetBSD"; }
+openbsd()   { issystem "OpenBSD"; }
+os2()       { issystem "OS/2"; }
+qnx()       { issystem "QNX"; }
+sunos()     { issystem "SunOS"; }
+win32()     { cygwin || mingw32; }
 
 # arch test boolean functions
 # x86/x86pc is used by QNX


More information about the MPlayer-cvslog mailing list