Commit 7365ef12 authored by Vasil Dimov's avatar Vasil Dimov

Fix Bug#59327 Fix autoconf usage for innodb_plugin

AC_CHECK_FUNCS(f1 f2 f3, ACTION_IF_PRESENT)
ACTION_IF_PRESENT is executed if any of f1, f2 or f3 is present.
Fix this misusage, we want the action to be executed if all of the
functions are present.
parent 5ef429fd
......@@ -139,16 +139,20 @@ MYSQL_PLUGIN_ACTIONS(innodb_plugin, [
)
AC_MSG_CHECKING(whether Solaris libc atomic functions are available)
# either define HAVE_IB_SOLARIS_ATOMICS or not
AC_CHECK_FUNCS(atomic_cas_ulong \
atomic_cas_32 \
atomic_cas_64 \
atomic_add_long_nv \
atomic_swap_uchar,
AC_DEFINE([HAVE_IB_SOLARIS_ATOMICS], [1],
[Define to 1 if Solaris libc atomic functions \
are available])
# Define HAVE_IB_SOLARIS_ATOMICS if _all_ of the following
# functions are present.
AC_CHECK_FUNC(atomic_add_long_nv,
AC_CHECK_FUNC(atomic_cas_32,
AC_CHECK_FUNC(atomic_cas_64,
AC_CHECK_FUNC(atomic_cas_ulong,
AC_CHECK_FUNC(atomic_swap_uchar,
AC_DEFINE([HAVE_IB_SOLARIS_ATOMICS], [1],
[Define to 1 if Solaris libc atomic functions are available]
)
)
)
)
)
)
AC_MSG_CHECKING(whether pthread_t can be used by Solaris libc atomic functions)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment