annotate configure.in @ 832:3984a1e61ebc

[project @ 1994-10-19 04:34:56 by jwe]
author jwe
date Wed, 19 Oct 1994 04:36:12 +0000
parents 0e9df7d20066
children 44ce29d8cb7b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
1 dnl configure.in
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
2 dnl
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
3 dnl Process this file with autoconf to produce a configure script.
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
4 dnl Requires GNU autoconf 1.8 or later.
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
5 dnl
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
6 dnl Copyright (C) 1992, 1993, 1994 John W. Eaton
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
7 dnl
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
8 dnl This file is part of Octave.
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
9 dnl
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
10 dnl Octave is free software; you can redistribute it and/or modify it
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
11 dnl under the terms of the GNU General Public License as published by the
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
12 dnl Free Software Foundation; either version 2, or (at your option) any
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
13 dnl later version.
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
14 dnl
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
15 dnl Octave is distributed in the hope that it will be useful, but WITHOUT
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
16 dnl ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
17 dnl FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
18 dnl for more details.
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
19 dnl
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
20 dnl You should have received a copy of the GNU General Public License
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
21 dnl along with Octave; see the file COPYING. If not, write to the Free
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
22 dnl Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
23 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
24 AC_REVISION($Revision: 1.63 $)dnl
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
25 AC_PREREQ(1.122)
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
26 AC_INIT(src/octave.cc)
679
93c63deed7aa [project @ 1994-09-09 13:50:40 by jwe]
jwe
parents: 670
diff changeset
27 AC_CONFIG_HEADER(config.h kpathsea/c-auto.h)
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
28 dnl
236
93bbd907de34 [project @ 1993-11-30 20:21:19 by jwe]
jwe
parents: 219
diff changeset
29 AC_DEFINE(OCTAVE_SOURCE, 1)dnl
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
30 dnl
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
31 dnl See if we were given the target host type. If not, use
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
32 dnl config.guess to try to guess the target host type.
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
33 dnl
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
34 if test $# -gt 0; then
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
35 TARGET=`eval echo $\{\`echo $#\`\}`
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
36 case $TARGET in
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
37 -*)
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
38 target_host_type=
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
39 ;;
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
40 *)
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
41 target_host_type=$TARGET
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
42 ;;
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
43 esac
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
44 fi
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
45 dnl
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
46 if test -z "$target_host_type" -o "$target_host_type" = unknown; then
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
47 target_host_type=`sh $srcdir/config.guess`
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
48 if test -z "$target_host_type"; then
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
49 AC_MSG_WARN([unable to guess system type])
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
50 target_host_type=unknown
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
51 fi
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
52 fi
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
53 dnl
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
54 dnl Use config.sub to come up with a standard vendor-host-os triple.
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
55 dnl
294
9f0bbc75741f [project @ 1994-01-16 01:16:26 by jwe]
jwe
parents: 287
diff changeset
56 canonical_host_type=`sh $srcdir/config.sub $target_host_type 2>&1`
9f0bbc75741f [project @ 1994-01-16 01:16:26 by jwe]
jwe
parents: 287
diff changeset
57 status=$?
9f0bbc75741f [project @ 1994-01-16 01:16:26 by jwe]
jwe
parents: 287
diff changeset
58 if test $status -eq 0; then
9f0bbc75741f [project @ 1994-01-16 01:16:26 by jwe]
jwe
parents: 287
diff changeset
59 echo "configuring Octave for a $target_host_type"
9f0bbc75741f [project @ 1994-01-16 01:16:26 by jwe]
jwe
parents: 287
diff changeset
60 else
9f0bbc75741f [project @ 1994-01-16 01:16:26 by jwe]
jwe
parents: 287
diff changeset
61 canonical_host_type=unknown
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
62 AC_MSG_WARN([configuring Octave for an unknown system type])
294
9f0bbc75741f [project @ 1994-01-16 01:16:26 by jwe]
jwe
parents: 287
diff changeset
63 fi
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
64 AC_SUBST(target_host_type)dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
65 AC_MSG_RESULT([target_host_type is $target_host_type])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
66 AC_MSG_RESULT([canonical_host_type is $canonical_host_type])
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
67 dnl
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
68 dnl Allow the user to force us to use f2c.
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
69 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
70 AC_ARG_WITH(f2c,
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
71 [ --with-f2c use f2c even if Fortran compiler is available],
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
72 use_f2c=true, use_f2c=false)dnl
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
73 dnl
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
74 dnl Allow the user to experiment with dynamic linking using GNU dld.
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
75 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
76 AC_ARG_ENABLE(dld,
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
77 [ --enable-dld use DLD for dynamic linking (not all systems)],
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
78 use_dld=true, use_dld=false)dnl
702
45764610984a [project @ 1994-09-15 02:32:47 by jwe]
jwe
parents: 684
diff changeset
79 AC_SUBST(use_dld)dnl
45764610984a [project @ 1994-09-15 02:32:47 by jwe]
jwe
parents: 684
diff changeset
80 dnl
45764610984a [project @ 1994-09-15 02:32:47 by jwe]
jwe
parents: 684
diff changeset
81 dnl Allow compilation of smaller kernel. This only works if some form
45764610984a [project @ 1994-09-15 02:32:47 by jwe]
jwe
parents: 684
diff changeset
82 dnl of dynamic linking is also supported and used.
45764610984a [project @ 1994-09-15 02:32:47 by jwe]
jwe
parents: 684
diff changeset
83 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
84 AC_ARG_ENABLE(lite-kernel,
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
85 [ --enable-lite-kernel compile smaller kernel (requires DLD)],
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
86 lite_kernel=true, lite_kernel=false)dnl
702
45764610984a [project @ 1994-09-15 02:32:47 by jwe]
jwe
parents: 684
diff changeset
87 if $lite_kernel; then
45764610984a [project @ 1994-09-15 02:32:47 by jwe]
jwe
parents: 684
diff changeset
88 AC_DEFINE(OCTAVE_LITE, 1)dnl
45764610984a [project @ 1994-09-15 02:32:47 by jwe]
jwe
parents: 684
diff changeset
89 fi
45764610984a [project @ 1994-09-15 02:32:47 by jwe]
jwe
parents: 684
diff changeset
90 AC_SUBST(lite_kernel)dnl
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
91 dnl
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 638
diff changeset
92 dnl some defaults
424
9056cee2487d [project @ 1994-05-23 21:21:34 by jwe]
jwe
parents: 407
diff changeset
93 dnl
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 638
diff changeset
94 exec_prefix='$(prefix)'
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 638
diff changeset
95 bindir='$(exec_prefix)/bin'
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 638
diff changeset
96 datadir='$(prefix)/lib'
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 638
diff changeset
97 libdir='$(exec_prefix)/lib'
765
29a7b5b6f0dc [project @ 1994-10-03 15:40:48 by jwe]
jwe
parents: 764
diff changeset
98 includedir='$(prefix)/include/octave'
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 638
diff changeset
99 mandir='$(prefix)/man/man1'
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 638
diff changeset
100 infodir='$(prefix)/info'
684
4e67ff861c84 [project @ 1994-09-09 17:39:43 by jwe]
jwe
parents: 679
diff changeset
101 fcnfiledir='$(datadir)/octave/$(version)/m'
827
85039b726047 [project @ 1994-10-17 04:43:06 by jwe]
jwe
parents: 818
diff changeset
102 localfcnfiledir='$(datadir)/octave/site/m'
85039b726047 [project @ 1994-10-17 04:43:06 by jwe]
jwe
parents: 818
diff changeset
103 localfcnfilepath='$(localfcnfiledir)//'
795
e3fda435c209 [project @ 1994-10-12 23:07:58 by jwe]
jwe
parents: 794
diff changeset
104 archlibdir='$(libdir)/octave/$(version)/exec/$(target_host_type)'
e3fda435c209 [project @ 1994-10-12 23:07:58 by jwe]
jwe
parents: 794
diff changeset
105 octfiledir='$(libdir)/octave/$(version)/oct/$(target_host_type)'
827
85039b726047 [project @ 1994-10-17 04:43:06 by jwe]
jwe
parents: 818
diff changeset
106 localoctfiledir='$(datadir)/octave/site/oct/$(target_host_type)'
85039b726047 [project @ 1994-10-17 04:43:06 by jwe]
jwe
parents: 818
diff changeset
107 localoctfilepath='$(localoctfiledir)//'
765
29a7b5b6f0dc [project @ 1994-10-03 15:40:48 by jwe]
jwe
parents: 764
diff changeset
108 fcnfilepath='.:$(localoctfilepath):$(localfcnfilepath):$(octfiledir)//:$(fcnfiledir)//'
827
85039b726047 [project @ 1994-10-17 04:43:06 by jwe]
jwe
parents: 818
diff changeset
109 imagedir='$(datadir)/octave/$(version)/imagelib'
85039b726047 [project @ 1994-10-17 04:43:06 by jwe]
jwe
parents: 818
diff changeset
110 imagepath='.:$(imagedir)//'
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 638
diff changeset
111 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
112 AC_MSG_RESULT([defining prefix to be $prefix])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
113 AC_MSG_RESULT([defining exec_prefix to be $exec_prefix])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
114 AC_MSG_RESULT([defining bindir to be $bindir])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
115 AC_MSG_RESULT([defining datadir to be $datadir])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
116 AC_MSG_RESULT([defining libdir to be $libdir])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
117 AC_MSG_RESULT([defining includedir to be $includedir])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
118 AC_MSG_RESULT([defining mandir to be $mandir])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
119 AC_MSG_RESULT([defining infodir to be $infodir])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
120 AC_MSG_RESULT([defining fcnfiledir to be $fcnfiledir])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
121 AC_MSG_RESULT([defining localfcnfiledir to be $localfcnfiledir])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
122 AC_MSG_RESULT([defining localfcnfilepath to be $localfcnfilepath])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
123 AC_MSG_RESULT([defining archlibdir to be $archlibdir])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
124 AC_MSG_RESULT([defining octfiledir to be $octfiledir])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
125 AC_MSG_RESULT([defining localoctfiledir to be $localoctfiledir])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
126 AC_MSG_RESULT([defining localoctfilepath to be $localoctfilepath])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
127 AC_MSG_RESULT([defining fcnfilepath to be $fcnfilepath])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
128 AC_MSG_RESULT([defining imagedir to be $imagedir])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
129 AC_MSG_RESULT([defining imagepath to be $imagepath])
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 638
diff changeset
130 AC_SUBST(exec_prefix)
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 638
diff changeset
131 AC_SUBST(bindir)
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 638
diff changeset
132 AC_SUBST(datadir)
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 638
diff changeset
133 AC_SUBST(libdir)
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 638
diff changeset
134 AC_SUBST(includedir)
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 638
diff changeset
135 AC_SUBST(mandir)
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 638
diff changeset
136 AC_SUBST(infodir)
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 638
diff changeset
137 AC_SUBST(fcnfiledir)
827
85039b726047 [project @ 1994-10-17 04:43:06 by jwe]
jwe
parents: 818
diff changeset
138 AC_SUBST(localfcnfiledir)
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 638
diff changeset
139 AC_SUBST(localfcnfilepath)
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 638
diff changeset
140 AC_SUBST(archlibdir)
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 638
diff changeset
141 AC_SUBST(octfiledir)
827
85039b726047 [project @ 1994-10-17 04:43:06 by jwe]
jwe
parents: 818
diff changeset
142 AC_SUBST(localoctfiledir)
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 638
diff changeset
143 AC_SUBST(localoctfilepath)
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 638
diff changeset
144 AC_SUBST(fcnfilepath)
827
85039b726047 [project @ 1994-10-17 04:43:06 by jwe]
jwe
parents: 818
diff changeset
145 AC_SUBST(imagedir)
684
4e67ff861c84 [project @ 1994-09-09 17:39:43 by jwe]
jwe
parents: 679
diff changeset
146 AC_SUBST(imagepath)
424
9056cee2487d [project @ 1994-05-23 21:21:34 by jwe]
jwe
parents: 407
diff changeset
147 dnl
781
ce19e27b6895 [project @ 1994-10-07 18:52:22 by jwe]
jwe
parents: 765
diff changeset
148 dnl Do special stuff if using dld.
ce19e27b6895 [project @ 1994-10-07 18:52:22 by jwe]
jwe
parents: 765
diff changeset
149 dnl
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
150 DLD_DIR=
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
151 LIBDLD=
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 733
diff changeset
152 LIBOCTDLD='liboctdld.a'
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
153 LD_STATIC_FLAG=
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
154 if $use_dld; then
518
2349d5721cd9 [project @ 1994-07-19 14:31:14 by jwe]
jwe
parents: 505
diff changeset
155 DLD_DIR=dld
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 733
diff changeset
156 LIBDLD='../dld/libdld.a'
702
45764610984a [project @ 1994-09-15 02:32:47 by jwe]
jwe
parents: 684
diff changeset
157 # don't link them in only if doing dynamic linking and small kernel
45764610984a [project @ 1994-09-15 02:32:47 by jwe]
jwe
parents: 684
diff changeset
158 # requested.
45764610984a [project @ 1994-09-15 02:32:47 by jwe]
jwe
parents: 684
diff changeset
159 if $lite_kernel; then
45764610984a [project @ 1994-09-15 02:32:47 by jwe]
jwe
parents: 684
diff changeset
160 LIBOCTDLD=
45764610984a [project @ 1994-09-15 02:32:47 by jwe]
jwe
parents: 684
diff changeset
161 fi
518
2349d5721cd9 [project @ 1994-07-19 14:31:14 by jwe]
jwe
parents: 505
diff changeset
162 LD_STATIC_FLAG=-static
2349d5721cd9 [project @ 1994-07-19 14:31:14 by jwe]
jwe
parents: 505
diff changeset
163 AC_DEFINE(WITH_DLD, 1)dnl
2349d5721cd9 [project @ 1994-07-19 14:31:14 by jwe]
jwe
parents: 505
diff changeset
164 fi
781
ce19e27b6895 [project @ 1994-10-07 18:52:22 by jwe]
jwe
parents: 765
diff changeset
165 dnl
ce19e27b6895 [project @ 1994-10-07 18:52:22 by jwe]
jwe
parents: 765
diff changeset
166 dnl Also use -static if compiling on Alpha OSF/1 1.3 systems.
ce19e27b6895 [project @ 1994-10-07 18:52:22 by jwe]
jwe
parents: 765
diff changeset
167 dnl
ce19e27b6895 [project @ 1994-10-07 18:52:22 by jwe]
jwe
parents: 765
diff changeset
168 case "$canonical_host_type" in
ce19e27b6895 [project @ 1994-10-07 18:52:22 by jwe]
jwe
parents: 765
diff changeset
169 alpha-dec-osf1.3)
ce19e27b6895 [project @ 1994-10-07 18:52:22 by jwe]
jwe
parents: 765
diff changeset
170 LD_STATIC_FLAG=-static
ce19e27b6895 [project @ 1994-10-07 18:52:22 by jwe]
jwe
parents: 765
diff changeset
171 ;;
ce19e27b6895 [project @ 1994-10-07 18:52:22 by jwe]
jwe
parents: 765
diff changeset
172 esac
ce19e27b6895 [project @ 1994-10-07 18:52:22 by jwe]
jwe
parents: 765
diff changeset
173 dnl
518
2349d5721cd9 [project @ 1994-07-19 14:31:14 by jwe]
jwe
parents: 505
diff changeset
174 if test -n "$DLD_DIR"; then
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
175 AC_MSG_RESULT([defining DLD_DIR to be $DLD_DIR])
518
2349d5721cd9 [project @ 1994-07-19 14:31:14 by jwe]
jwe
parents: 505
diff changeset
176 fi
2349d5721cd9 [project @ 1994-07-19 14:31:14 by jwe]
jwe
parents: 505
diff changeset
177 if test -n "$LIBDLD"; then
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
178 AC_MSG_RESULT([defining LIBDLD to be $LIBDLD])
518
2349d5721cd9 [project @ 1994-07-19 14:31:14 by jwe]
jwe
parents: 505
diff changeset
179 fi
2349d5721cd9 [project @ 1994-07-19 14:31:14 by jwe]
jwe
parents: 505
diff changeset
180 if test -n "$LIBOCTDLD"; then
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
181 AC_MSG_RESULT([defining LIBOCTDLD to be $LIBOCTDLD])
518
2349d5721cd9 [project @ 1994-07-19 14:31:14 by jwe]
jwe
parents: 505
diff changeset
182 fi
2349d5721cd9 [project @ 1994-07-19 14:31:14 by jwe]
jwe
parents: 505
diff changeset
183 if test -n "$LD_STATIC_FLAG"; then
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
184 AC_MSG_RESULT([defining LD_STATIC_FLAG to be $LD_STATIC_FLAG])
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
185 fi
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
186 AC_SUBST(DLD_DIR)dnl
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
187 AC_SUBST(LIBDLD)dnl
518
2349d5721cd9 [project @ 1994-07-19 14:31:14 by jwe]
jwe
parents: 505
diff changeset
188 AC_SUBST(LIBOCTDLD)dnl
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
189 AC_SUBST(LD_STATIC_FLAG)dnl
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
190 dnl
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
191 dnl See if the optional nonlinear programming code is present.
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
192 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
193 AC_MSG_CHECKING([for npsol])
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
194 if test -f $srcdir/libcruft/npsol/npsol.f; then
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
195 AC_MSG_RESULT([yes])
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
196 else
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
197 AC_MSG_RESULT([no])
236
93bbd907de34 [project @ 1993-11-30 20:21:19 by jwe]
jwe
parents: 219
diff changeset
198 AC_DEFINE(NPSOL_MISSING, 1)dnl
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
199 fi
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
200 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
201 AC_MSG_CHECKING([for qpsol])
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
202 if test -f $srcdir/libcruft/qpsol/qpsol.f; then
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
203 AC_MSG_RESULT([yes])
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
204 else
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
205 AC_MSG_RESULT([no])
236
93bbd907de34 [project @ 1993-11-30 20:21:19 by jwe]
jwe
parents: 219
diff changeset
206 AC_DEFINE(QPSOL_MISSING, 1)dnl
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
207 fi
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
208 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
209 AC_MSG_CHECKING([for fsqp])
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
210 if test -f $srcdir/libcruft/fsqp/fsqpd.f; then
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
211 AC_MSG_RESULT([yes])
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
212 else
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
213 AC_MSG_RESULT([no])
236
93bbd907de34 [project @ 1993-11-30 20:21:19 by jwe]
jwe
parents: 219
diff changeset
214 AC_DEFINE(FSQP_MISSING, 1)dnl
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
215 fi
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
216 dnl
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
217 dnl See which C++ compiler to use (we expect to find g++).
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
218 dnl
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
219 AC_PROG_CXX
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
220 AC_PROG_CXXCPP
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
221 dnl
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
222 dnl Do special things for g++.
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
223 dnl
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
224 ADD_CXX_WALL=false
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 733
diff changeset
225 NO_IMPLICIT_TEMPLATES=
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
226 gxx_version=`$CXX -v 2>&1 | grep "^g.. version" | sed 's/^g.. version *//'`
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
227 case "$gxx_version" in
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
228 changequote(,)dnl
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
229 2.[6789].*|2.[123456789][0123456789].*)
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
230 changequote([,])dnl
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
231 CXXFLAGS="-g -O"
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
232 AC_MSG_RESULT([defining CXXFLAGS to be $CXXFLAGS])
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 733
diff changeset
233 NO_IMPLICIT_TEMPLATES="-fno-implicit-templates"
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
234 AC_MSG_RESULT([defining NO_IMPLICIT_TEMPLATES to be $NO_IMPLICIT_TEMPLATES])
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
235 ADD_CXX_WALL=true
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
236 ;;
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
237 changequote(,)dnl
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
238 1.*|2.[012345].*)
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
239 changequote([,])dnl
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
240 AC_MSG_WARN([g++ version $gxx_version will not work to compile Octave])
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
241 ;;
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
242 *)
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
243 AC_MSG_WARN([Octave has only been tested with g++, and I can't find it])
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
244 ;;
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
245 esac
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
246 dnl
708
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 706
diff changeset
247 dnl See what libraries are used by the C++ compiler. Need this for
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 706
diff changeset
248 dnl dynamic linking.
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 706
diff changeset
249 dnl
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 706
diff changeset
250 CXXLIBS=`sh $srcdir/cxxlibs.sh`
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
251 AC_MSG_RESULT([defining CXXLIBS to be $CXXLIBS])
708
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 706
diff changeset
252 dnl
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
253 AC_SUBST(CXXFLAGS)dnl
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 733
diff changeset
254 AC_SUBST(NO_IMPLICIT_TEMPLATES)dnl
708
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 706
diff changeset
255 AC_SUBST(CXXLIBS)dnl
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
256 dnl
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
257 dnl See which C compiler to use (we expect to find gcc).
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
258 dnl
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
259 AC_PROG_CC
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
260 AC_PROG_CPP
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
261 AC_PROG_GCC_TRADITIONAL
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
262 dnl
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
263 dnl Do special things for gcc.
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
264 dnl
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
265 ADD_CC_WALL=false
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
266 gcc_version=`$CC -v 2>&1 | grep "^gcc version" | sed 's/^gcc version *//'`
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
267 case "$gcc_version" in
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
268 2.*)
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
269 CFLAGS="-g -O"
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
270 AC_MSG_RESULT([defining CFLAGS to be $CFLAGS])
638
2f2e66230c22 [project @ 1994-08-23 21:27:01 by jwe]
jwe
parents: 602
diff changeset
271 LDFLAGS="-g"
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
272 AC_MSG_RESULT([defining LDFLAGS to be $LDFLAGS])
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
273 ADD_CC_WALL=true
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
274 ;;
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
275 1.*)
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
276 AC_MSG_WARN([gcc version $gcc_version is likely to cause problems])
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
277 ;;
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
278 *)
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
279 AC_MSG_WARN([Octave has only been tested with gcc, and I can't find it])
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
280 ;;
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
281 esac
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
282 dnl
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
283 AC_SUBST(CFLAGS)dnl
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
284 AC_SUBST(LDFLAGS)dnl
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
285 dnl
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
286 dnl On Linux systems we need to compile with -mieee-fp to get full
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
287 dnl support for IEEE floating point.
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
288 dnl
350
52f8902e06f9 [project @ 1994-02-10 08:08:57 by jwe]
jwe
parents: 324
diff changeset
289 case "$canonical_host_type" in
52f8902e06f9 [project @ 1994-02-10 08:08:57 by jwe]
jwe
parents: 324
diff changeset
290 i386-*-linux | i486-*-linux | i586-*-linux)
52f8902e06f9 [project @ 1994-02-10 08:08:57 by jwe]
jwe
parents: 324
diff changeset
291 GCC_IEEE_FP_FLAG="-mieee-fp"
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
292 AC_MSG_RESULT([defining GCC_IEEE_FP_FLAG to be $GCC_IEEE_FP_FLAG])
324
7bf8cd7cafde [project @ 1994-02-02 10:58:58 by jwe]
jwe
parents: 317
diff changeset
293 ;;
7bf8cd7cafde [project @ 1994-02-02 10:58:58 by jwe]
jwe
parents: 317
diff changeset
294 esac
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
295 dnl
324
7bf8cd7cafde [project @ 1994-02-02 10:58:58 by jwe]
jwe
parents: 317
diff changeset
296 AC_SUBST(GCC_IEEE_FP_FLAG)dnl
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
297 dnl
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
298 dnl Special checks for odd OS specific things.
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
299 dnl
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
300 AC_ISC_POSIX
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
301 AC_MINIX
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
302 AC_AIX
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
303 AC_FUNC_STRFTIME
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
304 AC_CHECK_LIB(sun, getpwnam)
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
305 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
306 dnl How big are ints and how are they oriented? These could probably
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
307 dnl be eliminated in favor of run-time checks.
589
81b973e373f9 [project @ 1994-08-07 23:32:10 by jwe]
jwe
parents: 588
diff changeset
308 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
309 AC_CHECK_SIZEOF(short)
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
310 AC_CHECK_SIZEOF(int)
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
311 AC_CHECK_SIZEOF(long)
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
312 AC_C_BIGENDIAN
589
81b973e373f9 [project @ 1994-08-07 23:32:10 by jwe]
jwe
parents: 588
diff changeset
313 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
314 dnl Try to determine the floating point format. This could probably
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
315 dnl be eliminated in favor of run-time checks.
588
9b02a14aaaea [project @ 1994-08-07 23:03:57 by jwe]
jwe
parents: 521
diff changeset
316 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
317 AC_MSG_CHECKING([floating point format])
602
8b6294ae881e [project @ 1994-08-13 16:29:27 by jwe]
jwe
parents: 589
diff changeset
318 changequote(,)dnl
8b6294ae881e [project @ 1994-08-13 16:29:27 by jwe]
jwe
parents: 589
diff changeset
319 XCFLAGS=`echo $CFLAGS | sed 's/-O[^ \t]*//'`
8b6294ae881e [project @ 1994-08-13 16:29:27 by jwe]
jwe
parents: 589
diff changeset
320 changequote([,])dnl
8b6294ae881e [project @ 1994-08-13 16:29:27 by jwe]
jwe
parents: 589
diff changeset
321 ${CC-cc} -DDP $XCFLAGS $LDFLAGS $srcdir/float-type.c -o conftest >/dev/null 2>&1
588
9b02a14aaaea [project @ 1994-08-07 23:03:57 by jwe]
jwe
parents: 521
diff changeset
322 FLOAT_FORMAT=`./conftest`
9b02a14aaaea [project @ 1994-08-07 23:03:57 by jwe]
jwe
parents: 521
diff changeset
323 case "$FLOAT_FORMAT" in
9b02a14aaaea [project @ 1994-08-07 23:03:57 by jwe]
jwe
parents: 521
diff changeset
324 IEEE_BIG_ENDIAN)
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
325 AC_MSG_RESULT([IEEE big endian])
588
9b02a14aaaea [project @ 1994-08-07 23:03:57 by jwe]
jwe
parents: 521
diff changeset
326 AC_DEFINE(IEEE_BIG_ENDIAN, 1)dnl
9b02a14aaaea [project @ 1994-08-07 23:03:57 by jwe]
jwe
parents: 521
diff changeset
327 ;;
9b02a14aaaea [project @ 1994-08-07 23:03:57 by jwe]
jwe
parents: 521
diff changeset
328 IEEE_LITTLE_ENDIAN)
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
329 AC_MSG_RESULT([IEEE little endian])
588
9b02a14aaaea [project @ 1994-08-07 23:03:57 by jwe]
jwe
parents: 521
diff changeset
330 AC_DEFINE(IEEE_LITTLE_ENDIAN, 1)dnl
9b02a14aaaea [project @ 1994-08-07 23:03:57 by jwe]
jwe
parents: 521
diff changeset
331 ;;
9b02a14aaaea [project @ 1994-08-07 23:03:57 by jwe]
jwe
parents: 521
diff changeset
332 VAX_D_FLOAT)
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
333 AC_MSG_RESULT([VAX D floating])
588
9b02a14aaaea [project @ 1994-08-07 23:03:57 by jwe]
jwe
parents: 521
diff changeset
334 AC_DEFINE(VAX_D_FLOAT, 1)dnl
9b02a14aaaea [project @ 1994-08-07 23:03:57 by jwe]
jwe
parents: 521
diff changeset
335 ;;
9b02a14aaaea [project @ 1994-08-07 23:03:57 by jwe]
jwe
parents: 521
diff changeset
336 VAX_G_FLOAT)
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
337 AC_MSG_RESULT([VAX G floating])
588
9b02a14aaaea [project @ 1994-08-07 23:03:57 by jwe]
jwe
parents: 521
diff changeset
338 AC_DEFINE(VAX_G_FLOAT, 1)dnl
9b02a14aaaea [project @ 1994-08-07 23:03:57 by jwe]
jwe
parents: 521
diff changeset
339 ;;
9b02a14aaaea [project @ 1994-08-07 23:03:57 by jwe]
jwe
parents: 521
diff changeset
340 *)
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
341 AC_MSG_RESULT()
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
342 AC_MSG_WARN("unrecognized floating point format!")
588
9b02a14aaaea [project @ 1994-08-07 23:03:57 by jwe]
jwe
parents: 521
diff changeset
343 ;;
9b02a14aaaea [project @ 1994-08-07 23:03:57 by jwe]
jwe
parents: 521
diff changeset
344 esac
9b02a14aaaea [project @ 1994-08-07 23:03:57 by jwe]
jwe
parents: 521
diff changeset
345 dnl
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
346 dnl Does the C compiler handle alloca() and const correctly?
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
347 dnl
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
348 AC_ALLOCA
679
93c63deed7aa [project @ 1994-09-09 13:50:40 by jwe]
jwe
parents: 670
diff changeset
349 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
350 dnl This one is for kpathsea.
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
351 dnl
679
93c63deed7aa [project @ 1994-09-09 13:50:40 by jwe]
jwe
parents: 670
diff changeset
352 dnl It would be nicer to test for the requisite putenv features directly,
93c63deed7aa [project @ 1994-09-09 13:50:40 by jwe]
jwe
parents: 670
diff changeset
353 dnl but can't figure out how to do that.
93c63deed7aa [project @ 1994-09-09 13:50:40 by jwe]
jwe
parents: 670
diff changeset
354 dnl
93c63deed7aa [project @ 1994-09-09 13:50:40 by jwe]
jwe
parents: 670
diff changeset
355 if test "`(uname) 2>/dev/null`" = NetBSD \
93c63deed7aa [project @ 1994-09-09 13:50:40 by jwe]
jwe
parents: 670
diff changeset
356 || test "`(uname) 2>/dev/null`" = FreeBSD; then
93c63deed7aa [project @ 1994-09-09 13:50:40 by jwe]
jwe
parents: 670
diff changeset
357 AC_DEFINE(SMART_PUTENV)
93c63deed7aa [project @ 1994-09-09 13:50:40 by jwe]
jwe
parents: 670
diff changeset
358 fi
93c63deed7aa [project @ 1994-09-09 13:50:40 by jwe]
jwe
parents: 670
diff changeset
359 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
360 AC_C_CONST
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
361 dnl
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
362 dnl If we haven't been forced to use f2c, try to find a Fortran compiler
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
363 dnl under any one of several common Un*x Fortran compiler names.
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
364 dnl Put fc last to avoid confusion with some vendor's /bin/sh fc
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
365 dnl builtin.
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
366 dnl
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
367 dnl xlf : IBM / AIX
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
368 dnl cf77 : Cray / Unicos
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
369 dnl g77 : GNU Fortran (someday...)
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
370 dnl fc : Convex
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
371 dnl
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
372 dnl I don't think the Cray compiler will ever work like f2c...
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
373 dnl
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
374 if $use_f2c; then
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
375 true
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
376 else
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
377 F77=
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
378 AC_CHECK_PROGS(F77, xlf cf77 f77 g77 fc)dnl
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
379
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
380 # If it looks like we have a Fortran compiler, try to determine
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
381 # whether it might be compatible with f2c.
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
382
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
383 if test -n "$F77"; then
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
384 AC_MSG_CHECKING([$F77/f2c compatibility])
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
385 export F77
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
386 export CC
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
387 tmpdef=`sh $srcdir/f2c-compat.sh $srcdir/flibs.sh`
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
388 status=$?
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
389 if test $status -eq 0; then
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
390 AC_MSG_RESULT([yes])
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
391 if test "$tmpdef" = '-DF77_APPEND_UNDERSCORE=1'; then
236
93bbd907de34 [project @ 1993-11-30 20:21:19 by jwe]
jwe
parents: 219
diff changeset
392 AC_DEFINE(F77_APPEND_UNDERSCORE, 1)dnl
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
393 fi
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
394 else
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
395 AC_MSG_RESULT([no])
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
396 F77=
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
397 fi
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
398 fi
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
399 fi
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
400 dnl
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
401 dnl If we can't find a Fortran compiler, or if it looks like it isn't
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
402 dnl compatible with f2c, try to find f2c.
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
403 dnl
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
404 if test -z "$F77"; then
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
405 AC_CHECK_PROG(F2C, f2c, f2c, [])dnl
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
406 fi
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
407 dnl
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
408 F2CFLAGS=
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
409 FFLAGS="-O"
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
410 AC_MSG_RESULT([defining FFLAGS to be $FFLAGS])
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
411 if test -n "$F77"; then
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
412 export F77
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
413 FLIBS=`sh $srcdir/flibs.sh`
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
414 AC_MSG_RESULT([defining FLIBS to be $FLIBS])
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
415 DOT_O_DOT_F_C1=
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
416 DOT_O_DOT_F_C2=
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
417 DOT_O_DOT_F_C3=
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
418 DOT_O_DOT_F_C4=
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
419 DEFAULT_DOT_C_FROM_DOT_F=
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
420 DEFAULT_DOT_O_FROM_DOT_F=
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
421 elif test -n "$F2C" || $use_f2c; then
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
422 AC_CHECK_LIB(f2c, main, FLIBS=-lf2c, [])dnl
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
423 if test -z "$FLIBS" ; then
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
424 AC_CHECK_LIB(F77, main, FLIBS=-lF77, [])dnl
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
425 if test -n "$FLIBS" ; then
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
426 AC_CHECK_LIB(I77, main, FLIBS="$FLIBS -lI77", [])dnl
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
427 fi
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
428 fi
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
429 if test -z "$FLIBS" ; then
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
430 AC_MSG_WARN([I found f2c but not libf2c.a, or libF77.a and libI77.a])
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
431 fi
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
432 DEFAULT_DOT_C_FROM_DOT_F='# A rule for making C source from Fortran source.\
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
433 # If we are using f2c we should also turn off the default rule for\
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
434 # making objects from .f files so that we do not invoke the fortran\
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
435 # compiler by mistake.\
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
436 \
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
437 \%.c : \%.f\
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
438 cat $< | $(F2C) $(F2CFLAGS) > $(@F)'
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
439 AC_MSG_RESULT([defining DEFAULT_DOT_C_FROM_DOT_F to be $DEFAULT_DOT_C_FROM_DOT_F])
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
440 DEFAULT_DOT_O_FROM_DOT_F='\%.o : \%.f'
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
441 AC_MSG_RESULT([defining DEFAULT_DOT_O_FROM_DOT_F to be $DEFAULT_DOT_O_FROM_DOT_F])
236
93bbd907de34 [project @ 1993-11-30 20:21:19 by jwe]
jwe
parents: 219
diff changeset
442 AC_DEFINE(F77_APPEND_UNDERSCORE, 1)dnl
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
443 else
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
444 AC_MSG_WARN([in order to build octave, you must have a compatible])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
445 AC_MSG_WARN([Fortran compiler or f2c installed and in your path.])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
446 AC_MSG_WARN([See the file INSTALL for more information.])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
447 AC_MSG_WARN([Continuing anyway...])
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
448 fi
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
449 dnl
794
01f6d1bcfa1a [project @ 1994-10-12 19:29:21 by jwe]
jwe
parents: 792
diff changeset
450 AC_SUBST(F77)dnl
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
451 AC_SUBST(FFLAGS)dnl
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
452 AC_SUBST(FLIBS)dnl
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
453 AC_SUBST(F2C)dnl
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
454 AC_SUBST(F2CFLAGS)dnl
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
455 AC_SUBST(DEFAULT_DOT_C_FROM_DOT_F)dnl
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
456 AC_SUBST(DEFAULT_DOT_O_FROM_DOT_F)dnl
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
457 dnl
708
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 706
diff changeset
458 dnl Extract libraries and directories from FLIBS and CXXLIBS.
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 706
diff changeset
459 dnl
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 706
diff changeset
460 dnl Leave only libraries, with -lfoo converted to libfoo.a:
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 706
diff changeset
461 dnl
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 706
diff changeset
462 changequote(,)dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
463 FLIB_LIST=`echo "$FLIBS" | sed -e 's/-Xlinker *[^ ]*//g' \
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
464 -e 's/-L *[^ ]*//g' \
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
465 -e 's/-l *\([^ ]*\)/lib\1.a/g' -e 's/-u *[^ ]*//g' \
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
466 -e 's/^ *//' -e 's/ *$//' -e 's/ */:/g'`
708
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 706
diff changeset
467 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
468 CXXLIB_LIST=`echo "$CXXLIBS" | sed -e 's/-Xlinker *[^ ]*//g' \
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
469 -e 's/-L *[^ ]*//g' \
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
470 -e 's/-l *\([^ ]*\)/lib\1.a/g' -e 's/-u *[^ ]*//g' \
708
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 706
diff changeset
471 -e 's/^ *//' -e 's/ *$//' -e 's/ */:/g'`
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 706
diff changeset
472 dnl
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 706
diff changeset
473 dnl Leave only directories where libraries might be found:
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 706
diff changeset
474 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
475 FLIB_PATH=`echo "$FLIBS" | sed -e 's/-Xlinker *[^ ]*//g' \
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
476 -e 's/-L *\([^ ]*\)/\1/g' -e 's, /.*\.a , ,g' \
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
477 -e 's/-l *[^ ]*//g' -e 's/-u *[^ ]*//g' -e 's/^ *//' \
708
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 706
diff changeset
478 -e 's/ *$//' -e 's/ */:/g'`
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 706
diff changeset
479 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
480 CXXLIB_PATH=`echo "$CXXLIBS" | sed -e 's/-Xlinker *[^ ]*//g' \
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
481 -e 's/-L *\([^ ]*\)/\1/g' -e 's, /.*\.a , ,g' \
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
482 -e 's/-l *[^ ]*//g' -e 's/-u *[^ ]*//g' -e 's/^ *//' \
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
483 -e 's/ *$//' -e 's/ */:/g'`
708
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 706
diff changeset
484 changequote([,])dnl
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 706
diff changeset
485 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
486 AC_MSG_RESULT([defining FLIB_LIST to be $FLIB_LIST])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
487 AC_MSG_RESULT([defining FLIB_PATH to be $FLIB_PATH])
708
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 706
diff changeset
488 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
489 AC_MSG_RESULT([defining CXXLIB_LIST to be $CXXLIB_LIST])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
490 AC_MSG_RESULT([defining CXXLIB_PATH to be $CXXLIB_PATH])
708
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 706
diff changeset
491 dnl
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 706
diff changeset
492 AC_SUBST(FLIB_LIST)dnl
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 706
diff changeset
493 AC_SUBST(FLIB_PATH)dnl
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 706
diff changeset
494 dnl
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 706
diff changeset
495 AC_SUBST(CXXLIB_LIST)dnl
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 706
diff changeset
496 AC_SUBST(CXXLIB_PATH)dnl
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 706
diff changeset
497 dnl
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
498 dnl Checks for header files.
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
499 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
500 AC_HEADER_STDC
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
501 AC_CHECK_HEADERS(assert.h float.h limits.h memory.h pwd.h stdlib.h)dnl
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
502 AC_CHECK_HEADERS(string.h varargs.h unistd.h floatingpoint.h)dnl
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
503 AC_CHECK_HEADERS(sys/utsname.h sys/time.h sys/fcntl.h)dnl
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
504 AC_CHECK_HEADERS(sys/ttold.h sys/ptem.h sys/select.h)dnl
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
505 AC_HEADER_DIRENT
792
ac49764105cf [project @ 1994-10-12 16:45:59 by jwe]
jwe
parents: 781
diff changeset
506 AC_TIME_WITH_SYS_TIME
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
507 dnl
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
508 dnl Use sgtty on Ultrix so that using DEC Migrate to convert a Mips
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
509 dnl binary to an Alpha binary will work. Also on Alpha/OSF to avoid
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
510 dnl a readline bug.
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
511 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
512 OCTAVE_HAVE_TERM_HEADER=false
294
9f0bbc75741f [project @ 1994-01-16 01:16:26 by jwe]
jwe
parents: 287
diff changeset
513 case "$canonical_host_type" in
521
af19ffbbe91d [project @ 1994-07-20 18:12:53 by jwe]
jwe
parents: 518
diff changeset
514 mips-dec-ultrix* | alpha-dec-osf*)
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
515 AC_CHECK_HEADER(sgtty.h, [AC_DEFINE(HAVE_SGTTY_H, 1)
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
516 OCTAVE_HAVE_TERM_HEADER=true], [])
294
9f0bbc75741f [project @ 1994-01-16 01:16:26 by jwe]
jwe
parents: 287
diff changeset
517 ;;
9f0bbc75741f [project @ 1994-01-16 01:16:26 by jwe]
jwe
parents: 287
diff changeset
518 esac
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
519 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
520 if $OCTAVE_HAVE_TERM_HEADER; then
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
521 true
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
522 else
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
523 AC_CHECK_HEADER(termios.h, [AC_DEFINE(HAVE_TERMIOS_H, 1)
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
524 OCTAVE_HAVE_TERM_HEADER=true],
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
525 AC_CHECK_HEADER(termio.h, [AC_DEFINE(HAVE_TERMIO_H, 1)
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
526 OCTAVE_HAVE_TERM_HEADER=true],
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
527 AC_CHECK_HEADER(sgtty.h, [AC_DEFINE(HAVE_SGTTY_H, 1)
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
528 OCTAVE_HAVE_TERM_HEADER=true], [])))
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
529 fi
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
530 if $OCTAVE_HAVE_TERM_HEADER; then
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
531 true
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
532 else
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
533 AC_MSG_ERROR([I couldn't find termios.h, termio.h, or sgtty.h!])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
534 fi
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
535 dnl
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
536 dnl Checks for functions.
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
537 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
538 AC_CHECK_FUNCS(setvbuf getcwd gethostname bzero rindex vfprintf vsprintf)dnl
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
539 AC_CHECK_FUNCS(stricmp strnicmp strcasecmp strncasecmp strerror)dnl
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
540 AC_CHECK_FUNCS(atexit on_exit tempnam memmove putenv gettimeofday)dnl
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
541 dnl
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
542 dnl Would like to get rid of this cruft, and just have
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
543 dnl
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
544 dnl AC_CHECK_FUNCS(finite isnan isinf)
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
545 dnl
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
546 dnl instead, but that used to fail on some systems...
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
547 dnl
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
548 dnl Check to see if we have IEEE math functions, and if so, which ones.
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
549 dnl
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
550 dnl For Linux: add -mieee-fp flag to CFLAGS when checking for IEEE FP
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
551 dnl functions, otherwise we may not find them.
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
552 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
553 dnl Also just using AC_CHECK_FUNCS doesn't seem to work to find isinf
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
554 dnl and isnan on Linux systems, so we use AC_CHECK_FUNC, and if that
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
555 dnl fails, we try again by including math.h and invoking the function
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
556 dnl with an argument.
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
557 dnl
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
558 dnl Also check for some additional trig functions that aren't ANSI but
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
559 dnl are often available. If they are missing, we try to replace them
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
560 dnl with functions from the BSD/NET2 math library.
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
561 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
562 AC_CHECK_LIB(sunmath, main)dnl
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
563 AC_CHECK_LIB(m, main)dnl
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
564 dnl
360
273f0b941c51 [project @ 1994-02-11 17:38:57 by jwe]
jwe
parents: 351
diff changeset
565 XCFLAGS="$CFLAGS"
351
aaf43fb91f39 [project @ 1994-02-10 08:55:38 by jwe]
jwe
parents: 350
diff changeset
566 CFLAGS="$CFLAGS $GCC_IEEE_FP_FLAG"
764
0e146d12d46a [project @ 1994-10-03 04:14:58 by jwe]
jwe
parents: 759
diff changeset
567 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
568 AC_CHECK_FUNCS(finite isnan isinf infinity quiet_nan erf erfc lgamma)dnl
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
569 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
570 AC_MSG_CHECKING([for signgam declaration in math.h])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
571 AC_TRY_LINK([#include <math.h>],
706
164e497d6039 [project @ 1994-09-15 15:21:45 by jwe]
jwe
parents: 702
diff changeset
572 [int foo = signgam + 1;],
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
573 AC_MSG_RESULT(yes)
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
574 AC_DEFINE(SIGNGAM_DECLARED, 1),
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
575 AC_MSG_RESULT(no))dnl
706
164e497d6039 [project @ 1994-09-15 15:21:45 by jwe]
jwe
parents: 702
diff changeset
576 dnl
360
273f0b941c51 [project @ 1994-02-11 17:38:57 by jwe]
jwe
parents: 351
diff changeset
577 CFLAGS="$XCFLAGS"
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
578 dnl
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
579 dnl Check for nonstandard but common trig functions that we need.
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
580 dnl If they are missing, we replace them using functions from the BSD
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
581 dnl math library, and we may need to replace some other functions too.
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
582 dnl
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
583 AC_REPLACE_FUNCS(acosh asinh atanh)
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
584 dnl
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
585 if test -n "$LIBOBJS"; then
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
586 for func in $LIBOBJS
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
587 do
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
588 case "$func" in
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
589 *acosh.o*)
236
93bbd907de34 [project @ 1993-11-30 20:21:19 by jwe]
jwe
parents: 219
diff changeset
590 AC_DEFINE(ACOSH_MISSING, 1)dnl
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
591 ;;
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
592 *asinh.o*)
236
93bbd907de34 [project @ 1993-11-30 20:21:19 by jwe]
jwe
parents: 219
diff changeset
593 AC_DEFINE(ASINH_MISSING, 1)dnl
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
594 ;;
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
595 *atanh.o*)
236
93bbd907de34 [project @ 1993-11-30 20:21:19 by jwe]
jwe
parents: 219
diff changeset
596 AC_DEFINE(ATANH_MISSING, 1)dnl
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
597 ;;
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
598 esac
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
599 done
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
600 case $LIBOBJS in
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
601 *acosh.o* | *asinh.o*)
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
602 AC_REPLACE_FUNCS(copysign)
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
603 ;;
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
604 esac
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
605 case $LIBOBJS in
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
606 *acosh.o* | *asinh.o* | *atanh.o*)
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
607 AC_REPLACE_FUNCS(log1p)
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
608 ;;
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
609 esac
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
610 case $LIBOBJS in
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
611 *log1p*)
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
612 AC_REPLACE_FUNCS(log__L)
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
613 ;;
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
614 esac
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
615 case $LIBOBJS in
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
616 *log1p*)
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
617 AC_REPLACE_FUNCS(finite)
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
618 ;;
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
619 esac
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
620 case $LIBOBJS in
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
621 *copysign* | *finite* | *log1p*)
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
622 AC_REPLACE_FUNCS(logb scalb)
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
623 ;;
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
624 esac
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
625 fi
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
626 dnl
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
627 dnl Checks for OS specific cruft.
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
628 dnl
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
629 AC_STRUCT_TM
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
630 AC_FUNC_SETVBUF_REVERSED
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
631 TERMLIBS=""
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
632 for termlib in termcap terminfo curses termlib ; do
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
633 AC_CHECK_LIB(${termlib}, main, [TERMLIBS="${TERMLIBS} -l${termlib}"])
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
634 case "${TERMLIBS}" in
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
635 *-l${termlib}*)
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
636 AC_MSG_RESULT([defining TERMLIBS to be $TERMLIBS])
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
637 break
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
638 ;;
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
639 esac
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
640 done
505
f264c1454c2b [project @ 1994-07-09 06:02:45 by jwe]
jwe
parents: 468
diff changeset
641 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
642 AC_MSG_CHECKING([for struct exception in math.h])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
643 AC_TRY_LINK([#include <math.h>],
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
644 [struct exception *x; x->type; x->name;],
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
645 AC_MSG_RESULT(YES)
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
646 AC_DEFINE(EXCEPTION_IN_MATH, 1),
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
647 AC_MSG_RESULT(no))dnl
505
f264c1454c2b [project @ 1994-07-09 06:02:45 by jwe]
jwe
parents: 468
diff changeset
648 dnl
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
649 AC_SUBST(TERMLIBS)
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
650 dnl
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
651 dnl Define VOID_SIGHANDLER for readline.
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
652 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
653 AC_TYPE_SIGNAL
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
654 case "$RETSIGTYPE" in
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
655 int)
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
656 ;;
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
657 *)
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
658 VOID_SIGHANDLER="-DVOID_SIGHANDLER=1"
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
659 AC_MSG_RESULT([defining VOID_SIGHANDLER to be 1])
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
660 ;;
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
661 esac
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
662 AC_SUBST(VOID_SIGHANDLER)dnl
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
663 dnl
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
664 dnl Checks for other programs used for building, testing, installing,
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
665 dnl and running Octave.
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
666 dnl
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
667 dnl For now, don't define LEXLIB to be -lfl -- we don't use anything in
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
668 dnl it, and it might not be installed.
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
669 dnl
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
670 dnl Also make sure that we generate an interactive scanner if we are
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
671 dnl using flex.
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
672 dnl
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
673 AC_PROG_LEX
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
674 case "$LEX" in
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
675 flex*)
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
676 LFLAGS="-t -I"
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
677 AC_MSG_RESULT([defining LFLAGS to be $LFLAGS])
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
678 LEXLIB=
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
679 ;;
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
680 *)
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
681 LFLAGS="-t"
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
682 AC_MSG_RESULT([defining LFLAGS to be $LFLAGS])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
683 AC_MSG_WARN([I didn't find flex, but that's only a problem])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
684 AC_MSG_WARN([if you need to reconstruct lex.cc])
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
685 ;;
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
686 esac
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
687 AC_SUBST(LFLAGS)dnl
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
688 dnl
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
689 AC_PROG_YACC
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
690 case "$YACC" in
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
691 bison*)
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
692 ;;
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
693 *)
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
694 AC_MSG_WARN([I didn't find bison, but that's only a problem])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
695 AC_MSG_WARN([if you need to reconstruct parse.cc])
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
696 ;;
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
697 esac
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
698 dnl
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
699 AC_PROG_RANLIB
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
700 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
701 AC_CHECK_PROG(RUNTEST, runtest, runtest, [])dnl
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
702 AC_CHECK_PROG(EXPECT, expect, expect, [])dnl
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
703 if test -z "$EXPECT" ; then
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
704 RUNTEST=
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
705 fi
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
706 AC_SUBST(RUNTEST)dnl
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
707 dnl
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
708 AC_PROG_INSTALL
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
709 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
710 AC_CHECK_PROG(GNUPLOT_BINARY, gnuplot, gnuplot, [])dnl
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
711 if test -z "$GNUPLOT_BINARY"; then
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
712 AC_MSG_WARN([I didn't find gnuplot. It isn't necessary to have gnuplot])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
713 AC_MSG_WARN([installed, but you won't be able to use any of Octave's])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
714 AC_MSG_WARN([plotting commands without it.])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
715 AC_MSG_WARN([])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
716 AC_MSG_WARN([If gnuplot is installed but it isn't in your path, you can])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
717 AC_MSG_WARN([tell Octave where to find it by typing the command])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
718 AC_MSG_WARN([])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
719 AC_MSG_WARN([gnuplot_binary = "/full/path/to/gnuplot/binary"])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
720 AC_MSG_WARN([])
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
721 AC_MSG_WARN([at the Octave prompt.])
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
722 fi
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
723 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
724 AC_CHECK_PROGS(DEFAULT_PAGER, less more page pg, [])dnl
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
725 if test -z "$DEFAULT_PAGER"; then
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
726 AC_MSG_WARN([I couldn't find `less', `more', `page', or `pg'])
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
727 elif test "$DEFAULT_PAGER" = less; then
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
728 DEFAULT_PAGER="less -e"
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
729 AC_MSG_RESULT([defining DEFAULT_PAGER to be $DEFAULT_PAGER])
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
730 fi
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
731 dnl
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
732 dnl Even though we include config.h in most files, some need to be
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
733 dnl compiled with the -D options on the compiler command line. Use
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
734 dnl UGLY_DEFS for that.
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
735 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
736 AC_OUTPUT_MAKE_DEFS
236
93bbd907de34 [project @ 1993-11-30 20:21:19 by jwe]
jwe
parents: 219
diff changeset
737 UGLY_DEFS="$DEFS"
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
738 AC_MSG_RESULT([defining UGLY_DEFS to be $UGLY_DEFS])
236
93bbd907de34 [project @ 1993-11-30 20:21:19 by jwe]
jwe
parents: 219
diff changeset
739 AC_SUBST(UGLY_DEFS)dnl
369
f436b7a5f26a [project @ 1994-02-17 04:49:21 by jwe]
jwe
parents: 365
diff changeset
740 dnl
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
741 dnl Maybe add -Wall to compiler flags now that we're done feature
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
742 dnl testing.
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
743 dnl
670
991303b21bae [project @ 1994-09-07 17:47:52 by jwe]
jwe
parents: 666
diff changeset
744 dnl To get gcc and g++ to be really picky, try these adding these
991303b21bae [project @ 1994-09-07 17:47:52 by jwe]
jwe
parents: 666
diff changeset
745 dnl options to CFLAGS and CXXFLAGS along with -Wall:
991303b21bae [project @ 1994-09-07 17:47:52 by jwe]
jwe
parents: 666
diff changeset
746 dnl
991303b21bae [project @ 1994-09-07 17:47:52 by jwe]
jwe
parents: 666
diff changeset
747 dnl -ansi
991303b21bae [project @ 1994-09-07 17:47:52 by jwe]
jwe
parents: 666
diff changeset
748 dnl -pedantic
991303b21bae [project @ 1994-09-07 17:47:52 by jwe]
jwe
parents: 666
diff changeset
749 dnl -Wwrite-strings
991303b21bae [project @ 1994-09-07 17:47:52 by jwe]
jwe
parents: 666
diff changeset
750 dnl -Wid-clash-31
991303b21bae [project @ 1994-09-07 17:47:52 by jwe]
jwe
parents: 666
diff changeset
751 dnl -Wpointer-arith
991303b21bae [project @ 1994-09-07 17:47:52 by jwe]
jwe
parents: 666
diff changeset
752 dnl -Wcast-qual
991303b21bae [project @ 1994-09-07 17:47:52 by jwe]
jwe
parents: 666
diff changeset
753 dnl -Wenum-clash
991303b21bae [project @ 1994-09-07 17:47:52 by jwe]
jwe
parents: 666
diff changeset
754 dnl -Wcast-align
991303b21bae [project @ 1994-09-07 17:47:52 by jwe]
jwe
parents: 666
diff changeset
755 dnl -Wtraditional
991303b21bae [project @ 1994-09-07 17:47:52 by jwe]
jwe
parents: 666
diff changeset
756 dnl -Wstrict-prototypes
991303b21bae [project @ 1994-09-07 17:47:52 by jwe]
jwe
parents: 666
diff changeset
757 dnl -Wmissing-prototypes
991303b21bae [project @ 1994-09-07 17:47:52 by jwe]
jwe
parents: 666
diff changeset
758 dnl -Wnested-externs
991303b21bae [project @ 1994-09-07 17:47:52 by jwe]
jwe
parents: 666
diff changeset
759 dnl -Woverloaded-virtual
991303b21bae [project @ 1994-09-07 17:47:52 by jwe]
jwe
parents: 666
diff changeset
760 dnl -Winline
991303b21bae [project @ 1994-09-07 17:47:52 by jwe]
jwe
parents: 666
diff changeset
761 dnl -felide-constructors
991303b21bae [project @ 1994-09-07 17:47:52 by jwe]
jwe
parents: 666
diff changeset
762 dnl -fnonnull-objects
991303b21bae [project @ 1994-09-07 17:47:52 by jwe]
jwe
parents: 666
diff changeset
763 dnl
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
764 if $ADD_CXX_WALL; then
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
765 CXXFLAGS="$CXXFLAGS -Wall"
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
766 AC_MSG_RESULT([adding -Wall to CXXFLAGS])
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
767 fi
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
768 if $ADD_CC_WALL; then
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
769 CFLAGS="$CFLAGS -Wall"
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
770 AC_MSG_RESULT([adding -Wall to CFLAGS])
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
771 fi
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
772 dnl
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
773 dnl Do the substitutions in all the Makefiles.
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
774 dnl
684
4e67ff861c84 [project @ 1994-09-09 17:39:43 by jwe]
jwe
parents: 679
diff changeset
775 define([tmpA], [Makefile Makeconf libcruft/Makefile libcruft/Makerules])dnl
4e67ff861c84 [project @ 1994-09-09 17:39:43 by jwe]
jwe
parents: 679
diff changeset
776 define([tmpB], [liboctave/Makefile src/Makefile dld/Makefile])dnl
4e67ff861c84 [project @ 1994-09-09 17:39:43 by jwe]
jwe
parents: 679
diff changeset
777 define([tmpC], [info/Makefile readline/Makefile readline/doc/Makefile])dnl
4e67ff861c84 [project @ 1994-09-09 17:39:43 by jwe]
jwe
parents: 679
diff changeset
778 define([tmpD], [readline/examples/Makefile doc/Makefile])dnl
4e67ff861c84 [project @ 1994-09-09 17:39:43 by jwe]
jwe
parents: 679
diff changeset
779 define([tmpE], [test/Makefile kpathsea/Makefile])dnl
4e67ff861c84 [project @ 1994-09-09 17:39:43 by jwe]
jwe
parents: 679
diff changeset
780 define([srcdirs], [tmpA tmpB tmpC tmpD tmpE])dnl
4e67ff861c84 [project @ 1994-09-09 17:39:43 by jwe]
jwe
parents: 679
diff changeset
781 dnl
39
82c3febbaf04 [project @ 1993-08-10 22:14:20 by jwe]
jwe
parents: 28
diff changeset
782 define([tmpa], [libcruft/blas/Makefile libcruft/balgen/Makefile])dnl
80
74f0d57ee66c [project @ 1993-08-30 19:47:16 by jwe]
jwe
parents: 39
diff changeset
783 define([tmpb], [libcruft/dassl/Makefile libcruft/eispack/Makefile])dnl
74f0d57ee66c [project @ 1993-08-30 19:47:16 by jwe]
jwe
parents: 39
diff changeset
784 define([tmpc], [libcruft/fftpack/Makefile libcruft/fsqp/Makefile])dnl
74f0d57ee66c [project @ 1993-08-30 19:47:16 by jwe]
jwe
parents: 39
diff changeset
785 define([tmpd], [libcruft/lapack/Makefile libcruft/linpack/Makefile])dnl
74f0d57ee66c [project @ 1993-08-30 19:47:16 by jwe]
jwe
parents: 39
diff changeset
786 define([tmpe], [libcruft/minpack/Makefile libcruft/misc/Makefile])dnl
74f0d57ee66c [project @ 1993-08-30 19:47:16 by jwe]
jwe
parents: 39
diff changeset
787 define([tmpf], [libcruft/npsol/Makefile libcruft/odepack/Makefile])dnl
74f0d57ee66c [project @ 1993-08-30 19:47:16 by jwe]
jwe
parents: 39
diff changeset
788 define([tmpg], [libcruft/qpsol/Makefile libcruft/quadpack/Makefile])dnl
74f0d57ee66c [project @ 1993-08-30 19:47:16 by jwe]
jwe
parents: 39
diff changeset
789 define([tmph], [libcruft/ranlib/Makefile libcruft/villad/Makefile])dnl
684
4e67ff861c84 [project @ 1994-09-09 17:39:43 by jwe]
jwe
parents: 679
diff changeset
790 dnl
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
791 define([cruftdirs], [tmpa tmpb tmpc tmpd tmpe tmpf tmpg tmph])dnl
684
4e67ff861c84 [project @ 1994-09-09 17:39:43 by jwe]
jwe
parents: 679
diff changeset
792 define([tmpSA], [scripts/Makefile scripts/control/Makefile])dnl
4e67ff861c84 [project @ 1994-09-09 17:39:43 by jwe]
jwe
parents: 679
diff changeset
793 define([tmpSB], [scripts/general/Makefile scripts/image/Makefile])dnl
4e67ff861c84 [project @ 1994-09-09 17:39:43 by jwe]
jwe
parents: 679
diff changeset
794 define([tmpSC], [scripts/linear-algebra/Makefile])dnl
4e67ff861c84 [project @ 1994-09-09 17:39:43 by jwe]
jwe
parents: 679
diff changeset
795 define([tmpSD], [scripts/miscellaneous/Makefile scripts/plot/Makefile])dnl
4e67ff861c84 [project @ 1994-09-09 17:39:43 by jwe]
jwe
parents: 679
diff changeset
796 define([tmpSE], [scripts/polynomial/Makefile scripts/set/Makefile])dnl
4e67ff861c84 [project @ 1994-09-09 17:39:43 by jwe]
jwe
parents: 679
diff changeset
797 define([tmpSF], [scripts/signal/Makefile scripts/special-matrix/Makefile])dnl
733
e77b62b20824 [project @ 1994-09-22 19:41:20 by jwe]
jwe
parents: 730
diff changeset
798 define([tmpSG], [scripts/startup/Makefile scripts/statistics/Makefile])dnl
717
b14a2dda50e7 [project @ 1994-09-21 14:51:52 by jwe]
jwe
parents: 708
diff changeset
799 define([tmpSH], [scripts/elfun/Makefile scripts/specfun/Makefile])dnl
b14a2dda50e7 [project @ 1994-09-21 14:51:52 by jwe]
jwe
parents: 708
diff changeset
800 define([scriptdirs], [tmpSA tmpSB tmpSC tmpSD tmpSE tmpSF tmpSG tmpSH])dnl
684
4e67ff861c84 [project @ 1994-09-09 17:39:43 by jwe]
jwe
parents: 679
diff changeset
801 dnl
4e67ff861c84 [project @ 1994-09-09 17:39:43 by jwe]
jwe
parents: 679
diff changeset
802 AC_OUTPUT([srcdirs cruftdirs scriptdirs])dnl