Merge lp:~tangent-org/libmemcached/1.0-build/ Build: jenkins-Libmemcached-187
[m6w6/libmemcached] / m4 / ax_dlopen.m4
1 #serial 2
2
3 AC_DEFUN([AX_DLOPEN],
4 [AS_IF([test "x$enable_shared" = xyes],
5 [AX_CHECK_LIBRARY([DL],[dlfcn.h],[dl],
6 [AC_DEFINE([HAVE_LIBDL],[1],[Have dlopen])
7 AC_CHECK_LIB([dl],[dlopen],[AC_DEFINE([HAVE_DLOPEN],[1],[Have dlopen])])
8 AC_CHECK_LIB([dl],[dladdr],[AC_DEFINE([HAVE_DLADDR],[1],[Have dladdr])])])])
9 ])
10