2
dnl Copyright (C) 1993-2003 Free Software Foundation, Inc.
3
dnl This file is free software, distributed under the terms of the GNU
4
dnl General Public License. As a special exception to the GNU General
5
dnl Public License, this file may be distributed as part of a program
6
dnl that contains a configuration script generated by Autoconf, under
7
dnl the same distribution terms as the rest of that program.
9
dnl From Bruno Haible, Marcus Daniels, Sam Steingold.
13
AC_DEFUN([CL_DYNLOAD],
14
[dnl Some systems have dlopen in libc, some have it in libdl.
15
AC_CHECK_HEADERS(dlfcn.h)
16
if test "$ac_cv_header_dlfcn_h" = yes; then
17
AC_SEARCH_LIBS(dlopen, dl)
18
AC_CHECK_FUNCS(dlopen dlsym dlerror dlclose)