[Ffmpeg-cvslog] r7917 - trunk/configure

mru subversion
Sun Feb 11 12:22:17 CET 2007


Author: mru
Date: Sun Feb 11 12:22:17 2007
New Revision: 7917

Modified:
   trunk/configure

Log:
rewrite some one-line if/then/fi using && and ||


Modified: trunk/configure
==============================================================================
--- trunk/configure	(original)
+++ trunk/configure	Sun Feb 11 12:22:17 2007
@@ -1273,9 +1273,7 @@
     fi
 fi
 
-if ! disabled optimize ; then
-    add_cflags "-fomit-frame-pointer"
-fi
+disabled optimize || add_cflags -fomit-frame-pointer
 
 # Can only do AltiVec on PowerPC
 if test $altivec = "default"; then
@@ -1620,13 +1618,9 @@
     ldl=-ldl
 fi
 
-if test "$vhook" = "default"; then
-    vhook="$dlopen"
-fi
+test "$vhook" = "default" && vhook="$dlopen"
 
-if enabled_any vhook liba52bin libfaadbin; then
-    add_extralibs $ldl
-fi
+enabled_any vhook liba52bin libfaadbin && add_extralibs $ldl
 
 if test "$targetos" = "CYGWIN" && enabled lstatic ; then
     vhook="no"
@@ -1641,9 +1635,7 @@
     check_ldflags -export-dynamic
 fi
 
-if enabled audio_beos; then
-    add_extralibs "-lmedia -lbe"
-fi
+enabled audio_beos && add_extralibs "-lmedia -lbe"
 
 ##########################################
 # imlib check




More information about the ffmpeg-cvslog mailing list