diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-28 16:16:12 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-28 16:16:12 +0000 |
commit | 6c673c55b78cae1137324e192be378f20d03f951 (patch) | |
tree | 85e0a534846ebc53c8b19b2c2caa265617fe562e | |
parent | ffbfc284e574b37c4680f6da9afb1489e35d4eff (diff) | |
download | libextractor-6c673c55b78cae1137324e192be378f20d03f951.tar.gz libextractor-6c673c55b78cae1137324e192be378f20d03f951.zip |
improved w32 winsock detection
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | configure.ac | 8 |
2 files changed, 10 insertions, 1 deletions
@@ -1,3 +1,6 @@ | |||
1 | Mon Nov 28 17:15:59 CET 2011 | ||
2 | Improved winsock2 detection. -LRN | ||
3 | |||
1 | Mon Nov 28 12:17:42 CET 2011 | 4 | Mon Nov 28 12:17:42 CET 2011 |
2 | Fixing compiler warnings, cleaning up ASF plugin. Finishing | 5 | Fixing compiler warnings, cleaning up ASF plugin. Finishing |
3 | Matroska plugin. -CG | 6 | Matroska plugin. -CG |
diff --git a/configure.ac b/configure.ac index 90ac4de..f07b944 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -93,7 +93,13 @@ mingw*) | |||
93 | AC_DEFINE_UNQUOTED(MINGW,1,[This is a MinGW system]) | 93 | AC_DEFINE_UNQUOTED(MINGW,1,[This is a MinGW system]) |
94 | AC_DEFINE_UNQUOTED(WINDOWS,1,[This is a Windows system]) | 94 | AC_DEFINE_UNQUOTED(WINDOWS,1,[This is a Windows system]) |
95 | AC_CHECK_LIB(intl, gettext) | 95 | AC_CHECK_LIB(intl, gettext) |
96 | AC_CHECK_LIB(ws2_32, _head_libws2_32_a,,[AC_MSG_ERROR([libextractor requires Winsock2])]) | 96 | mingw32_ws2=yes |
97 | mingw64_ws2=yes | ||
98 | AC_CHECK_LIB(ws2_32, _head_libws2_32_a,,mingw32_ws2=no) | ||
99 | AC_CHECK_LIB(ws2_32, __imp_socket,,mingw64_ws2=no) | ||
100 | if test "x$mingw32_ws2" = "xno" -a "x$mingw64_ws2" = "xno"; then | ||
101 | AC_MSG_ERROR([libextractor requires Winsock2]) | ||
102 | fi | ||
97 | AC_CHECK_LIB(plibc, plibc_init,,[AC_MSG_ERROR([libextractor requires PlibC])]) | 103 | AC_CHECK_LIB(plibc, plibc_init,,[AC_MSG_ERROR([libextractor requires PlibC])]) |
98 | LDFLAGS="$LDFLAGS -Wl,-no-undefined -Wl,--export-all-symbols" | 104 | LDFLAGS="$LDFLAGS -Wl,-no-undefined -Wl,--export-all-symbols" |
99 | LIBSOLD=$LIBS | 105 | LIBSOLD=$LIBS |