diff options
Diffstat (limited to 'm4')
| -rw-r--r-- | m4/ac_mysql.m4 | 96 |
1 files changed, 0 insertions, 96 deletions
diff --git a/m4/ac_mysql.m4 b/m4/ac_mysql.m4 deleted file mode 100644 index b5a5c0c..0000000 --- a/m4/ac_mysql.m4 +++ /dev/null | |||
| @@ -1,96 +0,0 @@ | |||
| 1 | dnl --------------------------------------------------------------------------- | ||
| 2 | dnl Macro: MYSQL_SRC_TEST | ||
| 3 | dnl --------------------------------------------------------------------------- | ||
| 4 | |||
| 5 | dir_resolve() dnl {{{ | ||
| 6 | { | ||
| 7 | pwd=`pwd` | ||
| 8 | cd "$1" 2>/dev/null || cd "${pwd}/${1}" 2>/dev/null | ||
| 9 | if test "$?" = "0" | ||
| 10 | then | ||
| 11 | echo `pwd -P` | ||
| 12 | else | ||
| 13 | echo "$1" | ||
| 14 | fi | ||
| 15 | } | ||
| 16 | dnl }}} | ||
| 17 | |||
| 18 | AC_DEFUN([MYSQL_SRC_TEST], [ | ||
| 19 | AC_MSG_CHECKING(for mysql source code) | ||
| 20 | AC_ARG_WITH(mysql, | ||
| 21 | [AS_HELP_STRING([--with-mysql=PATH], [MySQL src directory required to build.])], | ||
| 22 | [ | ||
| 23 | ac_mysql_source_dir=`readlink -e "$withval"` | ||
| 24 | HEADERS="include/my_dir.h include/mysql/plugin.h include/mysql.h include/mysql_version.h include/config.h include/my_config.h" | ||
| 25 | for file in $HEADERS | ||
| 26 | do | ||
| 27 | if ! test -r "$ac_mysql_source_dir/$file" | ||
| 28 | then | ||
| 29 | AC_MSG_ERROR([Failed to find required header file $ac_mysql_source_dir/$file, check the path and make sure you've run './configure ..<options>.. && cd include && make' in MySQL 5.1 sources dir or 'cmake . && make' in MySQL 5.5 sources dir.]) | ||
| 30 | fi | ||
| 31 | done | ||
| 32 | AC_DEFINE([MYSQL_SRC], [1], [Source directory for MySQL]) | ||
| 33 | MYSQL_INC="-I$ac_mysql_source_dir/sql -I$ac_mysql_source_dir/include -I$ac_mysql_source_dir/regex -I$ac_mysql_source_dir -I$ac_mysql_source_dir/libbinlogevents/export -I$ac_mysql_source_dir/libbinlogevents/include -I$ac_mysql_source_dir/sql/auth" | ||
| 34 | AC_MSG_RESULT(["$ac_mysql_source_dir"]) | ||
| 35 | ], | ||
| 36 | [ | ||
| 37 | AC_MSG_ERROR(["No mysql source provided. Please specify --with-mysql=<mysql source dir>!"]) | ||
| 38 | ] | ||
| 39 | ) | ||
| 40 | ]) | ||
| 41 | |||
| 42 | dnl --------------------------------------------------------------------------- | ||
| 43 | dnl Macro: MYSQL_PLUGIN_DIR_TEST | ||
| 44 | dnl --------------------------------------------------------------------------- | ||
| 45 | |||
| 46 | AC_DEFUN([MYSQL_PLUGIN_DIR_TEST], [ | ||
| 47 | AC_MSG_CHECKING([for mysql plugin dir]) | ||
| 48 | ac_mysql_plugin_dir= | ||
| 49 | AC_ARG_WITH([mysql-plugindir], | ||
| 50 | [AS_HELP_STRING([--with-mysql-plugindir=PATH], [MySQL plugin directory where plugin is to be copied to])], | ||
| 51 | [ | ||
| 52 | ac_mysql_plugin_dir=`readlink -m "$withval"` | ||
| 53 | MYSQL_PLUGIN_DIR="$ac_mysql_plugin_dir" | ||
| 54 | ], | ||
| 55 | [ | ||
| 56 | ac_mysql_plugin_dir="/usr/lib/mysql/plugin" | ||
| 57 | MYSQL_PLUGIN_DIR="$ac_mysql_plugin_dir" | ||
| 58 | AC_MSG_RESULT([--with-mysql-plugindir was not set. Using $ac_mysql_plugin_dir]) | ||
| 59 | ] | ||
| 60 | ) | ||
| 61 | ]) | ||
| 62 | |||
| 63 | dnl --------------------------------------------------------------------------- | ||
| 64 | dnl Macro: MYSQL_LIB_SERVICES : 5.5 services lib to add to linker | ||
| 65 | dnl --------------------------------------------------------------------------- | ||
| 66 | |||
| 67 | dnl AC_DEFUN([MYSQL_LIB_SERVICES_TEST], [ | ||
| 68 | dnl AC_MSG_CHECKING([for mysql libmysqlservices]) | ||
| 69 | dnl ac_mysql_libservices= | ||
| 70 | dnl AC_ARG_WITH([mysql-libservices], | ||
| 71 | dnl [AS_HELP_STRING([--with-mysql-libservices=PATH], [MySQL libmysqlservices.a location (relevant for 5.5 only)])], | ||
| 72 | dnl [ | ||
| 73 | dnl ac_mysql_libservices=`readlink -e "$withval"` | ||
| 74 | dnl if test -f "$ac_mysql_libservices" | ||
| 75 | dnl then | ||
| 76 | dnl MYSQL_LIBSERVICES="$ac_mysql_libservices" | ||
| 77 | dnl AC_MSG_RESULT([yes: Using $ac_mysql_libservices]) | ||
| 78 | dnl else | ||
| 79 | dnl AC_MSG_ERROR([invalid MySQL libmysqlservices : $ac_mysql_libservices]) | ||
| 80 | dnl fi | ||
| 81 | dnl ], | ||
| 82 | dnl [ | ||
| 83 | dnl if test -f "$ac_mysql_source_dir/VERSION" | ||
| 84 | dnl then | ||
| 85 | dnl source "$ac_mysql_source_dir/VERSION" | ||
| 86 | dnl if test "$MYSQL_VERSION_MAJOR.$MYSQL_VERSION_MINOR" = "5.5" | ||
| 87 | dnl then | ||
| 88 | dnl AC_MSG_ERROR([no mysql-libservices. Required for MySQL 5.5]) | ||
| 89 | dnl fi | ||
| 90 | dnl fi | ||
| 91 | dnl ac_mysql_libservices="" | ||
| 92 | dnl MYSQL_LIBSERVICES="$ac_mysql_libservices" | ||
| 93 | dnl AC_MSG_RESULT([--with-mysql-libservices was not set.]) | ||
| 94 | dnl ] | ||
| 95 | dnl ) | ||
| 96 | dnl ]) | ||
