# HG changeset patch
# User diego
# Date 1233774262 0
# Node ID 18059e510f56a0332edb7252a46cbcbefc433fdb
# Parent  016656d0c9f6ef9620e593d0b4156fa206ed3a59
Add proper check for arpa/inet.h.

diff -r 016656d0c9f6 -r 18059e510f56 configure
--- a/configure	Wed Feb 04 18:34:39 2009 +0000
+++ b/configure	Wed Feb 04 19:04:22 2009 +0000
@@ -2918,6 +2918,17 @@
 fi
 
 
+echocheck "arpa/inet.h"
+arpa_inet_h=no
+def_arpa_inet_h='#define HAVE_ARPA_INET_H 0'
+cat > $TMPC << EOF
+#include <arpa/inet.h>
+int main(void) { return 0; }
+EOF
+cc_check && arpa_inet_h=yes && def_arpa_inet_h='#define HAVE_ARPA_INET_H 1'
+echores "$arpa_inet_h"
+
+
 echocheck "inet_pton()"
 def_inet_pton='#define HAVE_INET_PTON 0'
 inet_pton=no
@@ -8573,6 +8584,7 @@
 $_def_libswscale_a
 $_def_libswscale_so
 
+$def_arpa_inet_h
 $def_bswap
 $_def_dcbzl
 $def_dos_paths
@@ -8595,11 +8607,6 @@
 #define CONFIG_SWSCALE 1
 #define CONFIG_GRAY 0
 
-#ifdef __MINGW32__
-#define HAVE_ARPA_INET_H 0
-#else
-#define HAVE_ARPA_INET_H 1
-#endif
 #define HAVE_POLL_H 1
 #define HAVE_PPC4XX 0