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