405
|
1 dnl configure.in |
|
2 dnl |
5
|
3 dnl Process this file with autoconf to produce a configure script. |
|
4 dnl |
1885
|
5 dnl Copyright (C) 1996 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 |
1315
|
21 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
869
|
22 |
2032
|
23 AC_REVISION($Revision: 1.178 $) |
859
|
24 AC_PREREQ(2.0) |
405
|
25 AC_INIT(src/octave.cc) |
1146
|
26 AC_CONFIG_HEADER(config.h) |
869
|
27 |
|
28 AC_DEFINE(OCTAVE_SOURCE, 1) |
|
29 |
859
|
30 AC_CANONICAL_HOST |
885
|
31 if test -z "$host"; then |
|
32 host=unknown |
|
33 fi |
|
34 target_host_type=$host |
|
35 canonical_host_type=$host |
|
36 if test "$host" = unknown; then |
869
|
37 AC_MSG_WARN([configuring Octave for unknown system type |
859
|
38 ]) |
294
|
39 fi |
869
|
40 AC_SUBST(target_host_type) |
|
41 |
1667
|
42 ### some defaults |
|
43 |
|
44 AC_PREFIX_DEFAULT(/usr/local) |
|
45 |
|
46 exec_prefix='$(prefix)' |
|
47 bindir='$(exec_prefix)/bin' |
1721
|
48 datadir='$(prefix)/share' |
1667
|
49 libdir='$(exec_prefix)/lib' |
1721
|
50 libexecdir='$(exec_prefix)/libexec' |
1980
|
51 includedir='$(prefix)/include/octave-$(version)' |
1667
|
52 mandir='$(prefix)/man/man1' |
|
53 infodir='$(prefix)/info' |
|
54 fcnfiledir='$(datadir)/octave/$(version)/m' |
|
55 localfcnfiledir='$(datadir)/octave/site/m' |
|
56 localfcnfilepath='$(localfcnfiledir)//' |
1721
|
57 archlibdir='$(libexecdir)/octave/$(version)/exec/$(target_host_type)' |
|
58 octfiledir='$(libexecdir)/octave/$(version)/oct/$(target_host_type)' |
|
59 localoctfiledir='$(libexecdir)/octave/site/oct/$(target_host_type)' |
1667
|
60 localoctfilepath='$(localoctfiledir)//' |
|
61 fcnfilepath='.:$(localoctfilepath):$(localfcnfilepath):$(octfiledir)//:$(fcnfiledir)//' |
|
62 imagedir='$(datadir)/octave/$(version)/imagelib' |
|
63 imagepath='.:$(imagedir)//' |
|
64 |
|
65 AC_MSG_RESULT([defining prefix to be $prefix]) |
|
66 AC_MSG_RESULT([defining exec_prefix to be $exec_prefix]) |
|
67 AC_MSG_RESULT([defining bindir to be $bindir]) |
|
68 AC_MSG_RESULT([defining datadir to be $datadir]) |
|
69 AC_MSG_RESULT([defining libdir to be $libdir]) |
1721
|
70 AC_MSG_RESULT([defining libexecdir to be $libexecdir]) |
1667
|
71 AC_MSG_RESULT([defining includedir to be $includedir]) |
|
72 AC_MSG_RESULT([defining mandir to be $mandir]) |
|
73 AC_MSG_RESULT([defining infodir to be $infodir]) |
|
74 AC_MSG_RESULT([defining fcnfiledir to be $fcnfiledir]) |
|
75 AC_MSG_RESULT([defining localfcnfiledir to be $localfcnfiledir]) |
|
76 AC_MSG_RESULT([defining localfcnfilepath to be $localfcnfilepath]) |
|
77 AC_MSG_RESULT([defining archlibdir to be $archlibdir]) |
|
78 AC_MSG_RESULT([defining octfiledir to be $octfiledir]) |
|
79 AC_MSG_RESULT([defining localoctfiledir to be $localoctfiledir]) |
|
80 AC_MSG_RESULT([defining localoctfilepath to be $localoctfilepath]) |
|
81 AC_MSG_RESULT([defining fcnfilepath to be $fcnfilepath]) |
|
82 AC_MSG_RESULT([defining imagedir to be $imagedir]) |
|
83 AC_MSG_RESULT([defining imagepath to be $imagepath]) |
|
84 |
|
85 AC_SUBST(exec_prefix) |
|
86 AC_SUBST(bindir) |
|
87 AC_SUBST(datadir) |
|
88 AC_SUBST(libdir) |
1721
|
89 AC_SUBST(libexecdir) |
1667
|
90 AC_SUBST(includedir) |
|
91 AC_SUBST(mandir) |
|
92 AC_SUBST(infodir) |
|
93 AC_SUBST(fcnfiledir) |
|
94 AC_SUBST(localfcnfiledir) |
|
95 AC_SUBST(localfcnfilepath) |
|
96 AC_SUBST(archlibdir) |
|
97 AC_SUBST(octfiledir) |
|
98 AC_SUBST(localoctfiledir) |
|
99 AC_SUBST(localoctfilepath) |
|
100 AC_SUBST(fcnfilepath) |
|
101 AC_SUBST(imagedir) |
|
102 AC_SUBST(imagepath) |
|
103 |
|
104 ### Path separator. |
|
105 |
1679
|
106 AC_DEFINE(SEPCHAR, [':']) |
|
107 AC_DEFINE(SEPCHAR_STR, [":"]) |
1667
|
108 |
869
|
109 ### Allow the user to force us to use f2c. |
|
110 |
832
|
111 AC_ARG_WITH(f2c, |
|
112 [ --with-f2c use f2c even if Fortran compiler is available], |
1177
|
113 [if test $withval = no; then use_f2c=false; else use_f2c=true; fi], |
|
114 use_f2c=false) |
|
115 |
|
116 ### Allow the user to force us to use g77. |
|
117 |
|
118 AC_ARG_WITH(g77, |
|
119 [ --with-g77 use g77 to compile Fortran subroutines], |
|
120 [if test $withval = no; then use_g77=false; else use_g77=true; fi], |
|
121 use_g77=false) |
|
122 |
|
123 if $use_f2c && $use_g77; then |
|
124 AC_MSG_WARN([--with-f2c and --with-g77 both specified! Using g77...]) |
|
125 use_f2c=false |
|
126 fi |
869
|
127 |
1137
|
128 ### Allow the user disable support for GNU info. |
|
129 |
1261
|
130 INFO_DIR=info |
1137
|
131 USE_GNU_INFO=true |
1152
|
132 LIBINFO=../info/libinfo.a |
1137
|
133 AC_ARG_ENABLE(info, |
|
134 [ --enable-info use GNU info (default is yes)], |
1261
|
135 [if test $enableval = no; then |
|
136 USE_GNU_INFO=false; |
|
137 LIBINFO=""; |
|
138 INFO_DIR=""; |
|
139 fi], []) |
1264
|
140 if $USE_GNU_INFO; then |
|
141 AC_DEFINE(USE_GNU_INFO, 1) |
|
142 fi |
1145
|
143 AC_SUBST(LIBINFO) |
1261
|
144 AC_SUBST(INFO_DIR) |
|
145 |
1301
|
146 ### Allow the user disable support for plplot. |
|
147 |
1397
|
148 # USE_PLPLOT=true |
|
149 # PLPLOT_DIR=plplot |
|
150 # LIBPLPLOT=../plplot/libplplot.a |
|
151 USE_PLPLOT=false |
|
152 PLPLOT_DIR="" |
|
153 LIBPLPLOT="" |
1301
|
154 AC_ARG_ENABLE(plplot, |
|
155 [ --enable-plplot use plplot for plotting (default is yes)], |
|
156 [if test $enableval = no; then |
|
157 USE_PLPLOT=false; |
|
158 LIBPLPLOT=""; |
|
159 PLPLOT_DIR=""; |
|
160 fi], []) |
|
161 if $USE_PLPLOT; then |
|
162 AC_DEFINE(USE_PLPLOT, 1) |
|
163 fi |
|
164 AC_SUBST(LIBPLPLOT) |
|
165 AC_SUBST(PLPLOT_DIR) |
1137
|
166 |
1138
|
167 ### Allow the user disable support for command line editing using GNU |
|
168 ### readline. |
|
169 |
1261
|
170 READLINE_DIR=readline |
1138
|
171 USE_READLINE=true |
1679
|
172 LIBREADLINE=-lreadline |
1138
|
173 AC_ARG_ENABLE(readline, |
|
174 [ --enable-readline use readline library (default is yes)], |
1261
|
175 [if test "$enableval" = no; then |
|
176 USE_READLINE=false; |
|
177 LIBREADLINE=""; |
|
178 READLINE_DIR=""; |
|
179 fi], []) |
1264
|
180 if $USE_READLINE; then |
|
181 AC_DEFINE(USE_READLINE, 1) |
|
182 fi |
1145
|
183 AC_SUBST(LIBREADLINE) |
1261
|
184 AC_SUBST(READLINE_DIR) |
1138
|
185 |
869
|
186 ### See which C++ compiler to use (we expect to find g++). |
|
187 |
1334
|
188 EXTERN_CXXFLAGS="$CXXFLAGS" |
|
189 |
405
|
190 AC_PROG_CXX |
|
191 AC_PROG_CXXCPP |
869
|
192 |
|
193 ### Do special things for g++. |
|
194 |
405
|
195 ADD_CXX_WALL=false |
759
|
196 NO_IMPLICIT_TEMPLATES= |
1207
|
197 gxx_version=`$CXX -v 2>&1 | grep "^.*g.. version" | sed 's/^.*g.. version *//'` |
405
|
198 case "$gxx_version" in |
832
|
199 changequote(,)dnl |
|
200 2.[6789].*|2.[123456789][0123456789].*) |
|
201 changequote([,])dnl |
1334
|
202 if test -z "$EXTERN_CXXFLAGS"; then |
1087
|
203 ADD_CXX_WALL=true |
|
204 fi |
759
|
205 NO_IMPLICIT_TEMPLATES="-fno-implicit-templates" |
832
|
206 AC_MSG_RESULT([defining NO_IMPLICIT_TEMPLATES to be $NO_IMPLICIT_TEMPLATES]) |
405
|
207 ;; |
832
|
208 changequote(,)dnl |
|
209 1.*|2.[012345].*) |
|
210 changequote([,])dnl |
1664
|
211 AC_MSG_ERROR([g++ version $gxx_version will not work to compile Octave]) |
405
|
212 ;; |
|
213 *) |
832
|
214 AC_MSG_WARN([Octave has only been tested with g++, and I can't find it]) |
405
|
215 ;; |
|
216 esac |
869
|
217 |
1018
|
218 HOST_CXXFLAGS= |
965
|
219 case "$gxx_version" in |
|
220 2.6.*) |
|
221 case "$canonical_host_type" in |
|
222 rs6000-ibm-aix*) |
1018
|
223 HOST_CXXFLAGS="-Wa,-u" |
|
224 AC_MSG_RESULT([defining HOST_CXXFLAGS to be $HOST_CXXFLAGS]) |
965
|
225 ;; |
|
226 esac |
|
227 ;; |
|
228 esac |
|
229 |
1894
|
230 CXX_VERSION= |
|
231 if test -n "$gxx_version"; then |
|
232 CXX_VERSION="$gxx_version" |
|
233 fi |
|
234 AC_SUBST(CXX_VERSION) |
|
235 |
1018
|
236 AC_SUBST(HOST_CXXFLAGS) |
1225
|
237 AC_SUBST(NO_IMPLICIT_TEMPLATES) |
1018
|
238 |
869
|
239 ### See which C compiler to use (we expect to find gcc). |
|
240 |
1334
|
241 EXTERN_CFLAGS="$CFLAGS" |
|
242 |
5
|
243 AC_PROG_CC |
405
|
244 AC_PROG_CPP |
832
|
245 AC_PROG_GCC_TRADITIONAL |
869
|
246 |
|
247 ### Do special things for gcc. |
|
248 |
405
|
249 ADD_CC_WALL=false |
1207
|
250 gcc_version=`$CC -v 2>&1 | grep "^.*gcc version" | sed 's/^.*gcc version *//'` |
405
|
251 case "$gcc_version" in |
|
252 2.*) |
1334
|
253 if test -z "$EXTERN_CFLAGS"; then |
1087
|
254 ADD_CC_WALL=true |
|
255 fi |
|
256 if test -z "$LDFLAGS"; then |
|
257 LDFLAGS="-g" |
|
258 AC_MSG_RESULT([defining LDFLAGS to be $LDFLAGS]) |
|
259 fi |
405
|
260 ;; |
|
261 1.*) |
832
|
262 AC_MSG_WARN([gcc version $gcc_version is likely to cause problems]) |
405
|
263 ;; |
5
|
264 *) |
832
|
265 AC_MSG_WARN([Octave has only been tested with gcc, and I can't find it]) |
405
|
266 ;; |
5
|
267 esac |
869
|
268 |
1894
|
269 CC_VERSION= |
|
270 if test -n "$gcc_version"; then |
|
271 CC_VERSION="$gcc_version" |
|
272 fi |
|
273 AC_SUBST(CC_VERSION) |
|
274 |
869
|
275 ### On Linux systems we need to compile with -mieee-fp to get full |
|
276 ### support for IEEE floating point. |
2020
|
277 ### |
|
278 ### On Alpha/OSF systems, wee need -mieee-with-inexact, but that also |
|
279 ### requires gcc 2.8.x or later. |
869
|
280 |
350
|
281 case "$canonical_host_type" in |
2022
|
282 changequote(,)dnl |
1667
|
283 i[345]86-*-linux) |
2022
|
284 changequote([,])dnl |
350
|
285 GCC_IEEE_FP_FLAG="-mieee-fp" |
832
|
286 AC_MSG_RESULT([defining GCC_IEEE_FP_FLAG to be $GCC_IEEE_FP_FLAG]) |
324
|
287 ;; |
2020
|
288 alpha-dec-osf*) |
2022
|
289 case "$gcc_version" in |
|
290 changequote(,)dnl |
2020
|
291 1.* | 2.[01234567].*) |
2022
|
292 changequote([,])dnl |
2020
|
293 ;; |
|
294 *) |
|
295 GCC_IEEE_FP_FLAG="-mieee-with-inexact" |
|
296 AC_MSG_RESULT([defining GCC_IEEE_FP_FLAG to be $GCC_IEEE_FP_FLAG]) |
|
297 ;; |
|
298 esac |
|
299 ;; |
324
|
300 esac |
1667
|
301 AC_SUBST(GCC_IEEE_FP_FLAG) |
869
|
302 |
1667
|
303 ### Use -static if compiling on Alpha OSF/1 1.3 systems. |
|
304 |
|
305 case "$canonical_host_type" in |
|
306 alpha-dec-osf1.3) |
|
307 LD_STATIC_FLAG=-static |
|
308 ;; |
|
309 esac |
1679
|
310 if test -n "$LD_STATIC_FLAG"; then |
|
311 AC_MSG_RESULT([defining LD_STATIC_FLAG to be $LD_STATIC_FLAG]) |
|
312 fi |
|
313 AC_SUBST(LD_STATIC_FLAG) |
1667
|
314 |
2025
|
315 ### Try to make it possible to find getrusage on Solaris systems. |
|
316 |
|
317 case "$canonical_host_type" in |
|
318 *-*-solaris2*) |
2030
|
319 UCBLIB=/usr/ucblib/libucb.a |
2025
|
320 if test -f $UCBLIB; then |
|
321 LIBS="-lc $UCBLIB $LIBS" |
|
322 AC_MSG_RESULT([adding $UCBLIB to LIBS]) |
|
323 fi |
|
324 ;; |
|
325 esac |
|
326 |
1667
|
327 ### Handle dynamic linking and shared library options. |
|
328 |
|
329 ### Allow the user to experiment with dynamic linking using dlopen/dlsym. |
|
330 |
|
331 AC_ARG_ENABLE(dl, |
|
332 [ --enable-dl use dlopen/dlsym for dynamic linking (not all systems)], |
1978
|
333 [if test $enableval = no; then WITH_DL=no; |
|
334 elif test $enableval = yes; then WITH_DL=yes; |
|
335 else WITH_DL=maybe; fi], |
|
336 WITH_DL=maybe) |
1667
|
337 |
|
338 ### Allow the user to experiment with dynamic linking using |
|
339 ### shl_load/shl_findsym (HP/UX only?). |
|
340 |
|
341 AC_ARG_ENABLE(shl, |
|
342 [ --enable-shl use shl_load/shl_findsym for dynamic linking (HP only?)], |
1978
|
343 [if test $enableval = no; then WITH_SHL=no; |
|
344 elif test $enableval = yes; then WITH_SHL=yes; |
|
345 else WITH_SHL=maybe; fi], |
|
346 WITH_SHL=maybe) |
1679
|
347 |
1667
|
348 ### Enable creation of shared libraries. Currently only works with |
|
349 ### gcc on some systems. |
|
350 |
|
351 AC_ARG_ENABLE(shared, |
1902
|
352 [ --enable-shared create shared libraries (not all systems)], |
1679
|
353 [if test $enableval = no; then SHARED_LIBS=false; else SHARED_LIBS=true; fi], |
|
354 SHARED_LIBS=false) |
|
355 AC_SUBST(SHARED_LIBS) |
1667
|
356 |
1679
|
357 if $SHARED_LIBS; then |
1667
|
358 CPICFLAG=-fPIC |
|
359 CXXPICFLAG=-fPIC |
|
360 FPICFLAG=-fPIC |
1679
|
361 SHLEXT=so |
1856
|
362 RLD_FLAG= |
1679
|
363 case "$canonical_host_type" in |
|
364 alpha-dec-osf*) |
|
365 CPICFLAG= |
|
366 CXXPICFLAG= |
|
367 FPICFLAG= |
1856
|
368 RLD_FLAG='-Xlinker -rpath -Xlinker $(libdir)' |
1679
|
369 ;; |
|
370 rs6000-ibm-aix*) |
1667
|
371 CPICFLAG= |
|
372 CXXPICFLAG= |
|
373 FPICFLAG= |
|
374 ;; |
|
375 hppa*-hp-hpux*) |
|
376 FPICFLAG=+Z |
1679
|
377 SHLEXT=sl |
|
378 RLD_FLAG='-Xlinker +b -Xlinker $(libdir)' |
1667
|
379 ;; |
|
380 *-sgi-*) |
|
381 FPICFLAG=-KPIC |
|
382 ;; |
1679
|
383 sparc-sun-sunos4*) |
1667
|
384 FPICFLAG=-PIC |
1679
|
385 RLD_FLAG='-L $(libdir)' |
|
386 ;; |
|
387 sparc-sun-sunos5*) |
|
388 FPICFLAG=-PIC |
|
389 RLD_FLAG='-Xlinker -R -Xlinker $(libdir)' |
1667
|
390 ;; |
|
391 esac |
|
392 else |
|
393 FPICFLAG= |
|
394 CPICFLAG= |
|
395 CXXPICFLAG= |
1679
|
396 SHLEXT= |
|
397 RLD_FLAG= |
1667
|
398 fi |
|
399 AC_MSG_RESULT([defining FPICFLAG to be $FPICFLAG]) |
|
400 AC_MSG_RESULT([defining CPICFLAG to be $CPICFLAG]) |
|
401 AC_MSG_RESULT([defining CXXPICFLAG to be $CXXPICFLAG]) |
1679
|
402 AC_MSG_RESULT([defining SHLEXT to be $SHLEXT]) |
1668
|
403 AC_SUBST(FPICFLAG) |
|
404 AC_SUBST(CPICFLAG) |
|
405 AC_SUBST(CXXPICFLAG) |
1679
|
406 AC_SUBST(SHLEXT) |
|
407 AC_SUBST(RLD_FLAG) |
1667
|
408 |
|
409 ### Allow compilation of smaller kernel. This only works if some form |
|
410 ### of dynamic linking is also supported and used. |
|
411 |
|
412 AC_ARG_ENABLE(lite-kernel, |
|
413 [ --enable-lite-kernel compile smaller kernel (requires dynamic linking)], |
1679
|
414 [if test $enableval = no; then OCTAVE_LITE=false; else OCTAVE_LITE=true; fi], |
|
415 OCTAVE_LITE=false) |
|
416 if $OCTAVE_LITE; then |
1667
|
417 AC_DEFINE(OCTAVE_LITE, 1) |
|
418 fi |
1679
|
419 AC_SUBST(OCTAVE_LITE) |
1667
|
420 |
1679
|
421 ### special checks for odd OS specific things. |
869
|
422 |
405
|
423 AC_ISC_POSIX |
|
424 AC_MINIX |
|
425 AC_AIX |
832
|
426 AC_CHECK_LIB(sun, getpwnam) |
869
|
427 |
|
428 ### How big are ints and how are they oriented? These could probably |
|
429 ### be eliminated in favor of run-time checks. |
|
430 |
832
|
431 AC_CHECK_SIZEOF(short) |
|
432 AC_CHECK_SIZEOF(int) |
|
433 AC_CHECK_SIZEOF(long) |
869
|
434 |
|
435 ### Does the C compiler handle alloca() and const correctly? |
|
436 |
405
|
437 AC_ALLOCA |
832
|
438 AC_C_CONST |
869
|
439 |
1233
|
440 ### Get the list of libraries that the C++ compiler normally uses. |
|
441 |
|
442 OCTAVE_CXXLIBS |
|
443 |
869
|
444 ### If we haven't been forced to use f2c, try to find a Fortran compiler |
|
445 ### under any one of several common Un*x Fortran compiler names. |
|
446 ### Put fc last to avoid confusion with some vendor's /bin/sh fc |
|
447 ### builtin. |
|
448 ### |
|
449 ### xlf : IBM / AIX |
|
450 ### cf77 : Cray / Unicos |
|
451 ### g77 : GNU Fortran (someday...) |
|
452 ### fc : Convex |
|
453 ### |
|
454 ### I don't think the Cray compiler will ever work like f2c... |
1239
|
455 ### |
|
456 ### The optional arguments to --with-g77 or --with-f2c force g77 or |
|
457 ### f2c to be used. The optional argument to can be used to set the |
|
458 ### name of g77 or f2c. For example `--with-g77=/opt/gnu/bin/f77' |
|
459 ### says that we are using g77 but it is installed as |
|
460 ### /opt/gnu/bin/f77. |
|
461 ### |
|
462 ### If neither of those options are specified, look for a Fortran |
|
463 ### compiler. If one is found, see if it is compatible with our |
|
464 ### assumptions. If it is, use it. Otherwise, look for f2c. |
|
465 ### |
|
466 ### Issue a warning if we can't find a compatible fortran compiler or |
|
467 ### f2c. |
1233
|
468 |
1177
|
469 if $use_g77; then |
1239
|
470 if test "$with_g77" = "yes"; then |
|
471 F77=g77 |
|
472 else |
|
473 F77="$with_g77" |
|
474 fi |
|
475 AC_MSG_RESULT([defining F77 to be $F77]) |
1233
|
476 elif $use_f2c; then |
|
477 F77= |
1239
|
478 if test "$with_f2c" = "yes"; then |
1317
|
479 F2C=f2c |
1239
|
480 else |
|
481 F2C="$with_f2c" |
|
482 fi |
|
483 AC_MSG_RESULT([defining F2C to be $F2C]) |
5
|
484 else |
869
|
485 AC_CHECK_PROGS(F77, xlf cf77 f77 g77 fc) |
1233
|
486 fi |
5
|
487 |
1239
|
488 FUGLY= |
|
489 have_fortran_compiler=false |
|
490 have_f2c=false |
5
|
491 |
1239
|
492 if $use_g77; then |
|
493 FUGLY=-fugly |
|
494 AC_MSG_RESULT([defining FUGLY to be $FUGLY]) |
1233
|
495 OCTAVE_FLIBS |
1239
|
496 AC_DEFINE(F77_APPEND_UNDERSCORE, 1) |
|
497 AC_MSG_RESULT([defining F77_APPEND_UNDERSCORE to be 1]) |
|
498 have_fortran_compiler=true |
|
499 elif $use_f2c; then |
|
500 have_f2c=true |
|
501 else |
|
502 if test -n "$F77"; then |
|
503 OCTAVE_FLIBS |
|
504 OCTAVE_F77_APPEND_UNDERSCORE |
|
505 OCTAVE_F2C_F77_COMPAT |
|
506 if test "$octave_cv_f2c_f77_compat" = no; then |
|
507 F77= |
|
508 else |
|
509 if test -z "$FFLAGS"; then |
|
510 FFLAGS="-O" |
1316
|
511 fi |
|
512 case "$canonical_host_type" in |
|
513 alpha-dec-osf*) |
|
514 FFLAGS="-fpe1 $FFLAGS" |
|
515 ;; |
|
516 esac |
|
517 if test -n "$FFLAGS"; then |
1239
|
518 AC_MSG_RESULT([defining FFLAGS to be $FFLAGS]) |
|
519 fi |
|
520 fi |
|
521 fi |
|
522 if test -n "$F77"; then |
|
523 have_fortran_compiler=true |
1233
|
524 else |
1239
|
525 AC_CHECK_PROG(F2C, f2c, f2c, []) |
|
526 if test -n "$F2C"; then |
|
527 have_f2c=true |
5
|
528 fi |
|
529 fi |
|
530 fi |
869
|
531 |
1679
|
532 f77_rules_frag=Makerules.f77 |
1239
|
533 if $have_fortran_compiler; then |
1679
|
534 changequote(,)dnl |
|
535 cat << \EOF > $f77_rules_frag |
1668
|
536 |
1753
|
537 %.c : %.f |
1668
|
538 |
1791
|
539 %.o : %.f |
1679
|
540 $(FC) -c $(ALL_FFLAGS) $< |
1668
|
541 |
1984
|
542 pic/%.o : %.f |
|
543 $(FC) -c $(FPICFLAG) $(ALL_FFLAGS) $< -o $@ |
|
544 |
1668
|
545 EOF |
1679
|
546 changequote([,])dnl |
1239
|
547 elif $have_f2c; then |
|
548 AC_DEFINE(F77_APPEND_UNDERSCORE, 1) |
|
549 AC_MSG_RESULT([defining F77_APPEND_UNDERSCORE to be 1]) |
1752
|
550 AC_CHECK_LIB(f2c, main, FLIBS=-lf2c, [], -lm) |
1462
|
551 if test -z "$FLIBS"; then |
869
|
552 AC_CHECK_LIB(F77, main, FLIBS=-lF77, []) |
1462
|
553 if test -n "$FLIBS"; then |
869
|
554 AC_CHECK_LIB(I77, main, FLIBS="$FLIBS -lI77", []) |
5
|
555 fi |
|
556 fi |
1462
|
557 if test -z "$FLIBS"; then |
832
|
558 AC_MSG_WARN([I found f2c but not libf2c.a, or libF77.a and libI77.a]) |
5
|
559 fi |
1679
|
560 f77_rules_frag=Makerules.f77 |
|
561 cat << \EOF > $f77_rules_frag |
1668
|
562 |
1824
|
563 %.c : %.f |
1668
|
564 cat $< | $(F2C) $(F2CFLAGS) > $(@F) |
|
565 |
1753
|
566 %.o : %.f |
1668
|
567 |
|
568 EOF |
5
|
569 else |
832
|
570 AC_MSG_WARN([in order to build octave, you must have a compatible]) |
|
571 AC_MSG_WARN([Fortran compiler or f2c installed and in your path.]) |
1664
|
572 AC_MSG_ERROR([See the file INSTALL for more information.]) |
5
|
573 fi |
869
|
574 |
1163
|
575 FC=$F77 |
|
576 AC_SUBST(FC) |
869
|
577 AC_SUBST(F77) |
|
578 AC_SUBST(FFLAGS) |
1177
|
579 AC_SUBST(FUGLY) |
869
|
580 AC_SUBST(FLIBS) |
|
581 AC_SUBST(F2C) |
|
582 AC_SUBST(F2CFLAGS) |
1679
|
583 AC_SUBST_FILE(f77_rules_frag) |
869
|
584 |
|
585 ### Extract libraries and directories from FLIBS and CXXLIBS. |
|
586 ### |
|
587 ### Leave only libraries, with -lfoo converted to libfoo.a: |
|
588 |
708
|
589 changequote(,)dnl |
843
|
590 FLIB_LIST=`echo " $FLIBS " | sed -e 's/ -Xlinker *[^ ]*/ /g' \ |
1175
|
591 -e 's/ -[LR] *[^ ]*/ /g' \ |
843
|
592 -e 's/ -l *\([^ ]*\)/ lib\1.a/g' -e 's/ -u *[^ ]*/ /g' \ |
1068
|
593 -e 's/ [^ ]*\.o//g' \ |
832
|
594 -e 's/^ *//' -e 's/ *$//' -e 's/ */:/g'` |
869
|
595 |
843
|
596 CXXLIB_LIST=`echo " $CXXLIBS " | sed -e 's/ -Xlinker *[^ ]*/ /g' \ |
1175
|
597 -e 's/ -[LR] *[^ ]*/ /g' \ |
843
|
598 -e 's/ -l *\([^ ]*\)/ lib\1.a/g' -e 's/ -u *[^ ]*/ /g' \ |
1068
|
599 -e 's/ [^ ]*\.o//g' \ |
708
|
600 -e 's/^ *//' -e 's/ *$//' -e 's/ */:/g'` |
869
|
601 |
|
602 ### Leave only directories where libraries might be found: |
|
603 |
843
|
604 FLIB_PATH=`echo " $FLIBS " | sed \ |
|
605 -e 's/ / /g' -e 's/ -Xlinker *[^ ]*/ /g' \ |
1175
|
606 -e 's/ -[LR] *\([^ ]*\)/ \1/g' -e 's, /[^ ]*\.a , ,g' \ |
1069
|
607 -e 's/ -l *[^ ]*/ /g' -e 's/ -u *[^ ]*/ /g' \ |
|
608 -e 's/ [^ ]*\.o//g' \ |
|
609 -e 's/^ *//' -e 's/ *$//' -e 's/ */:/g'` |
869
|
610 |
843
|
611 CXXLIB_PATH=`echo " $CXXLIBS " | sed -e 's/ -Xlinker *[^ ]*/ /g' \ |
1175
|
612 -e 's/ -[LR] *\([^ ]*\)/ \1/g' -e 's, /[^ ]*\.a , ,g' \ |
843
|
613 -e 's/ / /g' -e 's/ -Xlinker *[^ ]*/ /g' \ |
1069
|
614 -e 's/ -l *[^ ]*/ /g' -e 's/ -u *[^ ]*/ /g' \ |
|
615 -e 's/ [^ ]*\.o//g' \ |
|
616 -e 's/^ *//' -e 's/ *$//' -e 's/ */:/g'` |
708
|
617 changequote([,])dnl |
869
|
618 |
832
|
619 AC_MSG_RESULT([defining FLIB_LIST to be $FLIB_LIST]) |
|
620 AC_MSG_RESULT([defining FLIB_PATH to be $FLIB_PATH]) |
869
|
621 |
832
|
622 AC_MSG_RESULT([defining CXXLIB_LIST to be $CXXLIB_LIST]) |
|
623 AC_MSG_RESULT([defining CXXLIB_PATH to be $CXXLIB_PATH]) |
869
|
624 |
|
625 AC_SUBST(FLIB_LIST) |
|
626 AC_SUBST(FLIB_PATH) |
|
627 |
|
628 AC_SUBST(CXXLIB_LIST) |
|
629 AC_SUBST(CXXLIB_PATH) |
|
630 |
|
631 ### Checks for header files. |
|
632 |
832
|
633 AC_HEADER_STDC |
|
634 AC_HEADER_DIRENT |
1377
|
635 AC_HEADER_TIME |
|
636 AC_HEADER_SYS_WAIT |
|
637 AC_CHECK_HEADERS(assert.h float.h floatingpoint.h limits.h memory.h) |
|
638 AC_CHECK_HEADERS(pwd.h stdlib.h string.h unistd.h varargs.h) |
|
639 AC_CHECK_HEADERS(sys/fcntl.h sys/param.h sys/resource.h sys/select.h) |
2019
|
640 AC_CHECK_HEADERS(sys/stat.h sys/time.h sys/times.h sys/utsname.h) |
1445
|
641 AC_CHECK_HEADERS(termios.h termio.h sgtty.h) |
1473
|
642 AC_CHECK_HEADERS(termcap.h curses.h) |
869
|
643 |
|
644 if test "$ac_cv_header_termios_h" = yes \ |
|
645 || test "$ac_cv_header_termio_h" = yes \ |
|
646 || test "$ac_cv_header_sgtty_h" = yes; then |
832
|
647 true |
|
648 else |
|
649 AC_MSG_ERROR([I couldn't find termios.h, termio.h, or sgtty.h!]) |
|
650 fi |
869
|
651 |
1667
|
652 ### See if the optional nonlinear programming code is present. |
|
653 |
|
654 AC_MSG_CHECKING([for npsol]) |
|
655 if test -f $srcdir/libcruft/npsol/npsol.f; then |
|
656 AC_MSG_RESULT(yes) |
|
657 else |
|
658 AC_MSG_RESULT(no) |
|
659 AC_DEFINE(NPSOL_MISSING, 1) |
|
660 fi |
|
661 |
|
662 AC_MSG_CHECKING([for qpsol]) |
|
663 if test -f $srcdir/libcruft/qpsol/qpsol.f; then |
|
664 AC_MSG_RESULT(yes) |
|
665 else |
|
666 AC_MSG_RESULT(no) |
|
667 AC_DEFINE(QPSOL_MISSING, 1) |
|
668 fi |
|
669 |
|
670 AC_MSG_CHECKING([for fsqp]) |
|
671 if test -f $srcdir/libcruft/fsqp/fsqpd.f; then |
|
672 AC_MSG_RESULT(yes) |
|
673 else |
|
674 AC_MSG_RESULT(no) |
|
675 AC_DEFINE(FSQP_MISSING, 1) |
|
676 fi |
|
677 |
1788
|
678 ### Checks for functions and variables. |
869
|
679 |
966
|
680 AC_CHECK_FUNCS(setvbuf getcwd gethostname bzero bcopy rindex vfprintf vsprintf) |
903
|
681 AC_CHECK_FUNCS(stricmp strnicmp strcasecmp strncasecmp strerror atexit) |
2019
|
682 AC_CHECK_FUNCS(on_exit tempnam memmove putenv getrusage times) |
1399
|
683 AC_CHECK_FUNCS(mkdir rmdir rename umask) |
1445
|
684 AC_CHECK_FUNCS(sigaction sigprocmask sigpending sigsuspend) |
1300
|
685 |
1708
|
686 OCTAVE_SMART_PUTENV |
1788
|
687 OCTAVE_PROGRAM_INVOCATION_NAME |
1708
|
688 |
1978
|
689 if test "$WITH_DL" = yes || test "$WITH_DL" = maybe; then |
|
690 AC_CHECK_LIB(dl, dlopen) |
|
691 AC_CHECK_FUNCS(dlopen dlsym dlerror dlclose) |
|
692 if test "$ac_cv_func_dlopen" = yes \ |
|
693 && test "$ac_cv_func_dlsym" = yes \ |
|
694 && test "$ac_cv_func_dlerror" = yes \ |
|
695 && test "$ac_cv_func_dlclose" = yes; then |
|
696 WITH_DL=true |
|
697 else |
|
698 if test "$WITH_DL" = yes; then |
|
699 AC_MSG_ERROR([--enable-dl specified, but functions are missing!]) |
|
700 fi |
|
701 WITH_DL=false |
|
702 fi |
|
703 if $WITH_DL; then |
|
704 AC_DEFINE(WITH_DL, 1) |
|
705 fi |
|
706 else |
|
707 WITH_DL=false |
1664
|
708 fi |
1978
|
709 AC_SUBST(WITH_DL) |
1664
|
710 |
1978
|
711 if test "$WITH_SHL" = yes || test "$WITH_SHL" = maybe; then |
|
712 AC_CHECK_LIB(dld, shl_load) |
|
713 AC_CHECK_FUNCS(shl_load shl_findsym) |
|
714 if test "$ac_cv_func_shl_load" = yes \ |
|
715 && test "$ac_cv_func_shl_findsym" = yes; then |
|
716 WITH_SHL=true |
|
717 else |
|
718 if test "$WITH_SHL" = yes; then |
|
719 AC_MSG_ERROR([--enable-shl specified, but functions are missing!]) |
|
720 fi |
|
721 WITH_SHL=false |
|
722 fi |
|
723 if $WITH_SHL; then |
|
724 AC_DEFINE(WITH_SHL, 1) |
|
725 fi |
|
726 else |
|
727 WITH_SHL=false |
1664
|
728 fi |
1978
|
729 AC_SUBST(WITH_SHL) |
1664
|
730 |
1901
|
731 ### Set WITH_DYNAMIC_LINKING after all the other shared library stuff |
|
732 ### has been determined. |
|
733 |
|
734 if $WITH_DL || $WITH_SHL; then |
|
735 AC_DEFINE(WITH_DYNAMIC_LINKING, 1) |
|
736 WITH_DYNAMIC_LINKING=true |
|
737 else |
|
738 WITH_DYNAMIC_LINKING=false |
|
739 fi |
|
740 AC_SUBST(WITH_DYNAMIC_LINKING) |
|
741 |
1300
|
742 ### There is more than one possible prototype for gettimeofday. See |
|
743 ### which one (if any) appears in sys/time.h. |
|
744 |
|
745 AC_CHECK_FUNC(gettimeofday, |
|
746 AC_TRY_COMPILE([#include <sys/time.h>], |
|
747 [gettimeofday ((struct timeval *) 0,(struct timezone *) 0);], |
|
748 [], AC_DEFINE(GETTIMEOFDAY_NO_TZ))) |
869
|
749 |
832
|
750 dnl Would like to get rid of this cruft, and just have |
|
751 dnl |
|
752 dnl AC_CHECK_FUNCS(finite isnan isinf) |
|
753 dnl |
|
754 dnl instead, but that used to fail on some systems... |
369
|
755 dnl |
832
|
756 dnl Also just using AC_CHECK_FUNCS doesn't seem to work to find isinf |
|
757 dnl and isnan on Linux systems, so we use AC_CHECK_FUNC, and if that |
369
|
758 dnl fails, we try again by including math.h and invoking the function |
|
759 dnl with an argument. |
869
|
760 |
|
761 ### Check to see if we have IEEE math functions, and if so, which ones. |
|
762 ### |
|
763 ### For Linux: add -mieee-fp flag to CFLAGS when checking for IEEE FP |
|
764 ### functions, otherwise we may not find them. |
|
765 ### |
|
766 ### Also check for some additional trig functions that aren't ANSI but |
|
767 ### are often available. If they are missing, we try to replace them |
|
768 ### with functions from the BSD/NET2 math library. |
|
769 |
|
770 AC_CHECK_LIB(sunmath, main) |
1070
|
771 |
|
772 dnl This is bogus. We shouldn't have to explicitly add libc too! |
|
773 |
|
774 case "$canonical_host_type" in |
|
775 *-*-linux*) |
|
776 AC_CHECK_LIB(m, main, , , -lc) |
|
777 ;; |
|
778 *) |
|
779 AC_CHECK_LIB(m, main) |
|
780 ;; |
|
781 esac |
869
|
782 |
360
|
783 XCFLAGS="$CFLAGS" |
351
|
784 CFLAGS="$CFLAGS $GCC_IEEE_FP_FLAG" |
869
|
785 |
1384
|
786 ### I am told that Inf and NaN don't work on m68k HP sytems. |
956
|
787 |
|
788 case "$canonical_host_type" in |
1384
|
789 m68k-hp-hpux*) |
956
|
790 ;; |
|
791 *) |
|
792 AC_CHECK_FUNCS(finite isnan isinf infinity quiet_nan) |
|
793 ;; |
|
794 esac |
|
795 |
1076
|
796 ### Check for nonstandard but common math functions that we need. |
|
797 |
1172
|
798 AC_CHECK_FUNCS(acosh asinh atanh erf erfc) |
869
|
799 |
360
|
800 CFLAGS="$XCFLAGS" |
869
|
801 |
|
802 ### Checks for OS specific cruft. |
|
803 |
1377
|
804 AC_STRUCT_ST_BLKSIZE |
|
805 AC_STRUCT_ST_BLOCKS |
|
806 AC_STRUCT_ST_RDEV |
405
|
807 AC_STRUCT_TM |
1186
|
808 AC_STRUCT_TIMEZONE |
832
|
809 AC_FUNC_SETVBUF_REVERSED |
1388
|
810 AC_FUNC_CLOSEDIR_VOID |
1225
|
811 |
405
|
812 TERMLIBS="" |
1462
|
813 for termlib in termcap terminfo curses termlib; do |
832
|
814 AC_CHECK_LIB(${termlib}, main, [TERMLIBS="${TERMLIBS} -l${termlib}"]) |
405
|
815 case "${TERMLIBS}" in |
|
816 *-l${termlib}*) |
832
|
817 AC_MSG_RESULT([defining TERMLIBS to be $TERMLIBS]) |
405
|
818 break |
|
819 ;; |
|
820 esac |
|
821 done |
1225
|
822 AC_SUBST(TERMLIBS) |
869
|
823 |
832
|
824 AC_MSG_CHECKING([for struct exception in math.h]) |
|
825 AC_TRY_LINK([#include <math.h>], |
|
826 [struct exception *x; x->type; x->name;], |
835
|
827 AC_MSG_RESULT(yes) |
832
|
828 AC_DEFINE(EXCEPTION_IN_MATH, 1), |
869
|
829 AC_MSG_RESULT(no)) |
|
830 |
|
831 ### Signal stuff. |
|
832 |
834
|
833 AC_TYPE_SIGNAL |
885
|
834 AC_DECL_SYS_SIGLIST |
|
835 AC_MSG_CHECKING([for sys_siglist variable]) |
|
836 AC_TRY_LINK([#include <stdio.h>], |
|
837 [extern char *sys_siglist[]; printf ("%s\n", sys_siglist[1]);], |
|
838 AC_MSG_RESULT(yes) |
|
839 AC_DEFINE(HAVE_SYS_SIGLIST, 1), |
|
840 AC_MSG_RESULT(no)) |
869
|
841 |
1762
|
842 ### Type stuff. |
|
843 |
|
844 AC_TYPE_MODE_T |
|
845 AC_TYPE_OFF_T |
|
846 AC_TYPE_SIZE_T |
|
847 AC_TYPE_UID_T |
|
848 AC_CHECK_TYPE(dev_t, short) |
|
849 AC_CHECK_TYPE(ino_t, unsigned long) |
|
850 AC_CHECK_TYPE(nlink_t, short) |
|
851 |
869
|
852 ### Define VOID_SIGHANDLER for readline. |
|
853 |
405
|
854 case "$RETSIGTYPE" in |
|
855 int) |
|
856 ;; |
|
857 *) |
|
858 VOID_SIGHANDLER="-DVOID_SIGHANDLER=1" |
832
|
859 AC_MSG_RESULT([defining VOID_SIGHANDLER to be 1]) |
405
|
860 ;; |
|
861 esac |
869
|
862 AC_SUBST(VOID_SIGHANDLER) |
|
863 |
|
864 ### Checks for other programs used for building, testing, installing, |
|
865 ### and running Octave. |
|
866 ### |
|
867 ### For now, don't define LEXLIB to be -lfl -- we don't use anything in |
|
868 ### it, and it might not be installed. |
|
869 ### |
|
870 ### Also make sure that we generate an interactive scanner if we are |
|
871 ### using flex. |
|
872 |
405
|
873 AC_PROG_LEX |
|
874 case "$LEX" in |
|
875 flex*) |
|
876 LFLAGS="-t -I" |
832
|
877 AC_MSG_RESULT([defining LFLAGS to be $LFLAGS]) |
405
|
878 LEXLIB= |
|
879 ;; |
|
880 *) |
|
881 LFLAGS="-t" |
832
|
882 AC_MSG_RESULT([defining LFLAGS to be $LFLAGS]) |
|
883 AC_MSG_WARN([I didn't find flex, but that's only a problem]) |
|
884 AC_MSG_WARN([if you need to reconstruct lex.cc]) |
405
|
885 ;; |
|
886 esac |
869
|
887 AC_SUBST(LFLAGS) |
|
888 |
405
|
889 AC_PROG_YACC |
|
890 case "$YACC" in |
|
891 bison*) |
|
892 ;; |
|
893 *) |
832
|
894 AC_MSG_WARN([I didn't find bison, but that's only a problem]) |
|
895 AC_MSG_WARN([if you need to reconstruct parse.cc]) |
405
|
896 ;; |
|
897 esac |
869
|
898 |
1462
|
899 if test -z "$AR"; then |
|
900 AR=ar |
|
901 fi |
|
902 AC_SUBST(AR) |
|
903 |
|
904 if test -z "$ARFLAGS"; then |
|
905 ARFLAGS="rc" |
|
906 fi |
|
907 AC_SUBST(ARFLAGS) |
|
908 |
405
|
909 AC_PROG_RANLIB |
869
|
910 |
1722
|
911 AC_PROG_LN_S |
|
912 |
869
|
913 AC_CHECK_PROG(RUNTEST, runtest, runtest, []) |
|
914 AC_CHECK_PROG(EXPECT, expect, expect, []) |
1462
|
915 if test -z "$EXPECT"; then |
5
|
916 RUNTEST= |
|
917 fi |
869
|
918 AC_SUBST(RUNTEST) |
|
919 |
405
|
920 AC_PROG_INSTALL |
869
|
921 |
|
922 AC_CHECK_PROG(GNUPLOT_BINARY, gnuplot, gnuplot, []) |
1500
|
923 if test -n "$GNUPLOT_BINARY"; then |
|
924 AC_MSG_CHECKING([to see if your gnuplot supports multiplot]) |
1556
|
925 if test -z "`echo 'set term unknown; set multiplot' | \ |
|
926 $GNUPLOT_BINARY 2>&1`"; then |
1500
|
927 AC_MSG_RESULT([yes]) |
|
928 AC_DEFINE(GNUPLOT_HAS_MULTIPLOT, 1) |
|
929 else |
|
930 AC_MSG_RESULT([no]) |
|
931 fi |
|
932 else |
832
|
933 AC_MSG_WARN([I didn't find gnuplot. It isn't necessary to have gnuplot]) |
|
934 AC_MSG_WARN([installed, but you won't be able to use any of Octave's]) |
|
935 AC_MSG_WARN([plotting commands without it.]) |
|
936 AC_MSG_WARN([]) |
|
937 AC_MSG_WARN([If gnuplot is installed but it isn't in your path, you can]) |
|
938 AC_MSG_WARN([tell Octave where to find it by typing the command]) |
|
939 AC_MSG_WARN([]) |
|
940 AC_MSG_WARN([gnuplot_binary = "/full/path/to/gnuplot/binary"]) |
|
941 AC_MSG_WARN([]) |
|
942 AC_MSG_WARN([at the Octave prompt.]) |
405
|
943 fi |
869
|
944 |
|
945 AC_CHECK_PROGS(DEFAULT_PAGER, less more page pg, []) |
405
|
946 if test -z "$DEFAULT_PAGER"; then |
832
|
947 AC_MSG_WARN([I couldn't find `less', `more', `page', or `pg']) |
405
|
948 elif test "$DEFAULT_PAGER" = less; then |
|
949 DEFAULT_PAGER="less -e" |
832
|
950 AC_MSG_RESULT([defining DEFAULT_PAGER to be $DEFAULT_PAGER]) |
405
|
951 fi |
869
|
952 |
2032
|
953 ### Even though we include config.h, we need to have the preprocessor |
|
954 ### defines available in a variable for the octave-bug script. Use |
|
955 ### UGLY_DEFS for that. |
|
956 |
|
957 AC_OUTPUT_MAKE_DEFS |
|
958 UGLY_DEFS="$DEFS" |
|
959 AC_MSG_RESULT([defining UGLY_DEFS to be $UGLY_DEFS]) |
|
960 AC_SUBST(UGLY_DEFS) |
|
961 |
869
|
962 ### Maybe add -Wall to compiler flags now that we're done feature |
|
963 ### testing. |
|
964 ### |
|
965 ### To get gcc and g++ to be really picky, try these adding these |
|
966 ### options to CFLAGS and CXXFLAGS along with -Wall: |
|
967 ### |
|
968 ### -ansi |
|
969 ### -pedantic |
|
970 ### -Wwrite-strings |
|
971 ### -Wid-clash-31 |
|
972 ### -Wpointer-arith |
|
973 ### -Wcast-qual |
|
974 ### -Wenum-clash |
|
975 ### -Wcast-align |
|
976 ### -Wtraditional |
|
977 ### -Wstrict-prototypes |
|
978 ### -Wmissing-prototypes |
|
979 ### -Wnested-externs |
|
980 ### -Woverloaded-virtual |
|
981 ### -Winline |
|
982 ### -felide-constructors |
|
983 ### -fnonnull-objects |
|
984 |
405
|
985 if $ADD_CXX_WALL; then |
1481
|
986 CXXFLAGS="$CXXFLAGS -Wall" |
832
|
987 AC_MSG_RESULT([adding -Wall to CXXFLAGS]) |
405
|
988 fi |
|
989 if $ADD_CC_WALL; then |
1481
|
990 CFLAGS="$CFLAGS -Wall" |
832
|
991 AC_MSG_RESULT([adding -Wall to CFLAGS]) |
405
|
992 fi |
869
|
993 |
1146
|
994 ### Run configure in subdirectories. |
|
995 |
1304
|
996 export CC |
|
997 export CXX |
|
998 export F77 |
|
999 |
1789
|
1000 AC_CONFIG_SUBDIRS(glob kpathsea scripts $INFO_DIR $PLPLOT_DIR $READLINE_DIR) |
1146
|
1001 |
869
|
1002 ### Do the substitutions in all the Makefiles. |
|
1003 |
1997
|
1004 AC_OUTPUT(Makefile octMakefile Makeconf test/Makefile |
1998
|
1005 doc/Makefile doc/faq/Makefile doc/interpreter/Makefile |
|
1006 doc/liboctave/Makefile doc/refcard/Makefile |
1924
|
1007 liboctave/Makefile src/Makefile src/mk-oct-links |
1668
|
1008 libcruft/Makefile libcruft/Makerules libcruft/blas/Makefile |
|
1009 libcruft/balgen/Makefile libcruft/dassl/Makefile |
|
1010 libcruft/eispack/Makefile libcruft/fftpack/Makefile |
|
1011 libcruft/fsqp/Makefile libcruft/lapack/Makefile |
|
1012 libcruft/linpack/Makefile libcruft/minpack/Makefile |
|
1013 libcruft/misc/Makefile libcruft/npsol/Makefile |
|
1014 libcruft/odepack/Makefile libcruft/qpsol/Makefile |
|
1015 libcruft/quadpack/Makefile libcruft/ranlib/Makefile |
|
1016 libcruft/slatec-fn/Makefile libcruft/villad/Makefile) |
1225
|
1017 |
|
1018 ### Print a summary so that important information isn't missed. |
|
1019 |
|
1020 CXX_EXTRAS="$HOST_CXXFLAGS $NO_IMPLICIT_TEMPLATES $GCC_IEEE_FP_FLAG" |
|
1021 |
|
1022 if test -z "$F77"; then |
|
1023 FORT="$F2C $F2CFLAGS" |
|
1024 else |
|
1025 FORT="$F77 $FFLAGS $FUGLY" |
|
1026 fi |
|
1027 |
|
1028 AC_MSG_RESULT([ |
|
1029 |
|
1030 Octave is now configured for $canonical_host_type |
|
1031 |
1664
|
1032 Source directory: $srcdir |
|
1033 Installation prefix: $prefix |
|
1034 C compiler: $CC $GCC_IEEE_FP_FLAG $CFLAGS |
|
1035 C++ compiler: $CXX $CXX_EXTRAS $CXXFLAGS |
|
1036 Fortran compiler: $FORT |
|
1037 Fortran libraries: $FLIBS |
|
1038 Use GNU readline: $USE_READLINE |
|
1039 Use GNU info reader: $USE_GNU_INFO |
|
1040 Default pager: $DEFAULT_PAGER |
|
1041 gnuplot: $GNUPLOT_BINARY |
|
1042 |
1679
|
1043 Build shared libraries: $SHARED_LIBS |
|
1044 Minimal kernel option: $OCTAVE_LITE |
|
1045 Dynamic Linking (dlopen/dlsym): $WITH_DL |
|
1046 Dynamic Linking (shl_load/shl_findsym): $WITH_SHL |
1225
|
1047 ]) |