[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Feature request for autoconf / configure
From: |
Alastair McKinstry |
Subject: |
Feature request for autoconf / configure |
Date: |
Sat, 28 Mar 2009 16:06:19 +0000 |
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 , <address@hidden> 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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Feature request for autoconf / configure,
Alastair McKinstry <=