configure: Add check for dlinfo().

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2020-04-16 12:22:10 +02:00
parent c30d30d328
commit 3154cda6bd
3 changed files with 9 additions and 5 deletions

9
configure vendored
View File

@ -17864,12 +17864,13 @@ fi
ac_wine_check_funcs_save_LIBS="$LIBS"
LIBS="$LIBS $DL_LIBS"
for ac_func in dladdr
for ac_func in dladdr dlinfo
do :
ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
if test "x$ac_cv_func_dladdr" = xyes; then :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_DLADDR 1
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
fi

View File

@ -2182,7 +2182,7 @@ CFLAGS="$ac_save_CFLAGS"
dnl Check for -ldl
AC_SEARCH_LIBS(dlopen, dl)
WINE_CHECK_LIB_FUNCS(dladdr,[$DL_LIBS])
WINE_CHECK_LIB_FUNCS(dladdr dlinfo,[$DL_LIBS])
dnl Check for -lpoll for Mac OS X/Darwin
if test "$ac_cv_func_poll" = no

View File

@ -110,6 +110,9 @@
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define to 1 if you have the `dlinfo' function. */
#undef HAVE_DLINFO
/* Define to 1 if you have the <EGL/egl.h> header file. */
#undef HAVE_EGL_EGL_H