diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/heimdal_build/config.m4 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/heimdal_build/config.m4 b/source4/heimdal_build/config.m4 index 506acfdfe1..583278e3e1 100644 --- a/source4/heimdal_build/config.m4 +++ b/source4/heimdal_build/config.m4 @@ -209,8 +209,12 @@ AC_CHECK_FUNC(gai_strerror) if test t$ac_cv_func_gai_strerror != tyes; then AC_SEARCH_LIBS_EXT(gai_strerror, [xnet], XNET_LIBS) AC_CHECK_FUNC_EXT(gai_strerror, $XNET_LIBS) - if test t$ac_cv_func_gai_strerror != tyes; then + if test t$ac_cv_func_ext_gai_strerror != tyes; then SMB_SUBSYSTEM_ENABLE(HEIMDAL_ROKEN_GAI_STRERROR, YES) + else + AC_DEFINE(HAVE_GAI_STRERROR,1,[Whether gai_strerror() is available]) fi +else + AC_DEFINE(HAVE_GAI_STRERROR,1,[Whether gai_strerror() is available]) fi SMB_EXT_LIB(XNET,[${XNET_LIBS}],[${XNET_CFLAGS}],[${XNET_CPPFLAGS}],[${XNET_LDFLAGS}]) |