Description: Avoid FPE during check of NaN for gfortran
Author: Rafael Laboissière <rafael@debian.org>
Forwarded: https://sourceforge.net/p/plplot/mailman/message/37741894/
Last-Update: 2022-11-28

--- plplot-5.15.0+dfsg.orig/cmake/modules/TestFortranIsnan.f
+++ plplot-5.15.0+dfsg/cmake/modules/TestFortranIsnan.f
@@ -2,7 +2,8 @@
 
 c      external isnan
 
-      if (isnan(0.0/0.0)) then
+      dummy = 0.0
+      if (isnan(0.0/dummy)) then
         print *,"NaN"
       endif
 
