--- support/shlib-install.orig	2009-10-28 14:30:18.000000000 +0100
+++ support/shlib-install	2011-11-05 19:06:58.000000000 +0100
@@ -155,7 +155,7 @@
 
 
 # FreeBSD 3.x and above can have either a.out or ELF shared libraries
-freebsd3*|freebsdaout*)
+freebsd3.*|freebsdaout*)
 	if [ -x /usr/bin/objformat ] && [ "`/usr/bin/objformat`" = "elf" ]; then
 		# libname.so -> libname.so.M
 		${echo} ${RM} ${INSTALLDIR}/$LINK1
@@ -177,7 +177,7 @@
 	fi
 	;;
 
-freebsd[4-9]*|freebsdelf*|dragonfly*)
+freebsd[4-9].*|freebsd1[0-9].*|freebsdelf*|dragonfly*)
 	# libname.so -> libname.so.M
 	${echo} ${RM} ${INSTALLDIR}/$LINK1
 	if [ -z "$uninstall" ]; then
