libnfc: moved to github
[openwrt.org/packages.git] / net / 160-mysql_cross_compiling_checks.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
--- a/configure.in
+++ b/configure.in
@@ -1128,63 +1128,6 @@ if test "x$with_mysql" != "xno"; then
     fi
   fi
 
-  AC_MSG_CHECKING([for mysql default client reconnect])
-
-  AC_RUN_IFELSE(
-  [AC_LANG_PROGRAM(
-  [[
-  #include <mysql.h>
-  ]],
-  [[
-      if (mysql_get_client_version() < 50003)
-          return 1;
-  ]])],
-  [mysql_default_reconnect="no"],
-  [mysql_default_reconnect="yes"])
-
-  AC_MSG_RESULT($mysql_default_reconnect)
-
-  if test "x$mysql_default_reconnect" = "xno"; then
-      AC_MSG_CHECKING([for mysql reconnect option])
-
-      AC_RUN_IFELSE(
-      [AC_LANG_PROGRAM(
-      [[
-      #include <mysql.h>
-      ]],
-      [[
-          if (mysql_get_client_version() < 50013)
-              return 1;
-      ]])],
-      [mysql_has_reconnect="yes"],
-      [mysql_has_reconnect="no"])
-
-      AC_MSG_RESULT($mysql_has_reconnect)
-
-      if test "x$mysql_has_reconnect" = "xyes"; then
-          AC_DEFINE([MYSQL_HAS_OPT_RECONNECT],[1],[For MySQL versions 5.0.13 and greater])
-
-          AC_MSG_CHECKING([for mysql setting of reconnect option before connect bug])
-
-          AC_RUN_IFELSE(
-          [AC_LANG_PROGRAM(
-          [[
-          #include <mysql.h>
-          ]],
-          [[
-              if (mysql_get_client_version() < 50019)
-                  return 1;
-          ]])],
-          [mysql_has_reconnect_bug="no"],
-          [mysql_has_reconnect_bug="yes"])
-
-          AC_MSG_RESULT($mysql_has_reconnect_bug)
-
-          if test "x$mysql_has_reconnect_bug" = "xyes"; then
-              AC_DEFINE([MYSQL_HAS_OPT_RECONNECT_BUG],[1],[For MySQL versions 5.0.13 to 5.0.18])
-          fi
-      fi
-  fi
 fi
 
 AC_ARG_WITH(odbc,
 
comments