patch-1.3.38 linux/scripts/Configure

Next file: linux/scripts/depend.awk
Previous file: linux/net/unix/af_unix.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.37/linux/scripts/Configure linux/scripts/Configure
@@ -200,7 +200,7 @@
 #	choice question choice-list default
 #
 # The choice list has a syntax of:
-#	NAME:VALUE { WHITESPACE '|' NAME:VALUE }
+#	NAME WHITESPACE VALUE { WHITESPACE NAME WHITESPACE VALUE }
 # The user may enter any unique prefix of one of the NAMEs and
 # choice will define VALUE as if it were a boolean option.
 # VALUE must be in all uppercase.  Normally, VALUE is of the
@@ -254,8 +254,16 @@
 			shift; shift
 		done
 	done
-	echo "  defining $val"
-	define_bool "$val" "y"
+	set -- $choices
+	while [ -n "$2" ]; do
+		if [ "$2" = "$val" ]; then
+			echo "  defined $val"
+			define_bool "$2" "y"
+		else
+			define_bool "$2" "n"
+		fi
+		shift; shift
+	done
 }
 
 CONFIG=.tmpconfig

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this