Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
281fb1cf
Commit
281fb1cf
authored
Apr 29, 2006
by
serg@sergbook.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make distcheck and cosmetic fixes
parent
e2ac9dda
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
334 additions
and
342 deletions
+334
-342
config/ac-macros/ha_berkeley.m4
config/ac-macros/ha_berkeley.m4
+6
-9
config/ac-macros/ha_ndbcluster.m4
config/ac-macros/ha_ndbcluster.m4
+1
-1
config/ac-macros/misc.m4
config/ac-macros/misc.m4
+4
-4
config/ac-macros/plugins.m4
config/ac-macros/plugins.m4
+296
-287
configure.in
configure.in
+13
-24
plugin/Makefile.am
plugin/Makefile.am
+1
-3
sql/Makefile.am
sql/Makefile.am
+2
-2
storage/archive/Makefile.am
storage/archive/Makefile.am
+4
-4
storage/blackhole/Makefile.am
storage/blackhole/Makefile.am
+1
-1
storage/example/Makefile.am
storage/example/Makefile.am
+1
-1
storage/innobase/Makefile.am
storage/innobase/Makefile.am
+5
-6
No files found.
config/ac-macros/ha_berkeley.m4
View file @
281fb1cf
...
@@ -8,23 +8,20 @@ dnl ---------------------------------------------------------------------------
...
@@ -8,23 +8,20 @@ dnl ---------------------------------------------------------------------------
AC_DEFUN([MYSQL_SETUP_BERKELEY_DB], [
AC_DEFUN([MYSQL_SETUP_BERKELEY_DB], [
AC_ARG_WITH([berkeley-db],
AC_ARG_WITH([berkeley-db],
[
AS_HELP_STRING([--with-berkeley-db[[[[[=DIR]]]]]],
--with-berkeley-db[=DIR]
[Use BerkeleyDB located in DIR]),
Use BerkeleyDB located in DIR],
[bdb="$withval"],
[bdb="$withval"],
[bdb=yes])
[bdb=yes])
AC_ARG_WITH([berkeley-db-includes],
AC_ARG_WITH([berkeley-db-includes],
[
AS_HELP_STRING([--with-berkeley-db-includes=DIR],
--with-berkeley-db-includes=DIR
[Find Berkeley DB headers in DIR]),
Find Berkeley DB headers in DIR],
[bdb_includes="$withval"],
[bdb_includes="$withval"],
[bdb_includes=default])
[bdb_includes=default])
AC_ARG_WITH([berkeley-db-libs],
AC_ARG_WITH([berkeley-db-libs],
[
AS_HELP_STRING([--with-berkeley-db-libs=DIR],
--with-berkeley-db-libs=DIR
[Find Berkeley DB libraries in DIR]),
Find Berkeley DB libraries in DIR],
[bdb_libs="$withval"],
[bdb_libs="$withval"],
[bdb_libs=default])
[bdb_libs=default])
...
...
config/ac-macros/ha_ndbcluster.m4
View file @
281fb1cf
...
@@ -308,7 +308,7 @@ AC_DEFUN([MYSQL_SETUP_NDBCLUSTER], [
...
@@ -308,7 +308,7 @@ AC_DEFUN([MYSQL_SETUP_NDBCLUSTER], [
AC_SUBST(NDB_DEFS)
AC_SUBST(NDB_DEFS)
AC_SUBST(ndb_cxxflags_fix)
AC_SUBST(ndb_cxxflags_fix)
AC_CONFIG_FILES(storage/ndb/
Makefile storage/ndb/
include/Makefile dnl
AC_CONFIG_FILES(storage/ndb/include/Makefile dnl
storage/ndb/src/Makefile storage/ndb/src/common/Makefile dnl
storage/ndb/src/Makefile storage/ndb/src/common/Makefile dnl
storage/ndb/docs/Makefile dnl
storage/ndb/docs/Makefile dnl
storage/ndb/tools/Makefile dnl
storage/ndb/tools/Makefile dnl
...
...
config/ac-macros/misc.m4
View file @
281fb1cf
...
@@ -675,8 +675,8 @@ dnl Sets BIG_TABLES if --with-big-tables is used
...
@@ -675,8 +675,8 @@ dnl Sets BIG_TABLES if --with-big-tables is used
dnl ---------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------
AC_DEFUN([MYSQL_CHECK_BIG_TABLES], [
AC_DEFUN([MYSQL_CHECK_BIG_TABLES], [
AC_ARG_WITH([big-tables],
AC_ARG_WITH([big-tables],
[
AS_HELP_STRING([--with-big-tables],
--with-big-tables Support tables with more than 4 G rows even on 32 bit platforms]
,
[Support tables with more than 4 G rows even on 32 bit platforms])
,
[bigtables="$withval"],
[bigtables="$withval"],
[bigtables=no])
[bigtables=no])
AC_MSG_CHECKING([for big tables support])
AC_MSG_CHECKING([for big tables support])
...
@@ -703,8 +703,8 @@ dnl Sets MAX_INDEXES
...
@@ -703,8 +703,8 @@ dnl Sets MAX_INDEXES
dnl ---------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------
AC_DEFUN([MYSQL_CHECK_MAX_INDEXES], [
AC_DEFUN([MYSQL_CHECK_MAX_INDEXES], [
AC_ARG_WITH([max-indexes],
AC_ARG_WITH([max-indexes],
[
AS_HELP_STRING([--with-max-indexes=N],
--with-max-indexes=\# Sets the maximum number of indexes per table, default 64]
,
[Sets the maximum number of indexes per table, default 64])
,
[max_indexes="$withval"],
[max_indexes="$withval"],
[max_indexes=64])
[max_indexes=64])
AC_MSG_CHECKING([max indexes per table])
AC_MSG_CHECKING([max indexes per table])
...
...
config/ac-macros/plugins.m4
View file @
281fb1cf
...
@@ -20,28 +20,28 @@ dnl Adds module as member to configuration groups (if specified)
...
@@ -20,28 +20,28 @@ dnl Adds module as member to configuration groups (if specified)
dnl
dnl
dnl ---------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------
AC_DEFUN([MYSQL_MODULE],[
dnl
AC_DEFUN([MYSQL_MODULE],[
_MYSQL_MODULE(
_MYSQL_MODULE(
[$1],
[$1],
[__MYSQL_MODULE_]AS_TR_CPP([$1])[__],
[__MYSQL_MODULE_]AS_TR_CPP([$1])[__],
m4_default([$2], [$1 plugin]),
m4_default([$2], [$1 plugin]),
m4_default([$3], [plugin for $1]),
m4_default([$3], [plugin for $1]),
m4_default([$4], []),
m4_default([$4], []),
)
dnl
)
])
])
AC_DEFUN([_MYSQL_MODULE],[
dnl
AC_DEFUN([_MYSQL_MODULE],[
m4_ifdef([$2], [
dnl
m4_ifdef([$2], [
AC_FATAL([[Duplicate MYSQL_MODULE declaration for ]][$3])
dnl
AC_FATAL([[Duplicate MYSQL_MODULE declaration for ]][$3])
],[ dnl
],[ dnl
m4_define([$2], [$1])
dnl
m4_define([$2], [$1])
_MYSQL_PLUGAPPEND([__mysql_plugin_list__],[$1])
dnl
_MYSQL_PLUGAPPEND([__mysql_plugin_list__],[$1])
m4_define([MYSQL_MODULE_NAME_]AS_TR_CPP([$1]), [$3])
dnl
m4_define([MYSQL_MODULE_NAME_]AS_TR_CPP([$1]), [$3])
m4_define([MYSQL_MODULE_DESC_]AS_TR_CPP([$1]), [$4])
dnl
m4_define([MYSQL_MODULE_DESC_]AS_TR_CPP([$1]), [$4])
ifelse([$5], [], [], [
dnl
ifelse([$5], [], [], [
_MYSQL_PLUGAPPEND_OPTS([$1], $5)
dnl
_MYSQL_PLUGAPPEND_OPTS([$1], $5)
])
dnl
])
])
dnl
])
])
])
...
@@ -53,18 +53,18 @@ dnl Short cut for storage engine declarations
...
@@ -53,18 +53,18 @@ dnl Short cut for storage engine declarations
dnl
dnl
dnl ---------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------
AC_DEFUN([MYSQL_STORAGE_ENGINE],[
dnl
AC_DEFUN([MYSQL_STORAGE_ENGINE],[
MYSQL_MODULE([$1], [$3], [$4], [[$5]])
dnl
MYSQL_MODULE([$1], [$3], [$4], [[$5]])
MYSQL_MODULE_DEFINE([$1], [WITH_]AS_TR_CPP([$1])[_STORAGE_ENGINE])
dnl
MYSQL_MODULE_DEFINE([$1], [WITH_]AS_TR_CPP([$1])[_STORAGE_ENGINE])
ifelse([$2],[no],[],[
dnl
ifelse([$2],[no],[],[
_MYSQL_LEGACY_STORAGE_ENGINE([$1],m4_default([$2], [$1-storage-engine]))
dnl
_MYSQL_LEGACY_STORAGE_ENGINE([$1],m4_default([$2], [$1-storage-engine]))
])
dnl
])
])
])
AC_DEFUN([_MYSQL_LEGACY_STORAGE_ENGINE],[
AC_DEFUN([_MYSQL_LEGACY_STORAGE_ENGINE],[
if test "[${with_]m4_bpatsubst($2, -, _)[+set}]" = set; then
if test "[${with_]m4_bpatsubst($2, -, _)[+set}]" = set; then
[with_module_]m4_bpatsubst($1, -, _)="[$with_]m4_bpatsubst($2, -, _)"
[with_module_]m4_bpatsubst($1, -, _)="[$with_]m4_bpatsubst($2, -, _)"
fi
dnl
fi
])
])
...
@@ -76,9 +76,9 @@ dnl When a plugin module is to be statically linked, define the C macro
...
@@ -76,9 +76,9 @@ dnl When a plugin module is to be statically linked, define the C macro
dnl
dnl
dnl ---------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------
AC_DEFUN([MYSQL_MODULE_DEFINE],[
dnl
AC_DEFUN([MYSQL_MODULE_DEFINE],[
REQUIRE_PLUGIN([$1])
dnl
REQUIRE_PLUGIN([$1])
m4_define([MYSQL_MODULE_DEFINE_]AS_TR_CPP([$1]), [$2])
dnl
m4_define([MYSQL_MODULE_DEFINE_]AS_TR_CPP([$1]), [$2])
])
])
...
@@ -90,9 +90,9 @@ dnl Adds a directory to the build process
...
@@ -90,9 +90,9 @@ dnl Adds a directory to the build process
dnl
dnl
dnl ---------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------
AC_DEFUN([MYSQL_MODULE_DIRECTORY],[
dnl
AC_DEFUN([MYSQL_MODULE_DIRECTORY],[
REQUIRE_PLUGIN([$1])
dnl
REQUIRE_PLUGIN([$1])
m4_define([MYSQL_MODULE_DIRECTORY_]AS_TR_CPP([$1]), [$2])
dnl
m4_define([MYSQL_MODULE_DIRECTORY_]AS_TR_CPP([$1]), [$2])
])
])
...
@@ -104,9 +104,9 @@ dnl Declare the name for the static library
...
@@ -104,9 +104,9 @@ dnl Declare the name for the static library
dnl
dnl
dnl ---------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------
AC_DEFUN([MYSQL_MODULE_STATIC],[
dnl
AC_DEFUN([MYSQL_MODULE_STATIC],[
REQUIRE_PLUGIN([$1])
dnl
REQUIRE_PLUGIN([$1])
m4_define([MYSQL_MODULE_STATIC_]AS_TR_CPP([$1]), [$2])
dnl
m4_define([MYSQL_MODULE_STATIC_]AS_TR_CPP([$1]), [$2])
])
])
...
@@ -118,9 +118,9 @@ dnl Declare the name for the shared library
...
@@ -118,9 +118,9 @@ dnl Declare the name for the shared library
dnl
dnl
dnl ---------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------
AC_DEFUN([MYSQL_MODULE_DYNAMIC],[
dnl
AC_DEFUN([MYSQL_MODULE_DYNAMIC],[
REQUIRE_PLUGIN([$1])
dnl
REQUIRE_PLUGIN([$1])
m4_define([MYSQL_MODULE_DYNAMIC_]AS_TR_CPP([$1]), [$2])
dnl
m4_define([MYSQL_MODULE_DYNAMIC_]AS_TR_CPP([$1]), [$2])
])
])
...
@@ -132,20 +132,20 @@ dnl Marks the specified plugin as a mandatory module
...
@@ -132,20 +132,20 @@ dnl Marks the specified plugin as a mandatory module
dnl
dnl
dnl ---------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------
AC_DEFUN([MYSQL_MODULE_MANDATORY],[
dnl
AC_DEFUN([MYSQL_MODULE_MANDATORY],[
REQUIRE_PLUGIN([$1])
dnl
REQUIRE_PLUGIN([$1])
_MYSQL_MODULE_MANDATORY([$1],
_MYSQL_MODULE_MANDATORY([$1],
[MYSQL_MODULE_MANDATORY_]AS_TR_CPP([$1]),
[MYSQL_MODULE_MANDATORY_]AS_TR_CPP([$1]),
[MYSQL_MODULE_DISABLED_]AS_TR_CPP([$1])
[MYSQL_MODULE_DISABLED_]AS_TR_CPP([$1])
)
dnl
)
])
])
AC_DEFUN([_MYSQL_MODULE_MANDATORY],[
dnl
AC_DEFUN([_MYSQL_MODULE_MANDATORY],[
m4_define([$2], [yes])
dnl
m4_define([$2], [yes])
m4_ifdef([$3], [
dnl
m4_ifdef([$3], [
AC_WARNING([syntax],[Mandatory plugin $1 has been disabled])
dnl
AC_WARNING([syntax],[Mandatory plugin $1 has been disabled])
m4_undefine([$2])
dnl
m4_undefine([$2])
])
dnl
])
])
])
...
@@ -157,20 +157,20 @@ dnl Marks the specified plugin as a disabled module
...
@@ -157,20 +157,20 @@ dnl Marks the specified plugin as a disabled module
dnl
dnl
dnl ---------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------
AC_DEFUN([MYSQL_MODULE_DISABLED],[
dnl
AC_DEFUN([MYSQL_MODULE_DISABLED],[
REQUIRE_PLUGIN([$1])
dnl
REQUIRE_PLUGIN([$1])
_MYSQL_MODULE_DISABLED([$1],
_MYSQL_MODULE_DISABLED([$1],
[MYSQL_MODULE_DISABLED_]AS_TR_CPP([$1]),
[MYSQL_MODULE_DISABLED_]AS_TR_CPP([$1]),
[MYSQL_MODULE_MANDATORY_]AS_TR_CPP([$1])
[MYSQL_MODULE_MANDATORY_]AS_TR_CPP([$1])
)
dnl
)
])
])
AC_DEFUN([_MYSQL_MODULE_DISABLED],[
dnl
AC_DEFUN([_MYSQL_MODULE_DISABLED],[
m4_define([$2], [yes])
dnl
m4_define([$2], [yes])
m4_ifdef([$3], [
dnl
m4_ifdef([$3], [
AC_FATAL([attempt to disable mandatory plugin $1])
dnl
AC_FATAL([attempt to disable mandatory plugin $1])
m4_undefine([$2])
dnl
m4_undefine([$2])
])
dnl
])
])
])
...
@@ -185,21 +185,21 @@ dnl here too!
...
@@ -185,21 +185,21 @@ dnl here too!
dnl
dnl
dnl ---------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------
AC_DEFUN([MYSQL_MODULE_DEPENDS],[
dnl
AC_DEFUN([MYSQL_MODULE_DEPENDS],[
REQUIRE_PLUGIN([$1])
dnl
REQUIRE_PLUGIN([$1])
ifelse($#, 0, [], $#, 1, [
dnl
ifelse($#, 0, [], $#, 1, [
AC_FATAL([[bad number of arguments]])
dnl
AC_FATAL([[bad number of arguments]])
], $#, 2, [
dnl
], $#, 2, [
_MYSQL_MODULE_DEPEND([$1],[$2])
dnl
_MYSQL_MODULE_DEPEND([$1],[$2])
],[
dnl
],[
_MYSQL_MODULE_DEPEND([$1],[$2])
dnl
_MYSQL_MODULE_DEPEND([$1],[$2])
MYSQL_MODULE_DEPENDS([$1], m4_shift(m4_shift($@)))
dnl
MYSQL_MODULE_DEPENDS([$1], m4_shift(m4_shift($@)))
])
])
])
])
AC_DEFUN([_MYSQL_MODULE_DEPEND],[
dnl
AC_DEFUN([_MYSQL_MODULE_DEPEND],[
REQUIRE_PLUGIN([$2])
dnl
REQUIRE_PLUGIN([$2])
_MYSQL_PLUGAPPEND([__mysql_plugdepends_$1__],[$2])
dnl
_MYSQL_PLUGAPPEND([__mysql_plugdepends_$1__],[$2])
])
])
...
@@ -211,12 +211,12 @@ dnl Declares additional actions required to configure the module
...
@@ -211,12 +211,12 @@ dnl Declares additional actions required to configure the module
dnl
dnl
dnl ---------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------
AC_DEFUN([MYSQL_MODULE_ACTIONS],[
dnl
AC_DEFUN([MYSQL_MODULE_ACTIONS],[
REQUIRE_PLUGIN([$1])
dnl
REQUIRE_PLUGIN([$1])
m4_ifdef([$2],[
dnl
m4_ifdef([$2],[
m4_define([MYSQL_MODULE_ACTIONS_]AS_TR_CPP([$1]),m4_defn([$2]))
dnl
m4_define([MYSQL_MODULE_ACTIONS_]AS_TR_CPP([$1]),m4_defn([$2]))
],[
dnl
],[
m4_define([MYSQL_MODULE_ACTIONS_]AS_TR_CPP([$1]), [$2])
dnl
m4_define([MYSQL_MODULE_ACTIONS_]AS_TR_CPP([$1]), [$2])
])
])
])
])
...
@@ -229,33 +229,33 @@ dnl Called last, emits all required shell code to configure the modules
...
@@ -229,33 +229,33 @@ dnl Called last, emits all required shell code to configure the modules
dnl
dnl
dnl ---------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------
AC_DEFUN([MYSQL_CONFIGURE_PLUGINS],[
dnl
AC_DEFUN([MYSQL_CONFIGURE_PLUGINS],[
m4_ifdef([__mysql_plugin_configured__],[
dnl
m4_ifdef([__mysql_plugin_configured__],[
AC_FATAL([cannot call [MYSQL_CONFIGURE_PLUGINS] multiple times])
dnl
AC_FATAL([cannot call [MYSQL_CONFIGURE_PLUGINS] multiple times])
],[
dnl
],[
m4_define([__mysql_plugin_configured__],[done])
dnl
m4_define([__mysql_plugin_configured__],[done])
m4_ifdef([__mysql_plugin_list__],[
dnl
m4_ifdef([__mysql_plugin_list__],[
_MYSQL_CHECK_PLUGIN_ARGS([$1])
_MYSQL_CHECK_PLUGIN_ARGS([$1])
_MYSQL_CONFIGURE_PLUGINS(m4_bpatsubst(__mysql_plugin_list__, :, [,]))
_MYSQL_CONFIGURE_PLUGINS(m4_bpatsubst(__mysql_plugin_list__, :, [,]))
_MYSQL_DO_PLUGIN_ACTIONS(m4_bpatsubst(__mysql_plugin_list__, :, [,]))
_MYSQL_DO_PLUGIN_ACTIONS(m4_bpatsubst(__mysql_plugin_list__, :, [,]))
_MYSQL_POST_PLUGIN_FIXUP()
_MYSQL_POST_PLUGIN_FIXUP()
])
dnl
])
])
dnl
])
])
])
AC_DEFUN([_MYSQL_CONFIGURE_PLUGINS],[
dnl
AC_DEFUN([_MYSQL_CONFIGURE_PLUGINS],[
ifelse($#, 0, [], $#, 1, [
dnl
ifelse($#, 0, [], $#, 1, [
_MYSQL_CHECK_PLUGIN([$1])
dnl
_MYSQL_CHECK_PLUGIN([$1])
],[
dnl
],[
_MYSQL_CHECK_PLUGIN([$1])
dnl
_MYSQL_CHECK_PLUGIN([$1])
_MYSQL_CONFIGURE_PLUGINS(m4_shift($@))
dnl
_MYSQL_CONFIGURE_PLUGINS(m4_shift($@))
])
])
])
])
AC_DEFUN([_MYSQL_CHECK_PLUGIN],[
dnl
AC_DEFUN([_MYSQL_CHECK_PLUGIN],[
_DO_MYSQL_CHECK_PLUGIN(
_DO_MYSQL_CHECK_PLUGIN(
[$1],
[$1],
[$1-plugin]
,
m4_bpatsubst([$1], -, _)
,
[MYSQL_MODULE_NAME_]AS_TR_CPP([$1]),
[MYSQL_MODULE_NAME_]AS_TR_CPP([$1]),
[MYSQL_MODULE_DESC_]AS_TR_CPP([$1]),
[MYSQL_MODULE_DESC_]AS_TR_CPP([$1]),
[MYSQL_MODULE_DEFINE_]AS_TR_CPP([$1]),
[MYSQL_MODULE_DEFINE_]AS_TR_CPP([$1]),
...
@@ -265,104 +265,111 @@ AC_DEFUN([_MYSQL_CHECK_PLUGIN],[ dnl
...
@@ -265,104 +265,111 @@ AC_DEFUN([_MYSQL_CHECK_PLUGIN],[ dnl
[MYSQL_MODULE_MANDATORY_]AS_TR_CPP([$1]),
[MYSQL_MODULE_MANDATORY_]AS_TR_CPP([$1]),
[MYSQL_MODULE_DISABLED_]AS_TR_CPP([$1]),
[MYSQL_MODULE_DISABLED_]AS_TR_CPP([$1]),
[MYSQL_MODULE_ACTIONS_]AS_TR_CPP([$1])
[MYSQL_MODULE_ACTIONS_]AS_TR_CPP([$1])
)
dnl
)
])
])
AC_DEFUN([_DO_MYSQL_CHECK_PLUGIN],[
dnl
AC_DEFUN([_DO_MYSQL_CHECK_PLUGIN],[
m4_ifdef([$5],[
dnl
m4_ifdef([$5],[
AH_TEMPLATE($5, [Include ]$4[ into mysqld])
AH_TEMPLATE($5, [Include ]$4[ into mysqld])
])
])
AC_MSG_CHECKING([whether to use ]$3)
dnl
AC_MSG_CHECKING([whether to use ]$3)
m4_ifdef([$10],[
m4_ifdef([$10],[
if test "[$mysql_module_]
m4_bpatsubst([$1], -, _)
" = yes -a \
if test "[$mysql_module_]
$2
" = yes -a \
"[$with_module_]
m4_bpatsubst([$1], -, _)
" != no -o \
"[$with_module_]
$2
" != no -o \
"[$with_module_]
m4_bpatsubst([$1], -, _)
" = yes; then
"[$with_module_]
$2
" = yes; then
AC_MSG_ERROR([disabled])
AC_MSG_ERROR([disabled])
fi
fi
AC_MSG_RESULT([no])
dnl
AC_MSG_RESULT([no])
],[
dnl
],[
m4_ifdef([$9],[
m4_ifdef([$9],[
if test "[$with_module_]
m4_bpatsubst([$1], -, _)
" = no; then
if test "[$with_module_]
$2
" = no; then
AC_MSG_ERROR([cannot disable mandatory module])
AC_MSG_ERROR([cannot disable mandatory module])
fi
fi
[mysql_module_]
m4_bpatsubst([$1], -, _)=yes dnl
[mysql_module_]
$2=yes
])
])
if test "[$with_module_]m4_bpatsubst([$1], -, _)" != no; then
if test "[$with_module_]$2" = no; then
if test "[$mysql_module_]m4_bpatsubst([$1], -, _)" != yes -a \
AC_MSG_RESULT([no])
"[$with_module_]m4_bpatsubst([$1], -, _)" != yes; then dnl
else
m4_ifdef([$8],[ dnl
if test "[$mysql_module_]$2" != yes -a \
"[$with_module_]$2" != yes; then
m4_ifdef([$8],[
m4_ifdef([$6],[
if test -d "$srcdir/$6" ; then
mysql_plugin_dirs="$mysql_plugin_dirs $6"
])
AC_SUBST([plugin_]$2[_shared_target], "$8")
AC_SUBST([plugin_]$2[_static_target], [""])
[with_module_]$2=yes
AC_MSG_RESULT([plugin])
m4_ifdef([$6],[
m4_ifdef([$6],[
mysql_plugin_dirs="$mysql_plugin_dirs $6" dnl
else
[mysql_module_]$2=no
AC_MSG_RESULT([no])
fi
])
])
AC_SUBST([plugin_]m4_bpatsubst([$1], -, _)[_shared_target], "$8")
AC_SUBST([plugin_]m4_bpatsubst([$1], -, _)[_static_target], [""])
[with_module_]m4_bpatsubst([$1], -, _)=yes
AC_MSG_RESULT([plugin]) dnl
],[
],[
[with_module_]
m4_bpatsubst([$1], -, _)
=no
[with_module_]
$2
=no
AC_MSG_RESULT([no])
dnl
AC_MSG_RESULT([no])
])
])
else
dnl
else
m4_ifdef([$7],[
m4_ifdef([$7],[
ifelse(m4_bregexp($7, [^lib[^.]+\.a$]), -2, [
dnl
ifelse(m4_bregexp($7, [^lib[^.]+\.a$]), -2, [
m4_ifdef([$6],[
m4_ifdef([$6],[
mysql_plugin_dirs="$mysql_plugin_dirs $6"
mysql_plugin_dirs="$mysql_plugin_dirs $6"
mysql_plugin_libs="$mysql_plugin_libs -L[\$(top_builddir)]/$6"
dnl
mysql_plugin_libs="$mysql_plugin_libs -L[\$(top_builddir)]/$6"
])
])
mysql_plugin_libs="$mysql_plugin_libs
dnl
mysql_plugin_libs="$mysql_plugin_libs
[-l]m4_bregexp($7, [^lib\([^.]+\)], [\1])"
dnl
[-l]m4_bregexp($7, [^lib\([^.]+\)], [\1])"
], m4_bregexp($7, [^\\\$]), 0, [
dnl
], m4_bregexp($7, [^\\\$]), 0, [
m4_ifdef([$6],[
m4_ifdef([$6],[
mysql_plugin_dirs="$mysql_plugin_dirs $6"
dnl
mysql_plugin_dirs="$mysql_plugin_dirs $6"
])
])
mysql_plugin_libs="$mysql_plugin_libs $7"
dnl
mysql_plugin_libs="$mysql_plugin_libs $7"
], [
dnl
], [
m4_ifdef([$6],[
m4_ifdef([$6],[
mysql_plugin_dirs="$mysql_plugin_dirs $6"
mysql_plugin_dirs="$mysql_plugin_dirs $6"
mysql_plugin_libs="$mysql_plugin_libs \$(top_builddir)/$6/$7"
dnl
mysql_plugin_libs="$mysql_plugin_libs \$(top_builddir)/$6/$7"
],[
],[
mysql_plugin_libs="$mysql_plugin_libs $7"
dnl
mysql_plugin_libs="$mysql_plugin_libs $7"
])
dnl
])
])
dnl
])
m4_ifdef([$5],[
m4_ifdef([$5],[
AC_DEFINE($5)
dnl
AC_DEFINE($5)
])
])
AC_SUBST([plugin_]
m4_bpatsubst([$1], -, _)
[_static_target], "$7")
AC_SUBST([plugin_]
$2
[_static_target], "$7")
AC_SUBST([plugin_]
m4_bpatsubst([$1], -, _)[_shared_target], [""]) dnl
AC_SUBST([plugin_]
$2[_shared_target], [""])
],[
dnl
],[
m4_ifdef([$6],[
m4_ifdef([$6],[
AC_FATAL([plugin directory specified without library for ]$3)
dnl
AC_FATAL([plugin directory specified without library for ]$3)
],[
dnl
],[
m4_ifdef([$5],[
m4_ifdef([$5],[
AC_DEFINE($5)
AC_DEFINE($5)
AC_SUBST([plugin_]
m4_bpatsubst([$1], -, _)
[_static_target], ["yes"])
AC_SUBST([plugin_]
$2
[_static_target], ["yes"])
AC_SUBST([plugin_]
m4_bpatsubst([$1], -, _)[_shared_target], [""]) dnl
AC_SUBST([plugin_]
$2[_shared_target], [""])
])
dnl
])
])
dnl
])
])
])
mysql_plugin_defs="$mysql_plugin_defs, [builtin_]
m4_bpatsubst([$2], -, _)
"
mysql_plugin_defs="$mysql_plugin_defs, [builtin_]
$2[_plugin]
"
[with_module_]
m4_bpatsubst([$1], -, _)
=yes
[with_module_]
$2
=yes
AC_MSG_RESULT([yes])
AC_MSG_RESULT([yes])
fi
fi
else
fi
AC_MSG_RESULT([no])
])
fi dnl
]) dnl
])
])
AC_DEFUN([_MYSQL_DO_PLUGIN_ACTIONS],[
dnl
AC_DEFUN([_MYSQL_DO_PLUGIN_ACTIONS],[
ifelse($#, 0, [], $#, 1, [
dnl
ifelse($#, 0, [], $#, 1, [
_MYSQL_PLUGIN_ACTIONS([$1])
dnl
_MYSQL_PLUGIN_ACTIONS([$1])
],[
dnl
],[
_MYSQL_PLUGIN_ACTIONS([$1])
dnl
_MYSQL_PLUGIN_ACTIONS([$1])
_MYSQL_DO_PLUGIN_ACTIONS(m4_shift($@))
dnl
_MYSQL_DO_PLUGIN_ACTIONS(m4_shift($@))
])
])
])
])
AC_DEFUN([_MYSQL_PLUGIN_ACTIONS],[
dnl
AC_DEFUN([_MYSQL_PLUGIN_ACTIONS],[
_DO_MYSQL_PLUGIN_ACTIONS(
_DO_MYSQL_PLUGIN_ACTIONS(
[$1],
[$1],
[$1-plugin]
,
m4_bpatsubst([$1], -, _)
,
[MYSQL_MODULE_NAME_]AS_TR_CPP([$1]),
[MYSQL_MODULE_NAME_]AS_TR_CPP([$1]),
[MYSQL_MODULE_DESC_]AS_TR_CPP([$1]),
[MYSQL_MODULE_DESC_]AS_TR_CPP([$1]),
[MYSQL_MODULE_DEFINE_]AS_TR_CPP([$1]),
[MYSQL_MODULE_DEFINE_]AS_TR_CPP([$1]),
...
@@ -372,20 +379,20 @@ AC_DEFUN([_MYSQL_PLUGIN_ACTIONS],[ dnl
...
@@ -372,20 +379,20 @@ AC_DEFUN([_MYSQL_PLUGIN_ACTIONS],[ dnl
[MYSQL_MODULE_MANDATORY_]AS_TR_CPP([$1]),
[MYSQL_MODULE_MANDATORY_]AS_TR_CPP([$1]),
[MYSQL_MODULE_DISABLED_]AS_TR_CPP([$1]),
[MYSQL_MODULE_DISABLED_]AS_TR_CPP([$1]),
[MYSQL_MODULE_ACTIONS_]AS_TR_CPP([$1])
[MYSQL_MODULE_ACTIONS_]AS_TR_CPP([$1])
)
dnl
)
])
])
AC_DEFUN([_DO_MYSQL_PLUGIN_ACTIONS],[
dnl
AC_DEFUN([_DO_MYSQL_PLUGIN_ACTIONS],[
m4_ifdef([$10], [], [
m4_ifdef([$10], [], [
if test "[$with_module_]
m4_bpatsubst([$1], -, _)
" = yes; then
if test "[$with_module_]
$2
" = yes; then
if test -z "[$plugin_]
m4_bpatsubst([$1], -, _)
[_static_target]" -a \
if test -z "[$plugin_]
$2
[_static_target]" -a \
-z "[$plugin_]
m4_bpatsubst([$1], -, _)
[_shared_target]"; then
-z "[$plugin_]
$2
[_shared_target]"; then
AC_MSG_ERROR([thats strange, $1 failed sanity check])
AC_MSG_ERROR([that
'
s strange, $1 failed sanity check])
fi
fi
$11
$11
fi
dnl
fi
])
dnl
])
])
])
...
@@ -395,17 +402,17 @@ dnl Private helper macros
...
@@ -395,17 +402,17 @@ dnl Private helper macros
dnl ===========================================================================
dnl ===========================================================================
AC_DEFUN([REQUIRE_PLUGIN],[
dnl
AC_DEFUN([REQUIRE_PLUGIN],[
_REQUIRE_PLUGIN([$1], [__MYSQL_MODULE_]AS_TR_CPP([$1])[__])
dnl
_REQUIRE_PLUGIN([$1], [__MYSQL_MODULE_]AS_TR_CPP([$1])[__])
])
])
define([_REQUIRE_PLUGIN],[
dnl
define([_REQUIRE_PLUGIN],[
ifdef([$2],[
dnl
ifdef([$2],[
ifelse($2, [$1], [], [
dnl
ifelse($2, [$1], [], [
AC_FATAL([[Misspelt MYSQL_MODULE declaration for ]][$1])
dnl
AC_FATAL([[Misspelt MYSQL_MODULE declaration for ]][$1])
])
dnl
])
],[
dnl
],[
AC_FATAL([[Missing MYSQL_MODULE declaration for ]][$1])
dnl
AC_FATAL([[Missing MYSQL_MODULE declaration for ]][$1])
])
])
])
])
...
@@ -413,85 +420,85 @@ define([_REQUIRE_PLUGIN],[ dnl
...
@@ -413,85 +420,85 @@ define([_REQUIRE_PLUGIN],[ dnl
dnl ---------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------
AC_DEFUN([_MYSQL_MODULE_META_CHECK], [ifelse($#, 0, [], $#, 1,
dnl
AC_DEFUN([_MYSQL_MODULE_META_CHECK], [ifelse($#, 0, [], $#, 1,
[_MYSQL_CHECK_PLUGIN_META([$1], [__mysql_]m4_bpatsubst($1, -, _)[_plugins__])
dnl
[_MYSQL_CHECK_PLUGIN_META([$1], [__mysql_]m4_bpatsubst($1, -, _)[_plugins__])
],
dnl
],
[_MYSQL_CHECK_PLUGIN_META([$1], [__mysql_]m4_bpatsubst($1, -, _)[_plugins__])
dnl
[_MYSQL_CHECK_PLUGIN_META([$1], [__mysql_]m4_bpatsubst($1, -, _)[_plugins__])
_MYSQL_MODULE_META_CHECK(m4_shift($@))])
dnl
_MYSQL_MODULE_META_CHECK(m4_shift($@))])
])
])
AC_DEFUN([_MYSQL_CHECK_PLUGIN_META], [
AC_DEFUN([_MYSQL_CHECK_PLUGIN_META], [
[$1] )
dnl
[$1] )
m4_ifdef([$2], [
m4_ifdef([$2], [
mysql_modules='m4_bpatsubst($2, :, [ ])'
dnl
mysql_modules='m4_bpatsubst($2, :, [ ])'
],[
],[
mysql_modules=''
dnl
mysql_modules=''
])
])
;;
dnl
;;
])
])
dnl ---------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------
AC_DEFUN([_MYSQL_PLUGAPPEND],[
dnl
AC_DEFUN([_MYSQL_PLUGAPPEND],[
m4_ifdef([$1],[
dnl
m4_ifdef([$1],[
m4_define([__plugin_append_tmp__], m4_defn([$1]))
dnl
m4_define([__plugin_append_tmp__], m4_defn([$1]))
m4_undefine([$1])
dnl
m4_undefine([$1])
m4_define([$1], __plugin_append_tmp__[:$2])
dnl
m4_define([$1], __plugin_append_tmp__[:$2])
m4_undefine([__plugin_append_tmp__])
dnl
m4_undefine([__plugin_append_tmp__])
],[
dnl
],[
m4_define([$1], [$2])
dnl
m4_define([$1], [$2])
$3
dnl
$3
])
dnl
])
])
])
AC_DEFUN([_MYSQL_PLUGAPPEND_OPTS],[
dnl
AC_DEFUN([_MYSQL_PLUGAPPEND_OPTS],[
ifelse($#, 0, [], $#, 1, [
dnl
ifelse($#, 0, [], $#, 1, [
AC_FATAL([[bad number of args]])
AC_FATAL([[bad number of args]])
], $#, 2, [
dnl
], $#, 2, [
_MYSQL_PLUGAPPEND_OPTONE([$1],[$2])
dnl
_MYSQL_PLUGAPPEND_OPTONE([$1],[$2])
],[
dnl
],[
_MYSQL_PLUGAPPEND_OPTONE([$1],[$2])
dnl
_MYSQL_PLUGAPPEND_OPTONE([$1],[$2])
_MYSQL_PLUGAPPEND_OPTS([$1], m4_shift(m4_shift($@)))
_MYSQL_PLUGAPPEND_OPTS([$1], m4_shift(m4_shift($@)))
])
])
])
])
AC_DEFUN([_MYSQL_PLUGAPPEND_OPTONE],[
dnl
AC_DEFUN([_MYSQL_PLUGAPPEND_OPTONE],[
ifelse([$2], [all], [
dnl
ifelse([$2], [all], [
AC_FATAL([[protected plugin group: all]])
dnl
AC_FATAL([[protected plugin group: all]])
],[
dnl
],[
ifelse([$2], [none], [
dnl
ifelse([$2], [none], [
AC_FATAL([[protected plugin group: none]])
dnl
AC_FATAL([[protected plugin group: none]])
],[
dnl
],[
_MYSQL_PLUGAPPEND([__mysql_$1_configs__],[$2])
dnl
_MYSQL_PLUGAPPEND([__mysql_$1_configs__],[$2])
_MYSQL_PLUGAPPEND([__mysql_]m4_bpatsubst($2, -, _)[_plugins__],[$1], [
dnl
_MYSQL_PLUGAPPEND([__mysql_]m4_bpatsubst($2, -, _)[_plugins__],[$1], [
_MYSQL_PLUGAPPEND([__mysql_metaplugin_list__],[$2])
dnl
_MYSQL_PLUGAPPEND([__mysql_metaplugin_list__],[$2])
])
dnl
])
])
dnl
])
])
dnl
])
])
])
dnl ---------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------
AC_DEFUN([MYSQL_LIST_PLUGINS],[
dnl
AC_DEFUN([MYSQL_LIST_PLUGINS],[dnl
m4_ifdef([__mysql_plugin_list__],[
dnl
m4_ifdef([__mysql_plugin_list__],[dnl
_MYSQL_LIST_PLUGINS(m4_bpatsubst(__mysql_plugin_list__, :, [,]))
dnl
_MYSQL_LIST_PLUGINS(m4_bpatsubst(__mysql_plugin_list__, :, [,]))dnl
])
dnl
])dnl
])
])
AC_DEFUN([_MYSQL_LIST_PLUGINS],[
dnl
AC_DEFUN([_MYSQL_LIST_PLUGINS],[dnl
ifelse($#, 0, [], $#, 1, [
dnl
ifelse($#, 0, [], $#, 1, [dnl
MYSQL_SHOW_PLUGIN([$1])
dnl
MYSQL_SHOW_PLUGIN([$1])dnl
],[
dnl
],[dnl
MYSQL_SHOW_PLUGIN([$1])
dnl
MYSQL_SHOW_PLUGIN([$1])dnl
_MYSQL_LIST_PLUGINS(m4_shift($@))
dnl
_MYSQL_LIST_PLUGINS(m4_shift($@))dnl
])
dnl
])dnl
])
])
AC_DEFUN([MYSQL_SHOW_PLUGIN],[
dnl
AC_DEFUN([MYSQL_SHOW_PLUGIN],[
_MYSQL_SHOW_PLUGIN(
_MYSQL_SHOW_PLUGIN(
[$1],
[$1],
[$1-plugin],
[$1-plugin],
...
@@ -508,19 +515,20 @@ AC_DEFUN([MYSQL_SHOW_PLUGIN],[ dnl
...
@@ -508,19 +515,20 @@ AC_DEFUN([MYSQL_SHOW_PLUGIN],[ dnl
)
)
])
])
AC_DEFUN([_MYSQL_SHOW_PLUGIN],[
AC_DEFUN([_MYSQL_SHOW_PLUGIN],[
dnl
=== Plug
-
in: $3 ===
=== Plugin: $3 ===
Module Name: [$1]
Module Name: [$1]
Description: $4
Description: $4
Supports build: _PLUGIN_BUILD_TYPE([$7],[$8])
dnl
Supports build: _PLUGIN_BUILD_TYPE([$7],[$8])
[]
dnl
m4_ifdef([$12],[
m4_ifdef([$12],[
Configurations: m4_bpatsubst($12, :, [, ])])
dnl
Configurations: m4_bpatsubst($12, :, [, ])])
[]
dnl
m4_ifdef([$10],[
m4_ifdef([$10],[
Status: disabled]
, [
dnl
Status: disabled]
)[]
dnl
m4_ifdef([$9],[
m4_ifdef([$9],[
Status: mandatory])])])
Status: mandatory])[]dnl
])
AC_DEFUN([_PLUGIN_BUILD_TYPE],
dnl
AC_DEFUN([_PLUGIN_BUILD_TYPE],
[m4_ifdef([$1],[ifelse($1,[no],[],[static ]m4_ifdef([$2],[and dnl
[m4_ifdef([$1],[ifelse($1,[no],[],[static ]m4_ifdef([$2],[and dnl
]))])[]m4_ifdef([$2],[dynamic],[m4_ifdef([$1],[],[static])])])
]))])[]m4_ifdef([$2],[dynamic],[m4_ifdef([$1],[],[static])])])
...
@@ -528,108 +536,107 @@ AC_DEFUN([_PLUGIN_BUILD_TYPE], dnl
...
@@ -528,108 +536,107 @@ AC_DEFUN([_PLUGIN_BUILD_TYPE], dnl
dnl ---------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------
AC_DEFUN([_MYSQL_MODULE_ARGS_CHECK],[
dnl
AC_DEFUN([_MYSQL_MODULE_ARGS_CHECK],[
ifelse($#, 0, [], $#, 1, [
dnl
ifelse($#, 0, [], $#, 1, [
_MYSQL_CHECK_PLUGIN_ARG([$1],
_MYSQL_CHECK_PLUGIN_ARG([$1],
[MYSQL_MODULE_DISABLED_]AS_TR_CPP([$1]),
[MYSQL_MODULE_DISABLED_]AS_TR_CPP([$1]),
[MYSQL_MODULE_ACTIONS_]AS_TR_CPP([$1]))
dnl
[MYSQL_MODULE_ACTIONS_]AS_TR_CPP([$1]))
],[
dnl
],[
_MYSQL_CHECK_PLUGIN_ARG([$1],
_MYSQL_CHECK_PLUGIN_ARG([$1],
[MYSQL_MODULE_DISABLED_]AS_TR_CPP([$1]),
[MYSQL_MODULE_DISABLED_]AS_TR_CPP([$1]),
[MYSQL_MODULE_ACTIONS_]AS_TR_CPP([$1]))
dnl
[MYSQL_MODULE_ACTIONS_]AS_TR_CPP([$1]))
_MYSQL_MODULE_ARGS_CHECK(m4_shift($@))
dnl
_MYSQL_MODULE_ARGS_CHECK(m4_shift($@))
])
dnl
])
])
])
AC_DEFUN([_MYSQL_CHECK_PLUGIN_ARG],[
dnl
AC_DEFUN([_MYSQL_CHECK_PLUGIN_ARG],[
m4_ifdef([$3], [], [m4_define([$3],[ ])])
m4_ifdef([$3], [], [m4_define([$3],[ ])])
[$1] )
dnl
[$1] )
m4_ifdef([$2],[
m4_ifdef([$2],[
AC_MSG_ERROR([plugin $1 is disabled])
dnl
AC_MSG_ERROR([plugin $1 is disabled])
],[
],[
[mysql_module_]m4_bpatsubst([$1], -, _)=yes
dnl
[mysql_module_]m4_bpatsubst([$1], -, _)=yes
])
])
;;
dnl
;;
])
])
AC_DEFUN([_MYSQL_SANE_VARS], [
dnl
AC_DEFUN([_MYSQL_SANE_VARS], [
ifelse($#, 0, [], $#, 1, [
dnl
ifelse($#, 0, [], $#, 1, [
_MYSQL_SANEVAR([$1])
dnl
_MYSQL_SANEVAR([$1])
],[
dnl
],[
_MYSQL_SANEVAR([$1])
dnl
_MYSQL_SANEVAR([$1])
_MYSQL_SANE_VARS(m4_shift($@))
dnl
_MYSQL_SANE_VARS(m4_shift($@))
])
dnl
])
])
])
AC_DEFUN([_MYSQL_SANEVAR], [
AC_DEFUN([_MYSQL_SANEVAR], [
test -z "[$mysql_module_]m4_bpatsubst([$1], -, _)" &&
dnl
test -z "[$mysql_module_]m4_bpatsubst([$1], -, _)" &&
[mysql_module_]m4_bpatsubst([$1], -, _)='.'
[mysql_module_]m4_bpatsubst([$1], -, _)='.'
test -z "[$with_module_]m4_bpatsubst([$1], -, _)" &&
dnl
test -z "[$with_module_]m4_bpatsubst([$1], -, _)" &&
[with_module_]m4_bpatsubst([$1], -, _)='.'
dnl
[with_module_]m4_bpatsubst([$1], -, _)='.'
])
])
AC_DEFUN([_MYSQL_CHECK_DEPENDENCIES], [
dnl
AC_DEFUN([_MYSQL_CHECK_DEPENDENCIES], [
ifelse($#, 0, [], $#, 1, [
dnl
ifelse($#, 0, [], $#, 1, [
_MYSQL_CHECK_DEPENDS([$1],[__mysql_plugdepends_$1__])
dnl
_MYSQL_CHECK_DEPENDS([$1],[__mysql_plugdepends_$1__])
],[
dnl
],[
_MYSQL_CHECK_DEPENDS([$1],[__mysql_plugdepends_$1__])
dnl
_MYSQL_CHECK_DEPENDS([$1],[__mysql_plugdepends_$1__])
_MYSQL_CHECK_DEPENDENCIES(m4_shift($@))
dnl
_MYSQL_CHECK_DEPENDENCIES(m4_shift($@))
])
dnl
])
])
])
AC_DEFUN([_MYSQL_CHECK_DEPENDS], [
dnl
AC_DEFUN([_MYSQL_CHECK_DEPENDS], [
m4_ifdef([$2], [
m4_ifdef([$2], [
if test "[$mysql_module_]m4_bpatsubst([$1], -, _)" = yes -a \
if test "[$mysql_module_]m4_bpatsubst([$1], -, _)" = yes -a \
"[$with_module_]m4_bpatsubst([$1], -, _)" != no -o \
"[$with_module_]m4_bpatsubst([$1], -, _)" != no -o \
"[$with_module_]m4_bpatsubst([$1], -, _)" = yes; then
dnl
"[$with_module_]m4_bpatsubst([$1], -, _)" = yes; then
_MYSQL_GEN_DEPENDS(m4_bpatsubst($2, :, [,]))
_MYSQL_GEN_DEPENDS(m4_bpatsubst($2, :, [,]))
fi
dnl
fi
])
dnl
])
])
])
AC_DEFUN([_MYSQL_GEN_DEPENDS], [
dnl
AC_DEFUN([_MYSQL_GEN_DEPENDS], [
ifelse($#, 0, [], $#, 1, [
dnl
ifelse($#, 0, [], $#, 1, [
_MYSQL_GEN_DEPEND([$1])
dnl
_MYSQL_GEN_DEPEND([$1])
],[
dnl
],[
_MYSQL_GEN_DEPEND([$1])
dnl
_MYSQL_GEN_DEPEND([$1])
_MYSQL_GEN_DEPENDS(m4_shift($@))
dnl
_MYSQL_GEN_DEPENDS(m4_shift($@))
])
dnl
])
])
])
AC_DEFUN([_MYSQL_GEN_DEPEND], [
dnl
AC_DEFUN([_MYSQL_GEN_DEPEND], [
m4_ifdef([MYSQL_MODULE_DISABLED_]AS_TR_CPP([$1]),[
m4_ifdef([MYSQL_MODULE_DISABLED_]AS_TR_CPP([$1]),[
AC_MSG_ERROR([depends upon disabled module $1])
dnl
AC_MSG_ERROR([depends upon disabled module $1])
],[
],[
[mysql_module_]m4_bpatsubst([$1], -, _)=yes
[mysql_module_]m4_bpatsubst([$1], -, _)=yes
if test "[$with_module_]m4_bpatsubst([$1], -, _)" = no; then
if test "[$with_module_]m4_bpatsubst([$1], -, _)" = no; then
AC_MSG_ERROR([depends upon disabled module $1])
AC_MSG_ERROR([depends upon disabled module $1])
fi
dnl
fi
])
dnl
])
])
])
AC_DEFUN([_MYSQL_CHECK_PLUGIN_ARGS],[
AC_DEFUN([_MYSQL_CHECK_PLUGIN_ARGS],[
AC_ARG_WITH([modules],
[
AC_ARG_WITH([modules],
--with-modules=PLUGIN[[,PLUGIN..]]
AS_HELP_STRING([--with-modules=PLUGIN[[[[[,PLUGIN..]]]]]],
m4_text_wrap([Plugin modules to include in mysqld. (default is: $1)
[Plugin modules to include in mysqld. (default is: $1) Must be a
Must be configuration name or a comma seperated list of modules.],
configuration name or a comma separated list of modules.])
[ ])
AS_HELP_STRING([],[Available configurations are:] dnl
m4_
text_wrap([Available configurations are: ]
m4_
bpatsubst([none:all]m4_ifdef([__mysql_metaplugin_list__],
m4_bpatsubst(m4_ifdef([__mysql_metaplugin_list__], dnl
__mysql_metaplugin_list__), :, [ ])[.])
none:all:__mysql_metaplugin_list__,none:all), :, [ ])[.],
AS_HELP_STRING([],[Available plugin modules are:] dnl
[
])
m4_bpatsubst(__mysql_plugin_list__, :, [ ])[.
])
m4_text_wrap([Available plugin modules are: ] dnl
AS_HELP_STRING([--without-module-PLUGIN],
m4_bpatsubst(__mysql_plugin_list__, :, [ ])[.], [ ])
[Disable the named module from being built. Otherwise, for
--without-module-PLUGIN
modules which are not selected for inclusion in mysqld will be
m4_text_wrap([Disable the named module from being built. Otherwise,
built dynamically (if supported)])
for modules which are not selected for inclusion in mysqld will be
AS_HELP_STRING([--with-module-PLUGIN],
built dynamically (if supported)],[ ])
[Forces the named module to be linked into mysqld statically.]),
],[mysql_modules="`echo $withval | tr ',.:;*[]' ' '`"],
[mysql_modules="`echo $withval | tr ',.:;*[]' ' '`"],
[mysql_modules=['$1']])
[mysql_modules=['$1']])
m4_divert_once([HELP_VAR_END],[
m4_divert_once([HELP_VAR_END],[
Description of plugin modules:
Description of plugin modules:
m4_indir([MYSQL_LIST_PLUGINS])
MYSQL_LIST_PLUGINS])
])
case "$mysql_modules" in
case "$mysql_modules" in
all )
all )
...
@@ -637,20 +644,17 @@ m4_indir([MYSQL_LIST_PLUGINS])
...
@@ -637,20 +644,17 @@ m4_indir([MYSQL_LIST_PLUGINS])
;;
;;
none )
none )
mysql_modules=''
mysql_modules=''
;;
dnl
;;
m4_ifdef([__mysql_metaplugin_list__],[
dnl
m4_ifdef([__mysql_metaplugin_list__],[
_MYSQL_MODULE_META_CHECK(m4_bpatsubst(__mysql_metaplugin_list__, :, [,]))
dnl
_MYSQL_MODULE_META_CHECK(m4_bpatsubst(__mysql_metaplugin_list__, :, [,]))
])
])
esac
esac
for plugin in $mysql_modules; do
for plugin in $mysql_modules; do
case "$plugin" in
case "$plugin" in
all )
all
| none
)
AC_MSG_ERROR([bad module name: $plugin])
AC_MSG_ERROR([bad module name: $plugin])
;;
;;
none )
AC_MSG_ERROR([bad module name: $plugin])
;; dnl
_MYSQL_MODULE_ARGS_CHECK(m4_bpatsubst(__mysql_plugin_list__, :, [,]))
_MYSQL_MODULE_ARGS_CHECK(m4_bpatsubst(__mysql_plugin_list__, :, [,]))
* )
* )
AC_MSG_ERROR([unknown plugin module: $plugin])
AC_MSG_ERROR([unknown plugin module: $plugin])
...
@@ -675,6 +679,11 @@ AC_DEFUN([_MYSQL_POST_PLUGIN_FIXUP],[
...
@@ -675,6 +679,11 @@ AC_DEFUN([_MYSQL_POST_PLUGIN_FIXUP],[
AC_MSG_ERROR([don't know how to handle plugin dir $plugdir])
AC_MSG_ERROR([don't know how to handle plugin dir $plugdir])
;;
;;
esac
esac
if test -f "$srcdir/$plugdir/configure" ; then
other_configures="$other_configures $plugdir/configure"
else
ac_config_files="$ac_config_files $plugdir/Makefile"
fi
done
done
AC_SUBST(mysql_se_dirs)
AC_SUBST(mysql_se_dirs)
AC_SUBST(mysql_pg_dirs)
AC_SUBST(mysql_pg_dirs)
...
...
configure.in
View file @
281fb1cf
...
@@ -104,7 +104,6 @@ MYSQL_MODULE_ACTIONS(innobase, [
...
@@ -104,7 +104,6 @@ MYSQL_MODULE_ACTIONS(innobase, [
AC_SUBST
(
innodb_includes
)
AC_SUBST
(
innodb_includes
)
AC_SUBST
(
innodb_libs
)
AC_SUBST
(
innodb_libs
)
AC_SUBST
(
innodb_system_libs
)
AC_SUBST
(
innodb_system_libs
)
other_configures
=
"
$other_configures
storage/innobase/configure"
])
])
MYSQL_STORAGE_ENGINE
(
myisam,no,
[
MyISAM Storage Engine],
MYSQL_STORAGE_ENGINE
(
myisam,no,
[
MyISAM Storage Engine],
...
@@ -1712,7 +1711,7 @@ fi
...
@@ -1712,7 +1711,7 @@ fi
# If we should allow error injection tests
# If we should allow error injection tests
AC_ARG_WITH
(
error-inject,
AC_ARG_WITH
(
error-inject,
[
--with-error-inject
Enable error injection
in
MySQL Server]
,
AC_HELP_STRING
([
--with-error-inject
]
,[Enable error injection
in
MySQL Server]
)
,
[
with_error_inject
=
$withval
]
,
[
with_error_inject
=
$withval
]
,
[
with_error_inject
=
no
])
[
with_error_inject
=
no
])
...
@@ -2338,14 +2337,14 @@ fi
...
@@ -2338,14 +2337,14 @@ fi
tools_dirs
=
""
tools_dirs
=
""
AC_ARG_WITH
([
mysqlmanager],
AC_ARG_WITH
([
mysqlmanager],
AC_HELP_STRING
([
--with-mysqlmanager
]
,
[
Build the mysqlmanager binary:
yes
/no
(
default: build
if
server is built.
)])
,
AC_HELP_STRING
([
--with-mysqlmanager
]
,
[
Build the mysqlmanager binary:
yes
/no
(
default: build
if
server is built.
)])
,
,
)
[
if
test
"x
${
withval
}
"
!=
"xno"
;
then
tools_dirs
=
"
$tools_dirs
server-tools"
if
test
"
$with_mysqlmanager
"
=
"yes"
-o
\
fi
]
,
'('
"
$with_mysqlmanager
:
$with_server
"
=
":yes"
-a
\
[
if
test
"x
${
with_server
}
"
=
"xyes"
;
then
-d
"
$srcdir
/server-tools"
')'
;
then
tools_dirs
=
"
$tools_dirs
server-tools"
tools_dirs
=
"
$tools_dirs
server-tools"
fi
]
AC_CONFIG_FILES
(
server-tools/Makefile server-tools/instance-manager/Makefile
)
)
fi
AC_SUBST
(
tools_dirs
)
AC_SUBST
(
tools_dirs
)
...
@@ -2633,28 +2632,18 @@ AC_SUBST(MAKE_BINARY_DISTRIBUTION_OPTIONS)
...
@@ -2633,28 +2632,18 @@ AC_SUBST(MAKE_BINARY_DISTRIBUTION_OPTIONS)
# Output results
# Output results
AC_CONFIG_FILES
(
Makefile extra/Makefile mysys/Makefile dnl
AC_CONFIG_FILES
(
Makefile extra/Makefile mysys/Makefile dnl
unittest/Makefile dnl
unittest/Makefile unittest/mytap/Makefile unittest/mytap/t/Makefile dnl
unittest/mytap/Makefile unittest/mytap/t/Makefile dnl
unittest/mysys/Makefile unittest/examples/Makefile dnl
unittest/mysys/Makefile unittest/examples/Makefile dnl
strings/Makefile regex/Makefile dnl
strings/Makefile regex/Makefile storage/Makefile dnl
storage/Makefile dnl
storage/archive/Makefile storage/bdb/Makefile storage/blackhole/Makefile dnl
storage/csv/Makefile storage/example/Makefile storage/heap/Makefile dnl
storage/myisam/Makefile storage/myisammrg/Makefile dnl
man/Makefile BUILD/Makefile vio/Makefile dnl
man/Makefile BUILD/Makefile vio/Makefile dnl
libmysql/Makefile client/Makefile dnl
libmysql/Makefile client/Makefile dnl
pstack/Makefile pstack/aout/Makefile sql/Makefile sql/share/Makefile dnl
pstack/Makefile pstack/aout/Makefile sql/Makefile sql/share/Makefile dnl
sql/sql_builtin.cc sql-common/Makefile dnl
sql/sql_builtin.cc sql-common/Makefile dnl
dbug/Makefile scripts/Makefile dnl
dbug/Makefile scripts/Makefile include/Makefile dnl
include/Makefile dnl
server-tools/Makefile server-tools/instance-manager/Makefile dnl
tests/Makefile Docs/Makefile support-files/Makefile dnl
tests/Makefile Docs/Makefile support-files/Makefile dnl
support-files/MacOSX/Makefile mysql-test/Makefile dnl
support-files/MacOSX/Makefile mysql-test/Makefile dnl
mysql-test/ndb/Makefile netware/Makefile dnl
mysql-test/ndb/Makefile netware/Makefile dnl
include/mysql_version.h dnl
include/mysql_version.h plugin/Makefile win/Makefile
)
plugin/Makefile dnl
plugin/fulltext/Makefile dnl
win/Makefile
)
AC_CONFIG_COMMANDS
([
default], ,
test
-z
"
$CONFIG_HEADERS
"
||
echo
timestamp
>
stamp-h
)
AC_CONFIG_COMMANDS
([
default], ,
test
-z
"
$CONFIG_HEADERS
"
||
echo
timestamp
>
stamp-h
)
AC_OUTPUT
AC_OUTPUT
...
...
plugin/Makefile.am
View file @
281fb1cf
...
@@ -18,10 +18,8 @@
...
@@ -18,10 +18,8 @@
AUTOMAKE_OPTIONS
=
foreign
AUTOMAKE_OPTIONS
=
foreign
# These are built from source in the Docs directory
EXTRA_DIST
=
fulltext/configure.in
EXTRA_DIST
=
fulltext/configure.in
SUBDIRS
=
SUBDIRS
=
@mysql_pg_dirs@
DIST_SUBDIRS
=
.
fulltext
# Don't update the files from bitkeeper
# Don't update the files from bitkeeper
%
::
SCCS/s.%
%
::
SCCS/s.%
sql/Makefile.am
View file @
281fb1cf
...
@@ -52,10 +52,10 @@ noinst_HEADERS = item.h item_func.h item_sum.h item_cmpfunc.h \
...
@@ -52,10 +52,10 @@ noinst_HEADERS = item.h item_func.h item_sum.h item_cmpfunc.h \
ha_heap.h ha_myisam.h ha_myisammrg.h ha_partition.h
\
ha_heap.h ha_myisam.h ha_myisammrg.h ha_partition.h
\
ha_innodb.h ha_berkeley.h ha_federated.h
\
ha_innodb.h ha_berkeley.h ha_federated.h
\
ha_ndbcluster.h ha_ndbcluster_binlog.h
\
ha_ndbcluster.h ha_ndbcluster_binlog.h
\
ha_ndbcluster_tables.h
ha_ndbcluster_tables.h
\
opt_range.h protocol.h rpl_tblmap.h
\
opt_range.h protocol.h rpl_tblmap.h
\
log.h sql_show.h rpl_rli.h
\
log.h sql_show.h rpl_rli.h
\
sql_select.h
structs.h
table.h
sql_udf.h
hash_filo.h\
sql_select.h structs.h table.h sql_udf.h hash_filo.h
\
lex.h lex_symbol.h sql_acl.h sql_crypt.h
\
lex.h lex_symbol.h sql_acl.h sql_crypt.h
\
log_event.h sql_repl.h slave.h rpl_filter.h
\
log_event.h sql_repl.h slave.h rpl_filter.h
\
rpl_injector.h
\
rpl_injector.h
\
...
...
storage/archive/Makefile.am
View file @
281fb1cf
...
@@ -20,7 +20,7 @@ MYSQLDATAdir = $(localstatedir)
...
@@ -20,7 +20,7 @@ MYSQLDATAdir = $(localstatedir)
MYSQLSHAREdir
=
$(pkgdatadir)
MYSQLSHAREdir
=
$(pkgdatadir)
MYSQLBASEdir
=
$(prefix)
MYSQLBASEdir
=
$(prefix)
MYSQLLIBdir
=
$(pkglibdir)
MYSQLLIBdir
=
$(pkglibdir)
INCLUDES
=
-I
$(top_srcdir)
/include
\
INCLUDES
=
-I
$(top_srcdir)
/include
-I
$(top_builddir)
/include
\
-I
$(top_srcdir)
/regex
\
-I
$(top_srcdir)
/regex
\
-I
$(top_srcdir)
/sql
\
-I
$(top_srcdir)
/sql
\
-I
$(srcdir)
@ZLIB_INCLUDES@
-I
$(srcdir)
@ZLIB_INCLUDES@
...
@@ -50,9 +50,9 @@ libarchive_a_SOURCES = ha_archive.cc azio.c
...
@@ -50,9 +50,9 @@ libarchive_a_SOURCES = ha_archive.cc azio.c
archive_test_SOURCES
=
archive_test.c azio.c
archive_test_SOURCES
=
archive_test.c azio.c
archive_test_CFLAGS
=
$(AM_CFLAGS)
archive_test_CFLAGS
=
$(AM_CFLAGS)
archive_test_LDADD
=
$(top_
src
dir)
/mysys/libmysys.a
\
archive_test_LDADD
=
$(top_
build
dir)
/mysys/libmysys.a
\
$(top_
src
dir)
/dbug/libdbug.a
\
$(top_
build
dir)
/dbug/libdbug.a
\
$(top_
src
dir)
/strings/libmystrings.a
\
$(top_
build
dir)
/strings/libmystrings.a
\
@ZLIB_LIBS@
@ZLIB_LIBS@
archive_test_LDFLAGS
=
@NOINST_LDFLAGS@
archive_test_LDFLAGS
=
@NOINST_LDFLAGS@
...
...
storage/blackhole/Makefile.am
View file @
281fb1cf
...
@@ -20,7 +20,7 @@ MYSQLDATAdir = $(localstatedir)
...
@@ -20,7 +20,7 @@ MYSQLDATAdir = $(localstatedir)
MYSQLSHAREdir
=
$(pkgdatadir)
MYSQLSHAREdir
=
$(pkgdatadir)
MYSQLBASEdir
=
$(prefix)
MYSQLBASEdir
=
$(prefix)
MYSQLLIBdir
=
$(pkglibdir)
MYSQLLIBdir
=
$(pkglibdir)
INCLUDES
=
-I
$(top_srcdir)
/include
\
INCLUDES
=
-I
$(top_srcdir)
/include
-I
$(top_builddir)
/include
\
-I
$(top_srcdir)
/regex
\
-I
$(top_srcdir)
/regex
\
-I
$(top_srcdir)
/sql
\
-I
$(top_srcdir)
/sql
\
-I
$(srcdir)
-I
$(srcdir)
...
...
storage/example/Makefile.am
View file @
281fb1cf
...
@@ -20,7 +20,7 @@ MYSQLDATAdir = $(localstatedir)
...
@@ -20,7 +20,7 @@ MYSQLDATAdir = $(localstatedir)
MYSQLSHAREdir
=
$(pkgdatadir)
MYSQLSHAREdir
=
$(pkgdatadir)
MYSQLBASEdir
=
$(prefix)
MYSQLBASEdir
=
$(prefix)
MYSQLLIBdir
=
$(pkglibdir)
MYSQLLIBdir
=
$(pkglibdir)
INCLUDES
=
-I
$(top_srcdir)
/include
\
INCLUDES
=
-I
$(top_srcdir)
/include
-I
$(top_builddir)
/include
\
-I
$(top_srcdir)
/regex
\
-I
$(top_srcdir)
/regex
\
-I
$(top_srcdir)
/sql
\
-I
$(top_srcdir)
/sql
\
-I
$(srcdir)
-I
$(srcdir)
...
...
storage/innobase/Makefile.am
View file @
281fb1cf
...
@@ -98,13 +98,12 @@ libinnobase.a: $(libinnobase_a_LIBADD)
...
@@ -98,13 +98,12 @@ libinnobase.a: $(libinnobase_a_LIBADD)
-
rm
-f
$@
-
rm
-f
$@
if
test
"
$(host_os)
"
=
"netware"
;
\
if
test
"
$(host_os)
"
=
"netware"
;
\
then
\
then
\
$(lib
mysqld
_a_AR)
$@
$(libinnobase_a_LIBADD)
;
\
$(lib
innobase
_a_AR)
$@
$(libinnobase_a_LIBADD)
;
\
else
\
else
\
(
for
arc
in
$(libinnobase_a_LIBADD)
;
do
\
for
arc
in
$(libinnobase_a_LIBADD)
;
do
\
arpath
=
`
echo
$$
arc|sed
's|[^/]*$$||'
`
;
\
arpath
=
`
echo
$$
arc|sed
's|[^/]*$$||'
`
;
\
$(AR)
t
$$
arc|xargs
-n
1 find
$$
arpath
-name
;
\
$(AR)
t
$$
arc|sed
"s|^|
$$
arpath|"
;
\
$(AR)
t
$$
arc|xargs
-n
1 find
`
dirname
$$
arpath
`
-path
\*
/
`
basename
$$
arpath
`
/
\*
-name
;
\
done
|
sort
-u
| xargs
$(AR)
cq
$@
;
\
done
)
|
sort
-u
| xargs
$(AR)
cq
$@
;
\
$(RANLIB)
$@
;
\
$(RANLIB)
$@
;
\
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment