* libtool.m4: Prefer shl_load to dlopen on HP-UX because dlopen

won't work properly without a patch.
This commit is contained in:
Albert Chin-A-Young 2001-06-25 00:30:52 +00:00 committed by Gary V. Vaughan
parent c36bb3bdd9
commit 7b4a5b764d
2 changed files with 13 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2001-06-25 Albert Chin-A-Young <china@thewrittenword.com>
* libtool.m4: Prefer shl_load to dlopen on HP-UX because dlopen
won't work properly without a patch.
2001-06-25 Daniel Harvey <daniel@amristar.com.au>
* libtool.m4 (ltdll_cmds): [$]0 doesn't appear to translate through

15
libtool.m4 vendored
View File

@ -699,13 +699,14 @@ else
;;
*)
AC_CHECK_LIB(dl, dlopen, [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
[AC_CHECK_FUNC(dlopen, lt_cv_dlopen="dlopen",
[AC_CHECK_FUNC(shl_load, lt_cv_dlopen="shl_load",
[AC_CHECK_LIB(svld, dlopen,
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
[AC_CHECK_LIB(dld, shl_load,
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
AC_CHECK_FUNC(shl_load, lt_cv_dlopen="shl_load",
[AC_CHECK_LIB(dld, shl_load,
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"],
[AC_CHECK_LIB(dl, dlopen,
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
[AC_CHECK_FUNC(dlopen, lt_cv_dlopen="dlopen",
[AC_CHECK_LIB(svld, dlopen,
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"])
])
])
])