changeset 23564:8b7d62452ebd

Add an optional third parameter to ff_config_enable in preparation of next patches (allows to define e.g. ARCH_ instead of CONFIG_).
author reimar
date Tue, 19 Jun 2007 13:54:48 +0000
parents 0348714047be
children 916056111725
files configure
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Jun 19 13:37:31 2007 +0000
+++ b/configure	Tue Jun 19 13:54:48 2007 +0000
@@ -7704,9 +7704,11 @@
 #############################################################################
 
 ff_config_enable () {
+_nprefix=$3;
+test -z "$_nprefix" && _nprefix='CONFIG'
 for part in $1; do
   if ` echo $2 | grep $part > /dev/null `; then
-    echo "#define CONFIG_$part 1"
+    echo "#define ${_nprefix}_$part 1"
     echo "#define ENABLE_$part 1"
   else
     echo "#define ENABLE_$part 0"