summaryrefslogtreecommitdiff
path: root/acinclude.m4
Commit message (Collapse)AuthorAgeFilesLines
* [acinclude.m4] Improved MPFR_CHECK_DBL2INT_BUG in case of failurevlefevre2013-07-111-2/+23
| | | | | | and added comments about that. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8614 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Corrected change in r8602 to get an error in the casevlefevre2013-07-101-1/+1
| | | | | | i == 0 and u != 1. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8606 280ebfd0-de03-0410-8827-d642c229c3f4
* more helpful debug informationzimmerma2013-07-101-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8602 280ebfd0-de03-0410-8827-d642c229c3f4
* added debug information for double-to-integer conversion bugzimmerma2013-07-101-3/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8601 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/trunk@8540 280ebfd0-de03-0410-8827-d642c229c3f4
* replaced macros NPRINTF_T and NPRINTF_L by positive versionszimmerma2013-05-221-2/+4
| | | | | | | | | PRINTF_T and PRINTF_L, now we don't assume that %td and %Lf are supported when we don't check it (for example when cross-compiling, or under Windows when GMP is a dynamic library) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8523 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2013 withvlefevre2013-01-031-1/+1
| | | | | | | | | perl -pi -e 's/2012 Free Software/2012, 2013 Free Software/' **/*(^/) under zsh, reverting the ChangeLog file and the m4 directory (the tools/mbench directory was not modified). Removed 2012 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8447 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4,configure.ac] Moved the "double-to-integer conversion bug"vlefevre2012-12-051-35/+43
| | | | | | | test after the gmp.h detection as it uses gmp.h (otherwise one gets an incorrect error on this test if gmp.h can't be found or is unusable). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8432 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Check struct lconv members (from <locale.h>) to avoid avlefevre2012-10-101-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. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8423 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated autotool files to get rid of obsolete macros (thanks tovlefevre2012-07-271-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Daniel Richard G. for the patch; kept the autoconf requirement to 2.60 instead of changing it to 2.68 as done with autoupdate, since 2.60 seems to be sufficient according to the changes and 2.68 is too recent, e.g. Debian/stable still has 2.67). --- Note --- This update has another effect: The "Configs for Windows DLLs." code (from "case $host in" to "esac") is now executed at the right time, after options like --disable-static are taken into account. Juste before this change, the test if test "$enable_shared" = yes; then was always false. This could be seen on hydra: With r8360: [...] configure flags: --disable-static --disable-dependency-tracking --prefix=/nix/store/95zhbb0v23syxsazx33hg3acbvixyq5a-mpfr-0-3.2.0-dev [...] checking for DLL/static GMP... static [...] checking whether to build shared libraries... yes checking whether to build static libraries... no [...] With r8367: [...] configure flags: --disable-static --disable-dependency-tracking --prefix=/nix/store/8zblwffd2ww1z0smqlgwrfzcl6b48rim-mpfr-0-3.2.0-dev [...] checking whether to build shared libraries... yes checking whether to build static libraries... no checking for DLL/static GMP... static [...] git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8364 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] fix for cross-compilationzimmerma2012-07-241-5/+9
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8355 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Improved a message and corrected gmp.h inclusion.vlefevre2012-07-241-3/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8354 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] added test for double-to-integer conversion bugzimmerma2012-07-241-0/+26
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8353 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Added a test for signed zeros (tcc currently doesn'tvlefevre2012-07-061-0/+16
| | | | | | support signed zeros, and 2 MPFR tests fail because of that). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8339 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Removed useless "#include <math.h>" in the testvlefevre2012-07-061-1/+0
| | | | | | for subnormal numbers. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8338 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Replaced the AC_TRY_RUN obsolete macro byvlefevre2012-07-061-8/+14
| | | | | | | | AC_RUN_IFELSE([AC_LANG_SOURCE([[...]])],...) as documented in the GNU Autoconf manual. Minor correction in the test for subnormal numbers. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8337 280ebfd0-de03-0410-8827-d642c229c3f4
* Replaced "denormalized" by the official term "subnormal".vlefevre2012-07-061-3/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8334 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Fixed sigaction check to support "gcc -std=c99", likevlefevre2012-07-031-1/+20
| | | | | | what has been done for math/round. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8297 280ebfd0-de03-0410-8827-d642c229c3f4
* Support tests that are expected to fail (from a patch by Patrick).vlefevre2012-06-261-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8266 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Detect whether _Thread_local (C11) is supported.vlefevre2012-06-251-10/+37
| | | | | | | [src/mpfr-thread.h] Use _Thread_local if supported, instead of __thread. (Patch from Patrick) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8245 280ebfd0-de03-0410-8827-d642c229c3f4
* Added Static Assertion support (modified patch from Patrick).vlefevre2012-06-251-0/+29
| | | | | | | | * Added src/mpfr-sassert.h: implementation of static assertions. * src/mpfr-impl.h: include "mpfr-sassert.h". * acinclude.m4: test whether static assertions are supported. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8241 280ebfd0-de03-0410-8827-d642c229c3f4
* Added support for _Noreturn function specifier (ISO C11).vlefevre2012-04-251-0/+9
| | | | | | | | * acinclude.m4: define MPFR_HAVE_NORETURN if _Noreturn is supported. * src/mpfr-impl.h: use _Noreturn when MPFR_HAVE_NORETURN is defined. Tested with GCC 4.6 (no _Noreturn) and 4.7 (supports _Noreturn). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8156 280ebfd0-de03-0410-8827-d642c229c3f4
* [configure.ac] use AC_C_BIGENDIAN to determine endianness of wordszimmerma2012-03-191-8/+0
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8114 280ebfd0-de03-0410-8827-d642c229c3f4
* [fpif.c] added commentszimmerma2012-03-161-4/+9
| | | | | | | | [tfpif.c] improve error message in case of mismatch [acinclude.m4] forgot double-double big endian git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8099 280ebfd0-de03-0410-8827-d642c229c3f4
* [fpif.c] fixed a few issueszimmerma2012-03-151-0/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8095 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] deal with long double == doublezimmerma2012-03-071-0/+6
| | | | | | | [src/set_ld.c] idem git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8071 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. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7993 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/trunk@7986 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