From 40448834a0a5ee4663a51cc31fc00128599b7192 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 5 Aug 2005 10:51:45 +0000 Subject: r9107: try to get the build on solaris going... metze (This used to be commit 1008459a98a8232f039b87c91443d653858e0500) --- source4/heimdal_build/config.m4 | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'source4/heimdal_build/config.m4') diff --git a/source4/heimdal_build/config.m4 b/source4/heimdal_build/config.m4 index fa79849750..506acfdfe1 100644 --- a/source4/heimdal_build/config.m4 +++ b/source4/heimdal_build/config.m4 @@ -64,7 +64,6 @@ AC_CHECK_FUNCS([ \ inet_aton \ gethostname \ getnameinfo \ - gai_strerror \ iruserok \ putenv \ rcmd \ @@ -91,7 +90,6 @@ AC_CHECK_FUNCS([ \ flock \ getaddrinfo \ freeaddrinfo \ - gai_strerror \ writev ]) @@ -204,3 +202,15 @@ SMB_SUBSYSTEM_ENABLE(HEIMDAL_ROKEN_ADDRINFO, NO) if test t$ac_cv_func_getaddrinfo != tyes; then SMB_SUBSYSTEM_ENABLE(HEIMDAL_ROKEN_ADDRINFO, YES) fi + +# only add gai_strerror if needed +SMB_SUBSYSTEM_ENABLE(HEIMDAL_ROKEN_GAI_STRERROR, NO) +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 + SMB_SUBSYSTEM_ENABLE(HEIMDAL_ROKEN_GAI_STRERROR, YES) + fi +fi +SMB_EXT_LIB(XNET,[${XNET_LIBS}],[${XNET_CFLAGS}],[${XNET_CPPFLAGS}],[${XNET_LDFLAGS}]) -- cgit