From: Alexandre Oliva Date: Mon, 4 Sep 2000 01:41:57 +0000 (+0000) Subject: * ltdl.m4 (HAVE_LIBDL): Look for dlopen in -lsvld. X-Git-Tag: multi-language-merge-point~153 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59d3a4c435edce9b0558bd0c0f4a5bac0362aaa1;p=thirdparty%2Flibtool.git * ltdl.m4 (HAVE_LIBDL): Look for dlopen in -lsvld. * ltconfig.in: Likewise. --- diff --git a/ChangeLog b/ChangeLog index c3e1c2998..c83549e57 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2000-09-03 Alexandre Oliva + * ltdl.m4 (HAVE_LIBDL): Look for dlopen in -lsvld. + * ltconfig.in: Likewise. + * tests/mdemo-exec.test: Modify failure message. * ltmain.in (newdlprefiles): Use dlname if it's available and diff --git a/ltconfig.in b/ltconfig.in index 86d487893..db8bf2029 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -1556,6 +1556,45 @@ if test "X$ac_cv_func_dlopen" = Xyes; then lt_cv_dlopen="dlopen" else echo "$ac_t""no" 1>&6 +echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6 +echo "$progname:@LINENO@: checking for dlopen in -lsvld" >&5 +if test "X${ac_cv_lib_svld_dlopen+set}" = Xset; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lsvld $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_lib_svld_dlopen=yes +else + echo "$progname: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_lib_svld_dlopen=no +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if test "X$ac_cv_lib_svld_dlopen" = Xyes; then + echo "$ac_t""yes" 1>&6 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" +else + echo "$ac_t""no" 1>&6 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6 echo "$progname:@LINENO@: checking for dld_link in -ldld" >&5 if test "X${ac_cv_lib_dld_dld_link+set}" = Xset; then @@ -1697,6 +1736,8 @@ fi fi +fi + fi if test "x$lt_cv_dlopen" != xno; then diff --git a/ltdl.m4 b/ltdl.m4 index 3a7562c51..a2bcb46ae 100644 --- a/ltdl.m4 +++ b/ltdl.m4 @@ -161,7 +161,10 @@ AC_DEFUN(AC_LTDL_DLLIB, AC_CHECK_LIB(dl, dlopen, [AC_DEFINE(HAVE_LIBDL, 1, [Define if you have the libdl library or equivalent. ]) LIBADD_DL="-ldl"], [AC_CHECK_FUNC(dlopen, [AC_DEFINE(HAVE_LIBDL, 1, - [Define if you have the libdl library or equivalent.])])]) + [Define if you have the libdl library or equivalent.])], +[AC_CHECK_LIB(svld, dlopen, [AC_DEFINE(HAVE_LIBDL, 1, + [Define if you have the libdl library or equivalent.]) LIBADD_DL="-lsvld"] +)])]) AC_CHECK_FUNC(shl_load, [AC_DEFINE(HAVE_SHL_LOAD, 1, [Define if you have the shl_load function.])], [AC_CHECK_LIB(dld, shl_load,