Fix splitting of compiler flags in configure.

Autoconf removes a set of [] during script translation, resulting in a wrong sed command.
This commit is contained in:
sledgehammer999 2018-01-02 17:33:07 +02:00
commit 25ab660c14
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2
2 changed files with 15 additions and 3 deletions

View file

@ -190,7 +190,7 @@ extract() {
new_line='
'
# Convert " -" to "\n" if not between quotes and remove possible leading white spaces
string=$(echo " $*" | $SED -e "s: -:\\${new_line}:g" -e 's:"\(.*\)\n\(.*\)":\"\1 -\2":g' -e "s:'\(.*\)\n\(.*\)':\'\1 -\2':g" -e 's/^[[:space:]]*//')
string=$(echo " $*" | $SED -e "s: -:\\${new_line}:g" -e 's:"\(.*\)\n\(.*\)":\"\1 -\2":g' -e "s:'\(.*\)\n\(.*\)':\'\1 -\2':g" -e 's/^[[[:space:]]]*//')
SAVEIFS=$IFS
IFS=$(printf "\n\b")
for i in $string; do