[MPlayer-dev-eng] Fix compilation with recent libav
Etienne Buira
etienne.buira at free.fr
Wed Jan 13 12:35:32 CET 2010
Hi all.
This patch fixes mplayer's compilation with recent changes from ffmpeg.
I am not an expert of mplayer's build system, so please double check
carefully.
Regards
-------------- next part --------------
Index: configure
===================================================================
--- configure (revision 30298)
+++ configure (working copy)
@@ -3100,6 +3100,41 @@
fi
+echocheck "netdb.h, getaddrinfo, struct addrinfo"
+cat > $TMPC << EOF
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netdb.h>
+int main(void) { struct addrinfo ai; (void) getaddrinfo(0, 0, 0, 0); return 0; }
+EOF
+cc_check && struct_addrinfo=yes
+echores "$struct_addrinfo"
+
+if test "x$struct_addrinfo" = "xyes"; then
+ def_addrinfo="#define HAVE_STRUCT_ADDRINFO 1
+#define HAVE_GETADDRINFO 1"
+else
+ def_addrinfo="#define HAVE_STRUCT_ADDRINFO 0
+#define HAVE_GETADDRINFO 0"
+fi
+
+
+echocheck "sockaddr_storage"
+cat > $TMPC << EOF
+#include <sys/socket.h>
+int main(void) { struct sockaddr_storage sas; return 0; }
+EOF
+cc_check && struct_sockaddr_storage=yes
+echores "$struct_sockaddr_storage"
+
+if test "x$struct_sockaddr_storage" = "xyes"; then
+ def_sockaddr_storage="#define HAVE_STRUCT_SOCKADDR_STORAGE 1"
+else
+ def_sockaddr_storage="#define HAVE_STRUCT_SOCKADDR_STORAGE 0"
+fi
+
+
+
echocheck "arpa/inet.h"
arpa_inet_h=no
def_arpa_inet_h='#define HAVE_ARPA_INET_H 0'
@@ -8907,6 +8942,8 @@
$def_smb
$def_socklen_t
$def_vstream
+$def_addrinfo
+$def_sockaddr_storage
/* libvo options */
More information about the MPlayer-dev-eng
mailing list