[sane-devel] [PATCH v2 02/14] bldchn, add checks for netdb.h and ws2tcpip.h

Ruediger Meier sweet_f_a at gmx.de
Mon Jan 23 23:05:47 UTC 2012


From: Ruediger Meier <ruediger.meier at ga-group.nl>

---
 configure                |    2 +-
 configure.in             |    2 +-
 include/sane/config.h.in |    6 ++++++
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index ba864b0..4c9dfcd 100755
--- a/configure
+++ b/configure
@@ -8009,7 +8009,7 @@ for ac_header in fcntl.h unistd.h libc.h sys/dsreq.h sys/select.h \
     sys/socket.h sys/io.h sys/hw.h sys/types.h linux/ppdev.h \
     dev/ppbus/ppi.h machine/cpufunc.h sys/bitypes.h sys/sem.h sys/poll.h \
     windows.h be/kernel/OS.h limits.h sys/ioctl.h asm/types.h\
-    netinet/in.h tiffio.h ifaddrs.h pwd.h getopt.h
+    netinet/in.h tiffio.h ifaddrs.h pwd.h getopt.h netdb.h ws2tcpip.h
 do :
   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
diff --git a/configure.in b/configure.in
index 6fac904..6eb3355 100644
--- a/configure.in
+++ b/configure.in
@@ -199,7 +199,7 @@ AC_CHECK_HEADERS(fcntl.h unistd.h libc.h sys/dsreq.h sys/select.h \
     sys/socket.h sys/io.h sys/hw.h sys/types.h linux/ppdev.h \
     dev/ppbus/ppi.h machine/cpufunc.h sys/bitypes.h sys/sem.h sys/poll.h \
     windows.h be/kernel/OS.h limits.h sys/ioctl.h asm/types.h\
-    netinet/in.h tiffio.h ifaddrs.h pwd.h getopt.h)
+    netinet/in.h tiffio.h ifaddrs.h pwd.h getopt.h netdb.h ws2tcpip.h)
 AC_CHECK_HEADERS([asm/io.h],,,[#include <sys/types.h>])
 
 SANE_CHECK_MISSING_HEADERS
diff --git a/include/sane/config.h.in b/include/sane/config.h.in
index 00c8669..afeb667 100644
--- a/include/sane/config.h.in
+++ b/include/sane/config.h.in
@@ -207,6 +207,9 @@
 /* Define to 1 if you have a working `mmap' system call. */
 #undef HAVE_MMAP
 
+/* Define to 1 if you have the <netdb.h> header file. */
+#undef HAVE_NETDB_H
+
 /* Define to 1 if you have the <netinet/in.h> header file. */
 #undef HAVE_NETINET_IN_H
 
@@ -441,6 +444,9 @@
 /* Define to 1 if you have the <winsock2.h> header file. */
 #undef HAVE_WINSOCK2_H
 
+/* Define to 1 if you have the <ws2tcpip.h> header file. */
+#undef HAVE_WS2TCPIP_H
+
 /* Define to 1 if you have the `_portaccess' function. */
 #undef HAVE__PORTACCESS
 
-- 
1.7.6.1




More information about the sane-devel mailing list