apr-util/apr-util-mariadb-10.2.patch
Kristyna Streitova dea461bcff Accepting request 544451 from home:dimstar:Factory
- Add apr-util-mariadb-10.2.patch: Fix detection / build with
  MariaDB 10.2.

Please note that I did not to testing beyond building!

OBS-URL: https://build.opensuse.org/request/show/544451
OBS-URL: https://build.opensuse.org/package/show/Apache/apr-util?expand=0&rev=9
2017-11-23 11:18:19 +00:00

25 lines
1.1 KiB
Diff

Index: apr-util-1.6.1/build/dbd.m4
===================================================================
--- apr-util-1.6.1.orig/build/dbd.m4
+++ apr-util-1.6.1/build/dbd.m4
@@ -176,15 +176,13 @@ AC_DEFUN([APU_CHECK_DBD_MYSQL], [
APR_ADDTO(LIBS, [$mysql_LIBS])
fi
- AC_CHECK_HEADERS([mysql.h my_global.h my_sys.h],
+ AC_CHECK_HEADERS([mysql.h],
AC_CHECK_LIB(mysqlclient, mysql_init, [apu_have_mysql=1]),
- [apu_have_mysql=0; break],
- [#include <my_global.h>])
+ [apu_have_mysql=0; break])
if test "$apu_have_mysql" = "0"; then
- AC_CHECK_HEADERS([mysql/mysql.h mysql/my_global.h mysql/my_sys.h],
+ AC_CHECK_HEADERS([mysql/mysql.h],
AC_CHECK_LIB(mysqlclient, mysql_init, [apu_have_mysql=1]),
- [apu_have_mysql=0; break],
- [#include <mysql/my_global.h>])
+ [apu_have_mysql=0; break])
fi
if test "$apu_have_mysql" != "0" && test "x$MYSQL_CONFIG" != 'x'; then
APR_ADDTO(APRUTIL_PRIV_INCLUDES, [$mysql_CPPFLAGS])