| Commit message (Collapse) | Author | Age |
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4454 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3386 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
only overwrites if the new version is genuinely new. Now CCTK_CreateFile
saves a list of files it has created.
Changed the stuff in configure.in to use CCTK_CreateFile to create the
architecture and extras files and to always use CCTK_WriteLine to write to
a file.
Now if you reconfigure with precisely the same config options you don't
end up rebuilding the whole configuration if you have MPI or HDF5.
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2248 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
| |
of metacharacters.
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1927 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In CCTK_Functions.sh:
CCTK_AddPrefix(prefix, list)
CCTK_AddSuffix(suffix, list)
CCTK_Wrap(prefix, suffix, list)
which manipulate the list in the obvious way.
In aclocal.m4:
CCTK_CHECK_FUNCS
CCTK_CHECK_LIB
with same functionality as the equivalent AC ones, except they use LIBS and LIBDIRS
as used in the rest of the cactus make system.
CCTK_CHECK_LIB_FUNC
which checks for a function in a particular library, and defined both HAVE_LIB[LIB]
and HAVE_FUNC.
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1881 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@836 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
| |
time all architectures will be happy 8-)
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@757 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@753 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
other
extra packages, e.g. PVM, without having to rerun autoconf.
Basically 'configure' now looks in a directory called
'extras', and for every subdirectory of that is checks for the presence
of an executable file call 'setup.sh' which can do configuration stuff.
'setup.sh' should put extra definitions in a file called 'cctk_extradefs.h'
and extra make stuff in 'make.extra.defn'. To help this process
there is a function
CCTK_WriteLine
which takes two arguments, the name of the file, and what to write. E.g.
CCTK_WriteLine cctk_extradefs.h "#define MPI"
and
CCTK_WriteLine make.extra.defn 'LIBS += $(MPI_LIBS)'
with the usual shell expansions happening.
To help search for files and things there is function
CCTK_Search
which takes four arguments
- the name of a variable
- a list of names
- a filename
- an (optional) basename
E.g.
CCTK_Search MPI_DEVICE "ch_shmem ch_p4 globus" lib $MPICH_DIR/build
would look for directories called ch_shmem or ch_p4 or globus containing a file or directory
called 'lib' and all this would be done in the directory $MPICH_DIR/build. On return from the
function the value of MPI_DEVICE would be ch_shmem, ch_p4, globus, or empty depending on which
one was found first.
So, to add an optional extra package:
- add a directory with its name under lib/make/extras
- in this directory add an executable shell file called setup.sh
- in this file check if the extra thing is enabled, check for any configuration things
and add them to cctk_extradefs.h or make.extra.defn as necessary.
Note you will need to do a
cvs update -d
to get the new directories I've just added.
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@752 17b73243-c579-4c4c-a9d2-2d5706c11dac
|