Changeset: f3a85ea3445c for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f3a85ea3445c Modified Files: buildtools/conf/MonetDB.m4 Branch: Jun2010 Log Message:
find getaddrinfo() even if it requires -lsocket or -lnsl as e.g. on Solaris diffs (17 lines): diff -r bef4ac95250b -r f3a85ea3445c buildtools/conf/MonetDB.m4 --- a/buildtools/conf/MonetDB.m4 Fri Jul 23 18:02:36 2010 +0200 +++ b/buildtools/conf/MonetDB.m4 Sat Jul 24 08:32:06 2010 +0200 @@ -2353,7 +2353,12 @@ AC_CHECK_HEADERS([sys/socket.h winsock.h]) -AC_CHECK_FUNCS([getaddrinfo]) +save_LIBS="$LIBS" +LIBS="$LIBS $SOCKET_LIBS" +AC_CHECK_FUNC(getaddrinfo, [], [ + AC_CHECK_LIB(socket, getaddrinfo, [ SOCKET_LIBS="$SOCKET_LIBS -lsocket" ], + AC_CHECK_LIB(nsl, getaddrinfo, [ SOCKET_LIBS="$SOCKET_LIBS -lnsl" ] ))]) +LIBS="$save_LIBS" dnl incase of windows we need to use try_link because windows uses the dnl pascal style of function calls and naming scheme. Therefore the _______________________________________________ Checkin-list mailing list [email protected] http://mail.monetdb.org/mailman/listinfo/checkin-list
