summaryrefslogtreecommitdiff
path: root/m4/dl.m4
diff options
context:
space:
mode:
authorMatt Messier <mmessier@grapetv.org>2007-05-09 15:25:05 -0400
committerMatt Messier <mmessier@grapetv.org>2007-05-09 15:25:05 -0400
commit88cb45ef27eb73eec0731074d59bf051b2b35f4c (patch)
tree15d69b119d0d51e1dd3b76ff9f5490dd081e2ca4 /m4/dl.m4
parent93195afdbb3667f1e9d28a00fa2e03e0ae40c13b (diff)
downloadxine-lib-88cb45ef27eb73eec0731074d59bf051b2b35f4c.tar.gz
xine-lib-88cb45ef27eb73eec0731074d59bf051b2b35f4c.tar.bz2
Clean up input plugin configuration checks
-- Split input plugin checks out of configure.ac into m4/input.m4 -- Move m4/vcd.m4 (previously split out from configure.ac) into m4/input.m4 -- Fold m4/dl.m4 into configure.ac -- Various miscellaneous cleanups throughout configure.ac and m4/*.m4
Diffstat (limited to 'm4/dl.m4')
-rw-r--r--m4/dl.m453
1 files changed, 0 insertions, 53 deletions
diff --git a/m4/dl.m4 b/m4/dl.m4
deleted file mode 100644
index 30ea00b1c..000000000
--- a/m4/dl.m4
+++ /dev/null
@@ -1,53 +0,0 @@
-dnl
-dnl Check for dlopen symbol and set DYNAMIC_LD_LIBS.
-dnl
-dnl AM_DL()
-dnl
-
-AC_DEFUN([AM_DL], [
- AC_CHECK_LIB(c, dlopen,
- [DYNAMIC_LD_LIBS=""
- have_dl=yes])
-
- if test x$have_dl != "xyes"; then
- AC_CHECK_LIB(dl, dlopen,
- [DYNAMIC_LD_LIBS="-ldl"
- have_dl=yes])
- fi
-
- if test x$have_dl != "xyes"; then
- AC_MSG_CHECKING(for dlopen under win32)
- AC_LANG_PUSH([C])
-
- ac_save_CPPFLAGS="$CPPFLAGS"
- ac_save_LIBS="$LIBS"
- CPPFLAGS="-I${srcdir}/win32/include $CPPFLAGS"
- LIBS="$LIBS -lkernel32"
- AC_COMPILE_IFELSE([
-#include <stddef.h>
-#include <dlfcn.h>
-
-int main() {
- dlopen(NULL, 0);
- return 0;
-}
-],
- [DYNAMIC_LD_LIBS=-lkernel32
- have_dl=yes
- AC_MSG_RESULT(yes)],
- AC_MSG_RESULT(no)
- )
-
- CPPFLAGS=$ac_save_CPPFLAGS
- LIBS=$ac_save_LIBS
-
- AC_LANG_POP([C])
- fi
-
- if test x$have_dl != "xyes"; then
- AC_MSG_ERROR(dynamic linker needed)
- fi
-
- AC_SUBST(DYNAMIC_LD_LIBS)
-
-])