ate: Thu, 16 Jan 2003 13:48:31 +0200
authorSam Lantinga <slouken@libsdl.org>
Mon, 20 Jan 2003 01:37:07 +0000
changeset 57004d6411da49d
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
     1.1 --- a/configure.in	Mon Jan 20 01:36:28 2003 +0000
     1.2 +++ b/configure.in	Mon Jan 20 01:37:07 2003 +0000
     1.3 @@ -1044,6 +1044,9 @@
     1.4          if test x$video_opengl = xyes; then
     1.5              CFLAGS="$CFLAGS -DHAVE_OPENGL"
     1.6              SYSTEM_LIBS="$SYSTEM_LIBS -lGL"
     1.7 +            if test x$use_dlopen != xyes; then
     1.8 +                AC_CHECK_LIB(ltdl, dlopen, SYSTEM_LIBS="$SYSTEM_LIBS -lltdl")
     1.9 +            fi
    1.10          fi
    1.11      fi
    1.12  }
    1.13 @@ -1558,7 +1561,7 @@
    1.14  
    1.15          if test x$use_dlopen = xyes; then
    1.16              CFLAGS="$CFLAGS -DUSE_DLOPEN"
    1.17 -            AC_CHECK_LIB(dl, dlopen, SYSTEM_LIBS="$SYSTEM_LIBS -ldl")
    1.18 +            AC_CHECK_LIB(dl, dlopen, SYSTEM_LIBS="$SYSTEM_LIBS -ldl", AC_CHECK_LIB(ltdl, dlopen, SYSTEM_LIBS="$SYSTEM_LIBS -lltdl"))
    1.19          fi
    1.20      fi
    1.21  }