output.make to capture flags for use in bout-config script

Flags needed to compile e.g. PETSc are available at configure
time. If the environment changes later then PETSC_DIR etc. may
change, in which case the link flags could be different.