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