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 |
4101
|
25 AC_REVISION($Revision: 1.375 $) |
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 |
2813
|
578 ### Handle dynamic linking and shared library options. |
|
579 |
|
580 ### Allow the user to experiment with dynamic linking using dlopen/dlsym. |
|
581 |
|
582 AC_ARG_ENABLE(dl, |
|
583 [ --enable-dl use dlopen/dlsym for dynamic linking (not all systems)], |
|
584 [if test "$enableval" = no; then WITH_DL=no; |
|
585 elif test "$enableval" = yes; then WITH_DL=yes; |
|
586 else WITH_DL=maybe; fi], |
|
587 WITH_DL=maybe) |
|
588 |
|
589 ### Allow the user to experiment with dynamic linking using |
|
590 ### shl_load/shl_findsym (HP/UX only?). |
|
591 |
|
592 AC_ARG_ENABLE(shl, |
|
593 [ --enable-shl use shl_load/shl_findsym for dynamic linking (HP only)], |
|
594 [if test "$enableval" = no; then WITH_SHL=no; |
|
595 elif test "$enableval" = yes; then WITH_SHL=yes; |
|
596 else WITH_SHL=maybe; fi], |
|
597 WITH_SHL=maybe) |
|
598 |
3034
|
599 ### Enable creation of static libraries. |
|
600 |
|
601 AC_ARG_ENABLE(static, |
|
602 [ --enable-static create static libraries], |
|
603 [if test "$enableval" = no; then STATIC_LIBS=false; |
|
604 else STATIC_LIBS=true; fi], |
|
605 STATIC_LIBS=true) |
|
606 AC_SUBST(STATIC_LIBS) |
|
607 |
2813
|
608 ### Enable creation of shared libraries. Currently only works with |
|
609 ### gcc on some systems. |
|
610 |
|
611 AC_ARG_ENABLE(shared, |
|
612 [ --enable-shared create shared libraries (not all systems)], |
|
613 [if test "$enableval" = no; then SHARED_LIBS=false; |
|
614 else SHARED_LIBS=true; fi], |
|
615 SHARED_LIBS=false) |
|
616 AC_SUBST(SHARED_LIBS) |
|
617 |
3034
|
618 if $STATIC_LIBS || $SHARED_LIBS; then |
|
619 true |
|
620 else |
|
621 AC_MSG_ERROR([You can't disable building static AND shared libraries!]) |
|
622 fi |
|
623 |
3156
|
624 if $SHARED_LIBS; then |
|
625 LIBOCTINTERP=-loctinterp |
|
626 LIBOCTAVE=-loctave |
3857
|
627 LIBOCT_READLINE=-loct-readline |
|
628 LIBOCT_PATHSEARCH=-loct-pathsearch |
3156
|
629 LIBCRUFT=-lcruft |
|
630 else |
|
631 LIBOCTINTERP='$(TOPDIR)/src/liboctinterp.$(LIBEXT)' |
|
632 LIBOCTAVE='$(TOPDIR)/liboctave/liboctave.$(LIBEXT)' |
3857
|
633 LIBOCT_READLINE='$(TOPDIR)/liboctave/liboct-readline.$(LIBEXT)' |
|
634 LIBOCT_PATHSEARCH='$(TOPDIR)/liboctave/liboct-pathsearch.$(LIBEXT)' |
3156
|
635 LIBCRUFT='$(TOPDIR)/libcruft/libcruft.$(LIBEXT)' |
|
636 fi |
|
637 AC_SUBST(LIBOCTINTERP) |
|
638 AC_SUBST(LIBOCTAVE) |
3857
|
639 AC_SUBST(LIBOCT_READLINE) |
|
640 AC_SUBST(LIBOCT_PATHSEARCH) |
3156
|
641 AC_SUBST(LIBCRUFT) |
|
642 |
2813
|
643 use_rpath=true |
|
644 AC_ARG_ENABLE(rpath, |
|
645 [ --enable-rpath add -rpath to link command for shared libraries], |
|
646 [if test "$enableval" = no; then use_rpath=false; fi], []) |
|
647 |
|
648 DLFCN_DIR= |
|
649 CPICFLAG=-fPIC |
|
650 CXXPICFLAG=-fPIC |
|
651 FPICFLAG=-fPIC |
|
652 SHLEXT=so |
3124
|
653 SH_LD="$CXX" |
2813
|
654 SH_LDFLAGS=-shared |
3036
|
655 SONAME_FLAGS= |
2813
|
656 RLD_FLAG= |
3775
|
657 TEMPLATE_AR="$AR" |
|
658 TEMPLATE_ARFLAGS="$ARFLAGS" |
2813
|
659 case "$canonical_host_type" in |
|
660 *-*-386bsd* | *-*-openbsd* | *-*-netbsd* | *-*-freebsd*) |
|
661 SH_LD=ld |
|
662 SH_LDFLAGS=-Bshareable |
|
663 ;; |
3127
|
664 alpha*-dec-osf*) |
2813
|
665 CPICFLAG= |
|
666 CXXPICFLAG= |
|
667 FPICFLAG= |
|
668 SH_LDFLAGS="-shared -Xlinker -expect_unresolved -Xlinker '*'" |
3037
|
669 SONAME_FLAGS='-Xlinker -soname -Xlinker $@' |
3162
|
670 RLD_FLAG='-Xlinker -rpath -Xlinker $(octlibdir)' |
2813
|
671 ;; |
3956
|
672 *-*-darwin*) |
|
673 SH_LDFLAGS='-bundle -bundle_loader $(bindir)/octave' |
|
674 ;; |
3740
|
675 *-*-linux* | *-*-gnu*) |
3038
|
676 SONAME_FLAGS='-Xlinker -soname -Xlinker $@' |
3162
|
677 RLD_FLAG='-Xlinker -rpath -Xlinker $(octlibdir)' |
2813
|
678 ;; |
3887
|
679 i[[3456]]86-*-sco3.2v5*) |
3705
|
680 SONAME_FLAGS='-Xlinker -h -Xlinker $@' |
|
681 RLD_FLAG= |
3160
|
682 SH_LDFLAGS=-G |
|
683 ;; |
2813
|
684 rs6000-ibm-aix* | powerpc-ibm-aix*) |
|
685 CPICFLAG= |
|
686 CXXPICFLAG= |
|
687 FPICFLAG= |
|
688 DLFCN_DIR=dlfcn |
|
689 ;; |
|
690 hppa*-hp-hpux*) |
3887
|
691 if test "$ac_cv_f77_compiler_gnu" = yes; then |
2813
|
692 FPICFLAG=-fPIC |
|
693 else |
|
694 FPICFLAG=+Z |
|
695 fi |
|
696 SHLEXT=sl |
|
697 SH_LDFLAGS="-shared -fPIC" |
3162
|
698 RLD_FLAG='-Xlinker +b -Xlinker $(octlibdir)' |
2813
|
699 ;; |
|
700 *-sgi-*) |
|
701 CPICFLAG= |
|
702 CXXPICFLAG= |
|
703 FPICFLAG= |
3162
|
704 RLD_FLAG='-L$(octlibdir)' |
2813
|
705 ;; |
|
706 sparc-sun-sunos4*) |
3887
|
707 if test "$ac_cv_f77_compiler_gnu" = yes; then |
2813
|
708 FPICFLAG=-fPIC |
|
709 else |
|
710 FPICFLAG=-PIC |
|
711 fi |
3059
|
712 SH_LD=ld |
|
713 SH_LDFLAGS="-assert nodefinitions" |
3162
|
714 RLD_FLAG='-L$(octlibdir)' |
2813
|
715 ;; |
3606
|
716 sparc-sun-solaris2* | i386-pc-solaris2*) |
3887
|
717 if test "$ac_cv_f77_compiler_gnu" = yes; then |
2813
|
718 FPICFLAG=-fPIC |
|
719 else |
3775
|
720 FPICFLAG=-KPIC |
|
721 fi |
|
722 if test "$GCC" = yes; then |
|
723 CPICFLAG=-fPIC |
|
724 else |
|
725 CPICFLAG=-KPIC |
2813
|
726 fi |
3775
|
727 if test "$GXX" = yes; then |
|
728 CXXPICFLAG=-fPIC |
|
729 SH_LDFLAGS=-shared |
|
730 else |
|
731 CXXPICFLAG=-KPIC |
|
732 SH_LDFLAGS=-G |
|
733 fi |
|
734 RLD_FLAG='-R $(octlibdir)' |
|
735 # Template closures in archive libraries need a different mechanism. |
3820
|
736 if test "$GXX" = yes; then |
3775
|
737 true |
|
738 else |
|
739 TEMPLATE_AR="$CXX" |
|
740 TEMPLATE_ARFLAGS="-xar -o" |
|
741 fi |
2813
|
742 ;; |
|
743 esac |
|
744 |
|
745 if $use_rpath; then |
|
746 true |
|
747 else |
|
748 RLD_FLAG= |
|
749 fi |
|
750 |
|
751 AC_MSG_RESULT([defining FPICFLAG to be $FPICFLAG]) |
|
752 AC_MSG_RESULT([defining CPICFLAG to be $CPICFLAG]) |
|
753 AC_MSG_RESULT([defining CXXPICFLAG to be $CXXPICFLAG]) |
|
754 AC_MSG_RESULT([defining SHLEXT to be $SHLEXT]) |
|
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]) |
2813
|
762 AC_SUBST(FPICFLAG) |
|
763 AC_SUBST(CPICFLAG) |
|
764 AC_SUBST(CXXPICFLAG) |
|
765 AC_SUBST(SHLEXT) |
|
766 AC_SUBST(DLFCN_DIR) |
|
767 AC_SUBST(SH_LD) |
|
768 AC_SUBST(SH_LDFLAGS) |
3036
|
769 AC_SUBST(SONAME_FLAGS) |
2813
|
770 AC_SUBST(RLD_FLAG) |
3775
|
771 AC_SUBST(TEMPLATE_AR) |
|
772 AC_SUBST(TEMPLATE_ARFLAGS) |
2813
|
773 |
|
774 ### Allow compilation of smaller kernel. This only works if some form |
|
775 ### of dynamic linking is also supported and used. |
|
776 |
|
777 AC_ARG_ENABLE(lite-kernel, |
|
778 [ --enable-lite-kernel compile smaller kernel (requires dynamic linking)], |
|
779 [if test "$enableval" = no; then OCTAVE_LITE=false; |
|
780 else OCTAVE_LITE=true; fi], |
|
781 OCTAVE_LITE=false) |
|
782 if $OCTAVE_LITE; then |
3887
|
783 AC_DEFINE(OCTAVE_LITE, 1, [Define to compile smaller kernel.]) |
2813
|
784 fi |
|
785 AC_SUBST(OCTAVE_LITE) |
|
786 |
|
787 ### special checks for odd OS specific things. |
|
788 ### |
|
789 ### I am told that on some SCO systems, the only place to find some |
|
790 ### functions like gethostname and gettimeofday is in libsocket. |
|
791 |
3887
|
792 AC_CHECK_FUNCS(gethostname, [], [AC_CHECK_LIB(socket, gethostname)]) |
|
793 AC_CHECK_FUNCS(getpwnam, [], [AC_CHECK_LIB(sun, getpwnam)]) |
2813
|
794 |
|
795 ### How big are ints and how are they oriented? These could probably |
|
796 ### be eliminated in favor of run-time checks. |
|
797 |
3888
|
798 AC_CHECK_SIZEOF(short) |
|
799 AC_CHECK_SIZEOF(int) |
|
800 AC_CHECK_SIZEOF(long) |
|
801 AC_CHECK_SIZEOF(long long) |
2813
|
802 |
|
803 ### Does the C compiler handle alloca() and const correctly? |
|
804 |
3887
|
805 AC_FUNC_ALLOCA([]) |
2813
|
806 AC_C_CONST |
|
807 |
|
808 ### See if we should define NPOS. |
|
809 |
|
810 OCTAVE_STRING_NPOS |
|
811 |
869
|
812 ### Checks for header files. |
|
813 |
832
|
814 AC_HEADER_STDC |
|
815 AC_HEADER_DIRENT |
1377
|
816 AC_HEADER_TIME |
|
817 AC_HEADER_SYS_WAIT |
2097
|
818 |
4051
|
819 ### C headers |
|
820 |
4067
|
821 AC_CHECK_HEADERS(assert.h curses.h direct.h dlfcn.h fcntl.h float.h \ |
4051
|
822 floatingpoint.h grp.h ieeefp.h limits.h memory.h nan.h \ |
|
823 ncurses.h poll.h pwd.h stdlib.h string.h sys/ioctl.h \ |
3308
|
824 sys/param.h sys/poll.h sys/resource.h sys/select.h sys/stat.h \ |
|
825 sys/time.h sys/times.h sys/types.h sys/utsname.h termcap.h \ |
3887
|
826 unistd.h varargs.h) |
|
827 |
4051
|
828 ### C++ headers |
|
829 |
|
830 AC_LANG_PUSH(C++) |
|
831 AC_CHECK_HEADERS(sstream) |
|
832 AC_LANG_POP(C++) |
|
833 |
3887
|
834 have_termios_h=no |
|
835 AC_CHECK_HEADERS($TERMIOS_H, have_termios_h=yes) |
|
836 AC_CHECK_HEADERS(termio.h, have_termio_h=yes, have_termio_h=no) |
|
837 AC_CHECK_HEADERS(sgtty.h, have_sgtty_h=yes, have_sgtty_h=no) |
|
838 AC_CHECK_HEADERS(glob.h, have_glob_h=yes, have_glob_h=no) |
|
839 AC_CHECK_HEADERS(fnmatch.h, have_fnmatch_h=yes, have_fnmatch_h=no) |
4067
|
840 AC_CHECK_HEADERS(conio.h, have_conio_h=yes, have_conio_h=no) |
3249
|
841 |
3225
|
842 ### I'm told that termios.h is broken on NeXT systems. |
|
843 |
|
844 case "$canonical_host_type" in |
|
845 *-*-nextstep*) |
3887
|
846 if test "$have_termios_h" = yes; then |
3249
|
847 AC_MSG_WARN([Ignoring termios.h on NeXT systems.]) |
3887
|
848 have_termios_h=no |
3249
|
849 fi |
3225
|
850 ;; |
|
851 esac |
|
852 |
3887
|
853 if test "$have_termios_h" = yes \ |
|
854 || test "$have_termio_h" = yes \ |
|
855 || test "$have_sgtty_h" = yes; then |
832
|
856 true |
|
857 else |
4064
|
858 AC_MSG_WARN([I couldn't find termios.h, termio.h, or sgtty.h!]) |
832
|
859 fi |
869
|
860 |
3697
|
861 ## I'm told that setting LIBGLOB to be $(TOPDIR)/glob/libglob.a causes |
|
862 ## trouble on SCO systems, but setting it to be the two object files |
|
863 ## avoids the problem. |
3177
|
864 |
3156
|
865 GLOB_DIR=glob |
3697
|
866 LIBGLOB='$(TOPDIR)/glob/glob.o $(TOPDIR)/glob/fnmatch.o' |
3156
|
867 GLOB_INCFLAGS='-I$(top_srcdir)/glob -I$(TOPDIR)/glob' |
3887
|
868 if test "$have_fnmatch_h" = yes && test "$have_glob_h" = yes; then |
|
869 AC_EGREP_CPP(yes, [#include <fnmatch.h> |
|
870 #ifdef FNM_NOESCAPE |
|
871 #ifdef FNM_FOOBAR_PATHNAME /* FIXME: delete FOOBAR_ ? */ |
|
872 #ifdef FNM_PERIOD |
|
873 yes |
|
874 #endif |
|
875 #endif |
|
876 #endif |
3177
|
877 ], [ |
|
878 GLOB_DIR= |
|
879 AC_CHECK_LIB(glob, glob) |
3887
|
880 AC_CHECK_FUNCS(fnmatch, have_fnmatch=yes, have_fnmatch=no) |
|
881 AC_CHECK_FUNCS(glob, have_glob=yes, have_glob=no) |
|
882 if test "$have_fnmatch" = yes && test "$have_glob" = yes; then |
3177
|
883 GLOB_DIR= |
|
884 LIBGLOB= |
|
885 GLOB_INCFLAGS= |
|
886 fi |
|
887 ]) |
3156
|
888 fi |
|
889 AC_SUBST(GLOB_DIR) |
|
890 AC_SUBST(LIBGLOB) |
|
891 AC_SUBST(GLOB_INCFLAGS) |
|
892 |
1788
|
893 ### Checks for functions and variables. |
869
|
894 |
3710
|
895 AC_CHECK_FUNCS(atexit bcopy bzero dup2 endgrent endpwent execvp \ |
|
896 fcntl fork getcwd getegid geteuid getgid getgrent getgrgid \ |
3803
|
897 getgrnam getpgrp getpid getppid getpwent \ |
4092
|
898 getpwuid gettimeofday getuid getwd _kbhit kill link localtime_r lstat \ |
|
899 memmove mkdir mkfifo on_exit pipe poll putenv raise readlink rename \ |
3710
|
900 rindex rmdir select setgrent setpwent setvbuf sigaction sigpending \ |
|
901 sigprocmask sigsuspend stat strcasecmp strdup strerror strftime \ |
|
902 stricmp strncasecmp strnicmp strptime symlink tempnam umask unlink \ |
|
903 usleep vfprintf vsprintf vsnprintf waitpid) |
1300
|
904 |
1708
|
905 OCTAVE_SMART_PUTENV |
|
906 |
3705
|
907 LD_CXX='$(CXX)' |
2064
|
908 LIBDLFCN= |
|
909 DLFCN_INCFLAGS= |
3232
|
910 RDYNAMIC_FLAG= |
1978
|
911 if test "$WITH_DL" = yes || test "$WITH_DL" = maybe; then |
2063
|
912 case "$canonical_host_type" in |
|
913 rs6000-ibm-aix* | powerpc-ibm-aix*) |
2346
|
914 LIBDLFCN="-ldlfcn -ll -lld" |
2064
|
915 DLFCN_INCFLAGS='-I$(top_srcdir)/dlfcn -I$(TOPDIR)/dlfcn' |
2063
|
916 WITH_DL=true |
|
917 ;; |
3887
|
918 i[[3456]]86-*-sco3.2v5*) |
3705
|
919 LD_CXX='LD_RUN_PATH=$LD_RUN_PATH:$(octlibdir) $(CXX)' |
3160
|
920 WITH_DL=true |
|
921 ;; |
2063
|
922 *) |
|
923 AC_CHECK_LIB(dl, dlopen) |
3887
|
924 AC_CHECK_FUNCS(dlopen dlsym dlerror dlclose, [], [have_dl=false]) |
|
925 if test "x$have_dl" != xfalse; then |
|
926 WITH_DL=true |
2063
|
927 else |
|
928 if test "$WITH_DL" = yes; then |
|
929 AC_MSG_ERROR([--enable-dl specified, but functions are missing!]) |
|
930 fi |
|
931 WITH_DL=false |
|
932 fi |
|
933 ;; |
|
934 esac |
1978
|
935 if $WITH_DL; then |
3958
|
936 OCTAVE_CXX_FLAG(-rdynamic, [RDYNAMIC_FLAG=-rdynamic]) |
3887
|
937 AC_DEFINE(WITH_DL, 1, [Define if using dlopen/dlsym.]) |
1978
|
938 fi |
|
939 else |
|
940 WITH_DL=false |
1664
|
941 fi |
1978
|
942 AC_SUBST(WITH_DL) |
2064
|
943 AC_SUBST(LIBDLFCN) |
|
944 AC_SUBST(DLFCN_INCFLAGS) |
3232
|
945 AC_SUBST(RDYNAMIC_FLAG) |
3705
|
946 AC_SUBST(LD_CXX) |
1664
|
947 |
1978
|
948 if test "$WITH_SHL" = yes || test "$WITH_SHL" = maybe; then |
|
949 AC_CHECK_LIB(dld, shl_load) |
3887
|
950 AC_CHECK_FUNCS(shl_load shl_findsym, [], [have_shl=false]) |
|
951 if test "x$have_shl" != xfalse; then |
1978
|
952 WITH_SHL=true |
|
953 else |
|
954 if test "$WITH_SHL" = yes; then |
|
955 AC_MSG_ERROR([--enable-shl specified, but functions are missing!]) |
|
956 fi |
|
957 WITH_SHL=false |
|
958 fi |
|
959 if $WITH_SHL; then |
3887
|
960 AC_DEFINE(WITH_SHL, 1, [Define if using dld for dynamic linking.]) |
1978
|
961 fi |
|
962 else |
|
963 WITH_SHL=false |
1664
|
964 fi |
1978
|
965 AC_SUBST(WITH_SHL) |
1664
|
966 |
1901
|
967 ### Set WITH_DYNAMIC_LINKING after all the other shared library stuff |
|
968 ### has been determined. |
|
969 |
|
970 if $WITH_DL || $WITH_SHL; then |
3887
|
971 AC_DEFINE(WITH_DYNAMIC_LINKING, 1, [Define if using dynamic linking.]) |
1901
|
972 WITH_DYNAMIC_LINKING=true |
|
973 else |
|
974 WITH_DYNAMIC_LINKING=false |
|
975 fi |
|
976 AC_SUBST(WITH_DYNAMIC_LINKING) |
|
977 |
1300
|
978 ### There is more than one possible prototype for gettimeofday. See |
2782
|
979 ### which one (if any) appears in sys/time.h. These tests are from |
|
980 ### Emacs 19. |
1300
|
981 |
2782
|
982 AC_MSG_CHECKING(for struct timeval) |
|
983 AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIME |
|
984 #include <sys/time.h> |
|
985 #include <time.h> |
|
986 #else |
|
987 #ifdef HAVE_SYS_TIME_H |
|
988 #include <sys/time.h> |
|
989 #else |
|
990 #include <time.h> |
|
991 #endif |
|
992 #endif], [static struct timeval x; x.tv_sec = x.tv_usec;], |
|
993 [AC_MSG_RESULT(yes) |
|
994 HAVE_TIMEVAL=yes |
3887
|
995 AC_DEFINE(HAVE_TIMEVAL, 1, [Define if struct timeval is defined.])], |
2782
|
996 [AC_MSG_RESULT(no) |
|
997 HAVE_TIMEVAL=no]) |
|
998 |
|
999 if test "x$HAVE_TIMEVAL" = xyes; then |
|
1000 AC_MSG_CHECKING(whether gettimeofday can't accept two arguments) |
|
1001 AC_TRY_LINK([#ifdef TIME_WITH_SYS_TIME |
|
1002 #include <sys/time.h> |
|
1003 #include <time.h> |
|
1004 #else |
|
1005 #ifdef HAVE_SYS_TIME_H |
|
1006 #include <sys/time.h> |
|
1007 #else |
|
1008 #include <time.h> |
|
1009 #endif |
|
1010 #endif],[struct timeval time; struct timezone dummy; |
|
1011 gettimeofday (&time, &dummy);], [AC_MSG_RESULT(no)], |
|
1012 [AC_MSG_RESULT(yes) |
3887
|
1013 AC_DEFINE(GETTIMEOFDAY_NO_TZ, 1, [Define if your system has a single-arg prototype for gettimeofday.])]) |
2782
|
1014 fi |
869
|
1015 |
832
|
1016 dnl Would like to get rid of this cruft, and just have |
|
1017 dnl |
|
1018 dnl AC_CHECK_FUNCS(finite isnan isinf) |
|
1019 dnl |
|
1020 dnl instead, but that used to fail on some systems... |
369
|
1021 dnl |
832
|
1022 dnl Also just using AC_CHECK_FUNCS doesn't seem to work to find isinf |
|
1023 dnl and isnan on Linux systems, so we use AC_CHECK_FUNC, and if that |
369
|
1024 dnl fails, we try again by including math.h and invoking the function |
|
1025 dnl with an argument. |
869
|
1026 |
2508
|
1027 ### I am told that Inf and NaN don't work on m68k HP sytems, and that |
|
1028 ### on SCO systems, isnan and isinf don't work, but they can be |
|
1029 ### replaced by something that does. |
956
|
1030 |
|
1031 case "$canonical_host_type" in |
1384
|
1032 m68k-hp-hpux*) |
956
|
1033 ;; |
2508
|
1034 *-*-sco*) |
|
1035 AC_MSG_RESULT([defining SCO to be 1]) |
3887
|
1036 AC_DEFINE(SCO, 1, [Define if using an SCO system.]) |
2508
|
1037 AC_MSG_RESULT([forcing HAVE_ISINF for SCO]) |
3887
|
1038 AC_DEFINE(HAVE_ISINF, 1, [Define if you have isinf().]) |
2508
|
1039 AC_MSG_RESULT([forcing HAVE_ISNAN for SCO]) |
3887
|
1040 AC_DEFINE(HAVE_ISNAN, 1, [Define if you have isnan().]) |
2508
|
1041 ;; |
956
|
1042 *) |
3475
|
1043 AC_CHECK_FUNCS(finite isnan isinf) |
956
|
1044 ;; |
|
1045 esac |
|
1046 |
1076
|
1047 ### Check for nonstandard but common math functions that we need. |
|
1048 |
3130
|
1049 AC_CHECK_FUNCS(acosh asinh atanh erf erfc) |
|
1050 |
869
|
1051 ### Checks for OS specific cruft. |
|
1052 |
3887
|
1053 AC_CHECK_MEMBERS([struct stat.st_blksize, struct stat.st_blocks, struct stat.st_rdev]) |
|
1054 |
405
|
1055 AC_STRUCT_TM |
1186
|
1056 AC_STRUCT_TIMEZONE |
1388
|
1057 AC_FUNC_CLOSEDIR_VOID |
1225
|
1058 |
3892
|
1059 AC_CHECK_MEMBERS(struct group.gr_passwd) |
2548
|
1060 |
4067
|
1061 # mkdir takes a single argument on some systems. |
|
1062 OCTAVE_MKDIR_TAKES_ONE_ARG |
|
1063 |
3887
|
1064 octave_found_termlib=no |
2592
|
1065 for termlib in ncurses curses termcap terminfo termlib; do |
2034
|
1066 AC_CHECK_LIB(${termlib}, tputs, [TERMLIBS="${TERMLIBS} -l${termlib}"]) |
405
|
1067 case "${TERMLIBS}" in |
|
1068 *-l${termlib}*) |
3822
|
1069 LIBS="$TERMLIBS $LIBS" |
3887
|
1070 octave_found_termlib=yes |
405
|
1071 break |
|
1072 ;; |
|
1073 esac |
|
1074 done |
869
|
1075 |
3887
|
1076 if test "$octave_found_termlib" = no; then |
|
1077 warn_termlibs="I couldn't find -ltermcap, -lterminfo, -lncurses, -lcurses, o\ |
|
1078 r -ltermlib!" |
3105
|
1079 AC_MSG_WARN($warn_termlibs) |
2488
|
1080 fi |
|
1081 |
3822
|
1082 OCTAVE_ENABLE_READLINE |
|
1083 |
832
|
1084 AC_MSG_CHECKING([for struct exception in math.h]) |
|
1085 AC_TRY_LINK([#include <math.h>], |
|
1086 [struct exception *x; x->type; x->name;], |
835
|
1087 AC_MSG_RESULT(yes) |
3887
|
1088 AC_DEFINE(EXCEPTION_IN_MATH, 1, [Define if your math.h declares struct exception for matherr().]), |
869
|
1089 AC_MSG_RESULT(no)) |
|
1090 |
|
1091 ### Signal stuff. |
|
1092 |
834
|
1093 AC_TYPE_SIGNAL |
885
|
1094 AC_DECL_SYS_SIGLIST |
|
1095 AC_MSG_CHECKING([for sys_siglist variable]) |
|
1096 AC_TRY_LINK([#include <stdio.h>], |
|
1097 [extern char *sys_siglist[]; printf ("%s\n", sys_siglist[1]);], |
|
1098 AC_MSG_RESULT(yes) |
3887
|
1099 AC_DEFINE(HAVE_SYS_SIGLIST, 1, [Define if your system has a sys_siglist variable.]), |
885
|
1100 AC_MSG_RESULT(no)) |
2470
|
1101 OCTAVE_SIGNAL_CHECK |
|
1102 OCTAVE_REINSTALL_SIGHANDLERS |
869
|
1103 |
1762
|
1104 ### Type stuff. |
|
1105 |
|
1106 AC_TYPE_MODE_T |
|
1107 AC_TYPE_OFF_T |
2097
|
1108 AC_TYPE_PID_T |
1762
|
1109 AC_TYPE_SIZE_T |
|
1110 AC_TYPE_UID_T |
3892
|
1111 AC_CHECK_TYPES([dev_t, ino_t, nlink_t, nlink_t]) |
|
1112 AC_CHECK_TYPES(sigset_t, , , [#include <signal.h>]) |
1762
|
1113 |
2633
|
1114 ### A system dependent kluge or two. |
|
1115 |
2035
|
1116 AC_CHECK_FUNCS(getrusage times) |
2427
|
1117 case "$canonical_host_type" in |
3971
|
1118 *-*-cygwin*) |
3887
|
1119 AC_DEFINE(RUSAGE_TIMES_ONLY, 1, [Define if your struct rusage only has time information.]) |
2427
|
1120 ;; |
|
1121 esac |
|
1122 |
2762
|
1123 bsd_gcc_kluge_targets_frag=/dev/null |
2633
|
1124 case "$canonical_host_type" in |
|
1125 *-*-386bsd* | *-*-openbsd* | *-*-netbsd* | *-*-freebsd*) |
|
1126 bsd_gcc_kluge_targets_frag=Makefrag.bsd |
|
1127 cat << \EOF > $bsd_gcc_kluge_targets_frag |
|
1128 |
|
1129 lex.o: lex.cc |
|
1130 $(CXX) -c $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) $< |
|
1131 |
|
1132 pt-plot.o: pt-plot.cc |
|
1133 $(CXX) -c $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) $< |
|
1134 |
|
1135 symtab.o: symtab.cc |
|
1136 $(CXX) -c $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) $< |
|
1137 |
|
1138 toplev.o: toplev.cc |
|
1139 $(CXX) -c $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) $< |
|
1140 |
|
1141 unwind-prot.o: unwind-prot.cc |
|
1142 $(CXX) -c $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) $< |
|
1143 |
|
1144 EOF |
|
1145 ;; |
|
1146 esac |
|
1147 AC_SUBST_FILE(bsd_gcc_kluge_targets_frag) |
|
1148 |
869
|
1149 ### Checks for other programs used for building, testing, installing, |
|
1150 ### and running Octave. |
|
1151 |
4084
|
1152 OCTAVE_PROG_SED |
|
1153 |
3729
|
1154 OCTAVE_PROG_FLEX |
|
1155 OCTAVE_PROG_BISON |
869
|
1156 |
1722
|
1157 AC_PROG_LN_S |
|
1158 |
3222
|
1159 OCTAVE_PROG_NM |
3130
|
1160 OCTAVE_PROG_RUNTEST |
869
|
1161 |
405
|
1162 AC_PROG_INSTALL |
2642
|
1163 INSTALL_SCRIPT='${INSTALL}' |
|
1164 AC_SUBST(INSTALL_SCRIPT) |
869
|
1165 |
3130
|
1166 OCTAVE_PROG_GNUPLOT |
|
1167 OCTAVE_PROG_PAGER |
3673
|
1168 OCTAVE_PROG_GPERF |
3130
|
1169 |
2032
|
1170 ### Even though we include config.h, we need to have the preprocessor |
|
1171 ### defines available in a variable for the octave-bug script. Use |
|
1172 ### UGLY_DEFS for that. |
|
1173 |
|
1174 AC_OUTPUT_MAKE_DEFS |
3956
|
1175 |
|
1176 |
|
1177 dnl Maybe this should really be conditional on "broken sed", or |
|
1178 dnl "broken shell backslash quoting" or somesuch. |
|
1179 dnl |
|
1180 case "$canonical_host_type" in |
|
1181 *-*-darwin*) |
|
1182 UGLY_DEFS=`echo $DEFS | sed 's,\\",\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",g'` |
|
1183 ;; |
|
1184 *) |
|
1185 UGLY_DEFS=`echo $DEFS | sed 's,\\",\\\\\\\\\\\\\\\\\\",g'` |
|
1186 ;; |
|
1187 esac |
2032
|
1188 AC_MSG_RESULT([defining UGLY_DEFS to be $UGLY_DEFS]) |
|
1189 AC_SUBST(UGLY_DEFS) |
|
1190 |
869
|
1191 ### Maybe add -Wall to compiler flags now that we're done feature |
|
1192 ### testing. |
|
1193 |
3131
|
1194 if test -z "$EXTERN_CFLAGS"; then |
|
1195 OCTAVE_CC_FLAG(-Wall) |
405
|
1196 fi |
3131
|
1197 |
|
1198 if test -z "$EXTERN_CXXFLAGS"; then |
|
1199 OCTAVE_CXX_FLAG(-Wall) |
405
|
1200 fi |
869
|
1201 |
2813
|
1202 ### Someday, maybe include -ansi and even -pedantic in this list... |
|
1203 |
|
1204 GCC_PICKY_FLAGS="-Wcast-align -Wcast-qual -Wid-clash-31 \ |
|
1205 -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith \ |
|
1206 -Wstrict-prototypes -Wwrite-strings" |
|
1207 |
3131
|
1208 GXX_PICKY_FLAGS="$GCC_PICKY_FLAGS -Weffc++ -Wenum-clash -fno-nonnull-objects" |
2813
|
1209 |
|
1210 AC_ARG_ENABLE(picky-flags, |
|
1211 [ --enable-picky-flags add picky options to CFLAGS, CXXFLAGS, FFLAGS], |
3131
|
1212 [if test "$enableval" = no; then |
|
1213 true |
2813
|
1214 elif test "$enableval" = yes; then |
3131
|
1215 if test -z "$EXTERN_CFLAGS"; then |
|
1216 for flag in $GCC_PICKY_FLAGS; do |
|
1217 OCTAVE_CC_FLAG($flag) |
|
1218 done |
2813
|
1219 fi |
3131
|
1220 if test -z "$EXTERN_CXXFLAGS"; then |
|
1221 for flag in $GXX_PICKY_FLAGS; do |
|
1222 OCTAVE_CXX_FLAG($flag) |
|
1223 done |
2813
|
1224 fi |
|
1225 fi], []) |
|
1226 |
1146
|
1227 ### Run configure in subdirectories. |
|
1228 |
1304
|
1229 export CC |
|
1230 export CXX |
|
1231 export F77 |
|
1232 |
3887
|
1233 AC_CONFIG_SUBDIRS(kpathsea scripts) |
|
1234 |
|
1235 # autoconf 2.50 deprecates the use of variables (e.g. $GLOB_DIR) |
|
1236 # in AC_CONFIG_SUBDIRS; the following form is recommended instead: |
|
1237 |
|
1238 if test "x$GLOB_DIR" = xglob; then |
|
1239 AC_CONFIG_SUBDIRS(glob) |
|
1240 fi |
|
1241 |
|
1242 if test "x$PLPLOT_DIR" = xplplot; then |
|
1243 AC_CONFIG_SUBDIRS(plplot) |
|
1244 fi |
1146
|
1245 |
3923
|
1246 ### Some things to add to the bottom of config.h. |
|
1247 |
|
1248 AH_BOTTOM([ |
|
1249 #if defined (__GNUC__) |
|
1250 #define GCC_ATTR_NORETURN __attribute__ ((__noreturn__)) |
|
1251 #define GCC_ATTR_UNUSED __attribute__ ((__unused__)) |
|
1252 #else |
|
1253 #define GCC_ATTR_NORETURN |
|
1254 #define GCC_ATTR_UNUSED |
|
1255 #endif |
|
1256 |
|
1257 #define CONST_CAST(T, E) (T) (E) |
|
1258 |
|
1259 #define DYNAMIC_CAST(T, E) (T) (E) |
|
1260 |
|
1261 #define REINTERPRET_CAST(T, E) (T) (E) |
|
1262 |
|
1263 #define STATIC_CAST(T, E) (T) (E) |
|
1264 |
|
1265 #define X_CAST(T, E) (T) (E) |
|
1266 |
|
1267 #define HEAVYWEIGHT_INDEXING 1 |
|
1268 |
|
1269 #define WITH_KPATHSEARCH 1 |
|
1270 |
|
1271 #if defined(HAVE_F2C) && !defined(F77_FUNC) |
|
1272 # define F77_FUNC(x,X) x ## _ |
|
1273 # define F77_FUNC_(x,X) x ## __ |
|
1274 #endif |
|
1275 |
|
1276 #if !defined(HAVE_DEV_T) |
4064
|
1277 typedef short dev_t; |
3923
|
1278 #endif |
|
1279 |
|
1280 #if !defined(HAVE_INO_T) |
4064
|
1281 typedef unsigned long ino_t; |
3923
|
1282 #endif |
|
1283 |
|
1284 #if !defined(HAVE_NLINK_T) |
4064
|
1285 typedef short nlink_t; |
3923
|
1286 #endif |
|
1287 |
|
1288 #if !defined(HAVE_SIGSET_T) |
4064
|
1289 typedef int sigset_t; |
3923
|
1290 #endif |
4101
|
1291 |
|
1292 #define OCTAVE_HAVE_POSIX_FILESYSTEM 1 |
|
1293 |
|
1294 #if defined (__WIN32__) |
|
1295 #define OCTAVE_HAVE_WINDOWS_FILESYSTEM 1 |
|
1296 #if ! defined (__CYGWIN__) |
|
1297 #undef OCTAVE_HAVE_POSIX_FILESYSTEM |
|
1298 #endif |
|
1299 #endif |
|
1300 |
|
1301 /* Define if we expect to have <windows.h>, Sleep, etc. */ |
|
1302 #if defined (__WIN32__) || ! defined (__CYGWIN__) |
|
1303 #define OCTAVE_USE_WINDOWS_API 1 |
|
1304 #endif |
3923
|
1305 ]) |
|
1306 |
869
|
1307 ### Do the substitutions in all the Makefiles. |
|
1308 |
3887
|
1309 AC_CONFIG_FILES([Makefile octMakefile Makeconf install-octave \ |
3215
|
1310 test/Makefile dlfcn/Makefile \ |
|
1311 doc/Makefile doc/faq/Makefile doc/interpreter/Makefile \ |
|
1312 doc/liboctave/Makefile doc/refcard/Makefile emacs/Makefile \ |
|
1313 examples/Makefile liboctave/Makefile src/Makefile \ |
|
1314 libcruft/Makefile libcruft/Makerules \ |
3220
|
1315 libcruft/amos/Makefile libcruft/blas/Makefile \ |
3989
|
1316 libcruft/daspk/Makefile libcruft/dasrt/Makefile \ |
3220
|
1317 libcruft/dassl/Makefile libcruft/fftpack/Makefile \ |
|
1318 libcruft/lapack/Makefile libcruft/linpack/Makefile \ |
|
1319 libcruft/minpack/Makefile libcruft/misc/Makefile \ |
3983
|
1320 libcruft/odepack/Makefile libcruft/odessa/Makefile \ |
|
1321 libcruft/ordered-qz/Makefile \ |
3220
|
1322 libcruft/quadpack/Makefile libcruft/ranlib/Makefile \ |
3215
|
1323 libcruft/slatec-fn/Makefile libcruft/slatec-err/Makefile \ |
3690
|
1324 libcruft/villad/Makefile \ |
3887
|
1325 libcruft/blas-xtra/Makefile libcruft/lapack-xtra/Makefile]) |
|
1326 AC_OUTPUT |
1225
|
1327 |
3887
|
1328 AC_CONFIG_COMMANDS([default-1],[[chmod +x install-octave]],[[]]) |
3176
|
1329 |
1225
|
1330 ### Print a summary so that important information isn't missed. |
|
1331 |
|
1332 if test -z "$F77"; then |
|
1333 FORT="$F2C $F2CFLAGS" |
|
1334 else |
2610
|
1335 FORT="$F77 $FFLAGS" |
1225
|
1336 fi |
|
1337 |
|
1338 AC_MSG_RESULT([ |
|
1339 |
|
1340 Octave is now configured for $canonical_host_type |
|
1341 |
1664
|
1342 Source directory: $srcdir |
|
1343 Installation prefix: $prefix |
3126
|
1344 C compiler: $CC $XTRA_CFLAGS $CFLAGS |
|
1345 C++ compiler: $CXX $XTRA_CXXFLAGS $CXXFLAGS |
1664
|
1346 Fortran compiler: $FORT |
|
1347 Fortran libraries: $FLIBS |
3820
|
1348 BLAS libraries: $BLAS_LIBS |
3827
|
1349 FFTW libraries: $FFTW_LIBS |
3820
|
1350 HDF5 libraries: $HDF5_LIBS |
3822
|
1351 LIBS: $LIBS |
1664
|
1352 Default pager: $DEFAULT_PAGER |
|
1353 gnuplot: $GNUPLOT_BINARY |
|
1354 |
2108
|
1355 Do internal array bounds checking: $BOUNDS_CHECKING |
3034
|
1356 Build static libraries: $STATIC_LIBS |
1679
|
1357 Build shared libraries: $SHARED_LIBS |
|
1358 Minimal kernel option: $OCTAVE_LITE |
|
1359 Dynamic Linking (dlopen/dlsym): $WITH_DL |
|
1360 Dynamic Linking (shl_load/shl_findsym): $WITH_SHL |
3034
|
1361 Include support for GNU readline: $USE_READLINE |
1225
|
1362 ]) |
3105
|
1363 |
|
1364 warn_msg_printed=false |
|
1365 |
|
1366 if test -n "$warn_f77_and_g77"; then |
|
1367 AC_MSG_WARN($warn_f77_and_g77) |
|
1368 warn_msg_printed=true |
|
1369 fi |
|
1370 |
|
1371 if test -n "$warn_f2c_and_f77"; then |
|
1372 AC_MSG_WARN($warn_f2c_and_f77) |
|
1373 warn_msg_printed=true |
|
1374 fi |
|
1375 |
|
1376 if test -n "$warn_f2c_and_g77"; then |
|
1377 AC_MSG_WARN($warn_f2c_and_g77) |
|
1378 warn_msg_printed=true |
|
1379 fi |
|
1380 |
|
1381 if test -n "$gxx_only"; then |
|
1382 AC_MSG_WARN($gxx_only) |
|
1383 warn_msg_printed=true |
|
1384 fi |
|
1385 |
|
1386 if test -n "$warn_gcc_version"; then |
|
1387 AC_MSG_WARN($warn_gcc_version) |
|
1388 warn_msg_printed=true |
|
1389 fi |
|
1390 |
|
1391 if test -n "$warn_gcc_only"; then |
|
1392 AC_MSG_WARN($warn_gcc_only) |
|
1393 warn_msg_printed=true |
|
1394 fi |
|
1395 |
|
1396 if test -n "$warn_f2c_no_lib"; then |
|
1397 AC_MSG_WARN($warn_f2c_no_lib) |
|
1398 warn_msg_printed=true |
|
1399 fi |
|
1400 |
3825
|
1401 if test -n "$warn_readline"; then |
|
1402 AC_MSG_WARN($warn_readline) |
|
1403 warn_msg_printed=true |
|
1404 fi |
|
1405 |
3105
|
1406 if test -n "$warn_termlibs"; then |
|
1407 AC_MSG_WARN($warn_termlibs) |
|
1408 warn_msg_printed=true |
|
1409 fi |
|
1410 |
3673
|
1411 if test -n "$warn_gperf"; then |
|
1412 AC_MSG_WARN($warn_gperf) |
|
1413 warn_msg_printed=true |
|
1414 fi |
|
1415 |
3105
|
1416 if test -n "$warn_flex"; then |
|
1417 AC_MSG_WARN($warn_flex) |
|
1418 warn_msg_printed=true |
|
1419 fi |
|
1420 |
|
1421 if test -n "$warn_bison"; then |
|
1422 AC_MSG_WARN($warn_bison) |
|
1423 warn_msg_printed=true |
|
1424 fi |
|
1425 |
|
1426 if test -n "$warn_less"; then |
|
1427 AC_MSG_WARN($warn_less) |
|
1428 warn_msg_printed=true |
|
1429 fi |
|
1430 |
|
1431 if test -n "$warn_runtest"; then |
|
1432 AC_MSG_WARN($warn_runtest) |
|
1433 warn_msg_printed=true |
|
1434 fi |
|
1435 |
|
1436 if test -n "$warn_gnuplot"; then |
|
1437 |
|
1438 ## If you change this text, be sure to also change the corresponding |
|
1439 ## set of warnings above. |
|
1440 |
|
1441 AC_MSG_WARN([I didn't find gnuplot. It isn't necessary to have gnuplot]) |
|
1442 AC_MSG_WARN([installed, but you won't be able to use any of Octave's]) |
|
1443 AC_MSG_WARN([plotting commands without it.]) |
|
1444 AC_MSG_WARN([]) |
|
1445 AC_MSG_WARN([If gnuplot is installed but it isn't in your path, you can]) |
|
1446 AC_MSG_WARN([tell Octave where to find it by typing the command]) |
|
1447 AC_MSG_WARN([]) |
|
1448 AC_MSG_WARN([gnuplot_binary = "/full/path/to/gnuplot/binary"]) |
|
1449 AC_MSG_WARN([]) |
|
1450 AC_MSG_WARN([at the Octave prompt.]) |
|
1451 warn_msg_printed=true |
|
1452 fi |
|
1453 |
|
1454 if $warn_msg_printed; then |
|
1455 AC_MSG_RESULT([]) |
|
1456 fi |
|
1457 |
|
1458 ### End of configure. |