Mercurial > hg > octave-nkf
comparison configure.in @ 5275:23b37da9fd5b
[project @ 2005-04-08 16:07:35 by jwe]
author | jwe |
---|---|
date | Fri, 08 Apr 2005 16:07:37 +0000 |
parents | a313e928afb1 |
children | b86a6fcc1721 |
comparison
equal
deleted
inserted
replaced
5274:eae7b40388e9 | 5275:23b37da9fd5b |
---|---|
27 | 27 |
28 EXTERN_CFLAGS="$CFLAGS" | 28 EXTERN_CFLAGS="$CFLAGS" |
29 EXTERN_CXXFLAGS="$CXXFLAGS" | 29 EXTERN_CXXFLAGS="$CXXFLAGS" |
30 | 30 |
31 AC_INIT | 31 AC_INIT |
32 AC_REVISION($Revision: 1.470 $) | 32 AC_REVISION($Revision: 1.471 $) |
33 AC_PREREQ(2.57) | 33 AC_PREREQ(2.57) |
34 AC_CONFIG_SRCDIR([src/octave.cc]) | 34 AC_CONFIG_SRCDIR([src/octave.cc]) |
35 AC_CONFIG_HEADER(config.h) | 35 AC_CONFIG_HEADER(config.h) |
36 | 36 |
37 AC_DEFINE(OCTAVE_SOURCE, 1, [Define if this is Octave.]) | 37 AC_DEFINE(OCTAVE_SOURCE, 1, [Define if this is Octave.]) |
142 [if test "$enableval" = yes; then BOUNDS_CHECKING=true; fi], []) | 142 [if test "$enableval" = yes; then BOUNDS_CHECKING=true; fi], []) |
143 if $BOUNDS_CHECKING; then | 143 if $BOUNDS_CHECKING; then |
144 AC_DEFINE(BOUNDS_CHECKING, 1, [Define to use internal bounds checking.]) | 144 AC_DEFINE(BOUNDS_CHECKING, 1, [Define to use internal bounds checking.]) |
145 fi | 145 fi |
146 | 146 |
147 ### If possible, use a 64-bit integer type for array dimensions and indexing. | |
148 | |
149 USE_64_BIT_IDX_T=false | |
150 OCTAVE_IDX_TYPE=int | |
151 AC_ARG_ENABLE(64, | |
152 [ --enable-64 use 64-bit integer for array dimensions and indexing], | |
153 [if test "$enableval" = yes; then USE_64_BIT_IDX_T=true; fi], []) | |
154 if $USE_64_BIT_IDX_T; then | |
155 AC_CHECK_SIZEOF(void *) | |
156 AC_CHECK_SIZEOF(int) | |
157 AC_CHECK_SIZEOF(long) | |
158 if test $ac_cv_sizeof_void_p -eq 8; then | |
159 if test $ac_cv_sizeof_int -eq 8; then | |
160 OCTAVE_IDX_TYPE=int | |
161 elif test $ac_cv_sizeof_long -eq 8; then | |
162 OCTAVE_IDX_TYPE=long | |
163 else | |
164 AC_MSG_WARN([no suitable type found for octave_idx_type so disabling 64-bit features]) | |
165 USE_64_BIT_IDX_T=false | |
166 fi | |
167 else | |
168 warn_64_bit="pointers are not 64-bits wide so disabling 64-bit features" | |
169 AC_MSG_WARN($warn_64_bit) | |
170 USE_64_BIT_IDX_T=false | |
171 fi | |
172 fi | |
173 AC_SUBST(OCTAVE_IDX_TYPE) | |
174 if $USE_64_BIT_IDX_T; then | |
175 AC_DEFINE(USE_64_BIT_IDX_T, 1, [Define if using 64-bit integers for array dimensions and indexing]) | |
176 fi | |
177 AC_SUBST(USE_64_BIT_IDX_T) | |
178 | |
147 ### It seems that there are some broken inline assembly functions in | 179 ### It seems that there are some broken inline assembly functions in |
148 ### the GNU libc. Since I'm not sure how to test whether we are using | 180 ### the GNU libc. Since I'm not sure how to test whether we are using |
149 ### GNU libc, just disable them for all platforms. | 181 ### GNU libc, just disable them for all platforms. |
150 | 182 |
151 AC_MSG_RESULT([defining __NO_MATH_INLINES avoids buggy GNU libc exp function]) | 183 AC_MSG_RESULT([defining __NO_MATH_INLINES avoids buggy GNU libc exp function]) |
668 | 700 |
669 UMFPACK_LIBS= | 701 UMFPACK_LIBS= |
670 AC_SUBST(UMFPACK_LIBS) | 702 AC_SUBST(UMFPACK_LIBS) |
671 | 703 |
672 AC_ARG_WITH(umfpack, | 704 AC_ARG_WITH(umfpack, |
673 [ --without-umfpack don't use UMFPACK, disable some sparse functionality], | 705 [ --without-umfpack don't use UMFPACK, disable some sparse functionality], |
674 with_umfpack=$withval, with_umfpack=yes) | 706 with_umfpack=$withval, with_umfpack=yes) |
675 | 707 |
676 if test "$with_umfpack" = "yes"; then | 708 if test "$with_umfpack" = "yes"; then |
677 have_umfpack_header=no | 709 have_umfpack_header=no |
678 with_umfpack=no | 710 with_umfpack=no |
1536 #endif | 1568 #endif |
1537 | 1569 |
1538 #if 0 | 1570 #if 0 |
1539 #define F77_USES_VISUAL_FORTRAN_CALLING_CONVENTION | 1571 #define F77_USES_VISUAL_FORTRAN_CALLING_CONVENTION |
1540 #endif | 1572 #endif |
1573 | |
1574 #include "oct-types.h" | |
1541 ]) | 1575 ]) |
1542 | 1576 |
1543 ### Do the substitutions in all the Makefiles. | 1577 ### Do the substitutions in all the Makefiles. |
1544 | 1578 |
1545 AC_CONFIG_FILES([Makefile octMakefile Makeconf install-octave \ | 1579 AC_CONFIG_FILES([Makefile octMakefile Makeconf install-octave \ |
1546 test/Makefile dlfcn/Makefile \ | 1580 test/Makefile dlfcn/Makefile \ |
1547 doc/Makefile doc/faq/Makefile doc/interpreter/Makefile \ | 1581 doc/Makefile doc/faq/Makefile doc/interpreter/Makefile \ |
1548 doc/liboctave/Makefile doc/refcard/Makefile emacs/Makefile \ | 1582 doc/liboctave/Makefile doc/refcard/Makefile emacs/Makefile \ |
1549 examples/Makefile liboctave/Makefile src/Makefile \ | 1583 examples/Makefile liboctave/Makefile liboctave/oct-types.h \ |
1550 libcruft/Makefile libcruft/Makerules libcruft/amos/Makefile \ | 1584 src/Makefile libcruft/Makefile libcruft/Makerules \ |
1551 libcruft/blas/Makefile libcruft/daspk/Makefile \ | 1585 libcruft/amos/Makefile libcruft/blas/Makefile \ |
1552 libcruft/dasrt/Makefile libcruft/dassl/Makefile \ | 1586 libcruft/daspk/Makefile libcruft/dasrt/Makefile |
1553 libcruft/fftpack/Makefile libcruft/lapack/Makefile \ | 1587 libcruft/dassl/Makefile libcruft/fftpack/Makefile \ |
1554 libcruft/minpack/Makefile libcruft/misc/Makefile \ | 1588 libcruft/lapack/Makefile libcruft/minpack/Makefile \ |
1555 libcruft/odepack/Makefile \ | 1589 libcruft/misc/Makefile libcruft/odepack/Makefile \ |
1556 libcruft/ordered-qz/Makefile libcruft/quadpack/Makefile \ | 1590 libcruft/ordered-qz/Makefile libcruft/quadpack/Makefile \ |
1557 libcruft/ranlib/Makefile libcruft/slatec-fn/Makefile \ | 1591 libcruft/ranlib/Makefile libcruft/slatec-fn/Makefile \ |
1558 libcruft/slatec-err/Makefile libcruft/villad/Makefile \ | 1592 libcruft/slatec-err/Makefile libcruft/villad/Makefile \ |
1559 libcruft/blas-xtra/Makefile libcruft/lapack-xtra/Makefile]) | 1593 libcruft/blas-xtra/Makefile libcruft/lapack-xtra/Makefile]) |
1560 AC_OUTPUT | 1594 AC_OUTPUT |
1592 Do internal array bounds checking: $BOUNDS_CHECKING | 1626 Do internal array bounds checking: $BOUNDS_CHECKING |
1593 Build static libraries: $STATIC_LIBS | 1627 Build static libraries: $STATIC_LIBS |
1594 Build shared libraries: $SHARED_LIBS | 1628 Build shared libraries: $SHARED_LIBS |
1595 Dynamic Linking: $ENABLE_DYNAMIC_LINKING $DL_API_MSG | 1629 Dynamic Linking: $ENABLE_DYNAMIC_LINKING $DL_API_MSG |
1596 Include support for GNU readline: $USE_READLINE | 1630 Include support for GNU readline: $USE_READLINE |
1631 64-bit array dims and indexing: $USE_64_BIT_IDX_T | |
1597 ]) | 1632 ]) |
1598 | 1633 |
1599 warn_msg_printed=false | 1634 warn_msg_printed=false |
1600 | 1635 |
1601 if $ENABLE_DYNAMIC_LINKING; then | 1636 if $ENABLE_DYNAMIC_LINKING; then |
1678 warn_msg_printed=true | 1713 warn_msg_printed=true |
1679 fi | 1714 fi |
1680 | 1715 |
1681 if test -n "$warn_zlib"; then | 1716 if test -n "$warn_zlib"; then |
1682 AC_MSG_WARN($warn_zlib) | 1717 AC_MSG_WARN($warn_zlib) |
1718 warn_msg_printed=true | |
1719 fi | |
1720 | |
1721 if test -n "$warn_64_bit"; then | |
1722 AC_MSG_WARN($warn_64_bit) | |
1683 warn_msg_printed=true | 1723 warn_msg_printed=true |
1684 fi | 1724 fi |
1685 | 1725 |
1686 if test -n "$warn_gnuplot"; then | 1726 if test -n "$warn_gnuplot"; then |
1687 | 1727 |