#! /bin/bash function detect_fortran() { command -v $1 >/dev/null 2>&1 if [ $? -ne 0 ]; then dgc_ret=0 return fi dgc_ret=1 }