[MPlayer-cvslog] r27490 - trunk/configure
diego
subversion at mplayerhq.hu
Fri Aug 29 18:20:35 CEST 2008
Author: diego
Date: Fri Aug 29 18:20:35 2008
New Revision: 27490
Log:
Implement check for closesocket(), needed by libavformat, fixes Bugzilla #1257.
Modified:
trunk/configure
Modified: trunk/configure
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Fri Aug 29 18:20:35 2008
@@ -2894,6 +2894,23 @@ fi
echores "$_socklen_t"
+echocheck "closesocket()"
+_closesocket=no
+for header in "arpa/inet.h" "winsock2.h" ; do
+ cat > $TMPC << EOF
+#include <$header>
+int main(void) { closesocket(); return 0; }
+EOF
+ cc_check && _closesocket=yes && break
+done
+if test "$_closesocket" = yes ; then
+ _def_closesocket='#define HAVE_CLOSESOCKET 1'
+else
+ _def_closesocket='#undef HAVE_CLOSESOCKET'
+fi
+echores "$_closesocket"
+
+
echocheck "network"
# FIXME network check
if test "$_network" = yes ; then
@@ -8625,6 +8642,9 @@ $_def_socklen_t
typedef int socklen_t;
#endif
+/* closesocket() support */
+$_def_closesocket
+
/* enables / disables cdparanoia support */
$_def_cdparanoia
$_def_cddb
More information about the MPlayer-cvslog
mailing list