405
|
1 dnl configure.in |
|
2 dnl |
5
|
3 dnl Process this file with autoconf to produce a configure script. |
|
4 dnl |
2847
|
5 dnl Copyright (C) 1996, 1997 John W. Eaton |
869
|
6 ### |
|
7 ### This file is part of Octave. |
|
8 ### |
|
9 ### Octave is free software; you can redistribute it and/or modify it |
|
10 ### under the terms of the GNU General Public License as published by the |
|
11 ### Free Software Foundation; either version 2, or (at your option) any |
|
12 ### later version. |
|
13 ### |
|
14 ### Octave is distributed in the hope that it will be useful, but WITHOUT |
|
15 ### ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
16 ### FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
17 ### for more details. |
|
18 ### |
|
19 ### You should have received a copy of the GNU General Public License |
|
20 ### along with Octave; see the file COPYING. If not, write to the Free |
2488
|
21 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA |
|
22 ### 02111-1307, USA. |
869
|
23 |
3887
|
24 AC_INIT |
4128
|
25 AC_REVISION($Revision: 1.383 $) |
3887
|
26 AC_PREREQ(2.52) |
|
27 AC_CONFIG_SRCDIR([src/octave.cc]) |
1146
|
28 AC_CONFIG_HEADER(config.h) |
869
|
29 |
3887
|
30 AC_DEFINE(OCTAVE_SOURCE, 1, [Define if this is Octave.]) |
|
31 |
|
32 OCTAVE_HOST_TYPE |
869
|
33 |
3923
|
34 AC_AIX |
3887
|
35 AC_MINIX |
3923
|
36 AC_ISC_POSIX |
1667
|
37 |
2223
|
38 ### some defaults |
|
39 |
2813
|
40 OCTAVE_SET_DEFAULT(man1dir, '$(mandir)/man1') |
|
41 OCTAVE_SET_DEFAULT(man1ext, '.1') |
|
42 OCTAVE_SET_DEFAULT(infofile, '$(infodir)/octave.info') |
3597
|
43 OCTAVE_SET_DEFAULT(octincludedir, '$(includedir)/octave-$(version)') |
3029
|
44 OCTAVE_SET_DEFAULT(fcnfiledir, '$(datadir)/octave/$(version)/m') |
2813
|
45 OCTAVE_SET_DEFAULT(localfcnfiledir, '$(datadir)/octave/site/m') |
3597
|
46 OCTAVE_SET_DEFAULT(localverfcnfiledir, '$(datadir)/octave/$(version)/site/m') |
|
47 OCTAVE_SET_DEFAULT(localfcnfilepath, |
|
48 '$(localverfcnfiledir)//:$(localfcnfiledir)//') |
3141
|
49 OCTAVE_SET_DEFAULT(octlibdir, '$(libdir)/octave-$(version)') |
3029
|
50 OCTAVE_SET_DEFAULT(archlibdir, |
3130
|
51 '$(libexecdir)/octave/$(version)/exec/$(canonical_host_type)') |
3029
|
52 OCTAVE_SET_DEFAULT(localarchlibdir, |
3130
|
53 '$(libexecdir)/octave/site/exec/$(canonical_host_type)') |
3597
|
54 OCTAVE_SET_DEFAULT(localverarchlibdir, |
|
55 '$(libexecdir)/octave/$(version)/site/exec/$(canonical_host_type)') |
3029
|
56 OCTAVE_SET_DEFAULT(octfiledir, |
3130
|
57 '$(libexecdir)/octave/$(version)/oct/$(canonical_host_type)') |
3029
|
58 OCTAVE_SET_DEFAULT(localoctfiledir, |
3130
|
59 '$(libexecdir)/octave/site/oct/$(canonical_host_type)') |
3597
|
60 OCTAVE_SET_DEFAULT(localveroctfiledir, |
|
61 '$(libexecdir)/octave/$(version)/site/oct/$(canonical_host_type)') |
|
62 OCTAVE_SET_DEFAULT(localoctfilepath, |
|
63 '$(localveroctfiledir)//:$(localoctfiledir)//') |
3029
|
64 OCTAVE_SET_DEFAULT(fcnfilepath, |
|
65 '.:$(localoctfilepath):$(localfcnfilepath):$(octfiledir)//:$(fcnfiledir)//') |
|
66 OCTAVE_SET_DEFAULT(imagedir, '$(datadir)/octave/$(version)/imagelib') |
2813
|
67 OCTAVE_SET_DEFAULT(imagepath, '.:$(imagedir)//') |
1667
|
68 |
2155
|
69 ### Make configure args available for other uses. |
|
70 |
|
71 config_opts=$ac_configure_args |
|
72 AC_SUBST(config_opts) |
|
73 |
1667
|
74 ### Path separator. |
|
75 |
3887
|
76 AC_DEFINE(SEPCHAR, [':'], Define this to be the path separator for your system, as a character constant.]) |
|
77 AC_DEFINE(SEPCHAR_STR, [":"], [Define this to the path separator, as a string.]) |
1667
|
78 |
869
|
79 ### Allow the user to force us to use f2c. |
|
80 |
832
|
81 AC_ARG_WITH(f2c, |
|
82 [ --with-f2c use f2c even if Fortran compiler is available], |
2813
|
83 [if test "$withval" = no; then use_f2c=false; else use_f2c=true; fi], |
1177
|
84 use_f2c=false) |
|
85 |
|
86 ### Allow the user to force us to use g77. |
|
87 |
|
88 AC_ARG_WITH(g77, |
|
89 [ --with-g77 use g77 to compile Fortran subroutines], |
2813
|
90 [if test "$withval" = no; then use_g77=false; else use_g77=true; fi], |
1177
|
91 use_g77=false) |
|
92 |
2813
|
93 ### Allow the user to force us to use f77. |
|
94 |
|
95 AC_ARG_WITH(f77, |
|
96 [ --with-f77 use f77 to compile Fortran subroutines], |
|
97 [if test "$withval" = no; then use_f77=false; else use_f77=true; fi], |
|
98 use_f77=false) |
|
99 |
|
100 ### Make sure only one of the above options for Fortran compilers was |
|
101 ### specified (multiple "no" or --without-FOO options are ok). |
|
102 |
|
103 OCTAVE_CHECK_EXCLUSIVE_WITH_OPTIONS(f77, g77, |
3105
|
104 [warn_f77_and_g77="--with-f77 and --with-g77 both specified! Using g77..." |
|
105 AC_MSG_WARN($warn_f77_and_g77) |
2813
|
106 use_g77=false]) |
|
107 |
|
108 OCTAVE_CHECK_EXCLUSIVE_WITH_OPTIONS(f77, f2c, |
3105
|
109 [warn_f2c_and_f77="--with-f2c and --with-f77 both specified! Using f77..." |
|
110 AC_MSG_WARN($warn_f2c_and_f77) |
2813
|
111 use_f2c=false]) |
|
112 |
|
113 OCTAVE_CHECK_EXCLUSIVE_WITH_OPTIONS(g77, f2c, |
3105
|
114 [warn_f2c_and_g77="--with-f2c and --with-g77 both specified! Using g77..." |
|
115 AC_MSG_WARN($warn_f2c_and_g77) |
2813
|
116 use_f2c=false]) |
869
|
117 |
2415
|
118 dnl ### Allow the user disable support for plplot. |
|
119 dnl |
|
120 dnl # USE_PLPLOT=true |
|
121 dnl # PLPLOT_DIR=plplot |
3156
|
122 dnl # LIBPLPLOT='$(TOPDIR)/plplot/libplplot.$(LIBEXT) |
1397
|
123 USE_PLPLOT=false |
|
124 PLPLOT_DIR="" |
|
125 LIBPLPLOT="" |
2415
|
126 dnl AC_ARG_ENABLE(plplot, |
|
127 dnl [ --enable-plplot use plplot for plotting (default is yes)], |
2813
|
128 dnl [if test "$enableval" = no; then |
2415
|
129 dnl USE_PLPLOT=false; |
|
130 dnl LIBPLPLOT=""; |
|
131 dnl PLPLOT_DIR=""; |
|
132 dnl fi], []) |
|
133 dnl if $USE_PLPLOT; then |
3887
|
134 dnl AC_DEFINE(USE_PLPLOT, 1, [Define to use plplot.]) |
2415
|
135 dnl fi |
2421
|
136 AC_SUBST(LIBPLPLOT) |
|
137 AC_SUBST(PLPLOT_DIR) |
1137
|
138 |
3156
|
139 LIBKPATHSEA='$(TOPDIR)/kpathsea/libkpathsea.$(LIBEXT)' |
|
140 AC_SUBST(LIBKPATHSEA) |
|
141 |
2813
|
142 ### Make it possible to have Octave's array and matrix classes do bounds |
2108
|
143 ### checking on element references. This slows some operations down a |
2813
|
144 ### bit, so it is turned off by default. |
2108
|
145 |
2450
|
146 BOUNDS_CHECKING=false |
2108
|
147 AC_ARG_ENABLE(bounds-check, |
3060
|
148 [ --enable-bounds-check for internal array classes (default is no)], |
|
149 [if test "$enableval" = yes; then BOUNDS_CHECKING=true; fi], []) |
2108
|
150 if $BOUNDS_CHECKING; then |
3887
|
151 AC_DEFINE(BOUNDS_CHECKING, 1, [Define to use internal bounds checking.]) |
2108
|
152 fi |
|
153 |
3215
|
154 ### It seems that there are some broken inline assembly functions in |
|
155 ### the GNU libc. Since I'm not sure how to test whether we are using |
|
156 ### GNU libc, just disable them for all platforms. |
|
157 |
|
158 AC_MSG_RESULT([defining __NO_MATH_INLINES avoids buggy GNU libc exp function]) |
3887
|
159 AC_DEFINE(__NO_MATH_INLINES, 1, [Define if your version of GNU libc has buggy inline assembly code for math functions like exp.]) |
3215
|
160 |
869
|
161 ### See which C++ compiler to use (we expect to find g++). |
|
162 |
1334
|
163 EXTERN_CXXFLAGS="$CXXFLAGS" |
|
164 |
405
|
165 AC_PROG_CXX |
|
166 AC_PROG_CXXCPP |
869
|
167 |
|
168 ### Do special things for g++. |
|
169 |
2353
|
170 gxx_version=`$CXX -v 2>&1 | grep "^.*g.. version" | \ |
3107
|
171 sed -e 's/^.*g.. version *//' -e 's/cygnus-//' -e 's/egcs-//'` |
|
172 |
3775
|
173 # |
|
174 # Auto instantiate all templates, other than those that are explicitly |
|
175 # instantiated in Octave. Octave currently instantiates all needed |
|
176 # templates for GCC-2.8.x and EGCS-1.1.x, but not for newer GNU releases |
|
177 # nor for other supported compilers. |
|
178 # |
|
179 cxx_auto_instantiate_templates=yes |
405
|
180 case "$gxx_version" in |
3887
|
181 1.* | 2.[[0123456]].* | 2.7.[01]*) |
3107
|
182 AC_MSG_ERROR([g++ version $gxx_version will not work to compile Octave]) |
|
183 ;; |
3887
|
184 2.8* | 2.9[[1-6]]*) |
3775
|
185 cxx_auto_instantiate_templates=no |
|
186 ;; |
405
|
187 esac |
869
|
188 |
1894
|
189 CXX_VERSION= |
|
190 if test -n "$gxx_version"; then |
|
191 CXX_VERSION="$gxx_version" |
|
192 fi |
|
193 AC_SUBST(CXX_VERSION) |
|
194 |
3107
|
195 OCTAVE_CXX_NEW_FRIEND_TEMPLATE_DECL |
3769
|
196 OCTAVE_CXX_ISO_COMPLIANT_LIBRARY |
3107
|
197 |
3842
|
198 # Determine the ABI used the C++ compiler, needed by the dynamic loading |
|
199 # code. Currently supported ABIs are GNU v2, GNU v3 and Sun Workshop. |
|
200 |
|
201 OCTAVE_CXX_ABI |
|
202 |
869
|
203 ### See which C compiler to use (we expect to find gcc). |
|
204 |
1334
|
205 EXTERN_CFLAGS="$CFLAGS" |
|
206 |
5
|
207 AC_PROG_CC |
405
|
208 AC_PROG_CPP |
832
|
209 AC_PROG_GCC_TRADITIONAL |
869
|
210 |
|
211 ### Do special things for gcc. |
|
212 |
2353
|
213 gcc_version=`$CC -v 2>&1 | grep "^.*gcc version" | \ |
3107
|
214 sed -e 's/^.*g.. version *//' -e 's/cygnus-//' -e 's/egcs-//'` |
405
|
215 case "$gcc_version" in |
|
216 2.*) |
1087
|
217 if test -z "$LDFLAGS"; then |
|
218 LDFLAGS="-g" |
|
219 AC_MSG_RESULT([defining LDFLAGS to be $LDFLAGS]) |
|
220 fi |
405
|
221 ;; |
|
222 1.*) |
3105
|
223 warn_gcc_version="gcc version $gcc_version is likely to cause problems" |
|
224 AC_MSG_WARN($warn_gcc_version) |
405
|
225 ;; |
5
|
226 esac |
869
|
227 |
1894
|
228 CC_VERSION= |
|
229 if test -n "$gcc_version"; then |
|
230 CC_VERSION="$gcc_version" |
|
231 fi |
|
232 AC_SUBST(CC_VERSION) |
|
233 |
3775
|
234 ### The flag to create dependency varies depending on the compier. |
|
235 |
|
236 # Assume GCC. |
|
237 DEPEND_FLAGS="-M" |
|
238 DEPEND_EXTRA_SED_PATTERN="" |
|
239 case "$canonical_host_type" in |
|
240 sparc-sun-solaris2* | i386-pc-solaris2*) |
3820
|
241 if test "$GCC" = yes; then |
3775
|
242 true |
|
243 else |
|
244 DEPEND_FLAGS="-xM1" |
|
245 DEPEND_EXTRA_SED_PATTERN="-e '/\/opt\/SUNWspro/d'" |
|
246 fi |
|
247 ;; |
|
248 esac |
|
249 AC_SUBST(DEPEND_FLAGS) |
|
250 AC_SUBST(DEPEND_EXTRA_SED_PATTERN) |
|
251 |
3065
|
252 ### On Intel systems with gcc, we may need to compile with -mieee-fp to |
2558
|
253 ### get full support for IEEE floating point. |
2020
|
254 ### |
3126
|
255 ### On Alpha/OSF systems, we need -mieee. |
869
|
256 |
3126
|
257 ieee_fp_flag= |
350
|
258 case "$canonical_host_type" in |
3887
|
259 i[[3456789]]86-*-*) |
3126
|
260 OCTAVE_CC_FLAG(-mieee-fp, [ |
|
261 ieee_fp_flag=-mieee-fp |
3131
|
262 XTRA_CFLAGS="$XTRA_CFLAGS -mieee-fp" |
|
263 AC_MSG_RESULT([adding -mieee-fp to XTRA_CFLAGS])]) |
3126
|
264 |
|
265 OCTAVE_CXX_FLAG(-mieee-fp, [ |
|
266 ieee_fp_flag=-mieee-fp |
3131
|
267 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mieee-fp" |
|
268 AC_MSG_RESULT([adding -mieee-fp to XTRA_CXXFLAGS])]) |
324
|
269 ;; |
3127
|
270 alpha*-*-*) |
3160
|
271 OCTAVE_CC_FLAG(-mieee-with-inexact, [ |
|
272 ieee_fp_flag=-mieee-with-inexact |
|
273 XTRA_CFLAGS="$XTRA_CFLAGS -mieee-with-inexact" |
|
274 AC_MSG_RESULT([adding -mieee-with-inexact to XTRA_CFLAGS])]) |
3131
|
275 |
3160
|
276 OCTAVE_CXX_FLAG(-mieee-with-inexact, [ |
|
277 ieee_fp_flag=-mieee-with-inexact |
|
278 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mieee-with-inexact" |
|
279 AC_MSG_RESULT([adding -mieee-with-inexact to XTRA_CXXFLAGS])]) |
2020
|
280 ;; |
3176
|
281 *ibm-aix4*) |
3351
|
282 OCTAVE_CC_FLAG(-mminimal-toc, [ |
|
283 XTRA_CFLAGS="$XTRA_CFLAGS -mminimal-toc"]) |
3176
|
284 |
3351
|
285 OCTAVE_CXX_FLAG(-mminimal-toc, [ |
|
286 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mminimal-toc"]) |
3176
|
287 ;; |
324
|
288 esac |
3126
|
289 |
3775
|
290 ### We do our own template instantiation for specific compilers. |
3126
|
291 |
3820
|
292 if test "$cxx_auto_instantiate_templates" = no; then |
3956
|
293 case "$canonical_host_type" in |
|
294 *-*-darwin*) |
|
295 OCTAVE_CXX_FLAG(-fno-coalesce-templates, [ |
|
296 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -fno-coalesce-templates" |
|
297 AC_MSG_RESULT([adding -fno-coalesce-templates to XTRA_CXXFLAGS])]) |
|
298 ;; |
|
299 esac |
3775
|
300 OCTAVE_CXX_FLAG(-fno-implicit-templates, [ |
|
301 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -fno-implicit-templates" |
|
302 AC_MSG_RESULT([adding -fno-implicit-templates to XTRA_CXXFLAGS])]) |
|
303 fi |
3126
|
304 |
|
305 AC_SUBST(XTRA_CFLAGS) |
|
306 AC_SUBST(XTRA_CXXFLAGS) |
869
|
307 |
1667
|
308 ### Use -static if compiling on Alpha OSF/1 1.3 systems. |
|
309 |
|
310 case "$canonical_host_type" in |
3127
|
311 alpha*-dec-osf1.3) |
1667
|
312 LD_STATIC_FLAG=-static |
|
313 ;; |
|
314 esac |
1679
|
315 if test -n "$LD_STATIC_FLAG"; then |
|
316 AC_MSG_RESULT([defining LD_STATIC_FLAG to be $LD_STATIC_FLAG]) |
|
317 fi |
|
318 AC_SUBST(LD_STATIC_FLAG) |
1667
|
319 |
3222
|
320 OCTAVE_CXX_PREPENDS_UNDERSCORE |
4094
|
321 OCTAVE_CXX_PRAGMA_INTERFACE_IMPLEMENTATION |
|
322 |
|
323 ### Defaults for cross compiling. BUILD_CC and BUILD_CXX are |
|
324 ### the compilers that we use for building tools on the build system. |
4098
|
325 ### For now, we assume that the only cross compiling we can do is |
|
326 ### with gcc on a Unixy system. |
4094
|
327 |
|
328 if test "$cross_compiling" = yes; then |
|
329 BUILD_CC="gcc" |
|
330 BUILD_CFLAGS="-O2 -g" |
|
331 BUILD_CXX="g++" |
|
332 BUILD_CXXFLAGS="-O2 -g" |
4098
|
333 BUILD_EXEEXT="" |
4094
|
334 else |
|
335 BUILD_CC=$CC |
|
336 BUILD_CFLAGS="-O2 -g" |
|
337 BUILD_CXX="g++" |
|
338 BUILD_CXXFLAGS="-O2 -g" |
4098
|
339 BUILD_EXEEXT="$EXEEXT" |
4094
|
340 fi |
|
341 |
|
342 AC_ARG_VAR(BUILD_CC, [build system C compiler (used if cross compiling)]) |
|
343 AC_ARG_VAR(BUILD_CFLAGS, [build system C compiler flags (used if cross compiling)]) |
|
344 AC_ARG_VAR(BUILD_CXX, [build system C++ compiler (used if cross compiling)]) |
|
345 AC_ARG_VAR(BUILD_CXXFLAGS, [build system C++ compiler flags (used if cross compiling)]) |
4098
|
346 AC_SUBST(BUILD_EXEEXT) |
3222
|
347 |
3232
|
348 dnl This is bogus. We shouldn't have to explicitly add libc too! |
|
349 |
|
350 ### Look for math library. If found, this will add -lm to LIBS. |
|
351 |
|
352 case "$canonical_host_type" in |
|
353 *-*-nextstep*) |
|
354 ;; |
|
355 *-*-linux*) |
|
356 AC_CHECK_LIB(m, sin, , , -lc) |
|
357 ;; |
|
358 *) |
|
359 AC_CHECK_LIB(m, sin) |
|
360 ;; |
|
361 esac |
|
362 |
3820
|
363 ### Check for HDF5 library. |
|
364 |
|
365 ### XXX FIXME XXX -- how can user specify a set of libraries here? |
|
366 |
|
367 WITH_HDF5=true |
|
368 AC_ARG_WITH(hdf5, |
|
369 [ --without-hdf5 don't use HDF5], |
|
370 with_hdf5=$withval, with_hdf5=yes) |
|
371 |
|
372 hdf5_lib= |
|
373 if test "$with_hdf5" = yes; then |
|
374 hdf5_lib="hdf5" |
|
375 elif test "$with_hdf5" != no; then |
|
376 hdf5_lib="$with_hdf5" |
3687
|
377 fi |
|
378 |
3820
|
379 HDF5_LIBS= |
|
380 WITH_HDF5=false |
|
381 if test -n "$hdf5_lib"; then |
|
382 AC_CHECK_LIB($hdf5_lib, H5Pcreate, [ |
|
383 AC_CHECK_LIB(z, deflate, [ |
|
384 AC_CHECK_HEADERS(hdf5.h, [ |
|
385 WITH_HDF5=true |
|
386 HDF5_LIBS="-l$hdf5_lib -lz" |
|
387 LIBS="$HDF5_LIBS $LIBS" |
3892
|
388 AC_DEFINE(HAVE_HDF5, 1, [Define if HDF5 is available.])])])]) |
3820
|
389 fi |
3687
|
390 |
3827
|
391 # Checks for FFTW header and library. |
|
392 |
|
393 # subdirectories of libcruft to build if they aren't found on the system: |
|
394 FFT_DIR="fftpack" |
|
395 AC_SUBST(FFT_DIR) |
|
396 |
|
397 # Installed fftw library, if any. |
|
398 FFTW_LIBS='' |
|
399 AC_SUBST(FFTW_LIBS) |
|
400 |
|
401 AC_ARG_WITH(fftw, |
3886
|
402 [ --without-fftw use included fftpack instead of installed fftw], |
|
403 with_fftw=$withval, with_fftw=yes) |
3827
|
404 |
|
405 if test "$with_fftw" = "yes"; then |
3887
|
406 have_fftw_header=no |
|
407 AC_CHECK_HEADERS(dfftw.h fftw.h, [have_fftw_header=yes; break]) |
|
408 if test "$have_fftw_header" = yes; then |
3827
|
409 AC_CHECK_LIB(dfftw, fftw_create_plan, FFTW_LIBS="-ldfftw", |
|
410 [AC_CHECK_LIB(fftw, fftw_create_plan, FFTW_LIBS="-lfftw", with_fftw=no)]) |
|
411 else |
|
412 with_fftw=no |
|
413 fi |
|
414 fi |
|
415 |
|
416 if test "$with_fftw" = yes; then |
|
417 FFT_DIR='' |
3892
|
418 AC_DEFINE(HAVE_FFTW, 1, [Define if the FFTW library is available.]) |
3827
|
419 fi |
|
420 |
|
421 # ---------------------------------------------------------------------- |
|
422 |
3012
|
423 ### We need these before trying to find libf2c. |
|
424 |
3130
|
425 OCTAVE_PROG_AR |
3012
|
426 |
|
427 AC_PROG_RANLIB |
|
428 |
2813
|
429 ### If we haven't been forced to use a particular Fortran compiler, |
|
430 ### try to find one using any one of several common Un*x Fortran |
3887
|
431 ### compiler names using the AC_PROG_F77 macro. |
1239
|
432 ### |
2813
|
433 ### The configure options --with-f77, --with-g77, or --with-f2c |
|
434 ### force f77, g77 or f2c to be used. It is also possible to use |
|
435 ### these options to specify the name of the compiler. For example, |
|
436 ### `--with-g77=/opt/gnu/bin/f77' says that we are using g77 but it is |
|
437 ### installed as /opt/gnu/bin/f77. |
1233
|
438 |
2813
|
439 if $use_f77; then |
3008
|
440 if test "$with_f77" = yes; then |
2813
|
441 F77=f77 |
|
442 else |
|
443 F77="$with_f77" |
|
444 fi |
|
445 AC_MSG_RESULT([defining F77 to be $F77]) |
|
446 elif $use_g77; then |
2336
|
447 if test "$with_g77" = yes; then |
1239
|
448 F77=g77 |
|
449 else |
|
450 F77="$with_g77" |
|
451 fi |
|
452 AC_MSG_RESULT([defining F77 to be $F77]) |
1233
|
453 elif $use_f2c; then |
|
454 F77= |
2336
|
455 if test "$with_f2c" = yes; then |
1317
|
456 F2C=f2c |
1239
|
457 else |
|
458 F2C="$with_f2c" |
|
459 fi |
|
460 AC_MSG_RESULT([defining F2C to be $F2C]) |
1233
|
461 fi |
5
|
462 |
3887
|
463 if test "x$FFLAGS" = x; then |
|
464 FFLAGS="-O" # override -g -O default by AC_PROG_F77 |
|
465 fi |
|
466 |
|
467 # the F77 variable, if set, overrides AC_PROG_F77 automatically |
|
468 AC_PROG_F77 |
|
469 |
1239
|
470 have_fortran_compiler=false |
|
471 have_f2c=false |
5
|
472 |
2813
|
473 if $use_f2c; then |
1239
|
474 have_f2c=true |
|
475 else |
|
476 if test -n "$F77"; then |
3887
|
477 AC_F77_LIBRARY_LDFLAGS |
|
478 AC_F77_DUMMY_MAIN |
|
479 AC_F77_WRAPPERS |
|
480 case "$canonical_host_type" in |
|
481 alpha*-*-*) |
|
482 if test "$ac_cv_f77_compiler_gnu" = yes; then |
|
483 FFLAGS="$ieee_fp_flag $FFLAGS" |
|
484 else |
|
485 FFLAGS="-fpe1 $FFLAGS" |
|
486 fi |
|
487 ;; |
|
488 powerpc-apple-machten*) |
|
489 FFLAGS= |
|
490 ;; |
|
491 esac |
|
492 if test -n "$FFLAGS"; then |
|
493 AC_MSG_RESULT([defining FFLAGS to be $FFLAGS]) |
1239
|
494 fi |
|
495 have_fortran_compiler=true |
1233
|
496 else |
1239
|
497 AC_CHECK_PROG(F2C, f2c, f2c, []) |
3897
|
498 AC_ARG_VAR(F2C, [Fortran to C translator command]) |
|
499 AC_ARG_VAR(F2CFLAGS, [Fortran to C translator flags]) |
1239
|
500 if test -n "$F2C"; then |
|
501 have_f2c=true |
5
|
502 fi |
|
503 fi |
|
504 fi |
869
|
505 |
2762
|
506 f77_rules_frag=/dev/null |
1239
|
507 if $have_fortran_compiler; then |
2762
|
508 f77_rules_frag=Makefrag.f77 |
1679
|
509 cat << \EOF > $f77_rules_frag |
1668
|
510 |
1753
|
511 %.c : %.f |
1668
|
512 |
1791
|
513 %.o : %.f |
3615
|
514 $(FC) -c $(ALL_FFLAGS) -o $@ $< |
1668
|
515 |
1984
|
516 pic/%.o : %.f |
|
517 $(FC) -c $(FPICFLAG) $(ALL_FFLAGS) $< -o $@ |
|
518 |
1668
|
519 EOF |
1239
|
520 elif $have_f2c; then |
3887
|
521 AC_DEFINE(HAVE_F2C, 1, [Define if we are using f2c.]) |
2562
|
522 |
|
523 ### XXX FIMXE XXX -- these shouldn't be fixed names, eh? |
|
524 |
|
525 oct_conflib=libconflib.a |
|
526 oct_obj_ext=o |
|
527 |
|
528 if AC_TRY_EVAL(ac_compile); then |
3887
|
529 $AR $ARFLAGS $oct_conflib conftest.$oct_obj_ext 1>&AS_MESSAGE_LOG_FD() |
2562
|
530 if test -n "$RANLIB"; then |
3887
|
531 $RANLIB $oct_conflib 1>&AS_MESSAGE_LOG_FD() |
5
|
532 fi |
|
533 fi |
2562
|
534 rm -f conftest* |
3232
|
535 AC_CHECK_LIB(f2c, f_open, FLIBS=-lf2c, FLIBS=, [-L. -lconflib]) |
2562
|
536 rm -f $oct_conflib |
|
537 |
|
538 if test -z "$FLIBS"; then |
3232
|
539 AC_CHECK_LIB(F77, d_sin, FLIBS=-lF77, FLIBS=) |
2562
|
540 if test -n "$FLIBS"; then |
|
541 AC_CHECK_LIB(I77, f_rew, FLIBS="$FLIBS -lI77", FLIBS=, -lF77) |
|
542 fi |
|
543 fi |
|
544 |
1462
|
545 if test -z "$FLIBS"; then |
3105
|
546 warn_f2c_no_lib="I found f2c but not libf2c.a, or libF77.a and libI77.a" |
|
547 AC_MSG_WARN($warn_f2c_no_lib) |
5
|
548 fi |
2633
|
549 f77_rules_frag=Makefrag.f77 |
1679
|
550 cat << \EOF > $f77_rules_frag |
1668
|
551 |
1824
|
552 %.c : %.f |
3847
|
553 $(F2C) $(F2CFLAGS) < $< > $(@F) |
1668
|
554 |
1753
|
555 %.o : %.f |
1668
|
556 |
|
557 EOF |
5
|
558 else |
832
|
559 AC_MSG_WARN([in order to build octave, you must have a compatible]) |
|
560 AC_MSG_WARN([Fortran compiler or f2c installed and in your path.]) |
1664
|
561 AC_MSG_ERROR([See the file INSTALL for more information.]) |
5
|
562 fi |
869
|
563 |
1163
|
564 FC=$F77 |
|
565 AC_SUBST(FC) |
1679
|
566 AC_SUBST_FILE(f77_rules_frag) |
869
|
567 |
3820
|
568 ### Checks for BLAS and LAPACK libraries: |
3887
|
569 # (Build subdirectories of libcruft if they aren't found on the system.) |
3820
|
570 |
3887
|
571 sinclude(acx_blas.m4) |
|
572 sinclude(acx_lapack.m4) |
|
573 ACX_BLAS([], [BLAS_DIR="blas"]) |
|
574 ACX_LAPACK([BLAS_LIBS="$LAPACK_LIBS $BLAS_LIBS"], [LAPACK_DIR="lapack"]) |
3690
|
575 AC_SUBST(BLAS_DIR) |
|
576 AC_SUBST(LAPACK_DIR) |
|
577 |
4110
|
578 ### Handle shared library options. |
2813
|
579 |
3034
|
580 ### Enable creation of static libraries. |
|
581 |
|
582 AC_ARG_ENABLE(static, |
|
583 [ --enable-static create static libraries], |
|
584 [if test "$enableval" = no; then STATIC_LIBS=false; |
|
585 else STATIC_LIBS=true; fi], |
|
586 STATIC_LIBS=true) |
|
587 AC_SUBST(STATIC_LIBS) |
|
588 |
2813
|
589 ### Enable creation of shared libraries. Currently only works with |
|
590 ### gcc on some systems. |
|
591 |
|
592 AC_ARG_ENABLE(shared, |
|
593 [ --enable-shared create shared libraries (not all systems)], |
|
594 [if test "$enableval" = no; then SHARED_LIBS=false; |
|
595 else SHARED_LIBS=true; fi], |
|
596 SHARED_LIBS=false) |
|
597 AC_SUBST(SHARED_LIBS) |
|
598 |
4128
|
599 ### Enable dynamic linking. --enable-shared implies this, so |
|
600 ### --enable-dl is only need if you are only building static libraries |
|
601 ### and want to try dynamic linking too (works on some systems, for |
|
602 ### example, OS X and Windows). |
|
603 |
|
604 AC_ARG_ENABLE(dl, |
|
605 [ --enable-dl create shared libraries (not all systems)], |
|
606 [if test "$enableval" = no; then ENABLE_DYNAMIC_LINKING=false; |
|
607 else ENABLE_DYNAMIC_LINKING=true; fi], |
|
608 ENABLE_DYNAMIC_LINKING=false) |
|
609 |
3034
|
610 if $STATIC_LIBS || $SHARED_LIBS; then |
|
611 true |
|
612 else |
|
613 AC_MSG_ERROR([You can't disable building static AND shared libraries!]) |
|
614 fi |
|
615 |
2813
|
616 use_rpath=true |
|
617 AC_ARG_ENABLE(rpath, |
|
618 [ --enable-rpath add -rpath to link command for shared libraries], |
|
619 [if test "$enableval" = no; then use_rpath=false; fi], []) |
|
620 |
|
621 DLFCN_DIR= |
|
622 CPICFLAG=-fPIC |
|
623 CXXPICFLAG=-fPIC |
|
624 FPICFLAG=-fPIC |
|
625 SHLEXT=so |
4126
|
626 SHLLIB=$SHLEXT |
4102
|
627 SHLBIN= |
4126
|
628 SHLEXT_VER='$(SHLEXT).$(VERSION)' |
|
629 SHLLIB_VER='$(SHLLIB).$(VERSION)' |
|
630 SHLBIN_VER='$(SHLBIN).$(VERSION)' |
|
631 SHLLINKEXT= |
3124
|
632 SH_LD="$CXX" |
2813
|
633 SH_LDFLAGS=-shared |
3036
|
634 SONAME_FLAGS= |
2813
|
635 RLD_FLAG= |
4102
|
636 INCLUDE_LINK_DEPS=false |
3775
|
637 TEMPLATE_AR="$AR" |
|
638 TEMPLATE_ARFLAGS="$ARFLAGS" |
4104
|
639 library_path_var=LD_LIBRARY_PATH |
2813
|
640 case "$canonical_host_type" in |
|
641 *-*-386bsd* | *-*-openbsd* | *-*-netbsd* | *-*-freebsd*) |
|
642 SH_LD=ld |
|
643 SH_LDFLAGS=-Bshareable |
|
644 ;; |
3127
|
645 alpha*-dec-osf*) |
2813
|
646 CPICFLAG= |
|
647 CXXPICFLAG= |
|
648 FPICFLAG= |
|
649 SH_LDFLAGS="-shared -Xlinker -expect_unresolved -Xlinker '*'" |
3037
|
650 SONAME_FLAGS='-Xlinker -soname -Xlinker $@' |
3162
|
651 RLD_FLAG='-Xlinker -rpath -Xlinker $(octlibdir)' |
2813
|
652 ;; |
3956
|
653 *-*-darwin*) |
|
654 SH_LDFLAGS='-bundle -bundle_loader $(bindir)/octave' |
|
655 ;; |
4105
|
656 *-*-cygwin* | *-*-mingw*) |
4102
|
657 CXXPICFLAG= |
|
658 CPICFLAG= |
|
659 FPICFLAG= |
|
660 SHLEXT=dll |
|
661 SHLLIB=dll.a |
|
662 SHLBIN=dll |
4104
|
663 SH_LDFLAGS="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import" |
4102
|
664 SHLLINKEXT=.dll |
|
665 SONAME_FLAGS='-Wl,--out-implib=$@.a' |
|
666 INCLUDE_LINK_DEPS=true |
4104
|
667 library_path_var=PATH |
4102
|
668 ;; |
3740
|
669 *-*-linux* | *-*-gnu*) |
3038
|
670 SONAME_FLAGS='-Xlinker -soname -Xlinker $@' |
3162
|
671 RLD_FLAG='-Xlinker -rpath -Xlinker $(octlibdir)' |
2813
|
672 ;; |
3887
|
673 i[[3456]]86-*-sco3.2v5*) |
3705
|
674 SONAME_FLAGS='-Xlinker -h -Xlinker $@' |
|
675 RLD_FLAG= |
3160
|
676 SH_LDFLAGS=-G |
|
677 ;; |
2813
|
678 rs6000-ibm-aix* | powerpc-ibm-aix*) |
|
679 CPICFLAG= |
|
680 CXXPICFLAG= |
|
681 FPICFLAG= |
|
682 DLFCN_DIR=dlfcn |
|
683 ;; |
|
684 hppa*-hp-hpux*) |
3887
|
685 if test "$ac_cv_f77_compiler_gnu" = yes; then |
2813
|
686 FPICFLAG=-fPIC |
|
687 else |
|
688 FPICFLAG=+Z |
|
689 fi |
|
690 SHLEXT=sl |
|
691 SH_LDFLAGS="-shared -fPIC" |
3162
|
692 RLD_FLAG='-Xlinker +b -Xlinker $(octlibdir)' |
2813
|
693 ;; |
|
694 *-sgi-*) |
|
695 CPICFLAG= |
|
696 CXXPICFLAG= |
|
697 FPICFLAG= |
3162
|
698 RLD_FLAG='-L$(octlibdir)' |
2813
|
699 ;; |
|
700 sparc-sun-sunos4*) |
3887
|
701 if test "$ac_cv_f77_compiler_gnu" = yes; then |
2813
|
702 FPICFLAG=-fPIC |
|
703 else |
|
704 FPICFLAG=-PIC |
|
705 fi |
3059
|
706 SH_LD=ld |
|
707 SH_LDFLAGS="-assert nodefinitions" |
3162
|
708 RLD_FLAG='-L$(octlibdir)' |
2813
|
709 ;; |
3606
|
710 sparc-sun-solaris2* | i386-pc-solaris2*) |
3887
|
711 if test "$ac_cv_f77_compiler_gnu" = yes; then |
2813
|
712 FPICFLAG=-fPIC |
|
713 else |
3775
|
714 FPICFLAG=-KPIC |
|
715 fi |
|
716 if test "$GCC" = yes; then |
|
717 CPICFLAG=-fPIC |
|
718 else |
|
719 CPICFLAG=-KPIC |
2813
|
720 fi |
3775
|
721 if test "$GXX" = yes; then |
|
722 CXXPICFLAG=-fPIC |
|
723 SH_LDFLAGS=-shared |
|
724 else |
|
725 CXXPICFLAG=-KPIC |
|
726 SH_LDFLAGS=-G |
|
727 fi |
|
728 RLD_FLAG='-R $(octlibdir)' |
|
729 # Template closures in archive libraries need a different mechanism. |
3820
|
730 if test "$GXX" = yes; then |
3775
|
731 true |
|
732 else |
|
733 TEMPLATE_AR="$CXX" |
|
734 TEMPLATE_ARFLAGS="-xar -o" |
|
735 fi |
2813
|
736 ;; |
|
737 esac |
|
738 |
|
739 if $use_rpath; then |
|
740 true |
|
741 else |
|
742 RLD_FLAG= |
|
743 fi |
|
744 |
|
745 AC_MSG_RESULT([defining FPICFLAG to be $FPICFLAG]) |
|
746 AC_MSG_RESULT([defining CPICFLAG to be $CPICFLAG]) |
|
747 AC_MSG_RESULT([defining CXXPICFLAG to be $CXXPICFLAG]) |
|
748 AC_MSG_RESULT([defining SHLEXT to be $SHLEXT]) |
4126
|
749 AC_MSG_RESULT([defining SHLLIB to be $SHLLIB]) |
|
750 AC_MSG_RESULT([defining SHLBIN to be $SHLBIN]) |
|
751 AC_MSG_RESULT([defining SHLEXT_VER to be $SHLEXT_VER]) |
|
752 AC_MSG_RESULT([defining SHLLIB_VER to be $SHLLIB_VER]) |
|
753 AC_MSG_RESULT([defining SHLBIN_VER to be $SHLBIN_VER]) |
|
754 AC_MSG_RESULT([defining SHLLINKEXT to be $SHLLINKEXT]) |
2813
|
755 AC_MSG_RESULT([defining DLFCN_DIR to be $DLFCN_DIR]) |
|
756 AC_MSG_RESULT([defining SH_LD to be $SH_LD]) |
|
757 AC_MSG_RESULT([defining SH_LDFLAGS to be $SH_LDFLAGS]) |
3036
|
758 AC_MSG_RESULT([defining SONAME_FLAGS to be $SONAME_FLAGS]) |
2813
|
759 AC_MSG_RESULT([defining RLD_FLAG to be $RLD_FLAG]) |
3775
|
760 AC_MSG_RESULT([defining TEMPLATE_AR to be $TEMPLATE_AR]) |
|
761 AC_MSG_RESULT([defining TEMPLATE_ARFLAGS to be $TEMPLATE_ARFLAGS]) |
4102
|
762 AC_MSG_RESULT([defining INCLUDE_LINK_DEPS to be $INCLUDE_LINK_DEPS]) |
4104
|
763 AC_MSG_RESULT([defining library_path_var to be $library_path_var]) |
2813
|
764 AC_SUBST(FPICFLAG) |
|
765 AC_SUBST(CPICFLAG) |
|
766 AC_SUBST(CXXPICFLAG) |
|
767 AC_SUBST(SHLEXT) |
4102
|
768 AC_SUBST(SHLLIB) |
|
769 AC_SUBST(SHLBIN) |
4126
|
770 AC_SUBST(SHLEXT_VER) |
|
771 AC_SUBST(SHLLIB_VER) |
|
772 AC_SUBST(SHLBIN_VER) |
|
773 AC_SUBST(SHLLINKEXT) |
2813
|
774 AC_SUBST(DLFCN_DIR) |
|
775 AC_SUBST(SH_LD) |
|
776 AC_SUBST(SH_LDFLAGS) |
3036
|
777 AC_SUBST(SONAME_FLAGS) |
2813
|
778 AC_SUBST(RLD_FLAG) |
3775
|
779 AC_SUBST(TEMPLATE_AR) |
|
780 AC_SUBST(TEMPLATE_ARFLAGS) |
4102
|
781 AC_SUBST(INCLUDE_LINK_DEPS) |
4104
|
782 AC_SUBST(library_path_var) |
4102
|
783 |
2813
|
784 ### special checks for odd OS specific things. |
|
785 ### |
|
786 ### I am told that on some SCO systems, the only place to find some |
|
787 ### functions like gethostname and gettimeofday is in libsocket. |
|
788 |
3887
|
789 AC_CHECK_FUNCS(gethostname, [], [AC_CHECK_LIB(socket, gethostname)]) |
|
790 AC_CHECK_FUNCS(getpwnam, [], [AC_CHECK_LIB(sun, getpwnam)]) |
2813
|
791 |
|
792 ### How big are ints and how are they oriented? These could probably |
|
793 ### be eliminated in favor of run-time checks. |
|
794 |
3888
|
795 AC_CHECK_SIZEOF(short) |
|
796 AC_CHECK_SIZEOF(int) |
|
797 AC_CHECK_SIZEOF(long) |
|
798 AC_CHECK_SIZEOF(long long) |
2813
|
799 |
|
800 ### Does the C compiler handle alloca() and const correctly? |
|
801 |
3887
|
802 AC_FUNC_ALLOCA([]) |
2813
|
803 AC_C_CONST |
|
804 |
|
805 ### See if we should define NPOS. |
|
806 |
|
807 OCTAVE_STRING_NPOS |
|
808 |
869
|
809 ### Checks for header files. |
|
810 |
832
|
811 AC_HEADER_STDC |
|
812 AC_HEADER_DIRENT |
1377
|
813 AC_HEADER_TIME |
|
814 AC_HEADER_SYS_WAIT |
2097
|
815 |
4051
|
816 ### C headers |
|
817 |
4067
|
818 AC_CHECK_HEADERS(assert.h curses.h direct.h dlfcn.h fcntl.h float.h \ |
4051
|
819 floatingpoint.h grp.h ieeefp.h limits.h memory.h nan.h \ |
|
820 ncurses.h poll.h pwd.h stdlib.h string.h sys/ioctl.h \ |
3308
|
821 sys/param.h sys/poll.h sys/resource.h sys/select.h sys/stat.h \ |
|
822 sys/time.h sys/times.h sys/types.h sys/utsname.h termcap.h \ |
3887
|
823 unistd.h varargs.h) |
|
824 |
4051
|
825 ### C++ headers |
|
826 |
|
827 AC_LANG_PUSH(C++) |
|
828 AC_CHECK_HEADERS(sstream) |
|
829 AC_LANG_POP(C++) |
|
830 |
3887
|
831 have_termios_h=no |
|
832 AC_CHECK_HEADERS($TERMIOS_H, have_termios_h=yes) |
|
833 AC_CHECK_HEADERS(termio.h, have_termio_h=yes, have_termio_h=no) |
|
834 AC_CHECK_HEADERS(sgtty.h, have_sgtty_h=yes, have_sgtty_h=no) |
|
835 AC_CHECK_HEADERS(glob.h, have_glob_h=yes, have_glob_h=no) |
|
836 AC_CHECK_HEADERS(fnmatch.h, have_fnmatch_h=yes, have_fnmatch_h=no) |
4067
|
837 AC_CHECK_HEADERS(conio.h, have_conio_h=yes, have_conio_h=no) |
3249
|
838 |
3225
|
839 ### I'm told that termios.h is broken on NeXT systems. |
|
840 |
|
841 case "$canonical_host_type" in |
|
842 *-*-nextstep*) |
3887
|
843 if test "$have_termios_h" = yes; then |
3249
|
844 AC_MSG_WARN([Ignoring termios.h on NeXT systems.]) |
3887
|
845 have_termios_h=no |
3249
|
846 fi |
3225
|
847 ;; |
|
848 esac |
|
849 |
3887
|
850 if test "$have_termios_h" = yes \ |
|
851 || test "$have_termio_h" = yes \ |
|
852 || test "$have_sgtty_h" = yes; then |
832
|
853 true |
|
854 else |
4064
|
855 AC_MSG_WARN([I couldn't find termios.h, termio.h, or sgtty.h!]) |
832
|
856 fi |
869
|
857 |
3697
|
858 ## I'm told that setting LIBGLOB to be $(TOPDIR)/glob/libglob.a causes |
|
859 ## trouble on SCO systems, but setting it to be the two object files |
|
860 ## avoids the problem. |
3177
|
861 |
3156
|
862 GLOB_DIR=glob |
3697
|
863 LIBGLOB='$(TOPDIR)/glob/glob.o $(TOPDIR)/glob/fnmatch.o' |
3156
|
864 GLOB_INCFLAGS='-I$(top_srcdir)/glob -I$(TOPDIR)/glob' |
3887
|
865 if test "$have_fnmatch_h" = yes && test "$have_glob_h" = yes; then |
|
866 AC_EGREP_CPP(yes, [#include <fnmatch.h> |
|
867 #ifdef FNM_NOESCAPE |
|
868 #ifdef FNM_FOOBAR_PATHNAME /* FIXME: delete FOOBAR_ ? */ |
|
869 #ifdef FNM_PERIOD |
|
870 yes |
|
871 #endif |
|
872 #endif |
|
873 #endif |
3177
|
874 ], [ |
|
875 GLOB_DIR= |
|
876 AC_CHECK_LIB(glob, glob) |
3887
|
877 AC_CHECK_FUNCS(fnmatch, have_fnmatch=yes, have_fnmatch=no) |
|
878 AC_CHECK_FUNCS(glob, have_glob=yes, have_glob=no) |
|
879 if test "$have_fnmatch" = yes && test "$have_glob" = yes; then |
3177
|
880 GLOB_DIR= |
|
881 LIBGLOB= |
|
882 GLOB_INCFLAGS= |
|
883 fi |
|
884 ]) |
3156
|
885 fi |
|
886 AC_SUBST(GLOB_DIR) |
|
887 AC_SUBST(LIBGLOB) |
|
888 AC_SUBST(GLOB_INCFLAGS) |
|
889 |
1788
|
890 ### Checks for functions and variables. |
869
|
891 |
3710
|
892 AC_CHECK_FUNCS(atexit bcopy bzero dup2 endgrent endpwent execvp \ |
|
893 fcntl fork getcwd getegid geteuid getgid getgrent getgrgid \ |
3803
|
894 getgrnam getpgrp getpid getppid getpwent \ |
4092
|
895 getpwuid gettimeofday getuid getwd _kbhit kill link localtime_r lstat \ |
|
896 memmove mkdir mkfifo on_exit pipe poll putenv raise readlink rename \ |
3710
|
897 rindex rmdir select setgrent setpwent setvbuf sigaction sigpending \ |
|
898 sigprocmask sigsuspend stat strcasecmp strdup strerror strftime \ |
|
899 stricmp strncasecmp strnicmp strptime symlink tempnam umask unlink \ |
|
900 usleep vfprintf vsprintf vsnprintf waitpid) |
1300
|
901 |
1708
|
902 OCTAVE_SMART_PUTENV |
|
903 |
4110
|
904 ### Dynamic linking is now enabled only if we are building shared |
|
905 ### libs and some API for dynamic linking is detected. |
|
906 |
3705
|
907 LD_CXX='$(CXX)' |
2064
|
908 LIBDLFCN= |
|
909 DLFCN_INCFLAGS= |
3232
|
910 RDYNAMIC_FLAG= |
4110
|
911 DL_API_MSG="" |
|
912 dlopen_api=false |
|
913 shl_load_api=false |
|
914 loadlibrary_api=false |
|
915 if $SHARED_LIBS; then |
|
916 |
|
917 LIBOCTINTERP=-loctinterp$SHLLINKEXT |
|
918 LIBOCTAVE=-loctave$SHLLINKEXT |
|
919 LIBCRUFT=-lcruft$SHLLINKEXT |
|
920 |
|
921 AC_CHECK_LIB(dl, dlopen) |
|
922 AC_CHECK_FUNCS(dlopen dlsym dlerror dlclose) |
|
923 if test $ac_cv_func_dlclose = yes && test $ac_cv_func_dlerror = yes \ |
|
924 && test $ac_cv_func_dlopen = yes && test $ac_cv_func_dlsym = yes; then |
|
925 dlopen_api=true |
|
926 else |
|
927 AC_CHECK_LIB(dld, shl_load) |
|
928 AC_CHECK_FUNCS(shl_load shl_findsym) |
|
929 if test $ac_cv_func_shl_load = yes \ |
|
930 && test $ac_cv_func_shl_findsym = yes; then |
|
931 shl_load_api=true |
|
932 else |
|
933 AC_CHECK_LIB(wsock32, LoadLibrary) |
|
934 AC_CHECK_FUNCS(LoadLibrary) |
|
935 if test $ac_cv_func_loadlibrary = yes; then |
|
936 loadlibrary_api=true |
2063
|
937 else |
4110
|
938 case "$canonical_host_type" in |
|
939 rs6000-ibm-aix* | powerpc-ibm-aix*) |
|
940 LIBDLFCN="-ldlfcn -ll -lld" |
|
941 DLFCN_INCFLAGS='-I$(top_srcdir)/dlfcn -I$(TOPDIR)/dlfcn' |
|
942 dlopen_api=true |
|
943 ;; |
|
944 i[[3456]]86-*-sco3.2v5*) |
|
945 LD_CXX='LD_RUN_PATH=$LD_RUN_PATH:$(octlibdir) $(CXX)' |
|
946 dlopen_api=true |
|
947 ;; |
|
948 esac |
2063
|
949 fi |
4110
|
950 fi |
|
951 fi |
|
952 |
|
953 if $dlopen_api; then |
|
954 DL_API_MSG="(dlopen)" |
|
955 AC_DEFINE(HAVE_DLOPEN_API, 1, [Define if your system has dlopen, dlsym, dlerror, and dlclose for dynamic linking]) |
3958
|
956 OCTAVE_CXX_FLAG(-rdynamic, [RDYNAMIC_FLAG=-rdynamic]) |
4110
|
957 elif $shl_load_api; then |
|
958 DL_API_MSG="(shl_load)" |
|
959 AC_DEFINE(HAVE_SHL_LOAD_API, 1, [Define if your system has shl_load and shl_findsym for dynamic linking]) |
|
960 elif $loadlibrary_api; then |
|
961 DL_API_MSG="(LoadLibrary)" |
|
962 AC_DEFINE(HAVE_LOADLIBRARY_API, 1, [Define if your system has LoadLibrary for dynamic linking]) |
|
963 fi |
|
964 |
|
965 if $dlopen_api || $shl_load_api || $loadlibrary_api; then |
4128
|
966 ENABLE_DYNAMIC_LINKING=true |
|
967 AC_DEFINE(ENABLE_DYNAMIC_LINKING, 1, [Define if using dynamic linking]) |
1978
|
968 fi |
|
969 else |
4110
|
970 LIBOCTINTERP='$(TOPDIR)/src/liboctinterp.$(LIBEXT)' |
|
971 LIBOCTAVE='$(TOPDIR)/liboctave/liboctave.$(LIBEXT)' |
|
972 LIBCRUFT='$(TOPDIR)/libcruft/libcruft.$(LIBEXT)' |
1664
|
973 fi |
4110
|
974 AC_SUBST(LD_CXX) |
2064
|
975 AC_SUBST(LIBDLFCN) |
|
976 AC_SUBST(DLFCN_INCFLAGS) |
3232
|
977 AC_SUBST(RDYNAMIC_FLAG) |
4128
|
978 AC_SUBST(ENABLE_DYNAMIC_LINKING) |
4110
|
979 AC_SUBST(LIBOCTINTERP) |
|
980 AC_SUBST(LIBOCTAVE) |
|
981 AC_SUBST(LIBCRUFT) |
1901
|
982 |
1300
|
983 ### There is more than one possible prototype for gettimeofday. See |
2782
|
984 ### which one (if any) appears in sys/time.h. These tests are from |
|
985 ### Emacs 19. |
1300
|
986 |
2782
|
987 AC_MSG_CHECKING(for struct timeval) |
|
988 AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIME |
|
989 #include <sys/time.h> |
|
990 #include <time.h> |
|
991 #else |
|
992 #ifdef HAVE_SYS_TIME_H |
|
993 #include <sys/time.h> |
|
994 #else |
|
995 #include <time.h> |
|
996 #endif |
|
997 #endif], [static struct timeval x; x.tv_sec = x.tv_usec;], |
|
998 [AC_MSG_RESULT(yes) |
|
999 HAVE_TIMEVAL=yes |
3887
|
1000 AC_DEFINE(HAVE_TIMEVAL, 1, [Define if struct timeval is defined.])], |
2782
|
1001 [AC_MSG_RESULT(no) |
|
1002 HAVE_TIMEVAL=no]) |
|
1003 |
|
1004 if test "x$HAVE_TIMEVAL" = xyes; then |
|
1005 AC_MSG_CHECKING(whether gettimeofday can't accept two arguments) |
|
1006 AC_TRY_LINK([#ifdef TIME_WITH_SYS_TIME |
|
1007 #include <sys/time.h> |
|
1008 #include <time.h> |
|
1009 #else |
|
1010 #ifdef HAVE_SYS_TIME_H |
|
1011 #include <sys/time.h> |
|
1012 #else |
|
1013 #include <time.h> |
|
1014 #endif |
|
1015 #endif],[struct timeval time; struct timezone dummy; |
|
1016 gettimeofday (&time, &dummy);], [AC_MSG_RESULT(no)], |
|
1017 [AC_MSG_RESULT(yes) |
3887
|
1018 AC_DEFINE(GETTIMEOFDAY_NO_TZ, 1, [Define if your system has a single-arg prototype for gettimeofday.])]) |
2782
|
1019 fi |
869
|
1020 |
832
|
1021 dnl Would like to get rid of this cruft, and just have |
|
1022 dnl |
|
1023 dnl AC_CHECK_FUNCS(finite isnan isinf) |
|
1024 dnl |
|
1025 dnl instead, but that used to fail on some systems... |
369
|
1026 dnl |
832
|
1027 dnl Also just using AC_CHECK_FUNCS doesn't seem to work to find isinf |
|
1028 dnl and isnan on Linux systems, so we use AC_CHECK_FUNC, and if that |
369
|
1029 dnl fails, we try again by including math.h and invoking the function |
|
1030 dnl with an argument. |
869
|
1031 |
2508
|
1032 ### I am told that Inf and NaN don't work on m68k HP sytems, and that |
|
1033 ### on SCO systems, isnan and isinf don't work, but they can be |
|
1034 ### replaced by something that does. |
956
|
1035 |
|
1036 case "$canonical_host_type" in |
1384
|
1037 m68k-hp-hpux*) |
956
|
1038 ;; |
2508
|
1039 *-*-sco*) |
|
1040 AC_MSG_RESULT([defining SCO to be 1]) |
3887
|
1041 AC_DEFINE(SCO, 1, [Define if using an SCO system.]) |
2508
|
1042 AC_MSG_RESULT([forcing HAVE_ISINF for SCO]) |
3887
|
1043 AC_DEFINE(HAVE_ISINF, 1, [Define if you have isinf().]) |
2508
|
1044 AC_MSG_RESULT([forcing HAVE_ISNAN for SCO]) |
3887
|
1045 AC_DEFINE(HAVE_ISNAN, 1, [Define if you have isnan().]) |
2508
|
1046 ;; |
956
|
1047 *) |
3475
|
1048 AC_CHECK_FUNCS(finite isnan isinf) |
956
|
1049 ;; |
|
1050 esac |
|
1051 |
1076
|
1052 ### Check for nonstandard but common math functions that we need. |
|
1053 |
3130
|
1054 AC_CHECK_FUNCS(acosh asinh atanh erf erfc) |
|
1055 |
869
|
1056 ### Checks for OS specific cruft. |
|
1057 |
3887
|
1058 AC_CHECK_MEMBERS([struct stat.st_blksize, struct stat.st_blocks, struct stat.st_rdev]) |
|
1059 |
405
|
1060 AC_STRUCT_TM |
1186
|
1061 AC_STRUCT_TIMEZONE |
1388
|
1062 AC_FUNC_CLOSEDIR_VOID |
1225
|
1063 |
3892
|
1064 AC_CHECK_MEMBERS(struct group.gr_passwd) |
2548
|
1065 |
4067
|
1066 # mkdir takes a single argument on some systems. |
|
1067 OCTAVE_MKDIR_TAKES_ONE_ARG |
|
1068 |
3887
|
1069 octave_found_termlib=no |
2592
|
1070 for termlib in ncurses curses termcap terminfo termlib; do |
2034
|
1071 AC_CHECK_LIB(${termlib}, tputs, [TERMLIBS="${TERMLIBS} -l${termlib}"]) |
405
|
1072 case "${TERMLIBS}" in |
|
1073 *-l${termlib}*) |
3822
|
1074 LIBS="$TERMLIBS $LIBS" |
4102
|
1075 AC_SUBST(TERMLIBS) |
3887
|
1076 octave_found_termlib=yes |
405
|
1077 break |
|
1078 ;; |
|
1079 esac |
|
1080 done |
869
|
1081 |
3887
|
1082 if test "$octave_found_termlib" = no; then |
|
1083 warn_termlibs="I couldn't find -ltermcap, -lterminfo, -lncurses, -lcurses, o\ |
|
1084 r -ltermlib!" |
3105
|
1085 AC_MSG_WARN($warn_termlibs) |
2488
|
1086 fi |
|
1087 |
3822
|
1088 OCTAVE_ENABLE_READLINE |
|
1089 |
832
|
1090 AC_MSG_CHECKING([for struct exception in math.h]) |
|
1091 AC_TRY_LINK([#include <math.h>], |
|
1092 [struct exception *x; x->type; x->name;], |
835
|
1093 AC_MSG_RESULT(yes) |
3887
|
1094 AC_DEFINE(EXCEPTION_IN_MATH, 1, [Define if your math.h declares struct exception for matherr().]), |
869
|
1095 AC_MSG_RESULT(no)) |
|
1096 |
|
1097 ### Signal stuff. |
|
1098 |
834
|
1099 AC_TYPE_SIGNAL |
885
|
1100 AC_DECL_SYS_SIGLIST |
|
1101 AC_MSG_CHECKING([for sys_siglist variable]) |
|
1102 AC_TRY_LINK([#include <stdio.h>], |
|
1103 [extern char *sys_siglist[]; printf ("%s\n", sys_siglist[1]);], |
|
1104 AC_MSG_RESULT(yes) |
3887
|
1105 AC_DEFINE(HAVE_SYS_SIGLIST, 1, [Define if your system has a sys_siglist variable.]), |
885
|
1106 AC_MSG_RESULT(no)) |
2470
|
1107 OCTAVE_SIGNAL_CHECK |
|
1108 OCTAVE_REINSTALL_SIGHANDLERS |
869
|
1109 |
1762
|
1110 ### Type stuff. |
|
1111 |
|
1112 AC_TYPE_MODE_T |
|
1113 AC_TYPE_OFF_T |
2097
|
1114 AC_TYPE_PID_T |
1762
|
1115 AC_TYPE_SIZE_T |
|
1116 AC_TYPE_UID_T |
3892
|
1117 AC_CHECK_TYPES([dev_t, ino_t, nlink_t, nlink_t]) |
|
1118 AC_CHECK_TYPES(sigset_t, , , [#include <signal.h>]) |
1762
|
1119 |
2633
|
1120 ### A system dependent kluge or two. |
|
1121 |
2035
|
1122 AC_CHECK_FUNCS(getrusage times) |
2427
|
1123 case "$canonical_host_type" in |
3971
|
1124 *-*-cygwin*) |
3887
|
1125 AC_DEFINE(RUSAGE_TIMES_ONLY, 1, [Define if your struct rusage only has time information.]) |
2427
|
1126 ;; |
|
1127 esac |
|
1128 |
2762
|
1129 bsd_gcc_kluge_targets_frag=/dev/null |
2633
|
1130 case "$canonical_host_type" in |
|
1131 *-*-386bsd* | *-*-openbsd* | *-*-netbsd* | *-*-freebsd*) |
|
1132 bsd_gcc_kluge_targets_frag=Makefrag.bsd |
|
1133 cat << \EOF > $bsd_gcc_kluge_targets_frag |
|
1134 |
|
1135 lex.o: lex.cc |
|
1136 $(CXX) -c $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) $< |
|
1137 |
|
1138 pt-plot.o: pt-plot.cc |
|
1139 $(CXX) -c $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) $< |
|
1140 |
|
1141 symtab.o: symtab.cc |
|
1142 $(CXX) -c $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) $< |
|
1143 |
|
1144 toplev.o: toplev.cc |
|
1145 $(CXX) -c $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) $< |
|
1146 |
|
1147 unwind-prot.o: unwind-prot.cc |
|
1148 $(CXX) -c $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) $< |
|
1149 |
|
1150 EOF |
|
1151 ;; |
|
1152 esac |
|
1153 AC_SUBST_FILE(bsd_gcc_kluge_targets_frag) |
|
1154 |
869
|
1155 ### Checks for other programs used for building, testing, installing, |
|
1156 ### and running Octave. |
|
1157 |
4084
|
1158 OCTAVE_PROG_SED |
|
1159 |
3729
|
1160 OCTAVE_PROG_FLEX |
|
1161 OCTAVE_PROG_BISON |
869
|
1162 |
1722
|
1163 AC_PROG_LN_S |
|
1164 |
3222
|
1165 OCTAVE_PROG_NM |
3130
|
1166 OCTAVE_PROG_RUNTEST |
869
|
1167 |
405
|
1168 AC_PROG_INSTALL |
2642
|
1169 INSTALL_SCRIPT='${INSTALL}' |
|
1170 AC_SUBST(INSTALL_SCRIPT) |
869
|
1171 |
3130
|
1172 OCTAVE_PROG_GNUPLOT |
|
1173 OCTAVE_PROG_PAGER |
3673
|
1174 OCTAVE_PROG_GPERF |
3130
|
1175 |
2032
|
1176 ### Even though we include config.h, we need to have the preprocessor |
|
1177 ### defines available in a variable for the octave-bug script. Use |
|
1178 ### UGLY_DEFS for that. |
|
1179 |
|
1180 AC_OUTPUT_MAKE_DEFS |
3956
|
1181 |
|
1182 |
|
1183 dnl Maybe this should really be conditional on "broken sed", or |
|
1184 dnl "broken shell backslash quoting" or somesuch. |
|
1185 dnl |
|
1186 case "$canonical_host_type" in |
|
1187 *-*-darwin*) |
|
1188 UGLY_DEFS=`echo $DEFS | sed 's,\\",\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",g'` |
|
1189 ;; |
|
1190 *) |
|
1191 UGLY_DEFS=`echo $DEFS | sed 's,\\",\\\\\\\\\\\\\\\\\\",g'` |
|
1192 ;; |
|
1193 esac |
2032
|
1194 AC_MSG_RESULT([defining UGLY_DEFS to be $UGLY_DEFS]) |
|
1195 AC_SUBST(UGLY_DEFS) |
|
1196 |
869
|
1197 ### Maybe add -Wall to compiler flags now that we're done feature |
|
1198 ### testing. |
|
1199 |
3131
|
1200 if test -z "$EXTERN_CFLAGS"; then |
|
1201 OCTAVE_CC_FLAG(-Wall) |
405
|
1202 fi |
3131
|
1203 |
|
1204 if test -z "$EXTERN_CXXFLAGS"; then |
|
1205 OCTAVE_CXX_FLAG(-Wall) |
405
|
1206 fi |
869
|
1207 |
2813
|
1208 ### Someday, maybe include -ansi and even -pedantic in this list... |
|
1209 |
|
1210 GCC_PICKY_FLAGS="-Wcast-align -Wcast-qual -Wid-clash-31 \ |
|
1211 -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith \ |
|
1212 -Wstrict-prototypes -Wwrite-strings" |
|
1213 |
3131
|
1214 GXX_PICKY_FLAGS="$GCC_PICKY_FLAGS -Weffc++ -Wenum-clash -fno-nonnull-objects" |
2813
|
1215 |
|
1216 AC_ARG_ENABLE(picky-flags, |
|
1217 [ --enable-picky-flags add picky options to CFLAGS, CXXFLAGS, FFLAGS], |
3131
|
1218 [if test "$enableval" = no; then |
|
1219 true |
2813
|
1220 elif test "$enableval" = yes; then |
3131
|
1221 if test -z "$EXTERN_CFLAGS"; then |
|
1222 for flag in $GCC_PICKY_FLAGS; do |
|
1223 OCTAVE_CC_FLAG($flag) |
|
1224 done |
2813
|
1225 fi |
3131
|
1226 if test -z "$EXTERN_CXXFLAGS"; then |
|
1227 for flag in $GXX_PICKY_FLAGS; do |
|
1228 OCTAVE_CXX_FLAG($flag) |
|
1229 done |
2813
|
1230 fi |
|
1231 fi], []) |
|
1232 |
1146
|
1233 ### Run configure in subdirectories. |
|
1234 |
1304
|
1235 export CC |
|
1236 export CXX |
|
1237 export F77 |
|
1238 |
3887
|
1239 AC_CONFIG_SUBDIRS(kpathsea scripts) |
|
1240 |
|
1241 # autoconf 2.50 deprecates the use of variables (e.g. $GLOB_DIR) |
|
1242 # in AC_CONFIG_SUBDIRS; the following form is recommended instead: |
|
1243 |
|
1244 if test "x$GLOB_DIR" = xglob; then |
|
1245 AC_CONFIG_SUBDIRS(glob) |
|
1246 fi |
|
1247 |
|
1248 if test "x$PLPLOT_DIR" = xplplot; then |
|
1249 AC_CONFIG_SUBDIRS(plplot) |
|
1250 fi |
1146
|
1251 |
3923
|
1252 ### Some things to add to the bottom of config.h. |
|
1253 |
|
1254 AH_BOTTOM([ |
|
1255 #if defined (__GNUC__) |
|
1256 #define GCC_ATTR_NORETURN __attribute__ ((__noreturn__)) |
|
1257 #define GCC_ATTR_UNUSED __attribute__ ((__unused__)) |
|
1258 #else |
|
1259 #define GCC_ATTR_NORETURN |
|
1260 #define GCC_ATTR_UNUSED |
|
1261 #endif |
|
1262 |
|
1263 #define CONST_CAST(T, E) (T) (E) |
|
1264 |
|
1265 #define DYNAMIC_CAST(T, E) (T) (E) |
|
1266 |
|
1267 #define REINTERPRET_CAST(T, E) (T) (E) |
|
1268 |
|
1269 #define STATIC_CAST(T, E) (T) (E) |
|
1270 |
|
1271 #define X_CAST(T, E) (T) (E) |
|
1272 |
|
1273 #define HEAVYWEIGHT_INDEXING 1 |
|
1274 |
|
1275 #define WITH_KPATHSEARCH 1 |
|
1276 |
|
1277 #if defined(HAVE_F2C) && !defined(F77_FUNC) |
|
1278 # define F77_FUNC(x,X) x ## _ |
|
1279 # define F77_FUNC_(x,X) x ## __ |
|
1280 #endif |
|
1281 |
|
1282 #if !defined(HAVE_DEV_T) |
4064
|
1283 typedef short dev_t; |
3923
|
1284 #endif |
|
1285 |
|
1286 #if !defined(HAVE_INO_T) |
4064
|
1287 typedef unsigned long ino_t; |
3923
|
1288 #endif |
|
1289 |
|
1290 #if !defined(HAVE_NLINK_T) |
4064
|
1291 typedef short nlink_t; |
3923
|
1292 #endif |
|
1293 |
|
1294 #if !defined(HAVE_SIGSET_T) |
4064
|
1295 typedef int sigset_t; |
3923
|
1296 #endif |
4101
|
1297 |
|
1298 #define OCTAVE_HAVE_POSIX_FILESYSTEM 1 |
|
1299 |
|
1300 #if defined (__WIN32__) |
|
1301 #define OCTAVE_HAVE_WINDOWS_FILESYSTEM 1 |
|
1302 #if ! defined (__CYGWIN__) |
|
1303 #undef OCTAVE_HAVE_POSIX_FILESYSTEM |
|
1304 #endif |
|
1305 #endif |
|
1306 |
|
1307 /* Define if we expect to have <windows.h>, Sleep, etc. */ |
4102
|
1308 #if defined (__WIN32__) && ! defined (__CYGWIN__) |
4101
|
1309 #define OCTAVE_USE_WINDOWS_API 1 |
|
1310 #endif |
3923
|
1311 ]) |
|
1312 |
869
|
1313 ### Do the substitutions in all the Makefiles. |
|
1314 |
3887
|
1315 AC_CONFIG_FILES([Makefile octMakefile Makeconf install-octave \ |
3215
|
1316 test/Makefile dlfcn/Makefile \ |
|
1317 doc/Makefile doc/faq/Makefile doc/interpreter/Makefile \ |
|
1318 doc/liboctave/Makefile doc/refcard/Makefile emacs/Makefile \ |
|
1319 examples/Makefile liboctave/Makefile src/Makefile \ |
|
1320 libcruft/Makefile libcruft/Makerules \ |
3220
|
1321 libcruft/amos/Makefile libcruft/blas/Makefile \ |
3989
|
1322 libcruft/daspk/Makefile libcruft/dasrt/Makefile \ |
3220
|
1323 libcruft/dassl/Makefile libcruft/fftpack/Makefile \ |
|
1324 libcruft/lapack/Makefile libcruft/linpack/Makefile \ |
|
1325 libcruft/minpack/Makefile libcruft/misc/Makefile \ |
3983
|
1326 libcruft/odepack/Makefile libcruft/odessa/Makefile \ |
|
1327 libcruft/ordered-qz/Makefile \ |
3220
|
1328 libcruft/quadpack/Makefile libcruft/ranlib/Makefile \ |
3215
|
1329 libcruft/slatec-fn/Makefile libcruft/slatec-err/Makefile \ |
3690
|
1330 libcruft/villad/Makefile \ |
3887
|
1331 libcruft/blas-xtra/Makefile libcruft/lapack-xtra/Makefile]) |
|
1332 AC_OUTPUT |
1225
|
1333 |
3887
|
1334 AC_CONFIG_COMMANDS([default-1],[[chmod +x install-octave]],[[]]) |
3176
|
1335 |
1225
|
1336 ### Print a summary so that important information isn't missed. |
|
1337 |
|
1338 if test -z "$F77"; then |
|
1339 FORT="$F2C $F2CFLAGS" |
|
1340 else |
2610
|
1341 FORT="$F77 $FFLAGS" |
1225
|
1342 fi |
|
1343 |
|
1344 AC_MSG_RESULT([ |
|
1345 |
|
1346 Octave is now configured for $canonical_host_type |
|
1347 |
1664
|
1348 Source directory: $srcdir |
|
1349 Installation prefix: $prefix |
3126
|
1350 C compiler: $CC $XTRA_CFLAGS $CFLAGS |
|
1351 C++ compiler: $CXX $XTRA_CXXFLAGS $CXXFLAGS |
1664
|
1352 Fortran compiler: $FORT |
|
1353 Fortran libraries: $FLIBS |
3820
|
1354 BLAS libraries: $BLAS_LIBS |
3827
|
1355 FFTW libraries: $FFTW_LIBS |
3820
|
1356 HDF5 libraries: $HDF5_LIBS |
3822
|
1357 LIBS: $LIBS |
1664
|
1358 Default pager: $DEFAULT_PAGER |
|
1359 gnuplot: $GNUPLOT_BINARY |
|
1360 |
4110
|
1361 Do internal array bounds checking: $BOUNDS_CHECKING |
|
1362 Build static libraries: $STATIC_LIBS |
|
1363 Build shared libraries: $SHARED_LIBS |
4128
|
1364 Dynamic Linking: $ENABLE_DYNAMIC_LINKING $DL_API_MSG |
4110
|
1365 Include support for GNU readline: $USE_READLINE |
1225
|
1366 ]) |
3105
|
1367 |
|
1368 warn_msg_printed=false |
|
1369 |
|
1370 if test -n "$warn_f77_and_g77"; then |
|
1371 AC_MSG_WARN($warn_f77_and_g77) |
|
1372 warn_msg_printed=true |
|
1373 fi |
|
1374 |
|
1375 if test -n "$warn_f2c_and_f77"; then |
|
1376 AC_MSG_WARN($warn_f2c_and_f77) |
|
1377 warn_msg_printed=true |
|
1378 fi |
|
1379 |
|
1380 if test -n "$warn_f2c_and_g77"; then |
|
1381 AC_MSG_WARN($warn_f2c_and_g77) |
|
1382 warn_msg_printed=true |
|
1383 fi |
|
1384 |
|
1385 if test -n "$gxx_only"; then |
|
1386 AC_MSG_WARN($gxx_only) |
|
1387 warn_msg_printed=true |
|
1388 fi |
|
1389 |
|
1390 if test -n "$warn_gcc_version"; then |
|
1391 AC_MSG_WARN($warn_gcc_version) |
|
1392 warn_msg_printed=true |
|
1393 fi |
|
1394 |
|
1395 if test -n "$warn_gcc_only"; then |
|
1396 AC_MSG_WARN($warn_gcc_only) |
|
1397 warn_msg_printed=true |
|
1398 fi |
|
1399 |
|
1400 if test -n "$warn_f2c_no_lib"; then |
|
1401 AC_MSG_WARN($warn_f2c_no_lib) |
|
1402 warn_msg_printed=true |
|
1403 fi |
|
1404 |
3825
|
1405 if test -n "$warn_readline"; then |
|
1406 AC_MSG_WARN($warn_readline) |
|
1407 warn_msg_printed=true |
|
1408 fi |
|
1409 |
3105
|
1410 if test -n "$warn_termlibs"; then |
|
1411 AC_MSG_WARN($warn_termlibs) |
|
1412 warn_msg_printed=true |
|
1413 fi |
|
1414 |
3673
|
1415 if test -n "$warn_gperf"; then |
|
1416 AC_MSG_WARN($warn_gperf) |
|
1417 warn_msg_printed=true |
|
1418 fi |
|
1419 |
3105
|
1420 if test -n "$warn_flex"; then |
|
1421 AC_MSG_WARN($warn_flex) |
|
1422 warn_msg_printed=true |
|
1423 fi |
|
1424 |
|
1425 if test -n "$warn_bison"; then |
|
1426 AC_MSG_WARN($warn_bison) |
|
1427 warn_msg_printed=true |
|
1428 fi |
|
1429 |
|
1430 if test -n "$warn_less"; then |
|
1431 AC_MSG_WARN($warn_less) |
|
1432 warn_msg_printed=true |
|
1433 fi |
|
1434 |
|
1435 if test -n "$warn_runtest"; then |
|
1436 AC_MSG_WARN($warn_runtest) |
|
1437 warn_msg_printed=true |
|
1438 fi |
|
1439 |
|
1440 if test -n "$warn_gnuplot"; then |
|
1441 |
|
1442 ## If you change this text, be sure to also change the corresponding |
|
1443 ## set of warnings above. |
|
1444 |
|
1445 AC_MSG_WARN([I didn't find gnuplot. It isn't necessary to have gnuplot]) |
|
1446 AC_MSG_WARN([installed, but you won't be able to use any of Octave's]) |
|
1447 AC_MSG_WARN([plotting commands without it.]) |
|
1448 AC_MSG_WARN([]) |
|
1449 AC_MSG_WARN([If gnuplot is installed but it isn't in your path, you can]) |
|
1450 AC_MSG_WARN([tell Octave where to find it by typing the command]) |
|
1451 AC_MSG_WARN([]) |
|
1452 AC_MSG_WARN([gnuplot_binary = "/full/path/to/gnuplot/binary"]) |
|
1453 AC_MSG_WARN([]) |
|
1454 AC_MSG_WARN([at the Octave prompt.]) |
|
1455 warn_msg_printed=true |
|
1456 fi |
|
1457 |
|
1458 if $warn_msg_printed; then |
|
1459 AC_MSG_RESULT([]) |
|
1460 fi |
|
1461 |
|
1462 ### End of configure. |