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 |
3989
|
25 AC_REVISION($Revision: 1.363 $) |
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 |
|
321 |
3232
|
322 dnl This is bogus. We shouldn't have to explicitly add libc too! |
|
323 |
|
324 ### Look for math library. If found, this will add -lm to LIBS. |
|
325 |
|
326 case "$canonical_host_type" in |
|
327 *-*-nextstep*) |
|
328 ;; |
|
329 *-*-linux*) |
|
330 AC_CHECK_LIB(m, sin, , , -lc) |
|
331 ;; |
|
332 *) |
|
333 AC_CHECK_LIB(m, sin) |
|
334 ;; |
|
335 esac |
|
336 |
3820
|
337 ### Check for HDF5 library. |
|
338 |
|
339 ### XXX FIXME XXX -- how can user specify a set of libraries here? |
|
340 |
|
341 WITH_HDF5=true |
|
342 AC_ARG_WITH(hdf5, |
|
343 [ --without-hdf5 don't use HDF5], |
|
344 with_hdf5=$withval, with_hdf5=yes) |
|
345 |
|
346 hdf5_lib= |
|
347 if test "$with_hdf5" = yes; then |
|
348 hdf5_lib="hdf5" |
|
349 elif test "$with_hdf5" != no; then |
|
350 hdf5_lib="$with_hdf5" |
3687
|
351 fi |
|
352 |
3820
|
353 HDF5_LIBS= |
|
354 WITH_HDF5=false |
|
355 if test -n "$hdf5_lib"; then |
|
356 AC_CHECK_LIB($hdf5_lib, H5Pcreate, [ |
|
357 AC_CHECK_LIB(z, deflate, [ |
|
358 AC_CHECK_HEADERS(hdf5.h, [ |
|
359 WITH_HDF5=true |
|
360 HDF5_LIBS="-l$hdf5_lib -lz" |
|
361 LIBS="$HDF5_LIBS $LIBS" |
3892
|
362 AC_DEFINE(HAVE_HDF5, 1, [Define if HDF5 is available.])])])]) |
3820
|
363 fi |
3687
|
364 |
3827
|
365 # Checks for FFTW header and library. |
|
366 |
|
367 # subdirectories of libcruft to build if they aren't found on the system: |
|
368 FFT_DIR="fftpack" |
|
369 AC_SUBST(FFT_DIR) |
|
370 |
|
371 # Installed fftw library, if any. |
|
372 FFTW_LIBS='' |
|
373 AC_SUBST(FFTW_LIBS) |
|
374 |
|
375 AC_ARG_WITH(fftw, |
3886
|
376 [ --without-fftw use included fftpack instead of installed fftw], |
|
377 with_fftw=$withval, with_fftw=yes) |
3827
|
378 |
|
379 if test "$with_fftw" = "yes"; then |
3887
|
380 have_fftw_header=no |
|
381 AC_CHECK_HEADERS(dfftw.h fftw.h, [have_fftw_header=yes; break]) |
|
382 if test "$have_fftw_header" = yes; then |
3827
|
383 AC_CHECK_LIB(dfftw, fftw_create_plan, FFTW_LIBS="-ldfftw", |
|
384 [AC_CHECK_LIB(fftw, fftw_create_plan, FFTW_LIBS="-lfftw", with_fftw=no)]) |
|
385 else |
|
386 with_fftw=no |
|
387 fi |
|
388 fi |
|
389 |
|
390 if test "$with_fftw" = yes; then |
|
391 FFT_DIR='' |
3892
|
392 AC_DEFINE(HAVE_FFTW, 1, [Define if the FFTW library is available.]) |
3827
|
393 fi |
|
394 |
|
395 # ---------------------------------------------------------------------- |
|
396 |
3012
|
397 ### We need these before trying to find libf2c. |
|
398 |
3130
|
399 OCTAVE_PROG_AR |
3012
|
400 |
|
401 AC_PROG_RANLIB |
|
402 |
2813
|
403 ### If we haven't been forced to use a particular Fortran compiler, |
|
404 ### try to find one using any one of several common Un*x Fortran |
3887
|
405 ### compiler names using the AC_PROG_F77 macro. |
1239
|
406 ### |
2813
|
407 ### The configure options --with-f77, --with-g77, or --with-f2c |
|
408 ### force f77, g77 or f2c to be used. It is also possible to use |
|
409 ### these options to specify the name of the compiler. For example, |
|
410 ### `--with-g77=/opt/gnu/bin/f77' says that we are using g77 but it is |
|
411 ### installed as /opt/gnu/bin/f77. |
1233
|
412 |
2813
|
413 if $use_f77; then |
3008
|
414 if test "$with_f77" = yes; then |
2813
|
415 F77=f77 |
|
416 else |
|
417 F77="$with_f77" |
|
418 fi |
|
419 AC_MSG_RESULT([defining F77 to be $F77]) |
|
420 elif $use_g77; then |
2336
|
421 if test "$with_g77" = yes; then |
1239
|
422 F77=g77 |
|
423 else |
|
424 F77="$with_g77" |
|
425 fi |
|
426 AC_MSG_RESULT([defining F77 to be $F77]) |
1233
|
427 elif $use_f2c; then |
|
428 F77= |
2336
|
429 if test "$with_f2c" = yes; then |
1317
|
430 F2C=f2c |
1239
|
431 else |
|
432 F2C="$with_f2c" |
|
433 fi |
|
434 AC_MSG_RESULT([defining F2C to be $F2C]) |
1233
|
435 fi |
5
|
436 |
3887
|
437 if test "x$FFLAGS" = x; then |
|
438 FFLAGS="-O" # override -g -O default by AC_PROG_F77 |
|
439 fi |
|
440 |
|
441 # the F77 variable, if set, overrides AC_PROG_F77 automatically |
|
442 AC_PROG_F77 |
|
443 |
1239
|
444 have_fortran_compiler=false |
|
445 have_f2c=false |
5
|
446 |
2813
|
447 if $use_f2c; then |
1239
|
448 have_f2c=true |
|
449 else |
|
450 if test -n "$F77"; then |
3887
|
451 AC_F77_LIBRARY_LDFLAGS |
|
452 AC_F77_DUMMY_MAIN |
|
453 AC_F77_WRAPPERS |
|
454 case "$canonical_host_type" in |
|
455 alpha*-*-*) |
|
456 if test "$ac_cv_f77_compiler_gnu" = yes; then |
|
457 FFLAGS="$ieee_fp_flag $FFLAGS" |
|
458 else |
|
459 FFLAGS="-fpe1 $FFLAGS" |
|
460 fi |
|
461 ;; |
|
462 powerpc-apple-machten*) |
|
463 FFLAGS= |
|
464 ;; |
|
465 esac |
|
466 if test -n "$FFLAGS"; then |
|
467 AC_MSG_RESULT([defining FFLAGS to be $FFLAGS]) |
1239
|
468 fi |
|
469 have_fortran_compiler=true |
1233
|
470 else |
1239
|
471 AC_CHECK_PROG(F2C, f2c, f2c, []) |
3897
|
472 AC_ARG_VAR(F2C, [Fortran to C translator command]) |
|
473 AC_ARG_VAR(F2CFLAGS, [Fortran to C translator flags]) |
1239
|
474 if test -n "$F2C"; then |
|
475 have_f2c=true |
5
|
476 fi |
|
477 fi |
|
478 fi |
869
|
479 |
2762
|
480 f77_rules_frag=/dev/null |
1239
|
481 if $have_fortran_compiler; then |
2762
|
482 f77_rules_frag=Makefrag.f77 |
1679
|
483 cat << \EOF > $f77_rules_frag |
1668
|
484 |
1753
|
485 %.c : %.f |
1668
|
486 |
1791
|
487 %.o : %.f |
3615
|
488 $(FC) -c $(ALL_FFLAGS) -o $@ $< |
1668
|
489 |
1984
|
490 pic/%.o : %.f |
|
491 $(FC) -c $(FPICFLAG) $(ALL_FFLAGS) $< -o $@ |
|
492 |
1668
|
493 EOF |
1239
|
494 elif $have_f2c; then |
3887
|
495 AC_DEFINE(HAVE_F2C, 1, [Define if we are using f2c.]) |
2562
|
496 |
|
497 ### XXX FIMXE XXX -- these shouldn't be fixed names, eh? |
|
498 |
|
499 oct_conflib=libconflib.a |
|
500 oct_obj_ext=o |
|
501 |
|
502 if AC_TRY_EVAL(ac_compile); then |
3887
|
503 $AR $ARFLAGS $oct_conflib conftest.$oct_obj_ext 1>&AS_MESSAGE_LOG_FD() |
2562
|
504 if test -n "$RANLIB"; then |
3887
|
505 $RANLIB $oct_conflib 1>&AS_MESSAGE_LOG_FD() |
5
|
506 fi |
|
507 fi |
2562
|
508 rm -f conftest* |
3232
|
509 AC_CHECK_LIB(f2c, f_open, FLIBS=-lf2c, FLIBS=, [-L. -lconflib]) |
2562
|
510 rm -f $oct_conflib |
|
511 |
|
512 if test -z "$FLIBS"; then |
3232
|
513 AC_CHECK_LIB(F77, d_sin, FLIBS=-lF77, FLIBS=) |
2562
|
514 if test -n "$FLIBS"; then |
|
515 AC_CHECK_LIB(I77, f_rew, FLIBS="$FLIBS -lI77", FLIBS=, -lF77) |
|
516 fi |
|
517 fi |
|
518 |
1462
|
519 if test -z "$FLIBS"; then |
3105
|
520 warn_f2c_no_lib="I found f2c but not libf2c.a, or libF77.a and libI77.a" |
|
521 AC_MSG_WARN($warn_f2c_no_lib) |
5
|
522 fi |
2633
|
523 f77_rules_frag=Makefrag.f77 |
1679
|
524 cat << \EOF > $f77_rules_frag |
1668
|
525 |
1824
|
526 %.c : %.f |
3847
|
527 $(F2C) $(F2CFLAGS) < $< > $(@F) |
1668
|
528 |
1753
|
529 %.o : %.f |
1668
|
530 |
|
531 EOF |
5
|
532 else |
832
|
533 AC_MSG_WARN([in order to build octave, you must have a compatible]) |
|
534 AC_MSG_WARN([Fortran compiler or f2c installed and in your path.]) |
1664
|
535 AC_MSG_ERROR([See the file INSTALL for more information.]) |
5
|
536 fi |
869
|
537 |
1163
|
538 FC=$F77 |
|
539 AC_SUBST(FC) |
1679
|
540 AC_SUBST_FILE(f77_rules_frag) |
869
|
541 |
3820
|
542 ### Checks for BLAS and LAPACK libraries: |
3887
|
543 # (Build subdirectories of libcruft if they aren't found on the system.) |
3820
|
544 |
3887
|
545 sinclude(acx_blas.m4) |
|
546 sinclude(acx_lapack.m4) |
|
547 ACX_BLAS([], [BLAS_DIR="blas"]) |
|
548 ACX_LAPACK([BLAS_LIBS="$LAPACK_LIBS $BLAS_LIBS"], [LAPACK_DIR="lapack"]) |
3690
|
549 AC_SUBST(BLAS_DIR) |
|
550 AC_SUBST(LAPACK_DIR) |
|
551 |
2813
|
552 ### Handle dynamic linking and shared library options. |
|
553 |
|
554 ### Allow the user to experiment with dynamic linking using dlopen/dlsym. |
|
555 |
|
556 AC_ARG_ENABLE(dl, |
|
557 [ --enable-dl use dlopen/dlsym for dynamic linking (not all systems)], |
|
558 [if test "$enableval" = no; then WITH_DL=no; |
|
559 elif test "$enableval" = yes; then WITH_DL=yes; |
|
560 else WITH_DL=maybe; fi], |
|
561 WITH_DL=maybe) |
|
562 |
|
563 ### Allow the user to experiment with dynamic linking using |
|
564 ### shl_load/shl_findsym (HP/UX only?). |
|
565 |
|
566 AC_ARG_ENABLE(shl, |
|
567 [ --enable-shl use shl_load/shl_findsym for dynamic linking (HP only)], |
|
568 [if test "$enableval" = no; then WITH_SHL=no; |
|
569 elif test "$enableval" = yes; then WITH_SHL=yes; |
|
570 else WITH_SHL=maybe; fi], |
|
571 WITH_SHL=maybe) |
|
572 |
3034
|
573 ### Enable creation of static libraries. |
|
574 |
|
575 AC_ARG_ENABLE(static, |
|
576 [ --enable-static create static libraries], |
|
577 [if test "$enableval" = no; then STATIC_LIBS=false; |
|
578 else STATIC_LIBS=true; fi], |
|
579 STATIC_LIBS=true) |
|
580 AC_SUBST(STATIC_LIBS) |
|
581 |
2813
|
582 ### Enable creation of shared libraries. Currently only works with |
|
583 ### gcc on some systems. |
|
584 |
|
585 AC_ARG_ENABLE(shared, |
|
586 [ --enable-shared create shared libraries (not all systems)], |
|
587 [if test "$enableval" = no; then SHARED_LIBS=false; |
|
588 else SHARED_LIBS=true; fi], |
|
589 SHARED_LIBS=false) |
|
590 AC_SUBST(SHARED_LIBS) |
|
591 |
3034
|
592 if $STATIC_LIBS || $SHARED_LIBS; then |
|
593 true |
|
594 else |
|
595 AC_MSG_ERROR([You can't disable building static AND shared libraries!]) |
|
596 fi |
|
597 |
3156
|
598 if $SHARED_LIBS; then |
|
599 LIBOCTINTERP=-loctinterp |
|
600 LIBOCTAVE=-loctave |
3857
|
601 LIBOCT_READLINE=-loct-readline |
|
602 LIBOCT_PATHSEARCH=-loct-pathsearch |
3156
|
603 LIBCRUFT=-lcruft |
|
604 else |
|
605 LIBOCTINTERP='$(TOPDIR)/src/liboctinterp.$(LIBEXT)' |
|
606 LIBOCTAVE='$(TOPDIR)/liboctave/liboctave.$(LIBEXT)' |
3857
|
607 LIBOCT_READLINE='$(TOPDIR)/liboctave/liboct-readline.$(LIBEXT)' |
|
608 LIBOCT_PATHSEARCH='$(TOPDIR)/liboctave/liboct-pathsearch.$(LIBEXT)' |
3156
|
609 LIBCRUFT='$(TOPDIR)/libcruft/libcruft.$(LIBEXT)' |
|
610 fi |
|
611 AC_SUBST(LIBOCTINTERP) |
|
612 AC_SUBST(LIBOCTAVE) |
3857
|
613 AC_SUBST(LIBOCT_READLINE) |
|
614 AC_SUBST(LIBOCT_PATHSEARCH) |
3156
|
615 AC_SUBST(LIBCRUFT) |
|
616 |
2813
|
617 use_rpath=true |
|
618 AC_ARG_ENABLE(rpath, |
|
619 [ --enable-rpath add -rpath to link command for shared libraries], |
|
620 [if test "$enableval" = no; then use_rpath=false; fi], []) |
|
621 |
|
622 DLFCN_DIR= |
|
623 CPICFLAG=-fPIC |
|
624 CXXPICFLAG=-fPIC |
|
625 FPICFLAG=-fPIC |
|
626 SHLEXT=so |
3124
|
627 SH_LD="$CXX" |
2813
|
628 SH_LDFLAGS=-shared |
3036
|
629 SONAME_FLAGS= |
2813
|
630 RLD_FLAG= |
3775
|
631 TEMPLATE_AR="$AR" |
|
632 TEMPLATE_ARFLAGS="$ARFLAGS" |
2813
|
633 case "$canonical_host_type" in |
|
634 *-*-386bsd* | *-*-openbsd* | *-*-netbsd* | *-*-freebsd*) |
|
635 SH_LD=ld |
|
636 SH_LDFLAGS=-Bshareable |
|
637 ;; |
3127
|
638 alpha*-dec-osf*) |
2813
|
639 CPICFLAG= |
|
640 CXXPICFLAG= |
|
641 FPICFLAG= |
|
642 SH_LDFLAGS="-shared -Xlinker -expect_unresolved -Xlinker '*'" |
3037
|
643 SONAME_FLAGS='-Xlinker -soname -Xlinker $@' |
3162
|
644 RLD_FLAG='-Xlinker -rpath -Xlinker $(octlibdir)' |
2813
|
645 ;; |
3956
|
646 *-*-darwin*) |
|
647 SH_LDFLAGS='-bundle -bundle_loader $(bindir)/octave' |
|
648 ;; |
3740
|
649 *-*-linux* | *-*-gnu*) |
3038
|
650 SONAME_FLAGS='-Xlinker -soname -Xlinker $@' |
3162
|
651 RLD_FLAG='-Xlinker -rpath -Xlinker $(octlibdir)' |
2813
|
652 ;; |
3887
|
653 i[[3456]]86-*-sco3.2v5*) |
3705
|
654 SONAME_FLAGS='-Xlinker -h -Xlinker $@' |
|
655 RLD_FLAG= |
3160
|
656 SH_LDFLAGS=-G |
|
657 ;; |
2813
|
658 rs6000-ibm-aix* | powerpc-ibm-aix*) |
|
659 CPICFLAG= |
|
660 CXXPICFLAG= |
|
661 FPICFLAG= |
|
662 DLFCN_DIR=dlfcn |
|
663 ;; |
|
664 hppa*-hp-hpux*) |
3887
|
665 if test "$ac_cv_f77_compiler_gnu" = yes; then |
2813
|
666 FPICFLAG=-fPIC |
|
667 else |
|
668 FPICFLAG=+Z |
|
669 fi |
|
670 SHLEXT=sl |
|
671 SH_LDFLAGS="-shared -fPIC" |
3162
|
672 RLD_FLAG='-Xlinker +b -Xlinker $(octlibdir)' |
2813
|
673 ;; |
|
674 *-sgi-*) |
|
675 CPICFLAG= |
|
676 CXXPICFLAG= |
|
677 FPICFLAG= |
3162
|
678 RLD_FLAG='-L$(octlibdir)' |
2813
|
679 ;; |
|
680 sparc-sun-sunos4*) |
3887
|
681 if test "$ac_cv_f77_compiler_gnu" = yes; then |
2813
|
682 FPICFLAG=-fPIC |
|
683 else |
|
684 FPICFLAG=-PIC |
|
685 fi |
3059
|
686 SH_LD=ld |
|
687 SH_LDFLAGS="-assert nodefinitions" |
3162
|
688 RLD_FLAG='-L$(octlibdir)' |
2813
|
689 ;; |
3606
|
690 sparc-sun-solaris2* | i386-pc-solaris2*) |
3887
|
691 if test "$ac_cv_f77_compiler_gnu" = yes; then |
2813
|
692 FPICFLAG=-fPIC |
|
693 else |
3775
|
694 FPICFLAG=-KPIC |
|
695 fi |
|
696 if test "$GCC" = yes; then |
|
697 CPICFLAG=-fPIC |
|
698 else |
|
699 CPICFLAG=-KPIC |
2813
|
700 fi |
3775
|
701 if test "$GXX" = yes; then |
|
702 CXXPICFLAG=-fPIC |
|
703 SH_LDFLAGS=-shared |
|
704 else |
|
705 CXXPICFLAG=-KPIC |
|
706 SH_LDFLAGS=-G |
|
707 fi |
|
708 RLD_FLAG='-R $(octlibdir)' |
|
709 # Template closures in archive libraries need a different mechanism. |
3820
|
710 if test "$GXX" = yes; then |
3775
|
711 true |
|
712 else |
|
713 TEMPLATE_AR="$CXX" |
|
714 TEMPLATE_ARFLAGS="-xar -o" |
|
715 fi |
2813
|
716 ;; |
|
717 esac |
|
718 |
|
719 if $use_rpath; then |
|
720 true |
|
721 else |
|
722 RLD_FLAG= |
|
723 fi |
|
724 |
|
725 AC_MSG_RESULT([defining FPICFLAG to be $FPICFLAG]) |
|
726 AC_MSG_RESULT([defining CPICFLAG to be $CPICFLAG]) |
|
727 AC_MSG_RESULT([defining CXXPICFLAG to be $CXXPICFLAG]) |
|
728 AC_MSG_RESULT([defining SHLEXT to be $SHLEXT]) |
|
729 AC_MSG_RESULT([defining DLFCN_DIR to be $DLFCN_DIR]) |
|
730 AC_MSG_RESULT([defining SH_LD to be $SH_LD]) |
|
731 AC_MSG_RESULT([defining SH_LDFLAGS to be $SH_LDFLAGS]) |
3036
|
732 AC_MSG_RESULT([defining SONAME_FLAGS to be $SONAME_FLAGS]) |
2813
|
733 AC_MSG_RESULT([defining RLD_FLAG to be $RLD_FLAG]) |
3775
|
734 AC_MSG_RESULT([defining TEMPLATE_AR to be $TEMPLATE_AR]) |
|
735 AC_MSG_RESULT([defining TEMPLATE_ARFLAGS to be $TEMPLATE_ARFLAGS]) |
2813
|
736 AC_SUBST(FPICFLAG) |
|
737 AC_SUBST(CPICFLAG) |
|
738 AC_SUBST(CXXPICFLAG) |
|
739 AC_SUBST(SHLEXT) |
|
740 AC_SUBST(DLFCN_DIR) |
|
741 AC_SUBST(SH_LD) |
|
742 AC_SUBST(SH_LDFLAGS) |
3036
|
743 AC_SUBST(SONAME_FLAGS) |
2813
|
744 AC_SUBST(RLD_FLAG) |
3775
|
745 AC_SUBST(TEMPLATE_AR) |
|
746 AC_SUBST(TEMPLATE_ARFLAGS) |
2813
|
747 |
|
748 ### Allow compilation of smaller kernel. This only works if some form |
|
749 ### of dynamic linking is also supported and used. |
|
750 |
|
751 AC_ARG_ENABLE(lite-kernel, |
|
752 [ --enable-lite-kernel compile smaller kernel (requires dynamic linking)], |
|
753 [if test "$enableval" = no; then OCTAVE_LITE=false; |
|
754 else OCTAVE_LITE=true; fi], |
|
755 OCTAVE_LITE=false) |
|
756 if $OCTAVE_LITE; then |
3887
|
757 AC_DEFINE(OCTAVE_LITE, 1, [Define to compile smaller kernel.]) |
2813
|
758 fi |
|
759 AC_SUBST(OCTAVE_LITE) |
|
760 |
|
761 ### special checks for odd OS specific things. |
|
762 ### |
|
763 ### I am told that on some SCO systems, the only place to find some |
|
764 ### functions like gethostname and gettimeofday is in libsocket. |
|
765 |
3887
|
766 AC_CHECK_FUNCS(gethostname, [], [AC_CHECK_LIB(socket, gethostname)]) |
|
767 AC_CHECK_FUNCS(getpwnam, [], [AC_CHECK_LIB(sun, getpwnam)]) |
2813
|
768 |
|
769 ### How big are ints and how are they oriented? These could probably |
|
770 ### be eliminated in favor of run-time checks. |
|
771 |
3888
|
772 AC_CHECK_SIZEOF(short) |
|
773 AC_CHECK_SIZEOF(int) |
|
774 AC_CHECK_SIZEOF(long) |
|
775 AC_CHECK_SIZEOF(long long) |
2813
|
776 |
|
777 ### Does the C compiler handle alloca() and const correctly? |
|
778 |
3887
|
779 AC_FUNC_ALLOCA([]) |
2813
|
780 AC_C_CONST |
|
781 |
|
782 ### See if we should define NPOS. |
|
783 |
|
784 OCTAVE_STRING_NPOS |
|
785 |
869
|
786 ### Checks for header files. |
|
787 |
832
|
788 AC_HEADER_STDC |
|
789 AC_HEADER_DIRENT |
1377
|
790 AC_HEADER_TIME |
|
791 AC_HEADER_SYS_WAIT |
2097
|
792 |
3308
|
793 AC_CHECK_HEADERS(assert.h curses.h dlfcn.h fcntl.h float.h \ |
3887
|
794 floatingpoint.h grp.h ieeefp.h limits.h memory.h \ |
|
795 nan.h ncurses.h poll.h pwd.h stdlib.h string.h sys/ioctl.h \ |
3308
|
796 sys/param.h sys/poll.h sys/resource.h sys/select.h sys/stat.h \ |
|
797 sys/time.h sys/times.h sys/types.h sys/utsname.h termcap.h \ |
3887
|
798 unistd.h varargs.h) |
|
799 |
|
800 have_termios_h=no |
|
801 AC_CHECK_HEADERS($TERMIOS_H, have_termios_h=yes) |
|
802 AC_CHECK_HEADERS(termio.h, have_termio_h=yes, have_termio_h=no) |
|
803 AC_CHECK_HEADERS(sgtty.h, have_sgtty_h=yes, have_sgtty_h=no) |
|
804 AC_CHECK_HEADERS(glob.h, have_glob_h=yes, have_glob_h=no) |
|
805 AC_CHECK_HEADERS(fnmatch.h, have_fnmatch_h=yes, have_fnmatch_h=no) |
3249
|
806 |
3225
|
807 ### I'm told that termios.h is broken on NeXT systems. |
|
808 |
|
809 case "$canonical_host_type" in |
|
810 *-*-nextstep*) |
3887
|
811 if test "$have_termios_h" = yes; then |
3249
|
812 AC_MSG_WARN([Ignoring termios.h on NeXT systems.]) |
3887
|
813 have_termios_h=no |
3249
|
814 fi |
3225
|
815 ;; |
|
816 esac |
|
817 |
3887
|
818 if test "$have_termios_h" = yes \ |
|
819 || test "$have_termio_h" = yes \ |
|
820 || test "$have_sgtty_h" = yes; then |
832
|
821 true |
|
822 else |
|
823 AC_MSG_ERROR([I couldn't find termios.h, termio.h, or sgtty.h!]) |
|
824 fi |
869
|
825 |
3697
|
826 ## I'm told that setting LIBGLOB to be $(TOPDIR)/glob/libglob.a causes |
|
827 ## trouble on SCO systems, but setting it to be the two object files |
|
828 ## avoids the problem. |
3177
|
829 |
3156
|
830 GLOB_DIR=glob |
3697
|
831 LIBGLOB='$(TOPDIR)/glob/glob.o $(TOPDIR)/glob/fnmatch.o' |
3156
|
832 GLOB_INCFLAGS='-I$(top_srcdir)/glob -I$(TOPDIR)/glob' |
3887
|
833 if test "$have_fnmatch_h" = yes && test "$have_glob_h" = yes; then |
|
834 AC_EGREP_CPP(yes, [#include <fnmatch.h> |
|
835 #ifdef FNM_NOESCAPE |
|
836 #ifdef FNM_FOOBAR_PATHNAME /* FIXME: delete FOOBAR_ ? */ |
|
837 #ifdef FNM_PERIOD |
|
838 yes |
|
839 #endif |
|
840 #endif |
|
841 #endif |
3177
|
842 ], [ |
|
843 GLOB_DIR= |
|
844 AC_CHECK_LIB(glob, glob) |
3887
|
845 AC_CHECK_FUNCS(fnmatch, have_fnmatch=yes, have_fnmatch=no) |
|
846 AC_CHECK_FUNCS(glob, have_glob=yes, have_glob=no) |
|
847 if test "$have_fnmatch" = yes && test "$have_glob" = yes; then |
3177
|
848 GLOB_DIR= |
|
849 LIBGLOB= |
|
850 GLOB_INCFLAGS= |
|
851 fi |
|
852 ]) |
3156
|
853 fi |
|
854 AC_SUBST(GLOB_DIR) |
|
855 AC_SUBST(LIBGLOB) |
|
856 AC_SUBST(GLOB_INCFLAGS) |
|
857 |
1788
|
858 ### Checks for functions and variables. |
869
|
859 |
3710
|
860 AC_CHECK_FUNCS(atexit bcopy bzero dup2 endgrent endpwent execvp \ |
|
861 fcntl fork getcwd getegid geteuid getgid getgrent getgrgid \ |
3803
|
862 getgrnam getpgrp getpid getppid getpwent \ |
3710
|
863 getpwuid gettimeofday getuid getwd link localtime_r lstat \ |
|
864 memmove mkdir mkfifo on_exit pipe poll putenv readlink rename \ |
|
865 rindex rmdir select setgrent setpwent setvbuf sigaction sigpending \ |
|
866 sigprocmask sigsuspend stat strcasecmp strdup strerror strftime \ |
|
867 stricmp strncasecmp strnicmp strptime symlink tempnam umask unlink \ |
|
868 usleep vfprintf vsprintf vsnprintf waitpid) |
1300
|
869 |
1708
|
870 OCTAVE_SMART_PUTENV |
|
871 |
3705
|
872 LD_CXX='$(CXX)' |
2064
|
873 LIBDLFCN= |
|
874 DLFCN_INCFLAGS= |
3232
|
875 RDYNAMIC_FLAG= |
1978
|
876 if test "$WITH_DL" = yes || test "$WITH_DL" = maybe; then |
2063
|
877 case "$canonical_host_type" in |
|
878 rs6000-ibm-aix* | powerpc-ibm-aix*) |
2346
|
879 LIBDLFCN="-ldlfcn -ll -lld" |
2064
|
880 DLFCN_INCFLAGS='-I$(top_srcdir)/dlfcn -I$(TOPDIR)/dlfcn' |
2063
|
881 WITH_DL=true |
|
882 ;; |
3887
|
883 i[[3456]]86-*-sco3.2v5*) |
3705
|
884 LD_CXX='LD_RUN_PATH=$LD_RUN_PATH:$(octlibdir) $(CXX)' |
3160
|
885 WITH_DL=true |
|
886 ;; |
2063
|
887 *) |
|
888 AC_CHECK_LIB(dl, dlopen) |
3887
|
889 AC_CHECK_FUNCS(dlopen dlsym dlerror dlclose, [], [have_dl=false]) |
|
890 if test "x$have_dl" != xfalse; then |
|
891 WITH_DL=true |
2063
|
892 else |
|
893 if test "$WITH_DL" = yes; then |
|
894 AC_MSG_ERROR([--enable-dl specified, but functions are missing!]) |
|
895 fi |
|
896 WITH_DL=false |
|
897 fi |
|
898 ;; |
|
899 esac |
1978
|
900 if $WITH_DL; then |
3958
|
901 OCTAVE_CXX_FLAG(-rdynamic, [RDYNAMIC_FLAG=-rdynamic]) |
3887
|
902 AC_DEFINE(WITH_DL, 1, [Define if using dlopen/dlsym.]) |
1978
|
903 fi |
|
904 else |
|
905 WITH_DL=false |
1664
|
906 fi |
1978
|
907 AC_SUBST(WITH_DL) |
2064
|
908 AC_SUBST(LIBDLFCN) |
|
909 AC_SUBST(DLFCN_INCFLAGS) |
3232
|
910 AC_SUBST(RDYNAMIC_FLAG) |
3705
|
911 AC_SUBST(LD_CXX) |
1664
|
912 |
1978
|
913 if test "$WITH_SHL" = yes || test "$WITH_SHL" = maybe; then |
|
914 AC_CHECK_LIB(dld, shl_load) |
3887
|
915 AC_CHECK_FUNCS(shl_load shl_findsym, [], [have_shl=false]) |
|
916 if test "x$have_shl" != xfalse; then |
1978
|
917 WITH_SHL=true |
|
918 else |
|
919 if test "$WITH_SHL" = yes; then |
|
920 AC_MSG_ERROR([--enable-shl specified, but functions are missing!]) |
|
921 fi |
|
922 WITH_SHL=false |
|
923 fi |
|
924 if $WITH_SHL; then |
3887
|
925 AC_DEFINE(WITH_SHL, 1, [Define if using dld for dynamic linking.]) |
1978
|
926 fi |
|
927 else |
|
928 WITH_SHL=false |
1664
|
929 fi |
1978
|
930 AC_SUBST(WITH_SHL) |
1664
|
931 |
1901
|
932 ### Set WITH_DYNAMIC_LINKING after all the other shared library stuff |
|
933 ### has been determined. |
|
934 |
|
935 if $WITH_DL || $WITH_SHL; then |
3887
|
936 AC_DEFINE(WITH_DYNAMIC_LINKING, 1, [Define if using dynamic linking.]) |
1901
|
937 WITH_DYNAMIC_LINKING=true |
|
938 else |
|
939 WITH_DYNAMIC_LINKING=false |
|
940 fi |
|
941 AC_SUBST(WITH_DYNAMIC_LINKING) |
|
942 |
1300
|
943 ### There is more than one possible prototype for gettimeofday. See |
2782
|
944 ### which one (if any) appears in sys/time.h. These tests are from |
|
945 ### Emacs 19. |
1300
|
946 |
2782
|
947 AC_MSG_CHECKING(for struct timeval) |
|
948 AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIME |
|
949 #include <sys/time.h> |
|
950 #include <time.h> |
|
951 #else |
|
952 #ifdef HAVE_SYS_TIME_H |
|
953 #include <sys/time.h> |
|
954 #else |
|
955 #include <time.h> |
|
956 #endif |
|
957 #endif], [static struct timeval x; x.tv_sec = x.tv_usec;], |
|
958 [AC_MSG_RESULT(yes) |
|
959 HAVE_TIMEVAL=yes |
3887
|
960 AC_DEFINE(HAVE_TIMEVAL, 1, [Define if struct timeval is defined.])], |
2782
|
961 [AC_MSG_RESULT(no) |
|
962 HAVE_TIMEVAL=no]) |
|
963 |
|
964 if test "x$HAVE_TIMEVAL" = xyes; then |
|
965 AC_MSG_CHECKING(whether gettimeofday can't accept two arguments) |
|
966 AC_TRY_LINK([#ifdef TIME_WITH_SYS_TIME |
|
967 #include <sys/time.h> |
|
968 #include <time.h> |
|
969 #else |
|
970 #ifdef HAVE_SYS_TIME_H |
|
971 #include <sys/time.h> |
|
972 #else |
|
973 #include <time.h> |
|
974 #endif |
|
975 #endif],[struct timeval time; struct timezone dummy; |
|
976 gettimeofday (&time, &dummy);], [AC_MSG_RESULT(no)], |
|
977 [AC_MSG_RESULT(yes) |
3887
|
978 AC_DEFINE(GETTIMEOFDAY_NO_TZ, 1, [Define if your system has a single-arg prototype for gettimeofday.])]) |
2782
|
979 fi |
869
|
980 |
832
|
981 dnl Would like to get rid of this cruft, and just have |
|
982 dnl |
|
983 dnl AC_CHECK_FUNCS(finite isnan isinf) |
|
984 dnl |
|
985 dnl instead, but that used to fail on some systems... |
369
|
986 dnl |
832
|
987 dnl Also just using AC_CHECK_FUNCS doesn't seem to work to find isinf |
|
988 dnl and isnan on Linux systems, so we use AC_CHECK_FUNC, and if that |
369
|
989 dnl fails, we try again by including math.h and invoking the function |
|
990 dnl with an argument. |
869
|
991 |
2508
|
992 ### I am told that Inf and NaN don't work on m68k HP sytems, and that |
|
993 ### on SCO systems, isnan and isinf don't work, but they can be |
|
994 ### replaced by something that does. |
956
|
995 |
|
996 case "$canonical_host_type" in |
1384
|
997 m68k-hp-hpux*) |
956
|
998 ;; |
2508
|
999 *-*-sco*) |
|
1000 AC_MSG_RESULT([defining SCO to be 1]) |
3887
|
1001 AC_DEFINE(SCO, 1, [Define if using an SCO system.]) |
2508
|
1002 AC_MSG_RESULT([forcing HAVE_ISINF for SCO]) |
3887
|
1003 AC_DEFINE(HAVE_ISINF, 1, [Define if you have isinf().]) |
2508
|
1004 AC_MSG_RESULT([forcing HAVE_ISNAN for SCO]) |
3887
|
1005 AC_DEFINE(HAVE_ISNAN, 1, [Define if you have isnan().]) |
2508
|
1006 ;; |
956
|
1007 *) |
3475
|
1008 AC_CHECK_FUNCS(finite isnan isinf) |
956
|
1009 ;; |
|
1010 esac |
|
1011 |
1076
|
1012 ### Check for nonstandard but common math functions that we need. |
|
1013 |
3130
|
1014 AC_CHECK_FUNCS(acosh asinh atanh erf erfc) |
|
1015 |
869
|
1016 ### Checks for OS specific cruft. |
|
1017 |
3887
|
1018 AC_CHECK_MEMBERS([struct stat.st_blksize, struct stat.st_blocks, struct stat.st_rdev]) |
|
1019 |
405
|
1020 AC_STRUCT_TM |
1186
|
1021 AC_STRUCT_TIMEZONE |
1388
|
1022 AC_FUNC_CLOSEDIR_VOID |
1225
|
1023 |
3892
|
1024 AC_CHECK_MEMBERS(struct group.gr_passwd) |
2548
|
1025 |
3887
|
1026 octave_found_termlib=no |
2592
|
1027 for termlib in ncurses curses termcap terminfo termlib; do |
2034
|
1028 AC_CHECK_LIB(${termlib}, tputs, [TERMLIBS="${TERMLIBS} -l${termlib}"]) |
405
|
1029 case "${TERMLIBS}" in |
|
1030 *-l${termlib}*) |
3822
|
1031 LIBS="$TERMLIBS $LIBS" |
3887
|
1032 octave_found_termlib=yes |
405
|
1033 break |
|
1034 ;; |
|
1035 esac |
|
1036 done |
869
|
1037 |
3887
|
1038 if test "$octave_found_termlib" = no; then |
|
1039 warn_termlibs="I couldn't find -ltermcap, -lterminfo, -lncurses, -lcurses, o\ |
|
1040 r -ltermlib!" |
3105
|
1041 AC_MSG_WARN($warn_termlibs) |
2488
|
1042 fi |
|
1043 |
3822
|
1044 OCTAVE_ENABLE_READLINE |
|
1045 |
832
|
1046 AC_MSG_CHECKING([for struct exception in math.h]) |
|
1047 AC_TRY_LINK([#include <math.h>], |
|
1048 [struct exception *x; x->type; x->name;], |
835
|
1049 AC_MSG_RESULT(yes) |
3887
|
1050 AC_DEFINE(EXCEPTION_IN_MATH, 1, [Define if your math.h declares struct exception for matherr().]), |
869
|
1051 AC_MSG_RESULT(no)) |
|
1052 |
|
1053 ### Signal stuff. |
|
1054 |
834
|
1055 AC_TYPE_SIGNAL |
885
|
1056 AC_DECL_SYS_SIGLIST |
|
1057 AC_MSG_CHECKING([for sys_siglist variable]) |
|
1058 AC_TRY_LINK([#include <stdio.h>], |
|
1059 [extern char *sys_siglist[]; printf ("%s\n", sys_siglist[1]);], |
|
1060 AC_MSG_RESULT(yes) |
3887
|
1061 AC_DEFINE(HAVE_SYS_SIGLIST, 1, [Define if your system has a sys_siglist variable.]), |
885
|
1062 AC_MSG_RESULT(no)) |
2470
|
1063 OCTAVE_SIGNAL_CHECK |
|
1064 OCTAVE_REINSTALL_SIGHANDLERS |
869
|
1065 |
1762
|
1066 ### Type stuff. |
|
1067 |
|
1068 AC_TYPE_MODE_T |
|
1069 AC_TYPE_OFF_T |
2097
|
1070 AC_TYPE_PID_T |
1762
|
1071 AC_TYPE_SIZE_T |
|
1072 AC_TYPE_UID_T |
3892
|
1073 AC_CHECK_TYPES([dev_t, ino_t, nlink_t, nlink_t]) |
|
1074 AC_CHECK_TYPES(sigset_t, , , [#include <signal.h>]) |
1762
|
1075 |
2633
|
1076 ### A system dependent kluge or two. |
|
1077 |
2035
|
1078 AC_CHECK_FUNCS(getrusage times) |
2427
|
1079 case "$canonical_host_type" in |
3971
|
1080 *-*-cygwin*) |
3887
|
1081 AC_DEFINE(RUSAGE_TIMES_ONLY, 1, [Define if your struct rusage only has time information.]) |
2427
|
1082 ;; |
|
1083 esac |
|
1084 |
2762
|
1085 bsd_gcc_kluge_targets_frag=/dev/null |
2633
|
1086 case "$canonical_host_type" in |
|
1087 *-*-386bsd* | *-*-openbsd* | *-*-netbsd* | *-*-freebsd*) |
|
1088 bsd_gcc_kluge_targets_frag=Makefrag.bsd |
|
1089 cat << \EOF > $bsd_gcc_kluge_targets_frag |
|
1090 |
|
1091 lex.o: lex.cc |
|
1092 $(CXX) -c $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) $< |
|
1093 |
|
1094 pt-plot.o: pt-plot.cc |
|
1095 $(CXX) -c $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) $< |
|
1096 |
|
1097 symtab.o: symtab.cc |
|
1098 $(CXX) -c $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) $< |
|
1099 |
|
1100 toplev.o: toplev.cc |
|
1101 $(CXX) -c $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) $< |
|
1102 |
|
1103 unwind-prot.o: unwind-prot.cc |
|
1104 $(CXX) -c $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) $< |
|
1105 |
|
1106 EOF |
|
1107 ;; |
|
1108 esac |
|
1109 AC_SUBST_FILE(bsd_gcc_kluge_targets_frag) |
|
1110 |
869
|
1111 ### Checks for other programs used for building, testing, installing, |
|
1112 ### and running Octave. |
|
1113 |
3729
|
1114 OCTAVE_PROG_FLEX |
|
1115 OCTAVE_PROG_BISON |
869
|
1116 |
1722
|
1117 AC_PROG_LN_S |
|
1118 |
3222
|
1119 OCTAVE_PROG_NM |
3130
|
1120 OCTAVE_PROG_RUNTEST |
869
|
1121 |
405
|
1122 AC_PROG_INSTALL |
2642
|
1123 INSTALL_SCRIPT='${INSTALL}' |
|
1124 AC_SUBST(INSTALL_SCRIPT) |
869
|
1125 |
3130
|
1126 OCTAVE_PROG_GNUPLOT |
|
1127 OCTAVE_PROG_PAGER |
3673
|
1128 OCTAVE_PROG_GPERF |
3130
|
1129 |
2032
|
1130 ### Even though we include config.h, we need to have the preprocessor |
|
1131 ### defines available in a variable for the octave-bug script. Use |
|
1132 ### UGLY_DEFS for that. |
|
1133 |
|
1134 AC_OUTPUT_MAKE_DEFS |
3956
|
1135 |
|
1136 |
|
1137 dnl Maybe this should really be conditional on "broken sed", or |
|
1138 dnl "broken shell backslash quoting" or somesuch. |
|
1139 dnl |
|
1140 case "$canonical_host_type" in |
|
1141 *-*-darwin*) |
|
1142 UGLY_DEFS=`echo $DEFS | sed 's,\\",\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",g'` |
|
1143 ;; |
|
1144 *) |
|
1145 UGLY_DEFS=`echo $DEFS | sed 's,\\",\\\\\\\\\\\\\\\\\\",g'` |
|
1146 ;; |
|
1147 esac |
2032
|
1148 AC_MSG_RESULT([defining UGLY_DEFS to be $UGLY_DEFS]) |
|
1149 AC_SUBST(UGLY_DEFS) |
|
1150 |
869
|
1151 ### Maybe add -Wall to compiler flags now that we're done feature |
|
1152 ### testing. |
|
1153 |
3131
|
1154 if test -z "$EXTERN_CFLAGS"; then |
|
1155 OCTAVE_CC_FLAG(-Wall) |
405
|
1156 fi |
3131
|
1157 |
|
1158 if test -z "$EXTERN_CXXFLAGS"; then |
|
1159 OCTAVE_CXX_FLAG(-Wall) |
405
|
1160 fi |
869
|
1161 |
2813
|
1162 ### Someday, maybe include -ansi and even -pedantic in this list... |
|
1163 |
|
1164 GCC_PICKY_FLAGS="-Wcast-align -Wcast-qual -Wid-clash-31 \ |
|
1165 -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith \ |
|
1166 -Wstrict-prototypes -Wwrite-strings" |
|
1167 |
3131
|
1168 GXX_PICKY_FLAGS="$GCC_PICKY_FLAGS -Weffc++ -Wenum-clash -fno-nonnull-objects" |
2813
|
1169 |
|
1170 AC_ARG_ENABLE(picky-flags, |
|
1171 [ --enable-picky-flags add picky options to CFLAGS, CXXFLAGS, FFLAGS], |
3131
|
1172 [if test "$enableval" = no; then |
|
1173 true |
2813
|
1174 elif test "$enableval" = yes; then |
3131
|
1175 if test -z "$EXTERN_CFLAGS"; then |
|
1176 for flag in $GCC_PICKY_FLAGS; do |
|
1177 OCTAVE_CC_FLAG($flag) |
|
1178 done |
2813
|
1179 fi |
3131
|
1180 if test -z "$EXTERN_CXXFLAGS"; then |
|
1181 for flag in $GXX_PICKY_FLAGS; do |
|
1182 OCTAVE_CXX_FLAG($flag) |
|
1183 done |
2813
|
1184 fi |
|
1185 fi], []) |
|
1186 |
1146
|
1187 ### Run configure in subdirectories. |
|
1188 |
1304
|
1189 export CC |
|
1190 export CXX |
|
1191 export F77 |
|
1192 |
3887
|
1193 AC_CONFIG_SUBDIRS(kpathsea scripts) |
|
1194 |
|
1195 # autoconf 2.50 deprecates the use of variables (e.g. $GLOB_DIR) |
|
1196 # in AC_CONFIG_SUBDIRS; the following form is recommended instead: |
|
1197 |
|
1198 if test "x$GLOB_DIR" = xglob; then |
|
1199 AC_CONFIG_SUBDIRS(glob) |
|
1200 fi |
|
1201 |
|
1202 if test "x$PLPLOT_DIR" = xplplot; then |
|
1203 AC_CONFIG_SUBDIRS(plplot) |
|
1204 fi |
1146
|
1205 |
3923
|
1206 ### Some things to add to the bottom of config.h. |
|
1207 |
|
1208 AH_BOTTOM([ |
|
1209 #if defined (__GNUC__) |
|
1210 #define GCC_ATTR_NORETURN __attribute__ ((__noreturn__)) |
|
1211 #define GCC_ATTR_UNUSED __attribute__ ((__unused__)) |
|
1212 #else |
|
1213 #define GCC_ATTR_NORETURN |
|
1214 #define GCC_ATTR_UNUSED |
|
1215 #endif |
|
1216 |
|
1217 #define CONST_CAST(T, E) (T) (E) |
|
1218 |
|
1219 #define DYNAMIC_CAST(T, E) (T) (E) |
|
1220 |
|
1221 #define REINTERPRET_CAST(T, E) (T) (E) |
|
1222 |
|
1223 #define STATIC_CAST(T, E) (T) (E) |
|
1224 |
|
1225 #define X_CAST(T, E) (T) (E) |
|
1226 |
|
1227 #define HEAVYWEIGHT_INDEXING 1 |
|
1228 |
|
1229 #define WITH_KPATHSEARCH 1 |
|
1230 |
|
1231 #if defined(HAVE_F2C) && !defined(F77_FUNC) |
|
1232 # define F77_FUNC(x,X) x ## _ |
|
1233 # define F77_FUNC_(x,X) x ## __ |
|
1234 #endif |
|
1235 |
|
1236 #if !defined(HAVE_DEV_T) |
|
1237 typedef dev_t short |
|
1238 #endif |
|
1239 |
|
1240 #if !defined(HAVE_INO_T) |
|
1241 typedef ino_t unsigned long |
|
1242 #endif |
|
1243 |
|
1244 #if !defined(HAVE_NLINK_T) |
|
1245 typedef nlink_t short |
|
1246 #endif |
|
1247 |
|
1248 #if !defined(HAVE_SIGSET_T) |
|
1249 typedef sigset_t int |
|
1250 #endif |
|
1251 ]) |
|
1252 |
869
|
1253 ### Do the substitutions in all the Makefiles. |
|
1254 |
3887
|
1255 AC_CONFIG_FILES([Makefile octMakefile Makeconf install-octave \ |
3215
|
1256 test/Makefile dlfcn/Makefile \ |
|
1257 doc/Makefile doc/faq/Makefile doc/interpreter/Makefile \ |
|
1258 doc/liboctave/Makefile doc/refcard/Makefile emacs/Makefile \ |
|
1259 examples/Makefile liboctave/Makefile src/Makefile \ |
|
1260 libcruft/Makefile libcruft/Makerules \ |
3220
|
1261 libcruft/amos/Makefile libcruft/blas/Makefile \ |
3989
|
1262 libcruft/daspk/Makefile libcruft/dasrt/Makefile \ |
3220
|
1263 libcruft/dassl/Makefile libcruft/fftpack/Makefile \ |
|
1264 libcruft/lapack/Makefile libcruft/linpack/Makefile \ |
|
1265 libcruft/minpack/Makefile libcruft/misc/Makefile \ |
3983
|
1266 libcruft/odepack/Makefile libcruft/odessa/Makefile \ |
|
1267 libcruft/ordered-qz/Makefile \ |
3220
|
1268 libcruft/quadpack/Makefile libcruft/ranlib/Makefile \ |
3215
|
1269 libcruft/slatec-fn/Makefile libcruft/slatec-err/Makefile \ |
3690
|
1270 libcruft/villad/Makefile \ |
3887
|
1271 libcruft/blas-xtra/Makefile libcruft/lapack-xtra/Makefile]) |
|
1272 AC_OUTPUT |
1225
|
1273 |
3887
|
1274 AC_CONFIG_COMMANDS([default-1],[[chmod +x install-octave]],[[]]) |
3176
|
1275 |
1225
|
1276 ### Print a summary so that important information isn't missed. |
|
1277 |
|
1278 if test -z "$F77"; then |
|
1279 FORT="$F2C $F2CFLAGS" |
|
1280 else |
2610
|
1281 FORT="$F77 $FFLAGS" |
1225
|
1282 fi |
|
1283 |
|
1284 AC_MSG_RESULT([ |
|
1285 |
|
1286 Octave is now configured for $canonical_host_type |
|
1287 |
1664
|
1288 Source directory: $srcdir |
|
1289 Installation prefix: $prefix |
3126
|
1290 C compiler: $CC $XTRA_CFLAGS $CFLAGS |
|
1291 C++ compiler: $CXX $XTRA_CXXFLAGS $CXXFLAGS |
1664
|
1292 Fortran compiler: $FORT |
|
1293 Fortran libraries: $FLIBS |
3820
|
1294 BLAS libraries: $BLAS_LIBS |
3827
|
1295 FFTW libraries: $FFTW_LIBS |
3820
|
1296 HDF5 libraries: $HDF5_LIBS |
3822
|
1297 LIBS: $LIBS |
1664
|
1298 Default pager: $DEFAULT_PAGER |
|
1299 gnuplot: $GNUPLOT_BINARY |
|
1300 |
2108
|
1301 Do internal array bounds checking: $BOUNDS_CHECKING |
3034
|
1302 Build static libraries: $STATIC_LIBS |
1679
|
1303 Build shared libraries: $SHARED_LIBS |
|
1304 Minimal kernel option: $OCTAVE_LITE |
|
1305 Dynamic Linking (dlopen/dlsym): $WITH_DL |
|
1306 Dynamic Linking (shl_load/shl_findsym): $WITH_SHL |
3034
|
1307 Include support for GNU readline: $USE_READLINE |
1225
|
1308 ]) |
3105
|
1309 |
|
1310 warn_msg_printed=false |
|
1311 |
|
1312 if test -n "$warn_f77_and_g77"; then |
|
1313 AC_MSG_WARN($warn_f77_and_g77) |
|
1314 warn_msg_printed=true |
|
1315 fi |
|
1316 |
|
1317 if test -n "$warn_f2c_and_f77"; then |
|
1318 AC_MSG_WARN($warn_f2c_and_f77) |
|
1319 warn_msg_printed=true |
|
1320 fi |
|
1321 |
|
1322 if test -n "$warn_f2c_and_g77"; then |
|
1323 AC_MSG_WARN($warn_f2c_and_g77) |
|
1324 warn_msg_printed=true |
|
1325 fi |
|
1326 |
|
1327 if test -n "$gxx_only"; then |
|
1328 AC_MSG_WARN($gxx_only) |
|
1329 warn_msg_printed=true |
|
1330 fi |
|
1331 |
|
1332 if test -n "$warn_gcc_version"; then |
|
1333 AC_MSG_WARN($warn_gcc_version) |
|
1334 warn_msg_printed=true |
|
1335 fi |
|
1336 |
|
1337 if test -n "$warn_gcc_only"; then |
|
1338 AC_MSG_WARN($warn_gcc_only) |
|
1339 warn_msg_printed=true |
|
1340 fi |
|
1341 |
|
1342 if test -n "$warn_f2c_no_lib"; then |
|
1343 AC_MSG_WARN($warn_f2c_no_lib) |
|
1344 warn_msg_printed=true |
|
1345 fi |
|
1346 |
3825
|
1347 if test -n "$warn_readline"; then |
|
1348 AC_MSG_WARN($warn_readline) |
|
1349 warn_msg_printed=true |
|
1350 fi |
|
1351 |
3105
|
1352 if test -n "$warn_termlibs"; then |
|
1353 AC_MSG_WARN($warn_termlibs) |
|
1354 warn_msg_printed=true |
|
1355 fi |
|
1356 |
3673
|
1357 if test -n "$warn_gperf"; then |
|
1358 AC_MSG_WARN($warn_gperf) |
|
1359 warn_msg_printed=true |
|
1360 fi |
|
1361 |
3105
|
1362 if test -n "$warn_flex"; then |
|
1363 AC_MSG_WARN($warn_flex) |
|
1364 warn_msg_printed=true |
|
1365 fi |
|
1366 |
|
1367 if test -n "$warn_bison"; then |
|
1368 AC_MSG_WARN($warn_bison) |
|
1369 warn_msg_printed=true |
|
1370 fi |
|
1371 |
|
1372 if test -n "$warn_less"; then |
|
1373 AC_MSG_WARN($warn_less) |
|
1374 warn_msg_printed=true |
|
1375 fi |
|
1376 |
|
1377 if test -n "$warn_runtest"; then |
|
1378 AC_MSG_WARN($warn_runtest) |
|
1379 warn_msg_printed=true |
|
1380 fi |
|
1381 |
|
1382 if test -n "$warn_gnuplot"; then |
|
1383 |
|
1384 ## If you change this text, be sure to also change the corresponding |
|
1385 ## set of warnings above. |
|
1386 |
|
1387 AC_MSG_WARN([I didn't find gnuplot. It isn't necessary to have gnuplot]) |
|
1388 AC_MSG_WARN([installed, but you won't be able to use any of Octave's]) |
|
1389 AC_MSG_WARN([plotting commands without it.]) |
|
1390 AC_MSG_WARN([]) |
|
1391 AC_MSG_WARN([If gnuplot is installed but it isn't in your path, you can]) |
|
1392 AC_MSG_WARN([tell Octave where to find it by typing the command]) |
|
1393 AC_MSG_WARN([]) |
|
1394 AC_MSG_WARN([gnuplot_binary = "/full/path/to/gnuplot/binary"]) |
|
1395 AC_MSG_WARN([]) |
|
1396 AC_MSG_WARN([at the Octave prompt.]) |
|
1397 warn_msg_printed=true |
|
1398 fi |
|
1399 |
|
1400 if $warn_msg_printed; then |
|
1401 AC_MSG_RESULT([]) |
|
1402 fi |
|
1403 |
|
1404 ### End of configure. |