You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.2 KiB

  1. --- a/configure.ac
  2. +++ b/configure.ac
  3. @@ -981,33 +981,13 @@ AC_ARG_WITH([mysql],
  4. AC_CHECK_LIB([mysqlclient], [mysql_init],
  5. [AC_CHECK_HEADERS([mysql/mysql.h],
  6. [MYSQL_LDFLAGS="-L$MYSQL_LIBDIR"
  7. - mysql=true],
  8. + mysql=true
  9. + mysql8=true],
  10. [mysql=false])],
  11. [mysql=false])])
  12. AC_SUBST(MYSQL_LDFLAGS)
  13. AC_SUBST(MYSQL_CPPFLAGS)
  14. -# additional version checks for mysql
  15. -AS_IF([test "x$mysql" = "xtrue"],
  16. - [AC_MSG_CHECKING([for mysql version])
  17. - AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
  18. - [[include <mysql/mysql_version.h>]],
  19. - [[#if (MYSQL_VERSION_ID < 40100)
  20. -#error required at least version 4.1
  21. -#endif]])],
  22. - [mysql=true],
  23. - [mysql=false])
  24. - AS_IF([test "x$mysql" = "xfalse"],
  25. - [AC_MSG_RESULT([< 4.1])
  26. - AC_MSG_RESULT([mysql version >= 4.1 required. Will not use MySQL])])
  27. - AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
  28. - [[#include <mysql/mysql_version.h>]],
  29. - [[#if (MYSQL_VERSION_ID < 80000)
  30. -#error needs at least version 8.0
  31. -#endif]])],
  32. - [mysql8=true],
  33. - [mysql8=false])])
  34. -
  35. AS_IF([test "x$mysql" = "xtrue"],
  36. [AS_IF([test "x$mysql8" = "xfalse"],
  37. [AC_MSG_RESULT([between 4.1 and 8.0])],