[FFmpeg-cvslog] r14194 - trunk/configure

mru subversion
Sat Jul 12 22:55:05 CEST 2008


Author: mru
Date: Sat Jul 12 22:55:04 2008
New Revision: 14194

Log:
configure: allow !foo as argument to enabled/disabled and *_deps lists

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	(original)
+++ trunk/configure	Sat Jul 12 22:55:04 2008
@@ -269,11 +269,13 @@ disable(){
 }
 
 enabled(){
-    eval test "x\$$1" = "xyes"
+    test "${1#!}" = "$1" && op== || op=!=
+    eval test "x\$${1#!}" $op "xyes"
 }
 
 disabled(){
-    eval test "x\$$1" = "xno"
+    test "${1#!}" = "$1" && op== || op=!=
+    eval test "x\$${1#!}" $op "xno"
 }
 
 enabled_all(){
@@ -317,6 +319,7 @@ is_in(){
 
 check_deps(){
     for cfg; do
+        cfg="${cfg#!}"
         enabled ${cfg}_checking && die "Circular dependency for $cfg."
         disabled ${cfg}_checking && continue
         enable ${cfg}_checking




More information about the ffmpeg-cvslog mailing list