bug_in_configure_check_libs

Dear all, on my mac I am encountering an issue with the configure.sh and in particular in the check_libs routine. Here is the error.

check_libs:5: command not found: gfortran check_libs.f90 -llapack -lblas -fopenmp -o check_libs.out

However, the command gfortran check_libs.f90 -llapack -lblas -fopenmp -o check_libs.out works just fine in the shell.

I am quite sure that a bash specialist will spot the issue at a glimpse.