gai 0.5.10 fails to rebuild for Fedora 8 in gai.c. The gai/Makefile.in adds CFLAGS to LDFLAGS causing it to not find FT2 headers. Here's a fix.
gai/Makefile.in patch
gai/Makefile.in patch