Check for dlopen() and AC_SUBST this.

1999-10-17  Martin Baulig  <martin@home-of-linux.org>

	* configure.in (DL_LIB): Check for dlopen() and AC_SUBST this.
This commit is contained in:
Martin Baulig
1999-10-17 21:36:00 +00:00
committed by Martin Baulig
parent 2174194bbd
commit 66dd76be8f
2 changed files with 19 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
1999-10-17 Martin Baulig <martin@home-of-linux.org>
* configure.in (DL_LIB): Check for dlopen() and AC_SUBST this.
1999-10-17 Martin Baulig <martin@home-of-linux.org> 1999-10-17 Martin Baulig <martin@home-of-linux.org>
* configure.in: Fixed typedef syntax for glibtop-config.h. * configure.in: Fixed typedef syntax for glibtop-config.h.

View File

@@ -200,6 +200,21 @@ AC_CHECK_HEADERS(memory.h)
AC_CHECK_HEADERS(string.h strings.h, break) AC_CHECK_HEADERS(string.h strings.h, break)
AC_REPLACE_FUNCS(strerror) AC_REPLACE_FUNCS(strerror)
dnl dlopen() and dlsym()
DL_LIB=
AC_CHECK_FUNCS(dlopen,,[
AC_CHECK_LIB(dl, dlopen, DL_LIB="-ldl", [
AC_CHECK_LIB(dld, shl_load, DL_LIB="-ldld", [
AC_CHECK_FUNCS(dlopen, DL_LIB="", DL_LIB="")
])
])
])
oLIBS="$LIBS"
LIBS="$LIBS $DL_LIB"
AC_CHECK_FUNCS(dlerror,,)
LIBS="$oLIBS"
AC_SUBST(DL_LIB)
dnl Solaris dnl Solaris
AC_CHECK_LIB(kstat, kstat_open) AC_CHECK_LIB(kstat, kstat_open)
AC_CHECK_FUNCS(getloadavg swapctl) AC_CHECK_FUNCS(getloadavg swapctl)