summaryrefslogtreecommitdiff
path: root/lib/make/configure
Commit message (Collapse)AuthorAge
* Extended behaviour of LIBS and LIBDIRS: add -l and -L prefix only toschnetter2008-02-13
| | | | | | | library and directory names, respectively, but leave options alone. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4461 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Use autoconf to look for system-dependent low-level timing functions.schnetter2008-01-25
| | | | | | | Such timing functions are e.g. used by Carpet. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4457 17b73243-c579-4c4c-a9d2-2d5706c11dac
* patch from Jian Tao: add gfortran to the list of known F77/F90 compilerstradke2007-11-09
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4436 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Move setting of F90 and F77 to none earlier to prevent a buggoodale2007-10-18
| | | | | | | | when neither compiler has been found which left types undefined. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4433 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Introduce a new autoconf macro CCTK_CHECK_C_INLINE, which checks forschnetter2007-09-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | the inline keyword very similarly to AC_C_INLINE. CCTK_CHECK_C_INLINE works in the following way: Do nothing if the compiler accepts the inline keyword. Otherwise define inline to __inline__ or __inline if one of those work, otherwise define inline to be empty. The setting '__inline__ __attribute__((__gnu_inline__))' is for gcc 4.3 and later. By default this version of gcc follows the new ANSI standard for "static inline" and "extern inline", which is incompatible with many libraries (e.g. GSL), leading to linker errors about duplicate symbols. This is because "static inline" now generates an externally visible symbol. The setting above makes gcc fall back to the old meaning, which does not generate an externally visible symbol for "static inline". Use CCTK_CHECK_C_INLINE instead of AC_C_INLINE in configure.in. Re-generate configure. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4429 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* Set F77_WARN_FLAGS flags correctly when using F90 as F77.schnetter2006-01-27
| | | | | | | The other F77 flags are already overwritten. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4240 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Patch from Erik Schnetter to add preprocessor version in comments.goodale2005-12-13
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4212 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Cactus overrides the user's setting of F77 with that of F90. It alsoschnetter2005-10-12
| | | | | | | | | overrides F77FLAGS with F90FLAGS. This patch also sets F77_DEBUG_FLAGS and F77_OPTIMISE_FLAGS from the corresponding F90 flag settings. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4183 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Re-instating the configure test for X, but protecting it ingoodale2005-10-11
| | | | | | | | | | an if clause so it is only tested if CCTK_NEED_X is true. The PETSc extras file has been updated to set this flag. This will be reverted when the extras stuff is removed and thorns are using the thorns in CactusExternal to detect things. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4182 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removing the check for X libraries. This should now be donegoodale2005-10-05
| | | | | | | via a thorn and a configuration script. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4174 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Reverse changes made in version 1.133 to enable separate F77 and F90goodale2005-10-04
| | | | | | | | compilers --- this caused problems on an SP system and also needs to ensure that F90 and F77 naming schemes are the same. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4164 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Undo changes that prevent more unwanted warnings about unused variables.schnetter2005-09-28
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4155 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Introduce a new configuration flag DISABLE_REAL16 which disablesschnetter2005-09-26
| | | | | | | | | support for the datatype CCTK_REAL16. This is necessary because Cactus only detects whether C supports this datatype, and then assumes that Fortran behaves the same. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4149 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Introduce macros CCTK_DECLARE and CCTK_DECLARE_INIT which declare orschnetter2005-09-26
| | | | | | | | | | | | | | declare and initialise local variables. They also add the necessary magic to prevent compiler warnings about unused variables. If the compiler supports __attribute__((unused)), then use this. Otherwise, use the existing fallback of taking the variable's address. In Fortran, use the variable's kind as fallback. Use these macros in autogenerated code and in "cctk.h". git-svn-id: http://svn.cactuscode.org/flesh/trunk@4146 17b73243-c579-4c4c-a9d2-2d5706c11dac
* If the user has explicitly specified a setting for F77, then do notschnetter2005-09-26
| | | | | | | | override it. Override only settings that have been detected automatically. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4145 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Detect the compiler versions for CC, CXX, F77, and F90, and put the informationtradke2005-06-16
| | | | | | | as a comment into make.config.defn. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4077 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Check for availability of va_copy(3).tradke2005-05-16
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4052 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removed '-Wstrict-prototypes -Wmissing-prototypes' from CXX_WARN_FLAGS.tradke2005-03-02
| | | | | | | According to the gcc man page, these options are for compiling C code only. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3996 17b73243-c579-4c4c-a9d2-2d5706c11dac
* bugfix in previous commit -- hopefully we now handle all possible casesjthorn2005-02-10
| | | | | | | of OPTIMISE=something and OPTIMIZE=something-else correctly git-svn-id: http://svn.cactuscode.org/flesh/trunk@3987 17b73243-c579-4c4c-a9d2-2d5706c11dac
* [[from Jonathan && Thomas R jointly]]jthorn2005-02-10
| | | | | | | | | | | | | | | | | | catch the error case where ~/.cactus/config (or another options file) contains (eg) OPTIMISE=no # UK spelling with "S" but the user says gmake blah-config OPTIMIZE=yes # US spelling with "Z" or more generally, where (after combining settings from all options file(s) and the command line) we have an inconsistent mixture of OPTIMISE and OPTIMIZE settings before this commit, this would produce a no-optimization configuration with this commit, it produces an optimized configuration git-svn-id: http://svn.cactuscode.org/flesh/trunk@3986 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed detection of gettimeofday(2) which was broken for Intel C/C++ 8.1.tradke2005-01-14
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3959 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Allow LDFLAGS configure-time option to be used also during the configure stagetradke2004-06-26
| | | | | | | | | itself. This closes PR Compiler/1174: "Cactus thinks my g++ is a crosscompiler". git-svn-id: http://svn.cactuscode.org/flesh/trunk@3797 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Rename datatype availability macros from CCTK_HAVE_<datatype> intotradke2004-06-26
| | | | | | | HAVE_CCTK_<datatype> to be consistent with other configure macros. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3794 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Do not define CCTK_L2_CACHE_SIZE and CCTK_L2_CACHELINE_BYTES macros anymore.tradke2004-06-26
| | | | | | | They have been depricated in beta13. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3792 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Introduce CCTK_HAVE_INT* and CCTK_HAVE_REAL* macros.tradke2004-06-20
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3774 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Test for availability of mkstemp(3).tradke2004-06-20
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3773 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Took out '-Wbad-function-cast' and '-Wmissing-declarations' from defaulttradke2004-06-10
| | | | | | | | setting for CXX_WARN_FLAGS. According to g++, these are valid warning flags for C/ObjC but not for C++. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3766 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changed to using the cygwin version of Perl under cygwin. This hasgoodale2004-05-19
| | | | | | | | | | | | | | | | | | | | | | | | | | the translation of CCTK_HOME to a windows format from the master Makefile, and forced the addition of a new Make macro TRANSLATE_DIRS which is used in various places in Make to translate things like /cygwin/f/... into f:\... This is a 'call'able macro in Make, and defaults to $(1). There is a new subroutine in RunTestUtils which serves the same purpose. This change should not affect anyone not using Cactus on Windows. If you are using Windows you will need to reconfigure, making sure that the Perl you use is the cygwin one and not the ActiveState one. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3742 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Allow case-independent values for configure options WARN, OPTIMISE/OPTIMIZE,tradke2004-04-22
| | | | | | | | | DEBUG, C_LINE_DIRECTIVES, F_LINE_DIRECTIVES. This closes PR "Compiler/1655: configure command-line options should allow either case". git-svn-id: http://svn.cactuscode.org/flesh/trunk@3668 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changing so that line directives are not generated by default:goodale2004-02-05
| | | | | | | | | | Most Fortran compilers will barf on them, and last time I introduced them for C some C compilers did. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@3564 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Make error messages and debug information point to the real sourceschnetter2004-01-19
| | | | | | | | file instead of the preprocessed file. The options C_LINE_DIRECTIVES and F_LINE_DIRECTIVES control this behaviour. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3527 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add (incomplete) Fortran 90 bindings for the flesh functions.schnetter2004-01-19
| | | | | | | Also, detect Fortran 90 inter-module dependencies automatically. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3524 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add FPP and FPPFLAGS configuration variables. These are used forschnetter2004-01-19
| | | | | | | preprocessing Fortran files. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3522 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Turn "WARN={yes|no}" into a configuration option also (still changeable attradke2003-12-17
| | | | | | | compile time). git-svn-id: http://svn.cactuscode.org/flesh/trunk@3477 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Check for ifort as F77/F90 compiler.tradke2003-12-17
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3475 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Allow vector groups of scalars.schnetter2003-11-21
| | | | | | | | | | Allow vector groups with more than one declared variable. Much of this patch consists of removing special case code for scalars. Scalars are now almost everywhere treated as rank 0 arrays. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3465 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Update from configure.in. This mainly reflects the changes to enableschnetter2003-10-28
| | | | | | | CCTK_INT1. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3443 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Currently the dependencies from the configure.ccl file are not handledschnetter2003-10-07
| | | | | | | correctly. As a temporary work-around, I re-enable the old behaviour. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3423 17b73243-c579-4c4c-a9d2-2d5706c11dac