diff --git a/bin/dunecontrol b/bin/dunecontrol index 448a6976f443c150723f974a3eed6561689eda6b..203d048d595ef1684ac53843f3c8297fd0b750b1 100755 --- a/bin/dunecontrol +++ b/bin/dunecontrol @@ -573,7 +573,7 @@ run_default_configure () { # such that they are honored by cmake. flags="CXX CC CXXFLAGS CFLAGS CPPFLAGS LDFLAGS F77 FFLAGS FLIBS FC FCFLAGS FCLIBS LIBS" for i in $flags; do - cflags=`echo $PARAMS | sed "s/.*\($i=\"[^\"]*\"\|$i=[^\s^ ]*\).*/\1/"` + cflags=`echo $PARAMS | sed "s/.*\($i=\"[^\"]*\"\|$i='[^']*'\|$i=[^\s^ ]*\).*/\1/"` if test "$cflags" != "$PARAMS"; then PREPARAMS="$PREPARAMS $cflags" fi