1 dnl Copyright (C) 2009 Sun Microsystems
2 dnl This file is free software; Sun Microsystems
3 dnl gives unlimited permission to copy and/or distribute it,
4 dnl with or without modifications, as long as this notice is preserved.
6 #--------------------------------------------------------------------
8 #--------------------------------------------------------------------
11 AC_DEFUN([_PANDORA_SEARCH_LIBDL],[
15 AC_CHECK_LIB(dl,dlopen)
16 AC_CHECK_FUNCS(dlopen)
21 AM_CONDITIONAL(HAVE_LIBDL, [test "x${ac_cv_func_dlopen}" = "xyes"])
24 AC_DEFUN([_PANDORA_HAVE_LIBDL],[
26 AC_ARG_ENABLE([libdl],
27 [AS_HELP_STRING([--disable-libdl],
28 [Build with libdl support @<:@default=on@:>@])],
29 [ac_enable_libdl="$enableval"],
30 [ac_enable_libdl="yes"])
36 AC_DEFUN([PANDORA_HAVE_LIBDL],[
37 AC_REQUIRE([_PANDORA_HAVE_LIBDL])
40 AC_DEFUN([_PANDORA_REQUIRE_LIBDL],[
44 AS_IF([test "$ac_cv_func_dlopen" != "yes"],[
45 AC_MSG_ERROR([libdl/dlopen() is required for ${PACKAGE}. On Debian this can be found in libc6-dev. On RedHat this can be found in glibc-devel.])
49 AC_DEFUN([PANDORA_REQUIRE_LIBDL],[
50 AC_REQUIRE([_PANDORA_REQUIRE_LIBDL])