X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/0213d65176bad71e1d33b257b5a6933525fef8a2..3c0be4341168b7dfdfba9430db0b74bc71d911c3:/build-aux/cross-options.pl diff --git a/build-aux/cross-options.pl b/build-aux/cross-options.pl index 2cec3696..58772775 100755 --- a/build-aux/cross-options.pl +++ b/build-aux/cross-options.pl @@ -28,9 +28,12 @@ while (<>) # put each word in @var, to build @var{name}[=@var{value}], not # @var{name[=value]}]. $arg =~ s/(\w+)/\@var{$1}/g; - $arg = '[' . $arg . ']' - if $opt eq '['; - $option{"$long=$arg"} = $short ? "$short $arg" : ''; + my $long_arg = "=$arg"; + if ($opt eq '[') { + $long_arg = "[$long_arg]"; + $arg = "[$arg]"; + } + $option{"$long$long_arg"} = $short ? "$short $arg" : ''; } else {