Comment 9 for bug 1291249

@Rene,

  --with-mysqli=FILE Include MySQLi support. FILE is the path
                          to mysql_config. If no value or mysqlnd is passed
                          as FILE, the MySQL native driver will be used

so --with-mysqli=/usr/bin/mysql_config should do.

(for other two options you need to pass mysql base directory).