diff options
| author | Alexander Barton <alex@barton.de> | 2011-11-06 14:16:59 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2011-11-06 14:16:59 +0100 |
| commit | 13d9e0c5a7e03559a2b5bf405b526098b15bd0e6 (patch) | |
| tree | 2579f0be10cb61313283e194e38819b5a815afad /configure.in | |
| parent | a7911e35afce4de5f387f9dae0f414ae35006b25 (diff) | |
| download | ngircd-13d9e0c5a7e03559a2b5bf405b526098b15bd0e6.tar.gz ngircd-13d9e0c5a7e03559a2b5bf405b526098b15bd0e6.zip | |
Test for gai_strerror()
If gai_strerror() isn't available, use a macro that simply returns a static error message (regardless of the real error code). For example, GNU libc 2.0.7 doesn't implement gai_strerror().
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/configure.in b/configure.in index e48e9e39..92434ec7 100644 --- a/configure.in +++ b/configure.in @@ -160,10 +160,12 @@ AC_FUNC_STRFTIME AC_CHECK_FUNCS([ \ bind gethostbyaddr gethostbyname gethostname inet_ntoa \ - setsid setsockopt socket strcasecmp waitpid],,AC_MSG_ERROR([required function missing!])) + setsid setsockopt socket strcasecmp waitpid],, + AC_MSG_ERROR([required function missing!])) -AC_CHECK_FUNCS(getaddrinfo getnameinfo inet_aton sigaction sigprocmask snprintf \ - vsnprintf strdup strlcpy strlcat strtok_r) +AC_CHECK_FUNCS([ \ + gai_strerror getaddrinfo getnameinfo inet_aton sigaction \ + sigprocmask snprintf vsnprintf strdup strlcpy strlcat strtok_r]) # -- Configuration options -- |