Mercurial > hg > octave-nkf
comparison configure.in @ 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 | 85731fac3a15 |
comparison
equal
deleted
inserted
replaced
1075:a58bb71b0429 | 1076:2ba812c74caa |
---|---|
19 ### | 19 ### |
20 ### You should have received a copy of the GNU General Public License | 20 ### You should have received a copy of the GNU General Public License |
21 ### along with Octave; see the file COPYING. If not, write to the Free | 21 ### along with Octave; see the file COPYING. If not, write to the Free |
22 ### Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 22 ### Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
23 | 23 |
24 AC_REVISION($Revision: 1.89 $) | 24 AC_REVISION($Revision: 1.90 $) |
25 AC_PREREQ(2.0) | 25 AC_PREREQ(2.0) |
26 AC_INIT(src/octave.cc) | 26 AC_INIT(src/octave.cc) |
27 AC_CONFIG_HEADER(config.h kpathsea/c-auto.h) | 27 AC_CONFIG_HEADER(config.h kpathsea/c-auto.h) |
28 | 28 |
29 AC_DEFINE(OCTAVE_SOURCE, 1) | 29 AC_DEFINE(OCTAVE_SOURCE, 1) |
568 *) | 568 *) |
569 AC_CHECK_FUNCS(finite isnan isinf infinity quiet_nan) | 569 AC_CHECK_FUNCS(finite isnan isinf infinity quiet_nan) |
570 ;; | 570 ;; |
571 esac | 571 esac |
572 | 572 |
573 AC_CHECK_FUNCS(erf erfc lgamma) | 573 ### Check for nonstandard but common math functions that we need. |
574 | |
575 AC_CHECK_FUNCS(acosh asinh atanh erf erfc lgamma) | |
574 | 576 |
575 AC_MSG_CHECKING([for signgam declaration in math.h]) | 577 AC_MSG_CHECKING([for signgam declaration in math.h]) |
576 AC_TRY_LINK([#include <math.h>], | 578 AC_TRY_LINK([#include <math.h>], |
577 [int foo = signgam + 1;], | 579 [int foo = signgam + 1;], |
578 AC_MSG_RESULT(yes) | 580 AC_MSG_RESULT(yes) |
579 AC_DEFINE(SIGNGAM_DECLARED, 1), | 581 AC_DEFINE(SIGNGAM_DECLARED, 1), |
580 AC_MSG_RESULT(no)) | 582 AC_MSG_RESULT(no)) |
581 | 583 |
582 CFLAGS="$XCFLAGS" | 584 CFLAGS="$XCFLAGS" |
583 | |
584 ### Check for nonstandard but common trig functions that we need. | |
585 ### If they are missing, we replace them using functions from the BSD | |
586 ### math library, and we may need to replace some other functions too. | |
587 | |
588 AC_REPLACE_FUNCS(acosh asinh atanh) | |
589 | |
590 if test -n "$LIBOBJS"; then | |
591 for func in $LIBOBJS | |
592 do | |
593 case "$func" in | |
594 *acosh.o*) | |
595 AC_DEFINE(ACOSH_MISSING, 1) | |
596 ;; | |
597 *asinh.o*) | |
598 AC_DEFINE(ASINH_MISSING, 1) | |
599 ;; | |
600 *atanh.o*) | |
601 AC_DEFINE(ATANH_MISSING, 1) | |
602 ;; | |
603 esac | |
604 done | |
605 case $LIBOBJS in | |
606 *acosh.o* | *asinh.o*) | |
607 AC_REPLACE_FUNCS(copysign) | |
608 ;; | |
609 esac | |
610 case $LIBOBJS in | |
611 *acosh.o* | *asinh.o* | *atanh.o*) | |
612 AC_REPLACE_FUNCS(log1p) | |
613 ;; | |
614 esac | |
615 case $LIBOBJS in | |
616 *log1p*) | |
617 AC_REPLACE_FUNCS(log__L) | |
618 ;; | |
619 esac | |
620 case $LIBOBJS in | |
621 *log1p*) | |
622 AC_REPLACE_FUNCS(finite) | |
623 ;; | |
624 esac | |
625 case $LIBOBJS in | |
626 *copysign* | *finite* | *log1p*) | |
627 AC_REPLACE_FUNCS(logb scalb) | |
628 ;; | |
629 esac | |
630 fi | |
631 | 585 |
632 ### Checks for OS specific cruft. | 586 ### Checks for OS specific cruft. |
633 | 587 |
634 AC_STRUCT_TM | 588 AC_STRUCT_TM |
635 AC_FUNC_SETVBUF_REVERSED | 589 AC_FUNC_SETVBUF_REVERSED |