summaryrefslogtreecommitdiff
path: root/acinclude.m4
Commit message (Collapse)AuthorAgeFilesLines
* [acinclude.m4] Replaced a "main()" (from the merge of r8245) byvlefevre2016-02-261-1/+1
| | | | | | | | | "main (void)" (the other similar changes were done in r9418 for the 3.1 branch and r8728 in the trunk, which is why r8245 did not have this change). Useful to configure & build with -Werror (this needs a patched autoconf). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10131 280ebfd0-de03-0410-8827-d642c229c3f4
* Better threading support:vlefevre2016-02-261-10/+37
| | | | | | | | | | * Support for _Thread_local (C11). * Support build as thread-safe DLL on Windows (mainly changes from Stephan Tolksdorf). (merged changesets r7954,8245,9684,9778 from the trunk, with mpfr_flags_t replaced by unsigned int) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10130 280ebfd0-de03-0410-8827-d642c229c3f4
* Replacedvlefevre2016-02-041-1/+1
| | | | | | | | Contributed by the AriC and Caramel projects by Contributed by the AriC and Caramba projects git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@9943 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2016 withvlefevre2016-01-011-1/+1
| | | | | | | | | perl -pi -e 's/ (\d{4}-)?(2015)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh (the m4 and tools/mbench directories were not modified). Removed 2015 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@9781 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Various corrections in the tests:vlefevre2015-05-211-27/+21
| | | | | | | | | * MPFR_FUNC_GMP_PRINTF_SPEC: missing #include <string.h> for strcmp. * Replaced rint by nearbyint in messages (as nearbyint is tested). * Avoid warnings to avoid failures when -Werror is used. (merged changeset r9438 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@9439 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4,configure.ac] Check that a directory passed tovlefevre2015-05-201-0/+30
| | | | | | | | | a --with-gmp* configure option exists and doesn't contain any space, and canonicalize the name if the realpath utility is available (patch by Patrick PĂ©lissier). (merged changeset r8840 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@9421 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Avoid a warning due to variable set but not used in avlefevre2015-05-201-0/+1
| | | | | | | test, making the test fail with gcc -Werror=unused-but-set-variable. (merged changeset r8729 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@9419 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Replaced "main()" by "main (void)".vlefevre2015-05-201-6/+6
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@9418 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Check struct lconv members (from <locale.h>) to avoid avlefevre2015-05-201-0/+4
| | | | | | | | | | | | | | | build failure under Android, which does not have them; see https://sympa.inria.fr/sympa/arc/mpfr/2012-10/msg00002.html [src/mpfr-impl.h] Decimal point / thousands separator support can now be detected automatically by configure (from the presence of <locale.h> and the above members) or explicitly disabled/enabled by the user by defining the MPFR_LCONV_DPTS macro to 0 or 1 via CFLAGS (a configure switch might be added in the future). [tests/tsprintf.c] Do the locale_da_DK test only if MPFR_LCONV_DPTS is true. (merged changeset r8423 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@9414 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Added a test for signed zeros (defines HAVE_SIGNEDZ).vlefevre2015-05-201-0/+16
| | | | | | | | | | [tests/{tset_d.c,tget_flt.c}] Disabled two tests when HAVE_SIGNEDZ isn't defined, because these tests rely on signed zeros. Note: this is needed for compilers that don't support signed zeros, like tcc 0.9.26 and before. (merged changesets r8339-8340 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@9413 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4,configure.ac]vlefevre2015-05-201-6/+118
| | | | | | | | | | | | * Added test for double-to-integer conversion bug. * Corrected a gmp.h inclusion. * Added MPFR_CHECK_GMP configure check. Without this test, one could get an error in MPFR_CHECK_PRINTF_SPEC (or MPFR_CHECK_DBL2INT_BUG, taking into account the above addition), though the error is not related to printf or a double-to-integer conversion bug. (merged changesets r8353-8355,8432,8601-8602,8606,8614,8900 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@9412 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated autotools files to get rid of obsolete macros. Removedvlefevre2015-05-201-17/+24
| | | | | | | useless "#include <math.h>" in the test for subnormal numbers. (merged changesets r8337-8338,8364 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@9411 280ebfd0-de03-0410-8827-d642c229c3f4
* Replaced "denormalized" by the official term "subnormal".vlefevre2015-05-201-3/+3
| | | | | | (merged changeset r8334 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@9410 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2015 withvlefevre2015-05-201-1/+1
| | | | | | | | | perl -pi -e 's/ (\d{4}-)?(2014)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh (the m4 and tools/mbench directories were not modified). Removed 2014 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@9403 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2014 withvlefevre2014-01-031-1/+1
| | | | | | | | | | perl -pi -e 's/ (\d{4}-)?(2013)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh, reverting the ChangeLog file (the m4 and tools/mbench directories were not modified). Removed 2013 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@8724 280ebfd0-de03-0410-8827-d642c229c3f4
* Use copyright year ranges, followingvlefevre2013-05-301-1/+1
| | | | | | http://www.gnu.org/prep/maintain/maintain.html#Copyright-Notices git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@8541 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2013 withvlefevre2013-03-081-1/+1
| | | | | | | | | perl -pi -e 's/2012 Free Software/2012, 2013 Free Software/' **/*(^/) under zsh, reverting the ChangeLog file (the m4 and tools/mbench directories were not modified). Removed 2012 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@8465 280ebfd0-de03-0410-8827-d642c229c3f4
* Changed Arenaire to AriC with:vlefevre2012-01-101-1/+1
| | | | | | | perl -pi -e 's/Contributed by the Arenaire/Contributed by the AriC/' **/*(^/) under zsh, reverting the ChangeLog file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@7995 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2012 withvlefevre2012-01-101-1/+1
| | | | | | | | | perl -pi -e 's/2011 Free Software/2011, 2012 Free Software/' **/*(^/) under zsh, reverting the ChangeLog file (the m4 and tools/mbench directories were not modified). Removed 2011 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@7987 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] In the INTMAX_MAX test, no longer hardcode thevlefevre2011-08-041-1/+4
| | | | | | | | "#include <stdint.h>" (for instance, this doesn't work under Solaris 9: INTMAX_MAX is defined only via <inttypes.h>), but include "mpfr-intmax.h" instead (needs a temporary CPPFLAGS). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7782 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] detect long double format in m68kzimmerma2011-07-281-0/+19
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7755 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Correction of problems triggering the warningvlefevre2011-04-181-10/+5
| | | | | | | | | "warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body" with autoconf 2.68: * Fixed missing quoting in an AC_RUN_IFELSE. * Added an AC_LANG_SOURCE in another AC_RUN_IFELSE. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7634 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] s/can not/cannot/vlefevre2011-04-181-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7633 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Added comment about the warning:vlefevre2011-04-181-0/+4
| | | | | | warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7632 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Use conventional quotes.vlefevre2011-04-151-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7631 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Added a comment.vlefevre2011-04-151-0/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7630 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2011 withvlefevre2011-01-171-1/+1
| | | | | | | | perl -pi -e 's/2010 Free Software/2010, 2011 Free Software/' **/*(^/) under zsh, reverting the ChangeLog file and the m4 and tools/mbench directories. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7389 280ebfd0-de03-0410-8827-d642c229c3f4
* TLS support is now detected automatically. If TLS is supported, MPFR isvlefevre2011-01-131-6/+24
| | | | | | | built as thread safe by default. To disable TLS explicitly, configure MPFR with --disable-thread-safe. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7329 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Corrected comment for PowerPC.vlefevre2010-10-241-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7243 280ebfd0-de03-0410-8827-d642c229c3f4
* added tuning parameters for HPPA (on HP-UX machine kindly provided by Davidzimmerma2010-10-241-0/+1
| | | | | | | Kirkby) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7242 280ebfd0-de03-0410-8827-d642c229c3f4
* needed stuff to use src/powerpc32/mparam.h filezimmerma2010-10-231-0/+1
| | | | | | | (note that long double is IEEE double on PowerPC32) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7240 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Added a FIXME concerning autoconf 2.68.vlefevre2010-09-271-0/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7172 280ebfd0-de03-0410-8827-d642c229c3f4
* Source reorganization. In short:vlefevre2010-08-171-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added directories and moved related files into them: - src for the MPFR source files (to build the library). - doc for documentation files (except INSTALL, README...). - tools for various tools (scripts) and mbench. - tune for tuneup-related source files. - other for other source files (not distributed in tarballs). Existing directories: - tests for the source files of the test suite (make check). - examples for examples. - m4 for m4 files. * Renamed configure.in to configure.ac. * Added/updated Makefile.am files where needed. * Updated acinclude.m4 and configure.ac (AC_CONFIG_FILES line). * Updated the documentation (INSTALL, README, doc/README.dev and doc/mpfr.texi). * Updated NEWS and TODO. * Updated the scripts now in tools. The following script was used: #!/usr/bin/env zsh svn mkdir doc other src tools tune svn mv ${${(M)$(sed -n '/libmpfr_la_SOURCES/,/[^\]$/p' \ Makefile.am):#*.[ch]}:#get_patches.c} mparam_h.in \ round_raw_generic.c jyn_asympt.c src svn mv mbench check_inits_clears coverage get_patches.sh mpfrlint \ nightly-test update-patchv update-version tools svn mv bidimensional_sample.c speed.c tuneup.c tune svn mv *.{c,h} other svn mv FAQ.html README.dev algorithm* faq.xsl fdl.texi mpfr.texi \ update-faq doc svn mv configure.in configure.ac svn cp Makefile.am src/Makefile.am svn rm replace_all [Modifying some files, see above] svn add doc/Makefile.am svn add tune/Makefile.am git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7087 280ebfd0-de03-0410-8827-d642c229c3f4
* Avoid a compilation failure on OSF/1 (Tru64) 5.1 due to non-C99vlefevre2010-08-161-3/+3
| | | | | | | | | | | | | | | | conformance though <inttypes.h> is available. In various source files and m4 files, use the following form only: #if HAVE_INTTYPES_H # include <inttypes.h> #endif #if HAVE_STDINT_H # include <stdint.h> #endif Updated README.dev to mention this form. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7083 280ebfd0-de03-0410-8827-d642c229c3f4
* Support implementations where the floating-point division by 0 fails.vlefevre2010-08-041-0/+24
| | | | | | | | | | | | | | * acinclude.m4: added a test to check whether the FP division by 0 fails, and define MPFR_ERRDIVZERO in such a case. * tests/tests.c: if MPFR_TEST_DIVBYZERO is defined, test whether there has been a floating-point division by 0 (FE_DIVBYZERO or FE_INVALID exception). * tests/tgeneric.c: if MPFR_ERRDIVZERO is defined, disable the huge and tiny cases. * tests/t*_{flt,d,ld}.c: if MPFR_ERRDIVZERO is defined, disable tests involving NaN and infinities. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7050 280ebfd0-de03-0410-8827-d642c229c3f4
* Replacedvlefevre2010-07-301-1/+1
| | | | | | | | Contributed by the Arenaire and Cacao projects by Contributed by the Arenaire and Caramel projects git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7026 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Use AC_FUNC_ALLOCA to have HAVE_ALLOCA_H definedvlefevre2010-06-251-0/+3
| | | | | | | | when available. This problem was introduced when AC_FUNC_ALLOCA was removed from configure.in in r6765. Note: building MPFR with --with-gmp-build is not affected as GMP's config.h is used. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6989 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Math library check: removed rule specific to HP-UXvlefevre2010-06-031-5/+0
| | | | | | | (only -lM was tested while this library may not be available; so, let's use the default rule as -lm works). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6915 280ebfd0-de03-0410-8827-d642c229c3f4
* Detect when the intmax_t type is available but INTMAX_MAX doesn't workvlefevre2010-05-221-0/+9
| | | | | | | | | | (e.g. with gcc -ansi -pedantic-errors in 32-bit mode under GNU/Linux). New macros MPFR_UINTMAX_MAX, MPFR_INTMAX_MAX and MPFR_INTMAX_MIN are defined and used internally instead of UINTMAX_MAX, INTMAX_MAX and INTMAX_MIN. If these C99 macros work, then the MPFR_* macros use them, otherwise MPFR uses its own definitions. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6849 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] now also recognize "IEEE double, little endian" long-doublezimmerma2010-02-241-0/+14
| | | | | | | format (not tested, should happen on ARM) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6714 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] added recognition of "IEEE double big endian" long double formatzimmerma2010-02-241-0/+34
| | | | | | | (tested on gcc40.fsffrance.org and gcc53, both PowerPC's) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6713 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Added test for long double = double-double (GCC/PowerPC).vlefevre2010-02-241-0/+28
| | | | | | This test cannot currently be reliable, so we just output a warning. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6712 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2010 withvlefevre2010-01-201-1/+1
| | | | | | | perl -pi -e 's/2009 Free Software/2009, 2010 Free Software/' **/*(^/) under zsh, reverting the ChangeLog file and the mbench directory. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6684 280ebfd0-de03-0410-8827-d642c229c3f4
* [README.dev] required version of autoconf did not agree with acinclude.m4zimmerma2010-01-101-0/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6649 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] reversed order for case "quad, mais en little endian" forzimmerma2009-12-111-15/+15
| | | | | | | coherence with other cases git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6633 280ebfd0-de03-0410-8827-d642c229c3f4
* patch to recognize IEEE quad, little endian format for "long double"zimmerma2009-12-101-0/+25
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6632 280ebfd0-de03-0410-8827-d642c229c3f4
* [tfprintf.c,tprintf.c] applied patch from Philippe Thevenyzimmerma2009-11-251-4/+0
| | | | | | | [acinclude.m4] removed check for %zu, no longer needed git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6585 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] added test for %zuzimmerma2009-11-251-0/+4
| | | | | | | [tfprintf.c,tprintf.c] added #ifdef's for NPRINTF_ZU git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6582 280ebfd0-de03-0410-8827-d642c229c3f4
* Renamed COPYING.LIB as COPYING.LESSER (GNU Coding Standards, #7.3)vlefevre2009-07-301-1/+1
| | | | | | and updated all the references (except in ChangeLog). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6351 280ebfd0-de03-0410-8827-d642c229c3f4
* acinclude.m4: Make sure results of calculations on constants used withvlefevre2009-06-141-3/+4
| | | | | | | | | the fesetround() test are not precomputed by GCC (occurs on MIPS). Patch from Maciej W. Rozycki. https://sympa.inria.fr/sympa/arc/mpfr/2009-06/msg00036.html http://article.gmane.org/gmane.comp.lib.mpfr.general/174 git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6274 280ebfd0-de03-0410-8827-d642c229c3f4