Mercurial > hg > octave-lojdl
changeset 1076:2ba812c74caa
[project @ 1995-01-27 14:39:54 by jwe]
author | jwe |
---|---|
date | Fri, 27 Jan 1995 14:41:50 +0000 |
parents | a58bb71b0429 |
children | a030787da5ea |
files | acconfig.h configure.in |
diffstat | 2 files changed, 4 insertions(+), 59 deletions(-) [+] |
line wrap: on
line diff
--- a/acconfig.h +++ b/acconfig.h @@ -6,15 +6,6 @@ Leave the following blank line there!! Autoheader needs it. */ -/* Define if you don't have acosh(). */ -#undef ACOSH_MISSING - -/* Define if you don't have asinh(). */ -#undef ASINH_MISSING - -/* Define if you don't have atanh(). */ -#undef ATANH_MISSING - /* Define if your math.h declares struct exception for matherr() */ #undef EXCEPTION_IN_MATH
--- a/configure.in +++ b/configure.in @@ -21,7 +21,7 @@ ### along with Octave; see the file COPYING. If not, write to the Free ### Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. -AC_REVISION($Revision: 1.89 $) +AC_REVISION($Revision: 1.90 $) AC_PREREQ(2.0) AC_INIT(src/octave.cc) AC_CONFIG_HEADER(config.h kpathsea/c-auto.h) @@ -570,7 +570,9 @@ ;; esac -AC_CHECK_FUNCS(erf erfc lgamma) +### Check for nonstandard but common math functions that we need. + +AC_CHECK_FUNCS(acosh asinh atanh erf erfc lgamma) AC_MSG_CHECKING([for signgam declaration in math.h]) AC_TRY_LINK([#include <math.h>], @@ -581,54 +583,6 @@ CFLAGS="$XCFLAGS" -### Check for nonstandard but common trig functions that we need. -### If they are missing, we replace them using functions from the BSD -### math library, and we may need to replace some other functions too. - -AC_REPLACE_FUNCS(acosh asinh atanh) - -if test -n "$LIBOBJS"; then - for func in $LIBOBJS - do - case "$func" in - *acosh.o*) - AC_DEFINE(ACOSH_MISSING, 1) - ;; - *asinh.o*) - AC_DEFINE(ASINH_MISSING, 1) - ;; - *atanh.o*) - AC_DEFINE(ATANH_MISSING, 1) - ;; - esac - done - case $LIBOBJS in - *acosh.o* | *asinh.o*) - AC_REPLACE_FUNCS(copysign) - ;; - esac - case $LIBOBJS in - *acosh.o* | *asinh.o* | *atanh.o*) - AC_REPLACE_FUNCS(log1p) - ;; - esac - case $LIBOBJS in - *log1p*) - AC_REPLACE_FUNCS(log__L) - ;; - esac - case $LIBOBJS in - *log1p*) - AC_REPLACE_FUNCS(finite) - ;; - esac - case $LIBOBJS in - *copysign* | *finite* | *log1p*) - AC_REPLACE_FUNCS(logb scalb) - ;; - esac -fi - ### Checks for OS specific cruft. AC_STRUCT_TM