The GMAT source code in the trunk folder contains an atmosphere model – the MSISE90 atmosphere – that was originally coded in Fortran. The code in GMAT was generated by running the Fortran to C conversion program, f2c, on the original Fortran code. Future plans for GMAT include adding other models available as Fortran source code using this same approach. In addition, several of the plugin libraries include code generated from f2c processing of the original Fortran code. For these reasons, I strongly recommend making f2c available from the start when you prepare to build GMAT. The system can be built without f2c if you are willing to forego use of these models, but the f2c setup is simple and straightforward, so well worth doing in my opinion.
There are two paths you can follow for incorporating f2c into your configuration. If you are building with the SPICE library from JPL, the code that you download from JPL includes a version of f2c tailored to use in in SPICE. The SPICE library also enables several features in GMAT that are useful: the ability to incorporate ephemerides for minor bodies (comets, asteroids, moons, etc) for use in modelling your mission, and the ability to generate a ephemeris file in SPICE format. In addition, the version of GMAT that undergoes nightly build testing is built with the SPICE extensions enabled, so is more likely to see bug fixes made in a timely manner than are the other versions. The testing issue is a minor consideration, though; the SPICE enabled code is built from the same code base as the version without SPICE, but with additional features enabled.
Developers that want to use f2c but not SPICE can find a copy of f2c in either GMAT’s build folder for their platform (for Mac or Windows), or as a package for their operating system (Linux). The platforms that have the library in GMAT’s build folders should unpack the package into the Gmat3rdParty/f2c folder of their build environment.
The SPICE library is available from JPL at the NAIF website. Download the toolkit for C for your platform, and unpack it into your Gmat3rdParty/cspice (or cspice64 for 64-bit) folder. Once you’ve done this, you are ready to build GMAT with the SPICE and f2c code enabled.