Fixes a warning caused on some versions of MySQL.
git-svn-id: http://voip.null.ro/svn/yate@5829 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
a521d5429b
commit
53262ef06c
|
@ -620,7 +620,7 @@ MYSQL_VER=`(mysql_config --version) 2>/dev/null`
|
|||
if [[ x`echo "$MYSQL_INC $MYSQL_LIB $MYSQL_VER" | wc -l | sed 's/^ *//g'` != "x1" ]]; then
|
||||
MYSQL_INC=""
|
||||
fi
|
||||
if [[ ! -f `echo "$MYSQL_INC" | sed 's,^-I\(.*\)$,\1/mysql.h,'` ]]; then
|
||||
if [[ ! -f `echo "$MYSQL_INC" | sed -n 's,^-I\([^ ]\+\)\( .*\)\?$,\1/mysql.h,p'` ]]; then
|
||||
MYSQL_INC=""
|
||||
fi
|
||||
if [[ "x$MYSQL_INC" != "x" -a "x$MYSQL_LIB" != "x" -a "x$MYSQL_VER" != "x" ]]; then
|
||||
|
|
Loading…
Reference in New Issue