Skip to content
Snippets Groups Projects
Commit a0d69d52 authored by Yang Tse's avatar Yang Tse
Browse files

Undefine HAVE_GETNAMEINFO if unable to find

proper types to use for getnameinfo args
parent c23a1be1
No related branches found
No related tags found
No related merge requests found
...@@ -298,6 +298,9 @@ AC_DEFUN([CURL_FUNC_GETNAMEINFO_ARGTYPES], [ ...@@ -298,6 +298,9 @@ AC_DEFUN([CURL_FUNC_GETNAMEINFO_ARGTYPES], [
]) ])
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([Undefining HAVE_GETNAMEINFO])
undefine([HAVE_GETNAMEINFO])dnl
ac_cv_func_getnameinfo="no"
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 "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
......
...@@ -277,6 +277,9 @@ AC_DEFUN([CURL_FUNC_GETNAMEINFO_ARGTYPES], [ ...@@ -277,6 +277,9 @@ AC_DEFUN([CURL_FUNC_GETNAMEINFO_ARGTYPES], [
]) ])
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([Undefining HAVE_GETNAMEINFO])
undefine([HAVE_GETNAMEINFO])dnl
ac_cv_func_getnameinfo="no"
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 "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment