Mercurial > hg > octave-lyh
comparison configure.ac @ 14550:bc4c574ab3b6
Add configure check for isnan in fortran.
* libcruft/slatec-fn/erfc.in.f: Rename from erfc.f.
* libcruft/slatec-fn/derfc.in.f: Rename from derfc.f.
* libcruft/slatec-fn/module.mk (slatec-fn/derfc.f, slatec-fn/erfc.f):
New targets and rules.
* m4/acinclude.m4 (OCTAVE_CHECK_FORTRAN_HAVE_ISNAN): New macro.
* configure.ac: Use it. Substitute F77_ISNAN_MACRO.
* build-aux/common.mk (F77_ISNAN_MACRO): New variable.
author | Carlo de Falco <cdf@users.sourceforge.net> |
---|---|
date | Wed, 11 Apr 2012 15:40:01 -0400 |
parents | e8bc9c02533a |
children | 26b2983a8acd |
comparison
equal
deleted
inserted
replaced
14549:ad542fdd8c8f | 14550:bc4c574ab3b6 |
---|---|
590 AC_SUBST(F77_APPEND_EXTRA_UNDERSCORE) | 590 AC_SUBST(F77_APPEND_EXTRA_UNDERSCORE) |
591 | 591 |
592 if test -z "$F77"; then | 592 if test -z "$F77"; then |
593 AC_MSG_ERROR([in order to build octave, you must have a compatible Fortran compiler or wrapper script for f2c that functions as a Fortran compiler installed and in your path. See the file INSTALL for more information.]) | 593 AC_MSG_ERROR([in order to build octave, you must have a compatible Fortran compiler or wrapper script for f2c that functions as a Fortran compiler installed and in your path. See the file INSTALL for more information.]) |
594 fi | 594 fi |
595 | |
596 OCTAVE_CHECK_FORTRAN_HAVE_ISNAN | |
597 F77_ISNAN_MACRO= | |
598 if test "x$octave_cv_fortran_have_isnan" = xno; then | |
599 AC_MSG_NOTICE([substituting ISNAN(X) with X.NE.X in fortran sources]) | |
600 F77_ISNAN_MACRO="s|ISNAN(\(@<:@^)@:>@*\))|(\1.NE.\1)|" | |
601 fi | |
602 AC_SUBST(F77_ISNAN_MACRO) | |
595 | 603 |
596 OCTAVE_CHECK_FORTRAN_INTEGER_SIZE | 604 OCTAVE_CHECK_FORTRAN_INTEGER_SIZE |
597 if test "x$octave_cv_fortran_integer_size" = xno; then | 605 if test "x$octave_cv_fortran_integer_size" = xno; then |
598 if $USE_64_BIT_IDX_T; then | 606 if $USE_64_BIT_IDX_T; then |
599 case "$F77" in | 607 case "$F77" in |