@@ -2832,7 +2832,7 @@ AC_DEFINE(STDC_HEADERS, 1, [Define to 1 if you have the ANSI C header files.])
2832
2832
2833
2833
# checks for header files
2834
2834
AC_CHECK_HEADERS ( [ \
2835
- alloca.h asm/types.h bluetooth.h conio.h crypt.h direct.h dlfcn.h endian.h errno.h fcntl.h grp.h \
2835
+ alloca.h asm/types.h bluetooth.h conio.h crypt.h direct.h endian.h errno.h fcntl.h grp.h \
2836
2836
ieeefp.h io.h langinfo.h libintl.h libutil.h linux/auxvec.h sys/auxv.h linux/memfd.h \
2837
2837
linux/random.h linux/soundcard.h \
2838
2838
linux/tipc.h linux/wait.h netdb.h netinet/in.h netpacket/packet.h poll.h process.h pty.h \
@@ -2844,6 +2844,13 @@ AC_CHECK_HEADERS([ \
2844
2844
sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h sys/xattr.h sysexits.h syslog.h \
2845
2845
termios.h util.h utime.h utmp.h \
2846
2846
] )
2847
+
2848
+ case $host in
2849
+ *-*-mingw*) ;;
2850
+ *) AC_CHECK_HEADERS ( [ dlfcn.h] ) ;;
2851
+ esac
2852
+
2853
+
2847
2854
AC_HEADER_DIRENT
2848
2855
AC_HEADER_MAJOR
2849
2856
@@ -3582,7 +3589,12 @@ AC_MSG_RESULT($SHLIBS)
3582
3589
3583
3590
# checks for libraries
3584
3591
AC_CHECK_LIB ( sendfile , sendfile )
3585
- AC_CHECK_LIB ( dl , dlopen ) # Dynamic linking for SunOS/Solaris and SYSV
3592
+
3593
+ case $host in
3594
+ *-*-mingw*) ;;
3595
+ *) AC_CHECK_LIB ( dl , dlopen ) ;; # Dynamic linking for SunOS/Solaris and SYSV
3596
+ esac
3597
+
3586
3598
AC_CHECK_LIB ( dld , shl_load ) # Dynamic linking for HP-UX
3587
3599
3588
3600
@@ -5847,7 +5859,10 @@ AS_VAR_IF([ac_cv_broken_sem_getvalue], [yes], [
5847
5859
)
5848
5860
] )
5849
5861
5850
- AC_CHECK_DECLS ( [ RTLD_LAZY, RTLD_NOW, RTLD_GLOBAL, RTLD_LOCAL, RTLD_NODELETE, RTLD_NOLOAD, RTLD_DEEPBIND, RTLD_MEMBER] , [ ] , [ ] , [ [ #include <dlfcn.h>] ] )
5862
+ case $host in
5863
+ *-*-mingw*) ;;
5864
+ *) AC_CHECK_DECLS ( [ RTLD_LAZY, RTLD_NOW, RTLD_GLOBAL, RTLD_LOCAL, RTLD_NODELETE, RTLD_NOLOAD, RTLD_DEEPBIND, RTLD_MEMBER] , [ ] , [ ] , [ [ #include <dlfcn.h>] ] ) ;;
5865
+ esac
5851
5866
5852
5867
# determine what size digit to use for Python's longs
5853
5868
AC_MSG_CHECKING ( [ digit size for Python's longs] )
0 commit comments