Mercurial > hg > octave-nkf
annotate configure.ac @ 9645:4531741e5236
configure tweaks
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 15 Sep 2009 13:48:39 -0400 |
parents | configure.in@16907d1153d1 |
children | 11844593875a |
rev | line source |
---|---|
405 | 1 dnl configure.in |
2 dnl | |
5 | 3 dnl Process this file with autoconf to produce a configure script. |
4 dnl | |
8920 | 5 dnl Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, |
6 dnl 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, | |
7 dnl 2009 John W. Eaton | |
869 | 8 ### |
9 ### This file is part of Octave. | |
10 ### | |
11 ### Octave is free software; you can redistribute it and/or modify it | |
12 ### under the terms of the GNU General Public License as published by the | |
7016 | 13 ### Free Software Foundation; either version 3 of the License, or (at |
14 ### your option) any later version. | |
869 | 15 ### |
16 ### Octave is distributed in the hope that it will be useful, but WITHOUT | |
17 ### ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
18 ### FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
19 ### for more details. | |
20 ### | |
21 ### You should have received a copy of the GNU General Public License | |
7016 | 22 ### along with Octave; see the file COPYING. If not, see |
23 ### <http://www.gnu.org/licenses/>. | |
869 | 24 |
4587 | 25 ### Preserve CFLAGS and CXXFLAGS from the environment before doing |
26 ### anything else because we don't know which macros might call | |
27 ### AC_PROG_CC or AC_PROG_CXX. | |
28 | |
29 EXTERN_CFLAGS="$CFLAGS" | |
30 EXTERN_CXXFLAGS="$CXXFLAGS" | |
31 | |
3887 | 32 AC_INIT |
7451 | 33 AC_REVISION($Revision: 1.603 $) |
9091
45c832e9976d
configure.in: require autoconf 2.60; eliminate some obsolete macros
John W. Eaton <jwe@octave.org>
parents:
9090
diff
changeset
|
34 AC_PREREQ(2.60) |
3887 | 35 AC_CONFIG_SRCDIR([src/octave.cc]) |
1146 | 36 AC_CONFIG_HEADER(config.h) |
869 | 37 |
5844 | 38 OCTAVE_HOST_TYPE |
39 | |
3887 | 40 AC_DEFINE(OCTAVE_SOURCE, 1, [Define if this is Octave.]) |
41 | |
6090 | 42 dnl FIXME -- we should probably only generate this file if it is missing. |
43 ### Produce unistd.h for MSVC target, this simplifies changes in | |
44 ### Octave source tree and avoid problems with lex-generated code. | |
45 case "$canonical_host_type" in | |
46 *-*-msdosmsvc) | |
47 AC_MSG_NOTICE([Generating replacement for <unistd.h> for MSVC]) | |
48 cat << \EOF > unistd.h | |
49 /* File generated by configure script. */ | |
50 #include <direct.h> | |
51 #include <io.h> | |
52 #include <process.h> | |
53 EOF | |
54 CPPFLAGS="-I. $CPPFLAGS" | |
55 ;; | |
56 esac | |
57 | |
9091
45c832e9976d
configure.in: require autoconf 2.60; eliminate some obsolete macros
John W. Eaton <jwe@octave.org>
parents:
9090
diff
changeset
|
58 AC_USE_SYSTEM_EXTENSIONS |
1667 | 59 |
5451 | 60 ### Path separator. |
61 sepchar=: | |
62 AC_ARG_WITH(sepchar, | |
5842 | 63 [AS_HELP_STRING([--with-sepchar=<char>], |
5844 | 64 [use <char> as the path separation character])]) |
5451 | 65 case $with_sepchar in |
66 yes | "") | |
67 case "$canonical_host_type" in | |
6090 | 68 *-*-mingw* | *-*-msdosmsvc) |
5451 | 69 sepchar=';' |
70 ;; | |
71 esac | |
72 ;; | |
73 no) | |
74 AC_MSG_ERROR([You are required to define a path separation character]) | |
75 ;; | |
76 *) | |
77 sepchar=$with_sepchar | |
78 ;; | |
79 esac | |
80 AC_SUBST(sepchar) | |
81 AC_DEFINE_UNQUOTED(SEPCHAR, ['$sepchar'], [Define this to be the path separator for your system, as a character constant.]) | |
82 AC_DEFINE_UNQUOTED(SEPCHAR_STR, ["$sepchar"], [Define this to the path separator, as a string.]) | |
83 | |
2223 | 84 ### some defaults |
85 | |
2813 | 86 OCTAVE_SET_DEFAULT(man1dir, '$(mandir)/man1') |
87 OCTAVE_SET_DEFAULT(man1ext, '.1') | |
8940
6994961bf1f4
use doc-cache instead of DOC for doc cache file name
John W. Eaton <jwe@octave.org>
parents:
8938
diff
changeset
|
88 OCTAVE_SET_DEFAULT(doc_cache_file, '$(octetcdir)/doc-cache') |
2813 | 89 OCTAVE_SET_DEFAULT(infofile, '$(infodir)/octave.info') |
3597 | 90 OCTAVE_SET_DEFAULT(octincludedir, '$(includedir)/octave-$(version)') |
3029 | 91 OCTAVE_SET_DEFAULT(fcnfiledir, '$(datadir)/octave/$(version)/m') |
2813 | 92 OCTAVE_SET_DEFAULT(localfcnfiledir, '$(datadir)/octave/site/m') |
4449 | 93 OCTAVE_SET_DEFAULT(localapifcnfiledir, |
5778 | 94 '$(datadir)/octave/site/$(api_version)/m') |
3597 | 95 OCTAVE_SET_DEFAULT(localverfcnfiledir, '$(datadir)/octave/$(version)/site/m') |
8719
679c270b7584
install DOC and NEWS in $octetcdir
John W. Eaton <jwe@octave.org>
parents:
8698
diff
changeset
|
96 OCTAVE_SET_DEFAULT(octetcdir, '$(datadir)/octave/$(version)/etc') |
3141 | 97 OCTAVE_SET_DEFAULT(octlibdir, '$(libdir)/octave-$(version)') |
3029 | 98 OCTAVE_SET_DEFAULT(archlibdir, |
3130 | 99 '$(libexecdir)/octave/$(version)/exec/$(canonical_host_type)') |
3029 | 100 OCTAVE_SET_DEFAULT(localarchlibdir, |
3130 | 101 '$(libexecdir)/octave/site/exec/$(canonical_host_type)') |
5909 | 102 OCTAVE_SET_DEFAULT(localapiarchlibdir, |
103 '$(libexecdir)/octave/$(api_version)/site/exec/$(canonical_host_type)') | |
3597 | 104 OCTAVE_SET_DEFAULT(localverarchlibdir, |
105 '$(libexecdir)/octave/$(version)/site/exec/$(canonical_host_type)') | |
3029 | 106 OCTAVE_SET_DEFAULT(octfiledir, |
3130 | 107 '$(libexecdir)/octave/$(version)/oct/$(canonical_host_type)') |
3029 | 108 OCTAVE_SET_DEFAULT(localoctfiledir, |
3130 | 109 '$(libexecdir)/octave/site/oct/$(canonical_host_type)') |
4449 | 110 OCTAVE_SET_DEFAULT(localapioctfiledir, |
5778 | 111 '$(libexecdir)/octave/site/oct/$(api_version)/$(canonical_host_type)') |
3597 | 112 OCTAVE_SET_DEFAULT(localveroctfiledir, |
113 '$(libexecdir)/octave/$(version)/site/oct/$(canonical_host_type)') | |
3029 | 114 OCTAVE_SET_DEFAULT(imagedir, '$(datadir)/octave/$(version)/imagelib') |
1667 | 115 |
9575
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
116 ### Find pkg-config executable (sets $PKG_CONFIG) |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
117 |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
118 PKG_PROG_PKG_CONFIG |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
119 |
2155 | 120 ### Make configure args available for other uses. |
121 | |
122 config_opts=$ac_configure_args | |
123 AC_SUBST(config_opts) | |
124 | |
2813 | 125 ### Make it possible to have Octave's array and matrix classes do bounds |
2108 | 126 ### checking on element references. This slows some operations down a |
2813 | 127 ### bit, so it is turned off by default. |
2108 | 128 |
2450 | 129 BOUNDS_CHECKING=false |
2108 | 130 AC_ARG_ENABLE(bounds-check, |
5844 | 131 [AS_HELP_STRING([--enable-bounds-check], |
7091 | 132 [bounds checking for indexing in internal array classes (default is no)])], |
3060 | 133 [if test "$enableval" = yes; then BOUNDS_CHECKING=true; fi], []) |
2108 | 134 if $BOUNDS_CHECKING; then |
3887 | 135 AC_DEFINE(BOUNDS_CHECKING, 1, [Define to use internal bounds checking.]) |
2108 | 136 fi |
137 | |
5275 | 138 ### If possible, use a 64-bit integer type for array dimensions and indexing. |
139 | |
140 USE_64_BIT_IDX_T=false | |
141 OCTAVE_IDX_TYPE=int | |
142 AC_ARG_ENABLE(64, | |
5844 | 143 [AS_HELP_STRING([--enable-64], |
5857 | 144 [(EXPERIMENTAL) use 64-bit integers for array dimensions and indexing])], |
5275 | 145 [if test "$enableval" = yes; then USE_64_BIT_IDX_T=true; fi], []) |
146 if $USE_64_BIT_IDX_T; then | |
147 AC_CHECK_SIZEOF(void *) | |
148 AC_CHECK_SIZEOF(int) | |
149 AC_CHECK_SIZEOF(long) | |
150 if test $ac_cv_sizeof_void_p -eq 8; then | |
151 if test $ac_cv_sizeof_int -eq 8; then | |
152 OCTAVE_IDX_TYPE=int | |
153 elif test $ac_cv_sizeof_long -eq 8; then | |
154 OCTAVE_IDX_TYPE=long | |
5351 | 155 AC_DEFINE(IDX_TYPE_LONG, 1, [Define to 1 if octave index type is long]) |
5275 | 156 else |
5857 | 157 warn_64_bit="no suitable type found for octave_idx_type so disabling 64-bit features" |
158 AC_MSG_WARN($warn_64_bit) | |
5275 | 159 USE_64_BIT_IDX_T=false |
160 fi | |
161 else | |
162 warn_64_bit="pointers are not 64-bits wide so disabling 64-bit features" | |
163 AC_MSG_WARN($warn_64_bit) | |
164 USE_64_BIT_IDX_T=false | |
165 fi | |
166 fi | |
167 AC_SUBST(OCTAVE_IDX_TYPE) | |
168 if $USE_64_BIT_IDX_T; then | |
169 AC_DEFINE(USE_64_BIT_IDX_T, 1, [Define if using 64-bit integers for array dimensions and indexing]) | |
170 fi | |
171 AC_SUBST(USE_64_BIT_IDX_T) | |
172 | |
3215 | 173 ### It seems that there are some broken inline assembly functions in |
174 ### the GNU libc. Since I'm not sure how to test whether we are using | |
175 ### GNU libc, just disable them for all platforms. | |
176 | |
5844 | 177 AC_MSG_NOTICE([defining __NO_MATH_INLINES avoids buggy GNU libc exp function]) |
3887 | 178 AC_DEFINE(__NO_MATH_INLINES, 1, [Define if your version of GNU libc has buggy inline assembly code for math functions like exp.]) |
3215 | 179 |
869 | 180 ### See which C++ compiler to use (we expect to find g++). |
181 | |
405 | 182 AC_PROG_CXX |
183 AC_PROG_CXXCPP | |
869 | 184 |
185 ### Do special things for g++. | |
186 | |
2353 | 187 gxx_version=`$CXX -v 2>&1 | grep "^.*g.. version" | \ |
4368 | 188 sed -e 's/^.*g.. version *//' -e 's/cygnus-//' -e 's/egcs-//' -e 's/ .*//'` |
3107 | 189 |
405 | 190 case "$gxx_version" in |
9178
a6375c37dad4
update config stuff to gripe with g++-3.x
Jaroslav Hajek <highegg@gmail.com>
parents:
9176
diff
changeset
|
191 1.* | 2.[[0123456789]].* | 3.[[01234]].*) |
4843 | 192 AC_MSG_ERROR([g++ version $gxx_version will probably fail to compile Octave] |
193 ) | |
194 ;; | |
405 | 195 esac |
869 | 196 |
1894 | 197 CXX_VERSION= |
198 if test -n "$gxx_version"; then | |
199 CXX_VERSION="$gxx_version" | |
200 fi | |
201 AC_SUBST(CXX_VERSION) | |
202 | |
3107 | 203 OCTAVE_CXX_NEW_FRIEND_TEMPLATE_DECL |
3769 | 204 OCTAVE_CXX_ISO_COMPLIANT_LIBRARY |
5854 | 205 OCTAVE_CXX_BROKEN_REINTERPRET_CAST |
3107 | 206 |
869 | 207 ### See which C compiler to use (we expect to find gcc). |
208 | |
5 | 209 AC_PROG_CC |
405 | 210 AC_PROG_CPP |
832 | 211 AC_PROG_GCC_TRADITIONAL |
869 | 212 |
213 ### Do special things for gcc. | |
214 | |
2353 | 215 gcc_version=`$CC -v 2>&1 | grep "^.*gcc version" | \ |
3107 | 216 sed -e 's/^.*g.. version *//' -e 's/cygnus-//' -e 's/egcs-//'` |
405 | 217 case "$gcc_version" in |
218 2.*) | |
1087 | 219 if test -z "$LDFLAGS"; then |
220 LDFLAGS="-g" | |
5844 | 221 AC_MSG_NOTICE([defining LDFLAGS to be $LDFLAGS]) |
1087 | 222 fi |
405 | 223 ;; |
224 1.*) | |
3105 | 225 warn_gcc_version="gcc version $gcc_version is likely to cause problems" |
226 AC_MSG_WARN($warn_gcc_version) | |
405 | 227 ;; |
5 | 228 esac |
869 | 229 |
1894 | 230 CC_VERSION= |
231 if test -n "$gcc_version"; then | |
232 CC_VERSION="$gcc_version" | |
233 fi | |
234 AC_SUBST(CC_VERSION) | |
235 | |
3775 | 236 ### The flag to create dependency varies depending on the compier. |
237 | |
238 # Assume GCC. | |
6087 | 239 INCLUDE_DEPS=true |
3775 | 240 DEPEND_FLAGS="-M" |
241 DEPEND_EXTRA_SED_PATTERN="" | |
6087 | 242 if test "$GCC" = yes; then |
243 true | |
244 else | |
245 case "$canonical_host_type" in | |
246 sparc-sun-solaris2* | i386-pc-solaris2*) | |
3775 | 247 DEPEND_FLAGS="-xM1" |
248 DEPEND_EXTRA_SED_PATTERN="-e '/\/opt\/SUNWspro/d'" | |
6087 | 249 ;; |
7451 | 250 *-*-msdosmsvc) |
251 ;; | |
6087 | 252 *) |
253 INCLUDE_DEPS=false | |
254 ;; | |
255 esac | |
256 fi | |
257 AC_SUBST(INCLUDE_DEPS) | |
3775 | 258 AC_SUBST(DEPEND_FLAGS) |
259 AC_SUBST(DEPEND_EXTRA_SED_PATTERN) | |
260 | |
9488
ee572cdd4b97
add configure checks for pthread library and compiler flags
John W. Eaton <jwe@octave.org>
parents:
9424
diff
changeset
|
261 ACX_PTHREAD |
ee572cdd4b97
add configure checks for pthread library and compiler flags
John W. Eaton <jwe@octave.org>
parents:
9424
diff
changeset
|
262 |
8560
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
263 AC_PATH_X |
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
264 if test "$have_x"; then |
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
265 AC_DEFINE(HAVE_X_WINDOWS, 1, [Define if you have X11]) |
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
266 |
9049 | 267 if test "$x_includes" != "NONE"; then |
8770
af676d09da08
Fix test for X11 if "--without-x" is given.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8723
diff
changeset
|
268 X11_INCFLAGS="$x_includes" |
af676d09da08
Fix test for X11 if "--without-x" is given.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8723
diff
changeset
|
269 fi |
8560
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
270 AC_SUBST(X11_INCFLAGS) |
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
271 |
8770
af676d09da08
Fix test for X11 if "--without-x" is given.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8723
diff
changeset
|
272 if test -z $x_libraries; then |
af676d09da08
Fix test for X11 if "--without-x" is given.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8723
diff
changeset
|
273 AC_CHECK_LIB(X11, XrmInitialize, [X11_LIBS=-lX11], [X11_LIBS=]) |
af676d09da08
Fix test for X11 if "--without-x" is given.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8723
diff
changeset
|
274 elif test $x_libraries != "NONE"; then |
af676d09da08
Fix test for X11 if "--without-x" is given.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8723
diff
changeset
|
275 AC_CHECK_LIB(X11, XrmInitialize, |
af676d09da08
Fix test for X11 if "--without-x" is given.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8723
diff
changeset
|
276 [X11_LIBS="-L$x_libraries -lX11"], [X11_LIBS=], "-L$x_libraries") |
af676d09da08
Fix test for X11 if "--without-x" is given.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8723
diff
changeset
|
277 fi |
8560
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
278 AC_SUBST(X11_LIBS) |
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
279 fi |
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
280 |
8595
dee5d60257e4
Use Carbon framework to determine ScreenSize on Mac.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8577
diff
changeset
|
281 ### On MacOSX system the Carbon framework is used to determine ScreenSize |
dee5d60257e4
Use Carbon framework to determine ScreenSize on Mac.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8577
diff
changeset
|
282 OCTAVE_HAVE_FRAMEWORK(Carbon, [#include <Carbon/Carbon.h>], [CGMainDisplayID ()], |
8635
bef8f001032f
Further improvements for OCTAVE_HAVE_FRAMEWORK and the test for the MacOSX Carbon framework.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8623
diff
changeset
|
283 [have_framework_carbon="yes"], [have_framework_carbon="no"]) |
bef8f001032f
Further improvements for OCTAVE_HAVE_FRAMEWORK and the test for the MacOSX Carbon framework.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8623
diff
changeset
|
284 if test $have_framework_carbon = "yes"; then |
8595
dee5d60257e4
Use Carbon framework to determine ScreenSize on Mac.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8577
diff
changeset
|
285 AC_DEFINE(HAVE_FRAMEWORK_CARBON, 1, [Define if framework CARBON is available.]) |
8771
d3382daaf4d2
Use CARBON_LIBS instead of LIBS for framework Carbon.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8770
diff
changeset
|
286 CARBON_LIBS="-Wl,-framework -Wl,Carbon" |
d3382daaf4d2
Use CARBON_LIBS instead of LIBS for framework Carbon.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8770
diff
changeset
|
287 AC_MSG_NOTICE([adding -Wl,-framework -Wl,Carbon to CARBON_LIBS]) |
d3382daaf4d2
Use CARBON_LIBS instead of LIBS for framework Carbon.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8770
diff
changeset
|
288 AC_SUBST(CARBON_LIBS) |
8595
dee5d60257e4
Use Carbon framework to determine ScreenSize on Mac.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8577
diff
changeset
|
289 fi |
dee5d60257e4
Use Carbon framework to determine ScreenSize on Mac.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8577
diff
changeset
|
290 |
9603
8bea4e89326f
implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents:
9596
diff
changeset
|
291 ### When compiling math for x87, problems may arise in some code comparing |
8bea4e89326f
implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents:
9596
diff
changeset
|
292 ### floating-point intermediate results. |
8bea4e89326f
implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents:
9596
diff
changeset
|
293 ### Generally, it helps to store the result in a local volatile variable, |
8bea4e89326f
implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents:
9596
diff
changeset
|
294 ### but it also degrades performance. |
8bea4e89326f
implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents:
9596
diff
changeset
|
295 ### Thus, we provide a FLOAT_TRUNCATE macro that may be defined to "volatile" |
8bea4e89326f
implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents:
9596
diff
changeset
|
296 ### when compiling for x87 target, or left empty for modern SSE math, that |
8bea4e89326f
implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents:
9596
diff
changeset
|
297 ### doesn't suffer from this problem at all. |
8bea4e89326f
implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents:
9596
diff
changeset
|
298 AC_ARG_ENABLE(float-truncate, |
8bea4e89326f
implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents:
9596
diff
changeset
|
299 [AS_HELP_STRING([--enable-float-truncate], |
8bea4e89326f
implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents:
9596
diff
changeset
|
300 [enables truncating intermediate FP results.])], |
8bea4e89326f
implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents:
9596
diff
changeset
|
301 [if test "$enableval" = yes; then ac_float_truncate=volatile; |
8bea4e89326f
implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents:
9596
diff
changeset
|
302 else ac_float_truncate=; fi], |
8bea4e89326f
implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents:
9596
diff
changeset
|
303 ac_float_truncate=) |
8bea4e89326f
implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents:
9596
diff
changeset
|
304 |
8bea4e89326f
implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents:
9596
diff
changeset
|
305 AC_DEFINE_UNQUOTED(FLOAT_TRUNCATE, $ac_float_truncate, |
8bea4e89326f
implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents:
9596
diff
changeset
|
306 [Define to volatile if you need truncating intermediate FP results]) |
8bea4e89326f
implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents:
9596
diff
changeset
|
307 |
5076 | 308 ### On Intel systems with gcc, we may need to compile with -mieee-fp |
309 ### and -ffloat-store to get full support for IEEE floating point. | |
2020 | 310 ### |
3126 | 311 ### On Alpha/OSF systems, we need -mieee. |
869 | 312 |
3126 | 313 ieee_fp_flag= |
350 | 314 case "$canonical_host_type" in |
6102 | 315 ## Keep this pattern first, so that it is preferred over the |
316 ## following pattern for x86. | |
317 *-*-msdosmsvc) | |
318 CXXFLAGS="$CXXFLAGS -EHs -MD" | |
319 CFLAGS="$CFLAGS -MD" | |
320 ;; | |
3887 | 321 i[[3456789]]86-*-*) |
5076 | 322 if test "$GCC" = yes; then |
323 OCTAVE_CC_FLAG(-mieee-fp, [ | |
324 ieee_fp_flag=-mieee-fp | |
325 XTRA_CFLAGS="$XTRA_CFLAGS -mieee-fp" | |
5844 | 326 AC_MSG_NOTICE([adding -mieee-fp to XTRA_CFLAGS])]) |
3126 | 327 |
5078 | 328 ### OCTAVE_CC_FLAG(-ffloat-store, [ |
329 ### float_store_flag=-ffloat-store | |
330 ### XTRA_CFLAGS="$XTRA_CFLAGS -ffloat-store" | |
331 ### AC_MSG_RESULT([adding -ffloat-store to XTRA_CFLAGS])]) | |
5076 | 332 fi |
333 if test "$GXX" = yes; then | |
334 OCTAVE_CXX_FLAG(-mieee-fp, [ | |
335 ieee_fp_flag=-mieee-fp | |
336 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mieee-fp" | |
5844 | 337 AC_MSG_NOTICE([adding -mieee-fp to XTRA_CXXFLAGS])]) |
5076 | 338 |
5078 | 339 ### OCTAVE_CXX_FLAG(-ffloat-store, [ |
340 ### float_store_flag=-ffloat-store | |
341 ### XTRA_CXXFLAGS="$XTRA_CXXFLAGS -ffloat-store" | |
342 ### AC_MSG_RESULT([adding -ffloat-store to XTRA_CXXFLAGS])]) | |
5076 | 343 fi |
324 | 344 ;; |
3127 | 345 alpha*-*-*) |
4284 | 346 if test "$GCC" = yes; then |
4812 | 347 OCTAVE_CC_FLAG(-mieee, [ |
348 ieee_fp_flag=-mieee | |
349 XTRA_CFLAGS="$XTRA_CFLAGS -mieee" | |
5844 | 350 AC_MSG_NOTICE([adding -mieee to XTRA_CFLAGS])]) |
5076 | 351 else |
352 OCTAVE_CC_FLAG(-ieee, [ | |
353 ieee_fp_flag=-ieee | |
354 XTRA_CFLAGS="$XTRA_CFLAGS -ieee" | |
5844 | 355 AC_MSG_NOTICE([adding -ieee to XTRA_CFLAGS])]) |
5076 | 356 fi |
357 if test "$GXX" = yes; then | |
4812 | 358 OCTAVE_CXX_FLAG(-mieee, [ |
359 ieee_fp_flag=-mieee | |
360 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mieee" | |
5844 | 361 AC_MSG_NOTICE([adding -mieee to XTRA_CXXFLAGS])]) |
4284 | 362 else |
363 OCTAVE_CXX_FLAG(-ieee, [ | |
364 ieee_fp_flag=-ieee | |
365 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -ieee" | |
5844 | 366 AC_MSG_NOTICE([adding -ieee to XTRA_CXXFLAGS])]) |
4284 | 367 fi |
2020 | 368 ;; |
3176 | 369 *ibm-aix4*) |
3351 | 370 OCTAVE_CC_FLAG(-mminimal-toc, [ |
371 XTRA_CFLAGS="$XTRA_CFLAGS -mminimal-toc"]) | |
3176 | 372 |
3351 | 373 OCTAVE_CXX_FLAG(-mminimal-toc, [ |
374 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mminimal-toc"]) | |
3176 | 375 ;; |
324 | 376 esac |
3126 | 377 |
378 AC_SUBST(XTRA_CFLAGS) | |
379 AC_SUBST(XTRA_CXXFLAGS) | |
869 | 380 |
1667 | 381 ### Use -static if compiling on Alpha OSF/1 1.3 systems. |
382 | |
383 case "$canonical_host_type" in | |
3127 | 384 alpha*-dec-osf1.3) |
1667 | 385 LD_STATIC_FLAG=-static |
386 ;; | |
387 esac | |
1679 | 388 if test -n "$LD_STATIC_FLAG"; then |
5844 | 389 AC_MSG_NOTICE([defining LD_STATIC_FLAG to be $LD_STATIC_FLAG]) |
1679 | 390 fi |
391 AC_SUBST(LD_STATIC_FLAG) | |
1667 | 392 |
4094 | 393 ### Defaults for cross compiling. BUILD_CC and BUILD_CXX are |
394 ### the compilers that we use for building tools on the build system. | |
4098 | 395 ### For now, we assume that the only cross compiling we can do is |
4298 | 396 ### with gcc on a Unixy system, but the dedicated hacker can override these. |
4094 | 397 |
398 if test "$cross_compiling" = yes; then | |
399 BUILD_CC="gcc" | |
400 BUILD_CFLAGS="-O2 -g" | |
401 BUILD_CXX="g++" | |
402 BUILD_CXXFLAGS="-O2 -g" | |
4298 | 403 BUILD_LDFLAGS="" |
4098 | 404 BUILD_EXEEXT="" |
4094 | 405 else |
4298 | 406 BUILD_CC='$(CC)' |
407 BUILD_CFLAGS='$(CFLAGS)' | |
408 BUILD_CXX='$(CXX)' | |
409 BUILD_CXXFLAGS='$(CXXFLAGS)' | |
410 BUILD_LDFLAGS='$(LDFLAGS)' | |
4284 | 411 case "$canonical_host_type" in |
412 sparc-sun-solaris2*) | |
413 if test "$GCC" != yes; then | |
4298 | 414 ## The Sun C++ compiler never seems to complete compiling |
415 ## gendoc.cc unless we reduce the optimization level... | |
416 BUILD_CXXFLAGS="-g -O1" | |
4284 | 417 fi |
418 ;; | |
419 esac | |
4298 | 420 BUILD_EXEEXT='$(EXEEXT)' |
4094 | 421 fi |
422 | |
423 AC_ARG_VAR(BUILD_CC, [build system C compiler (used if cross compiling)]) | |
424 AC_ARG_VAR(BUILD_CFLAGS, [build system C compiler flags (used if cross compiling)]) | |
425 AC_ARG_VAR(BUILD_CXX, [build system C++ compiler (used if cross compiling)]) | |
426 AC_ARG_VAR(BUILD_CXXFLAGS, [build system C++ compiler flags (used if cross compiling)]) | |
4298 | 427 AC_ARG_VAR(BUILD_LDFLAGS, [build system C++ compiler link flags (used if cross compiling)]) |
428 AC_ARG_VAR(BUILD_EXEEXT, [build system executable extension (used if cross compiling)]) | |
3222 | 429 |
3232 | 430 dnl This is bogus. We shouldn't have to explicitly add libc too! |
9596
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
431 dnl Keep this check before the check for the Fortran compiler, |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
432 dnl in case -lm is needed to compile Fortran programs. |
3232 | 433 |
434 ### Look for math library. If found, this will add -lm to LIBS. | |
435 | |
436 case "$canonical_host_type" in | |
437 *-*-nextstep*) | |
438 ;; | |
439 *-*-linux*) | |
440 AC_CHECK_LIB(m, sin, , , -lc) | |
441 ;; | |
442 *) | |
443 AC_CHECK_LIB(m, sin) | |
444 ;; | |
445 esac | |
446 | |
9596
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
447 ## Default FFLAGS is -O. |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
448 if test "x$FFLAGS" = x; then |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
449 FFLAGS="-O" |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
450 fi |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
451 |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
452 ## the F77 variable, if set, overrides AC_PROG_F77 automatically |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
453 AC_PROG_F77 |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
454 AC_F77_LIBRARY_LDFLAGS |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
455 AC_F77_DUMMY_MAIN |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
456 AC_F77_WRAPPERS |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
457 |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
458 F77_TOLOWER=true |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
459 F77_APPEND_UNDERSCORE=true |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
460 F77_APPEND_EXTRA_UNDERSCORE=true |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
461 |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
462 case "$ac_cv_f77_mangling" in |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
463 "upper case") F77_TOLOWER=false ;; |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
464 esac |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
465 case "$ac_cv_f77_mangling" in |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
466 "no underscore") F77_APPEND_UNDERSCORE=false ;; |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
467 esac |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
468 case "$ac_cv_f77_mangling" in |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
469 "no extra underscore") F77_APPEND_EXTRA_UNDERSCORE=false ;; |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
470 esac |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
471 |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
472 case "$canonical_host_type" in |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
473 i[[3456789]]86-*-*) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
474 if test "$ac_cv_f77_compiler_gnu" = yes; then |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
475 OCTAVE_F77_FLAG(-mieee-fp) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
476 ### OCTAVE_F77_FLAG(-ffloat-store) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
477 fi |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
478 ;; |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
479 alpha*-*-*) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
480 if test "$ac_cv_f77_compiler_gnu" = yes; then |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
481 OCTAVE_F77_FLAG(-mieee) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
482 else |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
483 OCTAVE_F77_FLAG(-ieee) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
484 OCTAVE_F77_FLAG(-fpe1) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
485 fi |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
486 ;; |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
487 powerpc-apple-machten*) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
488 FFLAGS= |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
489 ;; |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
490 esac |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
491 |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
492 if test -n "$FFLAGS"; then |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
493 AC_MSG_NOTICE([defining FFLAGS to be $FFLAGS]) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
494 fi |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
495 |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
496 AC_SUBST(F77_TOLOWER) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
497 AC_SUBST(F77_APPEND_UNDERSCORE) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
498 AC_SUBST(F77_APPEND_EXTRA_UNDERSCORE) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
499 |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
500 if test -z "$F77"; then |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
501 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.]) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
502 fi |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
503 |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
504 OCTAVE_CHECK_FORTRAN_INTEGER_SIZE |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
505 if test "x$octave_cv_fortran_integer_size" = xno; then |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
506 if $USE_64_BIT_IDX_T; then |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
507 case "$F77" in |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
508 gfortran) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
509 case "$FFLAGS" in |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
510 *-fdefault-integer-8*) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
511 ;; |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
512 *) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
513 AC_MSG_NOTICE([adding -fdefault-integer-8 to FFLAGS]) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
514 FFLAGS="-fdefault-integer-8 $FFLAGS" |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
515 ## Invalidate the cache and try again. |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
516 $as_unset octave_cv_fortran_integer_size |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
517 ;; |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
518 esac |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
519 ;; |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
520 esac |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
521 if test -z "$octave_cv_fortran_integer_size"; then |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
522 OCTAVE_CHECK_FORTRAN_INTEGER_SIZE |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
523 fi |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
524 if test "x$octave_cv_fortran_integer_size" = xno; then |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
525 AC_MSG_ERROR([in order to build octave with 64-bit indexing support your Fortran compiler must have a default integer size of 8 bytes. See the file INSTALL for more information.]) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
526 fi |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
527 else |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
528 AC_MSG_ERROR([your Fortran compiler must have default integers that are the same size as octave_idx_type ($OCTAVE_IDX_TYPE). See the file INSTALL for more information.]) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
529 fi |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
530 fi |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
531 |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
532 FC=$F77 |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
533 AC_SUBST(FC) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
534 |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
535 OCTAVE_F77_FLAG(-ffloat-store, [ |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
536 AC_MSG_RESULT([setting F77_FLOAT_STORE_FLAG to -ffloat-store]) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
537 F77_FLOAT_STORE_FLAG=-ffloat-store |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
538 AC_SUBST(F77_FLOAT_STORE_FLAG) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
539 ]) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
540 |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
541 OCTAVE_IEEE754_DATA_FORMAT |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
542 |
6823 | 543 ### Check for the QHull library |
544 | |
9519
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
545 OCTAVE_CHECK_LIBRARY(qhull, QHull, |
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
546 [Qhull library not found -- this will result in loss of functionality of some geometry functions.], |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
547 [qhull/qhull_a.h], [qh_qhull], [], [], |
9519
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
548 [warn_qhull= |
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
549 OCTAVE_CHECK_QHULL_VERSION |
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
550 OCTAVE_CHECK_QHULL_OK([TEXINFO_QHULL="@set HAVE_QHULL" |
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
551 AC_DEFINE(HAVE_QHULL, 1, [Define if QHull is available.])], [ |
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
552 warn_qhull="Qhull library found, but seems not to work properly -- this will result in loss of functionality of some geometry functions. Please try recompiling the library with -fno-strict-aliasing."])]) |
6855 | 553 |
5585 | 554 ### Check for pcre/regex library. |
7173 | 555 |
556 ## check for pcre-config, and if so, set CPPFLAGS appropriately | |
557 AC_CHECK_PROG(WITH_PCRE_CONFIG, pcre-config, yes, no) | |
558 if test $WITH_PCRE_CONFIG = yes ; then | |
559 CPPFLAGS="$CPPFLAGS $(pcre-config --cflags)" | |
560 fi | |
561 | |
562 ## NB: no need to do separate check for pcre.h header -- checking macros is good enough | |
563 AC_CACHE_CHECK([whether pcre.h defines the macros we need], [ac_cv_pcre_h_macros_present], [ | |
564 AC_EGREP_CPP([PCRE_HAS_MACROS_WE_NEED], [ | |
565 #include <pcre.h> | |
6133 | 566 #if defined (PCRE_INFO_NAMECOUNT) \ |
567 && defined (PCRE_INFO_NAMEENTRYSIZE) \ | |
568 && defined (PCRE_INFO_NAMETABLE) | |
569 PCRE_HAS_MACROS_WE_NEED | |
7173 | 570 #endif], ac_cv_pcre_h_macros_present=yes, ac_cv_pcre_h_macros_present=no)]) |
571 WITH_PCRE="$ac_cv_pcre_h_macros_present" | |
7169 | 572 |
7173 | 573 REGEX_LIBS= |
8623
53fb843ca498
configure.in (REGEX_LIBS): undo part of previous change
John W. Eaton <jwe@octave.org>
parents:
8621
diff
changeset
|
574 |
8621
f1534e248260
configure.in: check for pcre_compile, don't check for other regex functions if pcre library is found
John W. Eaton <jwe@octave.org>
parents:
8618
diff
changeset
|
575 using_pcre=no |
f1534e248260
configure.in: check for pcre_compile, don't check for other regex functions if pcre library is found
John W. Eaton <jwe@octave.org>
parents:
8618
diff
changeset
|
576 using_regex=no |
8623
53fb843ca498
configure.in (REGEX_LIBS): undo part of previous change
John W. Eaton <jwe@octave.org>
parents:
8621
diff
changeset
|
577 |
8621
f1534e248260
configure.in: check for pcre_compile, don't check for other regex functions if pcre library is found
John W. Eaton <jwe@octave.org>
parents:
8618
diff
changeset
|
578 if test "$WITH_PCRE" = yes; then |
f1534e248260
configure.in: check for pcre_compile, don't check for other regex functions if pcre library is found
John W. Eaton <jwe@octave.org>
parents:
8618
diff
changeset
|
579 if test "$WITH_PCRE_CONFIG" = yes; then |
7173 | 580 REGEX_LIBS=$(pcre-config --libs) |
581 else | |
582 REGEX_LIBS=-lpcre | |
583 fi | |
8621
f1534e248260
configure.in: check for pcre_compile, don't check for other regex functions if pcre library is found
John W. Eaton <jwe@octave.org>
parents:
8618
diff
changeset
|
584 save_LIBS="$LIBS" |
f1534e248260
configure.in: check for pcre_compile, don't check for other regex functions if pcre library is found
John W. Eaton <jwe@octave.org>
parents:
8618
diff
changeset
|
585 LIBS="$REGEX_LIBS $LIBS" |
f1534e248260
configure.in: check for pcre_compile, don't check for other regex functions if pcre library is found
John W. Eaton <jwe@octave.org>
parents:
8618
diff
changeset
|
586 AC_CHECK_FUNCS(pcre_compile, [using_pcre=yes |
f1534e248260
configure.in: check for pcre_compile, don't check for other regex functions if pcre library is found
John W. Eaton <jwe@octave.org>
parents:
8618
diff
changeset
|
587 AC_DEFINE(HAVE_PCRE, 1, [Define if PCRE library is available.])], [ |
f1534e248260
configure.in: check for pcre_compile, don't check for other regex functions if pcre library is found
John W. Eaton <jwe@octave.org>
parents:
8618
diff
changeset
|
588 REGEX_LIBS= |
f1534e248260
configure.in: check for pcre_compile, don't check for other regex functions if pcre library is found
John W. Eaton <jwe@octave.org>
parents:
8618
diff
changeset
|
589 warn_pcre="PCRE library not found. This will result in some loss of functionality for the regular expression matching functions." |
f1534e248260
configure.in: check for pcre_compile, don't check for other regex functions if pcre library is found
John W. Eaton <jwe@octave.org>
parents:
8618
diff
changeset
|
590 AC_MSG_WARN($warn_pcre)]) |
f1534e248260
configure.in: check for pcre_compile, don't check for other regex functions if pcre library is found
John W. Eaton <jwe@octave.org>
parents:
8618
diff
changeset
|
591 LIBS="$save_LIBS" |
7174 | 592 else |
6133 | 593 warn_pcre="PCRE library not found. This will result in some loss of functionality for the regular expression matching functions." |
594 AC_MSG_WARN($warn_pcre) | |
595 fi | |
7169 | 596 |
8623
53fb843ca498
configure.in (REGEX_LIBS): undo part of previous change
John W. Eaton <jwe@octave.org>
parents:
8621
diff
changeset
|
597 AC_CHECK_FUNCS(regexec, [using_regex=yes], [ |
53fb843ca498
configure.in (REGEX_LIBS): undo part of previous change
John W. Eaton <jwe@octave.org>
parents:
8621
diff
changeset
|
598 AC_CHECK_LIB(regex, regexec, [using_regex=yes |
53fb843ca498
configure.in (REGEX_LIBS): undo part of previous change
John W. Eaton <jwe@octave.org>
parents:
8621
diff
changeset
|
599 REGEX_LIBS="-lregex $REGEX_LIBS"], [ |
8621
f1534e248260
configure.in: check for pcre_compile, don't check for other regex functions if pcre library is found
John W. Eaton <jwe@octave.org>
parents:
8618
diff
changeset
|
600 warn_regex="regular expression functions not found. The regular expression matching functions will be disabled." |
f1534e248260
configure.in: check for pcre_compile, don't check for other regex functions if pcre library is found
John W. Eaton <jwe@octave.org>
parents:
8618
diff
changeset
|
601 AC_MSG_WARN($warn_regex)])]) |
8623
53fb843ca498
configure.in (REGEX_LIBS): undo part of previous change
John W. Eaton <jwe@octave.org>
parents:
8621
diff
changeset
|
602 |
53fb843ca498
configure.in (REGEX_LIBS): undo part of previous change
John W. Eaton <jwe@octave.org>
parents:
8621
diff
changeset
|
603 if test "$using_regex" = yes; then |
53fb843ca498
configure.in (REGEX_LIBS): undo part of previous change
John W. Eaton <jwe@octave.org>
parents:
8621
diff
changeset
|
604 AC_DEFINE(HAVE_REGEX, 1, [Define if regex library is available.]) |
5585 | 605 fi |
8623
53fb843ca498
configure.in (REGEX_LIBS): undo part of previous change
John W. Eaton <jwe@octave.org>
parents:
8621
diff
changeset
|
606 |
7169 | 607 AC_SUBST(REGEX_LIBS) |
5585 | 608 |
5270 | 609 ### Check for ZLIB library. |
3820 | 610 |
9538
d0239bddf621
use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents:
9536
diff
changeset
|
611 OCTAVE_CHECK_LIBRARY(z, ZLIB, |
d0239bddf621
use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents:
9536
diff
changeset
|
612 [ZLIB library not found. Octave will not be able to save or load compressed data files or HDF5 files.], |
d0239bddf621
use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents:
9536
diff
changeset
|
613 [zlib.h], [gzclearerr]) |
3687 | 614 |
9538
d0239bddf621
use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents:
9536
diff
changeset
|
615 ### Check for HDF5 library. |
5270 | 616 |
9542
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
617 save_CPPFLAGS="$CPPFLAGS" |
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
618 CPPFLAGS="$Z_CPPFLAGS $CPPFLAGS" |
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
619 save_LIBS="$LIBS" |
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
620 LIBS="$Z_LDFLAGS $Z_LIBS $LIBS" |
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
621 OCTAVE_CHECK_LIBRARY(hdf5, HDF5, |
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
622 [HDF5 library not found. Octave will not be able to save or load HDF5 data files.], |
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
623 [hdf5.h], [H5Gget_num_objs], [], [], |
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
624 [warn_hdf5= |
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
625 OCTAVE_HDF5_HAS_REQUIRED_API |
9543
1d51ab34b509
tweaks for HDF5 library check
John W. Eaton <jwe@octave.org>
parents:
9542
diff
changeset
|
626 if test $octave_hdf5_ok = yes; then |
1d51ab34b509
tweaks for HDF5 library check
John W. Eaton <jwe@octave.org>
parents:
9542
diff
changeset
|
627 TEXINFO_HDF5="@set HAVE_HDF5" |
9542
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
628 AC_DEFINE(HAVE_HDF5, 1, [Define if HDF5 is available.]) |
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
629 AC_DEFINE(HAVE_H5GGET_NUM_OBJS, 1, [Define if HDF5 has H5Gget_num_objs.]) |
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
630 case "$canonical_host_type" in |
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
631 *-*-msdosmsvc) |
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
632 OCTAVE_HDF5_DLL |
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
633 ;; |
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
634 esac |
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
635 fi]) |
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
636 CPPFLAGS="$save_CPPFLAGS" |
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
637 LIBS="$save_LIBS" |
5270 | 638 |
639 | |
9542
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
640 # Subdirectory of libcruft to build if fftw is not found: |
5203 | 641 |
3827 | 642 FFT_DIR="fftpack" |
643 AC_SUBST(FFT_DIR) | |
644 | |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
645 # Checks for FFTW header and library. |
3827 | 646 |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
647 OCTAVE_CHECK_LIBRARY(fftw3, FFTW3, |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
648 [FFTW3 library not found. The slower FFTPACK library will be used instead.], |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
649 [fftw3.h], [fftw_plan_dft_1d]) |
3827 | 650 |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
651 OCTAVE_CHECK_LIBRARY(fftw3f, FFTW3F, |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
652 [FFTW3F library not found. The slower FFTPACK library will be used instead.], |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
653 [fftw3.h], [fftwf_plan_dft_1d]) |
3827 | 654 |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
655 if test -n "$FFTW3_LIBS" && test -n "$FFTW3F_LIBS"; then |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
656 FFT_DIR= |
3827 | 657 fi |
658 | |
5235 | 659 # Checks for GLPK header and library. |
660 | |
9540
79b5fe2d5646
use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
661 save_CPPFLAGS="$CPPFLAGS" |
79b5fe2d5646
use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
662 CPPFLAGS="$Z_CPPFLAGS $CPPFLAGS" |
79b5fe2d5646
use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
663 save_LIBS="$LIBS" |
79b5fe2d5646
use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
664 LIBS="$Z_LDFLAGS $Z_LIBS $LIBS" |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
665 OCTAVE_CHECK_LIBRARY(glpk, GLPK, |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
666 [GLPK library not found. The glpk function for solving linear programs will be disabled.], |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
667 [glpk/glpk.h glpk.h], [_glp_lpx_simplex]) |
9540
79b5fe2d5646
use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
668 LIBS="$save_LIBS" |
79b5fe2d5646
use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
669 CPPFLAGS="$save_CPPFLAGS" |
5235 | 670 |
6043 | 671 # Checks for CURL header and library. |
672 | |
9540
79b5fe2d5646
use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
673 save_CPPFLAGS="$CPPFLAGS" |
79b5fe2d5646
use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
674 CPPFLAGS="$Z_CPPFLAGS $CPPFLAGS" |
79b5fe2d5646
use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
675 save_LIBS="$LIBS" |
79b5fe2d5646
use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
676 LIBS="$Z_LDFLAGS $Z_LIBS $LIBS" |
9519
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
677 OCTAVE_CHECK_LIBRARY(curl, cURL, |
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
678 [cURL library not found. The urlread and urlwrite functions will be disabled.], |
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
679 [curl/curl.h], [curl_easy_escape]) |
9540
79b5fe2d5646
use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
680 LIBS="$save_LIBS" |
79b5fe2d5646
use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
681 CPPFLAGS="$save_CPPFLAGS" |
6133 | 682 |
9575
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
683 ### GraphicsMagick++ |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
684 |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
685 warn_magick="GraphicsMagick++ library not found. The imread function for reading image files will not be fully functional." |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
686 |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
687 MAGICK_CPPFLAGS= |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
688 MAGICK_LDFLAGS= |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
689 MAGICK_LIBS= |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
690 |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
691 PKG_CHECK_EXISTS([GraphicsMagick++], [ |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
692 ## Make sure we only get -I, -L and -l flags. Some GraphicsMagick++ |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
693 ## packages adds extra flags that are useful when building |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
694 ## GraphicsMagick++ extentions. These extra flags break the Octave build. |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
695 MAGICK_LDFLAGS=`$PKG_CONFIG --libs-only-L GraphicsMagick++` |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
696 MAGICK_LIBS=`$PKG_CONFIG --libs-only-l GraphicsMagick++` |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
697 MAGICK_CPPFLAGS=`$PKG_CONFIG --cflags-only-I GraphicsMagick++` |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
698 |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
699 warn_magick="GraphicsMagick++ library fails tests. The imread function for reading image files will not be fully functional." |
7926
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7921
diff
changeset
|
700 |
9575
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
701 save_CPPFLAGS="$CPPFLAGS" |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
702 save_LIBS="$LIBS" |
9583
8dc1531e2149
correctly save and restore LIBS and CPPFLAGS when checking for GraphicsMagick++
John W. Eaton <jwe@octave.org>
parents:
9575
diff
changeset
|
703 CPPFLAGS="$MAGICK_CPPFLAGS $CPPFLAGS" |
8dc1531e2149
correctly save and restore LIBS and CPPFLAGS when checking for GraphicsMagick++
John W. Eaton <jwe@octave.org>
parents:
9575
diff
changeset
|
704 LIBS="$MAGICK_LDFLAGS $MAGICK_LIBS $LIBS" |
9575
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
705 AC_LANG_PUSH(C++) |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
706 AC_CHECK_HEADER([Magick++.h], [ |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
707 AC_MSG_CHECKING([for Magick::ColorRGB in Magick++.h]) |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
708 AC_TRY_LINK([#include <Magick++.h>], [Magick::ColorRGB c;], [ |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
709 AC_MSG_RESULT(yes) |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
710 warn_magick= |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
711 ], [ |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
712 AC_MSG_RESULT(no) |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
713 ]) |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
714 ]) |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
715 AC_LANG_POP(C++) |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
716 CPPFLAGS="$save_CPPFLAGS" |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
717 LIBS="$save_LIBS" |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
718 ]) |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
719 |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
720 if test -z "$warn_magick"; then |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
721 AC_DEFINE(HAVE_MAGICK, 1, [Define if GraphicsMagick++ is available.]) |
7937
6661387827d6
Allow build without GraphicsMagick installed
David Bateman <dbateman@free.fr>
parents:
7934
diff
changeset
|
722 else |
9575
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
723 MAGICK_CPPFLAGS= |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
724 MAGICK_LDFLAGS= |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
725 MAGICK_LIBS= |
7926
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7921
diff
changeset
|
726 fi |
9575
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
727 AC_SUBST(MAGICK_CPPFLAGS) |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
728 AC_SUBST(MAGICK_LDFLAGS) |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
729 AC_SUBST(MAGICK_LIBS) |
6043 | 730 |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
731 # --------------------------------------------------------------------- |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
732 |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
733 ## libraries needed for graphics |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
734 |
7944
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
735 warn_freetype="" |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
736 warn_ftgl="" |
7863
2a62d45fa21d
added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents:
7834
diff
changeset
|
737 |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
738 OCTAVE_OPENGL |
7944
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
739 if test -n "$OPENGL_LIBS"; then |
7954 | 740 AC_DEFINE(HAVE_OPENGL, 1, [Define if OpenGL is available]) |
7863
2a62d45fa21d
added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents:
7834
diff
changeset
|
741 |
2a62d45fa21d
added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents:
7834
diff
changeset
|
742 ## ftgl (needs freetype 2) |
9403
4af6e29449c1
[mq]: graphics_text_engine
Michael Goffioul <michael.goffioul@gmail.com>
parents:
9259
diff
changeset
|
743 AC_CHECK_FT2([9.0.3],[AC_DEFINE(HAVE_FREETYPE, 1, [Define to 1 if you have Freetype library.])], |
9571
263a8ed419b0
configure.in: style fixes for messages
John W. Eaton <jwe@octave.org>
parents:
9570
diff
changeset
|
744 [warn_freetype="FreeType library not found. Native renderer will not have on-screen text"]) |
7944
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
745 if test -z "$warn_freetype"; then |
7863
2a62d45fa21d
added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents:
7834
diff
changeset
|
746 AC_LANG_PUSH(C++) |
8269
37afdd1d1bf8
Use FT2_CFLAGS when checking for FTGL headers.
Jason Riedy <jason@acm.org>
parents:
8256
diff
changeset
|
747 save_LIBS="$LIBS" |
37afdd1d1bf8
Use FT2_CFLAGS when checking for FTGL headers.
Jason Riedy <jason@acm.org>
parents:
8256
diff
changeset
|
748 save_CXXFLAGS="$CXXFLAGS" |
37afdd1d1bf8
Use FT2_CFLAGS when checking for FTGL headers.
Jason Riedy <jason@acm.org>
parents:
8256
diff
changeset
|
749 save_CPPFLAGS="$CPPFLAGS" |
9176
7ea76c8a59f7
configure.in: put -lftgl ahead of $FT2_LIBS, and $FT2_LIBS ahead of $OPENGL_LIBS
John W. Eaton <jwe@octave.org>
parents:
9173
diff
changeset
|
750 LIBS="$LIBS $FT2_LIBS $OPENGL_LIBS" |
8269
37afdd1d1bf8
Use FT2_CFLAGS when checking for FTGL headers.
Jason Riedy <jason@acm.org>
parents:
8256
diff
changeset
|
751 CXXFLAGS="$CXXFLAGS $FT2_CFLAGS" |
37afdd1d1bf8
Use FT2_CFLAGS when checking for FTGL headers.
Jason Riedy <jason@acm.org>
parents:
8256
diff
changeset
|
752 CPPFLAGS="$CPPFLAGS $FT2_CFLAGS" |
7953
efabe34cce70
make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7944
diff
changeset
|
753 has_ftgl_h=yes |
efabe34cce70
make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7944
diff
changeset
|
754 AC_CHECK_HEADERS([FTGL/ftgl.h ftgl.h], break, [ |
efabe34cce70
make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7944
diff
changeset
|
755 AC_CHECK_HEADERS([FTGL/FTGL.h FTGL.h], [ |
9176
7ea76c8a59f7
configure.in: put -lftgl ahead of $FT2_LIBS, and $FT2_LIBS ahead of $OPENGL_LIBS
John W. Eaton <jwe@octave.org>
parents:
9173
diff
changeset
|
756 AC_DEFINE(HAVE_FTGL_UPPERCASE, 1, [Define to 1 if you have FTGL.h or FTGL/FTGL.h]) |
7953
efabe34cce70
make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7944
diff
changeset
|
757 break |
efabe34cce70
make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7944
diff
changeset
|
758 ], has_ftgl_h=no)]) |
efabe34cce70
make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7944
diff
changeset
|
759 if test "$has_ftgl_h" = yes; then |
7863
2a62d45fa21d
added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents:
7834
diff
changeset
|
760 AC_MSG_CHECKING([for FTGLTextureFont in -lftgl]) |
9176
7ea76c8a59f7
configure.in: put -lftgl ahead of $FT2_LIBS, and $FT2_LIBS ahead of $OPENGL_LIBS
John W. Eaton <jwe@octave.org>
parents:
9173
diff
changeset
|
761 LIBS="$save_LIBS -lftgl $FT2_LIBS $OPENGL_LIBS" |
7863
2a62d45fa21d
added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents:
7834
diff
changeset
|
762 AC_TRY_LINK([ |
7915
d74e515cb535
configure.in: check for ftgl.h instead of FTGL.h
John W. Eaton <jwe@octave.org>
parents:
7914
diff
changeset
|
763 #ifdef HAVE_FTGL_FTGL_H |
7953
efabe34cce70
make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7944
diff
changeset
|
764 #ifdef HAVE_FTGL_UPPERCASE |
efabe34cce70
make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7944
diff
changeset
|
765 #include <FTGL/FTGL.h> |
efabe34cce70
make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7944
diff
changeset
|
766 #else |
7915
d74e515cb535
configure.in: check for ftgl.h instead of FTGL.h
John W. Eaton <jwe@octave.org>
parents:
7914
diff
changeset
|
767 #include <FTGL/ftgl.h> |
7953
efabe34cce70
make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7944
diff
changeset
|
768 #endif |
8723
0899370cce9f
Include FTGLTextureFont.h when FTGL_UPPER_CASE is not defined.
Ben Abbott <bpabbott@mac.com>
parents:
8719
diff
changeset
|
769 #include <FTGL/FTGLTextureFont.h> |
7915
d74e515cb535
configure.in: check for ftgl.h instead of FTGL.h
John W. Eaton <jwe@octave.org>
parents:
7914
diff
changeset
|
770 #elif HAVE_FTGL_H |
7953
efabe34cce70
make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7944
diff
changeset
|
771 #ifdef HAVE_FTGL_UPPERCASE |
efabe34cce70
make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7944
diff
changeset
|
772 #include <FTGL.h> |
efabe34cce70
make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7944
diff
changeset
|
773 #else |
7915
d74e515cb535
configure.in: check for ftgl.h instead of FTGL.h
John W. Eaton <jwe@octave.org>
parents:
7914
diff
changeset
|
774 #include <ftgl.h> |
7953
efabe34cce70
make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7944
diff
changeset
|
775 #endif |
8723
0899370cce9f
Include FTGLTextureFont.h when FTGL_UPPER_CASE is not defined.
Ben Abbott <bpabbott@mac.com>
parents:
8719
diff
changeset
|
776 #include <FTGLTextureFont.h> |
7921
fcc70f30fe31
configure.in: use #endif, not #fi in test
John W. Eaton <jwe@octave.org>
parents:
7915
diff
changeset
|
777 #endif], [ |
7863
2a62d45fa21d
added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents:
7834
diff
changeset
|
778 FTGLTextureFont font("");], [ |
9176
7ea76c8a59f7
configure.in: put -lftgl ahead of $FT2_LIBS, and $FT2_LIBS ahead of $OPENGL_LIBS
John W. Eaton <jwe@octave.org>
parents:
9173
diff
changeset
|
779 OPENGL_LIBS="-lftgl $FT2_LIBS $OPENGL_LIBS" |
7863
2a62d45fa21d
added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents:
7834
diff
changeset
|
780 LIBS="$save_LIBS" |
8269
37afdd1d1bf8
Use FT2_CFLAGS when checking for FTGL headers.
Jason Riedy <jason@acm.org>
parents:
8256
diff
changeset
|
781 CPPFLAGS="$save_CPPFLAGS" |
7863
2a62d45fa21d
added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents:
7834
diff
changeset
|
782 AC_DEFINE(HAVE_FTGL, 1, [Define to 1 if FTGL is present]) |
7874
e3a502930e2a
eliminate src/graphics subdirectory
John W. Eaton <jwe@octave.org>
parents:
7863
diff
changeset
|
783 AC_MSG_RESULT(yes) |
9176
7ea76c8a59f7
configure.in: put -lftgl ahead of $FT2_LIBS, and $FT2_LIBS ahead of $OPENGL_LIBS
John W. Eaton <jwe@octave.org>
parents:
9173
diff
changeset
|
784 XTRA_CXXFLAGS="$XTRA_CXXFLAGS $FT2_CFLAGS"], [ |
7944
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
785 AC_MSG_RESULT(no) |
9571
263a8ed419b0
configure.in: style fixes for messages
John W. Eaton <jwe@octave.org>
parents:
9570
diff
changeset
|
786 warn_ftgl="FTGL library not found. Native renderer will not have on-screen text" |
7944
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
787 ]) |
7887
627b10572d82
configure.in: fix invalid placement of variables restoration statements
Jaroslav Hajek <highegg@gmail.com>
parents:
7874
diff
changeset
|
788 LIBS="$save_LIBS" |
627b10572d82
configure.in: fix invalid placement of variables restoration statements
Jaroslav Hajek <highegg@gmail.com>
parents:
7874
diff
changeset
|
789 CXXFLAGS="$save_CXXFLAGS" |
8269
37afdd1d1bf8
Use FT2_CFLAGS when checking for FTGL headers.
Jason Riedy <jason@acm.org>
parents:
8256
diff
changeset
|
790 CPPFLAGS="$save_CPPFLAGS" |
7944
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
791 else |
9571
263a8ed419b0
configure.in: style fixes for messages
John W. Eaton <jwe@octave.org>
parents:
9570
diff
changeset
|
792 warn_ftgl="FTGL headers not found. Native renderer will not have on-screen text" |
7944
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
793 fi |
7863
2a62d45fa21d
added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents:
7834
diff
changeset
|
794 AC_LANG_POP(C++) |
2a62d45fa21d
added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents:
7834
diff
changeset
|
795 fi |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
796 fi |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
797 |
9403
4af6e29449c1
[mq]: graphics_text_engine
Michael Goffioul <michael.goffioul@gmail.com>
parents:
9259
diff
changeset
|
798 # fontconfig library |
4af6e29449c1
[mq]: graphics_text_engine
Michael Goffioul <michael.goffioul@gmail.com>
parents:
9259
diff
changeset
|
799 |
4af6e29449c1
[mq]: graphics_text_engine
Michael Goffioul <michael.goffioul@gmail.com>
parents:
9259
diff
changeset
|
800 warn_fontconfig="" |
4af6e29449c1
[mq]: graphics_text_engine
Michael Goffioul <michael.goffioul@gmail.com>
parents:
9259
diff
changeset
|
801 if test -z "$warn_freetype"; then |
4af6e29449c1
[mq]: graphics_text_engine
Michael Goffioul <michael.goffioul@gmail.com>
parents:
9259
diff
changeset
|
802 PKG_CHECK_MODULES(FONTCONFIG,[fontconfig],[ |
4af6e29449c1
[mq]: graphics_text_engine
Michael Goffioul <michael.goffioul@gmail.com>
parents:
9259
diff
changeset
|
803 have_fontconfig=yes |
4af6e29449c1
[mq]: graphics_text_engine
Michael Goffioul <michael.goffioul@gmail.com>
parents:
9259
diff
changeset
|
804 OPENGL_LIBS="$FONTCONFIG_LIBS $OPENGL_LIBS" |
4af6e29449c1
[mq]: graphics_text_engine
Michael Goffioul <michael.goffioul@gmail.com>
parents:
9259
diff
changeset
|
805 XTRA_CXXFLAGS="$XTRA_CXXFLAGS $FONTCONFIG_CFLAGS" |
4af6e29449c1
[mq]: graphics_text_engine
Michael Goffioul <michael.goffioul@gmail.com>
parents:
9259
diff
changeset
|
806 AC_DEFINE(HAVE_FONTCONFIG, 1, [Define to 1 if fontconfig is present])],[ |
4af6e29449c1
[mq]: graphics_text_engine
Michael Goffioul <michael.goffioul@gmail.com>
parents:
9259
diff
changeset
|
807 have_fontconfig=no |
9571
263a8ed419b0
configure.in: style fixes for messages
John W. Eaton <jwe@octave.org>
parents:
9570
diff
changeset
|
808 warn_fontconfig="Fontconfig not found. Native text rendering will use hard-coded font instead."]) |
9403
4af6e29449c1
[mq]: graphics_text_engine
Michael Goffioul <michael.goffioul@gmail.com>
parents:
9259
diff
changeset
|
809 fi |
4af6e29449c1
[mq]: graphics_text_engine
Michael Goffioul <michael.goffioul@gmail.com>
parents:
9259
diff
changeset
|
810 |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
811 GRAPHICS_LIBS= |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
812 GRAPHICS_CFLAGS= |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
813 |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
814 ## fltk (www.fltk.org) |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
815 AC_ARG_WITH(fltk-prefix, |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
816 [ --with-fltk-prefix=PFX Prefix where FLTK is installed (optional)], |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
817 fltk_prefix="$withval", |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
818 fltk_prefix="") |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
819 AC_ARG_WITH(fltk-exec-prefix, |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
820 [ --with-fltk-exec-prefix=PFX Exec prefix where FLTK is installed (optional)], |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
821 fltk_exec_prefix="$withval", |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
822 fltk_exec_prefix="") |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
823 |
7944
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
824 if test -n "$fltk_exec_prefix"; then |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
825 fltk_args="$fltk_args --exec-prefix=$fltk_exec_prefix" |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
826 if test "x${FLTK_CONFIG+set}" != xset ; then |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
827 FLTK_CONFIG="$fltk_exec_prefix/bin/fltk-config" |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
828 fi |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
829 fi |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
830 |
7944
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
831 if test -n "$fltk_prefix"; then |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
832 fltk_args="$fltk_args --prefix=$fltk_prefix" |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
833 if test x${FLTK_CONFIG+set} != xset ; then |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
834 FLTK_CONFIG="$fltk_prefix/bin/fltk-config" |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
835 fi |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
836 fi |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
837 |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
838 AC_PATH_PROG(FLTK_CONFIG, fltk-config, no) |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
839 |
7944
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
840 warn_fltk_config="" |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
841 warn_fltk_opengl="" |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
842 |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
843 if test "$FLTK_CONFIG" = "no" ; then |
7944
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
844 warn_fltk_config="FLTK config script not found. Native graphics will be disabled." |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
845 else |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
846 FLTK_CFLAGS="`$FLTK_CONFIG $fltkconf_args --use-gl --cflags`" |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
847 FLTK_LDFLAGS="`$FLTK_CONFIG $fltkconf_args --use-gl --ldflags`" |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
848 |
7944
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
849 AC_MSG_CHECKING(for OpenGL support in FLTK) |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
850 cat > conftest.cc <<EOF |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
851 #include <FL/gl.h> |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
852 int nothing=0; |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
853 EOF |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
854 $CXX $CXXFLAGS $FLTK_CFLAGS -c conftest.cc || \ |
7944
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
855 warn_fltk_opengl="FLTK does not have OpenGL support. Native graphics will be disabled." |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
856 |
7944
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
857 if test -z "$warn_fltk_opengl"; then |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
858 AC_MSG_RESULT(yes) |
7954 | 859 AC_DEFINE(HAVE_FLTK, 1, [Define if FLTK is available]) |
7863
2a62d45fa21d
added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents:
7834
diff
changeset
|
860 GRAPHICS_CFLAGS="$FLTK_CFLAGS" |
2a62d45fa21d
added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents:
7834
diff
changeset
|
861 GRAPHICS_LIBS="$FLTK_LDFLAGS" |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
862 else |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
863 AC_MSG_RESULT(no) |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
864 fi |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
865 fi |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
866 |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
867 AC_SUBST(GRAPHICS_CFLAGS) |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
868 AC_SUBST(GRAPHICS_LIBS) |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
869 |
3827 | 870 # ---------------------------------------------------------------------- |
871 | |
3130 | 872 OCTAVE_PROG_AR |
3012 | 873 |
874 AC_PROG_RANLIB | |
875 | |
6137 | 876 XTRA_CRUFT_SH_LDFLAGS= |
6102 | 877 case "$canonical_host_type" in |
878 *-*-msdosmsvc) | |
879 FLIBS="$FLIBS -lkernel32" | |
6137 | 880 XTRA_CRUFT_SH_LDFLAGS="-Wl,-def:cruft.def" |
6102 | 881 ;; |
882 esac | |
6137 | 883 AC_SUBST(XTRA_CRUFT_SH_LDFLAGS) |
6102 | 884 |
3820 | 885 ### Checks for BLAS and LAPACK libraries: |
3887 | 886 # (Build subdirectories of libcruft if they aren't found on the system.) |
7683
8136cb19fb7a
implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents:
7638
diff
changeset
|
887 ACX_BLAS_WITH_F77_FUNC([], [BLAS_DIR="blas"]) |
3887 | 888 ACX_LAPACK([BLAS_LIBS="$LAPACK_LIBS $BLAS_LIBS"], [LAPACK_DIR="lapack"]) |
3690 | 889 AC_SUBST(BLAS_DIR) |
890 AC_SUBST(LAPACK_DIR) | |
891 | |
7683
8136cb19fb7a
implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents:
7638
diff
changeset
|
892 if test "x$acx_blas_f77_func_ok" = "xno"; then |
8136cb19fb7a
implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents:
7638
diff
changeset
|
893 warn_blas_f77_incompatible="A BLAS library was detected but found incompatible with your Fortran 77 compiler. The reference BLAS implementation will be used. To improve performance, consider using a different Fortran compiler or a switch like -ff2c to make your Fortran compiler use a calling convention compatible with the way your BLAS library was compiled, or use a different BLAS library." |
8136cb19fb7a
implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents:
7638
diff
changeset
|
894 AC_MSG_WARN($warn_blas_f77_incompatible) |
8136cb19fb7a
implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents:
7638
diff
changeset
|
895 fi |
8136cb19fb7a
implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents:
7638
diff
changeset
|
896 |
8547
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
897 # Check for the qrupdate library |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
898 |
9570
1ab56c73ec7c
use OCTAVE_CHECK_LIBRARY to check for qrupdate library
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
899 save_LIBS="$LIBS" |
1ab56c73ec7c
use OCTAVE_CHECK_LIBRARY to check for qrupdate library
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
900 LIBS="$BLAS_LIBS $FLIBS $LIBS" |
1ab56c73ec7c
use OCTAVE_CHECK_LIBRARY to check for qrupdate library
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
901 OCTAVE_CHECK_LIBRARY(qrupdate, qrupdate, |
9571
263a8ed419b0
configure.in: style fixes for messages
John W. Eaton <jwe@octave.org>
parents:
9570
diff
changeset
|
902 [qrupdate not found. The QR & Cholesky updating functions will be slow.], |
9570
1ab56c73ec7c
use OCTAVE_CHECK_LIBRARY to check for qrupdate library
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
903 [], |
1ab56c73ec7c
use OCTAVE_CHECK_LIBRARY to check for qrupdate library
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
904 [F77_FUNC(sqr1up,SQR1UP)], |
1ab56c73ec7c
use OCTAVE_CHECK_LIBRARY to check for qrupdate library
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
905 [], [don't use qrupdate, disable QR & Cholesky updating functions]) |
1ab56c73ec7c
use OCTAVE_CHECK_LIBRARY to check for qrupdate library
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
906 LIBS="$save_LIBS" |
8547
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
907 |
5451 | 908 # Check for AMD library |
7619 | 909 |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
910 OCTAVE_CHECK_LIBRARY(amd, AMD, |
9571
263a8ed419b0
configure.in: style fixes for messages
John W. Eaton <jwe@octave.org>
parents:
9570
diff
changeset
|
911 [AMD library not found. This will result in some lack of functionality for sparse matrices.], |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
912 [suitesparse/amd.h ufsparse/amd.h amd/amd.h amd.h], |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
913 [amd_postorder], |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
914 [], [don't use AMD library, disable some sparse functionality]) |
5451 | 915 |
6024 | 916 # Check for CAMD library |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
917 |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
918 OCTAVE_CHECK_LIBRARY(camd, CAMD, |
9571
263a8ed419b0
configure.in: style fixes for messages
John W. Eaton <jwe@octave.org>
parents:
9570
diff
changeset
|
919 [CAMD library not found. This will result in some lack of functionality for sparse matrices.], |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
920 [suitesparse/camd.h ufsparse/camd.h amd/camd.h camd.h], |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
921 [camd_postorder], |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
922 [], [don't use CAMD library, disable some sparse functionality]) |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
923 |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
924 # Check for COLAMD library |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
925 |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
926 OCTAVE_CHECK_LIBRARY(colamd, COLAMD, |
9571
263a8ed419b0
configure.in: style fixes for messages
John W. Eaton <jwe@octave.org>
parents:
9570
diff
changeset
|
927 [COLAMD library not found. This will result in some lack of functionality for sparse matrices.], |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
928 [suitesparse/colamd.h ufsparse/colamd.h amd/colamd.h colamd.h], |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
929 [colamd], |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
930 [], [don't use COLAMD library, disable some sparse functionality]) |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
931 |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
932 # Check for CCOLAMD library |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
933 |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
934 OCTAVE_CHECK_LIBRARY(ccolamd, CCOLAMD, |
9571
263a8ed419b0
configure.in: style fixes for messages
John W. Eaton <jwe@octave.org>
parents:
9570
diff
changeset
|
935 [CCOLAMD library not found. This will result in some lack of functionality for sparse matrices.], |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
936 [suitesparse/ccolamd.h ufsparse/ccolamd.h amd/ccolamd.h ccolamd.h], |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
937 [ccolamd], |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
938 [], [don't use CCOLAMD library, disable some sparse functionality]) |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
939 |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
940 # Check for CHOLMOD library. If your cholmod library requires cblas, |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
941 # then you will need to configure with --with-cholmod="-lcholmod -lcblas". |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
942 |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
943 save_LIBS="$LIBS" |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
944 LIBS="$BLAS_LIBS $FLIBS $LIBS" |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
945 OCTAVE_CHECK_LIBRARY(cholmod, CHOLMOD, |
9571
263a8ed419b0
configure.in: style fixes for messages
John W. Eaton <jwe@octave.org>
parents:
9570
diff
changeset
|
946 [CHOLMOD library not found. This will result in some lack of functionality for sparse matrices.], |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
947 [suitesparse/cholmod.h ufsparse/cholmod.h cholmod/cholmod.h cholmod.h], |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
948 [cholmod_start], |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
949 [], [don't use CHOLMOD library, disable some sparse functionality]) |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
950 LIBS="$save_LIBS" |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
951 |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
952 # Check for CXSparse library |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
953 |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
954 OCTAVE_CHECK_LIBRARY(cxsparse, CXSparse, |
9571
263a8ed419b0
configure.in: style fixes for messages
John W. Eaton <jwe@octave.org>
parents:
9570
diff
changeset
|
955 [CXSparse library not found. This will result in some lack of functionality for sparse matrices.], |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
956 [suitesparse/cs.h ufsparse/cs.h amd/cs.h cs.h], |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
957 [cs_di_sqr], |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
958 [C++], [don't use CXSparse library, disable some sparse functionality]) |
6024 | 959 |
5226 | 960 # Check for UMFPACK library. |
961 | |
9572
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
962 save_LIBS="$LIBS" |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
963 LIBS="$AMD_LDFLAGS $AMD_LIBS $BLAS_LIBS $FLIBS $LIBS" |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
964 OCTAVE_CHECK_LIBRARY(umfpack, UMFPACK, |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
965 [UMFPACK not found. This will result in some lack of functionality for sparse matrices.], |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
966 [suitesparse/umfpack.h ufsparse/umfpack.h umfpack/umfpack.h umfpack.h], |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
967 [umfpack_zi_get_determinant], |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
968 [], [don't use UMFPACK, disable some sparse functionality]) |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
969 LIBS="$save_LIBS" |
5512 | 970 |
9572
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
971 if test -z "$UMFPACK_LIBS"; then |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
972 ## Invalidate the cache and try again with -lcblas. |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
973 $as_unset ac_cv_lib_umfpack_umfpack_zi_get_determinant |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
974 save_LIBS="$LIBS" |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
975 LIBS="-lcblas $AMD_LDFLAGS $AMD_LIBS $BLAS_LIBS $FLIBS $LIBS" |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
976 OCTAVE_CHECK_LIBRARY(umfpack, UMFPACK, |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
977 [UMFPACK not found. This will result in some lack of functionality for sparse matrices.], |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
978 [suitesparse/umfpack.h ufsparse/umfpack.h umfpack/umfpack.h umfpack.h], |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
979 [umfpack_zi_get_determinant], |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
980 [], [don't use UMFPACK, disable some sparse functionality]) |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
981 if test -n "$UMFPACK_LIBS"; then |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
982 UMFPACK_LIBS="$UMFPACK_LIBS -lcblas" |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
983 fi |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
984 LIBS="$save_LIBS" |
6133 | 985 fi |
5513 | 986 |
9572
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
987 if test -n "$UMFPACK_LIBS"; then |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
988 save_LIBS="$LIBS"; |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
989 LIBS="$UMFPACK_LIBS $AMD_LIBS $BLAS_LIBS $FLIBS $LIBS" |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
990 OCTAVE_UMFPACK_SEPERATE_SPLIT |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
991 LIBS="$save_LIBS" |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
992 fi |
5226 | 993 |
9568
d3fccc4c4b9e
use OCTAVE_CHECK_LIBRARY to check for ARPACK
John W. Eaton <jwe@octave.org>
parents:
9543
diff
changeset
|
994 save_LIBS="$LIBS" |
d3fccc4c4b9e
use OCTAVE_CHECK_LIBRARY to check for ARPACK
John W. Eaton <jwe@octave.org>
parents:
9543
diff
changeset
|
995 LIBS="$LAPACK_LIBS $BLAS_LIBS $FLIBS $LIBS" |
d3fccc4c4b9e
use OCTAVE_CHECK_LIBRARY to check for ARPACK
John W. Eaton <jwe@octave.org>
parents:
9543
diff
changeset
|
996 OCTAVE_CHECK_LIBRARY(arpack, ARPACK, |
d3fccc4c4b9e
use OCTAVE_CHECK_LIBRARY to check for ARPACK
John W. Eaton <jwe@octave.org>
parents:
9543
diff
changeset
|
997 [arpack not found. The eigs function will be disabled.], |
d3fccc4c4b9e
use OCTAVE_CHECK_LIBRARY to check for ARPACK
John W. Eaton <jwe@octave.org>
parents:
9543
diff
changeset
|
998 [], |
d3fccc4c4b9e
use OCTAVE_CHECK_LIBRARY to check for ARPACK
John W. Eaton <jwe@octave.org>
parents:
9543
diff
changeset
|
999 [F77_FUNC(dseupd,DSEUPD)], |
d3fccc4c4b9e
use OCTAVE_CHECK_LIBRARY to check for ARPACK
John W. Eaton <jwe@octave.org>
parents:
9543
diff
changeset
|
1000 [], [don't use the ARPACK library, disable eigs function]) |
9573
be3ee885739b
configure.in: restore LIBS after checking for ARPACK
John W. Eaton <jwe@octave.org>
parents:
9572
diff
changeset
|
1001 LIBS="$save_LIBS" |
8417
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
1002 |
4110 | 1003 ### Handle shared library options. |
2813 | 1004 |
3034 | 1005 ### Enable creation of static libraries. |
1006 | |
1007 AC_ARG_ENABLE(static, | |
5844 | 1008 [AS_HELP_STRING([--enable-static], [create static libraries])], |
3034 | 1009 [if test "$enableval" = no; then STATIC_LIBS=false; |
1010 else STATIC_LIBS=true; fi], | |
5221 | 1011 STATIC_LIBS=false) |
3034 | 1012 AC_SUBST(STATIC_LIBS) |
1013 | |
2813 | 1014 ### Enable creation of shared libraries. Currently only works with |
1015 ### gcc on some systems. | |
1016 | |
1017 AC_ARG_ENABLE(shared, | |
5844 | 1018 [AS_HELP_STRING([--enable-shared], |
1019 [create shared libraries (not all systems)])], | |
2813 | 1020 [if test "$enableval" = no; then SHARED_LIBS=false; |
1021 else SHARED_LIBS=true; fi], | |
5221 | 1022 SHARED_LIBS=true) |
2813 | 1023 AC_SUBST(SHARED_LIBS) |
1024 | |
4128 | 1025 ### Enable dynamic linking. --enable-shared implies this, so |
1026 ### --enable-dl is only need if you are only building static libraries | |
1027 ### and want to try dynamic linking too (works on some systems, for | |
1028 ### example, OS X and Windows). | |
1029 | |
1030 AC_ARG_ENABLE(dl, | |
5844 | 1031 [AS_HELP_STRING([--enable-dl], |
1032 [create shared libraries (not all systems)])], | |
4128 | 1033 [if test "$enableval" = no; then ENABLE_DYNAMIC_LINKING=false; |
1034 else ENABLE_DYNAMIC_LINKING=true; fi], | |
5221 | 1035 ENABLE_DYNAMIC_LINKING=true) |
4128 | 1036 |
3034 | 1037 if $STATIC_LIBS || $SHARED_LIBS; then |
1038 true | |
1039 else | |
1040 AC_MSG_ERROR([You can't disable building static AND shared libraries!]) | |
1041 fi | |
1042 | |
2813 | 1043 AC_ARG_ENABLE(rpath, |
5844 | 1044 [AS_HELP_STRING([--enable-rpath], |
1045 [override the default link options for rpath; e.g., --enable-rpath='-rpath $(octlibdir)'])], | |
4353 | 1046 [ if test "$enableval" = no; then use_rpath=false; |
1047 else | |
1048 use_rpath=true | |
1049 if test "$enableval" = yes; then true; | |
1050 else enable_rpath_arg="$enableval"; fi | |
4439 | 1051 fi], [use_rpath=true]) |
2813 | 1052 |
1053 CPICFLAG=-fPIC | |
1054 CXXPICFLAG=-fPIC | |
1055 FPICFLAG=-fPIC | |
1056 SHLEXT=so | |
4190 | 1057 SHLLIB='$(SHLEXT)' |
4102 | 1058 SHLBIN= |
4138 | 1059 SHLEXT_VER='$(SHLEXT).$(version)' |
1060 SHLLIB_VER='$(SHLLIB).$(version)' | |
1061 SHLBIN_VER='$(SHLBIN).$(version)' | |
4126 | 1062 SHLLINKEXT= |
6051 | 1063 LIBPRE=lib |
9186
49a0c58a7dcf
Added SHLPRE for SHLEXT instead of SHLLIBPRE
marco_atzeri@yahoo.it
parents:
9178
diff
changeset
|
1064 SHLPRE=lib |
9189
8a348e4be8bb
repair damage done when applying changeset 49a0c58a7dcf
John W. Eaton <jwe@octave.org>
parents:
9187
diff
changeset
|
1065 SHLLIBPRE=lib |
8618
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8607
diff
changeset
|
1066 SHLBINPRE=lib |
4323 | 1067 SH_LD='$(CXX)' |
2813 | 1068 SH_LDFLAGS=-shared |
4759 | 1069 DL_LD='$(SH_LD)' |
1070 DL_LDFLAGS='$(SH_LDFLAGS)' | |
1071 MKOCTFILE_DL_LDFLAGS='$(DL_LDFLAGS)' | |
3036 | 1072 SONAME_FLAGS= |
2813 | 1073 RLD_FLAG= |
4199 | 1074 NO_OCT_FILE_STRIP=false |
4323 | 1075 TEMPLATE_AR='$(AR)' |
3775 | 1076 TEMPLATE_ARFLAGS="$ARFLAGS" |
6137 | 1077 CRUFT_DLL_DEFS= |
1078 OCTAVE_DLL_DEFS= | |
1079 OCTINTERP_DLL_DEFS= | |
7825
13871b7de124
Import sources for OpenGL-based renderer.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
7789
diff
changeset
|
1080 OCTGRAPHICS_DLL_DEFS= |
4104 | 1081 library_path_var=LD_LIBRARY_PATH |
9613
16907d1153d1
attempt to fix LD_PRELOAD for Cygwin
John W. Eaton <jwe@octave.org>
parents:
9610
diff
changeset
|
1082 ldpreloadsep=" " |
9229
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
9189
diff
changeset
|
1083 SCRIPTS_EXE_SUFFIX= |
2813 | 1084 case "$canonical_host_type" in |
6668 | 1085 *-*-386bsd* | *-*-netbsd*) |
2813 | 1086 SH_LD=ld |
1087 SH_LDFLAGS=-Bshareable | |
1088 ;; | |
6668 | 1089 *-*-openbsd*) |
1090 SH_LDFLAGS='-shared -fPIC' | |
1091 ;; | |
4323 | 1092 *-*-freebsd*) |
5508 | 1093 SH_LDFLAGS="-shared -Wl,-x" |
1094 RLD_FLAG='-Wl,-rpath -Wl,$(octlibdir)' | |
4323 | 1095 ;; |
3127 | 1096 alpha*-dec-osf*) |
2813 | 1097 CPICFLAG= |
1098 CXXPICFLAG= | |
1099 FPICFLAG= | |
4283 | 1100 SH_LDFLAGS="-shared -Wl,-expect_unresolved -Wl,'*'" |
1101 RLD_FLAG='-Wl,-rpath -Wl,$(octlibdir)' | |
2813 | 1102 ;; |
3956 | 1103 *-*-darwin*) |
4759 | 1104 DL_LDFLAGS='-bundle -bundle_loader $(TOPDIR)/src/octave $(LDFLAGS)' |
6682 | 1105 MKOCTFILE_DL_LDFLAGS='-bundle -bundle_loader $$BINDIR/octave-$$OCTAVE_VERSION$$EXEEXT' |
4759 | 1106 SH_LDFLAGS='-dynamiclib -single_module $(LDFLAGS)' |
7266 | 1107 case "$canonical_host_type" in |
1108 powerpc-*) | |
1109 CXXPICFLAG= | |
1110 CPICFLAG= | |
1111 FPICFLAG= | |
1112 ;; | |
1113 esac | |
4759 | 1114 SHLEXT=dylib |
1115 SHLLIB='$(SHLEXT)' | |
1116 SHLEXT_VER='$(version).$(SHLEXT)' | |
1117 SHLLIB_VER='$(version).$(SHLLIB)' | |
4199 | 1118 NO_OCT_FILE_STRIP=true |
4786 | 1119 SONAME_FLAGS='-install_name $(octlibdir)/$@' |
4759 | 1120 library_path_var=DYLD_LIBRARY_PATH |
3956 | 1121 ;; |
8675
43c6012bd4c2
configure.in: separate cases for cygwin and mingw
Benjamin Lindner <lindnerben@gmx.net>
parents:
8659
diff
changeset
|
1122 *-*-cygwin*) |
9054
0735e427c6c0
configure fixes for cygwin
Marco Atzeri <marco_atzeri@yahoo.it>
parents:
9049
diff
changeset
|
1123 CPICFLAG= |
0735e427c6c0
configure fixes for cygwin
Marco Atzeri <marco_atzeri@yahoo.it>
parents:
9049
diff
changeset
|
1124 CXXPICFLAG= |
0735e427c6c0
configure fixes for cygwin
Marco Atzeri <marco_atzeri@yahoo.it>
parents:
9049
diff
changeset
|
1125 FPICFLAG= |
0735e427c6c0
configure fixes for cygwin
Marco Atzeri <marco_atzeri@yahoo.it>
parents:
9049
diff
changeset
|
1126 LIBPRE=lib |
9186
49a0c58a7dcf
Added SHLPRE for SHLEXT instead of SHLLIBPRE
marco_atzeri@yahoo.it
parents:
9178
diff
changeset
|
1127 SHLPRE=cyg |
9241
60bbc66bb0e2
Correct my previous mistake for cygwin SHLBIN and SHLBINPRE
Marco Atzeri <marco_atzeri@yahoo.it>
parents:
9231
diff
changeset
|
1128 SHLBINPRE=cyg |
8644
fac8c78b4fb9
configure.in: fix shared library definitions for Cygwin and MinGW
Marco Atzeri <marco_atzeri@yahoo.it>
parents:
8641
diff
changeset
|
1129 SHLEXT=dll |
fac8c78b4fb9
configure.in: fix shared library definitions for Cygwin and MinGW
Marco Atzeri <marco_atzeri@yahoo.it>
parents:
8641
diff
changeset
|
1130 SHLLIB=dll.a |
9241
60bbc66bb0e2
Correct my previous mistake for cygwin SHLBIN and SHLBINPRE
Marco Atzeri <marco_atzeri@yahoo.it>
parents:
9231
diff
changeset
|
1131 SHLBIN=dll |
5451 | 1132 DL_LDFLAGS="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc" |
5414 | 1133 SH_LDFLAGS="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-auto-image-base" |
9241
60bbc66bb0e2
Correct my previous mistake for cygwin SHLBIN and SHLBINPRE
Marco Atzeri <marco_atzeri@yahoo.it>
parents:
9231
diff
changeset
|
1134 SONAME_FLAGS='-Wl,--out-implib=$(patsubst $(SHLPRE)%,$(LIBPRE)%,$@).a' |
9613
16907d1153d1
attempt to fix LD_PRELOAD for Cygwin
John W. Eaton <jwe@octave.org>
parents:
9610
diff
changeset
|
1135 ldpreloadsep=":" |
4102 | 1136 ;; |
8675
43c6012bd4c2
configure.in: separate cases for cygwin and mingw
Benjamin Lindner <lindnerben@gmx.net>
parents:
8659
diff
changeset
|
1137 *-*-mingw*) |
43c6012bd4c2
configure.in: separate cases for cygwin and mingw
Benjamin Lindner <lindnerben@gmx.net>
parents:
8659
diff
changeset
|
1138 CPICFLAG= |
43c6012bd4c2
configure.in: separate cases for cygwin and mingw
Benjamin Lindner <lindnerben@gmx.net>
parents:
8659
diff
changeset
|
1139 CXXPICFLAG= |
43c6012bd4c2
configure.in: separate cases for cygwin and mingw
Benjamin Lindner <lindnerben@gmx.net>
parents:
8659
diff
changeset
|
1140 FPICFLAG= |
43c6012bd4c2
configure.in: separate cases for cygwin and mingw
Benjamin Lindner <lindnerben@gmx.net>
parents:
8659
diff
changeset
|
1141 SHLEXT=dll |
43c6012bd4c2
configure.in: separate cases for cygwin and mingw
Benjamin Lindner <lindnerben@gmx.net>
parents:
8659
diff
changeset
|
1142 SHLLIB=dll.a |
43c6012bd4c2
configure.in: separate cases for cygwin and mingw
Benjamin Lindner <lindnerben@gmx.net>
parents:
8659
diff
changeset
|
1143 SHLBIN=dll |
43c6012bd4c2
configure.in: separate cases for cygwin and mingw
Benjamin Lindner <lindnerben@gmx.net>
parents:
8659
diff
changeset
|
1144 DL_LDFLAGS="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc" |
43c6012bd4c2
configure.in: separate cases for cygwin and mingw
Benjamin Lindner <lindnerben@gmx.net>
parents:
8659
diff
changeset
|
1145 SH_LDFLAGS="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-auto-image-base" |
43c6012bd4c2
configure.in: separate cases for cygwin and mingw
Benjamin Lindner <lindnerben@gmx.net>
parents:
8659
diff
changeset
|
1146 SONAME_FLAGS='-Wl,--out-implib=$@.a' |
43c6012bd4c2
configure.in: separate cases for cygwin and mingw
Benjamin Lindner <lindnerben@gmx.net>
parents:
8659
diff
changeset
|
1147 library_path_var=PATH |
9252
a1d20052517a
support for mkoctfile.exe and octave-config.exe on mingw platform
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
9241
diff
changeset
|
1148 SCRIPTS_EXE_SUFFIX='$(EXEEXT)' |
8675
43c6012bd4c2
configure.in: separate cases for cygwin and mingw
Benjamin Lindner <lindnerben@gmx.net>
parents:
8659
diff
changeset
|
1149 ;; |
8618
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8607
diff
changeset
|
1150 |
6089 | 1151 *-*-msdosmsvc) |
6794 | 1152 DL_LDFLAGS="-shared" |
6051 | 1153 CPICFLAG= |
1154 CXXPICFLAG= | |
1155 FPICFLAG= | |
1156 SHLEXT=dll | |
1157 SHLLIB=lib | |
1158 SHLBIN=dll | |
1159 LIBPRE= | |
9186
49a0c58a7dcf
Added SHLPRE for SHLEXT instead of SHLLIBPRE
marco_atzeri@yahoo.it
parents:
9178
diff
changeset
|
1160 SHLPRE= |
9189
8a348e4be8bb
repair damage done when applying changeset 49a0c58a7dcf
John W. Eaton <jwe@octave.org>
parents:
9187
diff
changeset
|
1161 SHLLIBPRE= |
8618
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8607
diff
changeset
|
1162 SHLBINPRE= |
6794 | 1163 SH_LDFLAGS="-shared" |
1164 if test -n "`echo $CFLAGS | grep -e '-g'`" -o -n "`echo $CXXFLAGS | grep -e '-g'`"; then | |
1165 DL_LDFLAGS="$DL_LDFLAGS -g" | |
1166 SH_LDFLAGS="$SH_LDFLAGS -g" | |
1167 fi | |
6255 | 1168 NO_OCT_FILE_STRIP=true |
6100 | 1169 library_path_var=PATH |
6718 | 1170 NO_OCT_FILE_STRIP=true |
6087 | 1171 ## Extra compilation flags. |
6137 | 1172 CRUFT_DLL_DEFS="-DCRUFT_DLL" |
1173 OCTAVE_DLL_DEFS="-DOCTAVE_DLL" | |
1174 OCTINTERP_DLL_DEFS="-DOCTINTERP_DLL" | |
7825
13871b7de124
Import sources for OpenGL-based renderer.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
7789
diff
changeset
|
1175 OCTGRAPHICS_DLL_DEFS="-DOCTGRAPHICS_DLL" |
9229
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
9189
diff
changeset
|
1176 SCRIPTS_EXE_SUFFIX='$(EXEEXT)' |
6051 | 1177 ;; |
3740 | 1178 *-*-linux* | *-*-gnu*) |
4906 | 1179 MKOCTFILE_DL_LDFLAGS="-shared -Wl,-Bsymbolic" |
4283 | 1180 SONAME_FLAGS='-Wl,-soname -Wl,$@' |
1181 RLD_FLAG='-Wl,-rpath -Wl,$(octlibdir)' | |
2813 | 1182 ;; |
3887 | 1183 i[[3456]]86-*-sco3.2v5*) |
4283 | 1184 SONAME_FLAGS='-Wl,-h -Wl,$@' |
3705 | 1185 RLD_FLAG= |
3160 | 1186 SH_LDFLAGS=-G |
1187 ;; | |
2813 | 1188 rs6000-ibm-aix* | powerpc-ibm-aix*) |
1189 CPICFLAG= | |
1190 CXXPICFLAG= | |
1191 FPICFLAG= | |
9172
cd68431b395a
configure.in: shared library fixes for AIX and HPUX
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9171
diff
changeset
|
1192 library_path_var=LIBPATH |
2813 | 1193 ;; |
1194 hppa*-hp-hpux*) | |
3887 | 1195 if test "$ac_cv_f77_compiler_gnu" = yes; then |
2813 | 1196 FPICFLAG=-fPIC |
1197 else | |
1198 FPICFLAG=+Z | |
1199 fi | |
1200 SHLEXT=sl | |
1201 SH_LDFLAGS="-shared -fPIC" | |
4283 | 1202 RLD_FLAG='-Wl,+b -Wl,$(octlibdir)' |
9172
cd68431b395a
configure.in: shared library fixes for AIX and HPUX
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9171
diff
changeset
|
1203 library_path_var=SHLIB_PATH |
cd68431b395a
configure.in: shared library fixes for AIX and HPUX
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9171
diff
changeset
|
1204 ;; |
cd68431b395a
configure.in: shared library fixes for AIX and HPUX
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9171
diff
changeset
|
1205 ia64*-hp-hpux*) |
cd68431b395a
configure.in: shared library fixes for AIX and HPUX
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9171
diff
changeset
|
1206 if test "$ac_cv_f77_compiler_gnu" = yes; then |
cd68431b395a
configure.in: shared library fixes for AIX and HPUX
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9171
diff
changeset
|
1207 FPICFLAG=-fPIC |
cd68431b395a
configure.in: shared library fixes for AIX and HPUX
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9171
diff
changeset
|
1208 else |
cd68431b395a
configure.in: shared library fixes for AIX and HPUX
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9171
diff
changeset
|
1209 FPICFLAG=+Z |
cd68431b395a
configure.in: shared library fixes for AIX and HPUX
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9171
diff
changeset
|
1210 fi |
cd68431b395a
configure.in: shared library fixes for AIX and HPUX
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9171
diff
changeset
|
1211 SH_LDFLAGS="-shared -fPIC" |
cd68431b395a
configure.in: shared library fixes for AIX and HPUX
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9171
diff
changeset
|
1212 RLD_FLAG='-Wl,+b -Wl,$(octlibdir)' |
2813 | 1213 ;; |
1214 *-sgi-*) | |
1215 CPICFLAG= | |
1216 CXXPICFLAG= | |
1217 FPICFLAG= | |
4353 | 1218 RLD_FLAG='-rpath $(octlibdir)' |
2813 | 1219 ;; |
1220 sparc-sun-sunos4*) | |
3887 | 1221 if test "$ac_cv_f77_compiler_gnu" = yes; then |
2813 | 1222 FPICFLAG=-fPIC |
1223 else | |
1224 FPICFLAG=-PIC | |
1225 fi | |
3059 | 1226 SH_LD=ld |
1227 SH_LDFLAGS="-assert nodefinitions" | |
3162 | 1228 RLD_FLAG='-L$(octlibdir)' |
2813 | 1229 ;; |
3606 | 1230 sparc-sun-solaris2* | i386-pc-solaris2*) |
3887 | 1231 if test "$ac_cv_f77_compiler_gnu" = yes; then |
2813 | 1232 FPICFLAG=-fPIC |
1233 else | |
3775 | 1234 FPICFLAG=-KPIC |
1235 fi | |
1236 if test "$GCC" = yes; then | |
1237 CPICFLAG=-fPIC | |
1238 else | |
1239 CPICFLAG=-KPIC | |
2813 | 1240 fi |
3775 | 1241 if test "$GXX" = yes; then |
1242 CXXPICFLAG=-fPIC | |
1243 SH_LDFLAGS=-shared | |
1244 else | |
1245 CXXPICFLAG=-KPIC | |
1246 SH_LDFLAGS=-G | |
1247 fi | |
1248 RLD_FLAG='-R $(octlibdir)' | |
6087 | 1249 ## Template closures in archive libraries need a different mechanism. |
3820 | 1250 if test "$GXX" = yes; then |
3775 | 1251 true |
1252 else | |
4323 | 1253 TEMPLATE_AR='$(CXX)' |
3775 | 1254 TEMPLATE_ARFLAGS="-xar -o" |
1255 fi | |
2813 | 1256 ;; |
1257 esac | |
1258 | |
1259 if $use_rpath; then | |
4353 | 1260 if test -n "$enable_rpath_arg"; then |
1261 RLD_FLAG="$enable_rpath_arg" | |
1262 fi | |
2813 | 1263 else |
4353 | 1264 RLD_FLAG="" |
2813 | 1265 fi |
1266 | |
5844 | 1267 AC_MSG_NOTICE([defining FPICFLAG to be $FPICFLAG]) |
1268 AC_MSG_NOTICE([defining CPICFLAG to be $CPICFLAG]) | |
1269 AC_MSG_NOTICE([defining CXXPICFLAG to be $CXXPICFLAG]) | |
1270 AC_MSG_NOTICE([defining SHLEXT to be $SHLEXT]) | |
1271 AC_MSG_NOTICE([defining SHLLIB to be $SHLLIB]) | |
1272 AC_MSG_NOTICE([defining SHLBIN to be $SHLBIN]) | |
1273 AC_MSG_NOTICE([defining SHLEXT_VER to be $SHLEXT_VER]) | |
1274 AC_MSG_NOTICE([defining SHLLIB_VER to be $SHLLIB_VER]) | |
1275 AC_MSG_NOTICE([defining SHLBIN_VER to be $SHLBIN_VER]) | |
1276 AC_MSG_NOTICE([defining SHLLINKEXT to be $SHLLINKEXT]) | |
6051 | 1277 AC_MSG_NOTICE([defining LIBPRE to be $LIBPRE]) |
9186
49a0c58a7dcf
Added SHLPRE for SHLEXT instead of SHLLIBPRE
marco_atzeri@yahoo.it
parents:
9178
diff
changeset
|
1278 AC_MSG_NOTICE([defining SHLPRE to be $SHLPRE]) |
9189
8a348e4be8bb
repair damage done when applying changeset 49a0c58a7dcf
John W. Eaton <jwe@octave.org>
parents:
9187
diff
changeset
|
1279 AC_MSG_NOTICE([defining SHLLIBPRE to be $SHLLIBPRE]) |
8618
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8607
diff
changeset
|
1280 AC_MSG_NOTICE([defining SHLBINPRE to be $SHLBINPRE]) |
5844 | 1281 AC_MSG_NOTICE([defining SH_LD to be $SH_LD]) |
1282 AC_MSG_NOTICE([defining SH_LDFLAGS to be $SH_LDFLAGS]) | |
1283 AC_MSG_NOTICE([defining DL_LD to be $DL_LD]) | |
1284 AC_MSG_NOTICE([defining DL_LDFLAGS to be $DL_LDFLAGS]) | |
1285 AC_MSG_NOTICE([defining MKOCTFILE_DL_LDFLAGS to be $MKOCTFILE_DL_LDFLAGS]) | |
1286 AC_MSG_NOTICE([defining SONAME_FLAGS to be $SONAME_FLAGS]) | |
1287 AC_MSG_NOTICE([defining NO_OCT_FILE_STRIP to be $NO_OCT_FILE_STRIP]) | |
1288 AC_MSG_NOTICE([defining RLD_FLAG to be $RLD_FLAG]) | |
1289 AC_MSG_NOTICE([defining TEMPLATE_AR to be $TEMPLATE_AR]) | |
1290 AC_MSG_NOTICE([defining TEMPLATE_ARFLAGS to be $TEMPLATE_ARFLAGS]) | |
6137 | 1291 AC_MSG_NOTICE([defining CRUFT_DLL_DEFS to be $CRUFT_DLL_DEFS]) |
1292 AC_MSG_NOTICE([defining OCTAVE_DLL_DEFS to be $OCTAVE_DLL_DEFS]) | |
1293 AC_MSG_NOTICE([defining OCTINTERP_DLL_DEFS to be $OCTINTERP_DLL_DEFS]) | |
7825
13871b7de124
Import sources for OpenGL-based renderer.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
7789
diff
changeset
|
1294 AC_MSG_NOTICE([defining OCTGRAPHICS_DLL_DEFS to be $OCTGRAPHICS_DLL_DEFS]) |
5844 | 1295 AC_MSG_NOTICE([defining library_path_var to be $library_path_var]) |
2813 | 1296 AC_SUBST(FPICFLAG) |
1297 AC_SUBST(CPICFLAG) | |
1298 AC_SUBST(CXXPICFLAG) | |
1299 AC_SUBST(SHLEXT) | |
4102 | 1300 AC_SUBST(SHLLIB) |
1301 AC_SUBST(SHLBIN) | |
4126 | 1302 AC_SUBST(SHLEXT_VER) |
1303 AC_SUBST(SHLLIB_VER) | |
1304 AC_SUBST(SHLBIN_VER) | |
1305 AC_SUBST(SHLLINKEXT) | |
6051 | 1306 AC_SUBST(LIBPRE) |
9186
49a0c58a7dcf
Added SHLPRE for SHLEXT instead of SHLLIBPRE
marco_atzeri@yahoo.it
parents:
9178
diff
changeset
|
1307 AC_SUBST(SHLPRE) |
9189
8a348e4be8bb
repair damage done when applying changeset 49a0c58a7dcf
John W. Eaton <jwe@octave.org>
parents:
9187
diff
changeset
|
1308 AC_SUBST(SHLLIBPRE) |
8618
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8607
diff
changeset
|
1309 AC_SUBST(SHLBINPRE) |
2813 | 1310 AC_SUBST(SH_LD) |
1311 AC_SUBST(SH_LDFLAGS) | |
4759 | 1312 AC_SUBST(DL_LD) |
1313 AC_SUBST(DL_LDFLAGS) | |
1314 AC_SUBST(MKOCTFILE_DL_LDFLAGS) | |
3036 | 1315 AC_SUBST(SONAME_FLAGS) |
4199 | 1316 AC_SUBST(NO_OCT_FILE_STRIP) |
2813 | 1317 AC_SUBST(RLD_FLAG) |
3775 | 1318 AC_SUBST(TEMPLATE_AR) |
1319 AC_SUBST(TEMPLATE_ARFLAGS) | |
6141 | 1320 AC_SUBST(CRUFT_DLL_DEFS) |
1321 AC_SUBST(OCTAVE_DLL_DEFS) | |
1322 AC_SUBST(OCTINTERP_DLL_DEFS) | |
7825
13871b7de124
Import sources for OpenGL-based renderer.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
7789
diff
changeset
|
1323 AC_SUBST(OCTGRAPHICS_DLL_DEFS) |
4104 | 1324 AC_SUBST(library_path_var) |
9613
16907d1153d1
attempt to fix LD_PRELOAD for Cygwin
John W. Eaton <jwe@octave.org>
parents:
9610
diff
changeset
|
1325 AC_SUBST(ldpreloadsep) |
9229
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
9189
diff
changeset
|
1326 AC_SUBST(SCRIPTS_EXE_SUFFIX) |
4102 | 1327 |
2813 | 1328 ### special checks for odd OS specific things. |
1329 ### | |
1330 ### I am told that on some SCO systems, the only place to find some | |
1331 ### functions like gethostname and gettimeofday is in libsocket. | |
1332 | |
3887 | 1333 AC_CHECK_FUNCS(gethostname, [], [AC_CHECK_LIB(socket, gethostname)]) |
1334 AC_CHECK_FUNCS(getpwnam, [], [AC_CHECK_LIB(sun, getpwnam)]) | |
2813 | 1335 |
4388 | 1336 case "$canonical_host_type" in |
6704 | 1337 *-*-cygwin*) |
4388 | 1338 AC_CHECK_LIB(wsock32, gethostname) |
5451 | 1339 LIBS="$LIBS -lwsock32" |
4388 | 1340 ;; |
6704 | 1341 *-*-msdosmsvc* | *-*-mingw*) |
9231
8a5a04b6c46b
Fixes confgure script for QHULL detection and add dependency on user32 [Win32]
Michael Goffioul <michael.goffioul@gmail.com>
parents:
9229
diff
changeset
|
1342 LIBS="$LIBS -lgdi32 -lws2_32 -luser32 -lkernel32" |
6091 | 1343 ;; |
4388 | 1344 esac |
1345 | |
4353 | 1346 ### Type stuff. |
1347 | |
1348 AC_TYPE_MODE_T | |
1349 AC_TYPE_OFF_T | |
1350 AC_TYPE_PID_T | |
1351 AC_TYPE_SIZE_T | |
1352 AC_TYPE_UID_T | |
1353 AC_CHECK_TYPES([dev_t, ino_t, nlink_t, nlink_t]) | |
1354 AC_CHECK_TYPES([long long int, unsigned long long int]) | |
7237 | 1355 AC_CHECK_TYPES([sigset_t, sig_atomic_t], , , [ |
1356 #if defined (HAVE_SYS_TYPES_H) | |
1357 #include <sys/types.h> | |
1358 #endif | |
1359 #include <signal.h>]) | |
4353 | 1360 |
2813 | 1361 ### How big are ints and how are they oriented? These could probably |
1362 ### be eliminated in favor of run-time checks. | |
1363 | |
3888 | 1364 AC_CHECK_SIZEOF(short) |
1365 AC_CHECK_SIZEOF(int) | |
1366 AC_CHECK_SIZEOF(long) | |
1367 AC_CHECK_SIZEOF(long long) | |
2813 | 1368 |
1369 ### Does the C compiler handle alloca() and const correctly? | |
1370 | |
4602 | 1371 AC_FUNC_ALLOCA |
2813 | 1372 AC_C_CONST |
1373 | |
4360 | 1374 ### See if we should use placement delete. |
1375 | |
1376 OCTAVE_PLACEMENT_DELETE | |
1377 | |
4366 | 1378 ### See if we can auto allocate variable sized arrays. |
1379 | |
1380 OCTAVE_DYNAMIC_AUTO_ARRAYS | |
1381 | |
8169
66bc6f9b4f72
rewrite integer arithmetics and conversions
Jaroslav Hajek <highegg@gmail.com>
parents:
8019
diff
changeset
|
1382 ### See if we can use fast integer arithmetics |
66bc6f9b4f72
rewrite integer arithmetics and conversions
Jaroslav Hajek <highegg@gmail.com>
parents:
8019
diff
changeset
|
1383 |
66bc6f9b4f72
rewrite integer arithmetics and conversions
Jaroslav Hajek <highegg@gmail.com>
parents:
8019
diff
changeset
|
1384 OCTAVE_FAST_INT_OPS |
66bc6f9b4f72
rewrite integer arithmetics and conversions
Jaroslav Hajek <highegg@gmail.com>
parents:
8019
diff
changeset
|
1385 |
8185
69c5cce38c29
implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents:
8169
diff
changeset
|
1386 ### Check for long double type (for 64-bit integers) |
69c5cce38c29
implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents:
8169
diff
changeset
|
1387 |
69c5cce38c29
implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents:
8169
diff
changeset
|
1388 AC_CHECK_SIZEOF(long double) |
69c5cce38c29
implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents:
8169
diff
changeset
|
1389 |
869 | 1390 ### Checks for header files. |
1391 | |
832 | 1392 AC_HEADER_STDC |
1393 AC_HEADER_DIRENT | |
1377 | 1394 AC_HEADER_TIME |
1395 AC_HEADER_SYS_WAIT | |
2097 | 1396 |
4051 | 1397 ### C headers |
1398 | |
4067 | 1399 AC_CHECK_HEADERS(assert.h curses.h direct.h dlfcn.h fcntl.h float.h \ |
5990 | 1400 floatingpoint.h grp.h ieeefp.h inttypes.h limits.h locale.h memory.h nan.h \ |
7934 | 1401 ncurses.h poll.h pthread.h pwd.h stdint.h stdlib.h string.h sunmath.h sys/ioctl.h \ |
3308 | 1402 sys/param.h sys/poll.h sys/resource.h sys/select.h sys/stat.h \ |
6694 | 1403 sys/time.h sys/times.h sys/types.h sys/utsname.h sys/utime.h termcap.h \ |
1404 unistd.h utime.h varargs.h) | |
3887 | 1405 |
4051 | 1406 ### C++ headers |
1407 | |
1408 AC_LANG_PUSH(C++) | |
1409 AC_CHECK_HEADERS(sstream) | |
1410 AC_LANG_POP(C++) | |
1411 | |
3887 | 1412 have_termios_h=no |
9259
75c502937d2c
Fix typo for termios.h
Thomas Weber <thomas.weber.mail at gmail.com>
parents:
9254
diff
changeset
|
1413 AC_CHECK_HEADERS(termios.h, have_termios_h=yes) |
3887 | 1414 AC_CHECK_HEADERS(termio.h, have_termio_h=yes, have_termio_h=no) |
1415 AC_CHECK_HEADERS(sgtty.h, have_sgtty_h=yes, have_sgtty_h=no) | |
5451 | 1416 AC_CHECK_HEADERS(glob.h, have_glob_h=yes, have_glob_h=no) |
1417 AC_CHECK_HEADERS(fnmatch.h, have_fnmatch_h=yes, have_fnmatch_h=no) | |
4067 | 1418 AC_CHECK_HEADERS(conio.h, have_conio_h=yes, have_conio_h=no) |
3249 | 1419 |
3225 | 1420 ### I'm told that termios.h is broken on NeXT systems. |
1421 | |
1422 case "$canonical_host_type" in | |
1423 *-*-nextstep*) | |
3887 | 1424 if test "$have_termios_h" = yes; then |
3249 | 1425 AC_MSG_WARN([Ignoring termios.h on NeXT systems.]) |
3887 | 1426 have_termios_h=no |
3249 | 1427 fi |
3225 | 1428 ;; |
1429 esac | |
1430 | |
3887 | 1431 if test "$have_termios_h" = yes \ |
1432 || test "$have_termio_h" = yes \ | |
1433 || test "$have_sgtty_h" = yes; then | |
832 | 1434 true |
1435 else | |
4064 | 1436 AC_MSG_WARN([I couldn't find termios.h, termio.h, or sgtty.h!]) |
832 | 1437 fi |
869 | 1438 |
5451 | 1439 LIBGLOB= |
1440 AC_SUBST(LIBGLOB) | |
1441 if test "$have_fnmatch_h" = yes && test "$have_glob_h" = yes; then | |
1442 AC_CHECK_FUNCS(fnmatch, have_fnmatch=yes, [ | |
1443 AC_CHECK_LIB(glob, fnmatch, [have_fnmatch=yes; LIBGLOB=-lglob], | |
1444 have_fnmatch=no)]) | |
1445 AC_CHECK_FUNCS(glob, have_glob=yes, [ | |
1446 AC_CHECK_LIB(glob, glob, [have_glob=yes; LIBGLOB=-lglob], | |
1447 have_glob=no)]) | |
1448 | |
1449 if test "$have_fnmatch" != yes || test "$have_glob" != yes; then | |
1450 AC_MSG_ERROR([You are required to have fnmatch and glob]) | |
1451 fi | |
1452 else | |
1453 AC_MSG_ERROR([You are required to have fnmatch.h and glob.h]) | |
1454 fi | |
1455 | |
1788 | 1456 ### Checks for functions and variables. |
869 | 1457 |
7638
2df457529cfa
implement expm1 and log1p functions
Jaroslav Hajek <highegg@gmail.com>
parents:
7636
diff
changeset
|
1458 AC_CHECK_FUNCS(atexit basename bcopy bzero canonicalize_file_name \ |
8549 | 1459 chmod dup2 endgrent endpwent execvp expm1 expm1f fcntl fork fstat getcwd \ |
7638
2df457529cfa
implement expm1 and log1p functions
Jaroslav Hajek <highegg@gmail.com>
parents:
7636
diff
changeset
|
1460 getegid geteuid getgid getgrent getgrgid getgrnam getpgrp getpid \ |
2df457529cfa
implement expm1 and log1p functions
Jaroslav Hajek <highegg@gmail.com>
parents:
7636
diff
changeset
|
1461 getppid getpwent getpwuid gettimeofday getuid getwd _kbhit kill \ |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7683
diff
changeset
|
1462 lgamma lgammaf lgamma_r lgammaf_r link localtime_r log1p log1pf lstat \ |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7683
diff
changeset
|
1463 memmove mkdir mkfifo mkstemp on_exit pipe poll putenv raise readlink \ |
9171
7500cfff4728
configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9091
diff
changeset
|
1464 realpath rename resolvepath rindex rmdir roundl select setgrent setlocale \ |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7683
diff
changeset
|
1465 setpwent setvbuf sigaction siglongjmp sigpending sigprocmask sigsuspend \ |
7638
2df457529cfa
implement expm1 and log1p functions
Jaroslav Hajek <highegg@gmail.com>
parents:
7636
diff
changeset
|
1466 snprintf stat strcasecmp strdup strerror stricmp strncasecmp \ |
9171
7500cfff4728
configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9091
diff
changeset
|
1467 strnicmp strptime strsignal symlink tempnam tgammaf trunc umask \ |
6694 | 1468 uname unlink usleep utime vfprintf vsprintf vsnprintf waitpid \ |
6829 | 1469 _chmod _snprintf x_utime _utime32) |
1300 | 1470 |
9171
7500cfff4728
configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9091
diff
changeset
|
1471 AC_LANG_PUSH(C++) |
7500cfff4728
configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9091
diff
changeset
|
1472 AC_CHECK_DECLS([exp2, round, tgamma], [], [], [[#include <cmath>]]) |
7500cfff4728
configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9091
diff
changeset
|
1473 AC_CHECK_FUNCS([exp2 round tgamma]) |
7500cfff4728
configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9091
diff
changeset
|
1474 AH_VERBATIM([Z_FUNCS_AND_DECLS], [ |
7500cfff4728
configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9091
diff
changeset
|
1475 #if defined (__cplusplus) |
7500cfff4728
configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9091
diff
changeset
|
1476 extern "C" { |
7500cfff4728
configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9091
diff
changeset
|
1477 #endif |
7500cfff4728
configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9091
diff
changeset
|
1478 #if HAVE_EXP2 && ! HAVE_DECL_EXP2 |
7500cfff4728
configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9091
diff
changeset
|
1479 double exp2 (double ); |
7500cfff4728
configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9091
diff
changeset
|
1480 #endif |
7500cfff4728
configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9091
diff
changeset
|
1481 #if HAVE_ROUND && ! HAVE_DECL_ROUND |
7500cfff4728
configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9091
diff
changeset
|
1482 double round (double); |
7500cfff4728
configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9091
diff
changeset
|
1483 #endif |
7500cfff4728
configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9091
diff
changeset
|
1484 #if HAVE_TGAMMA && ! HAVE_DECL_TGAMMA |
7500cfff4728
configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9091
diff
changeset
|
1485 double tgamma (double); |
7500cfff4728
configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9091
diff
changeset
|
1486 #endif |
7500cfff4728
configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9091
diff
changeset
|
1487 #if defined (__cplusplus) |
7500cfff4728
configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9091
diff
changeset
|
1488 } |
7500cfff4728
configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9091
diff
changeset
|
1489 #endif |
7500cfff4728
configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9091
diff
changeset
|
1490 ]) |
7500cfff4728
configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9091
diff
changeset
|
1491 AC_LANG_POP(C++) |
7500cfff4728
configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9091
diff
changeset
|
1492 |
6094 | 1493 case "$canonical_host_type" in |
8792
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
1494 *-*-mingw*) |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
1495 ## MinGW does not provide a mkstemp function. However, it provides |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
1496 ## the mkstemps function in libiberty. |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
1497 AC_MSG_CHECKING(for mkstemps in libiberty) |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
1498 save_LIBS="$LIBS" |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
1499 LIBS="-liberty $LIBS" |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
1500 AC_LINK_IFELSE([ |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
1501 AC_LANG_PROGRAM([[int mkstemps (char *pattern, int suffix_len);]], |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
1502 [[mkstemps ("XXXXXX", 0);]] |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
1503 )], |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
1504 [AC_MSG_RESULT(yes) |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
1505 HAVE_MKSTEMPS=yes |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
1506 AC_DEFINE(HAVE_MKSTEMPS, 1, [Define if mkstemps is available in libiberty.]) |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
1507 ], |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
1508 [AC_MSG_RESULT(no) |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
1509 HAVE_MKSTEMPS=no |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
1510 LIBS="$save_LIBS" |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
1511 ]) |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
1512 ;; |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
1513 esac |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
1514 |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
1515 case "$canonical_host_type" in |
9424
69d05d1a63b9
configure.in: don't use system strftime on MinGW systems
John W. Eaton <jwe@octave.org>
parents:
9403
diff
changeset
|
1516 *-*-msdosmsvc | *-*-mingw*) |
69d05d1a63b9
configure.in: don't use system strftime on MinGW systems
John W. Eaton <jwe@octave.org>
parents:
9403
diff
changeset
|
1517 ## The %T and %e format specifiers for strftime are not implemented |
6094 | 1518 ## so use our version. We could use an actual configure test |
1519 ## for this. | |
1520 ;; | |
1521 *) | |
1522 AC_CHECK_FUNCS(strftime) | |
1523 ;; | |
1524 esac | |
1525 | |
9173
224634b2e6e3
configure.in, aclocal.m4: check for c99 vsnprintf
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9172
diff
changeset
|
1526 OCTAVE_HAVE_C99_VSNPRINTF |
7058 | 1527 OCTAVE_STRPTIME_BROKEN |
1708 | 1528 OCTAVE_SMART_PUTENV |
1529 | |
6103 | 1530 case "$canonical_host_type" in |
6704 | 1531 *-*-msdosmsvc | *-*-mingw*) |
6103 | 1532 AC_MSG_CHECKING([for required _WIN32_WINNT]) |
1533 AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[ | |
1534 #include <windows.h> | |
1535 #if _WIN32_WINNT < 0x0403 | |
1536 #error "Wrong version" | |
1537 #endif]], []), | |
1538 AC_MSG_RESULT([none]), [ | |
1539 AC_DEFINE(_WIN32_WINNT, 0x0403, [Define to 0x0403 to access InitializeCriticalSectionAndSpinCount]) | |
1540 AC_MSG_RESULT([0x0403])]) | |
1541 AC_MSG_CHECKING([whether _USE_MATH_DEFINES needs to be defined]) | |
1542 AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[#include <math.h>]], | |
1543 [[int x = M_LN2;]]), | |
1544 AC_MSG_RESULT([no]), [ | |
1545 AC_DEFINE(_USE_MATH_DEFINES, 1, [Define if your system needs it to define math constants like M_LN2]) | |
1546 AC_MSG_RESULT([yes])]) | |
1547 ;; | |
1548 esac | |
1549 | |
4110 | 1550 ### Dynamic linking is now enabled only if we are building shared |
1551 ### libs and some API for dynamic linking is detected. | |
1552 | |
3705 | 1553 LD_CXX='$(CXX)' |
3232 | 1554 RDYNAMIC_FLAG= |
4110 | 1555 DL_API_MSG="" |
1556 dlopen_api=false | |
1557 shl_load_api=false | |
1558 loadlibrary_api=false | |
4163 | 1559 dyld_api=false |
4110 | 1560 |
4163 | 1561 if $SHARED_LIBS || $ENABLE_DYNAMIC_LINKING; then |
1562 | |
6087 | 1563 ## Check for dyld first since OS X can have a non-standard libdl |
4110 | 1564 |
9515 | 1565 save_LIBS="$LIBS" |
1566 AC_CHECK_HEADER(mach-o/dyld.h) | |
5717 | 1567 if test "$ac_cv_header_mach_o_dyld_h" = yes; then |
4163 | 1568 dyld_api=true |
1569 else | |
9515 | 1570 AC_CHECK_LIB(dld, shl_load, [DL_LIBS=-ldld; LIBS="$LIBS $DL_LIBS"]) |
4189 | 1571 AC_CHECK_FUNCS(shl_load shl_findsym) |
4201 | 1572 if test "$ac_cv_func_shl_load" = yes \ |
1573 && test "$ac_cv_func_shl_findsym" = yes; then | |
4189 | 1574 shl_load_api=true |
4110 | 1575 else |
9515 | 1576 AC_CHECK_LIB(wsock32, LoadLibrary, [ |
1577 DL_LIBS=-lwsock32; LIBS="$LIBS $DL_LIBS"]) | |
4189 | 1578 AC_CHECK_FUNCS(LoadLibrary) |
4201 | 1579 if test "$ac_cv_func_loadlibrary" = yes; then |
4189 | 1580 loadlibrary_api=true |
2063 | 1581 else |
9515 | 1582 AC_CHECK_LIB(dl, dlopen, [DL_LIBS=-ldl; LIBS="$LIBS $DL_LIBS"]) |
4189 | 1583 AC_CHECK_FUNCS(dlopen dlsym dlerror dlclose) |
4201 | 1584 if test "$ac_cv_func_dlclose" = yes \ |
1585 && test "$ac_cv_func_dlerror" = yes \ | |
1586 && test "$ac_cv_func_dlopen" = yes \ | |
1587 && test "$ac_cv_func_dlsym" = yes; then | |
4189 | 1588 dlopen_api=true |
1589 else | |
4163 | 1590 case "$canonical_host_type" in |
1591 i[[3456]]86-*-sco3.2v5*) | |
1592 LD_CXX='LD_RUN_PATH=$LD_RUN_PATH:$(octlibdir) $(CXX)' | |
1593 dlopen_api=true | |
1594 ;; | |
1595 esac | |
1596 fi | |
2063 | 1597 fi |
4110 | 1598 fi |
1599 fi | |
9515 | 1600 LIBS="$save_LIBS" |
1601 AC_SUBST(DL_LIBS) | |
4110 | 1602 |
5451 | 1603 ## autoconf test for LoadLibrary appears broken. Bypass for cygwin/mingw |
6286 | 1604 if $dlopen_api || $shl_load_api || $loadlibrary_api || $dyld_api; then |
1605 true | |
1606 else | |
5451 | 1607 case "$canonical_host_type" in |
6091 | 1608 *-*-cygwin* | *-*-mingw* | *-*-msdosmsvc) |
5451 | 1609 loadlibrary_api=true; |
1610 ;; | |
1611 esac | |
1612 fi | |
1613 | |
4110 | 1614 if $dlopen_api; then |
1615 DL_API_MSG="(dlopen)" | |
1616 AC_DEFINE(HAVE_DLOPEN_API, 1, [Define if your system has dlopen, dlsym, dlerror, and dlclose for dynamic linking]) | |
3958 | 1617 OCTAVE_CXX_FLAG(-rdynamic, [RDYNAMIC_FLAG=-rdynamic]) |
4110 | 1618 elif $shl_load_api; then |
1619 DL_API_MSG="(shl_load)" | |
1620 AC_DEFINE(HAVE_SHL_LOAD_API, 1, [Define if your system has shl_load and shl_findsym for dynamic linking]) | |
1621 elif $loadlibrary_api; then | |
1622 DL_API_MSG="(LoadLibrary)" | |
1623 AC_DEFINE(HAVE_LOADLIBRARY_API, 1, [Define if your system has LoadLibrary for dynamic linking]) | |
4163 | 1624 elif $dyld_api; then |
1625 DL_API_MSG="(dyld)" | |
1626 AC_DEFINE(HAVE_DYLD_API, 1, [Define if your system has dyld for dynamic linking]) | |
4110 | 1627 fi |
1628 | |
4163 | 1629 if $dlopen_api || $shl_load_api || $loadlibrary_api || $dyld_api; then |
4128 | 1630 ENABLE_DYNAMIC_LINKING=true |
1631 AC_DEFINE(ENABLE_DYNAMIC_LINKING, 1, [Define if using dynamic linking]) | |
1978 | 1632 fi |
4163 | 1633 fi |
1634 | |
1635 if $SHARED_LIBS; then | |
1636 LIBOCTINTERP=-loctinterp$SHLLINKEXT | |
1637 LIBOCTAVE=-loctave$SHLLINKEXT | |
1638 LIBCRUFT=-lcruft$SHLLINKEXT | |
1978 | 1639 else |
4110 | 1640 LIBOCTINTERP='$(TOPDIR)/src/liboctinterp.$(LIBEXT)' |
1641 LIBOCTAVE='$(TOPDIR)/liboctave/liboctave.$(LIBEXT)' | |
1642 LIBCRUFT='$(TOPDIR)/libcruft/libcruft.$(LIBEXT)' | |
1664 | 1643 fi |
4163 | 1644 |
4110 | 1645 AC_SUBST(LD_CXX) |
3232 | 1646 AC_SUBST(RDYNAMIC_FLAG) |
4128 | 1647 AC_SUBST(ENABLE_DYNAMIC_LINKING) |
4110 | 1648 AC_SUBST(LIBOCTINTERP) |
1649 AC_SUBST(LIBOCTAVE) | |
1650 AC_SUBST(LIBCRUFT) | |
1901 | 1651 |
1300 | 1652 ### There is more than one possible prototype for gettimeofday. See |
2782 | 1653 ### which one (if any) appears in sys/time.h. These tests are from |
1654 ### Emacs 19. | |
1300 | 1655 |
2782 | 1656 AC_MSG_CHECKING(for struct timeval) |
5844 | 1657 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifdef TIME_WITH_SYS_TIME |
2782 | 1658 #include <sys/time.h> |
1659 #include <time.h> | |
1660 #else | |
1661 #ifdef HAVE_SYS_TIME_H | |
1662 #include <sys/time.h> | |
1663 #else | |
1664 #include <time.h> | |
1665 #endif | |
5844 | 1666 #endif]], [[static struct timeval x; x.tv_sec = x.tv_usec;]])], |
2782 | 1667 [AC_MSG_RESULT(yes) |
1668 HAVE_TIMEVAL=yes | |
3887 | 1669 AC_DEFINE(HAVE_TIMEVAL, 1, [Define if struct timeval is defined.])], |
2782 | 1670 [AC_MSG_RESULT(no) |
1671 HAVE_TIMEVAL=no]) | |
1672 | |
1673 if test "x$HAVE_TIMEVAL" = xyes; then | |
1674 AC_MSG_CHECKING(whether gettimeofday can't accept two arguments) | |
5842 | 1675 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#ifdef TIME_WITH_SYS_TIME |
2782 | 1676 #include <sys/time.h> |
1677 #include <time.h> | |
1678 #else | |
1679 #ifdef HAVE_SYS_TIME_H | |
1680 #include <sys/time.h> | |
1681 #else | |
1682 #include <time.h> | |
1683 #endif | |
5842 | 1684 #endif]], [[struct timeval time; |
1685 struct timezone dummy; | |
1686 gettimeofday (&time, &dummy);]])], | |
1687 [AC_MSG_RESULT(no)], | |
2782 | 1688 [AC_MSG_RESULT(yes) |
5842 | 1689 AC_DEFINE(GETTIMEOFDAY_NO_TZ, 1, |
1690 [Define if your system has a single-arg prototype for gettimeofday.])]) | |
2782 | 1691 fi |
869 | 1692 |
8998
a48fba01e4ac
optimize isnan/isinf/isfinite mappers
Jaroslav Hajek <highegg@gmail.com>
parents:
8940
diff
changeset
|
1693 dnl Maybe <cmath> defines the IEEE functions we need. |
a48fba01e4ac
optimize isnan/isinf/isfinite mappers
Jaroslav Hajek <highegg@gmail.com>
parents:
8940
diff
changeset
|
1694 |
a48fba01e4ac
optimize isnan/isinf/isfinite mappers
Jaroslav Hajek <highegg@gmail.com>
parents:
8940
diff
changeset
|
1695 OCTAVE_CMATH_FUNC(isnan) |
a48fba01e4ac
optimize isnan/isinf/isfinite mappers
Jaroslav Hajek <highegg@gmail.com>
parents:
8940
diff
changeset
|
1696 OCTAVE_CMATH_FUNC(isinf) |
a48fba01e4ac
optimize isnan/isinf/isfinite mappers
Jaroslav Hajek <highegg@gmail.com>
parents:
8940
diff
changeset
|
1697 OCTAVE_CMATH_FUNC(isfinite) |
a48fba01e4ac
optimize isnan/isinf/isfinite mappers
Jaroslav Hajek <highegg@gmail.com>
parents:
8940
diff
changeset
|
1698 |
832 | 1699 dnl Would like to get rid of this cruft, and just have |
1700 dnl | |
1701 dnl AC_CHECK_FUNCS(finite isnan isinf) | |
1702 dnl | |
1703 dnl instead, but that used to fail on some systems... | |
369 | 1704 dnl |
832 | 1705 dnl Also just using AC_CHECK_FUNCS doesn't seem to work to find isinf |
1706 dnl and isnan on Linux systems, so we use AC_CHECK_FUNC, and if that | |
369 | 1707 dnl fails, we try again by including math.h and invoking the function |
1708 dnl with an argument. | |
869 | 1709 |
2508 | 1710 ### I am told that Inf and NaN don't work on m68k HP sytems, and that |
1711 ### on SCO systems, isnan and isinf don't work, but they can be | |
1712 ### replaced by something that does. | |
956 | 1713 |
1714 case "$canonical_host_type" in | |
1384 | 1715 m68k-hp-hpux*) |
956 | 1716 ;; |
2508 | 1717 *-*-sco*) |
5844 | 1718 AC_MSG_NOTICE([defining SCO to be 1]) |
3887 | 1719 AC_DEFINE(SCO, 1, [Define if using an SCO system.]) |
5844 | 1720 AC_MSG_NOTICE([forcing HAVE_ISINF for SCO]) |
3887 | 1721 AC_DEFINE(HAVE_ISINF, 1, [Define if you have isinf().]) |
5844 | 1722 AC_MSG_NOTICE([forcing HAVE_ISNAN for SCO]) |
3887 | 1723 AC_DEFINE(HAVE_ISNAN, 1, [Define if you have isnan().]) |
2508 | 1724 ;; |
956 | 1725 *) |
4349 | 1726 AC_CHECK_FUNCS(finite isnan isinf copysign signbit) |
6061 | 1727 AC_CHECK_FUNCS(_finite _isnan _copysign) |
5098 | 1728 AC_CHECK_DECLS(signbit, , , [#include <math.h>]) |
956 | 1729 ;; |
1730 esac | |
1731 | |
1076 | 1732 ### Check for nonstandard but common math functions that we need. |
1733 | |
9171
7500cfff4728
configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9091
diff
changeset
|
1734 AC_CHECK_FUNCS(acosh acoshf asinh asinhf atanh atanhf erf erff erfc erfcf exp2f log2 log2f) |
7914
e998e81224b5
Various compilation fixes for MSVC.
John W. Eaton <jwe@octave.org>
parents:
7905
diff
changeset
|
1735 AC_CHECK_FUNCS(hypotf _hypotf) |
3130 | 1736 |
869 | 1737 ### Checks for OS specific cruft. |
1738 | |
3887 | 1739 AC_CHECK_MEMBERS([struct stat.st_blksize, struct stat.st_blocks, struct stat.st_rdev]) |
1740 | |
405 | 1741 AC_STRUCT_TM |
1186 | 1742 AC_STRUCT_TIMEZONE |
1388 | 1743 AC_FUNC_CLOSEDIR_VOID |
1225 | 1744 |
3892 | 1745 AC_CHECK_MEMBERS(struct group.gr_passwd) |
2548 | 1746 |
4067 | 1747 # mkdir takes a single argument on some systems. |
1748 OCTAVE_MKDIR_TAKES_ONE_ARG | |
1749 | |
3887 | 1750 octave_found_termlib=no |
2592 | 1751 for termlib in ncurses curses termcap terminfo termlib; do |
9515 | 1752 AC_CHECK_LIB(${termlib}, tputs, [ |
1753 TERM_LIBS="-l${termlib}" | |
1754 octave_found_termlib=yes | |
1755 break]) | |
405 | 1756 done |
869 | 1757 |
3887 | 1758 if test "$octave_found_termlib" = no; then |
1759 warn_termlibs="I couldn't find -ltermcap, -lterminfo, -lncurses, -lcurses, o\ | |
1760 r -ltermlib!" | |
3105 | 1761 AC_MSG_WARN($warn_termlibs) |
2488 | 1762 fi |
9515 | 1763 AC_SUBST(TERM_LIBS) |
2488 | 1764 |
3822 | 1765 OCTAVE_ENABLE_READLINE |
1766 | |
832 | 1767 AC_MSG_CHECKING([for struct exception in math.h]) |
5842 | 1768 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]], |
1769 [[struct exception *x; x->type; x->name;]])], | |
1770 [AC_MSG_RESULT(yes) | |
1771 AC_DEFINE(EXCEPTION_IN_MATH, 1, | |
1772 [Define if your math.h declares struct exception for matherr().])], | |
1773 [AC_MSG_RESULT(no)]) | |
869 | 1774 |
1775 ### Signal stuff. | |
1776 | |
834 | 1777 AC_TYPE_SIGNAL |
5844 | 1778 AC_CHECK_DECLS([sys_siglist], [], [], |
1779 [#include <signal.h> | |
1780 /* NetBSD declares sys_siglist in unistd.h. */ | |
1781 #if HAVE_UNISTD_H | |
1782 # include <unistd.h> | |
1783 #endif | |
1784 ]) | |
2470 | 1785 OCTAVE_SIGNAL_CHECK |
1786 OCTAVE_REINSTALL_SIGHANDLERS | |
6098 | 1787 if test "$ac_cv_type_signal" = "void"; then |
1788 AC_DEFINE(RETSIGTYPE_IS_VOID, 1, [Define if this if RETSIGTYPE is defined to be void. Needed because preprocessor comparisons to void fail on some systems.]) | |
1789 fi | |
869 | 1790 |
2633 | 1791 ### A system dependent kluge or two. |
1792 | |
2035 | 1793 AC_CHECK_FUNCS(getrusage times) |
2427 | 1794 case "$canonical_host_type" in |
3971 | 1795 *-*-cygwin*) |
3887 | 1796 AC_DEFINE(RUSAGE_TIMES_ONLY, 1, [Define if your struct rusage only has time information.]) |
2427 | 1797 ;; |
1798 esac | |
1799 | |
869 | 1800 ### Checks for other programs used for building, testing, installing, |
1801 ### and running Octave. | |
1802 | |
4544 | 1803 AC_PROG_AWK |
7244 | 1804 OCTAVE_PROG_FIND |
4084 | 1805 OCTAVE_PROG_SED |
5465 | 1806 OCTAVE_PROG_PERL |
5496 | 1807 OCTAVE_PROG_PYTHON |
4084 | 1808 |
3729 | 1809 OCTAVE_PROG_FLEX |
1810 OCTAVE_PROG_BISON | |
869 | 1811 |
1722 | 1812 AC_PROG_LN_S |
1813 | |
405 | 1814 AC_PROG_INSTALL |
2642 | 1815 INSTALL_SCRIPT='${INSTALL}' |
1816 AC_SUBST(INSTALL_SCRIPT) | |
869 | 1817 |
5468 | 1818 OCTAVE_PROG_DESKTOP_FILE_INSTALL |
1819 | |
3130 | 1820 OCTAVE_PROG_GNUPLOT |
1821 OCTAVE_PROG_PAGER | |
3673 | 1822 OCTAVE_PROG_GPERF |
3130 | 1823 |
5934 | 1824 OCTAVE_PROG_GHOSTSCRIPT |
1825 OCTAVE_PROG_MAKEINFO | |
1826 OCTAVE_PROG_TEXI2DVI | |
1827 OCTAVE_PROG_TEXI2PDF | |
1828 | |
2032 | 1829 ### Even though we include config.h, we need to have the preprocessor |
1830 ### defines available in a variable for the octave-bug script. Use | |
1831 ### UGLY_DEFS for that. | |
1832 | |
1833 AC_OUTPUT_MAKE_DEFS | |
3956 | 1834 |
6957 | 1835 ### We have to insert extra levels of backslash quoting here so that |
1836 ### the right thing ends up in oct-conf.h. | |
6959 | 1837 UGLY_DEFS=`echo $DEFS | $SED 's,\\",\\\\\\\\\\\\\\\\\\",g'` |
5844 | 1838 AC_MSG_NOTICE([defining UGLY_DEFS to be $UGLY_DEFS]) |
2032 | 1839 AC_SUBST(UGLY_DEFS) |
1840 | |
4645 | 1841 ### Maybe add -Wall, -W, and -Wshadow to compiler flags now that we're |
4587 | 1842 ### done feature testing. |
869 | 1843 |
8938
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1844 try_extra_warning_flags=true |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1845 AC_ARG_ENABLE(extra-warning-flags, |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1846 [AS_HELP_STRING([--enable-extra-warning-flags], |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1847 [add -Wall, -W, -Wshadow, and -Wold-style-cast options to CFLAGS and CXXFLAGS (on by default, but only if the compiler appears to accept them)])], |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1848 [if test "$enableval" = no; then |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1849 try_extra_warning_flags=false |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1850 fi], []) |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1851 |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1852 if $try_extra_warning_flags; then |
4626 | 1853 OCTAVE_CC_FLAG(-Wall, [ |
8938
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1854 WARN_CFLAGS="$WARN_CFLAGS -Wall"; |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1855 AC_MSG_RESULT([adding -Wall to WARN_CFLAGS])]) |
4645 | 1856 OCTAVE_CC_FLAG(-W, [ |
8938
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1857 WARN_CFLAGS="$WARN_CFLAGS -W"; |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1858 AC_MSG_RESULT([adding -W to WARN_CFLAGS])]) |
4626 | 1859 OCTAVE_CC_FLAG(-Wshadow, [ |
8938
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1860 WARN_CFLAGS="$WARN_CFLAGS -Wshadow"; |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1861 AC_MSG_RESULT([adding -Wshadow to WARN_CFLAGS])]) |
9090
298b57a4fec2
configure.in: tweak warning flags
John W. Eaton <jwe@octave.org>
parents:
9054
diff
changeset
|
1862 OCTAVE_CC_FLAG(-Wformat, [ |
298b57a4fec2
configure.in: tweak warning flags
John W. Eaton <jwe@octave.org>
parents:
9054
diff
changeset
|
1863 WARN_CFLAGS="$WARN_CFLAGS -Wformat"; |
298b57a4fec2
configure.in: tweak warning flags
John W. Eaton <jwe@octave.org>
parents:
9054
diff
changeset
|
1864 AC_MSG_RESULT([adding -Wformat to WARN_CFLAGS])]) |
3131 | 1865 |
4626 | 1866 OCTAVE_CXX_FLAG(-Wall, [ |
1867 WARN_CXXFLAGS="$WARN_CXXFLAGS -Wall"; | |
1868 AC_MSG_RESULT([adding -Wall to WARN_CXXFLAGS])]) | |
4645 | 1869 OCTAVE_CXX_FLAG(-W, [ |
1870 WARN_CXXFLAGS="$WARN_CXXFLAGS -W"; | |
1871 AC_MSG_RESULT([adding -W to WARN_CXXFLAGS])]) | |
4626 | 1872 OCTAVE_CXX_FLAG(-Wshadow, [ |
1873 WARN_CXXFLAGS="$WARN_CXXFLAGS -Wshadow"; | |
1874 AC_MSG_RESULT([adding -Wshadow to WARN_CXXFLAGS])]) | |
5759 | 1875 OCTAVE_CXX_FLAG(-Wold-style-cast, [ |
1876 WARN_CXXFLAGS="$WARN_CXXFLAGS -Wold-style-cast"; | |
1877 AC_MSG_RESULT([adding -Wold-style-cast to WARN_CXXFLAGS])]) | |
9090
298b57a4fec2
configure.in: tweak warning flags
John W. Eaton <jwe@octave.org>
parents:
9054
diff
changeset
|
1878 OCTAVE_CXX_FLAG(-Wformat, [ |
298b57a4fec2
configure.in: tweak warning flags
John W. Eaton <jwe@octave.org>
parents:
9054
diff
changeset
|
1879 WARN_CXXFLAGS="$WARN_CXXFLAGS -Wformat"; |
298b57a4fec2
configure.in: tweak warning flags
John W. Eaton <jwe@octave.org>
parents:
9054
diff
changeset
|
1880 AC_MSG_RESULT([adding -Wformat to WARN_CXXFLAGS])]) |
405 | 1881 fi |
869 | 1882 |
9090
298b57a4fec2
configure.in: tweak warning flags
John W. Eaton <jwe@octave.org>
parents:
9054
diff
changeset
|
1883 GCC_STRICT_FLAGS="-Wcast-align -Wcast-qual -Wconversion -Wmissing-prototypes \ |
4971 | 1884 -Wpointer-arith -Wstrict-prototypes -Wwrite-strings" |
2813 | 1885 |
9090
298b57a4fec2
configure.in: tweak warning flags
John W. Eaton <jwe@octave.org>
parents:
9054
diff
changeset
|
1886 GXX_STRICT_FLAGS="-Wcast-align -Wcast-qual -Wconversion -Wpointer-arith \ |
8938
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1887 -Wwrite-strings -Weffc++" |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1888 |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1889 try_strict_warning_flags=false |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1890 |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1891 AC_ARG_ENABLE(strict-warning-flags, |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1892 [AS_HELP_STRING([--enable-strict-warning-flags], |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1893 [add extra strict warning options to CFLAGS and CXXFLAGS (off by default)])], |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1894 [if test "$enableval" = yes; then |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1895 try_strict_warning_flags=true |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1896 fi], []) |
2813 | 1897 |
8938
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1898 if $try_strict_warning_flags; then |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1899 for flag in $GCC_STRICT_FLAGS; do |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1900 OCTAVE_CC_FLAG($flag, [ |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1901 WARN_CFLAGS="$WARN_CFLAGS $flag"; |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1902 AC_MSG_RESULT([adding $flag to WARN_CFLAGS])]) |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1903 done |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1904 for flag in $GXX_STRICT_FLAGS; do |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1905 OCTAVE_CXX_FLAG($flag, [ |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1906 WARN_CXXFLAGS="$WARN_CXXFLAGS $flag"; |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1907 AC_MSG_RESULT([adding $flag to WARN_CXXFLAGS])]) |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1908 done |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1909 fi |
2813 | 1910 |
4626 | 1911 AC_SUBST(WARN_CFLAGS) |
1912 AC_SUBST(WARN_CXXFLAGS) | |
1913 | |
1146 | 1914 ### Run configure in subdirectories. |
1915 | |
1304 | 1916 export CC |
1917 export CXX | |
1918 export F77 | |
1919 | |
4378 | 1920 AC_CONFIG_SUBDIRS(scripts) |
3887 | 1921 |
3923 | 1922 ### Some things to add to the bottom of config.h. |
1923 | |
1924 AH_BOTTOM([ | |
1925 #if defined (__GNUC__) | |
5389 | 1926 #define GCC_ATTR_DEPRECATED __attribute__ ((__deprecated__)) |
3923 | 1927 #define GCC_ATTR_NORETURN __attribute__ ((__noreturn__)) |
1928 #define GCC_ATTR_UNUSED __attribute__ ((__unused__)) | |
1929 #else | |
5389 | 1930 #define GCC_ATTR_DEPRECATED |
3923 | 1931 #define GCC_ATTR_NORETURN |
1932 #define GCC_ATTR_UNUSED | |
1933 #endif | |
1934 | |
1935 #define X_CAST(T, E) (T) (E) | |
1936 | |
5854 | 1937 #if defined (CXX_BROKEN_REINTERPRET_CAST) |
1938 #define FCN_PTR_CAST(T, E) (T) (E) | |
1939 #else | |
1940 #define FCN_PTR_CAST(T, E) reinterpret_cast<T> (E) | |
1941 #endif | |
1942 | |
3923 | 1943 #if !defined(HAVE_DEV_T) |
4064 | 1944 typedef short dev_t; |
3923 | 1945 #endif |
1946 | |
1947 #if !defined(HAVE_INO_T) | |
4064 | 1948 typedef unsigned long ino_t; |
3923 | 1949 #endif |
1950 | |
1951 #if !defined(HAVE_NLINK_T) | |
4064 | 1952 typedef short nlink_t; |
3923 | 1953 #endif |
1954 | |
1955 #if !defined(HAVE_SIGSET_T) | |
4064 | 1956 typedef int sigset_t; |
3923 | 1957 #endif |
4101 | 1958 |
4180 | 1959 #if !defined(HAVE_SIG_ATOMIC_T) |
1960 typedef int sig_atomic_t; | |
1961 #endif | |
1962 | |
6122 | 1963 #if defined (_MSC_VER) |
1964 #define __WIN32__ | |
6276 | 1965 #define WIN32 |
6122 | 1966 /* missing parameters in macros */ |
1967 #pragma warning (disable: 4003) | |
1968 /* missing implementations in template instantiation */ | |
1969 #pragma warning (disable: 4996) | |
1970 /* deprecated function names (FIXME?) */ | |
1971 #pragma warning (disable: 4661) | |
1972 #endif | |
1973 | |
4377 | 1974 #if defined (__WIN32__) && ! defined (__CYGWIN__) |
4101 | 1975 #define OCTAVE_HAVE_WINDOWS_FILESYSTEM 1 |
6049 | 1976 #elif defined (__CYGWIN__) |
4377 | 1977 #define OCTAVE_HAVE_WINDOWS_FILESYSTEM 1 |
1978 #define OCTAVE_HAVE_POSIX_FILESYSTEM 1 | |
6049 | 1979 #else |
1980 #define OCTAVE_HAVE_POSIX_FILESYSTEM 1 | |
4101 | 1981 #endif |
1982 | |
1983 /* Define if we expect to have <windows.h>, Sleep, etc. */ | |
4102 | 1984 #if defined (__WIN32__) && ! defined (__CYGWIN__) |
4101 | 1985 #define OCTAVE_USE_WINDOWS_API 1 |
1986 #endif | |
4153 | 1987 |
8577
ab61b47d3435
configure.in (AH_BOTTOM): Also check __MACH__ when defining OCTAVE_USE_OS_X_API
John W. Eaton <jwe@octave.org>
parents:
8573
diff
changeset
|
1988 #if defined (__APPLE__) && defined (__MACH__) |
8573
da61d0f7ce0b
configure.in (AH_BOTTOM): define OCTAVE_USE_OS_X_API if __APPLE__ is defined
John W. Eaton <jwe@octave.org>
parents:
8562
diff
changeset
|
1989 #define OCTAVE_USE_OS_X_API 1 |
da61d0f7ce0b
configure.in (AH_BOTTOM): define OCTAVE_USE_OS_X_API if __APPLE__ is defined
John W. Eaton <jwe@octave.org>
parents:
8562
diff
changeset
|
1990 #endif |
da61d0f7ce0b
configure.in (AH_BOTTOM): define OCTAVE_USE_OS_X_API if __APPLE__ is defined
John W. Eaton <jwe@octave.org>
parents:
8562
diff
changeset
|
1991 |
4180 | 1992 /* sigsetjmp is a macro, not a function. */ |
1993 #if defined (sigsetjmp) && defined (HAVE_SIGLONGJMP) | |
1994 #define OCTAVE_HAVE_SIG_JUMP | |
1995 #endif | |
4249 | 1996 |
4278 | 1997 #if defined (__DECCXX) |
1998 #define __USE_STD_IOSTREAM | |
1999 #endif | |
4552 | 2000 |
2001 #if defined (_UNICOS) | |
2002 #define F77_USES_CRAY_CALLING_CONVENTION | |
2003 #endif | |
2004 | |
2005 #if 0 | |
2006 #define F77_USES_VISUAL_FORTRAN_CALLING_CONVENTION | |
2007 #endif | |
5275 | 2008 |
5297 | 2009 #ifdef USE_64_BIT_IDX_T |
2010 #define SIZEOF_OCTAVE_IDX_TYPE 8 | |
2011 #else | |
2012 #define SIZEOF_OCTAVE_IDX_TYPE SIZEOF_INT | |
2013 #endif | |
2014 | |
8185
69c5cce38c29
implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents:
8169
diff
changeset
|
2015 // To be able to use long doubles for 64-bit mixed arithmetics, we need them at |
8333 | 2016 // least 80 bits wide and we need roundl declared in math.h. |
2017 // FIXME -- maybe substitute this by a more precise check in the future. | |
8185
69c5cce38c29
implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents:
8169
diff
changeset
|
2018 #if (SIZEOF_LONG_DOUBLE >= 10) && defined (HAVE_ROUNDL) |
69c5cce38c29
implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents:
8169
diff
changeset
|
2019 #define OCTAVE_INT_USE_LONG_DOUBLE |
69c5cce38c29
implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents:
8169
diff
changeset
|
2020 #endif |
69c5cce38c29
implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents:
8169
diff
changeset
|
2021 |
7067 | 2022 #define OCTAVE_EMPTY_CPP_ARG |
2023 | |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2024 // Octave is currently unable to use FFTW unless both float |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2025 // and double versions are both available. |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2026 #if defined (HAVE_FFTW3) && defined (HAVE_FFTW3F) |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2027 #define HAVE_FFTW |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2028 #endif |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2029 |
9610
bb36a5730ecc
configure.in (AH_BOTTOM): If HAVE_Z is defined, define HAVE_ZLIB
John W. Eaton <jwe@octave.org>
parents:
9603
diff
changeset
|
2030 // Backward compatibility. |
bb36a5730ecc
configure.in (AH_BOTTOM): If HAVE_Z is defined, define HAVE_ZLIB
John W. Eaton <jwe@octave.org>
parents:
9603
diff
changeset
|
2031 #if defined (HAVE_Z) |
bb36a5730ecc
configure.in (AH_BOTTOM): If HAVE_Z is defined, define HAVE_ZLIB
John W. Eaton <jwe@octave.org>
parents:
9603
diff
changeset
|
2032 #define HAVE_ZLIB |
bb36a5730ecc
configure.in (AH_BOTTOM): If HAVE_Z is defined, define HAVE_ZLIB
John W. Eaton <jwe@octave.org>
parents:
9603
diff
changeset
|
2033 #endif |
bb36a5730ecc
configure.in (AH_BOTTOM): If HAVE_Z is defined, define HAVE_ZLIB
John W. Eaton <jwe@octave.org>
parents:
9603
diff
changeset
|
2034 |
6121 | 2035 #include "oct-dlldefs.h" |
5275 | 2036 #include "oct-types.h" |
3923 | 2037 ]) |
2038 | |
869 | 2039 ### Do the substitutions in all the Makefiles. |
2040 | |
8850
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
2041 AC_CONFIG_COMMANDS([Makefile], [if test "$ac_srcdir" != "."; then |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
2042 cp $srcdir/Makefile . |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
2043 fi]) |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
2044 |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
2045 AC_SUBST(ac_config_files) |
9645 | 2046 AC_SUBST(ac_config_headers) |
8850
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
2047 |
9645 | 2048 AC_CONFIG_FILES([octMakefile Makeconf m4/Makefile test/Makefile |
7253 | 2049 doc/Makefile doc/faq/Makefile doc/interpreter/Makefile |
2050 doc/liboctave/Makefile doc/refcard/Makefile emacs/Makefile | |
9254
fbb43bc17a4d
add missing Makefile in examples/@FIRfilter
Jaroslav Hajek <highegg@gmail.com>
parents:
9252
diff
changeset
|
2051 examples/Makefile examples/@polynomial/Makefile |
fbb43bc17a4d
add missing Makefile in examples/@FIRfilter
Jaroslav Hajek <highegg@gmail.com>
parents:
9252
diff
changeset
|
2052 examples/@FIRfilter/Makefile liboctave/Makefile |
8221
06094fa570a3
Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents:
8202
diff
changeset
|
2053 liboctave/oct-types.h src/Makefile src/mxarray.h libcruft/Makefile |
06094fa570a3
Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents:
8202
diff
changeset
|
2054 libcruft/Makerules libcruft/amos/Makefile libcruft/blas/Makefile |
7253 | 2055 libcruft/daspk/Makefile libcruft/dasrt/Makefile |
2056 libcruft/dassl/Makefile libcruft/fftpack/Makefile | |
8306
43795cf108d0
initial implementation of fsolve
Jaroslav Hajek <highegg@gmail.com>
parents:
8269
diff
changeset
|
2057 libcruft/lapack/Makefile |
7253 | 2058 libcruft/misc/Makefile libcruft/odepack/Makefile |
2059 libcruft/ordered-qz/Makefile libcruft/quadpack/Makefile | |
2060 libcruft/ranlib/Makefile libcruft/slatec-fn/Makefile | |
2061 libcruft/slatec-err/Makefile libcruft/villad/Makefile | |
7874
e3a502930e2a
eliminate src/graphics subdirectory
John W. Eaton <jwe@octave.org>
parents:
7863
diff
changeset
|
2062 libcruft/blas-xtra/Makefile libcruft/lapack-xtra/Makefile]) |
8850
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
2063 |
3887 | 2064 AC_OUTPUT |
1225 | 2065 |
2066 ### Print a summary so that important information isn't missed. | |
2067 | |
5844 | 2068 AC_MSG_NOTICE([ |
1225 | 2069 |
2070 Octave is now configured for $canonical_host_type | |
2071 | |
1664 | 2072 Source directory: $srcdir |
2073 Installation prefix: $prefix | |
4626 | 2074 C compiler: $CC $XTRA_CFLAGS $WARN_CFLAGS $CFLAGS |
2075 C++ compiler: $CXX $XTRA_CXXFLAGS $WARN_CXXFLAGS $CXXFLAGS | |
9187
a3237ae32c0d
eliminate last remnants of F2C variables
John W. Eaton <jwe@octave.org>
parents:
9186
diff
changeset
|
2076 Fortran compiler: $F77 $FFLAGS |
1664 | 2077 Fortran libraries: $FLIBS |
9536
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9523
diff
changeset
|
2078 Glob libraries: $LIBGLOB |
592a959b68e5
octave-bug.in, octave-bug.cc.in: update for recent configure changes
John W. Eaton <jwe@octave.org>
parents:
9523
diff
changeset
|
2079 Lex libraries: $LEXLIB |
9519
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
2080 LIBS: $LIBS |
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
2081 |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2082 AMD CPPFLAGS: $AMD_CPPFLAGS |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2083 AMD LDFLAGS: $AMD_LDFLAGS |
9519
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
2084 AMD libraries: $AMD_LIBS |
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
2085 ARPACK libraries: $ARPACK_LIBS |
3820 | 2086 BLAS libraries: $BLAS_LIBS |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2087 CAMD CPPFLAGS: $CAMD_CPPFLAGS |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2088 CAMD LDFLAGS: $CAMD_LDFLAGS |
6024 | 2089 CAMD libraries: $CAMD_LIBS |
9519
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
2090 CARBON libraries: $CARBON_LIBS |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2091 CCOLAMD CPPFLAGS: $CCOLAMD_CPPFLAGS |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2092 CCOLAMD LDFLAGS: $CCOLAMD_LDFLAGS |
5451 | 2093 CCOLAMD libraries: $CCOLAMD_LIBS |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2094 CHOLMOD CPPFLAGS: $CHOLMOD_CPPFLAGS |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2095 CHOLMOD LDFLAGS: $CHOLMOD_LDFLAGS |
5451 | 2096 CHOLMOD libraries: $CHOLMOD_LIBS |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2097 COLAMD CPPFLAGS: $COLAMD_CPPFLAGS |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2098 COLAMD LDFLAGS: $COLAMD_LDFLAGS |
9519
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
2099 COLAMD libraries: $COLAMD_LIBS |
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
2100 CURL CPPFLAGS: $CURL_CPPFLAGS |
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
2101 CURL LDFLAGS: $CURL_LDFLAGS |
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
2102 CURL libraries: $CURL_LIBS |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2103 CXSPARSE CPPFLAGS: $CXSPARSE_CPPFLAGS |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2104 CXSPARSE LDFLAGS: $CXSPARSE_LDFLAGS |
5610 | 2105 CXSPARSE libraries: $CXSPARSE_LIBS |
9519
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
2106 DL libraries: $DL_LIBS |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2107 FFTW3 CPPFLAGS: $FFTW3_CPPFLAGS |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2108 FFTW3 LDFLAGS: $FFTW3_LDFLAGS |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2109 FFTW3 libraries: $FFTW3_LIBS |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2110 FFTW3F CPPFLAGS: $FFTW3F_CPPFLAGS |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2111 FFTW3F LDFLAGS: $FFTW3F_LDFLAGS |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2112 FFTW3F libraries: $FFTW3F_LIBS |
9519
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
2113 FLTK backend libs: $GRAPHICS_LIBS |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2114 GLPK CPPFLAGS: $GLPK_CPPFLAGS |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2115 GLPK LDFLAGS: $GLPK_LDFLAGS |
9519
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
2116 GLPK libraries: $GLPK_LIBS |
9575
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
2117 GraphicsMagick++ |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
2118 CPPFLAGS: $MAGICK_CPPFLAGS |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
2119 LDFLAGS: $MAGICK_LDFLAGS |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
2120 libraries: $MAGICK_LIBS |
9542
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
2121 HDF5 CPPFLAGS: $HDF5_CPPFLAGS |
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
2122 HDF5 LDFLAGS: $HDF5_LDFLAGS |
3820 | 2123 HDF5 libraries: $HDF5_LIBS |
9519
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
2124 OPENGL libraries: $OPENGL_LIBS |
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
2125 PTHREAD flags: $PTHREAD_CFLAGS |
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
2126 PTHREAD libraries: $PTHREAD_LIBS |
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
2127 QHULL CPPFLAGS: $QHULL_CPPFLAGS |
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
2128 QHULL LDFLAGS: $QHULL_LDFLAGS |
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
2129 QHULL libraries: $QHULL_LIBS |
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
2130 QRUPDATE libraries: $QRUPDATE_LIBS |
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
2131 READLINE libraries: $READLINE_LIBS |
6024 | 2132 REGEX libraries: $REGEX_LIBS |
9519
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
2133 TERM libraries: $TERM_LIBS |
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
2134 UMFPACK libraries: $UMFPACK_LIBS |
8560
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
2135 X11 include flags: $X11_INCFLAGS |
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
2136 X11 libraries: $X11_LIBS |
9538
d0239bddf621
use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents:
9536
diff
changeset
|
2137 Z CPPFLAGS: $Z_CPPFLAGS |
d0239bddf621
use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents:
9536
diff
changeset
|
2138 Z LDFLAGS: $Z_LDFLAGS |
d0239bddf621
use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents:
9536
diff
changeset
|
2139 Z libraries: $Z_LIBS |
9519
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
2140 |
1664 | 2141 Default pager: $DEFAULT_PAGER |
7361 | 2142 gnuplot: $GNUPLOT |
1664 | 2143 |
4110 | 2144 Do internal array bounds checking: $BOUNDS_CHECKING |
2145 Build static libraries: $STATIC_LIBS | |
2146 Build shared libraries: $SHARED_LIBS | |
4128 | 2147 Dynamic Linking: $ENABLE_DYNAMIC_LINKING $DL_API_MSG |
4110 | 2148 Include support for GNU readline: $USE_READLINE |
5275 | 2149 64-bit array dims and indexing: $USE_64_BIT_IDX_T |
1225 | 2150 ]) |
3105 | 2151 |
2152 warn_msg_printed=false | |
2153 | |
4469 | 2154 if $ENABLE_DYNAMIC_LINKING; then |
2155 if $SHARED_LIBS; then | |
2156 true | |
2157 else | |
2158 AC_MSG_WARN([You used --enable-dl but not --enable-shared.]) | |
2159 AC_MSG_WARN([Are you sure that is what you want to do?]) | |
2160 warn_msg_printed=true | |
2161 fi | |
2162 fi | |
2163 | |
3105 | 2164 if test -n "$gxx_only"; then |
2165 AC_MSG_WARN($gxx_only) | |
2166 warn_msg_printed=true | |
2167 fi | |
2168 | |
2169 if test -n "$warn_gcc_version"; then | |
2170 AC_MSG_WARN($warn_gcc_version) | |
2171 warn_msg_printed=true | |
2172 fi | |
2173 | |
2174 if test -n "$warn_gcc_only"; then | |
2175 AC_MSG_WARN($warn_gcc_only) | |
2176 warn_msg_printed=true | |
2177 fi | |
2178 | |
3825 | 2179 if test -n "$warn_readline"; then |
2180 AC_MSG_WARN($warn_readline) | |
2181 warn_msg_printed=true | |
2182 fi | |
2183 | |
3105 | 2184 if test -n "$warn_termlibs"; then |
2185 AC_MSG_WARN($warn_termlibs) | |
2186 warn_msg_printed=true | |
2187 fi | |
2188 | |
3673 | 2189 if test -n "$warn_gperf"; then |
2190 AC_MSG_WARN($warn_gperf) | |
2191 warn_msg_printed=true | |
2192 fi | |
2193 | |
3105 | 2194 if test -n "$warn_flex"; then |
2195 AC_MSG_WARN($warn_flex) | |
2196 warn_msg_printed=true | |
2197 fi | |
2198 | |
2199 if test -n "$warn_bison"; then | |
2200 AC_MSG_WARN($warn_bison) | |
2201 warn_msg_printed=true | |
2202 fi | |
2203 | |
2204 if test -n "$warn_less"; then | |
2205 AC_MSG_WARN($warn_less) | |
2206 warn_msg_printed=true | |
2207 fi | |
2208 | |
7683
8136cb19fb7a
implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents:
7638
diff
changeset
|
2209 if test -n "$warn_blas_f77_incompatible"; then |
8136cb19fb7a
implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents:
7638
diff
changeset
|
2210 AC_MSG_WARN($warn_blas_f77_incompatible) |
8136cb19fb7a
implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents:
7638
diff
changeset
|
2211 warn_msg_printed=true |
8136cb19fb7a
implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents:
7638
diff
changeset
|
2212 fi |
8136cb19fb7a
implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents:
7638
diff
changeset
|
2213 |
5203 | 2214 if test -n "$warn_umfpack"; then |
2215 AC_MSG_WARN($warn_umfpack) | |
2216 warn_msg_printed=true | |
2217 fi | |
2218 | |
8547
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
2219 if test -n "$warn_qrupdate"; then |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
2220 AC_MSG_WARN($warn_qrupdate) |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
2221 warn_msg_printed=true |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
2222 fi |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
2223 |
7619 | 2224 if test -n "$warn_amd"; then |
2225 AC_MSG_WARN($warn_amd) | |
2226 warn_msg_printed=true | |
2227 fi | |
2228 | |
5451 | 2229 if test -n "$warn_colamd"; then |
2230 AC_MSG_WARN($warn_colamd) | |
2231 warn_msg_printed=true | |
2232 fi | |
2233 | |
2234 if test -n "$warn_ccolamd"; then | |
2235 AC_MSG_WARN($warn_ccolamd) | |
2236 warn_msg_printed=true | |
2237 fi | |
2238 | |
2239 if test -n "$warn_cholmod"; then | |
2240 AC_MSG_WARN($warn_cholmod) | |
2241 warn_msg_printed=true | |
2242 fi | |
2243 | |
5703 | 2244 if test -n "$warn_cxsparse"; then |
2245 AC_MSG_WARN($warn_cxsparse) | |
2246 warn_msg_printed=true | |
2247 fi | |
2248 | |
8417
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
2249 if test -n "$warn_arpack"; then |
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
2250 AC_MSG_WARN($warn_arpack) |
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
2251 warn_msg_printed=true |
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
2252 fi |
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
2253 |
6335 | 2254 if test -n "$warn_curl"; then |
2255 AC_MSG_WARN($warn_curl) | |
2256 warn_msg_printed=true | |
2257 fi | |
2258 | |
6133 | 2259 if test -n "$warn_fftw"; then |
2260 AC_MSG_WARN($warn_fftw) | |
2261 warn_msg_printed=true | |
2262 fi | |
2263 | |
2264 if test -n "$warn_glpk"; then | |
2265 AC_MSG_WARN($warn_glpk) | |
2266 warn_msg_printed=true | |
2267 fi | |
2268 | |
7926
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7921
diff
changeset
|
2269 if test -n "$warn_magick"; then |
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7921
diff
changeset
|
2270 AC_MSG_WARN($warn_magick) |
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7921
diff
changeset
|
2271 warn_msg_printed=true |
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7921
diff
changeset
|
2272 fi |
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7921
diff
changeset
|
2273 |
5203 | 2274 if test -n "$warn_hdf5"; then |
2275 AC_MSG_WARN($warn_hdf5) | |
2276 warn_msg_printed=true | |
2277 fi | |
2278 | |
6133 | 2279 if test -n "$warn_regex"; then |
2280 AC_MSG_WARN($warn_regex) | |
2281 warn_msg_printed=true | |
2282 fi | |
2283 | |
6025 | 2284 if test -n "$warn_pcre"; then |
2285 AC_MSG_WARN($warn_pcre) | |
2286 warn_msg_printed=true | |
2287 fi | |
2288 | |
6829 | 2289 if test -n "$warn_qhull"; then |
2290 AC_MSG_WARN($warn_qhull) | |
2291 warn_msg_printed=true | |
2292 fi | |
2293 | |
5270 | 2294 if test -n "$warn_zlib"; then |
2295 AC_MSG_WARN($warn_zlib) | |
2296 warn_msg_printed=true | |
2297 fi | |
2298 | |
5934 | 2299 if test -n "$warn_ghostscript"; then |
2300 AC_MSG_WARN($warn_ghostscript) | |
2301 warn_msg_printed=true | |
2302 fi | |
2303 | |
2304 if test -n "$warn_makeinfo"; then | |
2305 AC_MSG_WARN($warn_makeinfo) | |
2306 warn_msg_printed=true | |
2307 fi | |
2308 | |
2309 if test -n "$warn_texi2dvi"; then | |
2310 AC_MSG_WARN($warn_texi2dvi) | |
2311 warn_msg_printed=true | |
2312 fi | |
2313 | |
2314 if test -n "$warn_texi2pdf"; then | |
2315 AC_MSG_WARN($warn_texi2pdf) | |
2316 warn_msg_printed=true | |
2317 fi | |
2318 | |
5275 | 2319 if test -n "$warn_64_bit"; then |
2320 AC_MSG_WARN($warn_64_bit) | |
2321 warn_msg_printed=true | |
2322 fi | |
2323 | |
3105 | 2324 if test -n "$warn_gnuplot"; then |
2325 | |
2326 ## If you change this text, be sure to also change the corresponding | |
2327 ## set of warnings above. | |
2328 | |
6161 | 2329 AC_MSG_WARN([]) |
3105 | 2330 AC_MSG_WARN([I didn't find gnuplot. It isn't necessary to have gnuplot]) |
2331 AC_MSG_WARN([installed, but you won't be able to use any of Octave's]) | |
2332 AC_MSG_WARN([plotting commands without it.]) | |
2333 AC_MSG_WARN([]) | |
2334 AC_MSG_WARN([If gnuplot is installed but it isn't in your path, you can]) | |
2335 AC_MSG_WARN([tell Octave where to find it by typing the command]) | |
2336 AC_MSG_WARN([]) | |
2337 AC_MSG_WARN([gnuplot_binary = "/full/path/to/gnuplot/binary"]) | |
2338 AC_MSG_WARN([]) | |
2339 AC_MSG_WARN([at the Octave prompt.]) | |
6161 | 2340 AC_MSG_WARN([]) |
3105 | 2341 warn_msg_printed=true |
2342 fi | |
2343 | |
5857 | 2344 if $USE_64_BIT_IDX_T; then |
6161 | 2345 AC_MSG_WARN([]) |
5857 | 2346 AC_MSG_WARN([You used the EXPERIMENTAL --enable-64 option.]) |
2347 AC_MSG_WARN([Are you sure that is what you want to do?]) | |
2348 AC_MSG_WARN([]) | |
2349 AC_MSG_WARN([You must ensure that the Fortran compiler generates]) | |
2350 AC_MSG_WARN([code with 8 byte signed INTEGER values, and that your]) | |
2351 AC_MSG_WARN([BLAS and LAPACK libraries are compiled to use 8 byte]) | |
2352 AC_MSG_WARN([signed integers for array indexing.]) | |
6161 | 2353 AC_MSG_WARN([]) |
5857 | 2354 warn_msg_printed=true |
3105 | 2355 fi |
2356 | |
7944
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2357 native_graphics=true |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2358 if test -n "$warn_freetype"; then |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2359 AC_MSG_WARN("$warn_freetype") |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2360 native_graphics=false |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2361 warn_msg_printed=true |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2362 fi |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2363 |
9403
4af6e29449c1
[mq]: graphics_text_engine
Michael Goffioul <michael.goffioul@gmail.com>
parents:
9259
diff
changeset
|
2364 if test -n "$warn_fontconfig"; then |
4af6e29449c1
[mq]: graphics_text_engine
Michael Goffioul <michael.goffioul@gmail.com>
parents:
9259
diff
changeset
|
2365 AC_MSG_WARN("$warn_fontconfig") |
4af6e29449c1
[mq]: graphics_text_engine
Michael Goffioul <michael.goffioul@gmail.com>
parents:
9259
diff
changeset
|
2366 native_graphics=false |
4af6e29449c1
[mq]: graphics_text_engine
Michael Goffioul <michael.goffioul@gmail.com>
parents:
9259
diff
changeset
|
2367 warn_msg_printed=true |
4af6e29449c1
[mq]: graphics_text_engine
Michael Goffioul <michael.goffioul@gmail.com>
parents:
9259
diff
changeset
|
2368 fi |
4af6e29449c1
[mq]: graphics_text_engine
Michael Goffioul <michael.goffioul@gmail.com>
parents:
9259
diff
changeset
|
2369 |
7944
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2370 if test -n "$warn_ftgl"; then |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2371 AC_MSG_WARN("$warn_ftgl") |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2372 native_graphics=false |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2373 warn_msg_printed=true |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2374 fi |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2375 |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2376 if test -n "$warn_fltk_config"; then |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2377 AC_MSG_WARN("$warn_fltk_config") |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2378 native_graphics=false |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2379 warn_msg_printed=true |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2380 fi |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2381 |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2382 if test -n "$warn_fltk_opengl"; then |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2383 AC_MSG_WARN("$warn_fltk_opengl") |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2384 native_graphics=false |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2385 warn_msg_printed=true |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2386 fi |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2387 |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2388 if $native_graphics; then |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2389 true; |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2390 else |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
2391 AC_MSG_WARN([]) |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
2392 AC_MSG_WARN([I didn't find the necessary libraries to compile native]) |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
2393 AC_MSG_WARN([graphics. It isn't necessary to have native graphics]) |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
2394 AC_MSG_WARN([but you will have to use gnuplot or you won't be able]) |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
2395 AC_MSG_WARN([to use any of Octave's plotting commands]) |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
2396 AC_MSG_WARN([]) |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
2397 warn_msg_printed=true |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
2398 fi |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
2399 |
6191 | 2400 if $warn_msg_printed; then |
6161 | 2401 AC_MSG_NOTICE([ |
2402 | |
2403 NOTE: libraries may be skipped if a library is not found OR | |
2404 if the library on your system is missing required features. | |
2405 ]) | |
2406 fi | |
2407 | |
3105 | 2408 ### End of configure. |