64 lines
2.1 KiB
Diff
64 lines
2.1 KiB
Diff
From 516abee7fc169d8d7ec4184b45d69c3bddccadd5 Mon Sep 17 00:00:00 2001
|
|
From: Christoph Reiter <reiter.christoph@gmail.com>
|
|
Date: Sun, 25 Jul 2021 13:54:12 +0200
|
|
Subject: [PATCH 104/N] build: Disable checks for dlopen/dlfcn
|
|
|
|
While it is (potentially) available with mingw we don't want to use it, so skip any
|
|
checks for it.
|
|
---
|
|
configure.ac | 20 +++++++++++++++++---
|
|
1 file changed, 17 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
|
index e16948b..ced0d09 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -2427,7 +2427,7 @@ dnl AC_MSG_RESULT($cpp_type)
|
|
|
|
# checks for header files
|
|
AC_HEADER_STDC
|
|
-AC_CHECK_HEADERS(asm/types.h crypt.h conio.h direct.h dlfcn.h errno.h \
|
|
+AC_CHECK_HEADERS(asm/types.h crypt.h conio.h direct.h errno.h \
|
|
fcntl.h grp.h \
|
|
ieeefp.h io.h langinfo.h libintl.h process.h \
|
|
shadow.h signal.h stropts.h termios.h \
|
|
@@ -2442,6 +2442,12 @@ libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
|
|
linux/tipc.h linux/random.h spawn.h util.h alloca.h endian.h \
|
|
sys/endian.h sys/sysmacros.h linux/auxvec.h sys/auxv.h linux/memfd.h linux/wait.h sys/memfd.h \
|
|
sys/mman.h sys/eventfd.h)
|
|
+
|
|
+case $host in
|
|
+ *-*-mingw*) ;;
|
|
+ *) AC_CHECK_HEADERS([dlfcn.h]);;
|
|
+esac
|
|
+
|
|
AC_HEADER_DIRENT
|
|
AC_HEADER_MAJOR
|
|
|
|
@@ -3155,7 +3161,12 @@ AC_MSG_RESULT($SHLIBS)
|
|
|
|
# checks for libraries
|
|
AC_CHECK_LIB(sendfile, sendfile)
|
|
-AC_CHECK_LIB(dl, dlopen) # Dynamic linking for SunOS/Solaris and SYSV
|
|
+
|
|
+case $host in
|
|
+ *-*-mingw*) ;;
|
|
+ *) AC_CHECK_LIB(dl, dlopen) ;; # Dynamic linking for SunOS/Solaris and SYSV
|
|
+esac
|
|
+
|
|
AC_CHECK_LIB(dld, shl_load) # Dynamic linking for HP-UX
|
|
|
|
# checks for uuid.h location
|
|
@@ -5039,7 +5050,10 @@ then
|
|
[define to 1 if your sem_getvalue is broken.])
|
|
fi
|
|
|
|
-AC_CHECK_DECLS([RTLD_LAZY, RTLD_NOW, RTLD_GLOBAL, RTLD_LOCAL, RTLD_NODELETE, RTLD_NOLOAD, RTLD_DEEPBIND, RTLD_MEMBER], [], [], [[#include <dlfcn.h>]])
|
|
+case $host in
|
|
+ *-*-mingw*) ;;
|
|
+ *) AC_CHECK_DECLS([RTLD_LAZY, RTLD_NOW, RTLD_GLOBAL, RTLD_LOCAL, RTLD_NODELETE, RTLD_NOLOAD, RTLD_DEEPBIND, RTLD_MEMBER], [], [], [[#include <dlfcn.h>]]);;
|
|
+esac
|
|
|
|
# determine what size digit to use for Python's longs
|
|
AC_MSG_CHECKING([digit size for Python's longs])
|