summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2005-12-16 04:18:44 +0000
committerYang Tse <yangsita@gmail.com>2005-12-16 04:18:44 +0000
commita6a5bba0a982814c1f2a35699720a6849c879ae0 (patch)
tree30d1ce25d82b085d42f28bf0d653f68e045ce5fd /configure.ac
parent51581c034d2a56028b3da937fa809a490c13e168 (diff)
downloadcurl-a6a5bba0a982814c1f2a35699720a6849c879ae0.tar.gz
Experimental check for socklen_t CURL_CHECK_TYPE_SOCKLEN_T
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac33
1 files changed, 15 insertions, 18 deletions
diff --git a/configure.ac b/configure.ac
index 2de3128a7..a0eac1d40 100644
--- a/configure.ac
+++ b/configure.ac
@@ -290,23 +290,6 @@ dnl The actual use of the USE_MANUAL variable is done much later in this
dnl script to allow other actions to disable it as well.
dnl **********************************************************************
-dnl Make sure that our checks for headers windows.h winsock.h winsock2.h
-dnl and ws2tcpip.h take precedence over any other further check done later.
-dnl **********************************************************************
-
-dnl Do we have a compilable and valid windows.h header ?
-CURL_CHECK_HEADER_WINDOWS
-
-dnl Do we have a compilable and valid winsock.h header ?
-CURL_CHECK_HEADER_WINSOCK
-
-dnl Do we have a compilable and valid winsock2.h header ?
-CURL_CHECK_HEADER_WINSOCK2
-
-dnl Do we have a compilable and valid ws2tcpip.h header ?
-CURL_CHECK_HEADER_WS2TCPIP
-
-dnl **********************************************************************
dnl Checks for libraries.
dnl **********************************************************************
@@ -1411,7 +1394,18 @@ dnl **********************************************************************
dnl Checks for header files.
AC_HEADER_STDC
-dnl First check for the very most basic headers. Then we can use these
+dnl **********************************************************************
+dnl Make sure that our checks for headers windows.h winsock.h winsock2.h
+dnl and ws2tcpip.h take precedence over any other further check which
+dnl could be done later using AC_CHECK_HEADER or AC_CHECK_HEADERS.
+dnl **********************************************************************
+
+CURL_CHECK_HEADER_WINDOWS
+CURL_CHECK_HEADER_WINSOCK
+CURL_CHECK_HEADER_WINSOCK2
+CURL_CHECK_HEADER_WS2TCPIP
+
+dnl Now check for the very most basic headers. Then we can use these
dnl ones as default-headers when checking for the rest!
AC_CHECK_HEADERS(
sys/types.h \
@@ -1509,6 +1503,9 @@ fi
AC_CHECK_TYPE(ssize_t, ,
AC_DEFINE(ssize_t, int, [the signed version of size_t]))
+# Experimental check
+CURL_CHECK_TYPE_SOCKLEN_T
+
TYPE_SOCKLEN_T
TYPE_IN_ADDR_T