summaryrefslogtreecommitdiff
path: root/lib/make/force-reconfigure
Commit message (Collapse)AuthorAge
* Make CCTK_REAL16 more flexibleeschnett2013-01-15
| | | | | | | | | Instead of assuming that CCTK_REAL16 is real*16 in Fortran, allow any real*N for user-specified values of N. This enables using CCTK_REAL16 e.g. with gcc versions that call it real*10. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4935 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Autoconf attribute always_inlineeschnett2013-01-15
| | | | | | | | Add autoconf test for __attribute__((__always_inline__)). Improve autoconf test for _Pragma syntax. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4934 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Check availability of isnan in C++eschnett2012-10-22
| | | | | | | | | | Check availability of isnan in C++. Introduce autoconf macros specifying how to call a good version of isnan in any language. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4881 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Force reconfiguringeschnett2012-08-10
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4859 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Correct error in determining dependencieseschnett2012-07-15
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4843 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Support OpenCL source code (.cl files)eschnett2012-05-02
| | | | | | | | | | | | | | | | | | OpenCL source code needs to be compiled at run time, and thus needs to be passed as string to the OpenCL run-time library. This makes writing OpenCL source code inconvenient. This patch adds *.cl as supported file type to Cactus. *.cl files are transformed into globally visible strings, with a name consisting of the thorn name and file name. These strings can then be easily used at run time to build and run OpenCL code. Since *.cl files are converted to strings (and are not OpenCL-compiled at build time), there are no CL* options specifying compiler type, compiler flags etc. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4808 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Autodetect <sched.h> and sched_getaffinity()eschnett2011-06-28
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4704 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Improve auto-detection of "restrict" keywordeschnett2011-06-08
| | | | | | | | | | | | | | | | | | | | | | | | | Update and improve the auto-detection of the "restrict" keyword; add more test cases to detect more possible failures. Disable testing the array syntax void foo (double A[restrict]); where the "restrict" keyword is given within the square brackets; instead, one can use the pointer syntax void foo (double *restrict const A); which is tested. Add support for the gcc built-in function "builtin_expect", which tells the compiler the value that an expression is most likely to have. Re-enable the (currently commented out) definitions for attribute(hot) and attribute(cold). git-svn-id: http://svn.cactuscode.org/flesh/trunk@4702 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Force reconfiguring to make the new variables MAKE, TAR, GZIP_CMD,eschnett2011-03-30
| | | | | | | PATCH, GIT available git-svn-id: http://svn.cactuscode.org/flesh/trunk@4694 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add CCTK_ATTRIBUTE_ALIGNED, which is auto-configured and expands toeschnett2011-01-04
| | | | | | | | gcc' __attribute__(__aligned__(...)) if present. This is necessary for vectorisation. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4662 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add new configuration flags CPP_DEBUG_FLAGS etc., which allow passingeschnett2010-12-22
| | | | | | | | | | | | | | | | | | | | | | | special CPP flags for debugging. These complement the existing C_DEBUG_FLAGS and CPPFLAGS. In particular, the following flags are added: CPP_DEBUG_FLAGS FPP_DEBUG_FLAGS CPP_OPTIMISE_FLAGS FPP_OPTIMISE_FLAGS CPP_PROFILE_FLAGS FPP_PROFILE_FLAGS CPP_OPENMP_FLAGS FPP_OPENMP_FLAGS CPP_WARN_FLAGS FPP_WARN_FLAGS Applications are e.g. adding -Wall to CPP_WARN_FLAGS, or -fopenmp to CPP_OPENMP_FLAGS. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4656 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Force people to reconfigure their buildseschnett2010-11-24
| | | | | | | | Modify force-reconfigure to force people to reconfigure their builds because the way unsued variables are handles changed. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4653 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Enforce reconfiguring Cactus configurations sinceeschnett2010-10-13
| | | | | | | | ExternalLibraries/HDF5 has changed. This may otherwise lead to build failures in thorns that use HDF5. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4642 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Enforce reconfiguring after introducing RUNDIR_PREFIXschnetter2010-03-26
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4600 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Detect whether the compiler supports the attributesschnetter2009-11-11
| | | | | | | | | | | | | | | | | | | | | | const pure unused cold hot These attributes can be used to annotate declarations of variables, functions, and member functions to avoid warnings or enable additional optimisations. Detect whether the _Pragma directive is recognised. _Pragma can be used instead of #pragma, but works also inside macros. Update the detection of the static, inline, and restrict qualifiers to catch certain compiler errors, and avoids using these attributes with these compilers. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4578 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Force rebuild after schedule changesschnetter2008-04-09
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4482 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
* 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
* 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
* My yesterday's commit "fix order of external/system libs on the linker commandtradke2006-03-10
| | | | | | | line" requires a reconfigure of existing configurations. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4270 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 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
* Add HAVE_HDF5_STREAM_VFD and HDF5_LFS_FLAGS makefile variables.tradke2004-11-08
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3905 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Change macro name "HDF5" to "CCTK_HDF5".schnetter2004-10-21
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3875 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Introduce HAVE_LAPACK and HAVE_BLAS make variables.schnetter2004-08-02
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3818 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
* 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
* Introduce the mechanism that forces users to re-configure theirschnetter2004-04-10
configurations. (I updated detecting external libraries (MPI, PETSc, etc.) to use a scheme more sane, and realise only after the fact that people will have to reconfigure for that.) git-svn-id: http://svn.cactuscode.org/flesh/trunk@3657 17b73243-c579-4c4c-a9d2-2d5706c11dac