@ -11,8 +11,8 @@ dnl result in a set of double-quoted strings the returned expansion will
dnl actually be a single double-quoted string concatenating all them.
dnl actually be a single double-quoted string concatenating all them.
AC_DEFUN([CURL_CHECK_DEF], [
AC_DEFUN([CURL_CHECK_DEF], [
AS_VAR_PUSHDEF([ac_HaveDef], [curl _cv_have_def_$1])dnl
AS_VAR_PUSHDEF([ac_HaveDef], [cares _cv_have_def_$1])dnl
AS_VAR_PUSHDEF([ac_Def], [curl _cv_def_$1])dnl
AS_VAR_PUSHDEF([ac_Def], [cares _cv_def_$1])dnl
if test -z "$SED"; then
if test -z "$SED"; then
AC_MSG_ERROR([SED not set. Cannot continue without SED being set.])
AC_MSG_ERROR([SED not set. Cannot continue without SED being set.])
fi
fi
@ -58,7 +58,7 @@ dnl default includes even if no INCLUDES argument is given. This macro
dnl will run silently when invoked with three arguments.
dnl will run silently when invoked with three arguments.
AC_DEFUN([CURL_CHECK_DEF_CC], [
AC_DEFUN([CURL_CHECK_DEF_CC], [
AS_VAR_PUSHDEF([ac_HaveDef], [curl _cv_have_def_$1])dnl
AS_VAR_PUSHDEF([ac_HaveDef], [cares _cv_have_def_$1])dnl
ifelse($3,,[AC_MSG_CHECKING([for compiler definition of $1])])
ifelse($3,,[AC_MSG_CHECKING([for compiler definition of $1])])
AC_COMPILE_IFELSE([
AC_COMPILE_IFELSE([
AC_LANG_SOURCE(
AC_LANG_SOURCE(
@ -360,12 +360,12 @@ AC_DEFUN([CURL_CHECK_HEADER_MALLOC], [
free(q);
free(q);
]])
]])
],[
],[
curl _cv_need_header_malloc_h="no"
cares _cv_need_header_malloc_h="no"
],[
],[
curl _cv_need_header_malloc_h="yes"
cares _cv_need_header_malloc_h="yes"
])
])
#
#
case "$curl _cv_need_header_malloc_h" in
case "$cares _cv_need_header_malloc_h" in
yes)
yes)
AC_DEFINE_UNQUOTED(NEED_MALLOC_H, 1,
AC_DEFINE_UNQUOTED(NEED_MALLOC_H, 1,
[Define to 1 if you need the malloc.h header file even with stdlib.h])
[Define to 1 if you need the malloc.h header file even with stdlib.h])
@ -412,12 +412,12 @@ AC_DEFUN([CURL_CHECK_HEADER_MEMORY], [
free(q);
free(q);
]])
]])
],[
],[
curl _cv_need_header_memory_h="no"
cares _cv_need_header_memory_h="no"
],[
],[
curl _cv_need_header_memory_h="yes"
cares _cv_need_header_memory_h="yes"
])
])
#
#
case "$curl _cv_need_header_memory_h" in
case "$cares _cv_need_header_memory_h" in
yes)
yes)
AC_DEFINE_UNQUOTED(NEED_MEMORY_H, 1,
AC_DEFINE_UNQUOTED(NEED_MEMORY_H, 1,
[Define to 1 if you need the memory.h header file even with stdlib.h])
[Define to 1 if you need the memory.h header file even with stdlib.h])
@ -447,13 +447,13 @@ AC_DEFUN([CURL_CHECK_FUNC_GETNAMEINFO], [
AC_LANG_FUNC_LINK_TRY([getnameinfo])
AC_LANG_FUNC_LINK_TRY([getnameinfo])
],[
],[
AC_MSG_RESULT([yes])
AC_MSG_RESULT([yes])
curl _cv_getnameinfo="yes"
cares _cv_getnameinfo="yes"
],[
],[
AC_MSG_RESULT([no])
AC_MSG_RESULT([no])
curl _cv_getnameinfo="no"
cares _cv_getnameinfo="no"
])
])
#
#
if test "$curl _cv_getnameinfo" != "yes"; then
if test "$cares _cv_getnameinfo" != "yes"; then
AC_MSG_CHECKING([deeper for getnameinfo])
AC_MSG_CHECKING([deeper for getnameinfo])
AC_LINK_IFELSE([
AC_LINK_IFELSE([
AC_LANG_PROGRAM([[
AC_LANG_PROGRAM([[
@ -462,14 +462,14 @@ AC_DEFUN([CURL_CHECK_FUNC_GETNAMEINFO], [
]])
]])
],[
],[
AC_MSG_RESULT([yes])
AC_MSG_RESULT([yes])
curl _cv_getnameinfo="yes"
cares _cv_getnameinfo="yes"
],[
],[
AC_MSG_RESULT([but still no])
AC_MSG_RESULT([but still no])
curl _cv_getnameinfo="no"
cares _cv_getnameinfo="no"
])
])
fi
fi
#
#
if test "$curl _cv_getnameinfo" != "yes"; then
if test "$cares _cv_getnameinfo" != "yes"; then
AC_MSG_CHECKING([deeper and deeper for getnameinfo])
AC_MSG_CHECKING([deeper and deeper for getnameinfo])
AC_LINK_IFELSE([
AC_LINK_IFELSE([
AC_LANG_PROGRAM([[
AC_LANG_PROGRAM([[
@ -501,22 +501,22 @@ AC_DEFUN([CURL_CHECK_FUNC_GETNAMEINFO], [
]])
]])
],[
],[
AC_MSG_RESULT([yes])
AC_MSG_RESULT([yes])
curl _cv_getnameinfo="yes"
cares _cv_getnameinfo="yes"
],[
],[
AC_MSG_RESULT([but still no])
AC_MSG_RESULT([but still no])
curl _cv_getnameinfo="no"
cares _cv_getnameinfo="no"
])
])
fi
fi
#
#
if test "$curl _cv_getnameinfo" = "yes"; then
if test "$cares _cv_getnameinfo" = "yes"; then
AC_CACHE_CHECK([types of arguments for getnameinfo],
AC_CACHE_CHECK([types of arguments for getnameinfo],
[curl _cv_func_getnameinfo_args], [
[cares _cv_func_getnameinfo_args], [
curl _cv_func_getnameinfo_args="unknown"
cares _cv_func_getnameinfo_args="unknown"
for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
for gni_arg7 in 'int' 'unsigned int'; do
for gni_arg7 in 'int' 'unsigned int'; do
if test "$curl _cv_func_getnameinfo_args" = "unknown"; then
if test "$cares _cv_func_getnameinfo_args" = "unknown"; then
AC_COMPILE_IFELSE([
AC_COMPILE_IFELSE([
AC_LANG_PROGRAM([[
AC_LANG_PROGRAM([[
#undef inline
#undef inline
@ -560,7 +560,7 @@ AC_DEFUN([CURL_CHECK_FUNC_GETNAMEINFO], [
int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
]])
]])
],[
],[
curl _cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
cares _cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
])
])
fi
fi
done
done
@ -568,12 +568,12 @@ AC_DEFUN([CURL_CHECK_FUNC_GETNAMEINFO], [
done
done
done
done
]) # AC-CACHE-CHECK
]) # AC-CACHE-CHECK
if test "$curl _cv_func_getnameinfo_args" = "unknown"; then
if test "$cares _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])
else
else
gni_prev_IFS=$IFS; IFS=','
gni_prev_IFS=$IFS; IFS=','
set dummy `echo "$curl _cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
set dummy `echo "$cares _cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
IFS=$gni_prev_IFS
IFS=$gni_prev_IFS
shift
shift
#
#
@ -810,22 +810,22 @@ AC_DEFUN([CURL_CHECK_FUNC_RECV], [
]])
]])
],[
],[
AC_MSG_RESULT([yes])
AC_MSG_RESULT([yes])
curl _cv_recv="yes"
cares _cv_recv="yes"
],[
],[
AC_MSG_RESULT([no])
AC_MSG_RESULT([no])
curl _cv_recv="no"
cares _cv_recv="no"
])
])
#
#
if test "$curl _cv_recv" = "yes"; then
if test "$cares _cv_recv" = "yes"; then
AC_CACHE_CHECK([types of args and return type for recv],
AC_CACHE_CHECK([types of args and return type for recv],
[curl _cv_func_recv_args], [
[cares _cv_func_recv_args], [
curl _cv_func_recv_args="unknown"
cares _cv_func_recv_args="unknown"
for recv_retv in 'int' 'ssize_t'; do
for recv_retv in 'int' 'ssize_t'; do
for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
for recv_arg2 in 'char *' 'void *'; do
for recv_arg2 in 'char *' 'void *'; do
for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
for recv_arg4 in 'int' 'unsigned int'; do
for recv_arg4 in 'int' 'unsigned int'; do
if test "$curl _cv_func_recv_args" = "unknown"; then
if test "$cares _cv_func_recv_args" = "unknown"; then
AC_COMPILE_IFELSE([
AC_COMPILE_IFELSE([
AC_LANG_PROGRAM([[
AC_LANG_PROGRAM([[
#undef inline
#undef inline
@ -861,7 +861,7 @@ AC_DEFUN([CURL_CHECK_FUNC_RECV], [
$recv_retv res = recv(s, buf, len, flags);
$recv_retv res = recv(s, buf, len, flags);
]])
]])
],[
],[
curl _cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
cares _cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
])
])
fi
fi
done
done
@ -870,11 +870,11 @@ AC_DEFUN([CURL_CHECK_FUNC_RECV], [
done
done
done
done
]) # AC-CACHE-CHECK
]) # AC-CACHE-CHECK
if test "$curl _cv_func_recv_args" = "unknown"; then
if test "$cares _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
recv_prev_IFS=$IFS; IFS=','
recv_prev_IFS=$IFS; IFS=','
set dummy `echo "$curl _cv_func_recv_args" | sed 's/\*/\*/g'`
set dummy `echo "$cares _cv_func_recv_args" | sed 's/\*/\*/g'`
IFS=$recv_prev_IFS
IFS=$recv_prev_IFS
shift
shift
#
#
@ -944,22 +944,22 @@ AC_DEFUN([CURL_CHECK_FUNC_SEND], [
]])
]])
],[
],[
AC_MSG_RESULT([yes])
AC_MSG_RESULT([yes])
curl _cv_send="yes"
cares _cv_send="yes"
],[
],[
AC_MSG_RESULT([no])
AC_MSG_RESULT([no])
curl _cv_send="no"
cares _cv_send="no"
])
])
#
#
if test "$curl _cv_send" = "yes"; then
if test "$cares _cv_send" = "yes"; then
AC_CACHE_CHECK([types of args and return type for send],
AC_CACHE_CHECK([types of args and return type for send],
[curl _cv_func_send_args], [
[cares _cv_func_send_args], [
curl _cv_func_send_args="unknown"
cares _cv_func_send_args="unknown"
for send_retv in 'int' 'ssize_t'; do
for send_retv in 'int' 'ssize_t'; do
for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
for send_arg4 in 'int' 'unsigned int'; do
for send_arg4 in 'int' 'unsigned int'; do
if test "$curl _cv_func_send_args" = "unknown"; then
if test "$cares _cv_func_send_args" = "unknown"; then
AC_COMPILE_IFELSE([
AC_COMPILE_IFELSE([
AC_LANG_PROGRAM([[
AC_LANG_PROGRAM([[
#undef inline
#undef inline
@ -994,7 +994,7 @@ AC_DEFUN([CURL_CHECK_FUNC_SEND], [
$send_retv res = send(s, 0, len, flags);
$send_retv res = send(s, 0, len, flags);
]])
]])
],[
],[
curl _cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
cares _cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
])
])
fi
fi
done
done
@ -1003,11 +1003,11 @@ AC_DEFUN([CURL_CHECK_FUNC_SEND], [
done
done
done
done
]) # AC-CACHE-CHECK
]) # AC-CACHE-CHECK
if test "$curl _cv_func_send_args" = "unknown"; then
if test "$cares _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
send_prev_IFS=$IFS; IFS=','
send_prev_IFS=$IFS; IFS=','
set dummy `echo "$curl _cv_func_send_args" | sed 's/\*/\*/g'`
set dummy `echo "$cares _cv_func_send_args" | sed 's/\*/\*/g'`
IFS=$send_prev_IFS
IFS=$send_prev_IFS
shift
shift
#
#
@ -1112,16 +1112,16 @@ AC_DEFUN([CURL_CHECK_FUNC_RECVFROM], [
]])
]])
],[
],[
AC_MSG_RESULT([yes])
AC_MSG_RESULT([yes])
curl _cv_recvfrom="yes"
cares _cv_recvfrom="yes"
],[
],[
AC_MSG_RESULT([no])
AC_MSG_RESULT([no])
curl _cv_recvfrom="no"
cares _cv_recvfrom="no"
])
])
#
#
if test "$curl _cv_recvfrom" = "yes"; then
if test "$cares _cv_recvfrom" = "yes"; then
AC_CACHE_CHECK([types of args and return type for recvfrom],
AC_CACHE_CHECK([types of args and return type for recvfrom],
[curl _cv_func_recvfrom_args], [
[cares _cv_func_recvfrom_args], [
curl _cv_func_recvfrom_args="unknown"
cares _cv_func_recvfrom_args="unknown"
for recvfrom_retv in 'int' 'ssize_t'; do
for recvfrom_retv in 'int' 'ssize_t'; do
for recvfrom_arg1 in 'int' 'ssize_t' 'SOCKET'; do
for recvfrom_arg1 in 'int' 'ssize_t' 'SOCKET'; do
for recvfrom_arg2 in 'char *' 'void *'; do
for recvfrom_arg2 in 'char *' 'void *'; do
@ -1129,7 +1129,7 @@ AC_DEFUN([CURL_CHECK_FUNC_RECVFROM], [
for recvfrom_arg4 in 'int' 'unsigned int'; do
for recvfrom_arg4 in 'int' 'unsigned int'; do
for recvfrom_arg5 in 'struct sockaddr *' 'void *' 'const struct sockaddr *'; do
for recvfrom_arg5 in 'struct sockaddr *' 'void *' 'const struct sockaddr *'; do
for recvfrom_arg6 in 'socklen_t *' 'int *' 'unsigned int *' 'size_t *' 'void *'; do
for recvfrom_arg6 in 'socklen_t *' 'int *' 'unsigned int *' 'size_t *' 'void *'; do
if test "$curl _cv_func_recvfrom_args" = "unknown"; then
if test "$cares _cv_func_recvfrom_args" = "unknown"; then
AC_COMPILE_IFELSE([
AC_COMPILE_IFELSE([
AC_LANG_PROGRAM([[
AC_LANG_PROGRAM([[
#undef inline
#undef inline
@ -1170,7 +1170,7 @@ AC_DEFUN([CURL_CHECK_FUNC_RECVFROM], [
res = recvfrom(s, buf, len, flags, addr, addrlen);
res = recvfrom(s, buf, len, flags, addr, addrlen);
]])
]])
],[
],[
curl _cv_func_recvfrom_args="$recvfrom_arg1,$recvfrom_arg2,$recvfrom_arg3,$recvfrom_arg4,$recvfrom_arg5,$recvfrom_arg6,$recvfrom_retv"
cares _cv_func_recvfrom_args="$recvfrom_arg1,$recvfrom_arg2,$recvfrom_arg3,$recvfrom_arg4,$recvfrom_arg5,$recvfrom_arg6,$recvfrom_retv"
])
])
fi
fi
done
done
@ -1186,11 +1186,11 @@ AC_DEFUN([CURL_CHECK_FUNC_RECVFROM], [
[Define to 1 if you have the recvfrom function.])
[Define to 1 if you have the recvfrom function.])
ac_cv_func_recvfrom="yes"
ac_cv_func_recvfrom="yes"
# Nearly last minute change for this release ends here
# Nearly last minute change for this release ends here
if test "$curl _cv_func_recvfrom_args" = "unknown"; then
if test "$cares _cv_func_recvfrom_args" = "unknown"; then
AC_MSG_WARN([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 "$cares _cv_func_recvfrom_args" | sed 's/\*/\*/g'`
IFS=$recvfrom_prev_IFS
IFS=$recvfrom_prev_IFS
shift
shift
#
#
@ -1326,7 +1326,6 @@ dnl -------------------------------------------------
dnl Check for timeval struct
dnl Check for timeval struct
AC_DEFUN([CURL_CHECK_STRUCT_TIMEVAL], [
AC_DEFUN([CURL_CHECK_STRUCT_TIMEVAL], [
AC_REQUIRE([AC_HEADER_TIME])dnl
AC_REQUIRE([CURL_CHECK_HEADER_WINSOCK])dnl
AC_REQUIRE([CURL_CHECK_HEADER_WINSOCK])dnl
AC_REQUIRE([CURL_CHECK_HEADER_WINSOCK2])dnl
AC_REQUIRE([CURL_CHECK_HEADER_WINSOCK2])dnl
AC_CHECK_HEADERS(sys/types.h sys/time.h time.h sys/socket.h)
AC_CHECK_HEADERS(sys/types.h sys/time.h time.h sys/socket.h)
@ -1436,10 +1435,10 @@ AC_DEFUN([TYPE_IN_ADDR_T], [
AC_CHECK_TYPE([in_addr_t], ,[
AC_CHECK_TYPE([in_addr_t], ,[
dnl in_addr_t not available
dnl in_addr_t not available
AC_CACHE_CHECK([for in_addr_t equivalent],
AC_CACHE_CHECK([for in_addr_t equivalent],
[curl _cv_in_addr_t_equiv], [
[cares _cv_in_addr_t_equiv], [
curl _cv_in_addr_t_equiv="unknown"
cares _cv_in_addr_t_equiv="unknown"
for t in "unsigned long" int size_t unsigned long; do
for t in "unsigned long" int size_t unsigned long; do
if test "$curl _cv_in_addr_t_equiv" = "unknown"; then
if test "$cares _cv_in_addr_t_equiv" = "unknown"; then
AC_LINK_IFELSE([
AC_LINK_IFELSE([
AC_LANG_PROGRAM([[
AC_LANG_PROGRAM([[
#undef inline
#undef inline
@ -1473,17 +1472,17 @@ AC_DEFUN([TYPE_IN_ADDR_T], [
$t data = inet_addr ("1.2.3.4");
$t data = inet_addr ("1.2.3.4");
]])
]])
],[
],[
curl _cv_in_addr_t_equiv="$t"
cares _cv_in_addr_t_equiv="$t"
])
])
fi
fi
done
done
])
])
case "$curl _cv_in_addr_t_equiv" in
case "$cares _cv_in_addr_t_equiv" in
unknown)
unknown)
AC_MSG_ERROR([Cannot find a type to use in place of in_addr_t])
AC_MSG_ERROR([Cannot find a type to use in place of in_addr_t])
;;
;;
*)
*)
AC_DEFINE_UNQUOTED(in_addr_t, $curl _cv_in_addr_t_equiv,
AC_DEFINE_UNQUOTED(in_addr_t, $cares _cv_in_addr_t_equiv,
[Type to use in place of in_addr_t when system does not provide it.])
[Type to use in place of in_addr_t when system does not provide it.])
;;
;;
esac
esac
@ -1524,7 +1523,6 @@ dnl -------------------------------------------------
dnl Check if monotonic clock_gettime is available.
dnl Check if monotonic clock_gettime is available.
AC_DEFUN([CURL_CHECK_FUNC_CLOCK_GETTIME_MONOTONIC], [
AC_DEFUN([CURL_CHECK_FUNC_CLOCK_GETTIME_MONOTONIC], [
AC_REQUIRE([AC_HEADER_TIME])dnl
AC_CHECK_HEADERS(sys/types.h sys/time.h time.h)
AC_CHECK_HEADERS(sys/types.h sys/time.h time.h)
AC_MSG_CHECKING([for monotonic clock_gettime])
AC_MSG_CHECKING([for monotonic clock_gettime])
AC_COMPILE_IFELSE([
AC_COMPILE_IFELSE([
@ -1570,15 +1568,15 @@ AC_DEFUN([CURL_CHECK_LIBS_CLOCK_GETTIME_MONOTONIC], [
#
#
AC_MSG_CHECKING([for clock_gettime in libraries])
AC_MSG_CHECKING([for clock_gettime in libraries])
#
#
curl _cv_save_LIBS="$LIBS"
cares _cv_save_LIBS="$LIBS"
curl _cv_gclk_LIBS="unknown"
cares _cv_gclk_LIBS="unknown"
#
#
for x_xlibs in '' '-lrt' '-lposix4' ; do
for x_xlibs in '' '-lrt' '-lposix4' ; do
if test "$curl _cv_gclk_LIBS" = "unknown"; then
if test "$cares _cv_gclk_LIBS" = "unknown"; then
if test -z "$x_xlibs"; then
if test -z "$x_xlibs"; then
LIBS="$curl _cv_save_LIBS"
LIBS="$cares _cv_save_LIBS"
else
else
LIBS="$x_xlibs $curl _cv_save_LIBS"
LIBS="$x_xlibs $cares _cv_save_LIBS"
fi
fi
AC_LINK_IFELSE([
AC_LINK_IFELSE([
AC_LANG_PROGRAM([[
AC_LANG_PROGRAM([[
@ -1600,14 +1598,14 @@ AC_DEFUN([CURL_CHECK_LIBS_CLOCK_GETTIME_MONOTONIC], [
(void)clock_gettime(CLOCK_MONOTONIC, &ts);
(void)clock_gettime(CLOCK_MONOTONIC, &ts);
]])
]])
],[
],[
curl _cv_gclk_LIBS="$x_xlibs"
cares _cv_gclk_LIBS="$x_xlibs"
])
])
fi
fi
done
done
#
#
LIBS="$curl _cv_save_LIBS"
LIBS="$cares _cv_save_LIBS"
#
#
case X-"$curl _cv_gclk_LIBS" in
case X-"$cares _cv_gclk_LIBS" in
X-unknown)
X-unknown)
AC_MSG_RESULT([cannot find clock_gettime])
AC_MSG_RESULT([cannot find clock_gettime])
AC_MSG_WARN([HAVE_CLOCK_GETTIME_MONOTONIC will not be defined])
AC_MSG_WARN([HAVE_CLOCK_GETTIME_MONOTONIC will not be defined])
@ -1618,12 +1616,12 @@ AC_DEFUN([CURL_CHECK_LIBS_CLOCK_GETTIME_MONOTONIC], [
ac_cv_func_clock_gettime="yes"
ac_cv_func_clock_gettime="yes"
;;
;;
*)
*)
if test -z "$curl _cv_save_LIBS"; then
if test -z "$cares _cv_save_LIBS"; then
LIBS="$curl _cv_gclk_LIBS"
LIBS="$cares _cv_gclk_LIBS"
else
else
LIBS="$curl_cv_gclk_LIBS $curl _cv_save_LIBS"
LIBS="$cares_cv_gclk_LIBS $cares _cv_save_LIBS"
fi
fi
AC_MSG_RESULT([$curl _cv_gclk_LIBS])
AC_MSG_RESULT([$cares _cv_gclk_LIBS])
ac_cv_func_clock_gettime="yes"
ac_cv_func_clock_gettime="yes"
;;
;;
esac
esac
@ -1663,7 +1661,7 @@ AC_DEFUN([CURL_CHECK_LIBS_CLOCK_GETTIME_MONOTONIC], [
AC_MSG_RESULT([no])
AC_MSG_RESULT([no])
AC_MSG_WARN([HAVE_CLOCK_GETTIME_MONOTONIC will not be defined])
AC_MSG_WARN([HAVE_CLOCK_GETTIME_MONOTONIC will not be defined])
ac_cv_func_clock_gettime="no"
ac_cv_func_clock_gettime="no"
LIBS="$curl _cv_save_LIBS"
LIBS="$cares _cv_save_LIBS"
])
])
fi
fi
#
#
@ -1875,10 +1873,12 @@ dnl CARES_CHECK_STRUCT(headers, struct name, if found, [if not found])
AC_DEFUN([CARES_CHECK_STRUCT], [
AC_DEFUN([CARES_CHECK_STRUCT], [
AC_MSG_CHECKING([for struct $2])
AC_MSG_CHECKING([for struct $2])
AC_TRY_COMPILE([$1],
AC_COMPILE_IFELSE([
[
AC_LANG_PROGRAM([$1],
struct $2 struct_instance;
[struct $2 struct_instance;]
], ac_struct="yes", ac_found="no")
)
], ac_struct="yes", ac_struct="no"
)
if test "$ac_struct" = "yes" ; then
if test "$ac_struct" = "yes" ; then
AC_MSG_RESULT(yes)
AC_MSG_RESULT(yes)
$3
$3