We use 'modules' to change our software environment on our system:
offering multiple versions of compilers, etc.
It is useful to track the software environment in the config.log when
software is built in this environment. To do this,
we use the following patch to add modules output.
This can be added to the *.ac file for a package, but is better
included in the main systems definitions.
# AC_MODULES_OUTPUT
# -----------------
# Check if the system runs 'modules', and if so, record the modules
environment in the config.log
AC_DEFUN([AC_MODULES_LIST],
[AC_CACHE_CHECK[modules output if present],[ac_modules_output],
(ac_modules_output=`module list 2>&1`)
if test $? eq 0; then
AC_MSG_RESULT([Output from 'module list' was:\n $ac_modules_output])
fi
])
Regards,
Alastair
--
Alastair McKinstry , <[email protected]> http://blog.sceal.ie
Anyone who believes exponential growth can go on forever in a finite
world
is either a madman or an economist - Kenneth Boulter, Economist.