ate: Thu, 16 Jan 2003 13:48:31 +0200
authorSam Lantinga <slouken@libsdl.org>
Mon, 20 Jan 2003 01:37:07 +0000
changeset 570 04d6411da49d
parent 569 e8063c656626
child 571 8e3ce997621c
ate: Thu, 16 Jan 2003 13:48:31 +0200 From: "Mike Gorchak" added support for checking libtool's version of libdl for dlopen.
configure.in
--- a/configure.in	Mon Jan 20 01:36:28 2003 +0000
+++ b/configure.in	Mon Jan 20 01:37:07 2003 +0000
@@ -1044,6 +1044,9 @@
         if test x$video_opengl = xyes; then
             CFLAGS="$CFLAGS -DHAVE_OPENGL"
             SYSTEM_LIBS="$SYSTEM_LIBS -lGL"
+            if test x$use_dlopen != xyes; then
+                AC_CHECK_LIB(ltdl, dlopen, SYSTEM_LIBS="$SYSTEM_LIBS -lltdl")
+            fi
         fi
     fi
 }
@@ -1558,7 +1561,7 @@
 
         if test x$use_dlopen = xyes; then
             CFLAGS="$CFLAGS -DUSE_DLOPEN"
-            AC_CHECK_LIB(dl, dlopen, SYSTEM_LIBS="$SYSTEM_LIBS -ldl")
+            AC_CHECK_LIB(dl, dlopen, SYSTEM_LIBS="$SYSTEM_LIBS -ldl", AC_CHECK_LIB(ltdl, dlopen, SYSTEM_LIBS="$SYSTEM_LIBS -lltdl"))
         fi
     fi
 }