Juan Lang : ws2_32: Test for linux/irda.h.
Alexandre Julliard
julliard at winehq.org
Thu Aug 13 10:41:35 CDT 2009
Module: wine
Branch: master
Commit: 0ce420de733bb86b7542993e9601bbefa07e8820
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0ce420de733bb86b7542993e9601bbefa07e8820
Author: Juan Lang <juan.lang at gmail.com>
Date: Wed Aug 12 09:14:16 2009 -0700
ws2_32: Test for linux/irda.h.
---
configure | 10 ++++++----
configure.ac | 2 +-
include/config.h.in | 3 +++
3 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/configure b/configure
index bff209f..3c3ddf2 100755
--- a/configure
+++ b/configure
@@ -5708,9 +5708,10 @@ fi
done
-for ac_header in linux/ipx.h
+for ac_header in linux/ipx.h linux/irda.h
do :
- ac_fn_c_check_header_compile "$LINENO" "linux/ipx.h" "ac_cv_header_linux_ipx_h" "#include <sys/types.h>
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
#ifdef HAVE_ASM_TYPES_H
# include <asm/types.h>
#endif
@@ -5721,9 +5722,10 @@ do :
# include <linux/types.h>
#endif
"
-if test "x$ac_cv_header_linux_ipx_h" = x""yes; then :
+eval as_val=\$$as_ac_Header
+ if test "x$as_val" = x""yes; then :
cat >>confdefs.h <<_ACEOF
-#define HAVE_LINUX_IPX_H 1
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
fi
diff --git a/configure.ac b/configure.ac
index e637722..ef808d8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -479,7 +479,7 @@ AC_CHECK_HEADERS([netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netin
#include <netinet/tcp_timer.h>
#endif])
-AC_CHECK_HEADERS([linux/ipx.h],,,
+AC_CHECK_HEADERS([linux/ipx.h linux/irda.h],,,
[#include <sys/types.h>
#ifdef HAVE_ASM_TYPES_H
# include <asm/types.h>
diff --git a/include/config.h.in b/include/config.h.in
index 56d6fd9..293c489 100644
--- a/include/config.h.in
+++ b/include/config.h.in
@@ -396,6 +396,9 @@
/* Define to 1 if you have the <linux/ipx.h> header file. */
#undef HAVE_LINUX_IPX_H
+/* Define to 1 if you have the <linux/irda.h> header file. */
+#undef HAVE_LINUX_IRDA_H
+
/* Define to 1 if you have the <linux/joystick.h> header file. */
#undef HAVE_LINUX_JOYSTICK_H
More information about the wine-cvs
mailing list