; FIXME: this really ought to be in the conditional too...
(autoload 'ftnchek-mode "ftnchek")

; Only load ftnchek mode if the library is still installed.
(if (locate-library "ftnchek")
    (add-hook 'fortran-mode-hook 'ftnchek-mode))

