diff --git a/configure.in b/configure.in index acd82fa7..77fe7c96 100644 --- a/configure.in +++ b/configure.in @@ -198,7 +198,7 @@ AC_MSG_CHECKING([for MySQL using mysql_config]) MYSQL_INC=`mysql_config --include 2>/dev/null` MYSQL_LIB=`mysql_config --libs_r 2>/dev/null` MYSQL_VER=`mysql_config --version 2>/dev/null` -if [[ x`echo "$MYSQL_INC $MYSQL_LIB $MYSQL_VER" | wc -l` != "x1" ]]; then +if [[ x`echo "$MYSQL_INC $MYSQL_LIB $MYSQL_VER" | wc -l | sed 's/^ *//g'` != "x1" ]]; then MYSQL_INC="" fi if [[ "x$MYSQL_INC" != "x" -a "x$MYSQL_LIB" != "x" -a "x$MYSQL_VER" != "x" ]]; then