diff --git a/support/config.sub b/support/config.sub
index f208558e..fb8fa19e 100755
--- a/support/config.sub
+++ b/support/config.sub
@@ -1360,7 +1360,7 @@ case $os in
 	     | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \
 	     | skyos* | haiku* | rdos* | toppers* | drops* | es* \
 	     | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
-	     | midnightbsd*)
+	     | midnightbsd* | serenity*)
 	# Remember, each alternative MUST END IN *, to match a version number.
 		;;
 	qnx*)
