summaryrefslogtreecommitdiff
path: root/mcon/U/Options.U
diff options
context:
space:
mode:
Diffstat (limited to 'mcon/U/Options.U')
-rw-r--r--mcon/U/Options.U15
1 files changed, 13 insertions, 2 deletions
diff --git a/mcon/U/Options.U b/mcon/U/Options.U
index c9b5632..6dbf001 100644
--- a/mcon/U/Options.U
+++ b/mcon/U/Options.U
@@ -1,4 +1,4 @@
-?RCS: $Id: Options.U 167 2013-05-08 17:58:00Z rmanfredi $
+?RCS: $Id: Options.U 191 2015-04-19 10:04:17Z rmanfredi $
?RCS:
?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
?RCS:
@@ -354,8 +354,19 @@ case "$silent" in
true) exec 1>/dev/null;;
esac
-: run the defines and the undefines, if any, but leave the file out there...
+?X: Patch from H.Merijn Brand -- 2015-04-19
+?X: The reasoning behind this change is that optdef.sh gets sourced and the
+?X: arguments, like prefix, are passed around in different quotation styles
+?X: and subshells all around, and the (unescaped) backslash will not be
+?X: pertained in the final config.sh
+?X: Note that -q is POSIX but to be sure, we also silence all output --RAM
touch optdef.sh
+if grep -q '\\' optdef.sh >/dev/null 2>&1; then
+ echo "Configure does not support \\ in -D or -U arguments" >&2
+ exit 1
+fi
+
+: run the defines and the undefines, if any, but leave the file out there...
. ./optdef.sh
: create the posthint manipulation script and leave the file out there...
?X: this file will be perused by Oldconfig.U