changeset 18748:b342fd9f332e

Conditionally run some CPU-architecture and OS-specific tests.
author diego
date Sun, 18 Jun 2006 11:21:23 +0000
parents 5f68ff22c226
children 64dbf6621c21
files configure
diffstat 1 files changed, 40 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sun Jun 18 11:15:20 2006 +0000
+++ b/configure	Sun Jun 18 11:21:23 2006 +0000
@@ -3118,6 +3118,7 @@
 echores "$_dvd"
 
 
+if bsdos; then
 echocheck "BSDI dvd.h"
 cat > $TMPC << EOF
 #include <dvd.h>
@@ -3131,8 +3132,10 @@
   _def_bsdi_dvd='#undef DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H'
 fi
 echores "$_bsdi_dvd"
-
-
+fi #if bsdos
+
+
+if hpux; then
 # also used by AIX, but AIX does not support VCD and/or libdvdread
 echocheck "HP-UX SCSI header"
 cat > $TMPC << EOF
@@ -3147,8 +3150,10 @@
   _def_hpux_scsi_h='#undef HPUX_SCTL_IO'
 fi
 echores "$_hpux_scsi_h"
-
-
+fi #if hpux
+
+
+if sunos; then
 echocheck "userspace SCSI headers (Solaris)"
 cat > $TMPC << EOF
 #   include <unistd.h>
@@ -3165,6 +3170,7 @@
   _def_sol_scsi_h='#undef SOLARIS_USCSI'
 fi
 echores "$_sol_scsi_h"
+fi #if sunos
 
 
 echocheck "termcap"
@@ -3466,8 +3472,10 @@
 echores "$_sys_sysinfo"
 
 
+if darwin; then
+
 echocheck "Mac OS X APIs"
-if test "$_macosx" = auto && darwin ; then
+if test "$_macosx" = auto ; then
     productName=`/usr/bin/sw_vers -productName`
     if test "$productName" = "Mac OS X" ; then
         _macosx=yes
@@ -3547,6 +3555,9 @@
 fi 
 echores "$_macosx_bundle"
 
+fi #if darwin
+
+
 echocheck "Samba support (libsmbclient)"
 if test "$_smbsupport" = yes; then
 	_ld_smb="-lsmbclient"
@@ -4570,6 +4581,9 @@
 fi
 echores "$_sdl"
 
+
+if win32; then
+
 echocheck "Windows waveout"
 if test "$_win32waveout" = auto ; then
   cat > $TMPC << EOF
@@ -4616,6 +4630,9 @@
 fi
 echores "$_directx"
 
+fi #if win32; then
+
+
 echocheck "NAS"
 if test "$_nas" = auto ; then
   cat > $TMPC << EOF
@@ -5041,6 +5058,7 @@
 echores "$_sunaudio"
 
 
+if sunos; then
 echocheck "Sun mediaLib"
 if test "$_mlib" = auto ; then
   _mlib=no
@@ -5059,8 +5077,10 @@
   _def_mlib='#undef HAVE_MLIB'
 fi
 echores "$_mlib"
-
-
+fi #if sunos
+
+
+if irix; then
 echocheck "SGI audio"
 if test "$_sgiaudio" = auto ; then
   # check for SGI audio
@@ -5081,6 +5101,7 @@
   _noaomodules="sgi $_noaomodules"
 fi
 echores "$_sgiaudio"
+fi #if irix
 
 
 echocheck "VCD support"
@@ -5873,13 +5894,8 @@
 echores "$_ladspa"
 
 
-if test "$_win32" = auto ; then
-  if x86 ; then
-    qnx && _win32=no
-  else
-    _win32=no # x86 arch only
-  fi
-fi
+
+if x86 && not qnx; then
 
 if test "$_win32" != no ; then
     if test -z "$_win32libdir" ; then
@@ -5979,6 +5995,9 @@
   _nocodecmodules="dshow/dmo $_nocodecmodules"
 fi
 
+fi #if x86 && not qnx
+
+
 
 echocheck "XAnim DLL"
 if test "$_xanim" = auto ; then
@@ -6715,6 +6734,8 @@
 fi
 echores "$_tv"
 
+
+if bsd; then
 echocheck "*BSD BrookTree 848 TV interface"
 if test "$_tv_bsdbt848" = auto ; then
  _tv_bsdbt848=no
@@ -6739,6 +6760,8 @@
   _noinputmodules="tv-bsdbt848 $_noinputmodules"
 fi
 echores "$_tv_bsdbt848"
+fi #if bsd
+
 
 echocheck "Video 4 Linux TV interface"
 if test "$_tv_v4l" = auto ; then
@@ -6874,6 +6897,8 @@
 fi
 echores "$_menu"
 
+
+if x86; then
 # Check to see if they want QTX codecs enabled
 echocheck "QTX codecs"
 if test "$_qtx" = auto ; then
@@ -6887,6 +6912,7 @@
     _nocodecmodules="qtx $_nocodecmodules"
 fi
 echores "$_qtx"
+fi #if x86
 
 
 echocheck "Subtitles sorting"