--- configure.ac.orig 2017-06-09 09:52:26.387783657 +0200 +++ configure.ac 2017-06-09 09:54:53.361116113 +0200 @@ -335,13 +335,7 @@ if test "x$ac_cv_prog_ac_ct_MARIADB" = "xmariadb_config"; then MYSQLTOOL="mariadb_config" else - PATH=$PATH:/usr/local/mysql/bin - AC_CHECK_TOOL(MYSQL, mysql_config) - if test "x$ac_cv_prog_ac_ct_MYSQL" = "xmysql_config"; then - MYSQLTOOL="mysql_config" - else - MYSQLTOOL="" - fi + MYSQLTOOL="mysql_config" fi if test -n "$MYSQLTOOL"; then