|
|
@ -589,7 +589,7 @@ AC_DEFUN([CURL_CHECK_FUNC_GETNAMEINFO], [ |
|
|
|
done |
|
|
|
done |
|
|
|
done |
|
|
|
done |
|
|
|
done |
|
|
|
done |
|
|
|
]) # AC_CACHE_CHECK |
|
|
|
]) # AC-CACHE-CHECK |
|
|
|
if test "$curl_cv_func_getnameinfo_args" = "unknown"; then |
|
|
|
if test "$curl_cv_func_getnameinfo_args" = "unknown"; then |
|
|
|
AC_MSG_WARN([Cannot find proper types to use for getnameinfo args]) |
|
|
|
AC_MSG_WARN([Cannot find proper types to use for getnameinfo args]) |
|
|
|
AC_MSG_WARN([HAVE_GETNAMEINFO will not be defined]) |
|
|
|
AC_MSG_WARN([HAVE_GETNAMEINFO will not be defined]) |
|
|
@ -647,7 +647,7 @@ AC_DEFUN([CURL_CHECK_FUNC_GETNAMEINFO], [ |
|
|
|
ac_cv_func_getnameinfo="yes" |
|
|
|
ac_cv_func_getnameinfo="yes" |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
]) # AC_DEFUN |
|
|
|
]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dnl TYPE_SOCKADDR_STORAGE |
|
|
|
dnl TYPE_SOCKADDR_STORAGE |
|
|
@ -751,7 +751,7 @@ AC_DEFUN([CURL_CHECK_NI_WITHSCOPEID], [ |
|
|
|
#else |
|
|
|
#else |
|
|
|
return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */ |
|
|
|
return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */ |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
]]) # AC_LANG_PROGRAM |
|
|
|
]]) # AC-LANG-PROGRAM |
|
|
|
],[ |
|
|
|
],[ |
|
|
|
# Exit code == 0. Program worked. |
|
|
|
# Exit code == 0. Program worked. |
|
|
|
ac_cv_working_ni_withscopeid="yes" |
|
|
|
ac_cv_working_ni_withscopeid="yes" |
|
|
@ -773,16 +773,16 @@ AC_DEFUN([CURL_CHECK_NI_WITHSCOPEID], [ |
|
|
|
ac_cv_working_ni_withscopeid="yes" |
|
|
|
ac_cv_working_ni_withscopeid="yes" |
|
|
|
],[ |
|
|
|
],[ |
|
|
|
ac_cv_working_ni_withscopeid="no" |
|
|
|
ac_cv_working_ni_withscopeid="no" |
|
|
|
]) # AC_COMPILE_IFELSE |
|
|
|
]) # AC-COMPILE-IFELSE |
|
|
|
]) # AC_RUN_IFELSE |
|
|
|
]) # AC-RUN-IFELSE |
|
|
|
]) # AC_CACHE_CHECK |
|
|
|
]) # AC-CACHE-CHECK |
|
|
|
case "$ac_cv_working_ni_withscopeid" in |
|
|
|
case "$ac_cv_working_ni_withscopeid" in |
|
|
|
yes) |
|
|
|
yes) |
|
|
|
AC_DEFINE(HAVE_NI_WITHSCOPEID, 1, |
|
|
|
AC_DEFINE(HAVE_NI_WITHSCOPEID, 1, |
|
|
|
[Define to 1 if NI_WITHSCOPEID exists and works.]) |
|
|
|
[Define to 1 if NI_WITHSCOPEID exists and works.]) |
|
|
|
;; |
|
|
|
;; |
|
|
|
esac |
|
|
|
esac |
|
|
|
]) # AC_DEFUN |
|
|
|
]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dnl CURL_CHECK_FUNC_RECV |
|
|
|
dnl CURL_CHECK_FUNC_RECV |
|
|
@ -888,7 +888,7 @@ AC_DEFUN([CURL_CHECK_FUNC_RECV], [ |
|
|
|
done |
|
|
|
done |
|
|
|
done |
|
|
|
done |
|
|
|
done |
|
|
|
done |
|
|
|
]) # AC_CACHE_CHECK |
|
|
|
]) # AC-CACHE-CHECK |
|
|
|
if test "$curl_cv_func_recv_args" = "unknown"; then |
|
|
|
if test "$curl_cv_func_recv_args" = "unknown"; then |
|
|
|
AC_MSG_ERROR([Cannot find proper types to use for recv args]) |
|
|
|
AC_MSG_ERROR([Cannot find proper types to use for recv args]) |
|
|
|
else |
|
|
|
else |
|
|
@ -915,7 +915,7 @@ AC_DEFUN([CURL_CHECK_FUNC_RECV], [ |
|
|
|
else |
|
|
|
else |
|
|
|
AC_MSG_ERROR([Unable to link function recv]) |
|
|
|
AC_MSG_ERROR([Unable to link function recv]) |
|
|
|
fi |
|
|
|
fi |
|
|
|
]) # AC_DEFUN |
|
|
|
]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dnl CURL_CHECK_FUNC_SEND |
|
|
|
dnl CURL_CHECK_FUNC_SEND |
|
|
@ -1021,7 +1021,7 @@ AC_DEFUN([CURL_CHECK_FUNC_SEND], [ |
|
|
|
done |
|
|
|
done |
|
|
|
done |
|
|
|
done |
|
|
|
done |
|
|
|
done |
|
|
|
]) # AC_CACHE_CHECK |
|
|
|
]) # AC-CACHE-CHECK |
|
|
|
if test "$curl_cv_func_send_args" = "unknown"; then |
|
|
|
if test "$curl_cv_func_send_args" = "unknown"; then |
|
|
|
AC_MSG_ERROR([Cannot find proper types to use for send args]) |
|
|
|
AC_MSG_ERROR([Cannot find proper types to use for send args]) |
|
|
|
else |
|
|
|
else |
|
|
@ -1082,7 +1082,7 @@ AC_DEFUN([CURL_CHECK_FUNC_SEND], [ |
|
|
|
else |
|
|
|
else |
|
|
|
AC_MSG_ERROR([Unable to link function send]) |
|
|
|
AC_MSG_ERROR([Unable to link function send]) |
|
|
|
fi |
|
|
|
fi |
|
|
|
]) # AC_DEFUN |
|
|
|
]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dnl CURL_CHECK_FUNC_RECVFROM |
|
|
|
dnl CURL_CHECK_FUNC_RECVFROM |
|
|
@ -1199,9 +1199,14 @@ AC_DEFUN([CURL_CHECK_FUNC_RECVFROM], [ |
|
|
|
done |
|
|
|
done |
|
|
|
done |
|
|
|
done |
|
|
|
done |
|
|
|
done |
|
|
|
]) # AC_CACHE_CHECK |
|
|
|
]) # AC-CACHE-CHECK |
|
|
|
|
|
|
|
# Nearly last minute change for this release starts here |
|
|
|
|
|
|
|
AC_DEFINE_UNQUOTED(HAVE_RECVFROM, 1, |
|
|
|
|
|
|
|
[Define to 1 if you have the recvfrom function.]) |
|
|
|
|
|
|
|
ac_cv_func_recvfrom="yes" |
|
|
|
|
|
|
|
# Nearly last minute change for this release ends here |
|
|
|
if test "$curl_cv_func_recvfrom_args" = "unknown"; then |
|
|
|
if test "$curl_cv_func_recvfrom_args" = "unknown"; then |
|
|
|
AC_MSG_ERROR([Cannot find proper types to use for recvfrom args]) |
|
|
|
AC_MSG_WARN([Cannot find proper types to use for recvfrom args]) |
|
|
|
else |
|
|
|
else |
|
|
|
recvfrom_prev_IFS=$IFS; IFS=',' |
|
|
|
recvfrom_prev_IFS=$IFS; IFS=',' |
|
|
|
set dummy `echo "$curl_cv_func_recvfrom_args" | sed 's/\*/\*/g'` |
|
|
|
set dummy `echo "$curl_cv_func_recvfrom_args" | sed 's/\*/\*/g'` |
|
|
@ -1268,9 +1273,10 @@ AC_DEFUN([CURL_CHECK_FUNC_RECVFROM], [ |
|
|
|
ac_cv_func_recvfrom="yes" |
|
|
|
ac_cv_func_recvfrom="yes" |
|
|
|
fi |
|
|
|
fi |
|
|
|
else |
|
|
|
else |
|
|
|
AC_MSG_ERROR([Unable to link function recvfrom]) |
|
|
|
AC_MSG_WARN([Unable to link function recvfrom]) |
|
|
|
|
|
|
|
AC_MSG_WARN([Your system will be vulnerable to some forms of DNS cache poisoning]) |
|
|
|
fi |
|
|
|
fi |
|
|
|
]) # AC_DEFUN |
|
|
|
]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dnl CURL_CHECK_MSG_NOSIGNAL |
|
|
|
dnl CURL_CHECK_MSG_NOSIGNAL |
|
|
@ -1318,7 +1324,7 @@ AC_DEFUN([CURL_CHECK_MSG_NOSIGNAL], [ |
|
|
|
[Define to 1 if you have the MSG_NOSIGNAL flag.]) |
|
|
|
[Define to 1 if you have the MSG_NOSIGNAL flag.]) |
|
|
|
;; |
|
|
|
;; |
|
|
|
esac |
|
|
|
esac |
|
|
|
]) # AC_DEFUN |
|
|
|
]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dnl CURL_CHECK_STRUCT_TIMEVAL |
|
|
|
dnl CURL_CHECK_STRUCT_TIMEVAL |
|
|
@ -1377,7 +1383,7 @@ AC_DEFUN([CURL_CHECK_STRUCT_TIMEVAL], [ |
|
|
|
[Define to 1 if you have the timeval struct.]) |
|
|
|
[Define to 1 if you have the timeval struct.]) |
|
|
|
;; |
|
|
|
;; |
|
|
|
esac |
|
|
|
esac |
|
|
|
]) # AC_DEFUN |
|
|
|
]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dnl TYPE_SIG_ATOMIC_T |
|
|
|
dnl TYPE_SIG_ATOMIC_T |
|
|
@ -1421,7 +1427,7 @@ AC_DEFUN([TYPE_SIG_ATOMIC_T], [ |
|
|
|
fi |
|
|
|
fi |
|
|
|
;; |
|
|
|
;; |
|
|
|
esac |
|
|
|
esac |
|
|
|
]) # AC_DEFUN |
|
|
|
]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dnl CURL_CHECK_NONBLOCKING_SOCKET |
|
|
|
dnl CURL_CHECK_NONBLOCKING_SOCKET |
|
|
@ -1660,8 +1666,8 @@ AC_DEFUN([TYPE_IN_ADDR_T], [ |
|
|
|
#include <arpa/inet.h> |
|
|
|
#include <arpa/inet.h> |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
]) dnl AC_CHECK_TYPE |
|
|
|
]) |
|
|
|
]) dnl AC_DEFUN |
|
|
|
]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dnl CURL_CHECK_FUNC_CLOCK_GETTIME_MONOTONIC |
|
|
|
dnl CURL_CHECK_FUNC_CLOCK_GETTIME_MONOTONIC |
|
|
@ -1700,7 +1706,7 @@ AC_DEFUN([CURL_CHECK_FUNC_CLOCK_GETTIME_MONOTONIC], [ |
|
|
|
]) |
|
|
|
]) |
|
|
|
dnl Definition of HAVE_CLOCK_GETTIME_MONOTONIC is intentionally postponed |
|
|
|
dnl Definition of HAVE_CLOCK_GETTIME_MONOTONIC is intentionally postponed |
|
|
|
dnl until library linking and run-time checks for clock_gettime succeed. |
|
|
|
dnl until library linking and run-time checks for clock_gettime succeed. |
|
|
|
]) dnl AC_DEFUN |
|
|
|
]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dnl CURL_CHECK_LIBS_CLOCK_GETTIME_MONOTONIC |
|
|
|
dnl CURL_CHECK_LIBS_CLOCK_GETTIME_MONOTONIC |
|
|
@ -1818,7 +1824,7 @@ AC_DEFUN([CURL_CHECK_LIBS_CLOCK_GETTIME_MONOTONIC], [ |
|
|
|
# |
|
|
|
# |
|
|
|
fi |
|
|
|
fi |
|
|
|
# |
|
|
|
# |
|
|
|
]) dnl AC_DEFUN |
|
|
|
]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dnl ********************************************************************** |
|
|
|
dnl ********************************************************************** |
|
|
@ -1972,7 +1978,7 @@ AC_DEFUN([CURL_CC_DEBUG_OPTS], |
|
|
|
done |
|
|
|
done |
|
|
|
CFLAGS=$NEWFLAGS |
|
|
|
CFLAGS=$NEWFLAGS |
|
|
|
|
|
|
|
|
|
|
|
]) dnl end of AC_DEFUN() |
|
|
|
]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dnl This macro determines if the specified struct exists in the specified file |
|
|
|
dnl This macro determines if the specified struct exists in the specified file |
|
|
|