Code: Select all
AC_TRY_LINK([#include <ares.h>
void callback(void * /*arg*/, int /*callbackStatus*/,
int /*timeouts*/, struct hostent * /*hostent*/) {}
], [
ares_channel aresChannel;
in_addr requestedAddress;
ares_gethostbyaddr(aresChannel, &requestedAddress,
sizeof(in_addr), AF_INET, callback, NULL);
], [ares_works=yes], [ares_works=no])
NOTE: in the next paragraph, I am always referring to the ftgl library shipped with bzflag.
The real problem with ftgl is I get undefined freetype symbols when I use the freetype library installed on my system. There shouldn't be anything wrong with it. I installed it with macports. I'm wondering if the ftgl library shipped with bzflag is still trying to link with the freetype library shipped with bzflag even though it isn't being built. I haven't looked into it further, but I thought I'd mention it. If I force freetype to build, then everything works.
EDIT: When I built ftgl with macports, I never got undefined symbols, so my freetype library is fine. I don't have ftgl installed on my system anymore.