summaryrefslogtreecommitdiff
path: root/lib/make
Commit message (Collapse)AuthorAge
* New Solaris 10 options from Ankush Guptaschnetter2007-06-23
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4423 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add autoconf macros to detect the header file <malloc.h>, theschnetter2007-05-26
| | | | | | | | functions mallinfo() and mallopt(), and the constant M_MMAP_THRESHOLD. These are e.g. provided by glibc. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4422 17b73243-c579-4c4c-a9d2-2d5706c11dac
* fix MPI_INCLUDES and MPI_LIBS when using OpenMPI v1.1tradke2007-05-23
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4421 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Build a configuration in two steps: First create make.thornlib, thenschnetter2007-05-21
| | | | | | | | build all thorns. This seems to make "make" honour the "-j" options when building the thorns. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4420 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Use fewer warning flags for C and C++ compilers by default.schnetter2007-05-03
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4419 17b73243-c579-4c4c-a9d2-2d5706c11dac
* += support for OpenBSD 4.0jthorn2007-04-08
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4416 17b73243-c579-4c4c-a9d2-2d5706c11dac
* added known architectures for xt3 and xt4.jshalf2007-04-04
| | | | | | | still fixing some some xt4/pgi compiler issues. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4415 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed config.guess and config.sub for Cray xt3 and xt4 targets.jshalf2007-04-04
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4414 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add known architecture file for Darwin 8.9.1schnetter2007-03-14
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4413 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Correct dependency generation for Fortran files:schnetter2007-02-27
| | | | | | | | | | | | | | | Do not set F90_DEPEND, as this variable is not used. Move definition of F77_DEPEND to where F_DEPEND is set. Set F_DEPEND to "$(FPP)", which is evaluated when make runs, not to the default value of FPP. This allows influencing F_DEPEND by setting FPP. Set AIX_[Ff]90_FLAGS to "-qfree", to be symmetric to AIX_[Ff]_FLAGS and AIX_[Ff]77_FLAGS, which are set to "-qfixed". git-svn-id: http://svn.cactuscode.org/flesh/trunk@4411 17b73243-c579-4c4c-a9d2-2d5706c11dac
* move liblammpi++ in front of all other LAM libstradke2007-02-19
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4410 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Prefer bash over sh. sh on AIX has severe limitations and cannotschnetter2007-02-17
| | | | | | | | | | | handle long argument lists, which prevents calling ar or ld when there are many thorns. Add a comment describing why setting SHELL when configuring does not work. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4409 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Take F90_SUFFIX into account when "preprocessing" .f90 files. This isschnetter2007-02-16
| | | | | | | | necessary on AIX, where the compiler requires free-form Fortran 90 files to have a .f suffix. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4408 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Allow users to override FPP settingtradke2007-02-16
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4407 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Update darwin configuration script:schnetter2006-11-11
| | | | | | | | | | | | | Add support for the Intel compiler. Disable a test for a special version of gcc 3.3 modified by Apple installed in a special location. Do not try to use the Absoft compiler if all compiler auto-detection fails. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4385 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add known architecture file for Darwin 8.8.1.schnetter2006-09-30
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4377 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Check for lam_config.h in ${LAM_INC_DIR} if it is set.tradke2006-08-28
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4366 17b73243-c579-4c4c-a9d2-2d5706c11dac
* No significant change. Just increase the version number to what itschnetter2006-08-23
| | | | | | | | was before the CVS server was restored. This file has now effectively the same content as before the repository corruption. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4364 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Recommit patch from Erik Schnetter (see revision 1.148 of configure.in):tradke2006-08-23
| | | | | | | | | | | Set the F77 profile flags as well when setting the F77 flags. This somehow got lost in the previous change. This should bring the configure script back in sync with configure.in now that the CVS server problems have been solved. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4363 17b73243-c579-4c4c-a9d2-2d5706c11dac
* current version of OpenBSDjthorn2006-08-02
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4361 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add liblammpi++ to the library link list if it is found.swhite2006-07-29
| | | | | | | Needed by Carpet and GZPatchSystem git-svn-id: http://svn.cactuscode.org/flesh/trunk@4360 17b73243-c579-4c4c-a9d2-2d5706c11dac
* When compiling src/datestamp.c, pass in as a preprocessor define the currenttradke2006-07-28
| | | | | | | | data/time as returned by /bin/date in possibly ISO 8601 compliant format. This datetime stamp will be used by the new flesh routine CCTK_CompileDateTime(). git-svn-id: http://svn.cactuscode.org/flesh/trunk@4357 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Set the F77 profile flags as well when setting the F77 flags. Thisschnetter2006-07-25
| | | | | | | somehow got lost in the previous change. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4356 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Set the F77 compiler and flags from the F90 compiler and flags earlierschnetter2006-07-25
| | | | | | | | during configuring. This way they are set before they are used to determine the properties of the Fortran compiler. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4355 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Cactus only enables support for CCTK_REALx if both C and Fortranschnetter2006-07-25
| | | | | | | | | | | support this type. This does not make sense if there is no Fortran compiler. Disable the check whether real*n is supported in Fortran when there is no Fortran compiler. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4354 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added current AIX version at PSI.rzg.mpg.deswhite2006-07-25
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4353 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Cactus' autodetection of Fortran's real*16 does currently not work; itschnetter2006-07-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | always detects it as "not present", even if the message printed to the screen during configuration says "present". The enclosed patch corrects this: Rename the detecting autoconf macro from CCTK_PROG_FORTRAN_REAL16 to CCTK_FORTRAN_REAL16. This follows the usual autoconf naming conventions; see e.g. CCTK_CXX_BOOL. Also rename the return value (a global variable) from fortran_does_real16 to cctk_cv_have_fortran_real16. In this macro, use the function AC_TRY_COMPILE instead of AC_TRY_COMPILER. The difference is that this then only compiles, it does not try to link and execute. Executing would require handling cross-compiling in a special way. Replace the autoconf macro AC_TRY_COMPILE by CCTK_TRY_COMPILE, correcting an error in handling Fortran programmes. AC_TRY_COMPILE does not work for Fortran in autoconf 2.13. Move setting the compiler debug and warning flags further up in configure.in, so that the Fortran 77 compiler flags, which may be copied from the Fortran 90 compiler flags, are correct when the Fortran types are detected. Otherwise the wrong Fortran 77 compiler may be used for this test. Add autodetection for all the Fortran types real*4, real*8, real*16, complex*8, complex*16, and complex*32. Make this result available to thorns as HAVE_CCTK_FORTRAN_xxx. Define the CCTK_REALxxx and HAVE_CCTK_REALxxx macros only if the corresponding real and complex types are available in both C and Fortran. Remove some leftover debugging statements. Tested on Darwin-x86 with gcc and Linux-x86 with Intel. Touche force-reconfigure. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4351 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Remove the test whether the options -no-cpp-precomp or -mlongcallschnetter2006-07-19
| | | | | | | | | | | should be added when gcc is used. The test used illegal shell syntax, which made it always fail, and uses compiler version numbers which are not available at this point. The new setting is: Do not add any of these options by default. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4350 17b73243-c579-4c4c-a9d2-2d5706c11dac
* typo $MPICH_LIB_DIRS -> $MPICH_LIB_DIRswhite2006-07-05
| | | | | | | might have affected MPICH distros that used "libmpi.a" rather than "libmpich.a" git-svn-id: http://svn.cactuscode.org/flesh/trunk@4342 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Support Darwin 8.7.1schnetter2006-06-29
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4336 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Correct syntax errorschnetter2006-06-23
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4331 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add a new configuration flag PROFILE=yes, which enables profiling in aschnetter2006-06-23
| | | | | | | | | | | | | | | | | | | build. This flag is equivalent to OPTIMISE=yes and DEBUG=yes. Additional compiler options {C,CXX,F77,F90}_PROFILE_FLAGS are also introduced. The configuration stage sets the F77 flags to the F90 flags if an F90 compiler is found. This flag setting was done too early, namely before the default values for the F90 flags were set. This flag setting has been moved to a later time. The link command used undefined make variables $(OPTIMISE_C) etc. These variables have been removed. Instead $(CXX_OPTIMISE_FLAGS) etc. are added to the link statement. This makes the linker pick up the correct flags e.g. for profiling. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4327 17b73243-c579-4c4c-a9d2-2d5706c11dac
* One too many flags ended in the WARN flagsswhite2006-06-09
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4319 17b73243-c579-4c4c-a9d2-2d5706c11dac
* PG compiler flags improvementsswhite2006-06-09
| | | | | | | | | | | | | | 1) Got rid of --instantiate=used which only irritates recent compilers. 2) Broke off warning settings which were previously part of e.g. F90_OPTIMISE_FLAGS into F90_WARN_FLAGS so now you see most of the "loop unroll" etc warnings only if WARN is on. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4318 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Made to locate LAM on my Ubuntu 6.06 system, with LAM 7.1.1swhite2006-06-08
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4317 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Application of patchswhite2006-06-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fortran REAL*16 detection http://www.cactuscode.org/old/pipermail/patches/2006-April/000164.html ... a patch that makes Cactus directly detect Fortran support for a REAL*16 type. The problem has been that Cactus based CCTK_REAL16 on support for the C type 'long double'. This would cause it to create Fortran code for REAL*16, a type which was sometimes not supported. In particular, on a 64-bit Athlon machine with Gnu 4.1.0, gfortran defines REAL*8 but not REAL*16, while gcc defines 'long double'. This caused thorn AEIThorns/Fortran to fail to compile. This patch causes the configuration to directly compile Fortran code that features REAL*16, and define CCTK_REAL16 only if that compiles *and* C's 'long double' is supported. When you make config, you will see a new line about Fortran REAL*16. I have tested the enclosed patch on my laptop with Gnu 4.10 and Intel 9.0 compilers 64-bit AMD Athlon with same compilers POWER4 with IBM XL compilers BUT NOTE: I have severe doubts about using REAL*16 on any of these architectures. That 16-byte (128-bit) type is not natively supported on the Xeon, Athlon, or POWER machines. While some compilers support such types, calculation is done in software, not on the FPU. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4314 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Application of patchswhite2006-06-08
| | | | | | | | | | | | | | | | | | | | | | http://www.cactuscode.org/old/pipermail/patches/2006-April/000160.html ... a patch for the known-architectures file for Darwin for the XLF compiler. Primarily it is to improve the speed, by making the optimization options to be -O3 -qhot -qarch=auto -qtune=auto -qcache=auto This gets quite good performance, but moves instructions. The various "auto's" cause the compiler to generate optimal code for the platform on which the compiler is running. Also, I made it supress the congratulatory message ("Yay, I compiled"). Also, I test the compiler version major and minor numbers so that darned "-no-cpp-precomp" option is included only when the version is less than 3.3. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4313 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Applied patchswhite2006-06-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | aix known-architectures for XLC/XLF http://www.cactuscode.org/old/pipermail/patches/2006-April/000159.html > ... a patch for the AIX known-architectures file, meant to > improve performance for the IBM XLC/XLF compilers. > > I made the default optimization to be > -O3 -qarch=auto -qtune=auto -qcache=auto -qhot > for all the IBM compilers. > > I also made XLF to suppress congratulatory messages ("Yay! I compiled!) > on successful compilation. > > I tested -02 through -O5. On BSSNCarpet runs, "-O3 -qhot" performed > best--but beware, it moves instructions. While turning on -qstrict > fixes this, it also degrades performance. The -qarch=auto causes the > code to be customized for the architecture on which it is compiled. > The higher levels turn on -qipa which does global optimizations and > work best if this option is also supplied at link time. > > See http://publib.boulder.ibm.com/infocenter/comphelp/v7v91/index.jsp git-svn-id: http://svn.cactuscode.org/flesh/trunk@4312 17b73243-c579-4c4c-a9d2-2d5706c11dac
* corrected libraries listswhite2006-05-13
| | | | | | | and made it include libmpi_cxx git-svn-id: http://svn.cactuscode.org/flesh/trunk@4296 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Automatically check for libz also in /usr/lib64/.tradke2006-05-08
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4291 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Use "$OPENMPI_DIR/lib64" for MPI_LIB_DIRS if that exists.tradke2006-05-08
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4290 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add support for OpenMPIswhite2006-05-05
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4288 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix detection of compiler version for pgCC.tradke2006-05-04
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4287 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add known architecture file for Darwin 8.6.1.schnetter2006-04-07
| | | | | | | There seem to be new Darwin releases every week or so. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4283 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Check for the "restrict" qualifier more thoroughly. Certain compilersschnetter2006-04-04
| | | | | | | | (old versions of g++) don't support restrict in arrays which are structure members. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4282 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Update configure script after recent aclocal.m4 changes.schnetter2006-04-02
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4281 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add another test when checking for the "restrict" qualifiers. Someschnetter2006-04-02
| | | | | | | | | buggy compilers (e.g. old versions of gcc) do not support "restrict" on arrays which are function arguments. On these compilers, we now disable "restrict". git-svn-id: http://svn.cactuscode.org/flesh/trunk@4280 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Explicitly remove all previous "conftest*" files before trying toschnetter2006-04-02
| | | | | | | | | | | | | compile something. It seems as if AC_PROG_*_GNU does not clean up after itself. On case-insensitive file systems, having a file "conftest.c" around while using cat to write to a file "conftest.C" means that the resulting file is still "conftest.c", so that it is compiled as C and not as C++ programme. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4279 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add some tests to make it work with PETSc 2.3.x as well.schnetter2006-04-01
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4278 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add new architecture file for Darwin 8.5.2schnetter2006-03-26
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4274 17b73243-c579-4c4c-a9d2-2d5706c11dac