aboutsummaryrefslogtreecommitdiff
blob: 92e64954fc647e7e46bffeb682391fd223ac1442 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 AmberTools/src/configure2 | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/AmberTools/src/configure2 b/AmberTools/src/configure2
index 913c50d..1232f6a 100755
--- a/AmberTools/src/configure2
+++ b/AmberTools/src/configure2
@@ -703,12 +703,14 @@ gnu)
     # if gcc <= 4.2, fftw3 is not compiled and pbsa fft solver and rism
     #   are disabled
     if [ "$rism" != 'no' -o -n "$pbsaflag" ]; then
-        if ( [ $gnu_majorversion -ge 4 ] && [ $gnu_minorversion -le 2 ] ) \
-            || [ $gnu_majorversion -le 3 ]; then
-            echo "ERROR: RISM and PBSA FFT solver require version 4.3 or higher of the GNU compiler."
-            echo "       Please re-run configure with the '-nofftw3' flag to use this compiler:"
-            echo "            `mod_command_args '-rism' '-nofftw3'`"
-            exit 1
+        if  [ $gnu_majorversion -lt 5 ]; then
+            if ( [ $gnu_majorversion -ge 4 ] && [ $gnu_minorversion -le 2 ] ) \
+                || [ $gnu_majorversion -le 3 ]; then
+                echo "ERROR: RISM and PBSA FFT solver require version 4.3 or higher of the GNU compiler."
+                echo "       Please re-run configure with the '-nofftw3' flag to use this compiler:"
+                echo "            `mod_command_args '-rism' '-nofftw3'`"
+                exit 1
+            fi
         fi
     fi