Don't abort if dlopen cannot be found; it's not like it's going to break
authorBrian Gaeke <gaeke@uiuc.edu>
Tue, 7 Oct 2003 05:03:36 +0000 (05:03 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Tue, 7 Oct 2003 05:03:36 +0000 (05:03 +0000)
everything.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8916 91177308-0d34-0410-b5e6-96231b3b80d8

autoconf/configure.ac

index a004dc4a4b0273c62cb398952fa5f59a2d96393e..650ac10501a0f561d5bd0d68a1a6c9e4bde64020 100644 (file)
@@ -405,8 +405,8 @@ dnl **************************************************************************
 dnl libelf is for sparc only; we can ignore it if we don't have it
 AC_CHECK_LIB(elf, elf_begin)
 
-dnl dlopen() is required.  If we don't find it, quit.
-AC_SEARCH_LIBS(dlopen,dl,,AC_MSG_ERROR([dlopen() required but not found]))
+dnl dlopen() is required for plugin support.
+AC_SEARCH_LIBS(dlopen,dl,AC_DEFINE([HAVE_DLOPEN],[1]),AC_MSG_WARN([dlopen() not found - disabling plugin support]))
 
 dnl mallinfo is optional; the code can compile (minus features) without it
 AC_SEARCH_LIBS(mallinfo,malloc,AC_DEFINE([HAVE_MALLINFO],[1]))