Alexandre Julliard : configure: Add check for dlinfo().
Alexandre Julliard
julliard at winehq.org
Thu Apr 16 16:45:12 CDT 2020
Module: wine
Branch: master
Commit: 3154cda6bda9f8b43ea17304caecc5ecf46d8793
URL: https://source.winehq.org/git/wine.git/?a=commit;h=3154cda6bda9f8b43ea17304caecc5ecf46d8793
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu Apr 16 12:22:10 2020 +0200
configure: Add check for dlinfo().
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
configure | 9 +++++----
configure.ac | 2 +-
include/config.h.in | 3 +++
3 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/configure b/configure
index b41f1c797f..87cd2906e6 100755
--- a/configure
+++ b/configure
@@ -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
diff --git a/configure.ac b/configure.ac
index 241ea82d83..d5c67e3879 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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
diff --git a/include/config.h.in b/include/config.h.in
index 8cbf8db09a..24a037a50e 100644
--- a/include/config.h.in
+++ b/include/config.h.in
@@ -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
More information about the wine-cvs
mailing list