The configuration file specifies information that the compiler uses when you invoke it. XL Fortran provides the default configuration file /etc/opt/ibmcmp/xlf/10.1/xlf.cfg at installation time.
If you are running on a single-user system, or if you already have a compilation environment with compilation scripts or makefiles, you may want to leave the default configuration file as it is.
Otherwise, especially if you want many users to be able to choose among several sets of compiler options, you may want to add new named stanzas to the configuration file and to create new commands that are links to existing commands. For example, you could specify something similar to the following to create a link to the xlf95 command:
ln -s /opt/ibmcmp/xlf/10.1/bin/xlf95 /home/username/bin/my_xlf95
When you run the compiler under another name, it uses whatever options, libraries, and so on, that are listed in the corresponding stanza.
The configuration file contains the following attributes:
You may find it more convenient to set up this attribute than to pass options to the linker through the -W compiler option. However, most unrecognized options are passed to the linker anyway.
include = -l/path1, -l/path2, ...