summaryrefslogtreecommitdiff
path: root/plugin/auth/plug.in
blob: ce31465b056a89cff57087dac8c9d96475bac1af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
MYSQL_PLUGIN(auth, [Collection of Authentication Plugins],
                   [Collection of Authentication Plugins])
MYSQL_PLUGIN_DYNAMIC(auth, [dialog.la])
MYSQL_PLUGIN_ACTIONS(auth,[
AC_COMPILE_IFELSE([
  AC_LANG_PROGRAM([[
#define _GNU_SOURCE
#include <sys/socket.h>
]],[[
  struct ucred cred;
  getsockopt(0, SOL_SOCKET, SO_PEERCRED, &cred, 0);
]])],have_peercred=yes)
AM_CONDITIONAL(HAVE_PEERCRED, test x$have_peercred = xyes)
])
AM_CONDITIONAL(HAVE_PEERCRED, false)