diff --git a/tools/wineinstall b/tools/wineinstall
index ba8245dd522da5d85bd3e6fe57683a96b9b88527..374decdef6008083eab7f3c95d78a0f24f043e4f 100755
--- a/tools/wineinstall
+++ b/tools/wineinstall
@@ -152,8 +152,8 @@ function configure_wine_applications {
 echo "WINE Installer v0.74"
 echo
 
-# check for redhat 9 so we can enable --with-nptl until runtime detection is complete
-if [ -e /etc/redhat-release ] && grep Shrike /etc/redhat-release &>/dev/null; then
+# check for redhat 9 with tls libs so we can enable --with-nptl until runtime detection is complete
+if [ -e /etc/redhat-release ] && grep "Shrike" /etc/redhat-release &>/dev/null && [ -e /lib/tls ]; then
     CONFARGS="$CONFARGS --with-nptl"
 fi