Update configure.ac

And build DragonflyBSD the same as FreeBSD.