This commit is contained in:
Joe Watkins 2016-05-13 09:25:15 +01:00
parent 1bb8a7b0b8
commit 7132fe19c2

View File

@ -2691,7 +2691,7 @@ EOF
continue;
fi
for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS EXTRA_LDFLAGS_PROGRAM LIBS CC CXX; do
if test `expr $arg : ".*${var}.*"` != 0;
if test `expr "X$arg" : "X.*${var}.*"` != 0;
then
continue 2
fi
@ -2703,7 +2703,7 @@ EOF
continue;
fi
for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS EXTRA_LDFLAGS_PROGRAM LIBS CC CXX; do
if test `expr $arg : ".*${var}.*"` != 0;
if test `expr "X$arg" : "X.*${var}.*"` != 0;
then
continue 2
fi