Need to double the macro brackets in FreeBSD check.
(My fault, not Dom's -- he submitted a correct patch to configure.)
diff --git a/configure.in b/configure.in
index cdf10af..5a46847 100644
--- a/configure.in
+++ b/configure.in
@@ -467,7 +467,7 @@
 		fi ;;
 	Linux*) LDSHARED="gcc -shared";;
 	dgux*) LDSHARED="ld -G";;
-	FreeBSD*/[34]*) LDSHARED="gcc -shared";;
+	FreeBSD*/[[34]]*) LDSHARED="gcc -shared";;
 	FreeBSD*|OpenBSD*) LDSHARED="ld -Bshareable";;
 	NetBSD*)
 		if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
@@ -511,7 +511,7 @@
 	AIX*)	LINKFORSHARED='-Wl,-bE:python.exp -lld';;
 	hp*|HP*)
 	    LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
-	FreeBSD/[34]*) LINKFORSHARED="-Xlinker -export-dynamic";;
+	FreeBSD/[[34]]*) LINKFORSHARED="-Xlinker -export-dynamic";;
 	Linux*) LINKFORSHARED="-Xlinker -export-dynamic";;
 	# -u libsys_s pulls in all symbols in libsys
 	next/2*|next/3*) LINKFORSHARED="-u libsys_s";;